/* 璐明升格 · 官网
 *
 * 色板、字体、圆角全部取自 report-mock.html —— 官网和报告必须像同一个产品。
 * 学生从落地页点进报告，视觉上不能有断裂感，否则「这是不是同一家做的」
 * 会成为一个多余的疑问。
 *
 * 底色是试卷纸的米白，靛蓝是「印刷体、标准、可信」那一面（正文、链接、卡片），
 * 红是「批改」那一面（标志、主按钮、分数、勾）——老师批改用红笔，红在这里有语义。
 * 刻意不让红铺满：整页红会变成「你错了很多」的气氛，而产品要说的是「我告诉你怎么改」。
 */

:root {
  --paper: #F7F6F2;
  --card: #FFFEFB;
  --rule: #DCDED7;
  --ink: #23262B;
  --muted: #6B7480;
  --blue: #1D4E63;
  --blue-deep: #123A4C;
  --blue-wash: #E7EEF1;
  --on-blue: #FFFEFB;
  --red: #B23B36;
  --red-deep: #8E2E2A;
  --on-red: #FFFEFB;
  --red-wash: #F6E9E7;
  --gold: #A8761F;
  --gold-wash: #F6EEDC;
  --edge: #E2E1DA;

  --f-song: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --f-hei: "PingFang SC", "Noto Sans SC", "Hiragino Sans GB", "Microsoft YaHei", "Heiti SC", sans-serif;
  --f-en: Georgia, "Times New Roman", "Noto Serif", serif;
  --f-num: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* 表单控件、滚动条、input 的默认外观跟着走。不写这一条，深色下
     练习页的输入框还是浏览器给的白底，浮在深色卡片上像个洞。 */
  color-scheme: light;
}

/* **全站只有浅色。** 这里原来有一条 @media (prefers-color-scheme: dark)：
 * 手机一到晚上自动转深色，官网跟着变，学生既没选过、也关不掉。08-21 删掉了。
 *
 * 同一天试过「默认浅色 + 报头一个切换按钮」，当天又撤了——吴老师要的就是
 * **一种样子**：试卷纸的米白（上面那份 :root）。别再加开关，也别把
 * prefers-color-scheme 加回来。
 *
 * 下面这两个 [data-theme] 块是早于这次改动就有的。现在**没有任何东西会去设
 * data-theme**，所以它们都不生效——留着只是没必要为了删而删。报告页同理，
 * 见 report-mock*.html。 */
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #151A1F; --card: #1A2128; --rule: #2B343C; --ink: #E4E7E9;
  --muted: #8D99A5; --blue: #6FB2CC; --blue-deep: #8FC7DD; --blue-wash: #1C2C36;
  --on-blue: #10161B; --red: #E07A6B; --red-deep: #EC8E7F;
  --on-red: #10161B; --red-wash: #33221F;
  --gold: #D9A94E; --gold-wash: #2E2718; --edge: #2B333A;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-hei); font-size: 16px; line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

.wrap { width: min(100% - 40px, 1360px); margin-inline: auto; }
.narrow { width: min(100% - 40px, 720px); margin-inline: auto; }

/* ── 报头 ─────────────────────────────────────────── */
.mast {
  border-top: 3px solid var(--red);          /* 作文纸的红边距线 */
  border-bottom: 1px solid var(--rule); background: var(--card);
  position: sticky; top: 0; z-index: 20;
}
.mast .wrap { display: flex; align-items: center; gap: 12px; padding: 14px 0; }
/* 印章红，不是靛蓝——雅思那条线（luminaedu.uk）用蓝，高考这条用红，
 * 两个品牌一眼分得开。红色在这里也有语义：老师批改用红笔、盖章用红印。
 * 站徽：10 月 30 日起是像素吴老师的头像垫一块印章红（tools/make-wu.py + make-logo.py 生成 favicon.svg，
 * 32 格），32px 正好一比一，像素边是直的。div 里的字留给不加载图片的情形，平时不显示。 */
.logo {
  width: 32px; height: 32px; flex: none;
  background: url("/favicon.svg?v=5") center / 32px 32px no-repeat;
  image-rendering: pixelated; image-rendering: crisp-edges;
  color: transparent; font-size: 0; overflow: hidden;
}
.brand { font-family: var(--f-song); font-size: 18px; font-weight: 700; letter-spacing: .04em; }
.brand-sub { font-size: 12px; color: var(--muted); margin-top: -2px; }
.spacer { flex: 1; }
.mast a { color: var(--blue); text-decoration: none; font-size: 14px; }
.mast a:hover { text-decoration: underline; }

/* 站徽整块可点回首页。上面那条 .mast a 会把它染成蓝色 14px，
   所以这里要把颜色和字号显式收回来，否则「璐明升格」会变成一个蓝色小字链接。
   悬停时只给主名加下划线，不让副标题也跟着划一条。 */
.mast .home { display: flex; align-items: center; gap: 12px; color: inherit; font-size: inherit; }
.mast .home:hover { text-decoration: none; }
.mast .home:hover .brand { text-decoration: underline; }

.pill {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 12px; border: 1px solid var(--edge); color: var(--muted);
  background: var(--paper); white-space: nowrap;
}
.pill--free { border-color: var(--gold); color: var(--gold); background: var(--gold-wash); }

/* ── 首屏 ─────────────────────────────────────────── */
.hero { padding: 76px 0 56px; }
.hero h1 {
  font-family: var(--f-song); font-size: clamp(30px, 5.6vw, 50px);
  line-height: 1.28; margin: 0 0 22px; font-weight: 700; letter-spacing: .01em;
}
.hero h1 .n { font-family: var(--f-num); color: var(--red); font-weight: 700; }
.lede { font-size: clamp(16px, 2.1vw, 19px); color: var(--ink); margin: 0 0 14px; max-width: 44em; }
.lede b { color: var(--blue-deep); }
.sub { color: var(--muted); font-size: 15px; max-width: 44em; }

