:root {
    --blue: #1e78c8;
    --blue-deep: #14639f;
    --blue-light: #bfe3f7;
    --orange: #e8531f;
    --ink: #333;
    --radius: 18px;
  }
  * { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: rgba(30,120,200,.15); }
  html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  body {
    font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", -apple-system, sans-serif;
    color: var(--ink);
    font-size: 18px;          /* 平板基准字号 */
    line-height: 1.85;
    background:
      radial-gradient(ellipse 420px 130px at 12% 6%, rgba(255,255,255,.9), rgba(255,255,255,0) 70%),
      radial-gradient(ellipse 520px 160px at 85% 12%, rgba(255,255,255,.85), rgba(255,255,255,0) 70%),
      radial-gradient(ellipse 560px 170px at 20% 30%, rgba(255,255,255,.55), rgba(255,255,255,0) 70%),
      radial-gradient(ellipse 640px 190px at 90% 45%, rgba(255,255,255,.5), rgba(255,255,255,0) 70%),
      radial-gradient(ellipse 600px 180px at 8% 62%, rgba(255,255,255,.5), rgba(255,255,255,0) 70%),
      radial-gradient(ellipse 700px 200px at 80% 85%, rgba(255,255,255,.45), rgba(255,255,255,0) 70%),
      linear-gradient(180deg, #cdeafe 0%, #a5d7f5 30%, #8cc6ef 65%, #79b9e9 100%);
    background-attachment: fixed;
    overflow-x: hidden;
  }
  .wrap { max-width: 1040px; margin: 0 auto; padding: 0 max(24px, env(safe-area-inset-left)); }
  img { max-width: 100%; display: block; }

  /* ===== 顶部信息条 ===== */
  .topbar { background: rgba(255,255,255,.78); border-bottom: 1px solid rgba(30,120,200,.15); }
  .topbar-inner {
    max-width: 1040px; margin: 0 auto;
    padding: 12px max(24px, env(safe-area-inset-left));
    display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  }
  .topbar .conf { font-size: 14px; color: #5a7d9a; line-height: 1.55; }
  .topbar .logo { height: 64px; width: auto; display: block; }
  @media (max-width: 680px) { .topbar .logo { height: 48px; } }

  /* ===== 导航（平板触控友好的滚动条）===== */
  nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.9);
    box-shadow: 0 2px 12px rgba(20,99,159,.14);
  }
  .nav-inner {
    max-width: 1040px; margin: 0 auto;
    padding: 0 max(16px, env(safe-area-inset-left));
    min-height: 60px;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .nav-inner::-webkit-scrollbar { display: none; }
  .nav-inner a {
    flex: 0 0 auto;
    text-decoration: none; color: #32658c; font-size: 17px;
    padding: 10px 22px; border-radius: 999px; letter-spacing: 1px;
    min-height: 44px; display: flex; align-items: center;
    transition: background .2s, color .2s;
  }
  .nav-inner a:active,
  .nav-inner a:hover { color: #fff; background: var(--blue); }

  /* ===== 气象擂台赛 ===== */
  .quiz { max-width: 780px; margin: 0 auto; }
  .quiz-top { display: flex; align-items: center; gap: 14px; font-size: 15px; color: #56718c; margin-bottom: 4px; flex-wrap: wrap; }
  .quiz-top .stage-name { font-weight: 700; color: var(--blue-deep); }
  .quiz-bar { flex: 1 1 120px; height: 8px; background: #e4f0fa; border-radius: 99px; overflow: hidden; min-width: 100px; }
  .quiz-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #4a9fe0, var(--blue)); transition: width .35s; }
  .quiz-q { font-size: clamp(19px, 2.5vw, 23px); font-weight: 700; color: #1d3b57; line-height: 1.75; margin: 22px 0 20px; }
  .quiz-q .idx { color: var(--blue); margin-right: 8px; }
  .quiz-q .blank { color: var(--blue); border-bottom: 2px dashed #a9d3ef; padding: 0 6px; }
  .quiz-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .opt {
    text-align: left; font-family: inherit; font-size: 17px; color: #2c4459;
    background: #f6fbff; border: 2px solid #dcebf7; border-radius: 14px;
    padding: 16px 18px; min-height: 62px; cursor: pointer;
    display: flex; align-items: center; gap: 12px; line-height: 1.6;
    transition: border-color .18s, background .18s, transform .12s;
    -webkit-tap-highlight-color: transparent;
  }
  .opt .k {
    flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
    background: #e2f0fb; color: var(--blue-deep);
    display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700;
  }
  .opt:hover { border-color: #a9d3ef; }
  .opt:active { transform: scale(.985); }
  .opt.correct { background: #eaf8f1; border-color: #3aa981; color: #1d6b4f; }
  .opt.correct .k { background: #3aa981; color: #fff; }
  .opt.wrong { background: #fdeeee; border-color: #d96a63; color: #a13b34; }
  .opt.wrong .k { background: #d96a63; color: #fff; }
  .opt[disabled] { cursor: default; }
  /* 判断关：两枚大按钮 */
  .quiz-opts.tf { grid-template-columns: 1fr 1fr; }
  .opt.tf {
    justify-content: center; font-size: 21px; font-weight: 700; letter-spacing: 3px;
    min-height: 84px; padding: 16px 12px;
  }
  .opt.tf .k { width: 40px; height: 40px; font-size: 22px; margin-right: 4px; }
  .quiz-tip {
    margin-top: 18px; padding: 14px 18px; border-radius: 12px;
    background: #eef7fe; border-left: 5px solid var(--blue);
    color: #33526d; font-size: 16px; line-height: 1.8; display: none;
  }
  .quiz-tip.show { display: block; }
  .quiz-tip b { color: var(--blue-deep); }
  .quiz-foot { display: flex; justify-content: flex-end; margin-top: 18px; }
  .btn-main {
    font-family: inherit; font-size: 17px; font-weight: 700; letter-spacing: 2px;
    color: #fff; background: linear-gradient(135deg, #3a9ade, var(--blue));
    border: none; border-radius: 999px; padding: 14px 40px; min-height: 52px;
    cursor: pointer; box-shadow: 0 8px 18px rgba(30,120,200,.3);
  }
  .btn-main:active { transform: scale(.98); }
  .btn-ghost {
    font-family: inherit; font-size: 17px; font-weight: 700; color: var(--blue-deep);
    background: #eaf5fd; border: 2px solid #cfe6f8; border-radius: 999px;
    padding: 13px 34px; min-height: 50px; cursor: pointer;
  }
  .btn-ghost:active { background: #dcefff; }

  /* 关卡介绍 / 关卡小结 */
  .stage-card { text-align: center; padding: 6px 0 2px; }
  .stage-card .badge {
    display: inline-block; font-size: 14px; letter-spacing: 3px; color: #fff;
    background: linear-gradient(135deg, #4a9fe0, var(--blue)); border-radius: 999px;
    padding: 6px 20px; margin-bottom: 14px;
  }
  .stage-card h3 { font-size: clamp(24px, 3.2vw, 30px); color: #16374f; letter-spacing: 3px; margin-bottom: 10px; }
  .stage-card .rule { font-size: 16.5px; color: #56718c; line-height: 1.9; margin-bottom: 22px; }
  .stage-card .rule b { color: var(--orange); }
  .stage-card .meta { font-size: 15px; color: #7a8ba0; margin-bottom: 24px; }
  .summary-num { font-size: 46px; font-weight: 800; color: var(--blue-deep); line-height: 1.2; }
  .summary-num small { font-size: 18px; color: #7a8ba0; font-weight: 400; }
  .summary-line { font-size: 17px; color: #4a5f75; margin: 6px 0 22px; }
  .final-stars { font-size: 34px; letter-spacing: 6px; color: #f5a623; margin: 10px 0 4px; }
  .final-say { font-size: 18px; color: #33526d; margin-bottom: 8px; }
  .final-total { font-size: 16px; color: #7a8ba0; margin-bottom: 22px; }

  /* ===== 二维码（悬浮：校二维码 + 教师问卷） ===== */
  .qr-fab {
    position: fixed;
    right: max(14px, env(safe-area-inset-right));
    bottom: calc(24px + env(safe-area-inset-bottom));
    z-index: 60; width: 96px; padding: 9px; text-align: center;
    background: rgba(255,255,255,.96); border: 2px solid #cfe6f8; border-radius: 16px;
    box-shadow: 0 10px 26px rgba(20,80,140,.28); cursor: pointer;
    transition: transform .15s;
    -webkit-tap-highlight-color: transparent;
  }
  .qr-fab:active { transform: scale(.96); }
  .qr-fab figure { margin: 0 0 6px; }
  .qr-fab figure:last-child { margin-bottom: 0; }
  .qr-fab img { width: 100%; display: block; border-radius: 8px; }
  .qr-fab figcaption {
    margin-top: 4px; font-size: 12.5px; font-weight: 700;
    color: #2c4459; letter-spacing: 2px; line-height: 1.3;
  }
  .qr-modal {
    position: fixed; inset: 0; z-index: 200; display: none;
    align-items: center; justify-content: center;
    background: rgba(15,40,70,.55); backdrop-filter: blur(3px);
    padding: 30px; cursor: pointer;
  }
  .qr-modal.open { display: flex; }
  .qr-modal-card {
    background: #fff; border-radius: 20px; padding: 20px 22px; text-align: center;
    box-shadow: 0 24px 60px rgba(0,20,40,.4); max-width: min(420px, 78vw);
    max-height: calc(100vh - 60px); overflow: auto;
  }
  .qr-modal-card figure { margin: 0 0 14px; }
  .qr-modal-card figure:last-child { margin-bottom: 0; }
  .qr-modal-card img {
    display: block; margin: 0 auto;
    width: 280px; max-width: 100%; max-height: 38vh;
    border-radius: 10px;
  }
  .qr-modal-card figcaption {
    margin-top: 10px; font-size: 17px; font-weight: 700;
    color: #16374f; letter-spacing: 2px;
  }

  @media (max-width: 680px) {
    .quiz-opts { grid-template-columns: 1fr; }
    .quiz-opts.tf { grid-template-columns: 1fr 1fr; }
    .opt.tf { min-height: 68px; font-size: 18px; letter-spacing: 1px; }
    .opt.tf .k { width: 32px; height: 32px; font-size: 18px; }
  }

  /* ===== 海报标题区 ===== */
  .hero { text-align: center; padding: 26px 20px 6px; }
  .hero img.title {
    width: min(940px, 100%); margin: 0 auto; border-radius: 16px;
    mix-blend-mode: multiply;
  }

  /* ===== 蓝色缎带标题 ===== */
  section.block { padding: 30px 0 10px; }
  .ribbon {
    position: relative; display: inline-block; z-index: 2;
    background: linear-gradient(135deg, #2f96dd, var(--blue) 55%, #1a66ab);
    color: #fff; font-size: clamp(22px, 3vw, 28px); font-weight: 800; letter-spacing: 7px;
    padding: 12px 50px 12px 38px; border-radius: 999px;
    box-shadow: 0 8px 20px rgba(20,99,159,.35), inset 0 -3px 0 rgba(0,0,0,.12);
    margin-bottom: -26px; margin-left: 10px;
  }
  .ribbon::before { content: "☁"; font-size: 22px; margin-right: 12px; vertical-align: -2px; opacity: .95; }
  .ribbon::after {
    content: ""; position: absolute; right: -13px; top: 50%;
    width: 28px; height: 28px; transform: translateY(-50%) rotate(45deg);
    background: #1a66ab; border-radius: 6px; z-index: -1;
  }
  .panel {
    background: rgba(255,255,255,.97);
    border-radius: var(--radius);
    box-shadow: 0 12px 32px rgba(20,99,159,.18);
    padding: 48px 38px 34px;
  }

  /* ===== 学校背景 ===== */
  .bg-grid { display: grid; grid-template-columns: 250px 1fr; gap: 32px; align-items: center; }
  .bg-wheel {
    width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%;
    border: 5px solid #e3f2fc; box-shadow: 0 8px 22px rgba(20,99,159,.2);
  }
  .bg-text p { text-align: justify; font-size: 17px; color: #3a4a5a; margin-bottom: 14px; }
  .bg-text b { color: var(--blue-deep); }

  /* ===== 课程框架 ===== */
  .fw-text { text-align: justify; font-size: 17px; color: #3a4a5a; margin-bottom: 22px; }
  .fw-text b { color: var(--blue-deep); }
  .diagram { background: #fff; border-radius: 12px; padding: 10px; border: 1px solid #e1eef8; }
  .caption { text-align: center; font-size: 14.5px; color: #7387a0; margin-top: 12px; }

  /* ===== 创新举措 ===== */
  .inno-item { margin-bottom: 34px; }
  .inno-item:last-child { margin-bottom: 0; }
  .inno-head {
    background: linear-gradient(90deg, #eaf5fd, rgba(234,245,253,0));
    border-left: 6px solid var(--blue);
    padding: 12px 18px; font-size: 17.5px; font-weight: 700; color: #234;
    line-height: 1.7; margin-bottom: 18px; border-radius: 0 10px 10px 0;
  }
  .inno-head .dot { color: var(--blue); margin-right: 8px; }
  .inno-head b { color: var(--blue-deep); }
  .inno-media { display: grid; grid-template-columns: 1.55fr 1fr; gap: 20px; align-items: center; }
  .circle-pics { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .circle-pics img {
    width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%;
    border: 4px solid #fff; box-shadow: 0 6px 16px rgba(20,99,159,.22);
  }

  /* ===== 实施效果 ===== */
  .eff-grid { display: grid; grid-template-columns: 1fr .95fr; gap: 30px; align-items: center; }
  .eff-text p { text-align: justify; font-size: 17px; color: #3a4a5a; margin-bottom: 14px; }
  .eff-text b { color: var(--blue-deep); }
  .photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .photos .col-narrow, .photos .col-wide { display: grid; gap: 8px; align-content: start; }
  .photos img {
    width: 100%; height: 100%; object-fit: cover; border-radius: 8px;
    box-shadow: 0 4px 12px rgba(20,99,159,.18);
  }

  /* ===== 结语 ===== */
  .closing {
    text-align: center;
    padding: 40px 24px calc(48px + env(safe-area-inset-bottom));
    color: var(--blue-deep); font-weight: 800;
    font-size: clamp(19px, 2.8vw, 25px); letter-spacing: 2px; line-height: 2.05;
    text-shadow: 0 1px 0 rgba(255,255,255,.85);
  }
  footer {
    background: rgba(20,99,159,.93); color: rgba(255,255,255,.92);
    text-align: center;
    padding: 16px 20px calc(16px + env(safe-area-inset-bottom));
    font-size: 14.5px; letter-spacing: 1px;
  }

  /* ===== 平板竖屏（默认 ≤ 900）===== */
  @media (max-width: 900px) {
    .wrap { padding: 0 20px; }
    .bg-grid { grid-template-columns: 200px 1fr; gap: 24px; }
    .inno-media { grid-template-columns: 1fr; gap: 18px; }
    .circle-pics { grid-template-columns: 1fr 1fr; max-width: 460px; }
    .eff-grid { grid-template-columns: 1fr; gap: 22px; }
    .photos { grid-template-columns: repeat(4, 1fr); }
    .panel { padding: 44px 26px 30px; }
  }

  /* ===== 窄屏 / 手机竖屏 ===== */
  @media (max-width: 680px) {
    body { font-size: 17px; }
    .hero { padding: 18px 14px 2px; }
    .hero img.title { border-radius: 10px; }
    .topbar .school { font-size: 16px; }
    .ribbon { letter-spacing: 4px; padding: 10px 34px 10px 26px; margin-left: 4px; }
    .panel { padding: 40px 18px 26px; }
    .bg-grid { grid-template-columns: 1fr; gap: 20px; }
    .bg-wheel { max-width: 210px; margin: 0 auto; }
    .photos { grid-template-columns: repeat(2, 1fr); gap: 6px; }
    .photos .col-narrow, .photos .col-wide { gap: 6px; }
    .inno-head { font-size: 16.5px; }
    .bg-text p, .fw-text, .eff-text p { font-size: 16.5px; }
  }

  /* ===== 平板横屏 / 桌面（≥ 1000）===== */
  @media (min-width: 1000px) {
    .panel { padding: 52px 44px 38px; }
    .bg-grid { grid-template-columns: 260px 1fr; gap: 38px; }
    .inno-media { grid-template-columns: 1.6fr 1fr; }
  }

  /* 触控设备：加强可点区域与反馈 */
  @media (pointer: coarse) {
    .nav-inner a { padding: 12px 24px; }
    .diagram img { border-radius: 10px; }
  }

/* ===== 闯关游戏页 ===== */
.game-hero { text-align: center; padding: 30px 20px 4px; }
.game-hero .kicker {
  display: inline-block; font-size: 14.5px; letter-spacing: 4px; color: #fff;
  background: rgba(30,120,200,.85); border-radius: 999px; padding: 7px 22px; margin-bottom: 14px;
}
.game-hero h1 { font-size: clamp(28px, 4.2vw, 40px); color: #0f4f80; letter-spacing: 8px; line-height: 1.4; }
.game-hero .sub { margin-top: 10px; font-size: clamp(15px, 2.2vw, 18px); color: #2c6b9c; letter-spacing: 2px; }
.game-hero .stage-chips { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.game-hero .stage-chips span {
  font-size: 14px; color: #1a5f92; background: rgba(255,255,255,.8);
  border: 1px solid rgba(30,120,200,.25); border-radius: 999px; padding: 6px 16px;
}
.breadcrumb { max-width: 1040px; margin: 0 auto; padding: 12px 20px 0; }
.breadcrumb a { color: #2c6b9c; text-decoration: none; font-size: 15px; }
.breadcrumb a:hover { text-decoration: underline; }

/* 当前页导航高亮 */
.nav-inner a.active { color: #fff; background: var(--blue); }

/* ===== 课程资源页 ===== */
.res-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.res-card {
  background: #fbfdff; border: 1px solid #dfeef9; border-radius: 16px;
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 4px 14px rgba(20,99,159,.06);
}
.res-card .head {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px; background: linear-gradient(120deg, #eaf5fd, #f7fcff);
  border-bottom: 1px solid #e4f0f9;
}
.res-card .num {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px;
  background: linear-gradient(135deg, #3a9ade, var(--blue));
  color: #fff; font-weight: 800; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 14px rgba(30,120,200,.28);
}
.res-card h3 { font-size: 20px; color: #143a58; letter-spacing: 1px; line-height: 1.4; }
.res-card .chapter { font-size: 13.5px; color: #5f7691; margin-top: 2px; }
.res-card .body { padding: 16px 20px 18px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.res-card .desc { font-size: 16px; color: #44576b; line-height: 1.85; text-align: justify; }
.res-card .points { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.res-card .points li {
  font-size: 13.5px; color: #2b5f88; background: #edf7fe;
  border-radius: 999px; padding: 5px 13px;
}
.res-card .foot { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding-top: 4px; }
.res-card .foot .tag {
  font-size: 13px; color: #fff; background: rgba(30,120,200,.85);
  border-radius: 999px; padding: 4px 13px;
}
.res-card .foot .pages { font-size: 13.5px; color: #7a8ba0; }
.res-intro {
  max-width: 820px; margin: 0 auto 30px; text-align: center;
  font-size: 16.5px; color: #3f5f7c; line-height: 1.95;
}
.res-hint {
  margin-top: 26px; font-size: 15px; color: #5b7691;
  background: #f0f8fe; border-radius: 12px; padding: 14px 20px; text-align: center;
}
@media (max-width: 780px) {
  .res-grid { grid-template-columns: 1fr; }
}

/* ===== 课件播放器 ===== */
.player {
  max-width: 1000px; margin: 0 auto;
  background: #fff; border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(20,99,159,.18);
  overflow: hidden;
}
.player-head {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 14px 18px; background: linear-gradient(120deg, #eaf5fd, #f7fcff);
  border-bottom: 1px solid #e4f0f9;
}
.player-head h3 { font-size: 18.5px; color: #143a58; letter-spacing: 1px; }
.player-head .chapter { font-size: 13px; color: #5f7691; margin-top: 2px; }
.player-head .spacer { flex: 1; }
.icon-btn {
  font-family: inherit; font-size: 15px; color: var(--blue-deep);
  background: #eaf5fd; border: 1px solid #cfe6f8; border-radius: 10px;
  padding: 9px 16px; min-height: 44px; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
}
.icon-btn:active { background: #dcefff; }
.stage { position: relative; background: #0d1b26; touch-action: pan-y; }
.stage img {
  width: 100%; display: block; aspect-ratio: 1400 / 788; object-fit: contain;
  background: #0d1b26; transition: opacity .18s;
}
.stage .nav-zone {
  position: absolute; top: 0; bottom: 90px; width: 30%;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.stage .zone-prev { left: 0; }
.stage .zone-next { right: 0; }
.player-ctrl {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; background: #fbfdff; border-top: 1px solid #e4f0f9;
}
.pager-btn {
  flex: 0 0 auto; font-family: inherit; font-size: 16.5px; font-weight: 700;
  color: #fff; background: linear-gradient(135deg, #3a9ade, var(--blue));
  border: none; border-radius: 999px; padding: 12px 30px; min-height: 48px;
  cursor: pointer;
}
.pager-btn:disabled { opacity: .35; cursor: default; }
.pager-btn:active { transform: scale(.98); }
.pager-mid { flex: 1; text-align: center; }
.pager-mid .num { font-size: 17px; font-weight: 700; color: var(--blue-deep); }
.pager-mid .bar { height: 8px; background: #e4f0fa; border-radius: 99px; overflow: hidden; margin-top: 8px; }
.pager-mid .bar i { display: block; height: 100%; background: linear-gradient(90deg, #4a9fe0, var(--blue)); transition: width .25s; }
.thumbs {
  display: none; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px; padding: 16px 18px; background: #f4faff;
  border-top: 1px solid #e4f0f9; max-height: 46vh; overflow-y: auto;
}
.thumbs.open { display: grid; }
.thumbs img {
  width: 100%; border-radius: 8px; border: 2px solid transparent; cursor: pointer;
}
.thumbs img.on { border-color: var(--blue); }
.res-card .play {
  margin-left: auto; font-size: 14px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #3a9ade, var(--blue));
  border-radius: 999px; padding: 8px 18px; min-height: 40px;
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
  box-shadow: 0 6px 14px rgba(30,120,200,.25);
}
.res-card .play:active { transform: scale(.97); }

/* ===== 首页竖排锚点导航 ===== */
.layout { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 18px; align-items: start; }
.page-main { min-width: 0; }
.vnav {
  position: sticky; top: 84px;
  display: flex; flex-direction: column; gap: 10px;
  padding: 4px 0;
}
.vnav a {
  writing-mode: vertical-rl; text-orientation: upright;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: 5px; font-size: 17px; font-weight: 700;
  color: #26557a; text-decoration: none; text-align: center;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(30,120,200,.18);
  border-radius: 999px; padding: 20px 0; min-height: 44px;
  box-shadow: 0 4px 12px rgba(20,99,159,.12);
  transition: background .2s, color .2s, box-shadow .2s;
}
.vnav a:active { transform: scale(.97); }
.vnav a.on {
  background: linear-gradient(180deg, #3a9ade, var(--blue));
  color: #fff; border-color: transparent;
  box-shadow: 0 8px 20px rgba(30,120,200,.34);
}
@media (max-width: 760px) {
  .layout { grid-template-columns: 1fr; gap: 10px; }
  .vnav {
    position: sticky; top: 58px; z-index: 40;
    flex-direction: row; gap: 8px; padding: 8px 2px;
    overflow-x: auto; scrollbar-width: none;
    background: rgba(226,241,252,.94);
  }
  .vnav::-webkit-scrollbar { display: none; }
  .vnav a {
    writing-mode: horizontal-tb; letter-spacing: 2px; font-size: 15.5px;
    padding: 10px 18px; border-radius: 999px; white-space: nowrap;
  }
}

/* 手机端：播放器头部按钮收紧 */
@media (max-width: 680px) {
  .player-head { gap: 8px; padding: 12px 14px; }
  .player-head .icon-btn { padding: 8px 12px; font-size: 14px; min-height: 40px; }
  .player-head h3 { font-size: 17px; }
  .pager-btn { padding: 12px 20px; font-size: 15.5px; }
}

/* ===== 学生作品页 ===== */
.wfilter-bar {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
  margin-bottom: 24px;
}
.wfilter {
  font-family: inherit; font-size: 16px; color: #2b5f88;
  background: #f2faff; border: 1px solid #d7eaf8; border-radius: 999px;
  padding: 10px 20px; min-height: 46px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background .2s, color .2s, border-color .2s;
}
.wfilter span { font-size: 13px; color: #7c93a8; }
.wfilter.on {
  background: linear-gradient(135deg, #3a9ade, var(--blue));
  color: #fff; border-color: transparent;
  box-shadow: 0 6px 16px rgba(30,120,200,.28);
}
.wfilter.on span { color: rgba(255,255,255,.85); }

.works-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.work-card {
  background: #fff; border: 1px solid #e4eff8; border-radius: 14px;
  overflow: hidden; cursor: pointer; display: flex; flex-direction: column;
  box-shadow: 0 4px 12px rgba(20,99,159,.07);
  transition: transform .18s, box-shadow .18s;
}
.work-card:active { transform: scale(.985); }
.work-card:hover { box-shadow: 0 10px 24px rgba(20,99,159,.16); }
.work-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #eef6fc; }
.work-card .info { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.work-card h4 { font-size: 16px; color: #143a58; line-height: 1.45; }
.work-card p { font-size: 13.5px; color: #6a7f92; }
.work-card .cat {
  margin-top: auto; align-self: flex-start; font-size: 12px; color: var(--blue);
  background: #eaf5fd; border-radius: 999px; padding: 3px 10px; margin-top: 8px;
}

/* 大图查看 */
.lb {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: rgba(6,18,28,.94);
  flex-direction: column;
}
.lb.open { display: flex; }
.lb-stage {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 14px; min-height: 0;
}
.lb-stage img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  border-radius: 8px; box-shadow: 0 18px 50px rgba(0,0,0,.5);
}
.lb-close {
  position: absolute; top: calc(12px + env(safe-area-inset-top)); right: 14px;
  width: 46px; height: 46px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.16); color: #fff; font-size: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.lb-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.14); color: #fff; font-size: 30px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.lb-prev { left: 12px; }
.lb-next { right: 12px; }
.lb-bar {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
  color: #fff; background: rgba(255,255,255,.06);
}
.lb-info { flex: 1; min-width: 0; }
.lb-info b { display: block; font-size: 17px; }
.lb-info span { font-size: 13.5px; color: rgba(255,255,255,.7); }
.lb-count { font-size: 15px; color: rgba(255,255,255,.8); }

@media (max-width: 680px) {
  .works-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .work-card h4 { font-size: 15px; }
  .lb-arrow { width: 44px; height: 44px; font-size: 26px; }
}

/* ===== 横屏展示（一键横屏或手动转屏）：内容区随屏幕铺满，不设固定像素上限 ===== */
@media (orientation: landscape) and (min-width: 900px) {
  /* 容器一律 100% 宽，只留比例边距——任何宽度的平板/大屏都铺满 */
  .wrap, .topbar-inner, .nav-inner, .breadcrumb {
    max-width: 100%;
    padding-left: max(2.6vw, 20px);
    padding-right: max(2.6vw, 20px);
  }
  /* 阅读类板块保留舒适行宽，但跟随屏幕放宽 */
  .quiz { max-width: min(1500px, 94vw); }
  .res-intro { max-width: min(1300px, 86vw); }
  .player { max-width: 100%; }
  .hero img.title { width: min(1600px, 96%); }
  .layout { grid-template-columns: clamp(78px, 6vw, 104px) minmax(0, 1fr); gap: clamp(14px, 1.5vw, 26px); }
  .panel { padding: 48px clamp(32px, 3.4vw, 64px) 34px; }
  .res-grid { grid-template-columns: repeat(auto-fill, minmax(clamp(260px, 21vw, 380px), 1fr)); }
  .works-grid { grid-template-columns: repeat(auto-fill, minmax(clamp(190px, 15vw, 260px), 1fr)); }
}

/* 超大屏（≥1800 逻辑像素）：整体等比放大，避免字太小、看着空 */
@media (orientation: landscape) and (min-width: 1800px) {
  body { font-size: 21px; }
  .bg-text p, .fw-text p, .eff-text p { font-size: 20px; }
  .quiz-q { font-size: 26px; }
  .quiz-tip { font-size: 19px; }
  .opt { font-size: 20px; }
  .opt.tf { font-size: 23px; }
  .nav-inner a { font-size: 19.5px; }
  .res-card h4, .work-card h4 { font-size: 21px; }
  .res-card p, .work-card span { font-size: 17.5px; }
  .icon-btn { font-size: 17px; }
  .pager-btn { font-size: 18.5px; }
}
