/* 全局样式（与登录页100%统一） */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* 按钮弹跳动画 */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

/* 按钮点击动画 */
@keyframes press {
    0% {
        transform: translateY(-6px);
    }
    100% {
        transform: translateY(0);
    }
}

body {
    color: #37474f;
    line-height: 1.5;
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
}

/* 固定背景 - 使用伪元素替代 background-attachment: fixed */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../libs/image_20.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -5;
}

/* 暗角效果 */
.bg-layer-vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        ellipse at 50% 50%,
        transparent 50%,
        rgba(0, 0, 0, 0.08) 100%
    );
    z-index: 0;
    pointer-events: none;
}

/* 光斑动画 - 使用 contain 减少重排范围 */
.light-spot {
    position: fixed;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    contain: layout style paint;
}

.spot-1 {
    width: 100px;
    height: 100px;
    top: 25%;
    left: 20%;
    animation: floatSpot 12s ease-in-out infinite;
}

.spot-2 {
    width: 70px;
    height: 70px;
    top: 55%;
    left: 65%;
    animation: floatSpot 10s ease-in-out infinite reverse;
}

.spot-3 {
    width: 120px;
    height: 120px;
    top: 35%;
    left: 50%;
    animation: floatSpot 14s ease-in-out infinite 2s;
}

@keyframes floatSpot {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.3; }
    25% { transform: translate(20px, -15px) scale(1.1); opacity: 0.4; }
    50% { transform: translate(-15px, 20px) scale(0.9); opacity: 0.25; }
    75% { transform: translate(10px, 10px) scale(1.05); opacity: 0.35; }
}

/* 头部导航 - 毛玻璃效果 */
.header {
    height: 64px;
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
    backdrop-filter: blur(12px) saturate(120%);
    display: flex;
    align-items: center;
    padding: 0 48px;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: headerFadeIn 0.6s cubic-bezier(0.3, 0, 0.2, 1) 0.1s both;
}

@keyframes headerFadeIn {
    from { opacity: 0; transform: translateY(-16px); }
    to { opacity: 1; transform: translateY(0); }
}

.header .logo {
    font-size: 18px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    width: 220px;
    flex-shrink: 0;
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    gap: 6px;
    flex: 1;
    justify-content: center;
}

.nav-menu a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    font-weight: 300;
    padding: 8px 18px;
    border-radius: 10px;
    position: relative;
    letter-spacing: 1px;
    transition: color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.nav-menu a:hover {
    color: rgba(255, 255, 255, 1);
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.nav-menu a.active {
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.15);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 220px;
    flex-shrink: 0;
    justify-content: flex-end;
}

.user-info > span {
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
}

/* 主内容区 */
.main {
    padding: 30px 30px 20px;
    max-width: 1400px;
    margin: 0 auto;
    min-height: calc(100vh - 60px);
}

/* 卡片样式 */
.card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 28px;
    margin-bottom: 24px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.card-title {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 24px;
    color: #2c3e50;
    letter-spacing: 0.5px;
}

/* 按钮样式（100%同步登录页submit-btn） */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    /* 同步登录页按钮圆角 */
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: box-shadow 0.2s ease;
    text-decoration: none;
    text-align: center;
    outline: none;
    position: relative;
    overflow: hidden;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

/* 按钮光泽效果 */
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.2s ease;
}

.btn:hover::before {
    left: 100%;
}

