/* ==================================================================
   思睿高机器人 · 官网样式（科技感 · 深色为主，可切换浅色）
   ================================================================== */
:root {
  --bg: #050a16;
  --bg2: #08122a;
  --bg3: #0b1830;
  --panel: rgba(14, 26, 50, .68);
  --panel-solid: #0d1b33;
  --line: rgba(96, 148, 226, .20);
  --line-strong: rgba(120, 190, 255, .45);
  --text: #e9f1ff;
  --text-2: #c3d4f0;
  --muted: #8498bd;
  --brand: #2ec5ff;
  --brand-2: #7b6cff;
  --accent: #22e6a6;
  --warn: #ffb020;
  --danger: #ff5b6e;
  --glow: 0 0 32px rgba(46, 197, 255, .35);
  --radius: 16px;
  --maxw: 1240px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
  --grid-line: rgba(90, 150, 230, .07);
}
[data-theme="light"] {
  --bg: #f2f6fd;
  --bg2: #e9f0fb;
  --bg3: #dde8f8;
  --panel: rgba(255, 255, 255, .86);
  --panel-solid: #ffffff;
  --line: rgba(30, 80, 160, .14);
  --line-strong: rgba(20, 90, 190, .34);
  --text: #0d1b33;
  --text-2: #2b3f61;
  --muted: #64789c;
  --brand: #0a84d8;
  --brand-2: #5a48e0;
  --accent: #0aa877;
  --glow: 0 0 26px rgba(10, 132, 216, .22);
  --shadow: 0 16px 40px rgba(20, 50, 110, .12);
  --grid-line: rgba(30, 90, 180, .07);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(900px 620px at 12% -8%, rgba(46, 197, 255, .17), transparent 62%),
    radial-gradient(760px 560px at 92% 4%, rgba(123, 108, 255, .17), transparent 60%),
    radial-gradient(700px 520px at 50% 108%, rgba(34, 230, 166, .10), transparent 62%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 55%, var(--bg) 100%);
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px),
                    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 26%, #000 12%, transparent 78%);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
::selection { background: rgba(46, 197, 255, .32); }

/* 全局兜底：浏览器给 hidden 属性内置的 display:none 属于「用户代理样式」，
   一旦作者样式里给同类元素写了 display（如 .btn 的 inline-flex），就会被覆盖 ⇒
   元素明明带 hidden 却照样显示。这里显式声明，避免再逐个元素打补丁。 */
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.mono { font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace; }

/* ------------------------------ 顶栏 ------------------------------ */
.nav {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 26px; height: 68px; }
.logo { display: flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: .4px; font-size: 18px; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: var(--glow); color: #fff; font-size: 17px; font-weight: 900;
  position: relative; overflow: hidden;
}
.logo-mark::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.55) 46%, transparent 62%);
  animation: sheen 3.4s infinite;
}
@keyframes sheen { 0% { transform: translateX(-120%); } 60%,100% { transform: translateX(140%); } }
.logo small { display: block; font-size: 10px; letter-spacing: 2.4px; color: var(--muted); font-weight: 600; }
.nav-links { display: flex; gap: 4px; margin-left: 8px; flex: 1; }
.nav-links a {
  padding: 8px 14px; border-radius: 10px; color: var(--text-2); font-size: 14.5px;
  transition: .2s; position: relative;
}
.nav-links a:hover { color: var(--text); background: var(--panel); }
.nav-links a.active { color: var(--brand); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2)); border-radius: 2px;
}
.nav-right { display: flex; align-items: center; gap: 10px; }