.cta {
  display: inline-block; margin-top: 30px; padding: 14px 30px;
  background: var(--red); color: var(--on-red); border-radius: 8px;
  text-decoration: none; font-size: 17px; font-weight: 600;
  transition: background .15s ease;
}
.cta:hover { background: var(--red-deep); }
.cta-note { display: block; margin-top: 12px; font-size: 13px; color: var(--muted); }

/* 分值条 */
.weights {
  display: flex; flex-wrap: wrap; gap: 0; margin-top: 46px;
  border: 1px solid var(--rule); border-radius: 10px; overflow: hidden;
  background: var(--card);
}
.weights div { flex: 1 1 150px; padding: 16px 18px; border-right: 1px solid var(--rule); }
.weights div:last-child { border-right: 0; }
.weights .k { font-family: var(--f-num); font-size: 24px; color: var(--red); font-weight: 700; }
.weights .v { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ── 通用区块 ─────────────────────────────────────── */
section { padding: 58px 0; border-top: 1px solid var(--rule); }
h2 {
  font-family: var(--f-song); font-size: clamp(22px, 3.4vw, 30px);
  margin: 0 0 10px; font-weight: 700; letter-spacing: .01em;
}
.h2sub { color: var(--muted); margin: 0 0 34px; max-width: 46em; }

/* 四样东西是一个整体，四张一排读起来才是「四个问题」；
   auto-fit 在 940px 的 wrap 里只放得下三张，第四张掉到下一行，看着像漏了一项。
   所以这里写死四列，靠收紧字号换宽度。 */
.grid { display: grid; gap: 14px; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.card {
  background: var(--card); border: 1px solid var(--rule); border-radius: 10px;
  padding: 20px 17px 22px;
}
.card .tag {
  font-family: var(--f-num); font-size: 11px; letter-spacing: .1em;
  color: var(--red); text-transform: uppercase;
}
.card h3 { font-family: var(--f-song); font-size: 17.5px; margin: 6px 0 9px; font-weight: 700; line-height: 1.35; }
.card p { margin: 0; font-size: 14.5px; line-height: 1.75; color: var(--ink); }
.card p + p { margin-top: 9px; color: var(--muted); font-size: 13.5px; }

/* 证据清单 */
.proof { list-style: none; padding: 0; margin: 0; }
.proof li {
  padding: 18px 0 18px 30px; border-bottom: 1px solid var(--rule); position: relative;
}
.proof li:last-child { border-bottom: 0; }
.proof li::before {
  content: "✓"; position: absolute; left: 0; top: 18px;
  color: var(--red); font-weight: 700;
}
.proof b { display: block; margin-bottom: 4px; }
.proof span { color: var(--muted); font-size: 14.5px; }

code, .mono { font-family: var(--f-num); font-size: .92em; }
.q {
  background: var(--blue-wash); border-left: 3px solid var(--blue);
  padding: 12px 16px; border-radius: 0 6px 6px 0; margin: 14px 0;
  font-size: 14.5px;
}
.q--red { background: var(--red-wash); border-left-color: var(--red); }
.en { font-family: var(--f-en); }

/* ── 表单 ─────────────────────────────────────────── */
.tabs { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.tab {
  padding: 9px 18px; border: 1px solid var(--rule); background: var(--card);
  border-radius: 8px; cursor: pointer; font: inherit; font-size: 15px;
  color: var(--ink);
}
.tab[aria-selected="true"] { background: var(--blue); color: var(--on-blue); border-color: var(--blue); }
.formbox {
  background: var(--card); border: 1px solid var(--rule); border-radius: 10px;
  padding: 8px 8px 0; min-height: 560px;
}
.formbox iframe { width: 100%; border: 0; display: block; }

/* ── 页脚 ─────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--rule); padding: 34px 0 54px;
  color: var(--muted); font-size: 13.5px;
}
footer a { color: var(--blue); }

.parents { background: var(--card); }

/* ── 首屏：左文案右报告切片 ────────────────────────────
 * 原来的首屏只有一段文字，用户在交作文之前完全看不到「拿到手是什么样」。
 * 这里直接把报告最有说服力的一块搬到第一屏：一句被划红的原句 + 一条带
 * 《标准》出处的扣分卡片。这是和「让 AI 打个分」唯一真正拉得开的差距，
 * 用说的不如直接给看。
 */
.hero-grid { display: grid; gap: 44px; grid-template-columns: 1.05fr .95fr; align-items: start; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: 34px; } }

/* 整块可点（脚本跳 /sample）。内部 .slice-bd 仍可滚动、可选字——
   所以没有用 <a> 包裹，见 index.html 里那段注释。 */
.slice { cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease; }
.slice:hover { border-color: var(--blue); box-shadow: 0 2px 14px rgba(29,78,99,.10); }
.slice:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.slice {
  background: var(--card); border: 1px solid var(--rule); border-radius: 12px;
  overflow: hidden; box-shadow: 0 1px 2px rgba(35,38,43,.05), 0 8px 24px rgba(35,38,43,.06);
}
.slice-hd {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-bottom: 1px solid var(--rule); background: var(--paper);
}
.slice-hd .sc { font-family: var(--f-num); font-size: 27px; font-weight: 700; color: var(--red); line-height: 1; }
.slice-hd .sc small { font-size: 15px; color: var(--muted); font-weight: 400; }
.slice-hd .bd {
  font-family: var(--f-song); font-size: 14px; padding: 3px 10px;
  border: 1px solid var(--edge); border-radius: 999px; color: var(--muted);
}
.slice-bd { padding: 18px }
.slice-sent {
  font-family: var(--f-en); font-size: 15px; line-height: 1.85; margin: 0 0 16px;
}
.slice-sent .sn { font-family: var(--f-num); font-size: 11px; color: var(--muted); vertical-align: super; margin-right: 3px; }
.slice-sent mark { background: var(--red-wash); color: inherit; border-bottom: 2px solid var(--red); padding: 0 1px; }
.slice-card {
  border: 1px solid var(--rule); border-left: 3px solid var(--red);
  border-radius: 0 8px 8px 0; padding: 13px 15px; background: var(--paper);
}
.slice-card .t { font-weight: 700; font-size: 14.5px; }
.slice-card .c { font-family: var(--f-num); font-size: 11.5px; color: var(--muted); margin-left: 8px; }
.slice-card p { margin: 6px 0 0; font-size: 13.5px; color: var(--ink); }
.slice-card .cl {
  margin-top: 9px; padding-top: 9px; border-top: 1px dashed var(--rule);
  font-size: 11.5px; color: var(--muted);
}
.slice-ft {
  padding: 11px 18px; border-top: 1px solid var(--rule);
  font-size: 12.5px; color: var(--muted); background: var(--paper);
}

/* ── 评分核心原则 ─────────────────────────────────── */
.rules { display: grid; gap: 0; grid-template-columns: repeat(3, 1fr); margin-top: 52px;
  border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; background: var(--card); }
@media (max-width: 780px) { .rules { grid-template-columns: 1fr; } }
.rules > div { padding: 22px 24px; border-right: 1px solid var(--rule); }
.rules > div:last-child { border-right: 0; }
@media (max-width: 780px) {
  .rules > div { border-right: 0; border-bottom: 1px solid var(--rule); }
  .rules > div:last-child { border-bottom: 0; }
}
.rules .no { font-family: var(--f-num); font-size: 11px; color: var(--red); letter-spacing: .12em; }
.rules h3 { font-family: var(--f-song); font-size: 18px; margin: 5px 0 8px; font-weight: 700; }
.rules p { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.7; }
.rules-cap { margin: 14px 0 0; font-size: 13.5px; color: var(--muted); }

/* ── 报头右上：各个房间 ─────────────────────────── */
/* 09-26 起，报头右上是一排房间：听力 · 阅读 · 语言运用 · 写作 · 模考，每一页都是同一排、
   同一个顺序（tests/site_nav_test.py 查）。原来的「词汇馆 / 写作批改 / 样例报告」三个按钮
   是只有写作开门时留下的；房间一间间开了，报头就该列房间。首页不放这一排：标题下面那五个
   大按钮就是它。
   平时是安静的灰字，悬停和「你在这儿」才用这间房自己的颜色（校园门牌那道色条的颜色）。
   手机上不藏任何一个：站名一行、房间另起一行，五个正好排得下。
   09-29 起后面再跟三间打底的房间：词汇馆 · 语法馆 · 错题本（.rn-aux），和卷子的五个部分隔
   一道竖线；语法馆没开，是一段灰字、不是链接。窄屏上排不下八个：900 以下房间整排挪到站名下面；
   手机上打底的三间回到站名那一行的右边，卷子五间照旧另起一行——报头是吸顶的，再多一行
   就是一直挡着屏幕的 40px（量过：三行 168px，两行 126px）。 */
.mast .room-nav { display: flex; align-items: center; gap: 4px; }
.mast .room-nav .rn-main, .mast .room-nav .rn-aux { display: flex; align-items: center; gap: 4px; }
.mast .room-nav .rn-aux { margin-left: 6px; padding-left: 10px; border-left: 1px solid var(--rule); }
.mast .room-nav a { color: var(--muted); font-size: 15px; font-weight: 600; white-space: nowrap;
                    padding: 6px 10px; border-radius: 6px; }
.mast .room-nav a:hover { color: var(--c); text-decoration: none; background: var(--paper); }
.mast .room-nav a[aria-current="page"] { color: var(--c); box-shadow: inset 0 -2px 0 var(--c);
                                         border-radius: 6px 6px 0 0; }
.mast .room-nav a:focus-visible { outline: 2px solid var(--c); outline-offset: 1px; }
.mast .room-nav .rn-soon { color: #A3A9B0; font-size: 15px; font-weight: 600; white-space: nowrap;
                           padding: 6px 10px; cursor: default; }
.mast .room-nav .rn-soon i { font-style: normal; font-size: 11px; font-weight: 400; margin-left: 3px; }
@media (max-width: 900px) {
  .mast .wrap { flex-wrap: wrap; row-gap: 6px; }
  .mast .spacer { display: none; }
  .mast .room-nav { flex: 1 0 100%; flex-wrap: wrap; row-gap: 2px; margin: 0 -10px; }
  .mast .brand, .mast .brand-sub { white-space: nowrap; }
}
@media (max-width: 640px) {
  /* display: contents：两组直接排进 .wrap 的 flex 里，才能一组上去、一组下来。 */
  .mast .room-nav { display: contents; }
  .mast .room-nav .rn-aux { order: 1; margin: 0 -6px 0 auto; padding: 0; border-left: 0; gap: 0; }
  .mast .room-nav .rn-main { order: 2; flex: 1 0 100%; justify-content: space-between; margin: 0 -6px; }
  .mast .room-nav a, .mast .room-nav .rn-soon { padding: 6px; font-size: 14.5px; }
  .mast .room-nav .rn-soon i { display: none; }
  /* 10 月 30 日：站名长了（吴老师高考英语），带一排房间的页首在手机上只放站徽——吴老师的头像就是站名
     （链接的 aria-label 里照样有）；不然那三间又掉到第二行，吸顶的页首变成三行。首页没有这一排，站名照旧。 */
  .mast .wrap:has(.room-nav) .home > div:not(.logo) { display: none; }
}
/* 320 宽的老手机：站名旁边放三间要再挤一点，不然又掉成三行。 */
@media (max-width: 359px) {
  .mast .room-nav .rn-aux a, .mast .room-nav .rn-aux .rn-soon { padding: 6px 4px; font-size: 13.5px; }
  .mast .room-nav .rn-aux { margin-right: -4px; }
}

/* ── 首屏两个按钮：直接进对应文体的表单 ──────────────
 * 原来是一个「免费批改」按钮滑到下面、再选文体，两次点击才进得去表单。
 * 文体在按钮上就分好，点一次直接弹窗。 */
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.cta-row .cta { margin-top: 0; padding: 13px 24px; font-size: 16px; }
.cta--ghost { background: transparent; color: var(--red); border: 1.5px solid var(--red); }
.cta--ghost:hover { background: var(--red); color: var(--on-red); }

/* ── 报告切片：可滚动，装得下更多内容 ──────────────── */
.slice-bd { max-height: 336px; overflow-y: auto; scrollbar-width: thin; }
.slice-bd::-webkit-scrollbar { width: 8px; }
.slice-bd::-webkit-scrollbar-thumb { background: var(--edge); border-radius: 4px; }
.slice-scroll {
  font-size: 11.5px; color: var(--muted); text-align: center;
  padding: 6px 0 2px; letter-spacing: .04em;
}
.slice-up {
  margin-top: 14px; padding: 12px 14px; border-radius: 8px;
  background: var(--blue-wash); border-left: 3px solid var(--blue);
  font-family: var(--f-en); font-size: 13.5px; line-height: 1.75;
}
.slice-up ins { background: transparent; text-decoration: none; border-bottom: 2px solid var(--blue); }
.slice-up .lbl {
  display: block; font-family: var(--f-hei); font-size: 11.5px;
  color: var(--blue-deep); margin-bottom: 5px; letter-spacing: .04em;
}

/* ── 三原则的抬头 ─────────────────────────────────── */
.rules-head {
  margin: 52px 0 0; font-family: var(--f-song); font-size: 20px; font-weight: 700;
}
.rules-head span { color: var(--red); }
.rules { margin-top: 16px; }


/* ── 样例报告选择器 ──────────────────────────────────
   一篇拆解讲透「报告长什么样」，但说服不了「你们对各种水平都判得住吗」。
   六份真实报告并排放，档次和分数写在卡片上，点进去是线上原件。 */
/* 两栏要各行对齐（标题 / 说明 / 卡片列表）。左右说明的行数不一样
   （左 1 行、右 2 行），不做处理下面的卡片就整体错开一行。
   **不靠凑字数**——凑到某个屏宽还是会错开。用 subgrid 让两栏共用同一套行。
   不支持 subgrid 的环境会忽略这一条，退回成原来的样子，不会更糟。 */
.picks { display: grid; gap: 22px; grid-template-columns: 1fr 1fr; margin-top: 30px;
  grid-template-rows: auto auto auto; }
.picks > div { display: grid; grid-row: span 3; grid-template-rows: subgrid; gap: 0; }
/* 间距交给 gap 统一管；.pick 自带的 margin-bottom 在这里清掉，免得两者叠加。 */
.pick-list { display: flex; flex-direction: column; gap: 8px; }
.pick-list .pick { margin-bottom: 0; }
@media (max-width: 760px) { .picks { grid-template-columns: 1fr; } }
.picks h3 {
  font-family: var(--f-song); font-size: 17px; font-weight: 700;
  margin: 0 0 4px; display: flex; align-items: baseline; gap: 8px;
}
.picks h3 em { font-style: normal; font-family: var(--f-num); font-size: 12px; color: var(--muted); }
.picks .note { margin: 0 0 12px; font-size: 13px; color: var(--muted); line-height: 1.6; }
.pick {
  display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit;
  background: var(--card); border: 1px solid var(--rule); border-radius: 9px;
  padding: 12px 14px; margin-bottom: 8px; transition: border-color .12s, transform .12s;
}
.pick:hover { border-color: var(--red); transform: translateX(2px); }
.pick .sc {
  font-family: var(--f-num); font-weight: 700; font-size: 19px; line-height: 1;
  color: var(--red); flex: none; min-width: 52px;
}
.pick .sc small { font-size: 11px; font-weight: 400; color: var(--muted); }
.pick .bd {
  flex: none; font-size: 12px; color: var(--muted);
  border: 1px solid var(--rule); border-radius: 4px; padding: 2px 6px;
}
.pick .ds { font-size: 14px; line-height: 1.5; }
.pick .go { margin-left: auto; flex: none; color: var(--muted); font-size: 14px; }
.pick:hover .go { color: var(--red); }


/* ── 页脚：三栏（品牌 / 微信二维码 / 联系与版权）+ 底部通栏免责 ──
   照雅思站的比例做：**扁而宽**，不是三个高块。二维码 92px 就够扫，
   免责声明单独放到最底下一条细线里——它最长，留在左栏会把整个页脚撑高一倍。
   邮箱是纯文本不是 mailto：手机点 mailto 会弹「选择邮件应用」，多数学生没配过客户端。 */
footer { padding: 26px 0 30px; }
.foot { display: grid; gap: 20px 44px; align-items: center;
        grid-template-columns: minmax(0, 1.2fr) auto minmax(0, .8fr); }
.foot-brand .fb { font-family: var(--f-song); font-size: 19px; font-weight: 700;
                  color: var(--ink); letter-spacing: .04em; }
.foot-brand .fb em { font-style: normal; color: var(--red); font-size: 14px;
                     font-weight: 400; margin-left: 8px; }
.foot-brand p { margin: 7px 0 0; }

.foot-wx { display: flex; gap: 12px; align-items: center; }
.foot-wx img { width: 92px; height: 92px; object-fit: cover; object-position: center 38%;
               flex: none; border: 1px solid var(--edge); border-radius: 8px;
               background: var(--card); }
.foot-wx .t { color: var(--ink); font-weight: 600; margin-bottom: 3px; }
.foot-wx .id { margin-top: 5px; }
.foot-wx .id b { color: var(--ink); letter-spacing: .02em; }

.foot-meta { text-align: right; line-height: 1.9; }
.foot-meta .mail { color: var(--ink); }

.foot-fine { margin: 20px 0 0; padding-top: 14px; border-top: 1px solid var(--rule);
             font-size: 12px; line-height: 1.7; color: var(--muted); }

@media (max-width: 860px) {
  .foot { grid-template-columns: 1fr; gap: 22px; }
  .foot-meta { text-align: left; }
}

/* ── 像素校园的那一圈（游戏感第二期）──────────────────────────
 * 「房间是像素的，卷子是真的」：题目、原文、解析的字号颜色都不动，动的是外面那一圈——
 * 房间门口的画、老师的对话框、分数和钟上的像素数字、交卷按钮。
 * 像素数字是站里自己画的 5×7 点阵（tools/make-pixel-font.py），只有数字和 : / . - %，
 * 中文照旧落到系统字体上。 */
@font-face {
  font-family: "LuminaPixel"; src: url("/fonts/lumina-pixel.woff?v=1") format("woff");
  font-display: swap; unicode-range: U+20, U+25, U+2D-3A;
}
:root { --f-pixel: "LuminaPixel", var(--f-num); }

/* 像素框：直角、两像素的边、往右下错开的实心影子——像素游戏里的对话框。 */
.px-box { position: relative; background: var(--card); border: 2px solid var(--ink);
          box-shadow: 4px 4px 0 var(--ink); padding: 14px 14px 10px; }
.px-who { position: absolute; top: -11px; left: 10px; background: var(--ink); color: var(--card);
          font-size: 12px; font-weight: 600; line-height: 1; padding: 4px 8px; letter-spacing: .04em; }

/* 房间门口（10 月 6 日站长定的）：只有这一间房，静的，和这一页的标题并排——一进来就知道这是专门
   做这件事的一页。底下铺着校园里这间房的地板（rooms/floor-*.png，tools/make-floors.py 照着校园
   buildAtlas() 那几笔画的），只铺门口这一条；往下是卷子，页面照旧是素的。
   原来这里是一张 176×128 的小图，站长觉得太小、只是校园的一小块。画还是那几张（rooms/*.png，
   从校园烤出来的 2 倍图，像素成对），所以能原样放大：2 倍就是原尺寸，3 倍是放大 1.5，像素不糊。
   用 container query 按这一条自己有多宽来排，不按窗口：模拟考场那一页的门口在 660px 的窄栏里。
   不认 container query 的浏览器就是手机那种上下排，也不会坏。 */
.room-hero { container-type: inline-size; margin: 16px 0 16px; }
.rh-floor { background: var(--floor) 0 0 / 32px 32px repeat; image-rendering: pixelated;
            border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); padding: 12px; }
/* 画框用一圈影子画，不用 border：border 会吃进图的尺寸，3 倍就不是正好 3 倍了，像素会糊。 */
.rh-img { display: block; margin: 2px auto; width: auto; max-width: calc(100% - 4px); height: 256px;
          object-fit: none; object-position: center; image-rendering: pixelated; background: var(--rule);
          box-shadow: 0 0 0 2px var(--ink), 8px 8px 0 var(--c, var(--ink)); }
.rh-col { margin-top: 16px; }
.room-hero .rh-text { background: var(--card); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
                      padding: 16px 18px; margin: 0; }
.room-hero .rh-text > :first-child { margin-top: 0; }
.room-hero .rh-text > :last-child { margin-bottom: 0; }
.room-hero .rh-say { margin: 22px 0 4px; }
.room-hero .rh-say p { margin: 2px 0 6px; font-size: 14px; line-height: 1.7; }
.room-hero .rb-back { font-size: 13px; color: var(--muted); text-decoration: none; }
.room-hero .rb-back:hover { color: var(--ink); text-decoration: underline; }
@container (min-width: 680px) {
  .rh-row { display: flex; gap: 24px; align-items: stretch; }
  .rh-img { flex: none; margin: 2px; }
  .rh-col { flex: 1; min-width: 0; max-width: 720px; margin-top: 0;
            display: flex; flex-direction: column; gap: 22px; }
  .room-hero .rh-say { margin: auto 0 4px; }          /* 压到底，和画的下沿对齐 */
}
/* 11 月 5 日（吴老师：门口这块占地方太多）：宽屏上画不再放大到 3 倍（384px 高），一直是 2 倍（256px）；
   横幅在宽屏上收成一行（见下面 .rh-motto）。地板砖还是宽屏大一号。 */
@container (min-width: 960px) {
  .rh-floor { background-size: 48px 48px; padding: 16px; }
}

/* 老师（交卷以后的成绩框里、考场里）：校园里同一个人，campus-cast.png 的第 --sp 行第一帧，放大两倍。
   ?h= 和 campus.html 里的一样（tools/split-cast.py 按内容算的）：表格加了一行，老缓存里没有吴老师。 */
.tchr { display: flex; gap: 10px; align-items: flex-end; margin: 18px 0 4px; }
.tchr-face { width: 64px; height: 64px; flex: none; image-rendering: pixelated;
             background: url("/campus-cast.png?h=15307fac") 0 calc(var(--sp, 12) * -64px) / 1536px 1344px no-repeat; }
.tchr-face--cat { background: url("/cat.png?v=2") center / 64px 64px no-repeat; }
.tchr-say { flex: 1; min-width: 0; }
.tchr-say p { margin: 2px 0 0; font-size: 14px; line-height: 1.7; color: var(--ink); }

/* 音效开关（游戏感第四期）：报头右边一个像素小喇叭。默认关；开着的时候喇叭发出两道声波。 */
.sfx-tg { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-left: 8px; padding: 0; cursor: pointer;
          border: 2px solid var(--rule); background: var(--card); color: var(--muted); flex: none; vertical-align: middle; }
.sfx-tg[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.sfx-tg svg { image-rendering: pixelated; }
.sfx-tg .w { display: none; }
.sfx-tg[aria-pressed="true"] .w { display: inline; }
.sfx-tg[aria-pressed="true"] .x { display: none; }

/* ── 像素字（10 月 6 日）────────────────────────────────────────
 * 站名、报头、各页和各张卡片的标题、标签、老师的对话框、奖状——房间的那一圈——用像素中文
 * LuminaType（缝合像素字体 Fusion Pixel 12px 裁出来的，tools/make-type.py；SIL OFL 1.1，
 * 许可证在 /fonts/）。卷子上的东西不动：原文、题目、解析、写作题目、答题卡，照旧是宋体 / 黑体 /
 * Georgia。「房间是像素的，卷子是真的。」
 *
 * 像素字只在整倍数上是清楚的：12 / 24 / 36 / 48 px（一个点 = 1、2、3、4 个屏幕像素）。
 * 别的字号会糊，所以这一块把字号也一起定死。只有一个字重：不让浏览器假加粗（font-synthesis）。
 * 选择器前面的 html body 是为了压过各页自己 <style> 里同名的规则（那些写在 style.css 后面）。 */
@font-face {
  font-family: "LuminaType"; src: url("/fonts/lumina-type.woff2?v=20") format("woff2");
  font-display: swap;
}
:root { --f-type: "LuminaType", var(--f-hei); }

html body .brand, html body .brand-sub, html body .mast .room-nav a, html body .mast .room-nav .rn-soon,
html body .hero h1, html body .rd-hd h1, html body .ls-hd h1, html body .us-hd h1, html body .bk-hd h1,
html body .wr-hd h1, html body .pr-hero h1, html body .rd h1, html body .dn h1,
html body .grp h2, html body .set .t1 b, html body .pc .t1 b, html body .paper h2,
html body .pc > b, html body .mypts h2, html body .bk-card h2, html body .rd-card h2, html body .mode .mt b,
html body .card h3, html body .foot-brand .fb, html body .aw .h, html body .tb-name,
html body .px-who, html body .px-box p, html body .tchr-say p, html body .room-hero .rb-back,
html body .rooms-go a, html body .rooms-go .soon, html body .vol, html body .about h2, html body .about h3,
html body .wish h2, html body .wish h3, html body .wish .bars .lb, html body .wish .bars .n, html body .wish legend, html body .wish-field > span, html body .wish .chip span,
html body .wish-btn, html body .wish-again {
  font-family: var(--f-type); font-weight: 400; font-synthesis: none; letter-spacing: 0;
  -webkit-font-smoothing: none; -moz-osx-font-smoothing: auto;
}
/* 48：首页的大标题 */
html body .hero h1 { font-size: 48px; line-height: 1.25; }
/* 36：各间房的大标题；首页「关于我们」 */
html body .about h2, html body .wish h2 { font-size: 36px; line-height: 1.3; }
html body .rd-hd h1, html body .ls-hd h1, html body .us-hd h1, html body .bk-hd h1, html body .wr-hd h1,
html body .rd h1, html body .dn h1 { font-size: 36px; line-height: 1.3; }
html body .pr-hero h1 { font-size: 24px; line-height: 1.5; }
/* 24：站名、卡片和分组的标题、奖状两个字 */
html body .brand, html body .grp h2, html body .set .t1 b, html body .pc .t1 b,
html body .paper h2, html body .pc > b, html body .mypts h2, html body .bk-card h2, html body .rd-card h2,
html body .mode .mt b, html body .card h3, html body .foot-brand .fb, html body .about h3 { font-size: 24px; line-height: 1.35; }
html body .aw .h { font-size: 24px; letter-spacing: .5em; }
/* 12：报头的房间、小标签、老师的话、按钮上的字 */
html body .brand-sub, html body .mast .room-nav a, html body .mast .room-nav .rn-soon, html body .tb-name,
html body .px-who, html body .px-box p, html body .tchr-say p, html body .room-hero .rb-back, html body .vol,
html body .rooms-go a, html body .rooms-go .soon { font-size: 12px; }
/* 首页的意见箱：标签、勾选、按钮（10 月 6 日） */
html body .wish legend, html body .wish-field > span, html body .wish .chip span, html body .wish-btn,
html body .wish-again, html body .wish .bars .lb, html body .wish .bars .n { font-size: 12px; line-height: 2; }
html body .wish h3 { font-size: 24px; line-height: 1.35; }
/* 办公室的红横幅（原来首页「关于」的结尾，11 月 5 日挪进办公室）；卡片编号那两行已经没人用 */
html body .ab-card .no, html body .ab-banner p { font-family: var(--f-type); font-weight: 400; font-synthesis: none; -webkit-font-smoothing: none; }
html body .ab-card .no { font-size: 24px; line-height: 1; }
html body .ab-banner p { font-size: 24px; line-height: 1.6; }
@media (max-width: 640px) { html body .ab-banner p { font-size: 12px; line-height: 2; } }
/* 奖状上的小字：抬头、正文、落款（10 月 6 日） */
html body .aw .who, html body .aw .t, html body .aw .f, html body .aw .by {
  font-family: var(--f-type); font-weight: 400; font-synthesis: none; -webkit-font-smoothing: none; font-size: 12px; line-height: 2; }
html body .px-box p, html body .tchr-say p { line-height: 2; }
/* 这几处原来的规则比上面的更具体（两个类），字号得在这里再压一次。 */
html body .room-hero .px-box p, html body .room-hero .rb-back { font-size: 12px; }
/* 11 月 5 日（吴老师：门口吴老师那句字太小）：像素字只有 12、24 清楚，24 又太大，就照首页吴老师的对话框，改用 16px 黑体。 */
html body .room-hero .rh-say p { font-family: var(--f-hei); -webkit-font-smoothing: auto; font-size: 16px; line-height: 1.75; }
html body .room-hero .rb-back { font-family: var(--f-hei); -webkit-font-smoothing: auto; font-size: 14px; }
html body .mast .room-nav .rn-soon i { font-size: 12px; font-style: normal; font-family: var(--f-type); }
html body .foot-brand .fb em { font-size: 12px; }
@media (max-width: 640px) {
  html body .hero h1 { font-size: 36px; }
  html body .rd-hd h1, html body .ls-hd h1, html body .us-hd h1, html body .bk-hd h1, html body .wr-hd h1,
  html body .rd h1, html body .dn h1, html body .about h2, html body .wish h2 { font-size: 24px; }
}

/* ── 吴老师（10 月 26 日，站长定的）──────────────────────────────
 * 璐明升格是学校，吴老师是学校里教书的那个人：教法、批注、作文批改的标准，都是吴老师的。
 * 「教学理念」一到四是吴老师本人定稿的原话，页面上一个字都不改（tests/site_nav_test.py 逐字比对）。
 *
 * .lz        教学理念：一块黑板，四条。每条开头那句用像素字，后半句用正文字体——拼起来就是原话。
 *            办公室（/office）和首页共用。
 * .rh-motto  每间房门口挂的一条红横幅：这间房练的是哪一条理念，点一下进办公室。
 * .tnote     吴老师批注：交卷以后贴在老师那句话下面的一张红笔批注。正文用黑体，不用手写字体
 *            （手写中文字体几 MB，国内加载慢）；一道红边、纸色、老师的脸，就认得出是谁写的。
 * .wu-head   吴老师的像素头像（/wu/head.png，32×32，tools/make-wu.py 从立绘上裁的）：批注抬头 32px，
 *            交卷后吴老师那句话 64px。校园里走的是 32×32 的小人；说话、批注用这张脸——像素游戏的老规矩。
 * 说话和批注用吴老师的头像（.wu-head）；校园里的像素小人是 campus-cast.png 第 16 行（校园仓库 tools/compose-cast.py 的 wu()）。 */

/* 教学理念：黑板（和首页「关于」那块同一种木框），四条一条一个编号 */
.lz { background: #2F4A3A; color: #EEF2EA; border: 8px solid #8A5A3C; outline: 2px solid var(--ink);
      box-shadow: 0 8px 0 -2px #6E4A2A, 6px 6px 0 2px rgba(35,38,43,.35); padding: 22px 26px 18px; }
.lz-h { margin: 0 0 18px; color: #F6E9B8; }
.lz ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.lz li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 0 14px; align-items: start; scroll-margin-top: 140px; }
.lz .n { display: grid; place-items: center; width: 40px; height: 40px; background: #F2C879; color: #2F4A3A;
         box-shadow: 2px 2px 0 rgba(0,0,0,.35); }
.lz p { margin: 0; }
.lz .lead { display: block; color: #FFFFFF; }
.lz .nw { white-space: nowrap; }
.lz .rest { display: block; margin-top: 6px; font-size: 16px; line-height: 1.85; color: #E3EADF; }
.lz .sig { margin: 16px 0 0; text-align: right; color: #F2C879; }
.lz-go { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin: 18px 0 0; }
.lz-go a { display: inline-block; padding: 9px 16px; background: #F2C879; color: #2F4A3A; text-decoration: none;
           border: 2px solid #1E3127; box-shadow: 3px 3px 0 #1E3127; }
.lz-go a:hover { filter: brightness(1.06); }
.lz-go a:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #1E3127; }

/* 五、六、七：三个部分各一张小卡，点进那间房。颜色和校园门牌同一种。 */
.lz-ways { display: grid; gap: 16px; }
@media (min-width: 760px) { .lz-ways { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.lz-ways a { display: block; background: var(--card); color: var(--ink); text-decoration: none; border: 2px solid var(--ink);
             border-top: 8px solid var(--c, var(--ink)); box-shadow: 4px 4px 0 var(--ink); padding: 12px 14px 14px; }
.lz-ways a:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.lz-ways b { display: block; color: var(--c, var(--ink)); margin-bottom: 4px; }
.lz-ways span { display: block; font-size: 14.5px; line-height: 1.75; }

/* 房间门口的红横幅：红布、深色的边、两头系着（和首页「关于」那条一样的做法） */
.rh-motto { position: relative; display: block; margin: 22px 6px 4px; padding: 12px 26px 12px; background: #B02A24;
            color: #FFF6EC; border-top: 4px solid #6E1512; border-bottom: 6px solid #6E1512; text-align: center;
            text-decoration: none; box-shadow: 4px 4px 0 rgba(35,38,43,.3); }
.rh-motto::before, .rh-motto::after { content: ""; position: absolute; top: -12px; width: 8px; height: 16px; background: #6E1512; }
.rh-motto::before { left: 10px; }
.rh-motto::after { right: 10px; }
.rh-motto b { display: block; margin-bottom: 4px; color: #F2C879; }
.rh-motto span { display: block; }
.rh-motto:hover { filter: brightness(1.08); }
.rh-motto:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* 吴老师批注：纸色、左边一道红、像素框的影子；抬头一张小脸和「吴老师批注」 */
.tnote { margin: 14px 0 6px; background: #FFFBF0; border: 2px solid var(--ink); border-left: 6px solid var(--red);
         box-shadow: 4px 4px 0 var(--ink); padding: 12px 16px 14px 14px; }
.tnote[hidden] { display: none; }
.tnote-hd { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; color: var(--red); }
.tnote-hd .tag { margin-left: auto; padding: 0 6px; border: 2px solid currentColor; color: var(--blue); }
.tnote-hd .tag.dr { color: var(--muted); }
.tnote p { margin: 0; font-family: var(--f-hei); font-size: 15px; line-height: 1.85; color: #7A2620; }

/* 做题前「怎么做」卡片最上面那一块：吴老师的方法（理念五、六、七；语法填空是理念四） */
.way { margin: 10px 0 12px; background: #FFFBF0; border: 2px solid var(--ink); border-left: 6px solid var(--red);
       padding: 10px 14px 10px 12px; color: var(--ink); }
.way-h { display: block; color: var(--red); margin-bottom: 4px; }
.way ol { margin: 0; padding-left: 1.6em; }
.way li { margin: 2px 0; line-height: 1.7; }
.way p { margin: 0; line-height: 1.8; }
.way-go { display: inline-block; margin-top: 6px; font-size: 13px; color: var(--red); }

/* 吴老师的像素头像（批注抬头、交卷后那句话）：整数倍放大，像素边是直的 */
.wu-head { display: inline-block; flex: none; width: 32px; height: 32px; image-rendering: pixelated;
           background: url("/wu/head.png?v=2") 0 0 / 100% 100% no-repeat; }
.tchr-face.tchr-face--wu { background: url("/wu/head.png?v=2") 0 0 / 64px 64px no-repeat; }

/* 像素字：这几处的字都在 LuminaType 里（tools/make-type.py 会把页面上的字都收进去） */
html body .lz-h, html body .lz .n, html body .lz .lead, html body .lz .sig, html body .lz-go a,
html body .rh-motto b, html body .rh-motto span, html body .tnote-hd b, html body .tnote-hd .tag, html body .way-h, html body .lz-ways b {
  font-family: var(--f-type); font-weight: 400; font-synthesis: none; letter-spacing: 0;
  -webkit-font-smoothing: none; -moz-osx-font-smoothing: auto;
}
html body .lz-h, html body .lz .n, html body .lz .lead { font-size: 24px; line-height: 1.5; }
html body .lz .sig, html body .lz-go a, html body .rh-motto b, html body .tnote-hd b, html body .tnote-hd .tag,
html body .way-h { font-size: 12px; line-height: 2; }
html body .lz-ways b { font-size: 24px; line-height: 1.4; }
html body .rh-motto span { font-size: 12px; line-height: 2; }
@container (min-width: 680px) {
  html body .rh-motto span { font-size: 24px; line-height: 1.6; }
  /* 宽屏一行：「吴老师的理念 · 三」和原话并排，上下收紧。 */
  .room-hero .rh-motto { display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: 0 16px;
                         margin-top: 18px; padding: 6px 24px 6px; }
  .room-hero .rh-motto b { margin: 0; flex: none; }
  .room-hero .rh-motto span { display: inline; }
}
@media (max-width: 640px) {
  .lz { padding: 18px 16px 14px; border-width: 6px; }
  .lz li { grid-template-columns: 32px minmax(0, 1fr); gap: 0 10px; }
  .lz .n { width: 32px; height: 32px; }
  html body .lz .n { font-size: 12px; }
  .lz .rest { font-size: 15px; }
}

/* 楼层开关（11 月 15 日）：「年级 [高一] [高二] [高三]」。首页英雄区、听力 · 阅读 · 语言运用的清单上面、
   模考的「选择卷子」、学情复盘顶上，是同一个开关（site/floor.js）。像素按钮：两像素的边、往右下错开的影子。
   11 月 21 日站长说墨黑的按钮「有点无聊、有点吓人」，换成房间的颜色——就是报头和以前首页那排
   「听力 · 阅读 · 语言运用…」按钮用的颜色：高一 = 写作的绿、高二 = 听力的紫、高三 = 语言运用的金（先试过高二用阅读的蓝，和高一的绿太像）。
   没选中的是那个颜色的浅底、色字、色边；选中的整块填满那个颜色、白字（和以前那排房间按钮一样），轻轻往上抬一点。 */
.floors { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 10px 0 4px; }
.floors .fl-l { font-size: 15px; font-weight: 700; color: var(--ink); margin-right: 2px; }
.floors button { --c: #3C6A52; --c-wash: #E6F0EA;
                 font-size: 15px; line-height: 1.2; padding: 4px 12px; cursor: pointer; border: 2px solid var(--c);
                 background: var(--c-wash); color: var(--c); box-shadow: 2px 2px 0 var(--c); min-height: 34px;
                 transition: transform .08s steps(2), box-shadow .08s steps(2); }
.floors button[data-g="g2"] { --c: #6B4A7A; --c-wash: #F0E9F3; }
.floors button[data-g="g3"] { --c: #8E6318; --c-wash: #F6EEDC; }
.floors button:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--c); }
.floors button[aria-pressed="true"] { background: var(--c); color: #FFFEFB; cursor: default;
                                      transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }
.floors button:active { transform: translate(2px, 2px); box-shadow: none; }
.floors button:focus-visible { outline: 2px solid var(--c); outline-offset: 2px; }
.floors-empty { color: var(--muted); font-size: 15px; margin: 14px 0; }
html body .floors .fl-l, html body .floors button {
  font-family: var(--f-type); font-weight: 400; font-synthesis: none; letter-spacing: 0;
  -webkit-font-smoothing: none; -moz-osx-font-smoothing: auto;
}
