/* =============================================
   智慧医学贯通教学平台 — 全面升级版样式 v3
   ============================================= */

/* ---------- 基础与排版 ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Noto+Sans+SC:wght@300;400;500;600;700;800&display=swap');

:root {
    --blue-primary: #2563eb;
    --blue-dark: #1e40af;
    --blue-light: #dbeafe;
    --green-primary: #059669;
    --green-light: #d1fae5;
    --amber-primary: #d97706;
    --amber-light: #fef3c7;
    --purple-primary: #7c3aed;
    --purple-light: #ede9fe;
    --rose-primary: #e11d48;
    --rose-light: #ffe4e6;
    --cyan-primary: #0891b2;
    --cyan-light: #cffafe;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.04);
    --shadow-lg: 0 12px 40px rgba(0,0,0,.1), 0 4px 12px rgba(0,0,0,.05);
    --shadow-xl: 0 24px 60px rgba(0,0,0,.12);
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 全局最小字号保障 */
body, input, select, textarea, button, a, span, p, div, li, td, th, label {
    font-size: 16px;
}
h1 { font-size: 2.25rem; font-weight: inherit; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }
small, .text-small { font-size: 16px !important; }

/* ---------- 内部页面医学主题背景 ---------- */
.page-medical-bg {
    background:
        linear-gradient(135deg, #f0f9ff 0%, #ecfdf5 30%, #f0fdf4 60%, #eff6ff 100%);
    min-height: 100vh;
    position: relative;
}
.page-medical-bg::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 10% 20%, rgba(37,99,235,.03) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 80%, rgba(5,150,105,.03) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(16,185,129,.02) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}
.page-medical-bg > main {
    position: relative;
    z-index: 1;
}

/* ---------- 滚动条 ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

/* ---------- 首页 Hero ---------- */
.hero-section {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 40%, #0c4a6e 70%, #134e4a 100%);
    background-size: 400% 400%;
    animation: heroBreath 12s ease-in-out infinite;
    overflow: hidden;
}
@keyframes heroBreath {
    0% { background-position: 0% 50%; }
    25% { background-position: 50% 0%; }
    50% { background-position: 100% 50%; }
    75% { background-position: 50% 100%; }
    100% { background-position: 0% 50%; }
}

.hero-section h1,
.hero-section h1 span {
    font-size: clamp(3rem, 6vw, 5.5rem) !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
}

/* 副标题炫彩科技感 */
.hero-border-flow {
    position: relative;
    overflow: hidden;
}
.hero-border-flow::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: conic-gradient(from 0deg, transparent 0%, #60a5fa 10%, #a78bfa 20%, #34d399 30%, transparent 40%);
    animation: borderRotate 3s linear infinite;
    z-index: 0;
}
.hero-border-flow > * {
    position: relative;
    z-index: 1;
}
@keyframes borderRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.hero-subtitle-badge {
    background: linear-gradient(135deg, rgba(96,165,250,.12) 0%, rgba(139,92,246,.12) 30%, rgba(52,211,153,.12) 60%, rgba(96,165,250,.12) 100%);
    border: 1px solid rgba(255,255,255,.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: relative;
    overflow: hidden;
    animation: subtitleGlow 4s ease-in-out infinite alternate;
}
.hero-subtitle-badge::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 200%; height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(96,165,250,.15) 25%, rgba(139,92,246,.2) 50%, rgba(52,211,153,.15) 75%, transparent 100%);
    animation: subtitleShimmer 3s ease-in-out infinite;
}
.hero-subtitle-badge::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, #60a5fa, #8b5cf6, #34d399, #60a5fa);
    background-size: 300% 300%;
    animation: borderGradient 4s ease infinite;
    z-index: -1;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    padding: 1.5px;
}
@keyframes subtitleShimmer {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(50%); }
}
@keyframes subtitleGlow {
    0% { box-shadow: 0 0 20px rgba(96,165,250,.15), 0 0 40px rgba(139,92,246,.08); }
    100% { box-shadow: 0 0 25px rgba(52,211,153,.18), 0 0 50px rgba(96,165,250,.1); }
}
@keyframes borderGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.hero-subtitle-text {
    color: rgba(255,255,255,.75);
    font-weight: 500;
}
.hero-subtitle-highlight {
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 40%, #34d399 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    animation: textShimmer 3s ease-in-out infinite alternate;
}
@keyframes textShimmer {
    0% { filter: brightness(1); }
    100% { filter: brightness(1.3); }
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(59,130,246,.2) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(16,185,129,.18) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(139,92,246,.14) 0%, transparent 50%);
    animation: heroFlow 20s ease-in-out infinite;
}
@keyframes heroFlow {
    0% { transform: translate(0, 0) rotate(0deg) scale(1); }
    25% { transform: translate(5%, -3%) rotate(3deg) scale(1.05); }
    50% { transform: translate(-3%, 5%) rotate(-2deg) scale(1.02); }
    75% { transform: translate(-5%, -2%) rotate(4deg) scale(1.06); }
    100% { transform: translate(0, 0) rotate(0deg) scale(1); }
}

