/**
 * 学生信息管理系统 - 简约白色风格
 * 苹果设计语言 · 白色为主 · 黑色线条 · 光影随动
 */

/* ==================== CSS变量 ==================== */
:root {
    /* 白色系主色调 */
    --white: #ffffff;
    --white-95: rgba(255, 255, 255, 0.95);
    --white-90: rgba(255, 255, 255, 0.9);
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #f0f0f0;
    --gray-300: #e5e5e5;
    --gray-400: #d4d4d4;
    --gray-500: #a3a3a3;
    --gray-600: #737373;
    --gray-700: #525252;
    --gray-800: #383838;
    --gray-900: #171717;
    --black: #000000;

    /* 主题色 */
    --primary: #171717;
    --accent: #2563eb;

    /* 功能色 */
    --success: #16a34a;
    --danger: #dc2626;
    --warning: #ca8a04;

    /* 背景 */
    --bg: #ffffff;
    --bg-subtle: #fafafa;
    --bg-card: #ffffff;

    /* 文字 */
    --text-primary: #171717;
    --text-secondary: #525252;
    --text-muted: #a3a3a3;

    /* 边框 */
    --border: #e5e5e5;
    --border-strong: #d4d4d4;

    /* 阴影 */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.1);

    /* 圆角 */
    --radius-sm: 6px;
    --radius: 8px;
    --radius-md: 10px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* 间距 */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;

    /* 字体 */
    --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 11px;
    --font-size-sm: 13px;
    --font-size: 15px;
    --font-size-md: 17px;
    --font-size-lg: 20px;
    --font-size-xl: 24px;
    --font-size-2xl: 30px;

    /* 动效 */
    --ease-out: cubic-bezier(0.0, 0.0, 0.2, 1);
    --ease-in-out: cubic-bezier(0.4, 0.0, 0.2, 1);
    --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ==================== 基础 ==================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    font-size: var(--font-size);
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-subtle);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ==================== 线条波动动画 ==================== */
.line-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.15;
}

/* ==================== 页面过渡动画 ==================== */
.view {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
    display: none;
}

.view.active {
    opacity: 1;
    transform: translateY(0);
    display: block;
}

.view.hidden {
    display: none;
}

/* ==================== 卡片动画 ==================== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    margin-bottom: var(--space-4);
    opacity: 0;
    transform: translateY(12px);
    animation: slideUp 0.5s var(--ease-out) forwards;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card:nth-child(1) { animation-delay: 0ms; }
.card:nth-child(2) { animation-delay: 80ms; }
.card:nth-child(3) { animation-delay: 160ms; }
.card:nth-child(4) { animation-delay: 240ms; }
.card:nth-child(5) { animation-delay: 320ms; }

/* ==================== 标签页内容过渡 ==================== */
.tab-content {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}

.tab-content.active {
    opacity: 1;
    transform: translateY(0);
}

.tab-content:not(.active) {
    display: none;
}

/* ==================== 模态框过渡 ==================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 1000;
    padding: var(--space-4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease-out), visibility 0.3s var(--ease-out);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-card);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    width: 100%;
    max-width: 420px;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.4s var(--ease-spring), opacity 0.3s var(--ease-out);
    opacity: 0;
}

.modal-overlay.active .modal {
    transform: translateY(0);
    opacity: 1;
}

/* ==================== 容器 ==================== */
.container {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    padding: var(--space-4);
}

.container-fluid {
    width: 100%;
    padding: var(--space-4);
}

/* ==================== 卡片 ==================== */
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: var(--space-4);
    margin-bottom: var(--space-4);
    border-bottom: 1px solid var(--border);
}

.card-title {
    font-size: var(--font-size-md);
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

/* ==================== 按钮 ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    font-family: var(--font);
    font-size: var(--font-size);
    font-weight: 500;
    line-height: 1;
    color: var(--text-primary);
    background: var(--white);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s var(--ease-out);
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
}

.btn:active {
    transform: scale(0.97);
    transition-duration: 0.1s;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.btn-secondary {
    background: var(--white);
    color: var(--text-primary);
    border-color: var(--border);
}

.btn-danger {
    background: var(--white);
    color: var(--danger);
    border-color: var(--danger);
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: var(--space-2) var(--space-3);
    font-size: var(--font-size-sm);
    min-height: 32px;
}

.btn-lg {
    padding: var(--space-4) var(--space-6);
    font-size: var(--font-size-md);
    min-height: 52px;
}

/* ==================== 表单 ==================== */
.form-group {
    margin-bottom: var(--space-4);
}

.form-label {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--space-2);
}

.form-input {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-family: var(--font);
    font-size: var(--font-size);
    color: var(--text-primary);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    outline: none;
    transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
    min-height: 44px;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(23, 23, 23, 0.06);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-select {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    padding-right: var(--space-10);
    font-family: var(--font);
    font-size: var(--font-size);
    color: var(--text-primary);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    outline: none;
    cursor: pointer;
    min-height: 44px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23737373' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(23, 23, 23, 0.06);
}

/* ==================== 徽章 ==================== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px var(--space-2);
    font-size: var(--font-size-xs);
    font-weight: 600;
    letter-spacing: 0.3px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
}

.badge-danger {
    background: rgba(220, 38, 38, 0.08);
    color: var(--danger);
}

.badge-success {
    background: rgba(22, 163, 74, 0.08);
    color: var(--success);
}

/* ==================== 警告框 ==================== */
.alert {
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius);
    margin-bottom: var(--space-4);
    font-size: var(--font-size-sm);
    border-left: 2px solid;
}