/* 主按钮：蓝绿色渐变（登录页同款） */
.btn-primary {
    background: linear-gradient(135deg, #1976d2 0%, #66bb6a 100%);
    color: white;
}

.btn-primary:hover {
    animation: bounce 0.6s ease infinite;
    box-shadow: 0 6px 16px rgba(25, 118, 210, 0.25);
}

.btn-primary:active {
    animation: press 0.1s ease forwards;
}

/* 成功按钮：绿色渐变 */
.btn-success {
    background: linear-gradient(135deg, #43a047 0%, #66bb6a 100%);
    color: white;
}

.btn-success:hover {
    animation: bounce 0.6s ease infinite;
    box-shadow: 0 6px 16px rgba(67, 160, 71, 0.25);
}

.btn-success:active {
    animation: press 0.1s ease forwards;
}

/* 警告按钮：橙色渐变 */
.btn-warning {
    background: linear-gradient(135deg, #ef6c00 0%, #ffb300 100%);
    color: white;
}

.btn-warning:hover {
    animation: bounce 0.6s ease infinite;
    box-shadow: 0 6px 16px rgba(239, 108, 0, 0.25);
}

.btn-warning:active {
    animation: press 0.1s ease forwards;
}

/* 危险按钮：红色渐变 */
.btn-danger {
    background: linear-gradient(135deg, #e53935 0%, #f56c6c 100%);
    color: white;
}

.btn-danger:hover {
    animation: bounce 0.6s ease infinite;
    box-shadow: 0 6px 16px rgba(229, 57, 53, 0.25);
}

.btn-danger:active {
    animation: press 0.1s ease forwards;
}

.btn-info {
    background: linear-gradient(135deg, #00bcd4 0%, #0097a7 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
    transition: box-shadow 0.2s ease;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.2s ease;
}

.btn-info:hover::before {
    left: 100%;
}

.btn-info:hover {
    animation: bounce 0.6s ease infinite;
    box-shadow: 0 6px 16px rgba(0, 188, 212, 0.25);
}

.btn-info:active {
    animation: press 0.1s ease forwards;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 8px;
}

.btn:disabled,
.layui-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
    animation: none !important;
}

.btn:disabled::before,
.layui-btn:disabled::before {
    display: none;
}

/* 覆盖 layUI 按钮默认尖角，统一圆角 */
.layui-btn {
    border-radius: 14px !important;
    transition: box-shadow 0.2s ease !important;
    position: relative;
    overflow: hidden;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.layui-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.2s ease;
}

.layui-btn:hover::before {
    left: 100%;
}

.layui-btn:hover {
    animation: bounce 0.6s ease infinite;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.layui-btn:active {
    animation: press 0.1s ease forwards;
}

.layui-btn-sm {
    border-radius: 10px !important;
}
.layui-btn-xs {
    border-radius: 8px !important;
}

/* 表单样式（同步登录页） */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #37474f;
    font-size: 14px;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cfd8dc;
    /* 同步登录页输入框圆角 */
    border-radius: 12px;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
    box-sizing: border-box;
}

.form-input:focus {
    /* 同步登录页焦点颜色 */
    border-color: #1976d2;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

.form-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cfd8dc;
    border-radius: 12px;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
    background-color: white;
    box-sizing: border-box;
}

.form-select:focus {
    border-color: #1976d2;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-check input {
    width: 16px;
    height: 16px;
    /* 同步登录页复选框颜色 */
    accent-color: #1976d2;
}

.error-text {
    color: #f56c6c;
    font-size: 12px;
    margin-top: 6px;
}

/* 表格样式 */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #ebeef5;
}

.table th {
    background-color: #f5f7fa;
    font-weight: 600;
    color: #546e7a;
    font-size: 14px;
}

.table tr:hover {
    background-color: #f8fbf9;
}

/* 提示消息（同步登录页色调） */
.toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    border-radius: 14px;
    color: white;
    font-size: 14px;
    z-index: 3000;
    animation: fadeIn 0.3s ease;
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.toast-success {
    background: linear-gradient(135deg, #43a047 0%, #66bb6a 100%);
}

.toast-error {
    background: linear-gradient(135deg, #e53935 0%, #f56c6c 100%);
}

.toast-info {
    background: linear-gradient(135deg, #1976d2 0%, #4db6ac 100%);
}

.toast-warning {
    background: linear-gradient(135deg, #ff9800 0%, #ffb300 100%);
    color: white;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* 弹窗样式（同步登录页） */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: white;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.modal-header {
    padding: 24px;
    border-bottom: 1px solid #ebeef5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 20px;
    font-weight: bold;
    color: #1a237e;
}

.modal-close {
    cursor: pointer;
    font-size: 24px;
    color: #909399;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #1976d2;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 20px 24px;
    border-top: 1px solid #ebeef5;
    text-align: right;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* 徽章样式（同步登录页） */
.badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    color: white;
    font-weight: 500;
}

.badge-teacher {
    background: linear-gradient(135deg, #e53935 0%, #f56c6c 100%);
}

.badge-member {
    background: linear-gradient(135deg, #1976d2 0%, #4db6ac 100%);
}

/* 成员列表项 */
.member-item {
    padding: 8px 12px;
    background: rgba(248, 251, 249, 0.8);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

/* 任务状态样式 */
.task-status {
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    color: white;
    font-weight: 500;
}

.status-done {
    background: linear-gradient(135deg, #43a047 0%, #66bb6a 100%);
}

.status-doing {
    background: linear-gradient(135deg, #1976d2 0%, #4db6ac 100%);
}

.status-todo {
    background: linear-gradient(135deg, #78909c 0%, #90a4ae 100%);
}

/* 图表容器 */
.chart-container {
    width: 100%;
    height: 300px;
}

/* ==================== 评分汇总表格 ==================== */
.summary-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.summary-table th {
    background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
    color: white;
    padding: 14px 16px;
    font-size: 13px;
    text-align: center;
}

.summary-table td {
    padding: 12px 16px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.summary-table tr:hover td {
    background: #f5f7ff;
}

.summary-table .group-row:hover td {
    background: #e3f2fd;
}

/* 评分徽章 */
.score-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 13px;
}

.score-high { background: #e8f5e9; color: #2e7d32; }
.score-medium { background: #fff3e0; color: #e65100; }
.score-low { background: #ffebee; color: #c62828; }

/* ==================== 加载动画 ==================== */
.loading-spinner {
    text-align: center;
    padding: 40px;
    color: #909399;
}

/* ==================== 空状态 ==================== */
.empty-state {
    text-align: center;
    padding: 40px;
    color: #909399;
}

.empty-state .icon {
    font-size: 48px;
    margin-bottom: 16px;
}