/* ============ 智学职达官网 ============ */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --bg-dark: #0b0d17;
  --card: #f5f5f7;
  --line: #e5e7eb;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #8e8e93;
  --blue: #0a84ff;
  --brand: #5e6ad2;
  --cyan: #22d3ee;
  --green: #34c759;
  --r-card: 14px;
  --r-btn: 8px;
  --shadow: 0 4px 24px rgba(0, 0, 0, .06);
  /* 全站统一使用宋体：Windows 为 SimSun / 宋体，macOS 为 Songti SC，Linux 回退 Noto Serif CJK */
  --font: "Songti SC", "SimSun", "宋体", "STSong", "Noto Serif CJK SC", serif;
  --mono: var(--font);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; }

/* ===== 按钮 ===== */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; border-radius: var(--r-btn); font-size: 15px; font-weight: 600; transition: all .25s ease; cursor: pointer; border: none; }
.btn-sm { padding: 7px 18px; font-size: 13px; }
.btn-lg { padding: 14px 36px; font-size: 16px; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 4px 16px rgba(10, 132, 255, .3); }
.btn-primary:hover { background: #006fd6; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { background: var(--bg-alt); }

/* ===== 导航 ===== */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: all .3s ease; }
.nav-inner { max-width: 1120px; margin: 0 auto; padding: 0 24px; height: 60px; display: flex; align-items: center; gap: 28px; }
.nav.scrolled { background: rgba(255, 255, 255, .72); backdrop-filter: saturate(180%) blur(18px); box-shadow: 0 1px 0 var(--line); }
.nav:not(.scrolled) { color: #fff; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 16px; letter-spacing: .5px; }
.logo-img { width: 30px; height: 30px; border-radius: 8px; box-shadow: 0 2px 8px rgba(10, 132, 255, .35); }
.logo-mark { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, var(--brand), var(--cyan)); color: #fff; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { font-size: 14px; opacity: .8; transition: opacity .2s; }
.nav-links a:hover { opacity: 1; }
.nav-cta { margin-left: 4px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: currentColor; margin: 4px 0; border-radius: 2px; }

/* ===== Hero ===== */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; background: var(--bg-dark); color: #fff; overflow: hidden; padding: 120px 0 80px; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
/* DarkVeil WebGL 背景（ReactBits DarkVeil 原生移植），铺满首屏背景层 */
.dark-veil-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
/* 启用 DarkVeil 时隐藏原有极光与光斑，避免与流动光带叠加过杂 */
.hero-bg[data-dark-veil] .hero-pattern,
.hero-bg[data-dark-veil] .glow { display: none; }
/* 性能：用预模糊的 radial-gradient 替代 filter: blur(90px)（省去大面积实时模糊） */
.glow { position: absolute; border-radius: 50%; }
.glow-1 { width: 640px; height: 640px; background: radial-gradient(closest-side, rgba(94, 106, 210, .4), transparent 72%); top: -180px; right: -80px; animation: glowFloat 16s ease-in-out infinite; }
.glow-2 { width: 480px; height: 480px; background: radial-gradient(closest-side, rgba(34, 211, 238, .16), transparent 72%); bottom: -140px; left: -120px; animation: glowFloat 20s ease-in-out infinite reverse; }
.glow-3 { width: 380px; height: 380px; background: radial-gradient(closest-side, rgba(16, 185, 129, .2), transparent 72%); top: 40%; left: 42%; animation: glowFloat 24s ease-in-out infinite; }
@keyframes glowFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(26px, -20px); }
}
@media (prefers-reduced-motion: reduce) {
  .glow-1, .glow-2, .glow-3 { animation: none; }
}
.glow-4 { width: 560px; height: 560px; background: radial-gradient(closest-side, rgba(94, 106, 210, .28), transparent 72%); top: -160px; left: -140px; }
.glow-5 { width: 460px; height: 460px; background: radial-gradient(closest-side, rgba(34, 211, 238, .14), transparent 72%); bottom: -160px; right: -100px; }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%); }

/* ===== 极光渐变动态背景（原样移植自 uiverse.io/risabbir/giant-mole-44） ===== */
.hero-pattern {
  /* 性能：整层放大 16% 供漂移余量；背景（含混合模式）只光栅化一次成纹理，
     动画改用纯 transform 合成器动画——替代原 background-position+filter 的逐帧全屏重绘 */
  position: absolute; top: -8%; left: -8%; width: 116%; height: 116%;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(138, 43, 226, .8) 0%, rgba(138, 43, 226, 0) 60%),
    radial-gradient(ellipse at 80% 50%, rgba(0, 191, 255, .7) 0%, rgba(0, 191, 255, 0) 70%),
    radial-gradient(ellipse at 50% 80%, rgba(50, 205, 50, .6) 0%, rgba(50, 205, 50, 0) 65%),
    linear-gradient(135deg, #000000 0%, #0a0520 100%);
  background-blend-mode: overlay, screen, hard-light;
  animation: aurora-drift 25s infinite alternate ease-in-out;
  will-change: transform;
}
/* 45° 双向斜纹网格，持续平移 */
.hero-pattern::before {
  content: "";
  position: absolute; width: 200%; height: 200%; top: -50%; left: -50%;
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .02) 0px, rgba(255, 255, 255, .02) 1px, transparent 1px, transparent 40px),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, .03) 0px, rgba(255, 255, 255, .03) 1px, transparent 1px, transparent 60px);
  animation: grid-shift 20s linear infinite;
}
/* 中心透明边缘压暗的呼吸暗角 */
.hero-pattern::after {
  content: "";
  position: absolute; width: 100%; height: 100%;
  background: radial-gradient(circle at center, transparent 70%, rgba(10, 5, 32, .9) 100%);
  animation: aurora-pulse 8s infinite alternate;
}
/* 渐变漂移：纯 transform（GPU 合成），不再逐帧重绘背景 */
@keyframes aurora-drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-1.6%, 1.2%, 0) scale(1.05); }
  100% { transform: translate3d(1.2%, -1.6%, 0) scale(1.02); }
}
@keyframes grid-shift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-50%, -50%); }
}
@keyframes aurora-pulse {
  0% { opacity: .8; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.05); }
  100% { opacity: .8; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-pattern, .hero-pattern::before, .hero-pattern::after { animation: none; }
}
.hero-inner { position: relative; max-width: 1120px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; width: 100%; }

.hero-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); color: rgba(255,255,255,.85); margin-bottom: 26px; }
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

.hero h1 { font-size: clamp(38px, 5vw, 60px); line-height: 1.14; font-weight: 700; letter-spacing: -1px; }
/* 渐变文字动画（移植自 reactbits GradientText：首色复制结尾无缝循环 + yoyo 往返） */
.grad-text {
  background-image: linear-gradient(to right, #8ea2ff 0%, #a78bfa 45%, #22d3ee 100%, #8ea2ff 100%);
  background-size: 300% 100%;
  background-repeat: repeat;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradientMove 8s ease-in-out infinite alternate;
}
@keyframes gradientMove {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .grad-text { animation: none; }
}
.hero-sub { margin-top: 22px; font-size: 17px; line-height: 1.75; color: rgba(255,255,255,.66); max-width: 540px; }
.hero-actions { margin-top: 24px; padding: 10px 0; display: flex; gap: 14px; flex-wrap: wrap; }
.hero .btn-ghost { color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.08); }