/* 流动光带 */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        linear-gradient(120deg, transparent 30%, rgba(96,165,250,.07) 40%, transparent 50%),
        linear-gradient(240deg, transparent 30%, rgba(52,211,153,.07) 40%, transparent 50%),
        linear-gradient(60deg, transparent 30%, rgba(139,92,246,.06) 40%, transparent 50%);
    background-size: 200% 200%;
    animation: heroWaves 8s ease-in-out infinite;
    pointer-events: none;
}
@keyframes heroWaves {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}

/* DNA / 分子动画装饰 */
.hero-molecule {
    position: absolute;
    border-radius: 50%;
    opacity: .08;
    background: white;
    animation: float 20s ease-in-out infinite;
}
.hero-molecule:nth-child(1) { width: 300px; height: 300px; top: 10%; left: 5%; animation-delay: 0s; }
.hero-molecule:nth-child(2) { width: 200px; height: 200px; top: 60%; right: 10%; animation-delay: -5s; }
.hero-molecule:nth-child(3) { width: 150px; height: 150px; bottom: 20%; left: 30%; animation-delay: -10s; }
.hero-molecule:nth-child(4) { width: 80px; height: 80px; top: 30%; right: 25%; animation-delay: -7s; opacity: .12; }
.hero-molecule:nth-child(5) { width: 120px; height: 120px; top: 50%; left: 60%; animation-delay: -3s; opacity: .06; }
.hero-molecule:nth-child(6) { width: 60px; height: 60px; top: 15%; left: 75%; animation-delay: -12s; opacity: .1; }

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
}

/* 连接线动画 */
.hero-lines {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.hero-lines::before,
.hero-lines::after {
    content: '';
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.04), transparent);
    height: 1px;
    width: 100%;
}
.hero-lines::before { top: 30%; animation: slideLine 8s linear infinite; }
.hero-lines::after { top: 70%; animation: slideLine 12s linear infinite reverse; }
@keyframes slideLine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* DNA双螺旋装饰 */
.hero-dna {
    position: absolute;
    right: 8%;
    top: 50%;
    transform: translateY(-50%);
    width: 120px;
    height: 400px;
    opacity: .06;
    animation: dnaRotate 30s linear infinite;
}
@keyframes dnaRotate {
    0% { transform: translateY(-50%) rotateY(0deg); }
    100% { transform: translateY(-50%) rotateY(360deg); }
}

/* 粒子点阵 */
.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.hero-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(255,255,255,.15);
    border-radius: 50%;
    animation: particleFloat 15s ease-in-out infinite;
}
@keyframes particleFloat {
    0%, 100% { transform: translateY(0) translateX(0); opacity: .15; }
    25% { transform: translateY(-40px) translateX(20px); opacity: .3; }
    50% { transform: translateY(-20px) translateX(-15px); opacity: .15; }
    75% { transform: translateY(-50px) translateX(10px); opacity: .25; }
}