.alert-info {
    background: rgba(37, 99, 235, 0.04);
    border-color: var(--accent);
    color: var(--accent);
}

/* ==================== 表格 ==================== */
.table-container {
    overflow-x: auto;
    margin: 0 calc(-1 * var(--space-4));
    padding: 0 var(--space-4);
}

.table {
    width: 100%;
    min-width: 580px;
    border-collapse: collapse;
    font-size: var(--font-size-sm);
}

.table th,
.table td {
    padding: var(--space-3) var(--space-4);
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.table th {
    font-weight: 500;
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--gray-50);
}

.table tr:last-child td {
    border-bottom: none;
}

.table .absence-row {
    background: rgba(220, 38, 38, 0.02);
}

/* 表格行动画 */
.table tbody tr {
    opacity: 0;
    animation: fadeInRow 0.3s var(--ease-out) forwards;
}

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

.table tbody tr:nth-child(1) { animation-delay: 0ms; }
.table tbody tr:nth-child(2) { animation-delay: 30ms; }
.table tbody tr:nth-child(3) { animation-delay: 60ms; }
.table tbody tr:nth-child(4) { animation-delay: 90ms; }
.table tbody tr:nth-child(5) { animation-delay: 120ms; }
.table tbody tr:nth-child(6) { animation-delay: 150ms; }
.table tbody tr:nth-child(7) { animation-delay: 180ms; }
.table tbody tr:nth-child(8) { animation-delay: 210ms; }
.table tbody tr:nth-child(9) { animation-delay: 240ms; }
.table tbody tr:nth-child(10) { animation-delay: 270ms; }

/* ==================== 模态框 ==================== */
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--space-5);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.modal-title {
    font-size: var(--font-size-md);
    font-weight: 600;
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 16px;
    color: var(--text-secondary);
    flex-shrink: 0;
    transition: all 0.2s var(--ease-out);
}

.modal-close:hover {
    background: var(--gray-200);
}

.modal-close:active {
    transform: scale(0.9);
}

.modal-body {
    padding: var(--space-5);
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}

/* ==================== 页面头部 ==================== */
.page-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: var(--space-6) var(--space-4);
    text-align: center;
}

.page-header h1 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    letter-spacing: -0.5px;
    margin-bottom: var(--space-1);
}

.page-header p {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

/* ==================== 导航 ==================== */
.nav-tabs {
    display: flex;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 3px;
    margin-bottom: var(--space-4);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.nav-tab {
    flex: 1;
    min-width: fit-content;
    padding: var(--space-3);
    font-family: var(--font);
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s var(--ease-out);
}

.nav-tab.active {
    background: var(--primary);
    color: var(--white);
}

.nav-tab:not(.active):hover {
    background: var(--gray-100);
}

.nav-tab:not(.active):active {
    transform: scale(0.97);
}

/* ==================== 空状态 ==================== */
.empty-state {
    text-align: center;
    padding: var(--space-12) var(--space-4);
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 40px;
    margin-bottom: var(--space-3);
    opacity: 0.3;
}

.empty-state-text {
    font-size: var(--font-size-sm);
}

/* ==================== 加载 ==================== */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-8);
}

.spinner {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==================== Toast ==================== */
.toast-container {
    position: fixed;
    bottom: calc(var(--space-4) + env(safe-area-inset-bottom, 0));
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    width: calc(100% - var(--space-8));
    max-width: 360px;
}

.toast {
    padding: var(--space-3) var(--space-4);
    background: var(--gray-900);
    color: var(--white);
    border-radius: var(--radius);
    margin-bottom: var(--space-2);
    font-size: var(--font-size-sm);
    font-weight: 500;
    text-align: center;
    animation: toastIn 0.4s var(--ease-spring) forwards;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ==================== 信息网格 ==================== */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
}

.info-item {
    padding: var(--space-3);
    background: var(--gray-50);
    border-radius: var(--radius);
    border: 1px solid transparent;
    transition: all 0.25s var(--ease-out);
}

.info-item:hover {
    border-color: var(--border-strong);
    transform: translateY(-1px);
}

.info-label {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.info-value {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-primary);
}

/* ==================== 数据列表 ==================== */
.data-list {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.data-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4);
    border-bottom: 1px solid var(--border);
    opacity: 0;
    animation: fadeInItem 0.3s var(--ease-out) forwards;
    transition: background 0.2s var(--ease-out);
}

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

.data-item:nth-child(1) { animation-delay: 0ms; }
.data-item:nth-child(2) { animation-delay: 40ms; }
.data-item:nth-child(3) { animation-delay: 80ms; }
.data-item:nth-child(4) { animation-delay: 120ms; }
.data-item:nth-child(5) { animation-delay: 160ms; }

