/* ========== DeepST-Insight 全局样式 ========== */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

:root {
    --primary: #6C63FF;
    --primary-dark: #5A52D5;
    --secondary: #FF6584;
    --accent: #00D2FF;
    --bg-dark: #0f0c29;
    --bg-mid: #1a1a3e;
    --bg-card: rgba(255,255,255,0.06);
    --text-primary: #ffffff;
    --text-secondary: #b8b8d4;
    --sidebar-width: 260px;
    --gradient-1: linear-gradient(135deg, #6C63FF 0%, #00D2FF 100%);
    --gradient-2: linear-gradient(135deg, #FF6584 0%, #FFD93D 100%);
    --gradient-3: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
}

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

body {
    font-family: 'Noto Sans SC', sans-serif;
    background: var(--gradient-3);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ========== 欢迎页 (赛博朋克风格) ========== */
.welcome-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #0a0520 0%, #1a0a3e 30%, #3d1466 50%, #b8256e 70%, #ff6b35 85%, #ffa53a 95%);
    position: relative;
    overflow: hidden;
}

.welcome-page #starfield {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* 渐变太阳 */
.welcome-sun {
    position: absolute;
    bottom: 18%;
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, #ffcc33 0%, #ff8800 40%, #ff4466 70%, transparent 100%);
    box-shadow: 0 0 120px rgba(255,136,0,0.5), 0 0 240px rgba(255,68,102,0.3);
    z-index: 2;
    animation: sun-pulse 4s ease-in-out infinite;
}

/* 太阳横纹(synthwave条纹) */
.welcome-sun::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 8px,
        rgba(10,5,30,0.4) 8px,
        rgba(10,5,30,0.4) 12px
    );
    border-radius: 0 0 160px 160px;
}

@keyframes sun-pulse {
    0%, 100% { box-shadow: 0 0 120px rgba(255,136,0,0.5), 0 0 240px rgba(255,68,102,0.3); }
    50% { box-shadow: 0 0 160px rgba(255,136,0,0.6), 0 0 300px rgba(255,68,102,0.4); }
}

/* 城市天际线 */
.welcome-skyline {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    line-height: 0;
}

.welcome-skyline svg {
    width: 100%;
    height: 200px;
}

/* 地面网格线 */
.welcome-page::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background:
        linear-gradient(90deg, rgba(108,99,255,0.15) 1px, transparent 1px),
        linear-gradient(0deg, rgba(108,99,255,0.1) 1px, transparent 1px);
    background-size: 60px 20px;
    z-index: 4;
    mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.6) 100%);
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.6) 100%);
    perspective: 300px;
    transform: rotateX(45deg);
    transform-origin: bottom center;
}

/* DNA 图标 */
.welcome-dna-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(108,99,255,0.3), rgba(0,210,255,0.3));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: var(--accent);
    border: 2px solid rgba(0,210,255,0.3);
    animation: float 3s ease-in-out infinite;
    box-shadow: 0 0 30px rgba(0,210,255,0.2);
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.welcome-box {
    text-align: center;
    z-index: 10;
    padding: 50px 60px;
    border: 1px solid rgba(108,99,255,0.35);
    border-radius: 24px;
    background: rgba(10,5,30,0.75);
    backdrop-filter: blur(24px);
    max-width: 700px;
    width: 90%;
    box-shadow: 0 0 80px rgba(108,99,255,0.2), inset 0 0 40px rgba(108,99,255,0.05);
    animation: box-glow 3s ease-in-out infinite alternate;
}

@keyframes box-glow {
    0% { box-shadow: 0 0 60px rgba(108,99,255,0.15), inset 0 0 30px rgba(108,99,255,0.03); }
    100% { box-shadow: 0 0 100px rgba(108,99,255,0.25), inset 0 0 50px rgba(108,99,255,0.06); }
}

.welcome-box h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #fff 0%, #00D2FF 50%, #6C63FF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    margin-bottom: 12px;
    letter-spacing: 4px;
    text-shadow: none;
    filter: drop-shadow(0 0 20px rgba(0,210,255,0.3));
}

.welcome-box .subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
    line-height: 1.8;
}

.welcome-box .subtitle-detail {
    font-size: 0.85rem;
    color: rgba(184,184,212,0.7);
    margin-top: 8px;
    display: inline-block;
    letter-spacing: 1px;
}

.welcome-box .subtitle-en {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    color: var(--accent);
    letter-spacing: 3px;
    margin-bottom: 8px;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(0,210,255,0.5);
}

.btn-enter {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 52px;
    background: var(--gradient-1);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.15rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 30px rgba(108,99,255,0.5);
    position: relative;
    overflow: hidden;
}