/* ---------- 导航栏 ---------- */
.nav-main {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 2rem;
    transition: all .3s ease;
}
.nav-main.scrolled {
    background: rgba(15, 23, 42, .85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,.05);
    padding: .75rem 2rem;
}
.nav-main .nav-brand {
    font-size: 1.375rem;
    font-weight: 700;
    color: white;
    letter-spacing: -.02em;
}
.nav-main .nav-brand span {
    background: linear-gradient(135deg, #60a5fa, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.nav-main .nav-link {
    color: rgba(255,255,255,.6);
    font-size: 1rem;
    font-weight: 500;
    transition: color .2s;
    text-decoration: none;
}
.nav-main .nav-link:hover { color: white; }

/* ---------- 双层导航系统 ---------- */
.nav-system {
    position: sticky;
    top: 0;
    z-index: 50;
}

/* 主导航 */
.nav-main-bar {
    background: linear-gradient(135deg, #1e3a5f 0%, #0f4c5c 50%, #1a365d 100%);
    box-shadow: 0 2px 12px rgba(0,0,0,.15);
}
.nav-main-bar .nav-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    letter-spacing: -.02em;
    text-decoration: none;
    white-space: nowrap;
}
.nav-main-bar .nav-brand span {
    background: linear-gradient(135deg, #60a5fa, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.nav-main-bar .nav-link-main {
    color: rgba(255,255,255,.75);
    font-size: 1rem;
    font-weight: 500;
    padding: .75rem 1rem;
    transition: all .2s;
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
}
.nav-main-bar .nav-link-main:hover {
    color: white;
    background: rgba(255,255,255,.06);
}
.nav-main-bar .nav-link-main.active {
    color: white;
    border-bottom-color: #60a5fa;
    background: rgba(255,255,255,.08);
}

/* 子导航 */
.nav-sub-bar {
    background: white;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.nav-sub-bar .sub-nav-item {
    position: relative;
    padding: .625rem 1.125rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray-500);
    text-decoration: none;
    transition: all .2s;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
}
.nav-sub-bar .sub-nav-item:hover { color: var(--gray-800); background: var(--gray-50); }
.nav-sub-bar .sub-nav-item.active {
    color: var(--blue-primary);
    border-bottom-color: var(--blue-primary);
}

/* ---------- 卡片系统 ---------- */
.card-elevated {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-sm);
    transition: all .3s cubic-bezier(.4,0,.2,1);
}
.card-elevated:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    border-color: var(--gray-200);
}

/* 功能卡片 */
.feature-card {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius-lg);
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: all .4s cubic-bezier(.4,0,.2,1);
}
.feature-card:hover {
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.15);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,.2);
}
.feature-card .feature-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* ---------- 门户选择页 ---------- */
.portal-bg {
    min-height: 100vh;
    background: linear-gradient(160deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
}
.portal-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 300px;
    background: linear-gradient(135deg, #1e3a5f, #0c4a6e, #134e4a);
    clip-path: ellipse(80% 100% at 50% 0%);
}

.role-card {
    position: relative;
    background: white;
    border-radius: var(--radius-xl);
    padding: 2.5rem 2rem;
    border: 2px solid transparent;
    box-shadow: var(--shadow-md);
    transition: all .4s cubic-bezier(.4,0,.2,1);
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    display: block;
}
.role-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    transition: height .4s ease;
}
.role-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}
.role-card:hover::before { height: 6px; }

.role-card.student::before { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.role-card.student:hover { border-color: rgba(59,130,246,.3); }
.role-card.basic-teacher::before { background: linear-gradient(90deg, #059669, #34d399); }
.role-card.basic-teacher:hover { border-color: rgba(5,150,105,.3); }
.role-card.clinical-teacher::before { background: linear-gradient(90deg, #d97706, #fbbf24); }
.role-card.clinical-teacher:hover { border-color: rgba(217,119,6,.3); }
.role-card.admin::before { background: linear-gradient(90deg, #7c3aed, #a78bfa); }
.role-card.admin:hover { border-color: rgba(124,58,237,.3); }

.role-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
}

/* ---------- 仪表盘内导航(旧版兼容) ---------- */
.dash-nav {
    background: white;
    border-bottom: 1px solid var(--gray-100);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.dash-nav .nav-item {
    position: relative;
    padding: .75rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray-500);
    text-decoration: none;
    transition: color .2s;
    white-space: nowrap;
}
.dash-nav .nav-item:hover { color: var(--gray-800); }
.dash-nav .nav-item.active {
    color: var(--blue-primary);
}
.dash-nav .nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: var(--blue-primary);
    border-radius: 2px 2px 0 0;
}

/* ---------- 统计卡片 ---------- */
.stat-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--gray-100);
    position: relative;
    overflow: hidden;
    transition: all .3s ease;
}
.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    opacity: .06;
    transform: translate(30%, -30%);
}
.stat-card.blue::after { background: #3b82f6; }
.stat-card.green::after { background: #10b981; }
.stat-card.purple::after { background: #8b5cf6; }
.stat-card.amber::after { background: #f59e0b; }

.stat-value {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1;
}

/* ---------- 时间线 ---------- */
.timeline {
    position: relative;
    padding-left: 2.5rem;
}
.timeline::before {
    content: '';
    position: absolute;
    left: .875rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--blue-primary), var(--amber-primary), var(--green-primary));
    border-radius: 2px;
}
.timeline-dot {
    position: absolute;
    left: .375rem;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 2px var(--gray-200);
    z-index: 1;
}
.timeline-dot.basic { background: var(--blue-primary); box-shadow: 0 0 0 2px var(--blue-light); }
.timeline-dot.bridge { background: var(--amber-primary); box-shadow: 0 0 0 2px var(--amber-light); }
.timeline-dot.clinical { background: var(--green-primary); box-shadow: 0 0 0 2px var(--green-light); }

/* ---------- 按钮升级 ---------- */
.btn-primary {
    background: linear-gradient(135deg, var(--blue-primary), #3b82f6);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    padding: .75rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    box-shadow: 0 2px 8px rgba(37,99,235,.3);
    text-decoration: none;
    display: inline-block;
}
.btn-primary:hover {
    box-shadow: 0 4px 16px rgba(37,99,235,.4);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--gray-700);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: .75rem 1.75rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
    display: inline-block;
}
.btn-outline:hover {
    border-color: var(--blue-primary);
    color: var(--blue-primary);
    background: var(--blue-light);
}

.btn-sm {
    padding: .5rem 1rem;
    font-size: 16px;
}

/* ---------- AI 生成页面 ---------- */
.ai-generator {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #1e3a5f 100%);
    min-height: 100vh;
    position: relative;
}
.ai-generator::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(139,92,246,.2) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(59,130,246,.15) 0%, transparent 50%);
}

.ai-input-area {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(20px);
    transition: all .3s;
}
.ai-input-area:focus-within {
    border-color: rgba(139,92,246,.5);
    box-shadow: 0 0 30px rgba(139,92,246,.15);
}

/* ---------- 题库练习界面 ---------- */
.question-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-sm);
    padding: 2rem;
    transition: all .3s ease;
}
.question-card:hover {
    box-shadow: var(--shadow-md);
}

