/* ===== 前台首页样式 ===== */

/* CSS Variables */
:root {
    --color-primary: #d4af37;
    --color-secondary: #b8860b;
    --color-neutral-100: #1a1a1a;
    --color-neutral-200: #242424;
    --color-neutral-300: #2a2a2a;
    --color-neutral-400: #3a3a3a;
    --color-neutral-500: #6a6a6a;
    --color-neutral-600: #8a8a8a;
    --color-neutral-700: #a0a0a0;
    --color-neutral-800: #c0c0c0;
    --color-neutral-900: #e5e5e5;
    --color-success: #22c55e;
    --color-warning: #f59e0b;
    --color-error: #ef4444;
    
    --text-xs: 12px;
    --text-sm: 14px;
    --text-base: 16px;
    --text-lg: 20px;
    --text-xl: 24px;
    --text-2xl: 32px;
    
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-6: 24px;
    --space-8: 32px;
    --space-12: 48px;
    --space-16: 64px;
}

/* 前台导航栏样式覆盖 */
.navbar-menu {
    flex: initial !important;
    justify-content: flex-start !important;
    gap: 2rem;
}

/* ===== 页面内容 ===== */
.dashboard {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
}

/* ===== 统计卡片 ===== */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}
.stat-card {
    background: #1a1a1a;
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border-left: 4px solid #d4af37;
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: all 0.3s;
}
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.15);
}
.stat-card:nth-child(2) { border-left-color: #22c55e; }
.stat-card:nth-child(3) { border-left-color: #d4af37; }
.stat-card:nth-child(4) { border-left-color: #ef4444; }
.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}
.stat-card:nth-child(1) .stat-icon { background: rgba(212, 175, 55, 0.15); color: #d4af37; }
.stat-card:nth-child(2) .stat-icon { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.stat-card:nth-child(3) .stat-icon { background: rgba(212, 175, 55, 0.2); color: #d4af37; }
.stat-card:nth-child(4) .stat-icon { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.stat-info { flex: 1; }
.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #d4af37;
    line-height: 1.2;
}
.stat-label {
    font-size: 0.85rem;
    color: #8a8a8a;
    margin-top: 0.25rem;
}

/* ===== 公告栏 ===== */
.announcement-bar {
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    padding: var(--space-6) var(--space-8);
    margin-bottom: var(--space-8);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    border-left: 4px solid #d4af37;
}
.announcement-content {
    display: flex;
    align-items: center;
    gap: 14px;
}
.announcement-icon {
    background: #d4af37;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    font-size: 1.1rem;
}
.announcement-text {
    font-size: 0.95rem;
    color: #d4af37;
}
.announcement-text strong { color: #b8860b; }
.announcement-date {
    background: rgba(212, 175, 55, 0.15);
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #d4af37;
}

/* ===== 任务卡片区域 ===== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.section-title {
    font-size: 1.35rem;
    font-weight: 600;
    color: #d4af37;
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-title i { color: #d4af37; }
.section-badge {
    background: #d4af37;
    color: #1a1a1a;
    padding: 0.25rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}
.section-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.layout-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.layout-label {
    font-size: 0.8rem;
    color: #8a8a8a;
}
.layout-options {
    display: flex;
    background: #2a2a2a;
    border-radius: 8px;
    padding: 2px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}
.layout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    color: #8a8a8a;
    font-size: 0.95rem;
    transition: all 0.2s;
}
.layout-btn:hover {
    background: #3a3a3a;
    color: #d4af37;
}
.layout-btn.active {
    background: #d4af37;
    color: #1a1a1a;
    box-shadow: 0 1px 2px rgba(212, 175, 55, 0.3);
}

/* ===== 任务卡片网格 ===== */
.tasks-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
    margin-bottom: var(--space-12);
}
.tasks-grid.layout-list {
    grid-template-columns: 1fr;
    gap: var(--space-4);
}
.tasks-grid.layout-compact {
    grid-template-columns: repeat(6, 1fr);
    gap: var(--space-4);
}
.tasks-current {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
}
.tasks-history {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
}
.layout-list .tasks-current,
.layout-list .tasks-history {
    grid-template-columns: 1fr;
}
.layout-compact .tasks-current {
    grid-template-columns: repeat(4, 1fr);
}
.layout-compact .tasks-history {
    grid-template-columns: repeat(6, 1fr);
}
.task-card {
    background: #1a1a1a;
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    overflow: hidden;
    transition: all 0.3s ease;
}
.task-card:hover {
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.15);
    border-color: rgba(212, 175, 55, 0.4);
}

/* 列表布局样式 */
.layout-list .task-card {
    display: flex;
    align-items: stretch;
}
.layout-list .card-header {
    width: 200px;
    flex-shrink: 0;
    background: #242424;
    padding: var(--space-4);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: var(--space-3);
}
.layout-list .card-header .task-title {
    font-size: var(--text-sm);
    font-weight: 600;
    line-height: 1.4;
    color: #d4af37;
}
.layout-list .card-header .status-tag {
    align-self: flex-start;
}
.layout-list .image-section {
    width: 180px;
    flex-shrink: 0;
    padding: 0;
    margin-top: 0;
    border-left: 1px solid rgba(212, 175, 55, 0.2);
}
.layout-list .image-section .task-img {
    width: 100%;
    height: 100%;
    border-radius: 0;
}
.layout-list .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: var(--space-4);
}
.layout-list .card-body .info-list {
    flex: 1;
    margin-bottom: var(--space-3);
}
.layout-list .card-body .info-list .info-item {
    font-size: 0.8rem;
}
.layout-list .deadline-card,
.layout-list .countdown-card {
    display: inline-flex;
    margin-right: var(--space-3);
    margin-bottom: var(--space-3);
}
.layout-list .submit-work-btn {
    margin-left: auto;
    margin-right: 0;
    width: auto;
}
.layout-list .download-tool {
    justify-content: flex-start;
}

/* 紧凑布局样式 */
.layout-compact .task-card {
    border-radius: 6px;
}
.layout-compact .card-header {
    padding: var(--space-3);
    background: #242424;
}
.layout-compact .card-header .task-title {
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
    color: #d4af37;
}
.layout-compact .card-header .status-tag {
    font-size: 0.6rem;
    padding: 2px 6px;
}
.layout-compact .image-section {
    padding: 0 0.5rem;
    margin-top: -4px;
}
.layout-compact .image-section .task-img {
    height: 80px;
    border-radius: 8px;
}
.layout-compact .card-body {
    padding: 0.5rem;
}
.layout-compact .card-body .info-list {
    display: none;
}
.layout-compact .deadline-card,
.layout-compact .countdown-card {
    padding: var(--space-2);
    font-size: 0.65rem;
    margin-bottom: var(--space-2);
}
.layout-compact .deadline-card .deadline-time,
.layout-compact .countdown-card .countdown-time {
    font-size: 0.65rem;
    font-weight: 600;
}
.layout-compact .submit-work-btn {
    padding: var(--space-1) var(--space-3);
    font-size: 0.65rem;
    margin-top: var(--space-2);
}
.layout-compact .download-tool {
    display: none;
}
.card-header {
    padding: var(--space-4);
    background: #242424;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-3);
}
.task-title {
    font-weight: 600;
    font-size: var(--text-sm);
    line-height: 1.4;
    flex: 1;
    color: #d4af37;
}
.status-tag {
    font-size: var(--text-xs);
    font-weight: 600;
    padding: var(--space-1) var(--space-3);
    border-radius: 6px;
    background: #3a3a3a;
    color: #a0a0a0;
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    white-space: nowrap;
}
.status-tag.complete { 
    background: rgba(34, 197, 94, 0.15); 
    color: #22c55e; 
}
.status-tag.late { 
    background: rgba(212, 175, 55, 0.2); 
    color: #d4af37; 
}
.status-tag.missing { 
    background: rgba(239, 68, 68, 0.15); 
    color: #ef4444; 
}
.status-tag.progress { 
    background: rgba(212, 175, 55, 0.25); 
    color: #d4af37; 
}
.status-tag.upcoming { 
    background: rgba(212, 175, 55, 0.2); 
    color: #d4af37; 
}
.image-section {
    padding: 0 1rem;
    margin-top: -0.5rem;
}
.task-img {
    width: 100%;
    height: 140px;
    border-radius: 14px;
    overflow: hidden;
    background: #242424;
    display: flex;
    align-items: center;
    justify-content: center;
}
.task-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* 即将发布卡片样式 */
.upcoming-card {
    opacity: 0.9;
}
.upcoming-card .card-header {
    background: rgba(212, 175, 55, 0.15);
}
.upcoming-card .image-section {
    position: relative;
}
.upcoming-card .task-img {
    filter: brightness(0.9);
}
.upcoming-banner {
    padding: var(--space-4);
    background: rgba(212, 175, 55, 0.1);
    border-top: 1px solid rgba(212, 175, 55, 0.3);
}
.upcoming-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}
.upcoming-content i {
    color: #d4af37;
    font-size: 0.9rem;
}
.upcoming-content span:first-of-type {
    font-size: 0.8rem;
    color: #d4af37;
    font-weight: 600;
}
.upcoming-hint {
    color: #b8860b;
    font-size: 0.7rem;
    font-style: italic;
    opacity: 0.8;
}

.card-body {
    padding: 1rem;
}
.info-list {
    margin-bottom: 0.8rem;
}
.info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.75rem;
    padding: 0.35rem 0;
}
.info-item i {
    width: 1rem;
    height: 1rem;
    color: #d4af37;
    background: rgba(212, 175, 55, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}
.info-item .user-icon { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.info-item .calendar-icon { background: rgba(212, 175, 55, 0.2); color: #d4af37; }
.task-desc-line {
    display: block;
    padding: 0.2rem 0;
    color: #c0c0c0;
}
.miss-zero { 
    background: rgba(34, 197, 94, 0.15); color: #22c55e; 
    padding: 0.2rem 0.5rem; border-radius: 16px; 
    font-size: 0.62rem; font-weight: 600; 
    margin-left: auto;
}
.miss-none { 
    background: #3a3a3a; color: #8a8a8a; 
    padding: 0.2rem 0.5rem; border-radius: 16px; 
    font-size: 0.62rem; font-weight: 600; 
    margin-left: auto;
}
.miss-late { 
    background: rgba(212, 175, 55, 0.2); color: #d4af37; 
    padding: 0.2rem 0.5rem; border-radius: 16px; 
    font-size: 0.62rem; font-weight: 600; 
    margin-left: auto;
}
.miss-num-inline { 
    background: rgba(239, 68, 68, 0.15); color: #ef4444; 
    padding: 0.2rem 0.5rem; border-radius: 16px; 
    font-size: 0.62rem; font-weight: 600; 
    margin-left: auto;
}
.user-missing { color: #ef4444; font-weight: 600; }
.member-status-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--space-2) var(--space-4);
    padding: var(--space-3) var(--space-4);
    background: rgba(212, 175, 55, 0.08);
    border-radius: 8px;
    margin-bottom: var(--space-3);
    border: 1px solid rgba(212, 175, 55, 0.15);
}
.member-status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-2) var(--space-3);
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
}
.member-name {
    font-size: 0.8rem;
    font-weight: 500;
    color: #e5e5e5;
}
.member-status {
    display: flex;
    align-items: center;
    gap: 4px;
}
.member-status-icon {
    font-size: 0.7rem;
}
.status-text {
    font-size: 0.7rem;
    font-weight: 500;
}
.member-status-icon.status-submitted,
.status-text.status-submitted { color: #22c55e; }
.member-status-icon.status-late,
.status-text.status-late { color: #d4af37; }
.member-status-icon.status-leave,
.status-text.status-leave { color: #6a6a6a; }
.member-status-icon.status-pending,
.status-text.status-pending { color: #d4af37; }
.member-status-icon.status-missing,
.status-text.status-missing { color: #ef4444; }
.deadline-card {
    background: rgba(212, 175, 55, 0.15);
    border-radius: 6px;
    padding: var(--space-3) var(--space-4);
    margin-bottom: var(--space-3);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    border: 1px solid rgba(212, 175, 55, 0.2);
}
.deadline-card i { color: #d4af37; font-size: var(--text-xs); }
.deadline-card .deadline-text { font-size: var(--text-xs); color: #d4af37; }
.deadline-card .deadline-time { font-weight: 700; color: #b8860b; }
.countdown-card {
    background: rgba(212, 175, 55, 0.1);
    border-radius: 6px;
    padding: var(--space-3) var(--space-4);
    margin-bottom: var(--space-3);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    border: 1px solid rgba(212, 175, 55, 0.3);
}
.countdown-card i { color: #d4af37; font-size: var(--text-xs); }
.countdown-card .countdown-text { font-size: var(--text-xs); color: #d4af37; }
.countdown-card .countdown-time { font-weight: 700; color: #d4af37; font-size: var(--text-sm); }
.countdown-card.urgent {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
}
.countdown-card.urgent i { color: #ef4444; }
.countdown-card.urgent .countdown-text { color: #ef4444; }
.countdown-card.urgent .countdown-time { color: #ef4444; }
.countdown-card.over {
    background: #3a3a3a;
    border-color: #4a4a4a;
}
.countdown-card.over i { color: #8a8a8a; }
.countdown-card.over .countdown-text { color: #6a6a6a; }
.countdown-card.over .countdown-time { color: #8a8a8a; }
.download-tool {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding-top: 0.8rem;
    border-top: 1px dashed rgba(212, 175, 55, 0.3);
}
.download-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-1);
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 6px;
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-xs);
    font-weight: 600;
    color: #22c55e;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s;
    line-height: 1;
    min-height: 28px;
}
.download-link i {
    font-size: var(--text-xs) !important;
    flex-shrink: 0;
}
.download-link:hover { background: rgba(34, 197, 94, 0.2); }
.download-link.backup-link {
    background: rgba(212, 175, 55, 0.15);
    border-color: rgba(212, 175, 55, 0.3);
    color: #d4af37;
}
.download-link.backup-link:hover { background: rgba(212, 175, 55, 0.25); }

/* ===== 统计表格区域 ===== */
.stats-section {
    background: #1a1a1a;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    padding: var(--space-8);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.stats-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #d4af37;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.stats-title i { color: #d4af37; }
.stats-table-wrapper { overflow-x: auto; }
.miss-count-zero { 
    background: rgba(34, 197, 94, 0.15); color: #22c55e;
    padding: 0.2rem 0.6rem; border-radius: 16px; 
    font-weight: 600;
}
.miss-count-num { 
    background: rgba(239, 68, 68, 0.15); color: #ef4444;
    padding: 0.2rem 0.6rem; border-radius: 16px; 
    font-weight: 700;
}
.miss-tasks-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.miss-task-tag {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    padding: var(--space-1) var(--space-3);
    border-radius: 6px;
    font-size: var(--text-xs);
    font-weight: 500;
}

/* ===== 补交按钮和状态标签 ===== */
.submit-btn {
    background: #d4af37;
    border: none;
    color: #1a1a1a;
    padding: var(--space-1) var(--space-3);
    border-radius: 6px;
    font-size: var(--text-xs);
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-1);
    margin-left: var(--space-2);
    transition: background 0.2s;
    line-height: 1;
    min-height: 24px;
}
.submit-btn i {
    font-size: var(--text-xs) !important;
    flex-shrink: 0;
}
.submit-btn:hover {
    background: #b8860b;
}

/* ===== 审核理由按钮 ===== */
.review-reason {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 2px 8px;
    background: transparent;
    color: #d4af37;
    border: 1px solid #d4af37;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
    margin-left: 6px;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}
.review-reason:hover {
    background: #d4af37;
    color: #1a1a1a;
    transform: none;
}
.review-reason i {
    font-size: 0.7rem;
}

.submit-work-btn {
    background: linear-gradient(135deg, #d4af37, #b8860b);
    border: none;
    color: #1a1a1a;
    padding: var(--space-2) var(--space-4);
    border-radius: 6px;
    font-size: var(--text-xs);
    font-weight: 600;
    cursor: pointer;
    display: block;
    align-items: center;
    justify-content: center;
    gap: var(--space-1);
    margin: var(--space-3) auto 0;
    transition: background 0.2s;
    line-height: 1.2;
    text-align: center;
}
.submit-work-btn:hover {
    background: linear-gradient(135deg, #b8860b, #996500);
}

/* 状态标签样式 */
.miss-leave {
    background: rgba(212, 175, 55, 0.15); 
    color: #d4af37; 
    padding: 0.2rem 0.5rem; 
    border-radius: 16px; 
    font-size: 0.62rem; 
    font-weight: 600; 
    margin-left: auto;
}
.miss-pending {
    background: rgba(212, 175, 55, 0.2); 
    color: #d4af37; 
    padding: 0.2rem 0.5rem; 
    border-radius: 16px; 
    font-size: 0.62rem; 
    font-weight: 600; 
    margin-left: auto;
}

/* ===== 优质作业徽章样式 ===== */
.excellent-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: rgba(184, 134, 11, 0.3);
    color: #ffd700;
    border-radius: 50%;
    font-size: 0.8rem;
    margin-left: 4px;
    flex-shrink: 0;
    border: 1px solid rgba(255, 215, 0, 0.5);
}
.excellent-badge i {
    font-size: 0.8rem;
}

/* ===== 优质作业统计样式 ===== */
.excellent-count-zero { 
    background: #3a3a3a; color: #8a8a8a;
    padding: 0.2rem 0.6rem; border-radius: 16px; 
    font-weight: 600;
}
.excellent-count-num { 
    background: linear-gradient(135deg, #d4af37, #b8860b); color: #1a1a1a;
    padding: 0.2rem 0.6rem; border-radius: 16px; 
    font-weight: 700;
}
.excellent-tasks-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.excellent-task-tag {
    background: linear-gradient(135deg, #d4af37, #b8860b);
    color: #1a1a1a;
    padding: var(--space-1) var(--space-3);
    border-radius: 6px;
    font-size: var(--text-xs);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}
.excellent-task-tag i {
    font-size: 0.6rem;
}

/* ===== 弹窗样式 ===== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.modal-overlay.active {
    display: flex;
}
.modal-container {
    background: #1a1a1a;
    border-radius: 8px;
    padding: 1.5rem;
    position: relative;
    max-width: 90%;
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.2);
}
.modal-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: #3a3a3a;
    border: 1px solid rgba(212, 175, 55, 0.2);
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #8a8a8a;
    transition: all 0.2s;
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1;
}
.modal-close i {
    font-size: 1rem;
}
.modal-close:hover {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

/* 补交弹窗样式 */
.submit-modal-actions {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-6);
}
.modal-submit-btn {
    background: linear-gradient(135deg, #d4af37, #b8860b);
    border: none;
    color: #1a1a1a;
    padding: var(--space-3) var(--space-6);
    border-radius: 6px;
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    transition: background 0.2s;
    flex: 1;
    min-height: 42px;
    box-sizing: border-box;
}
.modal-submit-btn i,
.modal-cancel-btn i {
    font-size: var(--text-sm) !important;
    flex-shrink: 0;
    line-height: 1;
}
.modal-submit-btn:hover {
    background: linear-gradient(135deg, #b8860b, #996500);
}
.modal-cancel-btn {
    background: #3a3a3a;
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: #a0a0a0;
    padding: var(--space-3) var(--space-6);
    border-radius: 6px;
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    transition: background 0.2s;
    min-height: 42px;
    box-sizing: border-box;
}
.modal-cancel-btn:hover {
    background: #4a4a4a;
    color: #d4af37;
}

/* 请假弹窗样式 */
.leave-modal-container {
    width: 90%;
    max-width: 420px;
}
.leave-form-group {
    margin-bottom: 1rem;
}
.leave-form-group label {
    display: block;
    font-weight: 600;
    color: #d4af37;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}
.leave-form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    resize: vertical;
    min-height: 100px;
    font-size: 0.9rem;
    font-family: inherit;
    box-sizing: border-box;
    background: #242424;
    color: #e5e5e5;
}
.leave-form-group textarea:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

/* 提交作业弹窗样式 */
.work-submit-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
}
.work-submit-table th,
.work-submit-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}
.work-submit-table th {
    background: #242424;
    font-weight: 600;
    color: #d4af37;
}
.work-submit-table td {
    color: #e5e5e5;
}
.work-submit-table tr:hover {
    background: rgba(212, 175, 55, 0.05);
}

/* ===== 审核意见列 ===== */
.review-reason-cell {
    min-width: 150px;
    max-width: 200px;
}
.work-review-reason {
    color: #d4af37;
    font-size: 0.75rem;
    cursor: default;
}
.work-review-reason .reason-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    max-width: 160px;
    vertical-align: middle;
}
.no-reason {
    color: #6a6a6a;
    font-size: 0.75rem;
}
.work-actions {
    min-height: 60px;
}

/* ===== 审核意见弹窗 ===== */
.review-reason-modal-container {
    width: 90%;
    max-width: 420px;
    padding: 1.5rem 1.5rem 1.5rem 1.5rem;
}
.review-reason-card {
    margin: 0;
    box-shadow: none;
}
.review-reason-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
    color: #1a1a1a;
    border: none;
    border-radius: 8px 8px 0 0;
    font-size: 1rem;
    font-weight: 600;
}
.review-reason-header i {
    font-size: 1.2rem;
}
.review-reason-body {
    padding: 20px;
}
.review-reason-content {
    color: #e5e5e5;
    font-size: 0.95rem;
    line-height: 1.8;
    word-break: break-word;
    background: #242424;
    border-radius: 8px;
    padding: 16px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    min-height: 80px;
}

/* ===== 上传进度条 ===== */
.upload-progress-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #1a1a1a;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.2);
    z-index: 1001;
    min-width: 300px;
    max-width: 400px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}
.upload-progress-text {
    font-size: 0.85rem;
    color: #d4af37;
    margin-bottom: 0.75rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.upload-progress-bar {
    height: 8px;
    background: #3a3a3a;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}
.upload-progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #d4af37, #b8860b);
    border-radius: 4px;
    transition: width 0.3s ease;
}
.upload-progress-percent {
    font-size: 0.8rem;
    color: #8a8a8a;
    text-align: center;
    font-weight: 500;
}

.work-actions {
    display: flex;
    gap: 6px;
}

/* ===== Layui表格图标覆盖 ===== */
.layui-icon {
    font-family: inherit !important;
    line-height: 1;
    vertical-align: middle;
}

.layui-icon.layui-icon-up::before {
    content: '▲';
    font-family: inherit;
    font-size: 16px;
    line-height: 1;
    vertical-align: middle;
    display: inline-block;
    position: relative;
    top: -15px;
}

.layui-icon.layui-icon-down::before {
    content: '▼';
    font-family: inherit;
    font-size: 12px;
    line-height: 1;
    vertical-align: middle;
    display: inline-block;
    position: relative;
    top: -1px;
}

.layui-icon.layui-icon-right::before {
    content: '▶';
    font-family: inherit;
    font-size: 12px;
    line-height: 1;
    vertical-align: middle;
    display: inline-block;
    position: relative;
    top: -1px;
}
.work-btn {
    padding: 0.4rem 0.8rem;
    border: none;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.2s;
    line-height: 1;
    min-height: 28px;
}
.work-btn i {
    font-size: 0.75rem !important;
    flex-shrink: 0;
}
.work-leave-btn {
    background: #fffbeb;
    color: #92400e;
}
.work-leave-btn:hover {
    background: #fef3c7;
}
.work-leave-btn.disabled {
    background: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
}
.work-leave-btn.disabled:hover {
    background: #e5e7eb;
}
.work-upload-btn {
    background: #eff6ff;
    color: #1e40af;
}
.work-upload-btn:hover {
    background: #dbeafe;
}

/* 提交作业弹窗状态样式 */
.work-status-submitted {
    background: #ecfdf5;
    color: #065f46;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
}
.work-status-late {
    background: #fef3c7;
    color: #92400e;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
}
.work-status-missing {
    background: #fee2e2;
    color: #dc2626;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
}
.work-status-pending {
    background: #fef3c7;
    color: #92400e;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
}
.work-status-leave {
    background: #dbeafe;
    color: #1e40af;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* ===== 底部 ===== */
.footer {
    text-align: center;
    padding: 2rem;
    color: #6a6a6a;
    font-size: 0.85rem;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

/* ===== 网盘弹窗 ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s;
}
.modal-overlay.active {
    visibility: visible;
    opacity: 1;
}
.modal-container {
    background: #1a1a1a;
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    max-width: 360px;
    width: 90%;
    padding: var(--space-8);
    text-align: center;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.15);
}
.modal-container i {
    font-size: 2.5rem;
    color: #d4af37;
    margin-bottom: 1rem;
}
.modal-container h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #d4af37;
    margin-bottom: 1.5rem;
}
.extract-code {
    background: rgba(212, 175, 55, 0.15);
    padding: var(--space-4) var(--space-4);
    border-radius: 8px;
    font-size: 1.3rem;
    font-weight: 700;
    color: #d4af37;
    margin: var(--space-4) 0;
}
.modal-btn {
    background: linear-gradient(135deg, #d4af37, #b8860b);
    border: none;
    color: #1a1a1a;
    padding: var(--space-3) var(--space-8);
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-2);
    text-decoration: none;
    transition: background 0.2s;
}
.modal-btn:hover {
    background: linear-gradient(135deg, #b8860b, #996500);
}
.close-modal-btn {
    background: #3a3a3a;
    color: #8a8a8a;
    margin-left: 0.5rem;
    border: 1px solid rgba(212, 175, 55, 0.2);
}
.close-modal-btn:hover {
    background: #4a4a4a;
    color: #d4af37;
    box-shadow: none;
}

/* ===== 历史任务折叠区域 ===== */
.history-section {
    margin-top: var(--space-6);
}
.history-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4);
    background: rgba(212, 175, 55, 0.08);
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    cursor: pointer;
    transition: all 0.2s;
}
.history-header:hover {
    background: rgba(212, 175, 55, 0.12);
}
.history-title {
    font-size: 1rem;
    font-weight: 600;
    color: #d4af37;
    display: flex;
    align-items: center;
    gap: 8px;
}
.history-count {
    background: rgba(212, 175, 55, 0.2);
    color: #d4af37;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}
.history-toggle {
    font-size: 0.85rem;
    color: #d4af37;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: transform 0.2s;
}
.history-toggle i {
    font-size: 0.75rem;
    transition: transform 0.2s;
}
.history-section.expanded .history-toggle i {
    transform: rotate(180deg);
}
.history-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.history-section.expanded .history-content {
    max-height: 2000px;
    padding-top: var(--space-6);
}

/* ===== 响应式 ===== */
@media (max-width: 1400px) {
    .tasks-grid { grid-template-columns: repeat(3, 1fr); }
    .tasks-grid.layout-compact { grid-template-columns: repeat(4, 1fr); }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1100px) {
    .tasks-grid { grid-template-columns: repeat(2, 1fr); }
    .tasks-grid.layout-compact { grid-template-columns: repeat(3, 1fr); }
    .navbar-menu { display: none; }
}
@media (max-width: 780px) {
    body { padding-bottom: 2rem; }
    .navbar { padding: 0 1rem; }
    .dashboard { padding: 1.5rem 1rem; }
    .tasks-grid { grid-template-columns: 1fr; gap: 1.2rem; }
    .tasks-grid.layout-compact { grid-template-columns: repeat(2, 1fr); }
    .stats-row { grid-template-columns: 1fr; }
    .announcement-bar { flex-direction: column; align-items: flex-start; }
    .stat-card { padding: 1rem; }
    .stats-section { padding: 1rem; }
    
    /* 列表布局移动端适配 */
    .layout-list .task-card {
        flex-direction: column;
    }
    .layout-list .card-header {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
    .layout-list .image-section {
        width: 100%;
        height: 150px;
        border-left: none;
        border-top: 1px solid var(--color-neutral-300);
    }
    .layout-list .image-section .task-img {
        height: 100%;
    }
    .layout-list .deadline-card,
    .layout-list .countdown-card {
        display: flex;
        margin-right: 0;
    }
}

/* ===== 移动端弹窗适配 ===== */
@media (max-width: 768px) {
    /* 弹窗容器 */
    .modal-container {
        max-width: 95%;
        width: 95%;
        padding: 1.25rem;
        border-radius: 8px;
        max-height: 85vh;
        overflow-y: auto;
    }
    
    .modal-container h3 {
        font-size: 1.1rem;
        padding-right: 30px;
    }
    
    .modal-close {
        top: 0.5rem;
        right: 0.5rem;
        width: 28px;
        height: 28px;
        border-radius: 4px;
    }
    
    /* 提交作业弹窗 */
    .work-modal-container {
        max-width: 98%;
        width: 98%;
        padding: 1rem;
        max-height: 90vh;
    }
    
    .work-modal-title {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    /* 表格样式 */
    .work-submit-table {
        font-size: 0.7rem;
    }
    
    .work-submit-table th,
    .work-submit-table td {
        padding: 0.4rem 0.3rem;
    }
    
    .work-submit-table th {
        font-size: 0.65rem;
    }
    
    .review-reason-cell {
        min-width: 80px;
        max-width: 120px;
    }
    
    .work-review-reason {
        font-size: 0.65rem;
    }
    
    .no-reason {
        font-size: 0.65rem;
    }
    
    /* 操作按钮 */
    .work-actions {
        min-height: 50px;
        white-space: nowrap;
    }
    
    .work-btn {
        padding: 0.3rem 0.5rem;
        font-size: 0.6rem;
    }
    
    /* 请假弹窗 */
    .leave-modal-container {
        max-width: 98%;
        width: 98%;
        padding: 1rem;
    }
    
    .leave-form-group label {
        font-size: 0.85rem;
    }
    
    .leave-form-group textarea {
        min-height: 80px;
        font-size: 0.85rem;
    }
    
    .leave-modal-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .leave-modal-actions button {
        width: 100%;
        min-height: 40px;
    }
    
    /* 补交弹窗 */
    .submit-modal-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .modal-submit-btn,
    .modal-cancel-btn {
        width: 100%;
        min-height: 42px;
        flex: none;
    }
    
    /* 提交信息 */
    .work-message {
        font-size: 0.8rem;
        padding: 0.5rem;
    }
}

/* ===== 超小屏幕适配 ===== */
@media (max-width: 480px) {
    .modal-container {
        max-width: 100%;
        width: 100%;
        border-radius: 8px 8px 0 0;
        max-height: 80vh;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        transform: none;
    }

    .modal-overlay {
        align-items: flex-end;
        padding: 0;
    }

    /* 审核意见弹窗移动端适配 */
    .review-reason-modal-container {
        max-width: 100%;
        width: 100%;
        padding: 1rem;
    }
    .review-reason-header {
        padding: 10px 14px;
        font-size: 0.95rem;
    }
    .review-reason-body {
        padding: 14px;
    }
    .review-reason-content {
        font-size: 0.9rem;
        padding: 12px;
    }
    
    /* 表格列优化 */
    .work-submit-table thead {
        display: none;
    }
    
    .work-submit-table tbody tr {
        display: block;
        border: 1px solid rgba(212, 175, 55, 0.2);
        border-radius: 8px;
        margin-bottom: 0.75rem;
        padding: 0.5rem;
        background: #242424;
    }
    
    .work-submit-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.35rem 0.5rem;
        border: none;
        border-bottom: 1px dashed rgba(212, 175, 55, 0.15);
    }
    
    .work-submit-table tbody td:last-child {
        border-bottom: none;
        justify-content: center;
        gap: 0.5rem;
        padding-top: 0.5rem;
    }
    
    .work-submit-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #8a8a8a;
        font-size: 0.7rem;
    }
    
    .work-submit-table tbody td:last-child::before {
        display: none;
    }
    
    .work-actions {
        min-height: auto;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .work-btn {
        flex: 1;
        min-width: 60px;
        max-width: 80px;
    }
    
    /* 审核意见列 */
    .review-reason-cell {
        min-width: auto;
        max-width: 100%;
    }
    
    .work-review-reason .reason-text {
        max-width: 100px;
    }
}