.hero-stats { margin-top: 48px; display: flex; gap: 40px; flex-wrap: wrap; }
.stat b { display: block; font-size: 26px; font-weight: 700; background: linear-gradient(120deg, #fff, #b9c4ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { font-size: 12.5px; color: rgba(255,255,255,.5); letter-spacing: .5px; }

/* 手机样机（uiverse 悬浮卡片风格：暗色机身+悬停3D倾斜+三色辉光，题目悬停浮现） */
/* 手机样机（原有悬浮动画已移除，改由多光标搭建引擎控制出场） */
.hero-phone { position: relative; display: flex; justify-content: center; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.phone {
  position: relative; width: 300px;
  border-radius: 42px;
  background: #000; border: 3px solid rgb(17, 4, 94);
  padding: 14px;
  /* 默认：3D 倾斜 + 三层辉光（吸睛状态），题目隐藏 */
  transform: rotate3d(5, 5, 10, -28deg);
  box-shadow:
    -40px 0px 5px 10px #289FED,
    -80px 0px 10px 20px #9dd2f5,
    -120px 0px 20px 40px #374650,
    0 30px 80px rgba(0,0,0,.55);
  z-index: 2;
  transition: transform 1s ease, box-shadow 1s ease;
}
.phone:hover {
  /* 悬停：回正 + 辉光收敛，题目浮现 */
  transform: none;
  box-shadow: 0 30px 80px rgba(0,0,0,.55);
}
.phone-notch { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 110px; height: 26px; background: #000; border-radius: 0 0 16px 16px; z-index: 3; }
.phone-screen {
  border-radius: 30px;
  background: linear-gradient(170deg, #0b0d17, #101426);
  color: #f3f0e8;
  padding: 44px 16px 18px;
  overflow: hidden;
  display: flex; flex-direction: column; gap: 22px;
  /* 撑回原刷题内容的高度比例，斜置黑屏时长宽比例与旧版一致 */
  min-height: 555px;
}
.phone-shadow { position: absolute; bottom: -30px; left: 50%; transform: translateX(-50%); width: 240px; height: 40px; background: rgba(40,159,237,.5); filter: blur(40px); }

.app-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: rgba(255,255,255,.62); margin-bottom: 0; }
.app-title { font-weight: 600; }
.app-timer { font-family: var(--mono); font-size: 11px; background: rgba(255,255,255,.08); padding: 3px 8px; border-radius: 6px; }

/* 悬停前隐藏屏内容（uiverse 卡片同款 reveal 交互）：斜置时纯黑屏，悬停回正浮现公式 */
.app-head, .app-formula { opacity: 0; transition: opacity .5s ease; }
.phone:hover .app-head, .phone:hover .app-formula { opacity: 1; }

/* 手机屏内容：黄金分割率 · MathJax 公式展示（金色点缀呼应「黄金」） */
.app-formula { flex: 1; justify-content: space-evenly; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.af-tag { align-self: center; display: inline-block; font-size: 10.5px; color: #f2c879; background: rgba(242,200,121,.14); padding: 4px 12px; border-radius: 999px; font-weight: 700; letter-spacing: 1px; }
.af-card { background: #1c2033; border-radius: 12px; padding: 13px 10px 9px; border: 1px solid rgba(255,255,255,.08); text-align: center; }
.af-name { font-size: 10px; color: rgba(255,255,255,.45); letter-spacing: 1px; margin-bottom: 2px; }
.af-math { color: #eadfc0; overflow-x: auto; overflow-y: hidden; padding: 2px 0; }
.af-math.gold { color: #f2c879; font-size: 16px; }
.af-math.small { color: rgba(255,255,255,.85); font-size: 12.5px; }
.af-card .af-math + .af-math { margin-top: 8px; }
.af-note { font-size: 10.5px; line-height: 1.75; color: rgba(255,255,255,.55); text-align: center; padding: 0 2px; }

/* ===== 通用区块 ===== */
.section { padding: 110px 0; }
.section-alt { background: var(--bg-alt); }
/* 学生端区块使用苹果灰底，衬托白色描边的 App 截图 */
#student { background: var(--bg-alt); }
.section-dark { position: relative; background: var(--bg-dark); color: #fff; overflow: hidden; }
.section-dark .glow { position: absolute; }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 60px; }
.sec-label { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 3px; color: var(--blue); margin-bottom: 14px; }
.sec-head h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 700; letter-spacing: -.5px; text-wrap: balance; }
.sec-head p { margin-top: 16px; font-size: 15.5px; line-height: 1.7; color: var(--ink-2); }
.sec-head-dark .sec-label { color: #8ea2ff; }
.sec-head-dark p { color: rgba(255,255,255,.6); }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* 卡片 */
.card { background: #fff; border-radius: var(--r-card); padding: 30px 26px; box-shadow: var(--shadow); transition: transform .3s ease, box-shadow .3s ease; }
.card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,.1); }
.icon { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.icon-blue { background: rgba(10,132,255,.1); color: var(--blue); }
.icon-green { background: rgba(52,199,89,.12); color: var(--green); }
.icon-purple { background: rgba(94,106,210,.12); color: var(--brand); }
.icon-orange { background: rgba(255,159,10,.14); color: #e88700; }
.icon-cyan { background: rgba(34,211,238,.14); color: #0891b2; }
.icon-red { background: rgba(255,59,48,.1); color: #ff3b30; }
.card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.card p { font-size: 13.5px; line-height: 1.7; color: var(--ink-2); }

/* ===== AI 演示区 ===== */
.demo { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: start; }
.demo-window { background: rgba(255,255,255,.05); border-radius: 16px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); overflow: hidden; backdrop-filter: blur(8px); }
.demo-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: rgba(255,255,255,.05); }
.demo-bar .d, .browser-bar .d { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.18); }
.demo-bar .d:first-child { background: #ff5f57; }
.demo-bar .d:nth-child(2) { background: #febc2e; }
.demo-bar .d:nth-child(3) { background: #28c840; }
.demo-title { margin-left: 10px; font-size: 12px; color: rgba(255,255,255,.5); }
.demo-body { padding: 20px; min-height: 320px; }
.msg { max-width: 92%; border-radius: 12px; padding: 12px 16px; font-size: 13.5px; line-height: 1.65; margin-bottom: 14px; }
.msg-user { margin-left: auto; background: var(--brand); color: #fff; }
.msg-ai { background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.msg-meta { font-size: 11.5px; color: #8ea2ff; margin-bottom: 10px; font-family: var(--mono); }
.msg-json { font-family: var(--mono); font-size: 12px; line-height: 1.7; color: #9ff0c8; white-space: pre-wrap; word-break: break-all; min-height: 24px; }
.msg-json .cur { display: inline-block; width: 7px; height: 14px; background: #9ff0c8; vertical-align: -2px; animation: blink 1s step-end infinite; margin-left: 2px; }
@keyframes blink { 50% { opacity: 0; } }
.msg-q { display: none; margin-top: 12px; background: rgba(10,132,255,.08); border-radius: 10px; padding: 14px; animation: fadeUp .5s ease both; }
.msg-q.show { display: block; }
.msg-q .qt { font-size: 10.5px; color: #8ea2ff; letter-spacing: 1px; margin-bottom: 6px; font-weight: 700; }
.msg-q .qq { font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.msg-q .qo { font-size: 12px; color: rgba(255,255,255,.65); padding: 6px 10px; background: rgba(255,255,255,.05); border-radius: 7px; margin-bottom: 5px; }
.msg-q .qo.ok { color: #4ade80; font-weight: 600; }

.demo-side { display: flex; flex-direction: column; gap: 14px; }
.demo-item { background: rgba(255,255,255,.05); border-radius: var(--r-card); padding: 18px 20px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.demo-item b { font-size: 15px; display: block; margin-bottom: 6px; }
.demo-item p { font-size: 13px; line-height: 1.65; color: rgba(255,255,255,.55); }

/* ===== 管理端 ===== */
.browser { border-radius: 16px; background: #fff; box-shadow: 0 24px 70px rgba(0,0,0,.12); overflow: hidden; margin-bottom: 40px; }
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: #f2f3f7; }
.browser-bar .d { background: #d9dbe3; }
.browser-bar .d:first-child { background: #ff5f57; }
.browser-bar .d:nth-child(2) { background: #febc2e; }
.browser-bar .d:nth-child(3) { background: #28c840; }
.browser-url { margin-left: 12px; font-size: 12px; color: var(--ink-3); background: #fff; border-radius: 6px; padding: 4px 14px; font-family: var(--mono); }
.browser-body { display: grid; grid-template-columns: 168px 1fr; min-height: 380px; }
.bd-side { background: #fafafc; border-right: 1px solid var(--line); padding: 18px 12px; display: flex; flex-direction: column; gap: 4px; }
.bd-side span { font-size: 13px; padding: 9px 14px; border-radius: 8px; color: var(--ink-2); }
.bd-side .on { background: rgba(10,132,255,.08); color: var(--blue); font-weight: 600; }
.bd-main { padding: 22px; }
.bd-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.bd-card { background: var(--bg-alt); border-radius: 12px; padding: 14px 16px; }
.bd-card span { font-size: 11.5px; color: var(--ink-3); display: block; }
.bd-card b { font-size: 22px; font-weight: 700; display: block; margin: 4px 0 2px; }
.bd-card i { font-size: 11px; font-style: normal; font-weight: 600; }
.bd-card .up { color: var(--green); }
.bd-card .down { color: #ff3b30; }
.bd-chart { margin-top: 16px; background: var(--bg-alt); border-radius: 12px; padding: 18px 22px 14px; }
.bd-chart > span { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.bars { display: flex; justify-content: space-around; align-items: flex-end; height: 170px; margin-top: 12px; }
.bar-v { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.bar-v i { display: block; width: 34px; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, var(--brand), #8ea2ff); animation: grow 1.2s cubic-bezier(.2,.8,.2,1) both; transform-origin: bottom; }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.bar-v em { font-style: normal; font-size: 11px; color: var(--ink-3); margin-top: 8px; }

.mini-card { background: #fff; border-radius: var(--r-card); padding: 22px; box-shadow: var(--shadow); }
.mini-card b { display: block; font-size: 15px; margin-bottom: 8px; }
.mini-card span { font-size: 13px; line-height: 1.65; color: var(--ink-2); }
.admin-grid { margin-top: 0; }

/* ===== 技术架构 · 等轴测方块（tiny-firefox-14 风格） ===== */
.iso-stage {
  display: flex; justify-content: center; align-items: flex-start;
  gap: 44px; flex-wrap: wrap;
  padding: 56px 0 20px;
}
/* ===== 技术架构 · 3×3×3 立方体（uiverse csemzepp 原版结构移植） ===== */
.tech-mosaic {
  position: relative;
  width: 420px; height: 420px;
  margin: 20px auto 10px;
  /* 右移校正：skewY 视觉重心偏左，补偿后立方体在区块内水平居中 */
  translate: 36px 0;
  transform: skewY(-20deg);
  /* 性能：移除原 cubeHue 色相旋转动画——方块为灰白色系，hue-rotate 无任何视觉变化，
     却让浏览器逐帧重绘整棵子树（filter 无法走合成器） */
}
/* 三个深度副本：中(z2) / 后(z1, 左上偏移) / 前(z3, 右下偏移) */
.tech-mosaic .cube {
  position: absolute; left: 105px; top: 105px;
  width: 210px; height: 210px;
}
.tech-mosaic .cube:nth-of-type(1) { z-index: 2; }
.tech-mosaic .cube:nth-of-type(2) { z-index: 1; translate: -60px -60px; }
.tech-mosaic .cube:nth-of-type(3) { z-index: 3; translate: 60px 60px; }

/* 每个立方体 = 3 列（--x）× 3 行（span 堆叠） */
.tech-mosaic .cl {
  position: absolute;
  display: flex; flex-direction: column; gap: 30px;
  translate: calc(-70px * var(--x)) 0;
}
.tech-mosaic .cl span {
  position: relative; display: inline-block;
  width: 50px; height: 50px;
  background: #dcdcdc;
  z-index: var(--i);
  cursor: pointer;
  transition: 1.5s;
}
.tech-mosaic .cl span::before {
  content: "";
  position: absolute; left: -40px;
  width: 40px; height: 100%;
  background: #fff;
  transform-origin: right; transform: skewY(45deg);
  transition: 1.5s;
}
.tech-mosaic .cl span::after {
  content: "";
  position: absolute; top: -40px; left: 0;
  width: 100%; height: 40px;
  background: #f2f2f2;
  transform-origin: bottom; transform: skewX(45deg);
  transition: 1.5s;
}
/* 悬停：单个方块瞬间变红发光 */
.tech-mosaic .cl span:hover {
  transition: 0s;
  background: #ef4149;
  filter: drop-shadow(0 0 26px #ef4149);
}
.tech-mosaic .cl span:hover::before,
.tech-mosaic .cl span:hover::after {
  transition: 0s;
  background: #ef4149;
}

/* 右侧粒子文字面板：占满立方体以外的全部剩余区域 */
.particle-panel {
  flex: 1 1 0; min-width: 460px;
  max-width: 620px;
  padding-top: 12px;
}
#particleCanvas {
  display: block; width: 100%; height: 640px;
  background: transparent;
  /* 光晕改由 GPU 合成层承担，替代 JS 逐帧 shadowBlur（原为 2.4 万次/帧的软件高斯模糊） */
  filter: drop-shadow(0 0 3px rgba(139, 92, 246, .38));
}
@media (prefers-reduced-motion: reduce) {
  .tech-mosaic { animation: none; }
  .tech-mosaic .cl span, .tech-mosaic .cl span::before, .tech-mosaic .cl span::after { transition: none; }
}
/* 窄屏缩放 */
@media (max-width: 760px) {
  .tech-mosaic { transform: skewY(-20deg) scale(.6); margin: 0 auto; }
  .particle-panel { min-width: 0; width: 100%; max-width: 560px; }
  #particleCanvas { height: 520px; }
}
@media (max-width: 560px) {
  /* 技术架构：方块缩小并去掉右移校正，粒子画布压矮适配竖屏 */
  .tech-mosaic { transform: skewY(-20deg) scale(.5); translate: 0 0; }
  #particleCanvas { height: 430px; }
}

/* ===== 全站多光标搭建（Multi-agent Page Builder） =====
   每个区块进入视口后，由彩色光标把标题、卡片与界面样机逐个「画」出来。
   光标只在执行任务时出现，不空转、不随机漂移；打字时严格吸附在光标位置。 */
.sb-layer { position: fixed; inset: 0; z-index: 98; pointer-events: none; overflow: hidden; }
.sb-cursors { position: absolute; inset: 0; }
.sb-cursor { position: absolute; left: 0; top: 0; opacity: 0; will-change: transform, opacity; }
.sb-cursor svg { display: block; width: 19px; height: 21px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .25)); }
.sb-cursor svg path { fill: var(--c); stroke: #fff; stroke-width: 1.4; stroke-linejoin: round; }
.sb-cursor .sb-name {
  position: absolute; left: 13px; top: 17px; background: var(--c); color: #fff;
  font-size: 10.5px; line-height: 1; padding: 4px 5px; border-radius: 4px; white-space: nowrap;
}
.sb-sel { position: absolute; display: none; border: 1px solid var(--blue); z-index: 1; }
.sb-h { position: absolute; width: 6px; height: 6px; background: #fff; border: 1px solid var(--blue); }
.sb-h.tl { left: -3.5px; top: -3.5px; }
.sb-h.tr { right: -3.5px; top: -3.5px; }
.sb-h.bl { left: -3.5px; bottom: -3.5px; }
.sb-h.br { right: -3.5px; bottom: -3.5px; }
.sb-sel-label {
  position: absolute; left: 0; top: -19px; font-size: 10.5px; color: var(--blue);
  font-weight: 600; white-space: nowrap;
}
.sb-sel-size {
  position: absolute; right: -1px; bottom: -24px; background: var(--blue); color: #fff;
  font-size: 10px; padding: 2px 6px; border-radius: 4px; white-space: nowrap;
}
.sb-caret {
  display: inline-block; width: 1.5px; height: 1em; margin-left: 2px;
  background: var(--blue); vertical-align: text-bottom;
  animation: sbCaret 1s steps(2) infinite;
}
@keyframes sbCaret { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }

/* 建造初态：隐藏但保留布局，选区框可按最终位置精确绘制 */
.sb-hold { opacity: 0 !important; }
.sb-hold.reveal { transform: none !important; }
/* 容器先显示，内部元素再逐个搭建 */
.sb-pre { opacity: 1 !important; transform: none !important; transition: none !important; }
/* 绘制完成后的揭晓动画（非 .reveal 元素） */
.sb-in { animation: sbIn .55s cubic-bezier(.22, .61, .36, 1) both; }
@keyframes sbIn {
  from { opacity: 0; clip-path: inset(0 100% 0 0); }
  to { opacity: 1; clip-path: inset(0 0 0 0); }
}
/* 椭圆轨道卡片由 JS 控制内联 opacity，揭晓时用过渡而非动画 */
.orbit-card { transition: opacity .45s ease, filter .45s ease; }

@media (prefers-reduced-motion: reduce) {
  .sb-caret { animation: none; }
  .sb-layer { display: none; }
  .sb-hold, .sb-pre { opacity: 1 !important; transform: none !important; }
  .sb-in { animation: none; }
}
@media (max-width: 560px) {
  .sb-cursor svg { width: 17px; height: 19px; }
  .sb-cursor .sb-name { font-size: 10px; left: 12px; top: 15px; padding: 3px 4px; }
  .sb-sel-label { font-size: 10px; top: -17px; }
  .sb-sel-size { font-size: 9px; bottom: -21px; }
}

/* ===== FAQ（Apple 风格：大留白 + 细分割线 + 分组手风琴） ===== */
.faq-section { background: #fff; }
.faq-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 72px; align-items: start; }
.faq-aside { position: sticky; top: 96px; }
.faq-aside h2 { font-size: clamp(30px, 3.2vw, 40px); font-weight: 700; letter-spacing: -.5px; line-height: 1.2; text-wrap: balance; }
.faq-aside-sub { margin-top: 14px; font-size: 14px; line-height: 1.9; color: var(--ink-2); }
.faq-nav { display: flex; flex-direction: column; margin-top: 28px; border-top: 1px solid var(--line); }
.faq-nav a { padding: 11px 2px; font-size: 13.5px; color: var(--ink-2); border-bottom: 1px solid var(--line); transition: color .2s ease; }
.faq-nav a:hover { color: var(--blue); }
.faq-contact { margin-top: 26px; }
.faq-contact b { display: block; font-size: 14px; color: var(--ink); margin-bottom: 6px; }
.faq-contact p { font-size: 12.5px; line-height: 1.8; color: var(--ink-3); }
.faq-contact a { color: var(--blue); }

.faq-main { min-width: 0; }
.faq-group { scroll-margin-top: 96px; }
.faq-group + .faq-group { margin-top: 64px; }
.faq-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding-bottom: 14px; border-bottom: 1px solid #d2d2d7; }
.faq-group-head h3 { font-size: 22px; font-weight: 600; letter-spacing: -.2px; }
.faq-group-head span { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }

.faq { background: transparent; border-radius: 0; box-shadow: none; border-bottom: 1px solid #d2d2d7; }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 19px 0; font-size: 16px; font-weight: 600; color: var(--ink); cursor: pointer; transition: color .2s ease; }
.faq summary:hover { color: var(--blue); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; width: 17px; height: 17px; flex: none; }
.faq summary i::before, .faq summary i::after {
  content: ""; position: absolute; background: #86868b; border-radius: 1px;
  transition: transform .3s ease, background .2s ease;
}
.faq summary i::before { top: 8px; left: 0; width: 17px; height: 1.5px; }
.faq summary i::after { top: 0; left: 8px; width: 1.5px; height: 17px; }
.faq summary:hover i::before, .faq summary:hover i::after { background: var(--blue); }
.faq[open] summary i::before { background: var(--blue); }
.faq[open] summary i::after { transform: scaleY(0); }
.faq p { padding: 0 48px 22px 0; margin-top: -4px; font-size: 14px; line-height: 1.9; color: #6e6e73; animation: faqAnswer .38s cubic-bezier(.22, .61, .36, 1) both; }
@keyframes faqAnswer {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .faq p { animation: none; }
}
@media (max-width: 900px) {
  .faq-layout { grid-template-columns: 1fr; gap: 40px; }
  .faq-aside { position: static; }
  .faq-aside-sub { max-width: 640px; }
  .faq-nav { flex-direction: row; flex-wrap: wrap; gap: 0 22px; border-top: none; margin-top: 20px; }
  .faq-nav a { border-bottom: none; padding: 6px 0; }
}
@media (max-width: 560px) {
  .faq-group + .faq-group { margin-top: 44px; }
  .faq-group-head { flex-direction: column; gap: 6px; }
  .faq summary { font-size: 15px; padding: 17px 0; }
  .faq p { padding-right: 24px; }
}

/* ===== CTA & Footer ===== */
.cta { position: relative; padding: 120px 0; text-align: center; background: var(--bg-dark); color: #fff; overflow: hidden; }
.cta h2 {
  font-family: "SimSun", "宋体", "Songti SC", "STSong", serif;
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 600;
  max-width: 15em; margin: 0 auto;     /* 限制行宽，两端对齐后两行左右边缘平整 */
  text-align: justify; text-align-last: justify;
  line-height: 1.6;
}
.cta h2 + h2 { margin-top: 14px; }
.cta p { margin: 16px 0 8px; color: rgba(255,255,255,.6); font-size: 16px; }
.cta .hero-actions { justify-content: center; margin-top: 18px; }

.footer { background: #07080f; color: rgba(255,255,255,.55); padding: 44px 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.footer-brand p { font-size: 12.5px; margin-top: 8px; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { font-size: 13px; transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: 12.5px; }
.footer-beian { width: 100%; text-align: center; margin-top: 8px; font-size: 12px; }
.footer-beian a { color: rgba(255,255,255,.4); margin: 0 10px; transition: color .2s; }
.footer-beian a:hover { color: rgba(255,255,255,.75); }
.footer-beian .footer-mail { color: rgba(255,255,255,.4); margin: 0 10px; }
.footer-beian .footer-mail a { margin: 0; }
/* 公安备案：徽标 + 编号同行居中 */
.footer-beian .footer-gongan { display: inline-flex; align-items: center; gap: 4px; vertical-align: middle; }
.footer-beian .footer-badge { width: 20px; height: 20px; display: block; }

/* ===== 滚动渐入 ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ===== 响应式 ===== */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-stats { justify-content: center; }
  /* 居中时两侧留出安全间距，避免「管理端」胶囊按钮贴住/超出屏幕左侧被裁切 */
  .hero-actions { padding: 10px 14px; }
  .hero-phone { margin-top: 48px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .demo { grid-template-columns: 1fr; max-width: 800px; margin: 0 auto; }
  .browser-body { grid-template-columns: 1fr; }
  .bd-side { flex-direction: row; overflow-x: auto; border-right: none; border-bottom: 1px solid var(--line); }
  .bd-cards { grid-template-columns: repeat(2, 1fr); }
  .arch-wrap { grid-template-columns: 1fr; gap: 32px; }
  .arch-card:hover { transform: none; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .nav.open { background: rgba(255,255,255,.9); color: var(--ink); backdrop-filter: blur(18px); }
  .nav.open .nav-links { display: flex; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: rgba(255,255,255,.95); padding: 20px 24px; gap: 18px; box-shadow: 0 12px 30px rgba(0,0,0,.08); }
}

/* 窄屏：等轴测方块纵向排列 */
@media (max-width: 640px) {
  .iso-stage { flex-direction: column; align-items: center; gap: 36px; }
}
@media (max-width: 560px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
  .hero-stats { gap: 24px; }
}

/* ===== 真实截图预览（管理端 Tab 切换 / App 手机壳） ===== */
.browser-shot { background: #f9fafd; }

/* ---- 管理端样机：仿 web-admin-react 真实布局（侧栏 + 顶栏 + 内容区） ---- */
.ad-shell { display: grid; grid-template-columns: 196px 1fr; min-height: 430px; }
.ad-side {
  display: flex; flex-direction: column; gap: 4px; padding: 14px 10px;
  border-right: 1px solid #e6e9ef;
  background: linear-gradient(135deg, #fafafa, #f2f2f4 55%, #e9e9ee);
}
.ad-logo { display: flex; align-items: center; gap: 9px; padding: 4px 8px 16px; }
.ad-logo img { width: 30px; height: 30px; border-radius: 9px; }
.ad-logo b { display: block; font-size: 13px; color: #0b0c0f; }
.ad-logo span { display: block; font-size: 9px; color: #a4abbc; margin-top: 1px; }
.ad-menu { display: flex; flex-direction: column; gap: 4px; }
.ad-menu a {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px;
  font-size: 11.5px; color: #626a7a; cursor: pointer;
  background: linear-gradient(135deg, #f4f4f6, #eaeaed);
  box-shadow: 3px 3px 6px rgba(201, 201, 209, .32), -3px -3px 6px rgba(255, 255, 255, .9);
  transition: color .2s, box-shadow .2s;
}
.ad-menu a svg { width: 14px; height: 14px; flex-shrink: 0; }
.ad-menu a.on { color: #4f48f0; font-weight: 600; box-shadow: inset 3px 3px 6px rgba(201, 201, 209, .45), inset -3px -3px 6px #fff; }
.ad-menu a.dim { color: #a4abbc; cursor: default; background: transparent; box-shadow: none; }
.ad-user {
  margin-top: auto; display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 10px;
  background: linear-gradient(135deg, #f4f4f6, #eaeaed);
  box-shadow: 3px 3px 6px rgba(201, 201, 209, .32), -3px -3px 6px rgba(255, 255, 255, .9);
}
.ad-user b { display: block; font-size: 11px; color: #22262f; }
.ad-user span { display: block; font-size: 9px; color: #a4abbc; }
.ad-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  font-style: normal; font-size: 10px; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, #8f88ff, #4f48f0);
}
.ad-avatar.sm { width: 24px; height: 24px; font-size: 9px; }
.ad-body { display: flex; flex-direction: column; min-width: 0; }
.ad-top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 48px; padding: 0 14px; background: rgba(255, 255, 255, .86);
  border-bottom: 1px solid #e6e9ef; backdrop-filter: blur(6px);
}
.ad-search {
  display: inline-flex; align-items: center; gap: 6px; min-width: 210px;
  padding: 6px 14px; border-radius: 999px; background: #f1f3f9;
  font-size: 10.5px; color: #a4abbc;
}
.ad-search svg { width: 13px; height: 13px; }
.ad-top-actions { display: flex; align-items: center; gap: 12px; }
.ad-bell { position: relative; display: inline-flex; color: #7f8798; }
.ad-bell svg { width: 16px; height: 16px; }
.ad-dot { position: absolute; top: 0; right: 0; width: 5px; height: 5px; border-radius: 50%; background: #f33939; }
.ad-main { flex: 1; padding: 14px 16px 16px; background: #f9fafd; }
.ad-main .shot-page { min-height: 430px; background: transparent; }
.ad-page-head h3 { font-size: 16.5px; font-weight: 700; color: #0b0c0f; }
.ad-page-head p { margin-top: 3px; font-size: 11px; color: #7f8798; }
.ad-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.ad-card {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 11px 13px; border: 1px solid #e6e9ef; border-radius: 12px;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .03);
}
.ad-card span { display: block; font-size: 10px; color: #7f8798; }
.ad-card b { display: block; margin-top: 2px; font-size: 17px; font-weight: 700; color: #0b0c0f; }
.ad-ic { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 10px; flex-shrink: 0; }
.ad-ic svg { width: 16px; height: 16px; }
.ad-ic.blue { color: var(--blue); background: rgba(10, 132, 255, .1); }
.ad-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.ad-panel { min-width: 0; padding: 12px 14px; border: 1px solid #e6e9ef; border-radius: 12px; background: #fff; }
.ad-panel-t { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; font-size: 11px; font-weight: 600; color: #3d4351; }
.ad-panel-t svg { width: 13px; height: 13px; color: var(--blue); }
.ad-area svg { display: block; width: 100%; height: 92px; }
.ad-xlabels { display: flex; justify-content: space-between; margin-top: 2px; }
.ad-xlabels em { font-style: normal; font-size: 8.5px; color: #a4abbc; }
.ad-hbars { display: flex; flex-direction: column; gap: 9px; padding-top: 4px; }
.ad-hbar { display: flex; align-items: center; gap: 6px; font-size: 9.5px; color: #a4abbc; }
.ad-hbar em { flex-shrink: 0; width: 76px; font-style: normal; color: #626a7a; }
.ad-hbar i { width: var(--w); height: 8px; border-radius: 4px; background: linear-gradient(90deg, #66b3ff, var(--blue)); }
.ad-hbar u { text-decoration: none; margin-left: 2px; }
.ad-table-card { margin-top: 10px; padding-bottom: 4px; }
.ad-table-scroll { overflow-x: auto; }
.ad-table { min-width: 520px; background: transparent; }
.ad-table th { padding: 7px 8px; font-size: 10px; color: #a4abbc; background: #f9fafd; border-bottom: 1px solid #e6e9ef; }
.ad-table td { padding: 7px 8px; font-size: 10.5px; border-bottom: 1px solid #f1f3f9; }
.ad-table tr:last-child td { border-bottom: none; }
.ad-stu { display: inline-flex; align-items: center; gap: 6px; }
.ad-stu i {
  display: flex; align-items: center; justify-content: center; width: 20px; height: 20px;
  border-radius: 50%; font-style: normal; font-size: 8.5px; color: #fff;
  background: linear-gradient(135deg, #b8b3ff, #5b58ff);
}
/* 数据总览：学生头像与页面主色统一为站点蓝 */
#page-dashboard .ad-stu i { background: linear-gradient(135deg, #7cc0ff, var(--blue)); }
.ad-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; }
.ad-search.wide { min-width: 240px; background: #fff; border: 1px solid #e6e9ef; }
.ad-btn { flex-shrink: 0; padding: 7px 12px; border-radius: 8px; font-size: 10.5px; font-weight: 600; color: #fff; background: #5b58ff; box-shadow: 0 4px 12px rgba(91, 88, 255, .28); }
.ad-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 4px; padding: 8px 2px 2px; font-size: 9.5px; color: #a4abbc; }
.ad-pagination button { width: 22px; height: 22px; border: none; border-radius: 6px; font-family: inherit; font-size: 10px; color: #626a7a; background: #f1f3f9; cursor: pointer; }
.ad-pagination button.on { color: #fff; background: #5b58ff; }
.ad-link { font-size: 10.5px; color: #5b58ff; cursor: pointer; }
.ad-stats { align-items: stretch; }
.ad-stats .sp-radar { max-width: 230px; margin: 4px auto 0; }
@media (max-width: 900px) {
  .ad-shell { grid-template-columns: 1fr; }
  .ad-side { display: none; }
  .ad-cards { grid-template-columns: repeat(2, 1fr); }
  .ad-grid2 { grid-template-columns: 1fr; }
  .ad-main { padding: 12px; }
  .ad-search { min-width: 0; flex: 1; }
  .ad-toolbar { flex-wrap: wrap; }
  .ad-search.wide { min-width: 0; flex: 1; }
}
.shot-tabs {
  display: flex; gap: 8px; padding: 12px 16px;
  background: #fff; border-bottom: 1px solid var(--line);
  overflow-x: auto; scrollbar-width: none;
}
.shot-tab {
  flex: 0 0 auto; border: none; cursor: pointer;
  background: #f2f2f4; color: var(--ink-2);
  font-size: 13px; font-weight: 500; font-family: inherit;
  padding: 7px 16px; border-radius: 8px; transition: all .2s;
}
.shot-tab:hover { color: var(--ink); }
.shot-tab.on { background: var(--blue); color: #fff; }

/* ---- 管理端页面模拟（参考 web-admin-react 真实页面） ---- */
.shot-page { display: none; min-height: 400px; background: #fafafc; }
.shot-page.on { display: block; }
/* 左右切换：自动轮播向右推进，手动回退时从左侧滑入 */
.shot-page.on.slide-right { animation: shotPageInRight .48s cubic-bezier(.22, .61, .36, 1) both; }
.shot-page.on.slide-left { animation: shotPageInLeft .48s cubic-bezier(.22, .61, .36, 1) both; }
@keyframes shotPageInRight {
  from { opacity: 0; transform: translateX(28px); }
  to { opacity: 1; transform: none; }
}
@keyframes shotPageInLeft {
  from { opacity: 0; transform: translateX(-28px); }
  to { opacity: 1; transform: none; }
}

/* 页面内容逐项入场（参考 ReactBits AnimatedContent）：
   ac-ready 阶段瞬时隐藏（不留反向淡出），ac-in 再播放位移 + 模糊过渡 */
.shot-page.ac-ready .ac-item {
  opacity: 0;
  transform: translateY(14px);
  filter: blur(4px);
  transition: none;
  will-change: opacity, transform, filter;
}
.shot-page.ac-ready .ac-item.ac-in {
  opacity: 1;
  transform: none;
  filter: blur(0);
  transition:
    opacity .55s cubic-bezier(.22, .61, .36, 1),
    transform .55s cubic-bezier(.22, .61, .36, 1),
    filter .55s cubic-bezier(.22, .61, .36, 1);
}
@media (prefers-reduced-motion: reduce) {
  .shot-page.on.slide-right, .shot-page.on.slide-left { animation: none; }
  .shot-page.ac-ready .ac-item {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}

/* 数据总览：侧栏 + 主区 */
.sp-layout { display: grid; grid-template-columns: 150px 1fr; min-height: 400px; }
.sp-sidebar { background: #fff; border-right: 1px solid var(--line); padding: 16px 10px; display: flex; flex-direction: column; gap: 3px; }
.sp-logo { font-size: 14px; font-weight: 800; color: var(--ink); padding: 4px 12px 14px; letter-spacing: .5px; }
.sp-sidebar span { font-size: 12.5px; padding: 8px 13px; border-radius: 8px; color: var(--ink-2); }
.sp-sidebar .on { background: rgba(91, 88, 255, .09); color: #5b58ff; font-weight: 600; }
.sp-main { padding: 16px; }
.sp-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.sp-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px; }
.sp-card span { font-size: 11.5px; color: var(--ink-3); display: block; }
.sp-card b { font-size: 19px; font-weight: 700; color: var(--ink); display: block; margin-top: 3px; }
.sp-charts { display: grid; grid-template-columns: 1.15fr .85fr; gap: 12px; margin-top: 12px; }
.sp-panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.sp-panel > span { font-size: 12px; font-weight: 600; color: var(--ink-2); display: block; margin-bottom: 10px; }
.sp-trend { width: 100%; height: 110px; display: block; }
.sp-xlabels { display: flex; justify-content: space-between; margin-top: 6px; }
.sp-xlabels em { font-style: normal; font-size: 10px; color: var(--ink-3); }
.sp-hbars { display: flex; flex-direction: column; gap: 11px; padding-top: 4px; }
.sp-hbar { display: flex; align-items: center; gap: 8px; }
.sp-hbar em { font-style: normal; font-size: 11px; color: var(--ink-2); width: 84px; flex-shrink: 0; }
.sp-hbar i { display: block; height: 12px; border-radius: 0 6px 6px 0; }
.sp-hbar u { text-decoration: none; font-size: 10.5px; color: var(--ink-3); margin-left: 2px; }

/* ---- 数据总览 · 管理端配色（浅色 + #5b58ff 主色） ---- */
.spd {
  position: relative;
  display: grid; grid-template-columns: 132px 1fr;
  min-height: 400px;
  background: linear-gradient(180deg, #fafbfe, #f4f6fb);
}
/* 主色光晕底边 */
.spd::before {
  content: ""; position: absolute; bottom: -36px; left: 50%;
  transform: translateX(-50%);
  width: 70%; height: 70px;
  background: rgba(91, 88, 255, .16);
  filter: blur(60px);
  pointer-events: none;
}
.spd-side { background: #fff; border-right: 1px solid var(--line); padding: 16px 10px; display: flex; flex-direction: column; gap: 3px; }
.spd-logo { font-size: 13.5px; font-weight: 800; padding: 4px 12px 14px; color: #5b58ff; }
.spd-side span { font-size: 12.5px; padding: 8px 13px; border-radius: 8px; color: var(--ink-2); transition: all .2s; }
.spd-side span:hover { color: var(--ink); }
.spd-side .on { background: rgba(91, 88, 255, .09); color: #5b58ff; font-weight: 600; }
.spd-main { padding: 18px 20px 16px; position: relative; z-index: 1; }

.spd-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.spd-title { display: flex; align-items: center; gap: 9px; }
.spd-title-ic { width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #5b58ff, #8b5cf6); color: #fff;
  box-shadow: 0 4px 14px rgba(91, 88, 255, .35); }
.spd-title h3 { font-size: 14px; font-weight: 600; color: var(--ink); }
.spd-live { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 600;
  color: #16a34a; background: rgba(34, 197, 94, .1); padding: 4px 10px; border-radius: 999px; }
.spd-live i { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 8px #22c55e; animation: pulse 2s infinite; }

.spd-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.spd-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; transition: all .3s ease; }
.spd-card:hover { border-color: rgba(91, 88, 255, .4); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(91, 88, 255, .12); }
.spd-card span { font-size: 11px; color: var(--ink-3); display: block; }
.spd-card b { font-size: 18px; font-weight: 700; color: var(--ink); display: block; margin: 3px 0 2px; }
.spd-card em { font-style: normal; font-size: 10.5px; font-weight: 600; }
.spd-card em.up { color: #16a34a; }
.spd-card em.down { color: #ef4444; }

.spd-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.spd-panel { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; overflow: hidden; }
.spd-panel > span { font-size: 11.5px; font-weight: 600; color: var(--ink-2); display: block; margin-bottom: 10px; }

/* 双层柱状：底柱轨道 + 实际值 */
.spd-bars { display: flex; justify-content: space-between; align-items: flex-end; height: 96px; gap: 6px; }
.spd-bar { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.spd-bar::before { content: ""; display: block; width: 12px; height: calc(var(--h) - 16px); border-radius: 3px; background: rgba(91, 88, 255, .14); position: relative; }
.spd-bar i { display: block; width: 12px; margin-top: calc(-1 * (var(--h) - 16px)); border-radius: 3px;
  background: linear-gradient(180deg, #8b85ff, #5b58ff); }
.spd-bar em { font-style: normal; font-size: 9.5px; color: var(--ink-3); margin-top: 7px; }

/* 折线图：网格线 + draw 流动动画 */
.spd-line { position: relative; height: 96px; }
.spd-gridlines { position: absolute; inset: 0; display: flex; justify-content: space-between; padding: 0 10px; }
.spd-gridlines i { width: 1px; height: 100%;
  background: linear-gradient(to top, rgba(29,29,31,0), rgba(29,29,31,.05) 50%, rgba(29,29,31,0)); }
.spd-line svg { position: relative; width: 100%; height: 100%; transition: transform .5s ease; }
.spd-panel:hover .spd-line svg { transform: scale(1.06); }
.spd-draw { stroke-dasharray: 600;
  /* 每次页面显示时描线一次，结束后保持完整可见（不再无限循环到消失） */
  animation: spdDraw 1.4s ease-out both;
  filter: drop-shadow(0 0 5px rgba(91, 88, 255, .45)); }
@keyframes spdDraw {
  from { stroke-dashoffset: 600; opacity: .85; }
  to { stroke-dashoffset: 0; opacity: 1; }
}

.spd-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.spd-foot > span { font-size: 11px; color: var(--ink-3); }

/* 学生管理：表格 */
.sp-table { width: 100%; border-collapse: collapse; background: #fff; }
.sp-table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--ink-3); padding: 13px 22px; border-bottom: 1px solid var(--line); }
.sp-table td { font-size: 13px; color: var(--ink); padding: 12px 22px; border-bottom: 1px solid #f0f0f3; }
.sp-table tr:last-child td { border-bottom: none; }
.st { font-style: normal; font-size: 11px; padding: 3px 10px; border-radius: 999px; font-weight: 600; }
.st.ok { color: #16a34a; background: rgba(34, 197, 94, .1); }
.st.idle { color: var(--ink-3); background: #f0f0f4; }

/* 学生列表自动滚动（无缝循环） */
.sp-scroll { height: 402px; overflow: hidden; }
.sp-scroll .sp-table { animation: none; }
.sp-scroll:hover .sp-table { animation-play-state: paused; }
@keyframes spScroll {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}

/* 调课表格 */
.sp-table-wrap { background: #fff; min-height: 402px; }
.tk { font-style: normal; font-size: 11px; padding: 3px 10px; border-radius: 6px; font-weight: 600; }
.tk-blue { color: #5b58ff; background: rgba(91, 88, 255, .09); }
.tk-green { color: #16a34a; background: rgba(34, 197, 94, .1); }
.tk-orange { color: #ea8a00; background: rgba(245, 158, 11, .12); }
.st.wait { color: #ea8a00; background: rgba(245, 158, 11, .12); }

/* 六维雷达图 */
.sp-stats-wrap {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 14px;
  padding: 16px; min-height: 400px; align-items: stretch;
}
.sp-radar-panel { display: flex; flex-direction: column; }
.sp-radar-panel .sp-radar { margin-top: 8px; }
.sp-radar { width: 100%; max-width: 280px; margin: 0 auto; display: block; }
.sp-radar-t { font-size: 9.5px; fill: var(--ink-2); font-weight: 600; }
.sp-student { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.sp-student-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.sp-avatar { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #5b58ff, #8b5cf6); color: #fff; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.sp-student-head b { font-size: 13.5px; color: var(--ink); display: block; margin-bottom: 3px; }
.sp-student-head span { font-size: 11.5px; color: var(--ink-3); }
.sp-dim-list { display: flex; flex-direction: column; gap: 10px; }
.sp-dim { display: flex; align-items: center; gap: 10px; }
.sp-dim span { font-size: 11.5px; color: var(--ink-2); width: 66px; flex-shrink: 0; }
.sp-dim i { flex: 1; height: 7px; border-radius: 4px; background: #f0f0f4; overflow: hidden; }
.sp-dim i b { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #5b58ff, #8b85ff); }
.sp-dim u { text-decoration: none; font-size: 11.5px; font-weight: 700; color: #5b58ff; width: 24px; text-align: right; }

@media (max-width: 760px) {
  .sp-layout { grid-template-columns: 1fr; }
  .sp-sidebar { flex-direction: row; overflow-x: auto; border-right: none; border-bottom: 1px solid var(--line); }
  .sp-logo { display: none; }
  .sp-cards, .sp-charts, .sp-course-grid, .sp-stats-wrap { grid-template-columns: 1fr; }
  .spd { grid-template-columns: 1fr; }
  .spd-side { flex-direction: row; overflow-x: auto; border-right: none; border-bottom: 1px solid rgba(255,255,255,.06); }
  .spd-logo { display: none; }
  .spd-cards, .spd-charts { grid-template-columns: 1fr 1fr; }
}

.app-shots {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 26px; margin-top: 46px;
  align-items: start;
}
/* 统一四张截图的比例与圆角：原图比例接近，cover 只裁掉 1%~2% 边缘 */
.shot-phone {
  margin: 0; aspect-ratio: 24 / 50;
  border: 1px solid #fff; border-radius: 16px; overflow: hidden;
}
.shot-phone img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ===== 手机展示：逐台逐项入场动画（参考 ReactBits AnimatedContent） ===== */
.app-shots.ac-ready .shot-phone {
  opacity: 0;
  transform: translateY(44px) scale(.96);
  filter: blur(10px);
  will-change: opacity, transform, filter;
  transition:
    opacity .8s cubic-bezier(.22, .61, .36, 1),
    transform .8s cubic-bezier(.22, .61, .36, 1),
    filter .8s cubic-bezier(.22, .61, .36, 1);
}
.app-shots.ac-ready .shot-phone.ac-in {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}
.app-shots.ac-ready .ac-item {
  opacity: 0;
  transform: translateY(14px);
  filter: blur(4px);
  will-change: opacity, transform, filter;
  transition:
    opacity .55s cubic-bezier(.22, .61, .36, 1),
    transform .55s cubic-bezier(.22, .61, .36, 1),
    filter .55s cubic-bezier(.22, .61, .36, 1);
}
.app-shots.ac-ready .ac-item.ac-in {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
@media (prefers-reduced-motion: reduce) {
  .app-shots.ac-ready .shot-phone,
  .app-shots.ac-ready .ac-item {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}

/* 轻量公式排版：分式 + 上下标（不依赖 MathJax / 外网 CDN） */
.frac {
  display: inline-flex;
  flex-direction: column;
  vertical-align: middle;
  text-align: center;
  margin: 0 2px;
  line-height: 1.15;
}
.frac .up { display: block; border-bottom: 1px solid currentColor; padding: 0 2px; }
.frac .dn { display: block; padding: 0 2px; }
.am-ans .am-formula { line-height: 1.85; }
.am-ans .am-formula .frac { font-size: 8.5px; }
.am-ans .am-formula sup,
.am-ans .am-formula sub { font-size: 7.5px; }

/* ---- App 界面 CSS 模拟（参考真机截图） ---- */
.am {
  height: 430px; overflow: hidden;
  border-radius: 26px;
  background: linear-gradient(180deg, #f4f5fa, #eef0f7);
  display: flex; flex-direction: column;
  text-align: left;
}
.am-status { display: flex; justify-content: space-between; padding: 8px 14px 4px; font-size: 9px; font-weight: 600; color: var(--ink-2); }
.am-body { padding: 12px 16px 14px; display: flex; flex-direction: column; min-height: 0; }

/* 登录页 */
.am-login .am-body { align-items: center; text-align: center; padding-top: 40px; }
.am-appname { font-size: 21px; font-weight: 800; letter-spacing: 1px;
  background: linear-gradient(120deg, #a5b4fc, #6366f1, #c4b5fd);
  background-clip: text; -webkit-background-clip: text; color: transparent; }
.am-appsub { font-size: 10px; color: #5b58ff; font-weight: 600; margin: 5px 0 26px; }
.am-login label { font-size: 10.5px; color: var(--ink); font-weight: 600; align-self: flex-start; margin: 10px 0 6px; }
.am-input { width: 100%; background: #fff; border: 1px solid #e8eaf1; border-radius: 10px;
  padding: 10px 12px; font-size: 10px; color: var(--ink-3); }
.am-check { display: flex; align-items: center; gap: 6px; font-size: 9.5px; color: var(--ink-2); align-self: flex-start; margin-top: 9px; }
.am-check i { width: 10px; height: 10px; border: 1.5px solid #5b58ff; border-radius: 3px; }
.am-check em { font-style: normal; color: #5b58ff; }
.am-btn-off { width: 100%; margin-top: 18px; padding: 11px 0; text-align: center; border-radius: 999px;
  background: #e3e4ea; color: #b6b8c2; font-size: 12px; font-weight: 600; letter-spacing: 4px; }
.am-hint { font-size: 9px; color: var(--ink-3); margin-top: 16px; }

/* 通用导航 / 进度 */
.am-nav { padding: 10px 14px; font-size: 13px; font-weight: 700; color: var(--ink); text-align: center; }
.am-progress { margin: 4px 14px 10px; padding: 7px 12px; background: #fff; border-radius: 8px;
  font-size: 10px; color: var(--ink-2); }
.am-progress b { color: #5b58ff; }
.am-scroll { flex: 1; overflow: hidden; padding: 0 14px; position: relative; }
.am-scroll::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 36px;
  background: linear-gradient(180deg, transparent, #eef0f7); pointer-events: none; }

/* 章节卡片 */
.am-ch { position: relative; background: #fff; border-radius: 12px; padding: 12px 13px; margin-bottom: 10px; }
.am-ch-head { display: flex; gap: 9px; }
.am-ch-head .dot { width: 11px; height: 11px; border-radius: 50%; border: 2px solid #d8dbe6; flex-shrink: 0; margin-top: 2px; }
.am-ch-head .dot.done { background: #34c759; border-color: #34c759; box-shadow: 0 0 0 3px rgba(52,199,89,.15); }
.am-ch-head span { font-size: 9px; color: #5b58ff; font-weight: 700; }
.am-ch-head b { display: block; font-size: 12px; color: var(--ink); margin: 2px 0 4px; }
.am-ch-head p { font-size: 9px; line-height: 1.5; color: var(--ink-3); margin: 0 0 5px; }
.am-ch-head u { text-decoration: none; font-size: 9px; color: var(--ink-3); }
.am-lesson { display: flex; align-items: center; gap: 8px; background: #f7f8fc; border-radius: 9px;
  padding: 8px 10px; margin: 6px 0 0 20px; font-size: 10.5px; color: var(--ink); }
.am-lesson em { font-style: normal; width: 20px; height: 20px; border-radius: 6px; background: #e8e9ff; color: #5b58ff;
  display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 700; flex-shrink: 0; }

/* 刷题页 */
.am-quiz { padding: 0 14px; }
.am-q-title { font-size: 14px; font-weight: 700; color: var(--ink); text-align: center; margin-top: 4px; }
.am-q-sub { font-size: 9px; color: var(--ink-3); text-align: center; margin: 4px 0 14px; }
.am-q-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.am-tag { font-size: 9px; font-weight: 700; color: #5b58ff; background: rgba(91,88,255,.09); padding: 3px 8px; border-radius: 6px; }
.am-q-meta em { font-style: normal; font-size: 10px; color: var(--ink-3); }
.am-question { font-size: 12.5px; font-weight: 600; color: var(--ink); margin: 0 0 10px; }
.am-opt { font-size: 10px; line-height: 1.5; color: var(--ink); background: #fff;
  border: 1px solid #e8eaf1; border-radius: 9px; padding: 8px 11px; margin-bottom: 7px; }
.am-opt.on { background: #5b58ff; border-color: #5b58ff; color: #fff; box-shadow: 0 6px 16px rgba(91,88,255,.35); }
/* 简答题解析卡片 */
.am-ans { background: #eef2ff; border-radius: 9px; padding: 9px 11px; margin-bottom: 7px; }
.am-ans b { display: block; font-size: 10px; color: #5b58ff; margin-bottom: 4px; }
.am-ans p { font-size: 10px; line-height: 1.6; color: var(--ink); margin: 0 0 4px; }
.am-ans p:last-child { margin-bottom: 0; }
.am-submit { margin-top: auto; padding: 11px 0; text-align: center; border-radius: 999px;
  background: #5b58ff; color: #fff; font-size: 12px; font-weight: 600; letter-spacing: 2px;
  box-shadow: 0 8px 20px rgba(91,88,255,.35); }
.am-tabbar { display: flex; justify-content: space-around; padding: 9px 0 4px; }
.am-tabbar span { font-size: 9px; color: var(--ink-3); position: relative; }
.am-tabbar .on { color: #5b58ff; font-weight: 700; }
.am-tabbar .on::before { content: ""; display: block; width: 14px; height: 14px; margin: 0 auto 3px;
  border-radius: 50%; border: 2px solid #5b58ff; }

/* 测评报告页 */
.am-rep-card { background: #fff; border-radius: 12px; text-align: center; padding: 14px 0 12px; margin-bottom: 10px; }
.am-rep-card span { font-size: 10px; color: var(--ink-2); display: block; }
.am-rep-card b { font-size: 34px; font-weight: 800; color: #5b58ff; }
.am-rep-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; background: #fff;
  border-radius: 12px; padding: 10px 8px; margin-bottom: 10px; }
.am-rep-stats div { text-align: center; }
.am-rep-stats span { font-size: 8.5px; color: var(--ink-3); display: block; margin-bottom: 3px; }
.am-rep-stats b { font-size: 10.5px; color: var(--ink); }
.am-sec { font-size: 11px; font-weight: 700; color: var(--ink); margin: 8px 0 7px; }
.am-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.am-detail span { font-size: 8.5px; color: var(--ink-2); background: #fff; border-radius: 6px; padding: 5px 8px; }
.am-detail i { font-style: normal; color: #16a34a; font-weight: 600; }
.am-kp { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.am-kp span { font-size: 9.5px; color: var(--ink-2); width: 68px; flex-shrink: 0; }
.am-kp i { flex: 1; height: 6px; border-radius: 3px; background: #e8eaf1; overflow: hidden; }
.am-kp i b { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #5b58ff, #8b85ff); }
.am-kp u { text-decoration: none; font-size: 9px; font-weight: 700; color: #5b58ff; }
.am-sw { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.am-sw b { font-size: 10px; display: block; margin-bottom: 4px; }
.am-sw p { font-size: 8.5px; line-height: 1.55; margin: 0; }
.am-sw .adv b { color: #16a34a; } .am-sw .adv p { color: var(--ink-2); background: rgba(34,197,94,.08); border-radius: 8px; padding: 7px 8px; }
.am-sw .weak b { color: #ff3b30; } .am-sw .weak p { color: var(--ink-2); background: rgba(255,59,48,.07); border-radius: 8px; padding: 7px 8px; }
@media (max-width: 960px) {
  .app-shots { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .app-shots { grid-template-columns: 1fr; }
  /* 移动端：截图占列宽 3/4 居中 */
  .shot-phone { width: 75%; margin: 0 auto; }
}
@media (max-width: 520px) {
  .app-shots { gap: 14px; }
}

/* ===== 「开始」按钮（原样移植自 uiverse Galaxy Button） ===== */
.button {
  --black-700: hsla(0 0% 12% / 1);
  --border_radius: 9999px;
  --transtion: 0.3s ease-in-out;
  --offset: 2px;

  cursor: pointer;
  position: relative;
  text-decoration: none;

  display: flex; align-items: center; justify-content: center; gap: 0.3rem;

  transform-origin: center;
  padding: 1rem 2rem;
  background-color: transparent;
  border: none;
  border-radius: var(--border_radius);
  transform: scale(calc(1 + (var(--active, 0) * 0.1)));
  transition: transform var(--transtion);
}
.button::before {
  content: "";
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 100%; height: 100%;
  background-color: var(--black-700);
  border-radius: var(--border_radius);
  box-shadow:
    inset 0 0.5px hsl(0, 0%, 100%), inset 0 -1px 2px 0 hsl(0, 0%, 0%),
    0px 4px 10px -4px hsla(0 0% 0% / calc(1 - var(--active, 0))),
    0 0 0 calc(var(--active, 0) * 0.375rem) hsl(260 97% 50% / 0.75);
  transition: all var(--transtion);
  z-index: 0;
}
.button::after {
  content: "";
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 100%; height: 100%;
  background-color: hsla(260 97% 61% / 0.75);
  background-image:
    radial-gradient(at 51% 89%, hsla(266, 45%, 74%, 1) 0px, transparent 50%),
    radial-gradient(at 100% 100%, hsla(266, 36%, 60%, 1) 0px, transparent 50%),
    radial-gradient(at 22% 91%, hsla(266, 36%, 60%, 1) 0px, transparent 50%);
  background-position: top;
  opacity: var(--active, 0);
  border-radius: var(--border_radius);
  transition: opacity var(--transtion);
  z-index: 2;
}
.button:is(:hover, :focus-visible) { --active: 1; }
.button:active { transform: scale(1); }

.button .dots_border {
  --size_border: calc(100% + 2px);
  overflow: hidden;
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: var(--size_border); height: var(--size_border);
  background-color: transparent;
  border-radius: var(--border_radius);
  z-index: -10;
}
.button .dots_border::before {
  content: "";
  position: absolute; top: 30%; left: 50%;
  transform: translate(-50%, -50%);
  transform-origin: left;
  width: 100%; height: 2rem;
  background-color: white;
  mask: linear-gradient(transparent 0%, white 120%);
  animation: btnRotate 2s linear infinite;
}
@keyframes btnRotate { to { transform: rotate(360deg); } }

.button .sparkle { position: relative; z-index: 10; width: 1.75rem; }
.button .sparkle .path {
  fill: currentColor; stroke: currentColor;
  transform-origin: center;
  color: hsl(0, 0%, 100%);
}
.button:is(:hover, :focus) .sparkle .path { animation: sparklePath 1.5s linear 0.5s infinite; }
.button .sparkle .path:nth-child(1) { --scale_path_1: 1.2; }
.button .sparkle .path:nth-child(2) { --scale_path_2: 1.2; }
.button .sparkle .path:nth-child(3) { --scale_path_3: 1.2; }
@keyframes sparklePath {
  0%, 34%, 71%, 100% { transform: scale(1); }
  17% { transform: scale(var(--scale_path_1, 1)); }
  49% { transform: scale(var(--scale_path_2, 1)); }
  83% { transform: scale(var(--scale_path_3, 1)); }
}
.button .text_button {
  position: relative; z-index: 10;
  background-image: linear-gradient(90deg, hsla(0 0% 100% / 1) 0%, hsla(0 0% 100% / var(--active, 0)) 120%);
  background-clip: text; -webkit-background-clip: text;
  font-size: 1rem; color: transparent;
}
@media (prefers-reduced-motion: reduce) {
  .button .dots_border::before, .button .sparkle .path { animation: none; }
}

/* ===== 「App」按钮（原样移植自 uiverse Galaxy Button） ===== */
.galaxy-btn {
  --btn-bg: #0c0c14;
  --btn-text: #ffffff;
  --btn-primary: #8553f4; /* Purple */
  --btn-secondary: #3b82f6; /* Blue */
  --btn-accent: #f43f5e; /* Pink */
  --btn-font-size: 16px;

  font-family: var(--font);
  font-size: var(--btn-font-size);
  display: flex; align-items: center; justify-content: center;
  padding: 0.9em 2em;
  border-radius: 0.75em;
  border: none;
  background: var(--btn-bg);
  position: relative;
  cursor: pointer;
  overflow: hidden;
  text-decoration: none;
  z-index: 1;
  transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 0.5em 1.5em -0.5em rgba(133, 83, 244, 0.4);
}
.galaxy-btn:focus-visible {
  outline: 2px solid var(--btn-primary);
  outline-offset: 4px;
}
.galaxy-btn:active { transform: scale(0.96); }

.galaxy-btn__content {
  display: flex; align-items: center; gap: 0.75em;
  position: relative; z-index: 2;
  color: var(--btn-text);
  font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
}
.galaxy-btn__icon {
  width: 1.25em; height: 1.25em;
  transition: transform 0.3s ease;
  fill: var(--btn-text);
}
.galaxy-btn:hover .galaxy-btn__icon { transform: translateX(0.25em) rotate(-10deg); }

/* 旋转星云渐变边框 */
.galaxy-btn::before {
  content: "";
  position: absolute; inset: -4px;
  z-index: 0;
  background: conic-gradient(
    from 0deg,
    var(--btn-bg) 0deg,
    var(--btn-primary) 60deg,
    var(--btn-secondary) 120deg,
    var(--btn-bg) 180deg,
    var(--btn-accent) 240deg,
    var(--btn-primary) 300deg,
    var(--btn-bg) 360deg
  );
  border-radius: 0.75em;
  animation: rotate-nebula 4s linear infinite;
  filter: blur(8px);
  opacity: 0.7;
  transition: opacity 0.3s ease;
}
.galaxy-btn:hover::before { opacity: 1; animation-duration: 2s; }

/* 遮罩出内部深色区域 */
.galaxy-btn::after {
  content: "";
  position: absolute; inset: 2px;
  background: var(--btn-bg);
  border-radius: 0.6em;
  z-index: 1;
}

/* 内部星点 */
.galaxy-btn__stars {
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 30%, white 1px, transparent 1.5px),
    radial-gradient(circle at 80% 70%, white 1px, transparent 1.5px),
    radial-gradient(circle at 40% 80%, white 0.5px, transparent 1px);
  background-size: 120% 120%;
  opacity: 0.3;
  transition: opacity 0.3s ease, background-position 0.3s ease;
}
.galaxy-btn:hover .galaxy-btn__stars {
  opacity: 0.8;
  animation: star-drift 5s linear infinite alternate;
}
@keyframes rotate-nebula {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes star-drift {
  0% { transform: scale(1); }
  100% { transform: scale(1.1) translate(-2%, -2%); }
}
@media (prefers-reduced-motion: reduce) {
  .galaxy-btn::before, .galaxy-btn:hover .galaxy-btn__stars { animation: none; }
}

/* ===== 学生端功能卡片椭圆轨道（OrbitImages 移植：卡片替代图片） ===== */
.orbit-wrap { margin-top: 20px; }
.orbit-stage {
  position: relative;
  height: 560px;
}
.orbit-path {
  position: absolute; left: 50%; top: 50%;
  width: calc(100% - 210px); height: 330px;
  transform: translate(-50%, -50%) rotate(-6deg);
  border: 1.5px dashed rgba(10, 132, 255, .28);
  border-radius: 50%;
}
.orbit-card {
  position: absolute; left: 50%; top: 50%;
  width: 210px;
  background: transparent; border: none;
  padding: 0;
  text-align: center;
  will-change: transform, opacity;
}
.orbit-card .oc-icon {
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 14px;
  margin: 0 auto 10px;
  color: var(--oc, var(--blue));
  background: color-mix(in srgb, var(--oc, var(--blue)) 12%, #fff);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--oc, var(--blue)) 22%, transparent);
}
.orbit-card .oc-icon svg { stroke: var(--oc, var(--blue)); }
.orbit-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 5px; color: var(--ink); }
.orbit-card p { font-size: 13px; line-height: 1.55; color: var(--ink-2); margin: 0; }
/* 窄屏回退：取消公转，改回普通网格 */
@media (max-width: 900px) {
  /* 手机端：轨道旋转 90°（椭圆竖向），保留公转动画，卡片由 JS 缩放
     内部字号/图标放大，抵消缩放后保证可读性 */
  .orbit-stage { height: 640px; }
  .orbit-path, .orbit-hint { display: none; }
  .orbit-card { width: 210px; }
  .orbit-card .oc-icon { width: 58px; height: 58px; border-radius: 16px; margin-bottom: 12px; }
  .orbit-card .oc-icon svg { width: 32px; height: 32px; }
  .orbit-card h3 { font-size: 24px; margin-bottom: 8px; }
  .orbit-card p { font-size: 17px; line-height: 1.5; }
}

/* ===== 「学练测评管」词链静态展示（原 True Focus 逐词聚焦动画已移除） ===== */
.focus-container { position: relative; display: inline-block; white-space: nowrap; }
.focus-container i { font-style: normal; opacity: .55; margin: 0 .28em; }
.focus-word {
  display: inline-block; font-weight: 600;
  filter: none;
}
.focus-word.active { filter: blur(0); }
.focus-frame {
  display: none;
}
.focus-frame.on { opacity: 1; }
.corner { position: absolute; width: 9px; height: 9px; border: 0 solid var(--blue); }
.c-tl { top: -5px; left: -5px; border-top-width: 2px; border-left-width: 2px; }
.c-tr { top: -5px; right: -5px; border-top-width: 2px; border-right-width: 2px; }
.c-bl { bottom: -5px; left: -5px; border-bottom-width: 2px; border-left-width: 2px; }
.c-br { bottom: -5px; right: -5px; border-bottom-width: 2px; border-right-width: 2px; }
.corner { box-shadow: 0 0 10px rgba(10, 132, 255, .6); }
@media (prefers-reduced-motion: reduce) {
  .focus-word { filter: blur(0); }
  .focus-frame { transition: none; }
}

/* ===== 白色胶囊脉冲按钮（Hero「开始 / App」） ===== */
/* 注：为避免与站点通用 .btn 冲突，类名定为 .pill-btn，样式还原参考效果 */
.pill-btn {
  position: relative;
  font-size: 17px;
  text-decoration: none;
  padding: 1em 2.5em;
  display: inline-block;
  cursor: pointer;
  border-radius: 6em;
  transition: transform .25s ease, box-shadow .35s ease;
  border: none;
  font-family: inherit;
  font-weight: 500;
  color: black;
  background-color: white;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
}

.pill-btn:hover {
  transform: translateY(-3px);
  /* 常驻一圈四边均匀的白色光晕，保证上下左右都有视觉反馈 */
  box-shadow: 0 0 0 6px rgba(255, 255, 255, .22), 0 10px 20px rgba(0, 0, 0, 0.2);
}

.pill-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .18), 0 5px 10px rgba(0, 0, 0, 0.2);
}

.pill-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  pointer-events: none;
  /* 悬停时一圈白光从胶囊边缘向外扩散：环状阴影不会遮住按钮内容，扩散半径小于按钮间距，避免被相邻按钮切断 */
  box-shadow: 0 0 0 0 rgba(255, 255, 255, .5);
  opacity: 0;
  transition: box-shadow .3s ease, opacity .3s ease;
}

.pill-btn:hover::after {
  opacity: 1;
  box-shadow: 0 0 0 12px rgba(255, 255, 255, 0);
  transition: box-shadow .55s cubic-bezier(.22, .61, .36, 1), opacity .55s cubic-bezier(.22, .61, .36, 1);
}

/* ===== 低性能自动降级（JS 帧率监测触发） ===== */
/* 连续检测到低帧率时，html.low-perf 停掉重绘型动画，保留静态视觉与合成器动画 */
.low-perf .hero-pattern,
.low-perf .grad-text,
.low-perf .hero-pattern::after {
  animation: none;
}

/* ===== 移动端适配补充（置于文件末尾以覆盖基础规则） ===== */
/* 粒子文字面板：等轴测方块使用 transform 缩放、布局宽度仍为 420px，
   会把 flex 交叉轴撑宽导致右侧画布溢出，改为块级布局让画布对齐装订线 */
@media (max-width: 640px) {
  .iso-stage { display: block; }
  .tech-mosaic { margin: 0 auto 36px; }
  .particle-panel { margin: 0 auto; }
}
@media (max-width: 560px) {
  .browser-bar { padding: 9px 10px; }
  .browser-url { font-size: 10.5px; padding: 3px 10px; }
  .shot-tabs { padding: 8px 10px; gap: 6px; flex-wrap: wrap; overflow: visible; }
  .shot-tab { font-size: 11.5px; padding: 6px 12px; }
  .ad-card b { font-size: 15px; }
  .ad-ic { width: 26px; height: 26px; border-radius: 8px; }
  .ad-ic svg { width: 13px; height: 13px; }
  .ad-top { height: 42px; padding: 0 10px; }
  .ad-search { padding: 5px 10px; }
  .ad-top .ad-avatar.sm { width: 20px; height: 20px; }
  /* 窄屏隐藏次要列，避免表格被裁切或需要横向滑动 */
  .ad-table { min-width: 0; }
  .ad-table th, .ad-table td { padding: 6px 5px; font-size: 10px; }
  #page-dashboard .ad-table th:nth-child(2), #page-dashboard .ad-table td:nth-child(2),
  #page-students .ad-table th:nth-child(2), #page-students .ad-table td:nth-child(2),
  #page-students .ad-table th:nth-child(4), #page-students .ad-table td:nth-child(4),
  #page-courses .ad-table th:nth-child(2), #page-courses .ad-table td:nth-child(2),
  #page-courses .ad-table th:nth-child(4), #page-courses .ad-table td:nth-child(4) {
    display: none;
  }
}