.data-item:last-child {
    border-bottom: none;
}

.data-item:hover {
    background: var(--gray-50);
}

.data-item-content {
    flex: 1;
    min-width: 0;
}

.data-item-title {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.data-item-subtitle {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    margin-top: 2px;
}

/* ==================== 分页 ==================== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    margin-top: var(--space-6);
}

.pagination-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s var(--ease-out);
}

.pagination-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* ==================== 工具类 ==================== */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.mt-4 { margin-top: var(--space-4); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.hidden { display: none !important; }

/* ==================== 文件上传 ==================== */
.file-upload {
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-lg);
    padding: var(--space-8) var(--space-4);
    text-align: center;
    cursor: pointer;
    background: var(--gray-50);
    transition: all 0.2s var(--ease-out);
}

.file-upload:hover {
    border-color: var(--gray-400);
    background: var(--gray-100);
}

.file-upload:active {
    transform: scale(0.99);
}

.file-upload-icon {
    font-size: 28px;
    color: var(--text-muted);
    margin-bottom: var(--space-2);
}

.file-upload-text {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.file-upload-hint {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    margin-top: var(--space-1);
}

/* ==================== 操作按钮组 ==================== */
.action-group {
    display: flex;
    gap: var(--space-2);
}

.action-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 13px;
    color: var(--text-secondary);
    transition: all 0.2s var(--ease-out);
}

.action-btn:active {
    transform: scale(0.93);
}

.action-btn.view {
    color: var(--accent);
    border-color: var(--accent);
}

.action-btn.view:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.action-btn.edit:hover {
    background: var(--gray-100);
}

.action-btn.delete {
    color: var(--danger);
    border-color: var(--danger);
}

.action-btn.delete:hover {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
}

/* ==================== 导入报告 ==================== */
.import-report {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    margin-top: var(--space-4);
    animation: slideUp 0.4s var(--ease-out);
}

.import-report h3 {
    font-size: var(--font-size-md);
    font-weight: 600;
    margin-bottom: var(--space-4);
}

.import-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.import-stat {
    text-align: center;
    padding: var(--space-4);
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.import-stat-value {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--primary);
}

.import-stat-label {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    margin-top: var(--space-1);
}

/* ==================== 移动端适配 ==================== */
@media (max-width: 767px) {
    .modal-overlay {
        align-items: flex-end;
    }

    .modal {
        max-width: 100%;
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    }
}

/* ==================== PC端适配 ==================== */
@media (min-width: 768px) {
    .container {
        max-width: 680px;
        padding: var(--space-6);
    }

    .container-fluid {
        padding: var(--space-6);
    }

    .page-header {
        padding: var(--space-8) var(--space-6);
    }

    .page-header h1 {
        font-size: var(--font-size-xl);
    }

    .card {
        padding: var(--space-6);
        border-radius: var(--radius-xl);
    }

    .info-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .table {
        min-width: auto;
    }

    .table-container {
        margin: 0;
        overflow-x: visible;
    }

    .modal-overlay {
        align-items: center;
    }

    .modal {
        border-radius: var(--radius-xl);
        max-width: 520px;
        max-height: 80vh;
    }

    .modal-overlay.active .modal {
        transform: translateY(0);
    }

    .nav-tabs {
        border-radius: var(--radius-xl);
        padding: var(--space-1);
    }

    .nav-tab {
        padding: var(--space-3) var(--space-5);
        font-size: var(--font-size);
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 900px;
    }

    .modal {
        max-width: 600px;
    }
}

/* ==================== 滚动条 ==================== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 3px;
}

/* ==================== 学生端Hero ==================== */
.student-hero {
    text-align: center;
    padding: var(--space-8) var(--space-4);
    margin-bottom: var(--space-6);
}

.student-hero h1 {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: var(--space-2);
}

.student-hero p {
    font-size: var(--font-size);
    color: var(--text-muted);
}

/* ==================== 结果卡片 ==================== */
.result-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: var(--space-4);
}

.result-header {
    padding: var(--space-4) var(--space-5);
    border-bottom: 1px solid var(--border);
}

.result-body {
    padding: var(--space-5);
}

/* ==================== 详情头像 ==================== */
.detail-avatar {
    width: 72px;
    height: 72px;
    background: var(--gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--text-secondary);
    margin: 0 auto var(--space-4);
}

/* ==================== 详情统计 ==================== */
.detail-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
    margin: var(--space-5) 0;
}

.detail-stat {
    text-align: center;
    padding: var(--space-3);
    background: var(--gray-50);
    border-radius: var(--radius);
}

.detail-stat-value {
    font-size: var(--font-size-md);
    font-weight: 600;
    color: var(--text-primary);
}

.detail-stat-label {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* ==================== 页面进入动画 ==================== */
.page-enter {
    opacity: 0;
    transform: translateY(20px);
}

.page-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

/* ==================== 数据项依次进入 ==================== */
.stagger-item {
    opacity: 0;
    transform: translateY(8px);
}

.stagger-item-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
