* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    padding: 40px 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

h1 {
    text-align: center;
    color: #333;
    font-size: 42px;
    margin-bottom: 40px;
    animation: fadeInDown 0.8s ease;
}

.project-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    animation: fadeInUp 0.8s ease;
    transition: box-shadow 0.3s ease;
    border: 1px solid #e8e8e8;
    display: block;
    position: relative;
}

.back-to-kanban {
    display: none;
}

/* 项目详情标题 */
.projects-header {
    display: none;
}

.project-section:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
}

.project-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    flex-wrap: wrap;
    gap: 15px;
}

.project-header > div:first-child {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.project-number {
    background: linear-gradient(135deg, #666 0%, #888 100%);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    margin-right: 15px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.project-title {
    font-size: 24px;
    color: #333;
    font-weight: 600;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 20px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
}

th {
    background: linear-gradient(180deg, #f8f8f8 0%, #f0f0f0 100%);
    color: #555;
    padding: 10px 12px;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    border-right: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    width: 110px;
    vertical-align: middle;
}

th:last-child {
    border-right: none;
}

td {
    padding: 10px 12px;
    border-right: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
    color: #444;
    line-height: 1.6;
    vertical-align: top;
    font-size: 15px;
}

td:last-child {
    border-right: none;
}

tr:last-child th,
tr:last-child td {
    border-bottom: none;
}

tr:hover {
    background: #fafafa;
}

/* 看板样式 */
.kanban-board {
    display: none;
}

.kanban-column {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 0;
    min-height: 200px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.kanban-column[data-status="pending"] {
    border-color: #e0e0e0;
}

.kanban-column[data-status="in-progress"] {
    border-color: #ff9800;
}

.kanban-column[data-status="completed"] {
    border-color: #4caf50;
}

.column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: white;
    border-radius: 10px 10px 0 0;
    border-bottom: 2px solid #e0e0e0;
}

.kanban-column[data-status="pending"] .column-header {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}

.kanban-column[data-status="in-progress"] .column-header {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
}

.kanban-column[data-status="completed"] .column-header {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
}

.column-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.status-icon {
    font-size: 20px;
}

.column-count {
    background: #666;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: bold;
    min-width: 30px;
    text-align: center;
}

.kanban-column[data-status="pending"] .column-count {
    background: #999;
}

.kanban-column[data-status="in-progress"] .column-count {
    background: #ff9800;
}

.kanban-column[data-status="completed"] .column-count {
    background: #4caf50;
}

.column-content {
    padding: 15px;
    padding-bottom: 30px;
    min-height: 150px;
}

/* 看板卡片样式 */
.kanban-card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 4px solid #666;
    animation: slideIn 0.3s ease;
    position: relative;
}

.kanban-card::after {
    content: '点击查看详情 ↓';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    color: #999;
    opacity: 0;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.kanban-card:hover::after {
    opacity: 1;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.kanban-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.kanban-card[data-status="pending"] {
    border-left-color: #999;
}

.kanban-card[data-status="in-progress"] {
    border-left-color: #ff9800;
}

.kanban-card[data-status="completed"] {
    border-left-color: #4caf50;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.card-number {
    background: linear-gradient(135deg, #666 0%, #888 100%);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    flex-shrink: 0;
}

.card-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    flex: 1;
}

.card-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.card-progress-bar {
    flex: 1;
    background: #e0e0e0;
    border-radius: 10px;
    height: 6px;
    overflow: hidden;
}

.card-progress-fill {
    background: linear-gradient(90deg, #4caf50 0%, #66bb6a 100%);
    height: 100%;
    width: 0%;
    transition: width 0.5s ease;
}

.card-progress-text {
    font-size: 12px;
    color: #666;
    font-weight: 600;
    min-width: 35px;
}

/* 状态选择器 */
.status-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-selector label {
    font-size: 14px;
    color: #666;
    font-weight: 600;
}

.status-select {
    padding: 8px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.status-select:hover {
    border-color: #999;
}

.status-select:focus {
    outline: none;
    border-color: #666;
}

.project-section[data-status="completed"] .project-header {
    border-bottom-color: #4caf50;
    border-bottom-width: 2px;
}

.project-section[data-status="in-progress"] .project-header {
    border-bottom-color: #ff9800;
    border-bottom-width: 2px;
}

.project-section[data-status="pending"] .project-header {
    border-bottom-color: #e0e0e0;
}

/* 项目内容布局 */
.project-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.project-table {
    flex: 0 0 33.33%;
    min-width: 0;
    width: 33.33%;
}

/* 演示效果清单 */
.demo-checklist {
    background: linear-gradient(180deg, #fbfbfc 0%, #f6f7f9 100%);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    flex: 0 0 66.67%;
    width: 66.67%;
    min-width: 0;
}

.demo-checklist h3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    letter-spacing: 0.02em;
    color: #555;
    font-size: 16px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #ddd;
    font-weight: 600;
}

.checklist-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.checklist-item {
    padding: 15px;
    background: white;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.06);
    margin-bottom: 15px;
    box-shadow: 0 1px 0 rgba(0,0,0,0.03), 0 10px 22px rgba(16, 24, 40, 0.04);
}

.checklist-item:last-child {
    margin-bottom: 0;
}

.checklist-item:hover {
    background: #ffffff;
    border-color: rgba(102, 126, 234, 0.25);
    box-shadow: 0 2px 0 rgba(0,0,0,0.03), 0 18px 45px rgba(16, 24, 40, 0.08);
    transform: translateY(-1px);
}

.item-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.item-header input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: #667eea;
}

.item-title {
    flex: 1;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.item-title a {
    color: #1f2937;
    text-decoration: none;
    display: inline-block;
    padding: 2px 0;
}

.item-title a:hover {
    color: #4f46e5;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.item-images {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    padding-left: 30px;
}

 .item-images:empty {
     display: none;
 }

.item-buttons {
    display: flex;
    gap: 12px;
    padding-left: 30px;
    flex-wrap: wrap;
    align-items: center;
}

.item-buttons .item-images {
    padding-left: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    margin: 10px 0 2px;
}

.item-buttons a {
    display: inline-block;
    padding: 8px 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    letter-spacing: 0.01em;
    box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 8px 18px rgba(102, 126, 234, 0.18);
}

.item-buttons a:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.image-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-radius: 10px;
}

.item-images img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(0,0,0,0.08);
    box-shadow: 0 1px 0 rgba(0,0,0,0.03);
}

.item-images img:hover {
    transform: translateY(-2px);
    border-color: rgba(79, 70, 229, 0.45);
    box-shadow: 0 14px 30px rgba(16, 24, 40, 0.18);
    z-index: 10;
}

.demo-link {
    display: block;
    text-align: center;
    font-size: 12px;
    color: #1a73e8;
    text-decoration: none;
    padding: 4px 0;
    transition: all 0.3s ease;
}

 .image-wrapper .demo-link {
     margin-top: 8px;
     padding: 8px 10px;
     border-radius: 10px;
     background: rgba(79, 70, 229, 0.08);
     color: #4f46e5;
     font-weight: 600;
     border: 1px solid rgba(79, 70, 229, 0.15);
 }

.demo-link:hover {
    color: #0d47a1;
    text-decoration: underline;
}

 .image-wrapper .demo-link:hover {
     color: #ffffff;
     background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
     border-color: transparent;
     text-decoration: none;
     box-shadow: 0 10px 22px rgba(102, 126, 234, 0.25);
     transform: translateY(-1px);
 }

.checklist-item input[type="checkbox"]:checked + span {
    color: #999;
    text-decoration: line-through;
}

/* 演示按钮 */
.demo-link-btn {
    background: #666;
    color: white;
    border: none;
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
    flex-shrink: 0;
}

.demo-link-btn:hover {
    background: #555;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.demo-link-btn:active {
    transform: translateY(0);
}

/* 项目进度条 */
.project-progress {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 15px;
    border-top: 2px solid #e0e0e0;
}

.progress-label {
    font-size: 14px;
    color: #666;
    font-weight: 600;
    white-space: nowrap;
}

.mini-progress-bar {
    flex: 1;
    background: #e0e0e0;
    border-radius: 10px;
    height: 20px;
    overflow: hidden;
}

.mini-progress-fill {
    background: linear-gradient(90deg, #4caf50 0%, #66bb6a 100%);
    height: 100%;
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 10px;
}

.progress-percentage {
    font-size: 14px;
    color: #666;
    font-weight: bold;
    min-width: 45px;
    text-align: right;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 图片查看器模态框 */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10000;
}

.modal-close:hover {
    color: #ff6b6b;
    transform: rotate(90deg);
}

/* 图片导航按钮 */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 60px;
    width: 60px;
    height: 60px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.nav-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* 图片计数器 */
.image-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 16px;
    z-index: 10001;
}

@media (max-width: 1200px) {
    .kanban-board {
        grid-template-columns: 1fr;
    }
    
    .project-content {
        flex-direction: column;
    }

    .demo-checklist {
        min-width: 100%;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .project-section {
        padding: 20px;
    }

    .overall-progress {
        padding: 20px;
    }

    .progress-stats {
        gap: 15px;
    }

    .stat-item {
        min-width: 80px;
    }

    .stat-number {
        font-size: 28px;
    }

    .project-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .project-header > div:first-child {
        width: 100%;
    }

    .status-selector {
        width: 100%;
        justify-content: space-between;
    }

    .status-select {
        flex: 1;
        max-width: 200px;
    }

    table {
        font-size: 14px;
    }

    th, td {
        padding: 10px;
    }

    th {
        width: 100px;
    }

    .demo-checklist {
        padding: 15px;
        min-width: 100%;
    }

    .checklist-item {
        padding: 10px;
        flex-wrap: wrap;
    }

    .demo-link-btn {
        width: 100%;
        text-align: center;
        margin-top: 8px;
    }

    .project-progress {
        flex-wrap: wrap;
    }
    
    .item-images {
        grid-template-columns: repeat(3, 1fr);
        padding-left: 0;
    }
    
    .modal-close {
        font-size: 40px;
        right: 20px;
        top: 10px;
    }
}