/* ------------------------------ 按钮 ------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: 12px; border: 1px solid var(--line-strong);
  background: var(--panel); color: var(--text); font-size: 14.5px; font-weight: 600;
  transition: .22s; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--glow); border-color: var(--brand); }
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-color: transparent; color: #fff;
}
.btn-primary:hover { box-shadow: 0 12px 34px rgba(46, 197, 255, .42); }
.btn-accent { background: linear-gradient(135deg, var(--accent), #12b0d8); border-color: transparent; color: #04121a; }
.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 10px; }
.btn-ghost { background: transparent; }
.btn-danger { border-color: rgba(255, 91, 110, .5); color: #ff8a97; }
.btn-danger:hover { background: rgba(255, 91, 110, .14); box-shadow: 0 0 24px rgba(255,91,110,.28); border-color: #ff5b6e; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.icon-btn {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px;
  border: 1px solid var(--line); background: var(--panel); color: var(--text-2);
}
.icon-btn:hover { color: var(--brand); border-color: var(--brand); }

/* ------------------------------ Hero ------------------------------ */
.hero { position: relative; padding: 78px 0 66px; overflow: hidden; }
#heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: 48px; align-items: center; }
.tagline {
  display: inline-flex; align-items: center; gap: 9px; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--panel); font-size: 13px; color: var(--brand);
  margin-bottom: 22px; letter-spacing: .6px;
}
.tagline .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(1.35); } }
h1.hero-title {
  font-size: 52px; line-height: 1.16; margin: 0 0 20px; font-weight: 800; letter-spacing: -1px;
}
.grad-text {
  background: linear-gradient(105deg, var(--brand) 8%, var(--brand-2) 52%, var(--accent) 96%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { color: var(--text-2); font-size: 17px; max-width: 560px; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 34px; margin-top: 42px; flex-wrap: wrap; }
.stat-num { font-size: 30px; font-weight: 800; letter-spacing: -1px; }
.stat-label { font-size: 13px; color: var(--muted); }
.stat span.unit { font-size: 15px; font-weight: 600; color: var(--brand); margin-left: 2px; }

/* Hero 右侧全息卡 */
.holo {
  position: relative; border-radius: 22px; padding: 22px;
  background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}
.holo::before {
  content: ""; position: absolute; inset: -1px; border-radius: 22px; padding: 1px;
  background: linear-gradient(130deg, rgba(46,197,255,.7), transparent 42%, rgba(123,108,255,.7));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.holo-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.holo-head b { font-size: 15px; }
.holo .chip { font-size: 11px; padding: 3px 9px; border-radius: 999px; background: rgba(34,230,166,.14); color: var(--accent); border: 1px solid rgba(34,230,166,.35); }
.holo canvas { width: 100%; height: 210px; display: block; border-radius: 12px; background: rgba(0,0,0,.16); }
[data-theme="light"] .holo canvas { background: rgba(230,240,255,.7); }
.holo-rows { margin-top: 14px; display: grid; gap: 9px; }
.holo-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.holo-row b { color: var(--text); font-weight: 600; }
.bar { height: 5px; border-radius: 4px; background: rgba(120,160,220,.18); overflow: hidden; margin-top: 5px; }
.bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); }

/* ------------------------------ 通用区块 ------------------------------ */
section.block { padding: 74px 0; position: relative; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 40px; flex-wrap: wrap; }
.sec-kicker { font-size: 12.5px; letter-spacing: 3px; color: var(--brand); font-weight: 700; text-transform: uppercase; margin-bottom: 8px; }
.sec-title { font-size: 33px; font-weight: 800; margin: 0; letter-spacing: -.6px; }
.sec-desc { color: var(--muted); margin-top: 10px; max-width: 620px; }

/* 版本卡片 */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cards.c3 { grid-template-columns: repeat(3, 1fr); }
.cards.c2 { grid-template-columns: repeat(2, 1fr); }
.card {
  position: relative; border-radius: var(--radius); padding: 26px 22px;
  background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(10px);
  transition: .28s; overflow: hidden;
}
.card:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.card::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--c, var(--brand)), transparent); opacity: .9;
}
.card .ico {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 21px;
  background: color-mix(in srgb, var(--c, var(--brand)) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--c, var(--brand)) 42%, transparent);
  color: var(--c, var(--brand)); margin-bottom: 16px;
}
.card h3 { margin: 0 0 6px; font-size: 19px; font-weight: 750; }
.card .sub { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.card .feat { display: grid; gap: 7px; margin: 14px 0 18px; }
.card .feat div { font-size: 13.4px; color: var(--text-2); display: flex; gap: 8px; align-items: flex-start; }
.card .feat div::before { content: "▸"; color: var(--c, var(--brand)); font-size: 12px; line-height: 1.9; }
.card .price { font-size: 24px; font-weight: 800; color: var(--c, var(--brand)); }
.card .price s { font-size: 13px; color: var(--muted); font-weight: 500; margin-left: 8px; }
.pill {
  display: inline-block; font-size: 11.5px; padding: 3px 9px; border-radius: 999px;
  background: rgba(123,108,255,.14); color: var(--brand-2); border: 1px solid rgba(123,108,255,.3);
}
.pill.green { background: rgba(34,230,166,.13); color: var(--accent); border-color: rgba(34,230,166,.32); }
.pill.orange { background: rgba(255,138,61,.14); color: #ff8a3d; border-color: rgba(255,138,61,.32); }
.pill.red { background: rgba(255,91,110,.13); color: #ff8a97; border-color: rgba(255,91,110,.32); }
.pill.grey { background: rgba(140,160,190,.13); color: var(--muted); border-color: var(--line); }

/* 特色 */
.feature-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  border-radius: var(--radius); padding: 24px; border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--panel), transparent);
}
.feature h4 { margin: 12px 0 8px; font-size: 17px; }
.feature p { color: var(--muted); font-size: 13.6px; margin: 0; }
.feature .num { font-size: 12px; letter-spacing: 2px; color: var(--brand); font-weight: 700; }