.btn-enter::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-enter:hover::before {
    left: 100%;
}

.btn-enter:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 40px rgba(108,99,255,0.7);
}

/* ========== 登录/注册页 ========== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a0520 0%, #1a0a3e 40%, #2d1b69 70%, #1a1a3e 100%);
    position: relative;
    overflow: hidden;
}

/* 登录页装饰光斑 */
.auth-page::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(108,99,255,0.2) 0%, transparent 70%);
    top: -150px;
    right: -100px;
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.auth-page::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,101,132,0.15) 0%, transparent 70%);
    bottom: -100px;
    left: -80px;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite reverse;
}

.auth-card {
    background: rgba(255,255,255,0.97);
    border-radius: 24px;
    padding: 50px 40px;
    width: 420px;
    max-width: 90%;
    z-index: 10;
    box-shadow: 0 25px 80px rgba(0,0,0,0.4), 0 0 40px rgba(108,99,255,0.1);
    color: #333;
    position: relative;
}

.auth-card .auth-title {
    text-align: center;
    background: linear-gradient(135deg, #6C63FF, #00D2FF);
    color: #fff;
    padding: 16px;
    border-radius: 14px;
    font-size: 1.5rem;
    font-weight: 700;
    margin: -76px auto 30px;
    width: 72%;
    box-shadow: 0 8px 30px rgba(108,99,255,0.45);
    letter-spacing: 2px;
}

.auth-card p.hint {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s;
    outline: none;
    font-family: 'Noto Sans SC', sans-serif;
}

.form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108,99,255,0.1);
}

.btn-auth {
    width: 100%;
    padding: 14px;
    background: var(--gradient-1);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(108,99,255,0.4);
}

.auth-card .switch-link {
    text-align: center;
    margin-top: 20px;
    color: #666;
    font-size: 0.9rem;
}

.auth-card .switch-link a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.flash-msg {
    padding: 10px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.flash-msg.error { background: #ffe0e0; color: #c00; }
.flash-msg.success { background: #e0ffe0; color: #060; }

/* ========== 主布局 (侧边栏 + 内容) ========== */
.app-layout {
    display: flex;
    min-height: 100vh;
}

/* 侧边栏 */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #0d0b24 0%, #161240 40%, #1a1545 70%, #2a2060 100%);
    border-right: 1px solid rgba(108,99,255,0.12);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 100;
    overflow-y: auto;
}

/* 侧边栏顶部山景装饰 */
.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 180px;
    background:
        linear-gradient(180deg, rgba(108,99,255,0.08) 0%, transparent 100%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 260 120'%3E%3Cpath d='M0,120 L0,80 L30,60 L55,75 L80,35 L105,65 L130,20 L155,55 L180,40 L210,70 L240,45 L260,65 L260,120 Z' fill='rgba(108,99,255,0.06)'/%3E%3Cpath d='M0,120 L0,90 L40,70 L70,85 L100,50 L130,75 L160,45 L190,80 L220,60 L260,85 L260,120 Z' fill='rgba(108,99,255,0.04)'/%3E%3C/svg%3E") bottom center / cover no-repeat;
    pointer-events: none;
    z-index: 0;
}

.sidebar-header {
    padding: 28px 20px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    position: relative;
    z-index: 1;
}

.sidebar-header .logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 8px rgba(108,99,255,0.3));
}

.sidebar-header .logo-sub {
    font-size: 0.72rem;
    color: var(--text-secondary);
    margin-top: 4px;
    opacity: 0.8;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    position: relative;
    z-index: 1;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    margin-bottom: 4px;
    position: relative;
}

.sidebar-nav a:hover {
    background: rgba(108,99,255,0.12);
    color: var(--text-primary);
    transform: translateX(4px);
}

.sidebar-nav a.active {
    background: linear-gradient(135deg, rgba(108,99,255,0.9), rgba(0,210,255,0.7));
    color: #fff;
    box-shadow: 0 4px 20px rgba(108,99,255,0.35);
    font-weight: 600;
}

.sidebar-nav a.active::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: var(--accent);
    border-radius: 0 4px 4px 0;
    box-shadow: 0 0 10px rgba(0,210,255,0.5);
}

.sidebar-nav a .nav-icon {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255,255,255,0.06);
    position: relative;
    z-index: 1;
}

.sidebar-footer .user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.sidebar-footer .user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gradient-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 2px 10px rgba(255,101,132,0.3);
}