.option-row {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}
.option-btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: .875rem 1.25rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    background: white;
    cursor: pointer;
    transition: all .2s;
    font-size: 1rem;
    line-height: 1.5;
}
.option-btn-inline {
    flex: 1 1 calc(25% - .375rem);
    min-width: 140px;
    width: auto;
    padding: .5rem .75rem;
    font-size: .9375rem;
    line-height: 1.4;
}
@media (max-width: 768px) {
    .option-btn-inline {
        flex: 1 1 calc(50% - .25rem);
    }
}
.option-btn:hover {
    border-color: var(--blue-primary);
    background: var(--blue-light);
}
.option-btn.selected {
    border-color: var(--blue-primary);
    background: #eff6ff;
    color: var(--blue-primary);
    font-weight: 600;
}
.option-btn.correct {
    border-color: var(--green-primary);
    background: var(--green-light);
    color: var(--green-primary);
}
.option-btn.wrong {
    border-color: var(--rose-primary);
    background: var(--rose-light);
    color: var(--rose-primary);
}

/* ---------- 动画 ---------- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes pulse-slow {
    0%, 100% { opacity: .6; }
    50% { opacity: 1; }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(.9); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.animate-fade-in-up { animation: fadeInUp .6s ease-out forwards; }
.animate-fade-in { animation: fadeIn .5s ease-out forwards; }
.animate-slide-in-right { animation: slideInRight .5s ease-out forwards; }
.animate-slide-in-left { animation: slideInLeft .5s ease-out forwards; }
.animate-scale-in { animation: scaleIn .4s ease-out forwards; }
.delay-100 { animation-delay: .1s; }
.delay-200 { animation-delay: .2s; }
.delay-300 { animation-delay: .3s; }
.delay-400 { animation-delay: .4s; }
.delay-500 { animation-delay: .5s; }
.delay-600 { animation-delay: .6s; }

/* ---------- 渐变文字 ---------- */
.text-gradient-blue {
    background: linear-gradient(135deg, #60a5fa, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.text-gradient-warm {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---------- 玻璃态 ---------- */
.glass {
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,.12);
}

/* ---------- 答题反馈 ---------- */
.feedback-correct { animation: fadeInGreen .3s ease-in; }
.feedback-wrong { animation: fadeInRed .3s ease-in; }
@keyframes fadeInGreen { from { background: transparent; } to { background: #dcfce7; } }
@keyframes fadeInRed { from { background: transparent; } to { background: #fef2f2; } }

/* ---------- 宽屏容器(替代max-w-7xl) ---------- */
.wide-container {
    max-width: 100%;
    padding-left: 2rem;
    padding-right: 2rem;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- 进度环 ---------- */
.progress-ring {
    transform: rotate(-90deg);
}
.progress-ring__circle {
    transition: stroke-dashoffset .5s ease;
}

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
    .hero-section { min-height: auto; padding: 6rem 1rem 4rem; }
    .stat-value { font-size: 1.75rem; }
    .role-card { padding: 1.5rem; }
    .wide-container { padding-left: 1rem; padding-right: 1rem; }
}
