/* ============================================================
   系统名称：机器猫AI学习系统
   开发团队：岳阳市教育科学研究院 信息中心
   程序名：style.css
   功能描述：全局样式文件，包含所有组件样式定义
   版本号：v1.0.2
   修订历史：
     - v1.0.0 (2026-06-25)：初始版本
     - v1.0.1 (2026-06-25)：补全所有缺失的布局样式类
     - v1.0.2 (2026-06-25)：新增学习交互组件样式，改进可视化效果
   ============================================================ */

:root {
  --blue: #00A0E9; --dark-blue: #0078B4; --light-blue: #E8F7FF;
  --red: #E83929; --yellow: #FFD700; --green: #48BB78;
  --purple: #7B68EE; --white: #fff; --gray-l: #F5F7FA; --gray-m: #E0E6ED;
  --gray-d: #6B7A8D; --text: #1A2B3C; --shadow: 0 4px 20px rgba(0,160,233,.15);
  --r: 16px; --rs: 8px;
}
* { margin:0; padding:0; box-sizing:border-box; }
body { font-family:'Microsoft YaHei','PingFang SC',sans-serif; background:var(--gray-l); color:var(--text); overflow-x:hidden; }

@keyframes spin { from { transform:rotate(0deg); } to { transform:rotate(360deg); } }
@keyframes fadeIn { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeInUp { from { opacity:0; transform:translateY(30px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeInDown { from { opacity:0; transform:translateY(-30px); } to { opacity:1; transform:translateY(0); } }
@keyframes slideInLeft { from { opacity:0; transform:translateX(-40px); } to { opacity:1; transform:translateX(0); } }
@keyframes slideInRight { from { opacity:0; transform:translateX(40px); } to { opacity:1; transform:translateX(0); } }
@keyframes scaleIn { 0% { opacity:0; transform:scale(0.8); } 60% { opacity:1; transform:scale(1.04); } 100% { opacity:1; transform:scale(1); } }
@keyframes popIn { 0% { opacity:0; transform:scale(0.6) rotate(-2deg); } 100% { opacity:1; transform:scale(1) rotate(0); } }
@keyframes pulse { 0%,100% { transform:scale(1); } 50% { transform:scale(1.05); } }
@keyframes slideIn { from { opacity:0; transform:translateX(20px); } to { opacity:1; transform:translateX(0); } }
@keyframes letterRise { to { opacity:1; transform:translateY(0) scale(1); } }
@keyframes nudge { 0%,100% { transform:translateX(0); } 50% { transform:translateX(6px); } }
@keyframes pulseHalo { 0% { opacity:0.6; transform:scale(0.9); } 70% { opacity:0; transform:scale(1.6); } 100% { opacity:0; transform:scale(1.6); } }
@keyframes shimmer { 0% { background-position:-200% 0; } 100% { background-position:200% 0; } }

/* 顶栏 */
.topbar { position:fixed; top:0; left:0; right:0; z-index:1000; height:60px;
  background:linear-gradient(135deg,var(--blue),var(--dark-blue));
  display:flex; align-items:center; padding:0 20px; gap:16px;
  box-shadow:0 2px 16px rgba(0,160,233,.4); }
.topbar-logo { display:flex; align-items:center; gap:10px; font-size:20px; font-weight:700; color:#fff; cursor:pointer; }
.logo-icon { width:32px; height:32px; border-radius:50%; display:inline-block; animation:spin 10s linear infinite; object-fit:cover; }
.progress-section { display:flex; align-items:center; gap:8px; margin-left:20px; }
.progress-container { width:220px; height:12px; background:rgba(255,255,255,.2); border-radius:20px; overflow:hidden; }
.progress-bar { height:100%; background:linear-gradient(90deg,#FFD700,#FFA500); border-radius:20px; transition:.5s; box-shadow:0 0 8px rgba(255,215,0,.6); }
.progress-label { color:#fff; font-size:13px; white-space:nowrap; }
.topbar-spacer { flex:1; }
.stats-display { display:flex; gap:16px; }
.stat-item { color:#fff; font-size:13px; font-weight:600; }
.coin-display { display:flex; align-items:center; gap:6px; background:rgba(255,215,0,.2); border:1px solid rgba(255,215,0,.5); border-radius:20px; padding:4px 14px; color:#FFD700; font-weight:700; font-size:15px; }
.btn-icon { width:36px; height:36px; border-radius:50%; background:rgba(255,255,255,.15); border:none; cursor:pointer; color:#fff; font-size:18px; display:flex; align-items:center; justify-content:center; transition:.2s; }
.btn-icon:hover { background:rgba(255,255,255,.3); transform:scale(1.1); }

.user-profile { display:flex; align-items:center; gap:8px; cursor:pointer; padding:6px 12px; border-radius:20px; transition:.2s; }
.user-profile:hover { background:rgba(255,255,255,.1); }
.user-avatar { width:32px; height:32px; border-radius:50%; border:2px solid rgba(255,255,255,.3); object-fit:cover; }
.user-profile .username { font-size:14px; font-weight:600; color:#fff; }

/* 布局 */
.layout { display:flex; margin-top:60px; min-height:calc(100vh - 60px); position:relative; }

/* 侧边栏 */
.sidebar { width:220px; background:#fff; border-right:1px solid var(--gray-m); padding:20px 12px;
  position:fixed; top:60px; left:0; bottom:0; overflow-y:auto; box-shadow:2px 0 12px rgba(0,0,0,.05); z-index:100; }
.sidebar-section { margin-bottom:24px; }
.sidebar-title { font-size:11px; font-weight:700; color:var(--gray-d); text-transform:uppercase; letter-spacing:1px; padding:0 8px; margin-bottom:8px; }
.nav-item { display:flex; align-items:center; gap:10px; padding:10px 12px; border-radius:var(--rs); cursor:pointer; transition:.2s; color:#4A5568; font-size:14px; font-weight:500; margin-bottom:2px; }
.nav-item:hover { background:var(--light-blue); color:var(--blue); }
.nav-item.active { background:linear-gradient(135deg,var(--light-blue),#C8EEFF); color:var(--blue); font-weight:700; box-shadow:inset 3px 0 0 var(--blue); }
.nav-item.locked { opacity:.5; cursor:not-allowed; }
.nav-item.has-sub { position:relative; }
.nav-item.has-sub::after { content:'▶'; position:absolute; right:12px; font-size:10px; color:var(--gray-d); transition:.2s; }
.nav-item.has-sub.expanded::after { transform:rotate(90deg); }
.nav-submenu { max-height:0; overflow:hidden; transition:max-height .3s ease, opacity .3s ease; opacity:0; margin:4px 0; padding-left:24px; }
.nav-submenu.expanded { max-height:400px; opacity:1; }
.nav-sub-item { display:flex; align-items:center; gap:8px; padding:8px 12px; border-radius:var(--rs); cursor:pointer; transition:.2s; color:#5A6A7D; font-size:13px; font-weight:500; margin-bottom:2px; }
.nav-sub-item:hover { background:var(--light-blue); color:var(--blue); padding-left:16px; }
.nav-sub-item.active { background:var(--light-blue); color:var(--blue); font-weight:700; padding-left:16px; }
.ni { font-size:18px; width:24px; text-align:center; }
.nav-badge { margin-left:auto; background:var(--red); color:#fff; font-size:11px; padding:1px 6px; border-radius:10px; }
.level-box { margin-top:16px; background:linear-gradient(135deg,#FFF8E1,#FFE082); border:2px solid var(--yellow); border-radius:var(--rs); padding:12px 16px; }
.level-stars { font-size:22px; }
.level-name { font-size:15px; font-weight:700; color:#6B4000; }
.level-hint { font-size:12px; color:#8B6914; }

/* 主内容 */
.main-content { flex:1; margin-left:220px; padding:24px; min-height:calc(100vh - 60px); }

/* 页面切换 */
.page { display:none; }
.page.active { display:block; animation:fadeInUp .5s cubic-bezier(0.19,1,0.22,1) both; }

/* 动效工具类 */
.animate-fadeIn { animation:fadeIn .5s ease both; }
.animate-fadeInUp { animation:fadeInUp .6s cubic-bezier(0.19,1,0.22,1) both; }
.animate-fadeInDown { animation:fadeInDown .5s ease both; }
.animate-slideInLeft { animation:slideInLeft .6s cubic-bezier(0.19,1,0.22,1) both; }
.animate-slideInRight { animation:slideInRight .6s cubic-bezier(0.19,1,0.22,1) both; }
.animate-scaleIn { animation:scaleIn .5s cubic-bezier(0.34,1.56,0.64,1) both; }
.animate-popIn { animation:popIn .4s cubic-bezier(0.34,1.56,0.64,1) both; }
.animate-pulse { animation:pulse 2s ease-in-out infinite; }
.animate-shimmer { animation:shimmer 2s linear infinite; background:linear-gradient(90deg,transparent,var(--blue),transparent); background-size:200% 100%; }

/* 延迟动效 */
.delay-100 { animation-delay:100ms; }
.delay-200 { animation-delay:200ms; }
.delay-300 { animation-delay:300ms; }
.delay-400 { animation-delay:400ms; }
.delay-500 { animation-delay:500ms; }
.delay-600 { animation-delay:600ms; }

/* 文字错落动画 */
.letter-stagger > .letter { display:inline-block; opacity:0; transform:translateY(40px) scale(0.85); animation:letterRise .8s cubic-bezier(0.86,0,0.07,1) forwards; }
.letter-stagger > .letter:nth-child(1) { animation-delay:0ms; }
.letter-stagger > .letter:nth-child(2) { animation-delay:60ms; }
.letter-stagger > .letter:nth-child(3) { animation-delay:120ms; }
.letter-stagger > .letter:nth-child(4) { animation-delay:180ms; }
.letter-stagger > .letter:nth-child(5) { animation-delay:240ms; }
.letter-stagger > .letter:nth-child(6) { animation-delay:300ms; }
.letter-stagger > .letter:nth-child(7) { animation-delay:360ms; }
.letter-stagger > .letter:nth-child(8) { animation-delay:420ms; }
.letter-stagger > .letter:nth-child(n+9) { animation-delay:480ms; }

/* 首页 Hero Banner */
.hero-banner { background:linear-gradient(135deg,var(--blue),var(--dark-blue)); border-radius:var(--r); padding:40px; margin-bottom:28px; color:#fff; position:relative; overflow:hidden; box-shadow:0 12px 40px rgba(0,160,233,.35); }
.hero-bg { position:absolute; right:-60px; bottom:-60px; font-size:220px; opacity:.08; }
.hero-title { font-size:32px; font-weight:800; margin-bottom:12px; position:relative; z-index:1; line-height:1.2; letter-spacing:-0.02em; }
.hero-sub { font-size:16px; opacity:.95; margin-bottom:20px; position:relative; z-index:1; line-height:1.6; max-width:70%; }
.hero-tags { display:flex; gap:10px; flex-wrap:wrap; position:relative; z-index:1; }
.htag { background:rgba(255,255,255,.18); backdrop-filter:blur(4px); padding:8px 16px; border-radius:20px; font-size:14px; transition:all .3s ease; }
.htag:hover { background:rgba(255,255,255,.28); transform:translateY(-2px); }

/* 统计行 */
.stats-row { display:grid; grid-template-columns:repeat(4,1fr); gap:20px; margin-bottom:28px; }
.stat-card { background:#fff; border-radius:var(--rs); padding:24px 16px; text-align:center; box-shadow:var(--shadow); transition:all .3s cubic-bezier(0.19,1,0.22,1); position:relative; overflow:hidden; }
.stat-card::before { content:''; position:absolute; top:0; left:0; right:0; height:4px; background:linear-gradient(90deg,var(--blue),var(--purple)); opacity:0; transition:opacity .3s; }
.stat-card:hover { transform:translateY(-6px); box-shadow:0 12px 32px rgba(0,160,233,.18); }
.stat-card:hover::before { opacity:1; }
.stat-card .sn { font-size:32px; font-weight:800; margin-bottom:8px; line-height:1; }
.stat-card .sl { font-size:13px; color:var(--gray-d); line-height:1.4; }

/* 模块头部 */
.module-header { display:flex; align-items:center; gap:16px; margin-bottom:20px; }
.module-icon { width:60px; height:60px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:28px; background:var(--blue); color:#fff; }
.module-header h1 { font-size:24px; font-weight:800; color:var(--text); }
.module-header p { font-size:14px; color:var(--gray-d); margin-top:4px; }

/* 区块标题 */
.sec-hdr { display:flex; align-items:center; gap:12px; margin-bottom:16px; }
.sec-hdr h2 { font-size:20px; font-weight:800; }
.badge { background:var(--gray-m); color:var(--gray-d); padding:4px 10px; border-radius:10px; font-size:12px; font-weight:600; }

/* 卡片 */
.card { background:#fff; border-radius:var(--r); box-shadow:var(--shadow); padding:28px; margin-bottom:24px; transition:all .3s ease; }
.card:hover { box-shadow:0 8px 32px rgba(0,160,233,.15); }
.card-title { font-size:18px; font-weight:700; color:var(--text); margin-bottom:20px; display:flex; align-items:center; gap:10px; }

/* 模块网格 */
.module-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:20px; margin-bottom:28px; }
.module-card { background:#fff; border-radius:var(--rs); padding:24px; cursor:pointer; transition:all .35s cubic-bezier(0.19,1,0.22,1); box-shadow:var(--shadow); border:2px solid transparent; position:relative; overflow:hidden; }
.module-card::after { content:''; position:absolute; top:0; right:0; width:60px; height:60px; background:linear-gradient(135deg,var(--light-blue),transparent); opacity:0; transition:opacity .3s; }
.module-card:hover { transform:translateY(-8px) scale(1.01); box-shadow:0 16px 40px rgba(0,160,233,.2); }
.module-card:hover::after { opacity:1; }
.module-card.locked { opacity:.5; cursor:not-allowed; }
.module-card.completed { border-color:var(--green); }
.mc-icon { width:48px; height:48px; margin-bottom:12px; transition:transform .3s; border-radius:12px; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.module-card:hover .mc-icon { transform:scale(1.15); }
.mc-title { font-size:16px; font-weight:700; margin-bottom:6px; line-height:1.3; }
.mc-desc { font-size:13px; color:var(--gray-d); margin-bottom:16px; line-height:1.5; }
.mc-stages { display:flex; gap:8px; margin-bottom:12px; }
.mc-prog { height:8px; background:var(--gray-m); border-radius:10px; overflow:hidden; }
.mc-lock { font-size:28px; text-align:center; margin-top:16px; }

/* 推荐网格 */
.recommend-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.rec-item { padding:20px; border-radius:var(--rs); cursor:pointer; transition:all .35s cubic-bezier(0.19,1,0.22,1); position:relative; overflow:hidden; }
.rec-item::before { content:''; position:absolute; top:-50%; right:-50%; width:100px; height:100px; border-radius:50%; background:rgba(255,255,255,.3); transition:all .3s; }
.rec-item:hover { transform:translateY(-6px); box-shadow:0 8px 24px rgba(0,0,0,.1); }
.rec-item:hover::before { transform:scale(1.5); }
.rec-item.blue { background:linear-gradient(135deg,var(--light-blue),#C8EEFF); }
.rec-item.purple { background:linear-gradient(135deg,#EDE7F6,#D1C4E9); }
.rec-item.green { background:linear-gradient(135deg,#E8F5E9,#C8E6C9); }
.rec-item .ri { font-size:32px; margin-bottom:10px; transition:transform .3s; }
.rec-item:hover .ri { transform:scale(1.2) rotate(5deg); }
.rec-item .rt { font-size:15px; font-weight:700; margin-bottom:6px; }
.rec-item .rd { font-size:13px; color:var(--gray-d); line-height:1.5; }

/* 三段式导航 */
.stage-nav { display:flex; align-items:center; justify-content:center; gap:8px; margin-bottom:20px; padding:12px; background:#fff; border-radius:var(--r); box-shadow:var(--shadow); }
.stage-item { display:flex; flex-direction:column; align-items:center; padding:16px 32px; border-radius:var(--rs); cursor:pointer; transition:.3s; background:var(--gray-l); }
.stage-item:hover { background:var(--light-blue); transform:translateY(-2px); }
.stage-item.active { background:linear-gradient(135deg,var(--blue),var(--dark-blue)); color:#fff; }
.stage-item.disabled { opacity:.5; cursor:not-allowed; }
.stage-item.completed .stage-check { display:block; }
.stage-icon { font-size:24px; margin-bottom:4px; }
.stage-name { font-size:13px; font-weight:600; }
.stage-check { display:none; position:absolute; top:4px; right:4px; font-size:14px; }

/* AI大揭秘卡片 */
#aiwhat-myth-container { display:grid; grid-template-columns:repeat(2,1fr); gap:16px; }
.myth-card { background:#fff; border-radius:var(--rs); padding:20px; cursor:pointer; transition:all .35s cubic-bezier(0.19,1,0.22,1); box-shadow:var(--shadow); border-left:4px solid #E83929; position:relative; overflow:hidden; display:flex; align-items:flex-start; gap:14px; }
.myth-card::before { content:''; position:absolute; top:0; left:0; right:0; height:3px; background:linear-gradient(90deg,#E83929,#FC8181); opacity:0; transform:scaleX(0); transition:all .3s; }
.myth-card:hover { transform:translateY(-4px); box-shadow:0 12px 32px rgba(232,57,41,.15); }
.myth-card:hover::before { opacity:1; transform:scaleX(1); }
.myth-icon { font-size:32px; flex-shrink:0; animation:bounce 2s ease-in-out infinite; }
.myth-title { font-size:15px; font-weight:700; color:var(--text); margin-bottom:6px; line-height:1.3; }
.myth-myth { font-size:13px; color:var(--gray-d); line-height:1.5; flex:1; }
.myth-arrow { font-size:18px; color:var(--gray-m); transition:all .3s; flex-shrink:0; }
.myth-card:hover .myth-arrow { color:#E83929; transform:translateX(4px); }

/* 场景卡片（生活中的AI） */
#ailife-scene-container { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.scene-card { background:#fff; border-radius:var(--rs); padding:20px; cursor:pointer; transition:all .35s cubic-bezier(0.19,1,0.22,1); box-shadow:var(--shadow); position:relative; overflow:hidden; }
.scene-card:hover { transform:translateY(-6px); box-shadow:0 16px 40px rgba(0,160,233,.15); }
.scene-header { padding:12px; border-radius:8px; margin-bottom:12px; display:flex; align-items:center; gap:10px; }
.scene-icon { font-size:28px; }
.scene-title { font-size:15px; font-weight:700; color:var(--text); }
.scene-desc { font-size:13px; color:var(--gray-d); line-height:1.5; margin-bottom:12px; }
.scene-apps { display:grid; grid-template-columns:repeat(2,1fr); gap:8px; margin-bottom:12px; }
.scene-app { display:flex; align-items:center; gap:6px; padding:8px; background:var(--gray-l); border-radius:6px; font-size:12px; }
.scene-arrow { font-size:14px; color:var(--gray-m); text-align:right; font-weight:600; }
.scene-card:hover .scene-arrow { color:var(--blue); }

/* 故事卡片（机器猫故事） */
#ailife-stories { display:flex; flex-direction:column; gap:12px; }
.story-card { background:#fff; border-radius:var(--rs); padding:16px; display:flex; gap:14px; align-items:flex-start; box-shadow:var(--shadow); transition:all .3s; }
.story-card:hover { transform:translateX(8px); box-shadow:0 8px 24px rgba(0,160,233,.12); }
.story-emoji { font-size:36px; flex-shrink:0; }
.story-content { flex:1; }
.story-title { font-size:15px; font-weight:700; color:var(--text); margin-bottom:6px; }
.story-text { font-size:13px; color:var(--gray-d); line-height:1.5; margin-bottom:8px; }
.story-tech { font-size:12px; color:var(--blue); font-weight:600; }

/* 概念卡片（分类游戏） */
#classify-concepts { display:grid; grid-template-columns:repeat(2,1fr); gap:16px; }
.concept-card { background:#fff; border-radius:var(--rs); padding:20px; box-shadow:var(--shadow); border-top:4px solid var(--blue); transition:all .35s; }
.concept-card:hover { transform:translateY(-4px); box-shadow:0 12px 32px rgba(0,160,233,.15); }
.concept-icon { font-size:28px; margin-bottom:10px; }
.concept-title { font-size:15px; font-weight:700; color:var(--text); margin-bottom:8px; }
.concept-desc { font-size:13px; color:var(--gray-d); line-height:1.5; margin-bottom:10px; }
.concept-example { font-size:12px; color:var(--green); background:#E8F5E9; padding:8px 12px; border-radius:6px; }

/* 伦理卡片（AI伦理） */
#ethics-principles { display:grid; grid-template-columns:repeat(2,1fr); gap:16px; }
.ethics-card { background:#fff; border-radius:var(--rs); overflow:hidden; cursor:pointer; transition:all .35s; box-shadow:var(--shadow); }
.ethics-card:hover { transform:translateY(-4px); box-shadow:0 12px 32px rgba(0,160,233,.15); }
.ethics-header { padding:16px; display:flex; align-items:center; gap:12px; }
.ethics-emoji { font-size:28px; }
.ethics-title { font-size:15px; font-weight:700; color:var(--text); }
.ethics-content { padding:0 16px 12px; font-size:13px; color:var(--gray-d); line-height:1.5; }
.ethics-scenarios { padding:0 16px 16px; }
.ethics-scenario { display:flex; gap:8px; font-size:12px; padding:8px; background:var(--gray-l); border-radius:6px; margin-bottom:6px; }
.ethics-scenario span:first-child { font-weight:600; color:var(--text); }
.ethics-scenario span:last-child { color:var(--gray-d); }

/* 规则列表（AI伦理） */
#ethics-rules { display:flex; flex-direction:column; gap:10px; }
.rule-item { display:flex; align-items:flex-start; gap:12px; padding:14px; background:#fff; border-radius:var(--rs); box-shadow:var(--shadow); }
.rule-num { width:28px; height:28px; border-radius:50%; background:linear-gradient(135deg,var(--blue),var(--dark-blue)); color:#fff; display:flex; align-items:center; justify-content:center; font-size:14px; font-weight:700; flex-shrink:0; }
.rule-content { flex:1; }
.rule-title { font-size:14px; font-weight:700; color:var(--text); margin-bottom:4px; }
.rule-desc { font-size:13px; color:var(--gray-d); line-height:1.5; }

/* 例子卡片（AI是什么） */
#aiwhat-examples { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
.example-card { background:#fff; border-radius:var(--rs); padding:16px; text-align:center; border-top:4px solid var(--blue); box-shadow:var(--shadow); transition:all .3s; }
.example-card:hover { transform:translateY(-4px); box-shadow:0 8px 24px rgba(0,160,233,.12); }
.example-icon { font-size:32px; margin-bottom:8px; }
.example-title { font-size:14px; font-weight:700; color:var(--text); margin-bottom:6px; }
.example-desc { font-size:12px; color:var(--gray-d); line-height:1.4; }

/* 阶段导航 */
.stage-line { width:40px; height:3px; background:var(--gray-m); border-radius:2px; }
.stage-line.disabled { background:#ddd; }
.stage-section { display:none; animation:fadeIn .3s ease; }
.stage-section.active { display:block; }

/* 内容区块 */
.content-section { display:none; animation:fadeIn .3s ease; }
.content-section.active { display:block; }

/* 时间轴 */
.timeline-scroll { overflow-x:auto; overflow-y:hidden; padding-bottom:8px; -webkit-overflow-scrolling:touch; }
.timeline-scroll::-webkit-scrollbar { height:6px; }
.timeline-scroll::-webkit-scrollbar-track { background:var(--gray-m); border-radius:3px; }
.timeline-scroll::-webkit-scrollbar-thumb { background:var(--blue); border-radius:3px; }
#timeline-container { display:flex; gap:12px; min-width:max-content; padding:8px 0; }
.timeline-line { position:absolute; top:50%; left:0; right:0; height:3px; background:var(--gray-m); transform:translateY(-50%); z-index:0; display:none; }
.timeline-items { display:flex; gap:12px; position:relative; z-index:1; }
.timeline-item { display:flex; flex-direction:column; align-items:center; padding:16px 20px; min-width:110px; border-radius:var(--rs); cursor:pointer; transition:.3s; background:#fff; flex-shrink:0; border:2px solid var(--gray-m); box-shadow:0 2px 8px rgba(0,0,0,.06); }
.timeline-item:hover { background:var(--light-blue); border-color:var(--blue); transform:translateY(-2px); }
.timeline-item.active, .timeline-item.tactive { background:linear-gradient(135deg,var(--blue),var(--dark-blue)); color:#fff; border-color:var(--blue); box-shadow:0 4px 16px rgba(0,160,233,.3); }
.timeline-year { font-size:16px; font-weight:800; margin-top:4px; }
.timeline-dot { width:16px; height:16px; border-radius:50%; background:var(--blue); margin:10px 0; box-shadow:0 0 0 3px rgba(0,160,233,.2); }
.timeline-item.active .timeline-dot, .timeline-item.tactive .timeline-dot { background:#fff; box-shadow:0 0 0 3px rgba(255,255,255,.3); }
.timeline-label { font-size:12px; text-align:center; margin-top:4px; font-weight:500; }

/* 时间轴详情 */
.timeline-detail { background:var(--light-blue); border-radius:var(--rs); padding:16px; display:none; }
.timeline-detail.show { display:block; animation:fadeIn .3s ease; }
.timeline-detail h3 { font-size:18px; font-weight:700; margin-bottom:8px; }
.timeline-detail p { font-size:14px; line-height:1.6; color:var(--text); }

/* 机器猫说 */
.doraemon-says { background:#FFF8E1; border-radius:var(--rs); padding:12px; margin-top:12px; display:flex; gap:8px; align-items:flex-start; }
.doraemon-says span:first-child { font-size:20px; }
.doraemon-says span:last-child { font-size:13px; color:#6B4000; }

/* 流派卡片 */
.school-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.school-card { background:#fff; border-radius:var(--rs); padding:20px; cursor:pointer; transition:.3s; border:2px solid var(--gray-m); }
.school-card:hover { transform:translateY(-4px); box-shadow:var(--shadow); border-color:var(--blue); }
.school-card.s1:hover { border-color:var(--blue); }
.school-card.s2:hover { border-color:var(--purple); }
.school-card.s3:hover { border-color:var(--yellow); }
.school-card .si { font-size:36px; margin-bottom:8px; }
.school-card .sn2 { font-size:15px; font-weight:700; margin-bottom:4px; }
.school-card .sc { font-size:12px; color:var(--gray-d); }
.school-card .algos { display:flex; flex-wrap:wrap; gap:4px; margin-top:10px; }
.school-card .algos span { background:var(--gray-l); padding:3px 8px; border-radius:6px; font-size:11px; }

/* 对比表格 */
.compare-table { width:100%; border-collapse:collapse; }
.compare-table th, .compare-table td { padding:12px; text-align:left; border-bottom:1px solid var(--gray-m); }
.compare-table th { background:var(--gray-l); font-weight:700; color:var(--text); }
.compare-table tr:hover { background:var(--gray-l); }

/* 算法标签页 */
.algo-tabs { display:flex; gap:8px; margin-bottom:20px; flex-wrap:wrap; }
.algo-tab { padding:10px 20px; border-radius:var(--rs); background:#fff; cursor:pointer; transition:.2s; font-weight:600; border:2px solid transparent; }
.algo-tab:hover { background:var(--light-blue); }
.algo-tab.active { background:linear-gradient(135deg,var(--blue),var(--dark-blue)); color:#fff; }

/* 算法面板 */
.algo-panel { animation:slideIn .3s ease; }

/* 连连看游戏 */
.match-game-wrapper { position:relative; display:flex; gap:24px; justify-content:center; }
.match-lines { position:absolute; top:0; left:0; width:100%; height:100%; pointer-events:none; z-index:10; }
.match-line { transition:all .3s ease; }
.match-line-connected { animation:lineDraw .3s ease; }
.match-line-pending { animation:pulseLine 1s ease-in-out infinite; }
@keyframes lineDraw {
  from { stroke-dasharray:1000; stroke-dashoffset:1000; }
  to { stroke-dasharray:1000; stroke-dashoffset:0; }
}
@keyframes pulseLine {
  0%, 100% { opacity:0.6; }
  50% { opacity:1; }
}
.match-column { flex:1; max-width:280px; }
.match-column-left { text-align:right; }
.match-column-right { text-align:left; }
.match-header { font-size:16px; font-weight:800; color:var(--text); margin-bottom:16px; text-align:center; padding:12px; background:var(--light-blue); border-radius:var(--rs); }
.match-item { padding:14px 16px; background:#fff; border:2px solid var(--gray-m); border-radius:var(--rs); cursor:pointer; transition:.3s; margin-bottom:10px; font-size:14px; }
.match-column-left .match-item { border-radius:var(--rs) 0 0 var(--rs); }
.match-column-right .match-item { border-radius:0 var(--rs) var(--rs) 0; }
.match-item:hover { border-color:var(--blue); background:var(--light-blue); }
.match-item.selected { border-color:var(--blue); background:var(--light-blue); box-shadow:0 0 0 3px rgba(0,160,233,.2); }
.match-item.matched { border-color:#48BB78; background:#E8F5E9; cursor:not-allowed; }
.match-item.wrong { border-color:#FC8181; background:#FEE2E2; animation:shake 0.5s ease; }
@keyframes shake {
  0%, 100% { transform:translateX(0); }
  25% { transform:translateX(-5px); }
  75% { transform:translateX(5px); }
}

/* 机器猫提示 */
.doraemon-tip { background:#fff; border-radius:var(--rs); padding:16px; margin-bottom:16px; border-left:4px solid var(--blue); box-shadow:var(--shadow); }
.doraemon-tip.blue { border-color:var(--blue); background:var(--light-blue); }
.doraemon-tip.purple { border-color:var(--purple); background:#EDE7F6; }
.doraemon-tip.green { border-color:var(--green); background:#E8F5E9; }
.doraemon-tip.yellow { border-color:#E67E22; background:#FFF8E1; }
.doraemon-tip.red { border-color:var(--red); background:#FFF5F5; }
.dt-icon { width:24px; height:24px; margin-right:12px; border-radius:50%; object-fit:cover; display:inline-block; vertical-align:middle; }
.doraemon-tip strong { font-size:14px; }
.tip-hint { font-size:12px; font-weight:600; margin-top:4px; display:block; }

/* 可视化布局 */
.viz-layout { display:flex; gap:24px; flex-wrap:wrap; }
.viz-wrap { flex:1; min-width:300px; }
.color-legend { display:flex; gap:16px; margin-bottom:8px; flex-wrap:wrap; }
.leg { display:flex; align-items:center; gap:6px; font-size:13px; }
.ldot { width:12px; height:12px; border-radius:50%; }
.canvas-hint { font-size:12px; color:var(--gray-d); margin-top:8px; text-align:center; }

/* 可视化画布 */
.viz-canvas { width:100%; height:360px; border-radius:var(--rs); background:#fff; border:1px solid var(--gray-m); cursor:crosshair; }
.step-anim-canvas { width:100%; height:200px; border-radius:var(--rs); background:#fff; border:1px solid var(--gray-m); }
.step-anim-canvas-wrap { display:flex; justify-content:center; }

/* 控制面板 */
.ctrl-panel { width:280px; padding:16px; background:var(--gray-l); border-radius:var(--rs); flex-shrink:0; }
.ctrl-group { margin-bottom:16px; }
.ctrl-label { font-size:14px; font-weight:600; color:var(--text); margin-bottom:8px; display:flex; align-items:center; gap:8px; }
.cv { color:var(--blue); }
.slider-row { display:flex; align-items:center; gap:12px; }
.slider-row input[type="range"] { flex:1; height:6px; -webkit-appearance:none; appearance:none; background:var(--gray-m); border-radius:3px; }
.slider-row input[type="range"]::-webkit-slider-thumb { -webkit-appearance:none; appearance:none; width:18px; height:18px; background:var(--blue); border-radius:50%; cursor:pointer; }
.sv { font-weight:700; color:var(--blue); font-size:14px; min-width:30px; text-align:right; }
.btn-grp { display:flex; gap:8px; flex-wrap:wrap; }
.btn { border:none; padding:8px 14px; border-radius:var(--rs); font-size:13px; font-weight:600; cursor:pointer; transition:.2s; }
.btn-sm { padding:6px 12px; font-size:12px; }
.btn-primary { background:linear-gradient(135deg,var(--blue),var(--dark-blue)); color:#fff; }
.btn-primary:hover { transform:translateY(-2px); box-shadow:0 4px 12px rgba(0,160,233,.4); }
.btn-danger { background:var(--red); color:#fff; }
.btn-danger:hover { background:#D32F2F; }
.stats-box { background:#fff; padding:12px; border-radius:var(--rs); margin-top:8px; }
.stats-box div { font-size:13px; margin-bottom:4px; }
.stats-box strong { color:var(--blue); }
.result-box { background:#F0FFF4; border:1px solid var(--green); padding:12px; border-radius:var(--rs); margin-top:12px; font-size:13px; }

/* 算法讲解 */
.algo-explain-box { margin-top:20px; background:#fff; border-radius:var(--r); box-shadow:var(--shadow); overflow:hidden; }
.explain-header { display:flex; align-items:center; justify-content:space-between; padding:16px 20px; background:var(--gray-l); cursor:pointer; }
.explain-title { font-size:15px; font-weight:700; }
.explain-scene-tag { font-size:12px; color:var(--gray-d); background:#fff; padding:4px 10px; border-radius:10px; }
.explain-toggle { font-size:12px; color:var(--gray-d); transition:.3s; }
.explain-body { display:none; padding:20px; }
.explain-body.show { display:block; animation:fadeIn .3s ease; }

/* 场景横幅 */
.scene-banner { display:flex; gap:16px; padding:16px; border-radius:var(--rs); margin-bottom:16px; }
.scene-banner.blue-scene { background:var(--light-blue); }
.scene-banner.purple-scene { background:#EDE7F6; }
.scene-banner.green-scene { background:#E8F5E9; }
.scene-banner.yellow-scene { background:#FFF8E1; }
.scene-banner.red-scene { background:#FFF5F5; }
.scene-emoji { font-size:40px; }
.scene-title { font-size:14px; font-weight:700; margin-bottom:4px; }
.scene-desc { font-size:13px; line-height:1.6; }

/* 步骤动画 */
.step-anim-wrap { margin-bottom:20px; }
.step-nav { display:flex; gap:8px; margin-bottom:16px; flex-wrap:wrap; }
.step-btn { padding:8px 16px; border:2px solid var(--gray-m); border-radius:var(--rs); cursor:pointer; transition:.2s; font-size:13px; background:#fff; }
.step-btn:hover { border-color:var(--blue); }
.step-btn.active { background:var(--blue); color:#fff; border-color:var(--blue); }
.step-content { background:var(--gray-l); padding:16px; border-radius:var(--rs); }
.step-panel { display:none; }
.step-panel.active { display:flex; gap:20px; animation:fadeIn .3s ease; }
.step-text { flex:1; }
.step-num { font-size:16px; font-weight:800; color:var(--blue); margin-bottom:8px; }
.step-desc { font-size:13px; line-height:1.6; }
.step-key { display:block; margin-top:8px; font-size:12px; color:var(--purple); font-weight:600; }

/* 投票行 */
.vote-row { display:flex; align-items:center; gap:8px; margin-bottom:4px; font-size:13px; }
.vdot { width:12px; height:12px; border-radius:50%; }
.vote-result { margin-top:12px; font-weight:700; color:var(--green); }

/* 自动播放 */
.auto-play-row { display:flex; align-items:center; gap:12px; margin-top:12px; }
.auto-hint { font-size:12px; color:var(--gray-d); }

/* 原理网格 */
.principle-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
.principle-card { background:var(--gray-l); padding:16px; border-radius:var(--rs); }
.pc-icon { font-size:24px; margin-bottom:8px; }
.pc-title { font-size:13px; font-weight:700; margin-bottom:4px; }
.pc-formula { font-size:14px; font-weight:800; color:var(--blue); margin-bottom:8px; font-family:monospace; }
.pc-desc { font-size:12px; line-height:1.5; color:var(--gray-d); }

/* 决策树动画 */
.dt-tree-anim { display:flex; flex-direction:column; align-items:center; gap:12px; }
.dt-node { padding:10px 20px; border-radius:var(--rs); font-size:13px; font-weight:600; text-align:center; }
.dt-node.root-node { background:linear-gradient(135deg,var(--blue),var(--dark-blue)); color:#fff; font-size:14px; }
.dt-node.child-node { background:#fff; border:2px solid var(--gray-m); }
.dt-node.blue-node { border-color:var(--blue); }
.dt-node.green-node { border-color:var(--green); }
.dt-node.leaf-node { font-size:12px; }
.dt-branch-row { display:flex; gap:24px; margin-top:12px; }
.dt-branch-row.small { gap:16px; }
.dt-branch { display:flex; flex-direction:column; align-items:center; }
.dt-edge { font-size:11px; font-weight:600; padding:4px 8px; border-radius:6px; }
.dt-edge.yes { background:#E8F5E9; color:var(--green); }
.dt-edge.no { background:#FFF5F5; color:var(--red); }
.leaf-result { padding:12px 20px; border-radius:var(--rs); text-align:center; font-size:13px; }
.leaf-result span { font-size:11px; display:block; margin-top:4px; opacity:.8; }

/* 多项式对比 */
.poly-compare-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-bottom:16px; }
.poly-compare-item { padding:16px; border-radius:var(--rs); text-align:center; }
.poly-compare-item.under { background:#FFF5F5; border:2px solid var(--red); }
.poly-compare-item.good { background:#E8F5E9; border:2px solid var(--green); }
.poly-compare-item.over { background:#FFF8E1; border:2px solid #E67E22; }
.pci-label { font-size:14px; font-weight:700; margin-bottom:8px; }
.pci-icon { font-size:32px; margin-bottom:8px; }
.pci-desc { font-size:12px; line-height:1.6; }

/* 神经网络 */
.nn-grid { display:flex; gap:24px; flex-wrap:wrap; }
.nn-intro { display:flex; gap:16px; align-items:flex-start; }
.nn-intro .tts-btn { margin-top:8px; }
.act-legend { display:flex; gap:16px; margin-top:12px; font-size:12px; color:var(--gray-d); }

/* 练习系统 */
.diff-btn { padding:10px 20px; border:2px solid var(--gray-m); border-radius:var(--rs); cursor:pointer; transition:.2s; background:#fff; font-weight:600; }
.diff-btn:hover { border-color:var(--blue); }
.diff-btn.active { background:linear-gradient(135deg,var(--blue),var(--dark-blue)); color:#fff; border-color:var(--blue); }
.qprog-wrap { height:6px; background:var(--gray-m); border-radius:3px; margin-bottom:8px; overflow:hidden; }
.qprog-fill { height:100%; background:linear-gradient(90deg,var(--blue),var(--green)); transition:.3s; }
.q-meta { font-size:12px; color:var(--gray-d); margin-bottom:16px; }
.q-text { font-size:16px; font-weight:700; margin-bottom:16px; }
.q-options { display:flex; flex-direction:column; gap:10px; }
.q-opt { padding:12px 16px; border:2px solid var(--gray-m); border-radius:var(--rs); cursor:pointer; transition:.2s; text-align:left; background:#fff; font-size:14px; }
.q-opt:hover { border-color:var(--blue); background:var(--light-blue); }
.q-opt.correct { border-color:var(--green); background:#F0FFF4; color:var(--green); }
.q-opt.wrong { border-color:var(--red); background:#FFF5F5; color:var(--red); }
.q-feedback { margin-top:12px; padding:12px; border-radius:var(--rs); display:none; }
.q-feedback.show { display:block; }
.q-feedback.success { background:#F0FFF4; color:var(--green); }
.q-feedback.error { background:#FFF5F5; color:var(--red); }
.q-footer { display:flex; justify-content:space-between; align-items:center; margin-top:16px; }
.stat-mini { background:var(--gray-l); padding:16px; border-radius:var(--rs); text-align:center; }
.stat-mini.green .stat-mini > div:first-child { color:var(--green); }
.stat-mini.red .stat-mini > div:first-child { color:var(--red); }
.stat-mini.yellow .stat-mini > div:first-child { color:#E67E22; }
.stat-mini div:first-child { font-size:24px; font-weight:800; }
.stat-mini div:last-child { font-size:12px; color:var(--gray-d); }

/* 成就中心 */
.level-path { display:flex; flex-direction:column; gap:12px; }
.path-timeline { padding:16px; background:var(--gray-l); border-radius:var(--rs); }
.status-badge { padding:4px 10px; border-radius:10px; font-size:12px; font-weight:600; }
.status-badge.blue { background:var(--light-blue); color:var(--blue); }
.status-badge.green { background:#E8F5E9; color:var(--green); }
.status-badge.gray { background:var(--gray-m); color:var(--gray-d); }

/* 机器猫角色 */
#doraemon-float { position:fixed; bottom:20px; right:20px; z-index:900; display:flex; flex-direction:column; align-items:center; cursor:pointer; }
.doraemon-bubble { background:#fff; padding:12px 16px; border-radius:16px; box-shadow:var(--shadow); margin-bottom:12px; font-size:13px; max-width:200px; animation:fadeIn .3s ease; }
#doraemon-svg { width:70px; height:70px; cursor:pointer; transition:.2s; border-radius:50%; object-fit:cover; }
#doraemon-svg:hover { transform:scale(1.1); }
#doraemon-chat { position:fixed; bottom:20px; right:20px; z-index:900; }

/* 聊天窗口 */
#chat-container { position:fixed; bottom:20px; right:20px; width:380px; background:#fff; border-radius:16px; box-shadow:0 8px 32px rgba(0,0,0,.12),0 0 0 1px rgba(0,0,0,.05); z-index:950; display:none; flex-direction:column; max-height:520px; border:1px solid rgba(0,160,233,.1); }
#chat-container.show { display:flex; animation:slideUp .3s ease; }
.chat-header { display:flex; align-items:center; gap:10px; padding:14px 16px; background:linear-gradient(135deg,#00A0E9,#0077B6); color:#fff; border-radius:16px 16px 0 0; }
.chat-header .doraemon-avatar { width:28px; height:28px; border-radius:50%; overflow:hidden; border:2px solid rgba(255,255,255,.3); }
.chat-header span { font-weight:600; font-size:15px; }
.chat-header .btn-icon { background:rgba(255,255,255,.2); color:#fff; border:none; width:28px; height:28px; border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; font-size:14px; margin-left:auto; transition:all .2s; }
.chat-header .btn-icon:hover { background:rgba(255,255,255,.3); transform:rotate(90deg); }
.chat-messages { flex:1; overflow-y:auto; padding:12px; display:flex; flex-direction:column; gap:12px; max-height:340px; scrollbar-width:thin; scrollbar-color:#00A0E9 #E8F7FF; background:#FAFCFF; }
.chat-messages::-webkit-scrollbar { width:6px; }
.chat-messages::-webkit-scrollbar-track { background:transparent; }
.chat-messages::-webkit-scrollbar-thumb { background:rgba(0,160,233,.3); border-radius:3px; }
.chat-messages::-webkit-scrollbar-thumb:hover { background:rgba(0,160,233,.5); }
.chat-message { display:flex; gap:8px; }
.chat-message.doraemon { align-items:flex-start; }
.chat-message.user { align-items:flex-start; justify-content:flex-end; }
.chat-message.user .message-bubble { background:#00A0E9; color:#fff; border-radius:16px 16px 4px 16px; }
.chat-message.user .message-bubble code { background:rgba(255,255,255,.2); color:#fff; }
.chat-message.user .message-bubble h1,
.chat-message.user .message-bubble h2,
.chat-message.user .message-bubble h3 { color:#fff; }
.message-avatar { width:32px; height:32px; border-radius:50%; background:var(--gray-l); display:flex; align-items:center; justify-content:center; flex-shrink:0; overflow:hidden; border:2px solid rgba(0,160,233,.2); }
.message-wrapper { display:flex; flex-direction:column; max-width:75%; }
.message-bubble { padding:12px 16px; border-radius:16px 16px 16px 4px; background:#fff; font-size:14px; line-height:1.6; word-break:break-word; box-shadow:0 2px 8px rgba(0,0,0,.04); border:1px solid rgba(0,0,0,.05); }
.message-bubble h1 { font-size:16px; font-weight:700; margin:8px 0 6px; color:var(--blue); }
.message-bubble h2 { font-size:15px; font-weight:700; margin:6px 0 4px; color:var(--blue); }
.message-bubble h3 { font-size:14px; font-weight:700; margin:4px 0 2px; color:var(--blue); }
.message-bubble p { margin:4px 0; }
.message-bubble code { background:rgba(0,160,233,.08); padding:3px 8px; border-radius:6px; font-family:'Courier New',monospace; font-size:12px; color:#0077B6; }
.message-bubble ul, .message-bubble ol { margin:6px 0; padding-left:20px; }
.message-bubble li { margin:3px 0; }
.message-bubble strong { color:#333; font-weight:600; }
.message-bubble em { color:#666; font-style:italic; }
.message-actions { display:flex; gap:4px; margin-top:6px; opacity:0; transition:opacity .2s ease; }
.chat-message:hover .message-actions { opacity:1; }
.msg-delete, .msg-recall { width:24px; height:24px; border:none; cursor:pointer; border-radius:50%; font-size:11px; display:flex; align-items:center; justify-content:center; transition:all .2s ease; }
.msg-delete { background:rgba(239,68,68,.08); color:#EF4444; }
.msg-delete:hover { background:rgba(239,68,68,.15); transform:scale(1.15); }
.msg-recall { background:rgba(0,160,233,.08); color:#00A0E9; }
.msg-recall:hover { background:rgba(0,160,233,.15); transform:scale(1.15); }
.message-bubble.loading { display:flex; gap:4px; align-items:center; }
.typing-dot { width:8px; height:8px; background:#9CA3AF; border-radius:50%; animation:typing .8s ease infinite; }
.typing-dot:nth-child(2) { animation-delay:.2s; }
.typing-dot:nth-child(3) { animation-delay:.4s; }
/* 聊天建议区域 */
.chat-suggestions { display:flex; flex-wrap:wrap; gap:6px; padding:8px 12px; border-top:1px solid var(--gray-l); background:#FAFCFF; }
.suggestion-tag { padding:6px 12px; background:rgba(0,160,233,.08); color:#0077B6; border:1px solid rgba(0,160,233,.2); border-radius:16px; font-size:12px; cursor:pointer; transition:all .2s; }
.suggestion-tag:hover { background:rgba(0,160,233,.15); border-color:rgba(0,160,233,.3); transform:translateY(-1px); }

.chat-input { display:flex; gap:8px; padding:12px; border-top:1px solid var(--gray-m); background:#fff; border-radius:0 0 16px 16px; }
.chat-input input { flex:1; padding:11px 16px; border:2px solid var(--gray-m); border-radius:22px; font-size:14px; outline:none; transition:all .2s; background:#FAFCFF; }
.chat-input input:focus { border-color:var(--blue); box-shadow:0 0 0 3px rgba(0,160,233,.1); }
.chat-input button { padding:11px 22px; border:none; background:linear-gradient(135deg,#00A0E9,#0077B6); color:#fff; border-radius:22px; font-size:14px; font-weight:600; cursor:pointer; transition:all .2s; }
.chat-input button:hover { transform:scale(1.02); box-shadow:0 4px 12px rgba(0,160,233,.3); }
.chat-input button:disabled { opacity:.5; cursor:not-allowed; transform:none; box-shadow:none; }

@keyframes slideUp {
  from { opacity:0; transform:translateY(20px); }
  to { opacity:1; transform:translateY(0); }
}
@keyframes typing {
  0%, 100% { opacity:.3; transform:scale(.8); }
  50% { opacity:1; transform:scale(1); }
}

/* 成就弹出 */
.ach-popup { position:fixed; top:100px; right:20px; background:linear-gradient(135deg,#FFF8E1,#FFE082); border:2px solid var(--yellow); padding:16px 24px; border-radius:var(--r); box-shadow:var(--shadow); z-index:2000; display:none; animation:fadeIn .3s ease; text-align:center; }
.ach-popup.show { display:block; }

/* 模态框 */
.modal-overlay { display:none; position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,.5); z-index:2000; justify-content:center; align-items:center; }
.modal-overlay.show { display:flex; }
.modal { background:#fff; border-radius:var(--r); padding:24px; max-width:500px; width:90%; max-height:80vh; overflow-y:auto; }
.modal-title { font-size:20px; font-weight:800; margin-bottom:16px; }
.modal-body { font-size:14px; line-height:1.6; }
.modal-footer { display:flex; justify-content:flex-end; margin-top:20px; }

/* 时间排序游戏 */
.sort-item { padding:12px 16px; background:#fff; border:2px solid var(--gray-m); border-radius:var(--rs); cursor:move; margin-bottom:8px; display:flex; align-items:center; gap:12px; }
.sort-item:hover { border-color:var(--blue); }
.sort-num { width:24px; height:24px; background:var(--blue); color:#fff; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:700; }

/* 配对游戏 */
.match-column { flex:1; }
.match-header { font-size:13px; font-weight:700; color:var(--gray-d); margin-bottom:12px; padding-bottom:8px; border-bottom:2px solid var(--gray-m); }
.match-item { padding:12px; background:#fff; border:2px solid var(--gray-m); border-radius:var(--rs); cursor:pointer; margin-bottom:8px; transition:.2s; }
.match-item:hover { border-color:var(--blue); }
.match-item.selected { border-color:var(--blue); background:var(--light-blue); }
.match-item.matched { border-color:var(--green); background:#E8F5E9; }

/* 连连看游戏 */
.match-game-wrapper { position:relative; display:flex; gap:24px; justify-content:center; padding:20px; }
.match-lines { position:absolute; top:0; left:0; width:100%; height:100%; pointer-events:none; z-index:10; }
.match-line { transition:all .3s ease; }
.match-line-connected { animation:lineDraw .3s ease; }
.match-line-pending { animation:pulseLine 1s ease-in-out infinite; }
@keyframes lineDraw {
  from { stroke-dasharray:1000; stroke-dashoffset:1000; }
  to { stroke-dasharray:1000; stroke-dashoffset:0; }
}
@keyframes pulseLine {
  0%, 100% { opacity:0.6; }
  50% { opacity:1; }
}
.match-column-left { text-align:right; }
.match-column-right { text-align:left; }
.match-item.wrong { border-color:#FC8181; background:#FEE2E2; animation:shake 0.5s ease; }
@keyframes shake {
  0%, 100% { transform:translateX(0); }
  25% { transform:translateX(-5px); }
  75% { transform:translateX(5px); }
}

/* 练习游戏 */
.practice-game { padding:20px; }
.game-title { font-size:20px; font-weight:800; color:var(--text); margin-bottom:8px; }
.game-desc { font-size:14px; color:var(--gray-d); margin-bottom:16px; }
.game-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; margin-bottom:16px; }
.game-item { padding:16px; background:#fff; border:2px solid var(--gray-m); border-radius:var(--rs); cursor:pointer; transition:.3s; text-align:center; font-size:14px; }
.game-item:hover { border-color:var(--blue); background:var(--light-blue); }
.game-item.selected { border-color:var(--blue); background:var(--light-blue); box-shadow:0 0 0 3px rgba(0,160,233,.2); }
.game-item.correct { border-color:#48BB78; background:#E8F5E9; }
.game-item.wrong { border-color:#FC8181; background:#FEE2E2; }
.game-item.ai-true { background:#EBF5FF; }
.game-item.ai-false { background:#FFF5F5; }

/* 关卡选择 */
.level-select { padding:20px; }
.level-title { font-size:20px; font-weight:800; color:var(--text); margin-bottom:16px; }
.level-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; }
.level-card { padding:20px; background:#fff; border:2px solid var(--gray-m); border-radius:var(--rs); cursor:pointer; transition:.3s; text-align:center; }
.level-card:hover { border-color:var(--blue); transform:translateY(-2px); }
.level-card.completed { border-color:#48BB78; background:#E8F5E9; }
.level-card .level-icon { font-size:32px; margin-bottom:8px; }
.level-card .level-name { font-weight:700; font-size:15px; margin-bottom:4px; }
.level-card .level-desc { font-size:12px; color:var(--gray-d); }

/* 分类游戏 */
.classify-game { padding:20px; }
.classify-categories { display:flex; gap:16px; margin-bottom:20px; flex-wrap:wrap; }
.category-bucket { flex:1; min-width:120px; padding:16px; background:#fff; border:2px dashed var(--gray-m); border-radius:var(--rs); text-align:center; cursor:pointer; transition:.3s; position:relative; }
.category-bucket:hover { border-color:var(--blue); background:var(--light-blue); }
.category-bucket.drag-over { border-color:var(--blue); border-style:solid; background:var(--light-blue); transform:scale(1.02); box-shadow:0 0 20px rgba(0,160,233,.2); }
.category-bucket.correct-drop { border-color:#48BB78; background:#E8F5E9; animation:correctPulse .3s ease; }
.category-bucket.wrong-drop { border-color:#FC8181; background:#FEE2E2; animation:shake 0.5s ease; }
.category-bucket .bucket-icon { font-size:32px; margin-bottom:8px; }
.category-bucket .bucket-name { font-weight:700; font-size:15px; margin-bottom:8px; }
.category-bucket .bucket-items { display:flex; flex-wrap:wrap; gap:4px; justify-content:center; min-height:40px; }
.bucket-item { font-size:20px; animation:popIn .3s ease; }
@keyframes popIn {
  0% { transform:scale(0); }
  100% { transform:scale(1); }
}
@keyframes correctPulse {
  0%, 100% { transform:scale(1); }
  50% { transform:scale(1.03); }
}
.classify-items { display:flex; flex-wrap:wrap; gap:12px; padding:16px; background:var(--gray-l); border-radius:var(--rs); min-height:80px; }
.classify-item { padding:12px 16px; background:#fff; border:2px solid var(--gray-m); border-radius:var(--rs); cursor:grab; transition:.3s; font-size:14px; user-select:none; }
.classify-item:hover { border-color:var(--blue); transform:translateY(-2px); }
.classify-item:active { cursor:grabbing; }
.classify-item.dragging { opacity:0.5; transform:rotate(3deg) scale(1.05); box-shadow:0 8px 24px rgba(0,0,0,.15); }
.classify-item.correct-drop { border-color:#48BB78; background:#E8F5E9; opacity:0; transform:scale(0); }
.classify-item.wrong-drop { border-color:#FC8181; background:#FEE2E2; animation:shake 0.5s ease; }

/* 伦理困境游戏 */
.dilemma-game { padding:20px; }
.dilemma-card { background:#fff; border-radius:var(--r); padding:24px; box-shadow:var(--shadow); margin-bottom:16px; }
.dilemma-title { font-size:18px; font-weight:800; color:var(--text); margin-bottom:12px; }
.dilemma-scenario { font-size:14px; line-height:1.6; color:var(--gray-d); margin-bottom:20px; padding:16px; background:var(--gray-l); border-radius:var(--rs); }
.dilemma-choices { display:flex; flex-direction:column; gap:10px; }
.dilemma-choice { padding:14px 16px; border:2px solid var(--gray-m); border-radius:var(--rs); cursor:pointer; transition:.3s; font-size:14px; text-align:left; background:#fff; }
.dilemma-choice:hover { border-color:var(--blue); background:var(--light-blue); }
.dilemma-choice.selected { border-color:var(--blue); background:var(--light-blue); }
.dilemma-choice.correct { border-color:#48BB78; background:#E8F5E9; color:#48BB78; }
.dilemma-choice.wrong { border-color:#FC8181; background:#FEE2E2; color:#FC8181; }
.dilemma-choice.disabled { cursor:not-allowed; opacity:0.7; }
.dilemma-feedback { margin-top:16px; padding:12px; border-radius:var(--rs); animation:fadeIn .3s ease; }

/* 朗读按钮 */
.tts-btn { background:linear-gradient(135deg,var(--purple),#5B48C8); color:#fff; border:none; padding:8px 16px; border-radius:20px; font-size:13px; font-weight:600; cursor:pointer; transition:.2s; margin-bottom:12px; }
.tts-btn:hover { transform:scale(1.05); }
.tts-btn-sm { padding:4px 10px; font-size:11px; margin-bottom:0; }
.tts-btn.speaking { background:var(--red); }
.tts-icon { margin-right:4px; }
.tts-label { font-size:12px; }

/* 学习卡片 */
.learn-content { display:flex; flex-direction:column; gap:16px; }
.learn-card { background:#fff; border-radius:var(--r); box-shadow:var(--shadow); overflow:hidden; }
.lc-header { display:flex; align-items:center; gap:12px; padding:16px 20px; background:var(--gray-l); }
.lc-icon { font-size:28px; }
.lc-title { font-size:16px; font-weight:700; }
.lc-body { padding:20px; }

/* 场景故事 */
.scene-story p { font-size:14px; line-height:1.6; margin-bottom:12px; }
.group-showcase { display:flex; gap:12px; margin:16px 0; flex-wrap:wrap; }
.group-item { display:flex; flex-direction:column; align-items:center; padding:12px 20px; border-radius:var(--rs); min-width:100px; }
.group-item.red { background:#FFF5F5; border:2px solid #FF6B6B; }
.group-item.green { background:#E8F5E9; border:2px solid #4ECDC4; }
.group-item.yellow { background:#FFF8E1; border:2px solid #FFE66D; }
.gi-icon { font-size:24px; margin-bottom:6px; }
.gi-name { font-size:12px; font-weight:600; }

/* 学习步骤 */
.learn-steps { background:var(--gray-l); border-radius:var(--rs); padding:16px; margin-bottom:16px; }
.learn-step { display:none; }
.learn-step.active { display:flex; gap:20px; animation:fadeIn .3s ease; }
.ls-num { font-size:36px; font-weight:800; color:var(--blue); min-width:40px; flex-shrink:0; }
.ls-content { flex:1; }
.ls-title { font-size:15px; font-weight:700; margin-bottom:12px; }
.ls-canvas-wrap { display:flex; justify-content:center; margin-bottom:12px; }
.ls-desc { font-size:13px; line-height:1.6; color:var(--gray-d); }
.learn-nav { display:flex; gap:12px; justify-content:center; }

/* 投票结果 */
.vote-result-box { background:#F0FFF4; border:2px solid var(--green); border-radius:var(--rs); padding:16px; margin-top:12px; }
.vote-final { margin-top:12px; font-weight:700; font-size:14px; text-align:center; }

/* 实践任务 */
.practice-tasks { margin-top:24px; background:#fff; border-radius:var(--r); box-shadow:var(--shadow); padding:20px; }
.pt-title { font-size:16px; font-weight:700; margin-bottom:12px; }
.pt-list { display:flex; flex-direction:column; gap:8px; }
.pt-item { display:flex; gap:10px; align-items:flex-start; padding:10px 12px; background:var(--gray-l); border-radius:var(--rs); }
.pt-check { font-size:16px; }
.pt-text { font-size:13px; line-height:1.5; }

/* 测试容器 */
.quiz-container { max-width:600px; margin:0 auto; }
.q-card { background:#fff; border-radius:var(--r); box-shadow:var(--shadow); padding:24px; margin-top:16px; }
.quiz-result { background:#fff; border-radius:var(--r); box-shadow:var(--shadow); padding:32px; margin-top:16px; text-align:center; }
.qr-icon { font-size:64px; margin-bottom:12px; }
.qr-title { font-size:22px; font-weight:800; margin-bottom:8px; }
.qr-score { font-size:20px; font-weight:700; color:var(--blue); margin-bottom:8px; }
.qr-comment { font-size:14px; color:var(--gray-d); margin-bottom:20px; }

/* ============================================================
   学习交互组件样式
   ============================================================ */

/* 交互式对比卡片 */
.compare-card-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; margin:16px 0; }
.compare-card { padding:16px; border-radius:var(--rs); border:2px solid transparent; transition:.3s; cursor:pointer; }
.compare-card:hover { transform:translateY(-2px); }
.compare-card.left { background:#FFF5F5; border-color:var(--red); }
.compare-card.right { background:#E8F5E9; border-color:var(--green); }
.compare-card-header { display:flex; align-items:center; gap:8px; margin-bottom:8px; font-weight:700; }
.compare-card-icon { font-size:20px; }
.compare-card-title { font-size:14px; }
.compare-card-desc { font-size:12px; line-height:1.5; color:var(--gray-d); }

/* 概念动画区 */
.concept-anim-box { background:linear-gradient(135deg,#FAFBFC,#F0F4F8); border-radius:var(--r); padding:20px; margin:16px 0; }
.concept-anim-title { font-size:15px; font-weight:700; margin-bottom:12px; display:flex; align-items:center; gap:8px; }
.concept-anim-canvas-wrap { display:flex; justify-content:center; margin:16px 0; }
.concept-anim-controls { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }

/* 动态公式展示 */
.formula-dynamic { background:var(--gray-l); padding:16px; border-radius:var(--rs); margin:12px 0; font-family:monospace; font-size:15px; text-align:center; }
.formula-dynamic .fd-highlight { color:var(--blue); font-weight:800; }
.formula-dynamic .fd-change { color:var(--red); animation:pulse .5s ease infinite; }

/* 交互式滑块演示 */
.slider-demo-box { display:flex; align-items:center; gap:16px; flex-wrap:wrap; padding:16px; background:var(--gray-l); border-radius:var(--rs); }
.slider-demo-label { font-size:14px; font-weight:600; min-width:80px; }
.slider-demo-value { color:var(--blue); font-weight:800; font-size:16px; min-width:40px; text-align:right; }
.slider-demo-canvas { width:300px; height:120px; border-radius:var(--rs); background:#fff; border:1px solid var(--gray-m); }

/* 动画步骤指示器 */
.anim-step-indicator { display:flex; gap:8px; margin:16px 0; justify-content:center; }
.anim-step-dot { width:12px; height:12px; border-radius:50%; background:var(--gray-m); transition:.3s; cursor:pointer; }
.anim-step-dot.active { background:var(--blue); transform:scale(1.3); box-shadow:0 0 8px rgba(0,160,233,.4); }

/* 数据变化动画 */
@keyframes valueChange {
  0% { transform:scale(1); }
  50% { transform:scale(1.2); color:var(--red); }
  100% { transform:scale(1); }
}
.value-change { animation:valueChange .5s ease; }

/* 交互式流程图 */
.flow-interactive { display:flex; flex-direction:column; gap:12px; }
.flow-step { display:flex; align-items:center; gap:12px; padding:12px 16px; background:#fff; border-radius:var(--rs); border:2px solid var(--gray-m); transition:.3s; }
.flow-step:hover { border-color:var(--blue); }
.flow-step.active { border-color:var(--blue); background:var(--light-blue); }
.flow-step-number { width:28px; height:28px; border-radius:50%; background:var(--gray-m); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:800; font-size:13px; }
.flow-step.active .flow-step-number { background:var(--blue); }
.flow-step-content { flex:1; }
.flow-step-title { font-size:14px; font-weight:700; }
.flow-step-desc { font-size:12px; color:var(--gray-d); margin-top:2px; }

/* 对比表格 */
.compare-table-wrap { overflow-x:auto; margin:16px 0; }
.compare-table-v2 { width:100%; border-collapse:collapse; background:#fff; border-radius:var(--rs); overflow:hidden; }
.compare-table-v2 th { background:var(--gray-l); padding:12px; font-weight:700; text-align:left; font-size:13px; }
.compare-table-v2 td { padding:12px; border-bottom:1px solid var(--gray-m); font-size:13px; }
.compare-table-v2 tr:hover td { background:var(--light-blue); }
.compare-table-v2 .ct-best { color:var(--green); font-weight:700; }
.compare-table-v2 .ct-worst { color:var(--red); font-weight:700; }

/* 交互式问答 */
.interactive-q-box { background:#fff; border-radius:var(--r); padding:20px; margin:16px 0; box-shadow:var(--shadow); }
.iq-title { font-size:15px; font-weight:700; margin-bottom:12px; }
.iq-question { font-size:14px; margin-bottom:12px; }
.iq-options { display:flex; flex-direction:column; gap:8px; }
.iq-option { padding:10px 14px; border:2px solid var(--gray-m); border-radius:var(--rs); cursor:pointer; transition:.2s; font-size:13px; }
.iq-option:hover { border-color:var(--blue); }
.iq-option.selected { border-color:var(--blue); background:var(--light-blue); }
.iq-option.correct { border-color:var(--green); background:#F0FFF4; color:var(--green); }
.iq-option.wrong { border-color:var(--red); background:#FFF5F5; color:var(--red); }
.iq-feedback { margin-top:12px; padding:12px; border-radius:var(--rs); font-size:13px; display:none; }
.iq-feedback.show { display:block; animation:fadeIn .3s ease; }
.iq-feedback.success { background:#F0FFF4; color:var(--green); }
.iq-feedback.error { background:#FFF5F5; color:var(--red); }

/* 可视化对比图 */
.viz-compare-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin:16px 0; }
.viz-compare-item { padding:16px; border-radius:var(--rs); text-align:center; }
.viz-compare-item.before { background:#FFF5F5; border:2px solid var(--red); }
.viz-compare-item.after { background:#E8F5E9; border:2px solid var(--green); }
.viz-compare-item.diff { background:#FFF8E1; border:2px solid #E67E22; }
.vci-icon { font-size:36px; margin-bottom:8px; }
.vci-title { font-size:14px; font-weight:700; margin-bottom:4px; }
.vci-desc { font-size:12px; line-height:1.5; color:var(--gray-d); }

/* 动态演示面板 */
.dynamic-demo-panel { background:#fff; border-radius:var(--r); padding:20px; margin:16px 0; box-shadow:var(--shadow); }
.ddp-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:16px; }
.ddp-title { font-size:16px; font-weight:700; }
.ddp-legend { display:flex; gap:16px; font-size:12px; }
.ddp-canvas-wrap { display:flex; justify-content:center; margin:16px 0; }
.ddp-stats { display:flex; gap:24px; justify-content:center; flex-wrap:wrap; margin-top:16px; }
.ddp-stat-item { text-align:center; }
.ddp-stat-label { font-size:12px; color:var(--gray-d); margin-bottom:4px; }
.ddp-stat-value { font-size:20px; font-weight:800; color:var(--blue); }

/* 学习进度条 */
.learning-progress-bar { height:8px; background:var(--gray-m); border-radius:4px; overflow:hidden; margin:16px 0; }
.learning-progress-fill { height:100%; background:linear-gradient(90deg,var(--blue),var(--green)); border-radius:4px; transition:.5s; }

/* 语音设置面板 */
.tts-settings-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}
.tts-settings-overlay.show {
  display: flex;
  animation: fadeIn 0.2s ease;
}
.tts-settings-panel {
  background: #fff;
  border-radius: 20px;
  padding: 28px;
  width: 420px;
  max-width: 90vw;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  animation: scaleIn 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.tts-settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.tts-settings-title {
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}
.tts-settings-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #F5F7FA;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.tts-settings-close:hover {
  background: #E0E6ED;
  transform: rotate(90deg);
}
.tts-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: #F8FAFC;
  border-radius: 12px;
  margin-bottom: 20px;
}
.tts-toggle-label {
  font-size: 15px;
  font-weight: 600;
}
.tts-toggle-switch {
  position: relative;
  width: 52px;
  height: 28px;
  border-radius: 14px;
  background: #CBD5E0;
  cursor: pointer;
  transition: background 0.3s;
}
.tts-toggle-switch.on {
  background: #00A0E9;
}
.tts-toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: transform 0.3s;
}
.tts-toggle-switch.on::after {
  transform: translateX(24px);
}
.tts-setting-item {
  margin-bottom: 20px;
}
.tts-setting-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #4A5568;
}
.tts-setting-value {
  font-size: 13px;
  color: #00A0E9;
  font-weight: 700;
}
.tts-select {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #E0E6ED;
  border-radius: 10px;
  font-size: 14px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7A8D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.tts-select:focus {
  outline: none;
  border-color: #00A0E9;
}
.tts-range {
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: #E0E6ED;
  border-radius: 3px;
  outline: none;
}
.tts-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #00A0E9;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,160,233,0.4);
  transition: transform 0.2s;
}

/* ============================================================
   登录页面样式
   ============================================================ */

.login-body { margin:0; padding:0; min-height:100vh; display:flex; align-items:center; justify-content:center; font-family:'Microsoft YaHei','PingFang SC',sans-serif; background:linear-gradient(135deg,#0a1628 0%,#1a365d 50%,#2c5282 100%); overflow:hidden; }

.login-wrapper { display:flex; width:100%; max-width:1200px; min-height:600px; margin:0 auto; position:relative; z-index:1; }

/* 左侧登录区域 */
.login-section { flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:40px 20px; position:relative; }

.login-bg { position:fixed; top:0; left:0; right:0; bottom:0; z-index:0; pointer-events:none; }

.bg-circle { position:absolute; border-radius:50%; animation:float 8s ease-in-out infinite; }
.bg-circle.c1 { width:400px; height:400px; background:rgba(0,160,233,.1); top:-100px; left:-100px; animation-delay:0s; }
.bg-circle.c2 { width:300px; height:300px; background:rgba(123,104,238,.08); bottom:-50px; right:-50px; animation-delay:3s; }
.bg-circle.c3 { width:200px; height:200px; background:rgba(72,187,120,.06); top:40%; right:20%; animation-delay:5s; }

@keyframes float {
  0%, 100% { transform:translate(0,0) scale(1); }
  33% { transform:translate(30px,-30px) scale(1.1); }
  66% { transform:translate(-20px,20px) scale(0.95); }
}

.login-card { background:rgba(255,255,255,.95); backdrop-filter:blur(20px); border:1px solid rgba(0,100,200,.15); border-radius:24px; padding:40px 36px; animation:fadeInUp .6s cubic-bezier(0.19,1,0.22,1) both; box-shadow:0 20px 60px rgba(0,0,0,.3); width:100%; max-width:400px; position:relative; z-index:1; height:680px; }

.login-header { text-align:center; margin-bottom:28px; }

.login-logo-wrap { position:relative; display:inline-block; margin-bottom:16px; }

.login-logo { width:72px; height:72px; border-radius:50%; object-fit:cover; animation:spin 8s linear infinite; box-shadow:0 0 30px rgba(0,160,233,.4); }

.logo-glow { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); width:96px; height:96px; border-radius:50%; background:rgba(0,160,233,.3); animation:pulseHalo 2s ease-out infinite; }

@keyframes pulseHalo {
  0% { opacity:0.6; transform:translate(-50%,-50%) scale(1); }
  100% { opacity:0; transform:translate(-50%,-50%) scale(2); }
}

.login-title { font-size:24px; font-weight:800; color:#003366; margin:0 0 4px; letter-spacing:-0.02em; }

.login-subtitle { font-size:14px; color:#666; margin:0; }

.form-group { margin-bottom:18px; }

.form-label { display:flex; align-items:center; gap:8px; color:#333; font-size:13px; font-weight:600; margin-bottom:6px; }

.label-icon { font-size:16px; }

.input-group { position:relative; }

.form-input { width:100%; padding:14px 16px; padding-right:44px; background:#f5f8fc; border:2px solid #e0e8f0; border-radius:12px; color:#333; font-size:15px; outline:none; transition:.3s; font-family:inherit; box-sizing:border-box; }
.form-input::placeholder { color:#999; }
.form-input:focus { border-color:#00A0E9; box-shadow:0 0 0 4px rgba(0,160,233,.15); background:#fff; }
.form-input:hover { border-color:#b0c8e0; }

.toggle-pwd { position:absolute; right:12px; top:50%; transform:translateY(-50%); background:none; border:none; color:#999; font-size:18px; cursor:pointer; transition:.3s; width:32px; height:32px; display:flex; align-items:center; justify-content:center; }
.toggle-pwd:hover { color:#00A0E9; }

.form-options { display:flex; align-items:center; justify-content:flex-start; margin-bottom:20px; }

.checkbox-label { display:flex; align-items:center; gap:8px; color:#666; font-size:13px; cursor:pointer; }
.checkbox-label input[type="checkbox"] { width:16px; height:16px; accent-color:#00A0E9; }

.btn-login { width:100%; padding:15px; background:linear-gradient(135deg,#00A0E9,#0077B6); border:none; border-radius:12px; color:#fff; font-size:16px; font-weight:700; cursor:pointer; transition:.3s; display:flex; align-items:center; justify-content:center; gap:10px; box-shadow:0 4px 16px rgba(0,160,233,.4); }
.btn-login:hover { transform:translateY(-2px); box-shadow:0 6px 24px rgba(0,160,233,.5); }
.btn-login:active { transform:translateY(0); }
.btn-login:disabled { opacity:.6; cursor:not-allowed; transform:none; }

.btn-text { position:relative; }

.btn-loader { display:none; width:20px; height:20px; border:2px solid rgba(255,255,255,.3); border-top-color:#fff; border-radius:50%; animation:spin .6s linear infinite; }

.default-account { margin-top:20px; padding:16px; background:#fff8e6; border:1px solid #ffe082; border-radius:12px; }

.default-label { font-size:12px; color:#8b6914; display:block; margin-bottom:8px; }

.account-info { display:flex; gap:20px; margin-bottom:12px; flex-wrap:wrap; }
.account-info span { font-size:13px; color:#333; }
.account-info strong { color:#0077B6; }

.btn-fill { width:100%; padding:10px; background:rgba(0,160,233,.1); border:1px solid rgba(0,160,233,.3); border-radius:8px; color:#0077B6; font-size:13px; font-weight:600; cursor:pointer; transition:.3s; }
.btn-fill:hover { background:rgba(0,160,233,.2); border-color:rgba(0,160,233,.5); }

.login-footer { text-align:center; margin-top:24px; position:relative; z-index:1; }
.login-footer p { font-size:12px; color:#888; }

.login-copyright { position:fixed; bottom:24px; left:0; right:0; text-align:center; z-index:1; }
.login-copyright p { font-size:12px; color:rgba(255,255,255,.6); margin:4px 0; }
.login-copyright .copyright-sub { font-size:11px; color:rgba(255,255,255,.4); }

.login-toast { position:fixed; top:40px; left:50%; transform:translateX(-50%) translateY(-100px); padding:14px 24px; border-radius:12px; font-size:14px; font-weight:600; opacity:0; transition:.4s; z-index:10000; }
.login-toast.show { transform:translateX(-50%) translateY(0); opacity:1; }
.login-toast.success { background:#48BB78; color:#fff; }
.login-toast.error { background:#FC8181; color:#fff; }
.login-toast.warning { background:#FFD700; color:#1A2B3C; }
.login-toast.info { background:#00A0E9; color:#fff; }

/* ============================================================
   右侧介绍区域样式
   ============================================================ */

.intro-section { flex:1.2; display:flex; align-items:center; justify-content:center; padding:40px; position:relative; overflow:hidden; }

.intro-content { position:relative; z-index:2; max-width:540px; animation:fadeInRight .8s cubic-bezier(0.19,1,0.22,1) both; }

@keyframes fadeInRight {
  from { opacity:0; transform:translateX(40px); }
  to { opacity:1; transform:translateX(0); }
}

.intro-badge { display:inline-block; padding:8px 16px; background:linear-gradient(135deg,rgba(255,215,0,.2),rgba(255,165,0,.15)); border:1px solid rgba(255,215,0,.4); border-radius:50px; color:#FFD700; font-size:13px; font-weight:700; margin-bottom:20px; animation:pulseBadge 2s ease-in-out infinite; }

@keyframes pulseBadge {
  0%, 100% { box-shadow:0 0 0 0 rgba(255,215,0,.3); }
  50% { box-shadow:0 0 0 8px rgba(255,215,0,0); }
}

.intro-title { font-size:42px; font-weight:800; color:#fff; line-height:1.2; margin:0 0 20px; letter-spacing:-0.02em; text-shadow:0 4px 20px rgba(0,0,0,.3); }

.intro-desc { font-size:16px; color:rgba(255,255,255,.75); line-height:1.8; margin:0 0 32px; }

/* 特色功能卡片 */
.feature-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-bottom:36px; }

.feature-card { background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.1); border-radius:16px; padding:20px; display:flex; gap:14px; transition:.3s; backdrop-filter:blur(10px); animation:fadeInUp .6s ease-out both; }
.feature-card:nth-child(1) { animation-delay:.1s; }
.feature-card:nth-child(2) { animation-delay:.2s; }
.feature-card:nth-child(3) { animation-delay:.3s; }
.feature-card:nth-child(4) { animation-delay:.4s; }
.feature-card:hover { background:rgba(255,255,255,.12); transform:translateY(-4px); border-color:rgba(255,255,255,.2); }

.feature-icon { font-size:28px; width:48px; height:48px; display:flex; align-items:center; justify-content:center; background:rgba(255,255,255,.1); border-radius:12px; flex-shrink:0; }

.feature-info h3 { font-size:15px; font-weight:700; color:#fff; margin:0 0 6px; }
.feature-info p { font-size:12px; color:rgba(255,255,255,.65); margin:0; line-height:1.6; }

/* 数据统计 */
.stats-row-login { display:flex; align-items:center; gap:24px; padding:24px; background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.1); border-radius:16px; backdrop-filter:blur(10px); }

.stat-item { flex:1; text-align:center; }
.stat-number { font-size:32px; font-weight:800; color:#FFD700; margin-bottom:4px; text-shadow:0 2px 10px rgba(255,215,0,.3); }
.stat-label { font-size:13px; color:rgba(255,255,255,.7); }
.stat-divider { width:1px; height:40px; background:rgba(255,255,255,.15); }

/* 装饰元素 */
.intro-decor { position:absolute; top:0; left:0; right:0; bottom:0; pointer-events:none; z-index:1; }

.deco-circle { position:absolute; border-radius:50%; opacity:.15; }
.dc1 { width:300px; height:300px; background:linear-gradient(135deg,#00A0E9,#0077B6); top:-100px; right:-50px; animation:float 10s ease-in-out infinite; }
.dc2 { width:200px; height:200px; background:linear-gradient(135deg,#7B68EE,#9370DB); bottom:10%; right:20%; animation:float 8s ease-in-out infinite reverse; animation-delay:2s; }
.dc3 { width:150px; height:150px; background:linear-gradient(135deg,#48BB78,#38A169); top:30%; left:10%; animation:float 12s ease-in-out infinite; animation-delay:4s; }

.deco-float { position:absolute; font-size:24px; animation:floatEmoji 6s ease-in-out infinite; }
.df1 { top:15%; right:15%; animation-delay:0s; }
.df2 { top:45%; right:8%; animation-delay:1s; }
.df3 { bottom:25%; right:20%; animation-delay:2s; }
.df4 { bottom:15%; left:15%; animation-delay:3s; }

@keyframes floatEmoji {
  0%, 100% { transform:translateY(0) rotate(0deg); }
  50% { transform:translateY(-15px) rotate(10deg); }
}

/* 响应式 */
@media (max-width:900px) {
  .login-wrapper { flex-direction:column; max-width:480px; }
  .login-section { padding:20px; }
  .login-card { padding:32px 28px; max-width:100%; }
  .intro-section { padding:30px 20px; }
  .intro-title { font-size:32px; }
  .feature-grid { grid-template-columns:1fr; }
  .stats-row-login { flex-direction:column; gap:16px; }
  .stat-divider { width:60px; height:1px; }
  .login-copyright { position:relative; bottom:0; margin-top:20px; }
}

@media (max-width:480px) {
  .login-card { padding:24px; }
  .login-title { font-size:22px; }
  .login-logo { width:60px; height:60px; }
  .intro-title { font-size:28px; }
  .feature-card { padding:16px; }
  .feature-icon { width:40px; height:40px; font-size:22px; }
  .stat-number { font-size:28px; }
}

.tts-preview-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #00A0E9, #0078B4);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.tts-preview-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,160,233,0.3);
}
.tts-preview-btn:active {
  transform: translateY(0);
}
.tts-voice-options {
  max-height: 200px;
  overflow-y: auto;
}
.tts-voice-option {
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  margin-bottom: 4px;
  transition: background 0.2s;
}
.tts-voice-option:hover {
  background: #F0F7FF;
}
.tts-voice-option.selected {
  background: #E8F7FF;
  color: #00A0E9;
  font-weight: 600;
}

/* 游戏头部 */
.game-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.game-stats {
  margin-left: auto;
  font-size: 14px;
  font-weight: 600;
  color: #00A0E9;
}
.game-feedback {
  margin-top: 16px;
  padding: 12px;
  border-radius: var(--rs);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  animation: fadeIn 0.3s ease;
}

/* ============================================================
   个人中心弹窗样式
   ============================================================ */
.user-center-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
}
.user-center-overlay.show {
  display: flex;
  animation: fadeIn 0.2s ease;
}
.user-center-panel {
  background: #fff;
  border-radius: 20px;
  padding: 0;
  width: 420px;
  max-width: 90vw;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  animation: scaleIn 0.3s cubic-bezier(0.34,1.56,0.64,1);
  overflow: hidden;
}
.uc-header {
  display: flex;
  align-items: center;
  padding: 24px;
  background: linear-gradient(135deg, #00A0E9, #0077B6);
  color: #fff;
  position: relative;
}
.uc-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.3);
  object-fit: cover;
  margin-right: 16px;
}
.uc-info {
  flex: 1;
}
.uc-name {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 4px;
}
.uc-email {
  font-size: 13px;
  opacity: 0.8;
}
.uc-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.2);
  cursor: pointer;
  font-size: 20px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.uc-close:hover {
  background: rgba(255,255,255,0.3);
  transform: rotate(90deg);
}
.uc-stats {
  display: flex;
  padding: 20px 24px;
  gap: 24px;
  background: #F8FAFC;
}
.uc-stat {
  flex: 1;
  text-align: center;
}
.ucs-num {
  font-size: 24px;
  font-weight: 800;
  color: #00A0E9;
  margin-bottom: 4px;
}
.ucs-label {
  font-size: 12px;
  color: #6B7A8D;
}
.uc-tabs {
  display: flex;
  border-bottom: 2px solid #E0E6ED;
}
.uc-tab {
  flex: 1;
  padding: 14px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #6B7A8D;
  transition: all 0.2s;
  position: relative;
}
.uc-tab:hover {
  color: #00A0E9;
}
.uc-tab.active {
  color: #00A0E9;
}
.uc-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 20%;
  right: 20%;
  height: 2px;
  background: #00A0E9;
}
.uc-content {
  padding: 20px 24px;
}
.uc-panel {
  animation: fadeIn 0.2s ease;
}
.uc-field {
  margin-bottom: 16px;
}
.uc-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #4A5568;
  margin-bottom: 6px;
}
.uc-field input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #E0E6ED;
  border-radius: 10px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.uc-field input:focus {
  border-color: #00A0E9;
}
.uc-field input:read-only {
  background: #F8FAFC;
  color: #6B7A8D;
}
.uc-btn {
  width: 100%;
  margin-top: 8px;
}
.uc-footer {
  padding: 16px 24px;
  border-top: 1px solid #E0E6ED;
}
.uc-logout-btn {
  width: 100%;
  padding: 12px;
}

/* 响应式 */
@media (max-width:1200px) {
  .sidebar-right { display:none; }
  .main-content { margin-right:0; }
  .module-grid { grid-template-columns:repeat(2,1fr); }
  .principle-grid { grid-template-columns:repeat(2,1fr); }
  .compare-card-grid { grid-template-columns:1fr; }
  .viz-compare-grid { grid-template-columns:1fr; }
}
@media (max-width:768px) {
  .sidebar { width:100%; transform:translateX(-100%); transition:.3s; }
  .sidebar.open { transform:translateX(0); }
  .main-content { margin-left:0; padding:16px; }
  .school-grid { grid-template-columns:1fr; }
  .achievement-grid { grid-template-columns:1fr; }
  .stage-nav { flex-wrap:wrap; }
  .stage-item { padding:12px 20px; }
  .stats-row { grid-template-columns:repeat(2,1fr); }
  .module-grid { grid-template-columns:1fr; }
  .recommend-grid { grid-template-columns:1fr; }
  .viz-layout { flex-direction:column; }
  .ctrl-panel { width:100%; }
  .nn-grid { flex-direction:column; }
  .principle-grid { grid-template-columns:1fr; }
  .poly-compare-grid { grid-template-columns:1fr; }
  .step-panel { flex-direction:column; }
}