.sidebar-footer .user-name {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.sidebar-footer .btn-logout {
    display: block;
    text-align: center;
    padding: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.85rem;
    transition: all 0.25s;
    border: 1px solid rgba(255,255,255,0.08);
}

.sidebar-footer .btn-logout:hover {
    background: rgba(255,101,132,0.15);
    color: var(--secondary);
    border-color: var(--secondary);
    box-shadow: 0 0 15px rgba(255,101,132,0.1);
}

/* 主内容区 */
.main-content {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    flex: 0 0 calc(100% - var(--sidebar-width));
    padding: 40px;
    min-height: 100vh;
}

.page-header {
    margin-bottom: 32px;
}

.page-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.page-header .breadcrumb {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* ========== 卡片 ========== */
.card {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.card:hover {
    border-color: rgba(108,99,255,0.3);
    box-shadow: 0 4px 20px rgba(108,99,255,0.1);
}

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-title .icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.card-title .icon.purple { background: rgba(108,99,255,0.2); }
.card-title .icon.pink { background: rgba(255,101,132,0.2); }
.card-title .icon.blue { background: rgba(0,210,255,0.2); }
.card-title .icon.green { background: rgba(0,255,136,0.2); }

/* ========== 数据集卡片 ========== */
.dataset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
}

.dataset-card {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
}

.dataset-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 8px 30px rgba(108,99,255,0.2);
}

.dataset-card .card-header {
    padding: 24px;
    background: linear-gradient(135deg, rgba(108,99,255,0.15) 0%, rgba(0,210,255,0.1) 100%);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.dataset-card .card-header h3 {
    font-size: 1.15rem;
    margin-bottom: 4px;
}

.dataset-card .card-header .tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.tag.human { background: rgba(108,99,255,0.25); color: #a9a4ff; }
.tag.mouse { background: rgba(0,210,255,0.25); color: #7eeeff; }

.dataset-card .card-body {
    padding: 24px;
}

.dataset-card .info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 0.9rem;
}

.dataset-card .info-row .label {
    color: var(--text-secondary);
}

.dataset-card .info-row .value {
    font-weight: 600;
    color: var(--accent);
}

/* ========== 分析页 ========== */
.analysis-form {
    max-width: 700px;
}

.analysis-form.analysis-form-wide {
    max-width: 100%;
}

.form-section {
    margin-bottom: 28px;
}

.form-section h3 {
    font-size: 1rem;
    margin-bottom: 12px;
    color: var(--accent);
}

.form-row {
    margin-bottom: 18px;
}

.form-row label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
    font-weight: 500;
}

.form-row .hint {
    font-size: 0.78rem;
    color: #888;
    margin-top: 4px;
}

.form-row select,
.form-row input[type="number"],
.form-row input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s;
    font-family: 'Noto Sans SC', sans-serif;
}

.form-row select:focus,
.form-row input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108,99,255,0.15);
}

.form-row select option {
    background: #1a1a3e;
    color: #fff;
}

.analysis-param-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.analysis-param-grid .form-row {
    margin-bottom: 0;
}

.module-switch {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.module-switch-btn {
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.05);
    color: var(--text-secondary);
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 0.92rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.module-switch-btn:hover {
    color: var(--text-primary);
    border-color: rgba(108,99,255,0.6);
    background: rgba(108,99,255,0.15);
}

.module-switch-btn.active {
    color: #fff;
    border-color: rgba(108,99,255,0.9);
    background: linear-gradient(135deg, rgba(108,99,255,0.85), rgba(0,210,255,0.55));
    box-shadow: 0 4px 14px rgba(108,99,255,0.28);
}

.module-panel {
    margin-top: 16px;
}

.module-desc {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 14px;
}

.module-status {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 12px;
}

.btn-run {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 40px;
    background: var(--gradient-1);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(108,99,255,0.3);
}

.btn-run:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(108,99,255,0.5);
}

.btn-run:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ========== 进度条 ========== */
.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    overflow: hidden;
    margin: 20px 0;
    display: none;
}

.progress-bar.active { display: block; }

.progress-bar .fill {
    height: 100%;
    background: var(--gradient-1);
    border-radius: 3px;
    animation: progress-anim 2s ease-in-out infinite;
    width: 30%;
}

@keyframes progress-anim {
    0% { margin-left: -30%; }
    100% { margin-left: 100%; }
}

/* ========== 结果展示 ========== */
.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 24px;
}

.result-card {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    overflow: hidden;
}