/* 课程体系 */
.sysmap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.syscol { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: var(--panel); }
.syscol h4 { margin: 0 0 4px; font-size: 16.5px; color: var(--c, var(--brand)); }
.syscol .grade { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.syscol .grade b { font-size: 14px; }
.syscol .terms { display: flex; gap: 6px; margin-top: 7px; flex-wrap: wrap; }
.syscol .terms span {
  font-size: 11.5px; padding: 3px 8px; border-radius: 7px; background: rgba(120,160,220,.12);
  color: var(--text-2); border: 1px solid var(--line);
}

/* ------------------------------ 课程中心 ------------------------------ */
.filters {
  display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--panel); margin-bottom: 30px;
}
.filter-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.filter-row > label { font-size: 13px; color: var(--muted); width: 62px; flex-shrink: 0; letter-spacing: .5px; }
.chipset { display: flex; gap: 8px; flex-wrap: wrap; }
.chipset button {
  padding: 7px 15px; border-radius: 10px; font-size: 13.6px; font-weight: 600;
  border: 1px solid var(--line); background: transparent; color: var(--text-2); transition: .2s;
}
.chipset button:hover { border-color: var(--line-strong); color: var(--text); }
.chipset button.on {
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); border-color: transparent; color: #fff;
  box-shadow: 0 8px 22px rgba(46,197,255,.28);
}

.lesson-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.lesson-card {
  position: relative; border-radius: 14px; padding: 18px; border: 1px solid var(--line);
  background: var(--panel); transition: .25s; cursor: pointer; overflow: hidden;
}
.lesson-card:hover { transform: translateY(-4px); border-color: var(--brand); box-shadow: var(--glow); }
.lesson-card .seq { font-size: 30px; font-weight: 800; letter-spacing: -2px; color: var(--brand); opacity: .85; line-height: 1; }
.lesson-card h4 { margin: 10px 0 6px; font-size: 15px; font-weight: 650; }
.lesson-card .meta { display: flex; gap: 10px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.lesson-card .meta b { color: var(--text-2); font-weight: 600; }
.lesson-card.locked { cursor: not-allowed; }
.lesson-card.locked::before {
  content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, rgba(120,150,200,.06) 0 10px, transparent 10px 20px);
}
.lesson-card.locked .seq { color: var(--muted); }
.lesson-card .lock-badge {
  position: absolute; top: 14px; right: 14px; font-size: 11px; padding: 3px 9px; border-radius: 999px;
  background: rgba(255,138,61,.15); color: #ff9d55; border: 1px solid rgba(255,138,61,.35);
}