.result-card .card-head {
    padding: 16px 24px;
    background: rgba(108,99,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.result-card .card-content {
    padding: 20px;
}

.result-card img {
    width: 100%;
    border-radius: 8px;
    background: #fff;
}

.result-quad-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.result-panel {
    min-height: 100%;
}

.panel-desc {
    color: var(--text-secondary);
    font-size: 0.82rem;
    margin-top: 10px;
}

.ari-value {
    font-size: 2.4rem;
    line-height: 1;
    font-weight: 800;
    color: #FFD93D;
    margin-bottom: 12px;
}

.ari-explain {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.9rem;
}

.ari-note {
    margin-top: 10px;
    font-size: 0.82rem;
    color: #ffd1d1;
    background: rgba(255, 101, 132, 0.1);
    border: 1px solid rgba(255, 101, 132, 0.25);
    border-radius: 8px;
    padding: 10px 12px;
}

.cluster-chip-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 12px;
}

.cluster-chip {
    background: rgba(108,99,255,0.1);
    border: 1px solid rgba(108,99,255,0.2);
    border-radius: 10px;
    padding: 12px 14px;
    text-align: center;
}

.cluster-chip-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
}

.cluster-chip-label {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* 指标卡片 */
.metrics-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.metric-box {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.metric-box .metric-value {
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.metric-box .metric-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* 标记基因表格 */
.marker-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.marker-table th {
    background: rgba(108,99,255,0.12);
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    color: var(--accent);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.marker-table td {
    padding: 9px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: var(--text-secondary);
}

.marker-table tr:hover td {
    background: rgba(108,99,255,0.05);
    color: var(--text-primary);
}

/* ========== 指南页时间线 ========== */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 32px;
    padding-left: 24px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid var(--bg-dark);
    box-shadow: 0 0 10px rgba(108,99,255,0.5);
}

.timeline-item h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
    color: var(--accent);
}

.timeline-item p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.92rem;
}

/* ========== 知识科普 ========== */
.knowledge-section {
    margin-bottom: 32px;
}

.knowledge-section h2 {
    font-size: 1.3rem;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(108,99,255,0.3);
}

.layer-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.layer-table th {
    background: rgba(108,99,255,0.12);
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--accent);
}

.layer-table td {
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: var(--text-secondary);
    vertical-align: top;
    line-height: 1.6;
}

.layer-table tr:hover td {
    background: rgba(108,99,255,0.05);
}

/* ========== 关于页 ========== */
.about-hero {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, rgba(108,99,255,0.1) 0%, rgba(0,210,255,0.05) 100%);
    border-radius: 16px;
    margin-bottom: 32px;
    border: 1px solid rgba(108,99,255,0.15);
}

.about-hero h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    margin-bottom: 12px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.card > div[style*="grid-template-columns: repeat(auto-fit, minmax(160px, 1fr))"] > div {
    display: flex;
    flex-direction: column;
}

.card > div[style*="grid-template-columns: repeat(auto-fit, minmax(160px, 1fr))"] > div > div:first-child {
    display: block !important;
    flex: 0 0 260px;
}

.card > div[style*="grid-template-columns: repeat(auto-fit, minmax(160px, 1fr))"] > div > div:first-child img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain;
    object-position: center;
}

.tech-stack {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.tech-item {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
}

.tech-item:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}

.tech-item .tech-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.tech-item .tech-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.tech-item .tech-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ========== 状态指示 ========== */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-badge.running {
    background: rgba(255,193,7,0.2);
    color: #ffd93d;
}

.status-badge.completed {
    background: rgba(0,255,136,0.2);
    color: #00ff88;
}

.status-badge.error {
    background: rgba(255,68,68,0.2);
    color: #ff6b6b;
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    .sidebar { display: none; }
    .main-content { margin-left: 0; width: 100%; flex: 1 1 auto; padding: 20px; }
    .result-grid { grid-template-columns: 1fr; }
    .result-quad-grid { grid-template-columns: 1fr; }
    .dataset-grid { grid-template-columns: 1fr; }
    .analysis-param-grid { grid-template-columns: 1fr; }
    .module-switch { flex-direction: column; }
    .module-switch-btn { width: 100%; justify-content: center; }
    .welcome-box h1 { font-size: 2rem; }
}

/* ========== 加载动画 ========== */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}

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

/* ========== 流程图 ========== */
.flow-steps {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.flow-step {
    background: rgba(108,99,255,0.12);
    border: 1px solid rgba(108,99,255,0.25);
    border-radius: 10px;
    padding: 12px 20px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--accent);
    text-align: center;
    min-width: 140px;
}

.flow-arrow {
    color: var(--primary);
    font-size: 1.3rem;
}

/* ========== 历史列表 ========== */
.history-list {
    margin-top: 20px;
}

.history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.history-item:hover {
    border-color: var(--primary);
    background: rgba(108,99,255,0.08);
}