/* ------------------------------ 课次详情 ------------------------------ */
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 26px; align-items: start; }
.panel {
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel);
  backdrop-filter: blur(10px); overflow: hidden;
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 15px 20px; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 15px;
}
.panel-body { padding: 20px; }
.video-box { background: #000; border-radius: 12px; overflow: hidden; position: relative; }
.video-box video { width: 100%; display: block; max-height: 66vh; background: #000; }
.video-note {
  padding: 10px 14px; font-size: 12.6px; color: var(--muted); background: rgba(255,176,32,.07);
  border-top: 1px solid var(--line);
}
.video-list { display: grid; gap: 8px; margin-top: 14px; }
.video-item {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 11px;
  border: 1px solid var(--line); background: rgba(120,160,220,.06); cursor: pointer; transition: .2s;
}
.video-item:hover, .video-item.on { border-color: var(--brand); background: rgba(46,197,255,.10); }
.video-item .vt { font-size: 13.6px; font-weight: 600; flex: 1; }
.video-item .vs { font-size: 12px; color: var(--muted); }

/* 自动暂停提示层：不压暗画面、不遮挡内容，只在画面最底部显示一行小字。
   pointer-events:none → 点击穿透到 <video>，原生控制条、播放按钮、进度条照常可用。
   （与离线课件、小程序保持同一套观感：暂停时的画面亮度与播放时完全一致） */
.pause-gate {
  position: absolute; inset: 0; z-index: 5;
  display: flex; align-items: flex-end; justify-content: center;
  /* 停在控制条上方一点，免得盖住进度条（暂停时控制条一定会显示） */
  padding: 0 12px 52px;
  pointer-events: none; background: none;
  animation: pgIn .18s ease;
}
.pause-gate[hidden] { display: none; }
@keyframes pgIn { from { opacity: 0; } to { opacity: 1; } }
.pause-gate .pg-tip {
  max-width: 92%; padding: 5px 14px; border-radius: 999px;
  font-size: 12.4px; line-height: 1.6; letter-spacing: .2px; white-space: nowrap;
  color: #eaf4ff; background: rgba(6, 14, 30, .55);
  text-shadow: 0 1px 3px rgba(0, 0, 0, .9);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .38);
}
.pause-gate .pg-tip b { color: #7ddcff; font-variant-numeric: tabular-nums; }
.pause-gate .pg-tip em {
  font-style: normal; padding: 1px 7px; border-radius: 6px;
  background: rgba(46, 197, 255, .2); color: #9fe6ff;
}
.pause-gate.pulse .pg-tip { animation: pgPulse 1.9s ease-in-out infinite; }
@keyframes pgPulse { 0%, 100% { opacity: .68; } 50% { opacity: 1; } }

.pause-hint {
  padding: 9px 14px; font-size: 12.6px; line-height: 1.85; color: rgba(200, 220, 245, .82);
  background: rgba(46, 197, 255, .09); border-top: 1px solid rgba(46, 197, 255, .22);
}
.pause-hint b { color: #2ec5ff; }
.pause-hint .pts {
  display: block; margin-top: 3px; color: rgba(180, 205, 235, .6);
  font-variant-numeric: tabular-nums; word-break: break-all;
}

/* PPT 幻灯片 */
.slides-wrap { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 16px; }
.slides-nav { max-height: 460px; overflow-y: auto; display: grid; gap: 8px; padding-right: 6px; }
.slide-thumb {
  border: 2px solid transparent; border-radius: 9px; overflow: hidden; cursor: pointer;
  background: rgba(120,160,220,.08); position: relative;
}
.slide-thumb img { width: 100%; display: block; }
.slide-thumb span {
  position: absolute; left: 6px; bottom: 5px; font-size: 11px; padding: 1px 7px; border-radius: 6px;
  background: rgba(0,0,0,.62); color: #dfe9ff;
}
.slide-thumb.on { border-color: var(--brand); box-shadow: var(--glow); }
.slide-main { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: rgba(0,0,0,.2); position: relative; }
.slide-main img { width: 100%; display: block; }
.slide-bar { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 12px; border-top: 1px solid var(--line); }
.slide-bar .idx { font-size: 13px; color: var(--muted); min-width: 74px; text-align: center; }
.pdf-frame { width: 100%; height: 620px; border: 0; border-radius: 12px; background: #fff; }

/* 教案图集 */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.plan-grid img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px;
  border: 1px solid var(--line); cursor: zoom-in; transition: .24s;
}
.plan-grid img:hover { transform: scale(1.035); border-color: var(--brand); box-shadow: var(--glow); }

/* 教案单列连贯查看：一行最多一张，按上传顺序纵向排列 */
.plan-column { display: flex; flex-direction: column; gap: 22px; max-width: 860px; margin: 0 auto; }
.plan-column.fullwidth { max-width: none; }
.plan-fig {
  margin: 0; position: relative; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line); background: var(--panel);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .28);
  transition: border-color .24s, box-shadow .24s;
}
.plan-fig:hover { border-color: var(--brand); box-shadow: var(--glow); }
.plan-fig img { display: block; width: 100%; height: auto; cursor: zoom-in; }
.plan-fig .plan-seq {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  min-width: 30px; height: 30px; padding: 0 9px; border-radius: 9px;
  display: grid; place-items: center; font-size: 13.5px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 4px 14px rgba(0, 0, 0, .4);
}
.plan-fig figcaption {
  padding: 10px 14px; font-size: 12.8px; color: var(--muted);
  border-top: 1px solid var(--line); background: var(--panel-2, var(--panel));
}
/* 教案文件（PDF / Word 等） */
.plan-files { margin-top: 30px; }
.plan-files-title { font-size: 14.6px; font-weight: 700; margin-bottom: 12px; }
.plan-file-row {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px;
  background: var(--panel); transition: .2s;
}
.plan-file-row:hover { border-color: var(--brand); }
.plan-file-row .pf-ic { font-size: 24px; }
.plan-file-row .pf-info { flex: 1; min-width: 0; }
.plan-file-row .pf-info b { display: block; font-size: 14.2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plan-file-row .pf-info small { color: var(--muted); font-size: 12.2px; }

/* 导航 / 页脚 logo 图片 */
.logo .logo-img { height: 40px; width: auto; display: block; border-radius: 8px; }
.logo .logo-img.only { height: 46px; }
.foot-logo-img { height: 52px; width: auto; display: block; margin-bottom: 12px; }

/* 灯箱 */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(3, 7, 16, .93);
  display: none; align-items: center; justify-content: center; padding: 30px;
}
.lightbox.on { display: flex; }
.lightbox img { max-width: 94vw; max-height: 88vh; object-fit: contain; border-radius: 10px; }
.lightbox .lb-close { position: absolute; top: 22px; right: 26px; font-size: 30px; color: #fff; cursor: pointer; line-height: 1; }
.lightbox .lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 74px;
  display: grid; place-items: center; background: rgba(255,255,255,.09); border-radius: 12px;
  color: #fff; font-size: 26px; cursor: pointer;
}
.lightbox .lb-prev { left: 22px; }
.lightbox .lb-next { right: 22px; }
.lightbox .lb-cap { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; color: #cfe0ff; font-size: 13.5px; }

/* 侧栏信息 */
.side-item { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: 13.6px; }
.side-item:last-child { border-bottom: 0; }
.side-item span { color: var(--muted); }
.side-item b { font-weight: 650; }
.nav-tree { display: grid; gap: 6px; }
.nav-tree a {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px;
  font-size: 13.6px; color: var(--text-2); border: 1px solid transparent;
}
.nav-tree a:hover { background: rgba(120,160,220,.10); border-color: var(--line); }
.nav-tree a.on { background: rgba(46,197,255,.12); border-color: var(--line-strong); color: var(--text); }
.nav-tree a.disabled { opacity: .45; pointer-events: none; }
.nav-tree a i { font-style: normal; font-size: 11px; color: var(--muted); margin-left: auto; }

/* ------------------------------ 表单 ------------------------------ */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 7px; letter-spacing: .3px; }
.input, select.input, textarea.input {
  width: 100%; padding: 11px 14px; border-radius: 11px; border: 1px solid var(--line);
  background: rgba(8, 16, 34, .6); color: var(--text); font-size: 14.5px; font-family: inherit;
  transition: .2s; outline: none;
}
[data-theme="light"] .input { background: #fff; }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(46,197,255,.16); }
.input::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
textarea.input { resize: vertical; min-height: 84px; }
select.input option { background: var(--panel-solid); color: var(--text); }
.checkbox { display: flex; align-items: center; gap: 9px; font-size: 13.6px; color: var(--text-2); cursor: pointer; }
.checkbox input { width: 16px; height: 16px; accent-color: var(--brand); }

/* 登录页 */
.auth-wrap { min-height: calc(100vh - 68px); display: grid; place-items: center; padding: 40px 24px; }
.auth-card {
  width: 100%; max-width: 420px; border-radius: 20px; padding: 36px 32px;
  background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(18px);
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.auth-card::before {
  content: ""; position: absolute; top: -60%; left: -20%; width: 60%; height: 220%;
  background: linear-gradient(90deg, transparent, rgba(46,197,255,.14), transparent);
  transform: rotate(18deg); animation: sweep 5.5s infinite;
}
@keyframes sweep { 0% { left: -60%; } 100% { left: 130%; } }
.auth-card > * { position: relative; }
.auth-card h2 { margin: 0 0 6px; font-size: 25px; font-weight: 800; }
.auth-card p.tip { color: var(--muted); font-size: 13.4px; margin: 0 0 26px; }
.auth-tabs { display: flex; gap: 6px; margin-bottom: 22px; padding: 4px; border-radius: 12px; background: rgba(120,160,220,.10); }
.auth-tabs button {
  flex: 1; padding: 9px; border: 0; border-radius: 9px; background: transparent; color: var(--muted);
  font-size: 14px; font-weight: 600;
}
.auth-tabs button.on { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; }
/* 零部件图页签：暖色描边，与离线课件端的 .tab-extra 视觉一致 */
.auth-tabs button.tab-parts { color: #ffb020; box-shadow: inset 0 0 0 1px rgba(255,176,32,.45); }
.auth-tabs button.tab-parts.on { background: linear-gradient(135deg, #ffb020, #ff7a59); color: #3a1f00; box-shadow: none; }
.form-msg { font-size: 13px; padding: 10px 13px; border-radius: 10px; margin-bottom: 14px; display: none; }
.form-msg.err { display: block; background: rgba(255,91,110,.12); color: #ff9aa6; border: 1px solid rgba(255,91,110,.3); }
.form-msg.ok { display: block; background: rgba(34,230,166,.12); color: var(--accent); border: 1px solid rgba(34,230,166,.3); }
/* 登录卡片底部提示（不再展示任何演示账号 / 密码） */
.auth-foot {
  margin-top: 22px; padding-top: 16px; border-top: 1px dashed var(--line);
  font-size: 12.6px; line-height: 1.85; color: var(--muted);
}

/* ------------------------------ 会员中心 ------------------------------ */
.perm-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.perm-card {
  border: 1px solid var(--line); border-radius: 13px; padding: 15px 17px; background: var(--panel);
  position: relative;
}
.perm-card b { font-size: 15px; display: block; }
.perm-card small { color: var(--muted); font-size: 12.4px; }
.perm-card .badges { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }

/* 空状态 */
.empty { text-align: center; padding: 56px 20px; color: var(--muted); }
.empty .big { font-size: 42px; opacity: .35; margin-bottom: 12px; }

/* ------------------------------ 页脚 ------------------------------ */
footer.site-foot {
  border-top: 1px solid var(--line); padding: 52px 0 30px; margin-top: 40px;
  background: linear-gradient(180deg, transparent, rgba(8,18,42,.55));
}
[data-theme="light"] footer.site-foot { background: linear-gradient(180deg, transparent, rgba(220,232,250,.7)); }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 34px; }
.foot-grid h5 { margin: 0 0 14px; font-size: 14px; letter-spacing: .6px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-grid li, .foot-grid p { color: var(--muted); font-size: 13.3px; margin: 0; }
.foot-grid a:hover { color: var(--brand); }
/* 页脚公众号二维码（后台上传后出现） */
.foot-qr { margin-top: 14px; display: flex; align-items: center; gap: 11px; }
.foot-qr[hidden] { display: none; }
.foot-qr img {
  width: 86px; height: 86px; border-radius: 10px; object-fit: cover;
  background: #fff; padding: 4px; border: 1px solid var(--line);
}
.foot-qr span { color: var(--muted); font-size: 12.4px; line-height: 1.7; }
.foot-bottom {
  margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  color: var(--muted); font-size: 12.6px;
}

/* Toast */
#toastBox { position: fixed; top: 84px; right: 24px; z-index: 300; display: grid; gap: 10px; }
.toast {
  min-width: 220px; max-width: 380px; padding: 12px 16px; border-radius: 12px; font-size: 13.8px;
  background: var(--panel-solid); border: 1px solid var(--line-strong); box-shadow: var(--shadow);
  animation: toastIn .28s ease; color: var(--text);
}
.toast.ok { border-color: rgba(34,230,166,.5); }
.toast.err { border-color: rgba(255,91,110,.5); }
@keyframes toastIn { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }

/* 骨架屏 */
.skel { border-radius: 10px; background: linear-gradient(90deg, rgba(120,160,220,.10), rgba(120,160,220,.22), rgba(120,160,220,.10)); background-size: 200% 100%; animation: skel 1.3s infinite; }
@keyframes skel { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* 滚动条 */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(120,160,220,.26); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: rgba(120,160,220,.42); }

/* 入场动画 */
.reveal { opacity: 0; transform: translateY(22px); transition: .7s cubic-bezier(.22,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }

/* ------------------------------ 教学计划 ------------------------------ */
/* 让教学计划入口在页面里跳出来：左侧强调条 + 渐变标题条 + 呼吸小圆点 */
.plan-band { position: relative; overflow: hidden; border-color: var(--line-strong) !important; }
.plan-band::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; z-index: 2;
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
}
.plan-band > .panel-head {
  padding-left: 24px; font-weight: 800; font-size: 15.4px;
  background: linear-gradient(135deg, rgba(46,197,255,.20), rgba(123,108,255,.14));
}
.plan-head {
  display: flex; align-items: center; gap: 11px; flex-wrap: wrap; margin-bottom: 14px;
  padding: 11px 15px; border-radius: 13px;
  background: linear-gradient(135deg, rgba(46,197,255,.16), rgba(123,108,255,.13));
  border: 1px solid var(--line-strong);
}
.plan-head b { font-size: 16px; letter-spacing: .3px; }
.plan-head .muted { font-size: 13.2px; color: var(--text-2); margin-left: auto; }
.plan-head .ph-dot {
  flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--danger);
  box-shadow: 0 0 0 4px rgba(255,91,110,.18); animation: phDot 1.6s ease-in-out infinite;
}
@keyframes phDot { 0%, 100% { opacity: 1; } 50% { opacity: .28; } }
.plan-empty {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 16px 18px; border-radius: 14px; font-size: 13.6px; color: var(--text-2);
  border: 1px dashed var(--line-strong); background: var(--panel);
}
.plan-list { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); }
.plan-item {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--panel);
  transition: .22s;
}
.plan-item:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.plan-ic { font-size: 22px; line-height: 1; flex: none; }
.plan-meta { flex: 1; min-width: 0; }
.plan-meta b { display: block; font-size: 14px; font-weight: 600; }
.plan-meta small { display: block; color: var(--muted); font-size: 12.2px; word-break: break-all; }

/* ------------------------------ 零部件图 ------------------------------ */
/* 与教学计划同级同款，但用暖色区分，避免和教学计划混淆 */
.parts-band { position: relative; overflow: hidden; border-color: var(--line-strong) !important; }
.parts-band::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; z-index: 2;
  background: linear-gradient(180deg, #ffb020, #ff7a59);
}
.parts-band > .panel-head {
  padding-left: 24px; font-weight: 800; font-size: 15.4px;
  background: linear-gradient(135deg, rgba(255,176,32,.20), rgba(255,122,89,.14));
}
.parts-band .plan-head { background: linear-gradient(135deg, rgba(255,176,32,.16), rgba(255,122,89,.13)); }
.parts-band .plan-head .ph-dot { background: #ffb020; box-shadow: 0 0 0 4px rgba(255,176,32,.18); }

.parts-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(min(160px, 100%), 1fr));
}
.parts-cell {
  margin: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  background: var(--panel); cursor: zoom-in; transition: .22s;
}
.parts-cell:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.parts-cell img { display: block; width: 100%; height: 130px; object-fit: cover; background: rgba(0,0,0,.18); }
.parts-cell figcaption {
  padding: 8px 11px 10px; font-size: 12.2px; color: var(--text-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ------------------------------ 响应式 ------------------------------ */
@media (max-width: 1080px) {
  .cards, .sysmap, .lesson-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .detail-grid { grid-template-columns: 1fr; }
  .feature-list { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  h1.hero-title { font-size: 40px; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .cards, .sysmap, .lesson-grid, .cards.c3, .cards.c2 { grid-template-columns: 1fr; }
  h1.hero-title { font-size: 32px; }
  .sec-title { font-size: 25px; }
  .slides-wrap { grid-template-columns: 1fr; }
  .slides-nav { grid-auto-flow: column; grid-auto-columns: 96px; max-height: none; overflow-x: auto; }
  .foot-grid { grid-template-columns: 1fr; }
  .wrap { padding: 0 16px; }
}

/* ================= 首页顶部图片轮播 ================= */
.banner-slider {
  position: relative; overflow: hidden; width: 100%;
  aspect-ratio: 1920 / 800; max-height: 76vh;
  background: #0a1224;
}
.banner-track {
  display: flex; height: 100%;
  transition: transform .55s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}
.banner-img {
  flex: 0 0 100%; width: 100%; height: 100%;
  object-fit: cover; display: block;
  user-select: none; -webkit-user-drag: none; pointer-events: none;
}
.banner-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .4);
  background: rgba(8, 14, 30, .34); color: #fff;
  font-size: 26px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px); transition: background .2s;
}
.banner-arrow:hover { background: rgba(8, 14, 30, .62); }
.banner-arrow.prev { left: 20px; }
.banner-arrow.next { right: 20px; }
.banner-dots {
  position: absolute; left: 0; right: 0; bottom: 16px; z-index: 3;
  display: flex; gap: 8px; justify-content: center;
}
.banner-dot {
  width: 26px; height: 5px; border-radius: 999px; border: 0; padding: 0;
  cursor: pointer; background: rgba(255, 255, 255, .45); transition: all .25s;
}
.banner-dot.on { background: #fff; width: 40px; }
@media (max-width: 760px) {
  .banner-slider { aspect-ratio: auto; height: 190px; }
  .banner-arrow { display: none; }
  .banner-dots { bottom: 10px; }
}
