/* 主题反馈 H5 —— 移动优先。样式和探校评估的 h5.css 同源，末尾追加了门户 / 分数 / 课程介绍那几块。
   375px 基准，桌面端居中 420px。
   字体走系统栈：iOS 的 PingFang SC / 安卓的思源黑体都自带，零下载、
   国内网络下秒开，也省掉了 Google Fonts 在大陆不可达的老问题。

   视觉基调对齐设计稿「探校评估 H5」：纸白底、砖红点缀、2px 直角、
   发丝线分隔、中文字距拉开。不用圆角卡片和投影 —— 一份要拿给家长看的
   评估报告，排版语言更接近印刷品而不是 App 面板。 */

:root {
  --bg: #ffffff;          /* 屏内底色 */
  --canvas: #f1eee9;      /* 桌面端页面两侧的画布色 */
  --tint: #fbf8f5;        /* 提示块底色 */

  --ink: #26221f;         /* 标题、正文强调 */
  --ink-2: #3a3532;       /* 长段正文 */
  --ink-3: #6e6862;       /* 次级文字 */
  --ink-4: #8c857e;       /* 更次级 */
  --faint: #a79f98;       /* 字段名、辅助信息 */
  --faint-2: #bdb6af;
  --faint-3: #cfc8c1;     /* 序号、占位 */

  --line: #eae6e0;        /* 常规分隔线 */
  --line-soft: #f2efea;   /* 密集列表的行线 */
  --line-mid: #ede9e3;
  --line-strong: #ded7ce;

  --accent: #af3a2b;
  --accent-dark: #8e2c1f;
  --accent-tint: rgba(175, 58, 43, 0.07);

  --radius: 2px;
  --gutter: 20px;         /* 屏内左右安全边距 */
  --page: 420px;
}

* { box-sizing: border-box; }

/* [hidden] 来自浏览器默认样式表，任何带 display 的作者规则都能盖过它。
   本文件里 .overlay / .upload-add / .record 都设了 display，没有这条规则
   它们的 el.hidden = true 会完全失效（遮罩常驻、搜索过滤不掉记录）。 */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  font-size: 15px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.4; }

a { color: var(--accent); text-decoration: none; }

/* 屏：手机上铺满，桌面端收成一条 420px 的纸。所有内容块自带左右内边距，
   .page 本身不留 padding —— 报告页的作品照要整幅出血。 */
.shell {
  max-width: var(--page);
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--bg);
}

.page {
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
}

.page.has-bottom-bar {
  padding-bottom: calc(104px + env(safe-area-inset-bottom));
}

.gut { padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------------------------------------------------------------- 顶栏 */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: max(14px, env(safe-area-inset-top)) var(--gutter) 14px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(12px);
}

.topbar h1 { font-size: 17px; letter-spacing: 0.08em; color: var(--ink); }

.topbar .sub {
  font-size: 11.5px;
  color: var(--faint);
  font-weight: 400;
  letter-spacing: 0.04em;
  margin-top: 5px;
}

.topbar-actions { display: flex; align-items: baseline; gap: 16px; flex-shrink: 0; }

.report-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.report-brand img {
  display: block;
  width: 132px;
  height: auto;
}
.report-logo {
  display: block;
  padding: 2px 0;
  -webkit-tap-highlight-color: transparent;
}

/* ------------------------------------------------------------ 双 tab 顶栏 */

/* 填写观察 / 观察报告。老师和校长在这两页之间来回切，入口必须是页面上
   第一眼看到的东西 —— 之前它是顶栏角落里一行 12px 小字，等于没有。 */
.tabbar { align-items: baseline; padding-bottom: 0; }

.tabs { display: flex; gap: 22px; }

.tab {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--faint);
  text-decoration: none;
  padding-bottom: 12px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.tab.on { color: var(--ink); border-bottom-color: var(--accent); }

.tab-aside {
  font-size: 11.5px;
  color: var(--faint);
  letter-spacing: 0.04em;
  padding-bottom: 12px;
  flex-shrink: 0;
}
/* 这次登录进的城市。一座城市一个库，顶栏上得写着现在在哪个库里 —— 老师
   拿着上海的口令却以为自己在看北京的列表，会先怀疑数据丢了。 */
.tab-city { color: var(--ink-3); }
.tab-city + span { margin-left: 8px; padding-left: 8px; border-left: 1px solid var(--line-strong); }

/* 顶栏动作是排版里的一行小字，不是按钮 —— 设计稿里它们没有边框和底色 */
.link-btn {
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.link-btn.primary { color: var(--accent); }
.link-btn.danger { color: var(--accent); }

.chip-flag {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 3px 10px;
}

/* -------------------------------------------------------------- 节标题 */

/* 「壹 孩子信息 ————」这一行。序号用汉字数字，和 15 项里的 01/02 阿拉伯
   数字分层：一个是章节，一个是条目。 */
.sec {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 var(--gutter);
}

.sec .idx { font-size: 12px; color: var(--accent); letter-spacing: 0.1em; flex-shrink: 0; }

.sec .name {
  font-size: 12px;
  letter-spacing: 0.24em;
  text-indent: 0.24em;
  color: var(--ink-3);
  white-space: nowrap;
}

.sec .rule { flex: 1; height: 1px; background: var(--line); }

.sec .aside { font-size: 11px; color: var(--faint); flex-shrink: 0; }

.sec.accent .name { color: var(--accent); }

/* ---------------------------------------------------------------- 表单 */

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 16px;
  padding: 20px var(--gutter) 0;
}

.field.wide { grid-column: 1 / -1; }

.field label {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--faint);
  margin-bottom: 8px;
}

.field .req { color: var(--accent); }

/* 下划线式输入框：设计稿里表单是一张纸上的填空，不是一排输入控件。
   必填项的下划线用墨色，选填用发丝线，一眼能扫出哪些必须填。 */
input[type="text"],
input[type="date"],
input[type="password"],
input[type="search"],
textarea,
select {
  width: 100%;
  padding: 0 0 8px;
  font: inherit;
  font-size: 16px; /* < 16px 会让 iOS Safari 聚焦时自动放大页面 */
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  appearance: none;
}

.field.required input { border-bottom-color: var(--ink); }

input:focus, textarea:focus, select:focus {
  outline: none;
  border-bottom-color: var(--accent);
}

input::placeholder { color: var(--faint-3); }

/* iOS 上空的 date 输入框宽度会缩成文字那么宽，靠左飘着 */
input[type="date"] { min-height: 25px; }

select {
  background-image: linear-gradient(45deg, transparent 50%, var(--faint) 50%),
                    linear-gradient(135deg, var(--faint) 50%, transparent 50%);
  background-position: right 4px center, right 0 center;
  background-size: 4px 4px, 4px 4px;
  background-repeat: no-repeat;
}

textarea { resize: vertical; min-height: 84px; line-height: 1.8; }

.hint {
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--ink-3);
  background: var(--tint);
  border-left: 2px solid var(--accent);
  padding: 12px 14px;
  margin: 14px var(--gutter) 0;
}
.hint b { color: var(--accent); font-weight: 600; }

/* ------------------------------------------------------------ 进度条 */

.progress { padding: 0 var(--gutter); }

.progress .track { height: 2px; background: var(--line-mid); position: relative; }

.progress .bar {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  background: var(--accent);
  transition: width .25s;
}

.progress .stat {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--faint);
  letter-spacing: 0.06em;
  margin-top: 7px;
}
.progress .stat b { color: var(--accent); font-weight: 600; }

/* -------------------------------------------------------- 四档评价 */

/* 一项 = 一行：序号 + 项名 + 四格连排，15 项全部平铺不折叠。
   档位写全称（待提升/达标/良好/优秀）—— 老师点的时候不用回想缩写指什么，
   四格因此占到 192px，项名压到 14px 仍装得下最长的「天马行空想象力」。 */

.rate-section { padding-top: 22px; }

.rate-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0 var(--gutter);
  padding-bottom: 9px;
  border-bottom: 1px solid var(--ink);
}

.rate-head .axis-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-indent: 0.14em;
  color: var(--ink);
  white-space: nowrap;
}

.rate-head .axis-count { font-size: 10.5px; color: var(--accent); letter-spacing: 0.08em; }

.rate-list { counter-reset: rate; }

.rate-item {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 50px;
  margin: 0 var(--gutter);
  border-bottom: 1px solid var(--line-soft);
  counter-increment: rate;
}

/* 序号跨轴连续编到 14 —— 老师说的是「第 12 项」，不是「第三组第二项」。
   decimal-leading-zero 直接给出 01/02 的补零形式。 */
.rate-item::before {
  content: counter(rate, decimal-leading-zero);
  font-size: 10px;
  font-weight: 600;
  color: var(--faint-3);
  width: 14px;
  flex-shrink: 0;
}

.rate-name {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  white-space: nowrap;
  color: var(--ink);
}

/* 评完的项压暗一档，剩下没评的自己浮出来 */
.rate-item.done .rate-name { color: var(--ink-4); font-weight: 400; }

.rate-options {
  display: flex;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.rate-options button {
  width: 48px;
  height: 38px;
  padding: 0;
  font: inherit;
  font-size: 12px;
  color: var(--faint);
  background: var(--bg);
  border: none;
  border-left: 1px solid var(--line);
  cursor: pointer;
  transition: background .12s, color .12s;
  -webkit-tap-highlight-color: transparent;
}
.rate-options button:first-child { border-left: none; }

.rate-options button[aria-pressed="true"] {
  background: var(--accent);
  border-left-color: var(--accent);
  color: #fff;
  font-weight: 600;
}

/* ---------------------------------------------------------------- 上传 */

.uploader input[type="file"] { display: none; }

.upload-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 10px var(--gutter) 0;
}

.upload-tile {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--tint);
}

.upload-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }

.upload-tile .remove {
  position: absolute;
  top: 4px; right: 4px;
  width: 24px; height: 24px;
  border: none;
  border-radius: 50%;
  background: rgba(38, 34, 31, 0.55);
  color: #fff;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}

.upload-add {
  aspect-ratio: 1;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  color: var(--faint);
  font: inherit;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}
.upload-add .plus { font-size: 22px; line-height: 1; font-weight: 300; }

/* 「+」下面那一句：说清楚这一个口子什么都收、上限是多少。
   分类的活儿原来由四个分组标题干，现在压成这一行。 */
.upload-hint {
  margin: 10px 0 0;
  padding: 0 var(--gutter);
  font-size: 11.5px;
  line-height: 1.8;
  color: var(--faint);
}

/* ---------------------------------------------------------- 老师评语 */

.note-section { padding: 16px var(--gutter) 0; }

.note-section textarea {
  min-height: 108px;
  padding: 12px 14px;
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: 0.01em;
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.note-section textarea:focus { border-color: var(--accent); background: var(--bg); }
.note-section textarea::placeholder { color: var(--faint-2); font-size: 13px; line-height: 1.8; }

/* ---------------------------------------------------------------- 底栏 */

.bottom-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: saturate(180%) blur(12px);
  border-top: 1px solid var(--line);
}

.bottom-bar .inner {
  max-width: var(--page);
  margin: 0 auto;
  padding: 12px var(--gutter) calc(22px + env(safe-area-inset-bottom));
  display: flex;
  gap: 10px;
  align-items: center;
}

/* 填表页把进度文字和按钮包在一个 div 里 —— .btn 的 flex:1 在块级容器里不起作用，
   得显式给宽度，否则按钮只有文字那么宽、缩在左下角。 */
.bottom-bar .inner > div { flex: 1; min-width: 0; }
.bottom-bar .inner > div > .btn { width: 100%; }

/* 保存草稿 | 生成报告。草稿那颗窄一些：两颗一样宽会让人以为它们同等重要，
   而这一屏真正要走完的是右边那颗。 */
.btn-row { display: flex; gap: 10px; }
.btn-row > .btn { flex: 1; }
.btn-row > #draft-btn { flex: 0 0 38%; letter-spacing: 0.12em; text-indent: 0.12em; }

.btn {
  flex: 1;
  min-height: 48px;
  font: inherit;
  font-size: 15px;
  letter-spacing: 0.2em;
  text-indent: 0.2em; /* 抵消末字右侧的字距，让文字真正居中 */
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink-2);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.dim { opacity: .35; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.ghost { flex: 0 0 auto; padding: 0 20px; font-size: 14px; letter-spacing: 0.08em; text-indent: 0.08em; }

.progress-text {
  font-size: 11px;
  color: var(--faint);
  letter-spacing: 0.06em;
  text-align: center;
  margin-bottom: 9px;
}

/* ---------------------------------------------------------------- 报告 */

.report-head { text-align: center; padding: 34px 20px 0; }

.report-head .meta {
  margin-top: 9px;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--faint-2);
}

.report-head .name {
  margin: 0;
  font-size: clamp(19px, 5.7vw, 23px);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-indent: 0.05em;
  color: var(--ink);
  line-height: 1.3;
  text-align: center;
  white-space: nowrap;
}

/* 老师给的结论，夹在日期和分隔线之间：家长一眼看得到，又不跟标题抢。
   「通过」用品牌红，其余两档保持中性 —— 报告里已经刻意不出现分数了，
   这一行也不该长成红黄绿的判决书。 */
.assessment-result {
  display: inline-block;
  margin-top: 14px;
  padding: 3px 13px;
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0.1em;
  text-indent: 0.1em;
  color: var(--ink-3);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}
.assessment-result[data-result="pass"] {
  color: var(--accent);
  background: var(--accent-tint);
  border-color: transparent;
}

.report-head .rule { width: 26px; height: 1px; background: var(--accent); margin: 20px auto 0; }

/* ------------------------------------------------------ 能力雷达 */

.ability-overview { padding: 8px var(--gutter) 0; }

.radar { width: 100%; }
.radar svg {
  display: block;
  width: 100%;
  max-width: 370px;
  margin: 0 auto;
  overflow: visible;
}
.radar .vx { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.radar .vx-name {
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  fill: var(--ink-3);
  transition: fill 160ms ease, font-weight 160ms ease;
}
.radar .vx-level {
  font-family: inherit;
  font-size: 11.5px;
  fill: var(--faint);
  transition: fill 160ms ease;
}
.radar .vx.on .vx-name { fill: var(--accent); font-weight: 650; }
.radar .vx.on .vx-level { fill: var(--accent); }

/* 五块小维度横着排成一条，一次露一块，左右滑动换。翻页交给原生 scroll-snap，
   和照片画框是同一套做法 —— 微信 WebView 里自己接管 touch 去仿惯性永远差一口气。

   五块都留在 DOM 里（不再用 hidden 藏），否则滑不起来；每块高度一样
   （每根轴固定三个小维度），所以滑动时下面的版面不会跳。 */
.axis-details {
  display: flex;
  overflow-x: auto;
  overscroll-behavior-x: contain;   /* 滑到头别把整页往横里带 */
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-bottom: 1px solid var(--line);
}
.axis-details::-webkit-scrollbar { display: none; }

.axis-panel {
  flex: 0 0 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;         /* 一次一块，不让一个快滑连翻三项 */
  padding: 14px 14px 5px;
  background: #fff;
}

/* 圆点在这一块下面，不压在内容上：它下面就是正文，压上去会挡住最后一行。
   照片画框那排点是白的（压在照片上），这排在纸白底上，用发丝灰。 */
.axis-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 14px 0 2px;
}
.axis-dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: var(--faint-3);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: width 0.18s ease, background 0.18s ease;
}
.axis-dot.on { width: 16px; background: var(--accent); }

.axis-panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 10px;
}
.axis-panel-head h2 {
  flex: 1;
  font-size: 16px;
  letter-spacing: 0.08em;
  color: var(--ink);
}
.axis-index {
  font-family: Georgia, serif;
  font-size: 12px;
  color: var(--accent);
}
.axis-level {
  flex-shrink: 0;
  padding: 2px 9px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--accent-tint);
  border: 1px solid rgba(175, 58, 43, 0.22);
  border-radius: 999px;
}
.radar-hint {
  margin: 12px 0 14px;
  font-size: 10.5px;
  text-align: center;
  letter-spacing: 0.08em;
  color: var(--faint);
}

/* 课堂观察总述沿用报告原本的「标题 + 细线 + 正文」语言，
   与能力评分区分开：前者是叙事，后者是老师的结构化评价。 */
.ai-reading {
  margin: 30px var(--gutter) 0;
  padding: 18px 18px 20px;
  background: var(--tint);
  border-left: 2px solid var(--accent);
}

.ai-reading-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 13px;
}

.ai-reading-head h2 {
  flex: 0 0 auto;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--ink);
}

.ai-reading-head .rule {
  flex: 1;
  height: 1px;
  background: var(--line-strong);
}

/* 老师评语：报告里唯一不是 AI 写的一段，用底色和竖线跟 AI 内容区分开 */
.teacher-note {
  margin: 20px var(--gutter) 0;
  padding: 16px 18px;
  background: var(--tint);
  border-left: 2px solid var(--ink-4);
}
.teacher-note .sign {
  margin-top: 12px;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--faint);
  text-align: right;
}

/* ---------------------------------------------------------- 作品解读 */

.reading { padding-top: 28px; }

/* 作品图按原图比例整幅铺开，不裁切 —— 老师拍的横图竖图各占各的高度，
   统一切成固定高度会把作品切掉一半。点一下看大图。 */
.artwork {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  position: relative;
  cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
}
.artwork img { display: block; width: 100%; height: auto; }

.artwork .zoom {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 3px 9px;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: #fff;
  background: rgba(38, 34, 31, 0.5);
  border-radius: var(--radius);
}

.reading-body { padding: 20px var(--gutter) 0; }

.reading-body .head { display: flex; align-items: baseline; gap: 10px; }
.reading-body .num { font-size: 10px; font-weight: 600; color: var(--faint-3); flex-shrink: 0; }
.reading-body .title {
  flex: 1;
  font-size: 17.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.5;
  color: var(--ink);
}

.reading-body .para { margin-top: 18px; }

.para-label {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--faint);
  margin-bottom: 6px;
}
.para-label.accent { color: var(--accent); }

/* 天赋标签 + 艺术表达正文 */
.talent { padding: 22px var(--gutter) 0; }

.talent-chips { display: flex; flex-wrap: wrap; gap: 8px; }

.talent-chip {
  padding: 5px 10px;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: var(--accent-tint);
  border-radius: var(--radius);
}

/* 没有标签时这一段就是天赋段的全部内容，不该再往下垫一截空白 */
.talent-chips + .prose { margin-top: 22px; }

/* 两端对齐。中文避头尾规则不允许标点落在行首，左对齐时行尾撞上标点就会把
   前一个字一起挤下去，右边空出 1–2 个字（实测最多 32px），看上去就是"右边
   间距比左边大"。justify 把每行拉齐到两端，右端参差归零。 */
.prose {
  margin: 0;
  font-size: 15px;
  line-height: 2;
  color: var(--ink-2);
  letter-spacing: 0.01em;
  white-space: pre-wrap;
  text-align: justify;
  text-justify: inter-ideograph;
}

/* 逐项打分的行，四张卡下面的横滑面板用 */

.detail-row {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  border-bottom: 1px solid var(--line-soft);
}

.detail-row .dt-name { flex: 1; min-width: 0; font-size: 14px; color: var(--ink-2); }

.detail-row .dt-label {
  width: 42px;
  text-align: right;
  font-size: 11px;
  color: var(--faint);
  white-space: nowrap;
}

/* 四格刻度条：比色块更克制，也不需要给家长解释颜色的含义 */
.dt-bars { display: flex; gap: 3px; flex-shrink: 0; }
.dt-bars i { width: 10px; height: 3px; background: var(--line-mid); }
.dt-bars i.on { background: var(--accent); }

.report-mission {
  text-align: center;
  padding: 52px var(--gutter) 8px;
}
.mission-rule {
  width: 30px;
  height: 1px;
  margin: 0 auto 22px;
  background: var(--accent);
}
/* 主次由 -primary/-secondary 决定，字体等语言自身的排版细节由 -cn/-en
   决定 —— 两者正交，换个语言当主句不用重写字号。 */
.mission-primary {
  margin: 0;
  font-size: clamp(10px, 3vw, 12px);
  line-height: 2;
  letter-spacing: 0;
  color: var(--ink-3);
}
.mission-secondary {
  margin: 8px 0 0;
  font-size: clamp(6.8px, 1.9vw, 8px);
  line-height: 1.7;
  letter-spacing: -0.01em;
  color: var(--faint);
}
.mission-en { font-family: Georgia, "Times New Roman", serif; }
/* 中文这句短，两种字号下都排得进一行；英文句子长得多，只有缩成副句时
   才收得住，当主句必须允许折行，否则窄屏上直接溢出。 */
.mission-cn { white-space: nowrap; }
.mission-en.mission-secondary { white-space: nowrap; }
.mission-en.mission-primary { max-width: 30em; margin-inline: auto; }

/* ---------------------------------------------------------- 校长列表页 */

.search-box { padding: 0 var(--gutter); }
.search-box input { font-size: 14px; padding-bottom: 9px; }

.record-list {
  display: grid;
  gap: 12px;
  padding: 16px var(--gutter) 0;
}

.record {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  min-height: 96px;
  text-decoration: none;
  color: inherit;
  padding: 16px;
}

.record .row1,
.record .row2 { display: flex; align-items: center; gap: 8px; }
.record .row2 { margin-top: 8px; }
.record .rname { font-size: 17px; font-weight: 600; letter-spacing: 0.06em; color: var(--ink); }
.record .rage { font-size: 11px; color: var(--faint); }
/* 年龄和结论恒定渲染（PC 版要拿它们对齐列），手机版把空的那格收掉 ——
   否则 flex 的 gap 会在姓名后面留一道无缘无故的空白。 */
.record .rage:empty,
.record .result-chip:empty { display: none; }
.record .rdate { font-size: 11px; color: var(--faint); }

.record .rtag { font-size: 13px; line-height: 1.6; color: var(--accent); margin-top: 7px; }

/* 评估结果跟在日期后面。「通过」上品牌红，另外两档保持中性。 */
.result-chip {
  padding: 1px 8px;
  font-size: 10.5px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}
.result-chip[data-result="pass"] {
  color: var(--accent);
  background: var(--accent-tint);
  border-color: transparent;
}

.record .row3 {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 11px;
  font-size: 10.5px;
  color: var(--faint);
  letter-spacing: 0.04em;
}

.axis-chip {
  padding: 2px 8px;
  border-radius: var(--radius);
  background: var(--accent-tint);
  color: var(--accent);
}

.type-chip {
  padding: 2px 8px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  color: var(--ink-2);
}

/* 状态用小 tag 固定在姓名行右侧。 */
.status-chip {
  margin-left: auto;
  padding: 2px 8px;
  font-size: 10.5px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--ink-4);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}
/* 状态一路排到家长手里。颜色只分三层，不给每个状态各配一色 ——
   校长扫这一列找的是「哪几份还卡着」：要动手的是红的，走完的是深色，
   剩下的（草稿、已完成）留在中性灰里不抢眼。 */
.status-chip[data-state="done"] { color: var(--ink); }
.status-chip[data-state="shared"] {
  color: var(--ink);
  border-color: var(--ink-4);
}
.status-chip[data-state="generating"],
.status-chip[data-state="failed"] { color: var(--accent); }

.empty { text-align: center; color: var(--faint-2); font-size: 13.5px; padding: 60px 20px; }

.list-foot {
  text-align: center;
  padding: 36px 20px;
  font-size: 10.5px;
  color: var(--faint-3);
  letter-spacing: 0.4em;
  text-indent: 0.4em;
}

/* ---------------------------------------------------------------- 登录 */

.login-wrap {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 44px 90px;
}

/* 竖排品牌字：设计稿的开场就是这一竖行字 + 一道红线。
   高度必须装得下最长的机构名（丽娟实验艺术创造中心 10 字 × 约 31px），
   装不下会折成第二列，从右往左读就断了。 */
.login-wrap .brand {
  writing-mode: vertical-rl;
  height: 330px;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.62em;
  text-indent: 0.62em;
  color: var(--ink);
}

.login-wrap .stroke { width: 1px; height: 34px; background: var(--accent); margin: 22px 0 20px; }

.login-wrap .sub {
  font-size: 11px;
  letter-spacing: 0.46em;
  text-indent: 0.46em;
  color: var(--faint);
}

.login-wrap form { width: 100%; margin-top: 74px; }
.login-wrap .field label { font-size: 11px; letter-spacing: 0.2em; margin-bottom: 12px; }
.login-wrap input { font-size: 17px; letter-spacing: 0.42em; padding-bottom: 11px; border-bottom-color: var(--ink); }
.login-wrap .btn { width: 100%; min-height: 50px; margin-top: 44px; }
.login-wrap .foot { text-align: center; font-size: 11.5px; color: var(--faint-2); letter-spacing: 0.06em; margin-top: 20px; }
.login-err { color: var(--accent); font-size: 13px; text-align: center; margin-top: 14px; }

/* ------------------------------------------------------------- 空状态页 */

.notice-wrap {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 40px 90px;
  text-align: center;
}
.notice-wrap .title { font-size: 17px; letter-spacing: 0.16em; text-indent: 0.16em; color: var(--ink); }
.notice-wrap .stroke { width: 26px; height: 1px; background: var(--accent); margin: 20px 0 0; }
.notice-wrap .desc { font-size: 13px; color: var(--faint); margin: 16px 0 28px; letter-spacing: 0.04em; }

/* ------------------------------------------------------------ 生成中页 */

.job-wrap {
  min-height: calc(100dvh - 190px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px var(--gutter) 60px;
}

.job-wrap .job-title {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-indent: 0.1em;
  color: var(--ink);
  margin-top: 32px;
  text-align: center;
}

.job-wrap .job-msg {
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--faint);
  margin-top: 12px;
  text-align: center;
}

.job-steps { width: 100%; margin-top: 52px; }

.job-step {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 44px;
  border-bottom: 1px solid var(--line-soft);
}
.job-step .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--line-strong); flex-shrink: 0; }
.job-step .label { flex: 1; font-size: 13px; color: var(--faint-2); }
.job-step .state { font-size: 11px; color: var(--faint-3); letter-spacing: 0.06em; }

.job-step[data-state="done"] .dot { background: var(--ink); }
.job-step[data-state="done"] .label { color: var(--ink-4); }
.job-step[data-state="done"] .state { color: var(--faint); }

.job-step[data-state="active"] .dot { background: var(--accent); }
.job-step[data-state="active"] .label { color: var(--ink); font-weight: 500; }
.job-step[data-state="active"] .state { color: var(--accent); }

.job-wrap .btn { flex: 0 0 auto; margin-top: 36px; padding: 0 28px; }

/* ---------------------------------------------------------------- 遮罩 */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

.spinner {
  width: 40px; height: 40px;
  border: 1.5px solid var(--line-mid);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 26px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.overlay .msg { font-size: 15px; color: var(--ink); letter-spacing: 0.08em; }
.overlay .sub { font-size: 12.5px; color: var(--faint); margin-top: 10px; line-height: 1.9; }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(96px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  /* 必须高于底部分享面板（250），否则复制成功了也看不到提示。 */
  z-index: 400;
  max-width: 82vw;
  padding: 10px 18px;
  background: rgba(38, 34, 31, 0.92);
  color: #fff;
  font-size: 13.5px;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.toast.show { opacity: 1; }

/* 底部动作面板：选照片来源（相机 / 相册） */

.sheet {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(20, 18, 16, .45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.sheet-panel {
  width: 100%;
  max-width: var(--page);
  background: var(--bg);
  padding: 0 0 env(safe-area-inset-bottom);
}

.sheet-btn {
  display: block;
  width: 100%;
  min-height: 54px;
  font: inherit;
  font-size: 15px;
  letter-spacing: 0.08em;
  color: var(--ink);
  background: var(--bg);
  border: none;
  border-top: 1px solid var(--line);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.sheet-btn:first-child { border-top: none; }
.sheet-btn.danger { color: var(--accent); }
.sheet-btn.cancel { color: var(--faint); border-top: 6px solid var(--canvas); }
.sheet-btn.muted { color: var(--faint); }
.sheet-btn[disabled] { opacity: 0.5; }

.sheet-note {
  padding: 22px var(--gutter) 18px;
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
  color: var(--faint);
}

/* ------------------------------------------------------ 分享海报 */

/* 海报预览层。手机上一竖列：图在上，下面一句「长按保存」和关闭。
   PC 上换成左右两栏（pc.css）。 */
.poster-layer {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(20, 18, 16, .62);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
/* 面板按图的宽度收，图顶着面板的上沿和两边，不留一圈纸色 —— 海报自己
   顶上是一整块藏蓝横幅，上面再压一条纸色边就成了「一条白线」。
   面板和画框都不铺底色：图缩放后宽度带小数、居中时两边各差半个像素，
   底下是纸色就会露出一道细白线；底下是遮罩的深色就什么都看不出来。
   纸色只铺在下面那块说明文字上。 */
.poster-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  width: fit-content;
  max-width: min(420px, 100%);
  max-height: 100%;
  background: transparent;
  padding: 0;
}
/* 海报是 1080 宽的竖图，按可用高度缩着看，别让它把关闭按钮顶出屏幕 */
.poster-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 260px;
  min-height: 240px;
  background: transparent;
}
.poster-stage img {
  display: block;
  max-height: calc(100dvh - 190px);
  max-width: 100%;
  height: auto;
}
/* 出图前占着位置的那句「正在准备」：自带一块纸色底，图一到它就藏起来 */
.poster-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--faint);
  letter-spacing: 0.1em;
  background: var(--canvas);
}
.poster-side {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 12px 14px 14px;
  background: var(--bg);
}
/* 手机上标题省了：屏幕就这么高，图本身已经说明了这是什么 */
.poster-side h2 {
  display: none;
  font-size: 15px;
  letter-spacing: 0.2em;
  text-indent: 0.2em;
  color: var(--ink);
}
.poster-note {
  margin: 0 0 12px;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--ink-3);
}
/* .btn 是 flex:1（横排时两颗按钮均分那一行）。这里是竖排，
   继承过来就会被拉成一整块，把栏填满 —— 必须按住不让它长。 */
.poster-side .btn {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  text-decoration: none;
}

/* 作品大图 —— 点作品图铺满屏幕看细节，报告页唯一的浮层 */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(20, 18, 16, .97);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 20px 16px calc(28px + env(safe-area-inset-bottom));
  overflow-y: auto;
}
.lightbox img { max-width: 100%; max-height: 80vh; object-fit: contain; }
.lightbox .close {
  flex: 0 0 auto;
  padding: 10px 26px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, .4);
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 14px;
  letter-spacing: 0.08em;
  cursor: pointer;
}

/* ---------------------------------------------------------------- 桌面 */

@media (min-width: 640px) {
  body { padding: 0; }
  .shell { box-shadow: 0 24px 60px rgba(70, 55, 45, .10); }
  /* 底栏跟着那条纸走。width:100% + right:auto 是必须的 —— 只写 left:50% 时
     宽度会由 right:0 算出来（视口 640-840px 之间会算成不足 420），跟纸对不齐。 */
  .bottom-bar {
    left: 50%;
    right: auto;
    width: 100%;
    max-width: var(--page);
    transform: translateX(-50%);
  }
}

/* ================================================================
   时段选择 / 列表筛选 / 报告编辑 / 长图导出
   ================================================================ */

/* -------------------------------------------------- 上午·下午 二选一 */

/* 和旁边的日期、校区一样是下划线式的填空，不是一对按钮 —— 这一页上
   所有输入控件都只有一条底线，多一个描边方块会立刻跳出来。 */
.seg { display: flex; gap: 18px; }

.seg button {
  flex: 1;
  min-height: 33px;
  padding: 0 0 8px;
  font: inherit;
  font-size: 16px;
  letter-spacing: 0.04em;
  text-align: left;
  color: var(--faint-2);
  background: none;
  border: none;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.seg button[aria-pressed="true"] {
  color: var(--accent);
  font-weight: 600;
  border-bottom-color: var(--accent);
}

/* ---------------------------------------------------------- 编辑态 */

.edit-only { display: none !important; }
body.editing .edit-only { display: block !important; }
body.editing .view-only { display: none; }
body.editing #edit-bar { display: block; }

/* 这里刻意不写 display —— `textarea.editable`（0,1,1）会盖过 `.edit-only`
   （0,1,0），编辑框就会在阅读态常驻。显隐一律交给下面 .edit-only 那组规则。 */
textarea.editable {
  width: 100%;
  font: inherit;
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-2);
  background: #fffdf4;
  border: 1px dashed #d8c89c;
  border-radius: var(--radius);
  padding: 8px 10px;
  resize: vertical;
  overflow: hidden;
}
textarea.editable:focus { outline: none; border-color: var(--accent); background: #fff; }

/* 编辑时底栏浮起来，给内容留出不被挡住的空间 */
body.editing .page { padding-bottom: 104px; }

#edit-bar .inner { display: flex; gap: 10px; }
#edit-bar .btn { flex: 1; }


/* ================================================================
   筛选面板 / 改版 / 分享 / 四类上传 / 分段点评
   ================================================================ */

/* -------------------------------------------------------- 筛选面板 */

/* 校区 / 工作室 / 日期 / 时段固定成四等分，同屏完整展示，不横滑。
   用 flex 兼容微信里较旧的 WebView；每项 width:0 防止长选项撑破一行。 */
.filter-bar {
  display: flex;
  gap: 6px;
  width: 100%;
  padding: 12px var(--gutter) 7px;
  overflow: hidden;
}

.filter-field {
  display: block;
  flex: 1 1 0;
  width: 0;
  min-width: 0;
  padding-right: 6px;
  border-right: 1px solid var(--line-soft);
}
.filter-field:last-child { padding-right: 0; border-right: none; }

.filter-field > span {
  display: block;
  margin-bottom: 5px;
  font-size: 9.5px;
  line-height: 1.2;
  letter-spacing: 0.08em;
  color: var(--faint);
}

.filter-field select {
  min-width: 0;
  height: 28px;
  padding: 0 12px 5px 0;
  font-size: 11.5px;
  line-height: 1.3;
  letter-spacing: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background-position: right 3px center, right 0 center;
}

.filter-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  font: inherit;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--ink-2);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.filter-btn.on { color: var(--accent); border-color: var(--accent); }

.filter-count {
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  font-size: 11px;
  line-height: 17px;
  text-align: center;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
}

.filter-summary {
  font-size: 12px;
  color: var(--faint);
  letter-spacing: 0.04em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-panel {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(20, 18, 16, 0.4);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.fp-inner {
  width: 100%;
  max-width: var(--page);
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border-radius: 10px 10px 0 0;
  animation: fp-up .22s ease-out;
}
@keyframes fp-up { from { transform: translateY(14px); opacity: .6; } }

.fp-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 18px var(--gutter) 12px;
  border-bottom: 1px solid var(--line);
}
.fp-title { font-size: 15px; font-weight: 600; letter-spacing: 0.12em; }
.fp-close {
  font: inherit; font-size: 13px; color: var(--faint);
  background: none; border: none; cursor: pointer;
}

.fp-body { flex: 1; overflow-y: auto; padding: 4px var(--gutter) 18px; }

.fp-group { padding-top: 18px; }
.fp-label {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--faint);
  margin-bottom: 10px;
}
.fp-chips { display: flex; flex-wrap: wrap; gap: 8px; }

.fp-chip {
  padding: 7px 14px;
  font: inherit;
  font-size: 13px;
  color: var(--ink-3);
  background: var(--tint);
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.fp-chip.on {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

/* 日期这一组是下拉，不是 chip —— 日期会越攒越多，铺成 chip 撑到划不到底 */
.fp-select { font-size: 15px; padding-bottom: 10px; }

.fp-foot {
  display: flex;
  gap: 10px;
  padding: 12px var(--gutter) calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}
.fp-foot .btn { flex: 1; }

body.no-scroll { overflow: hidden; }

/* ------------------------------------------------------------ 改版 */

/* 填写页顶部那条「正在更新 XX 的观察报告」 */
.rev-note {
  margin: 12px var(--gutter) 0;
  padding: 11px 13px;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--ink-3);
  background: var(--tint);
  border-left: 2px solid var(--accent);
}
.rev-note b { color: var(--accent); font-weight: 600; }

/* 「删除这份草稿」。跟在提示文字后面另起一行，不做成按钮块 ——
   它是这一页上唯一一个删东西的动作，不该长得比「保存草稿」还显眼。 */
.rev-note-action {
  display: block;
  margin-top: 8px;
  padding: 0;
  font: inherit;
  font-size: 12.5px;
  color: var(--accent);
  background: none;
  border: none;
  border-bottom: 1px solid currentColor;
  width: fit-content;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.rev-chip {
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  color: var(--ink-3);
  background: #efeae1;
}

/* 细墨线把每份报告收成一张纸卡；更新入口在状态正下方且始终留在卡片内。 */
.record-wrap {
  display: block;
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
}

.record-actions {
  position: absolute;
  top: 53px;
  right: 16px;
  z-index: 1;
}
.record-action {
  display: inline-block;
  font-size: 11.5px;
  line-height: 1.5;
  letter-spacing: 0.06em;
  color: var(--accent);
  text-decoration: none;
  padding: 2px 1px;
  border-bottom: 1px solid rgba(175, 58, 43, 0.35);
  background: #fff;
}

/* ---------------------------------------------------------- 分享 */

/* .sheet-panel 本身没有左右内边距，标题和说明自己补边距。 */
.sheet-title {
  padding: 20px var(--gutter) 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-align: center;
}
.sheet-title + .sheet-note { padding-top: 10px; }

.sheet-btn.primary { color: var(--accent); font-weight: 600; }
.share-browser-note {
  margin: 0 var(--gutter) 18px;
  padding: 12px 14px;
  background: var(--tint);
  border-left: 2px solid var(--accent);
}

/* 微信内分享：普通网页无法直接弹出好友列表，进入免登录家长页后引导右上角转发。 */
.wechat-share-guide {
  position: fixed;
  inset: 0;
  z-index: 360;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: max(72px, calc(env(safe-area-inset-top) + 56px)) var(--gutter) 24px;
  background: rgba(24, 21, 19, 0.76);
}
.wechat-share-arrow {
  position: absolute;
  top: max(12px, env(safe-area-inset-top));
  right: 24px;
  font-family: Georgia, serif;
  font-size: 42px;
  line-height: 1;
  color: #fff;
  transform: rotate(-8deg);
}
.wechat-share-card {
  width: min(330px, 100%);
  padding: 28px 24px 14px;
  text-align: center;
  background: #fff;
  border-top: 2px solid var(--ink);
}
.wechat-share-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.12em;
}
.wechat-share-copy {
  padding: 14px 0 22px;
  font-size: 14px;
  line-height: 2;
  color: var(--ink-3);
}
.wechat-guide-btn {
  display: block;
  width: 100%;
  min-height: 48px;
  font: inherit;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--faint);
  background: #fff;
  border: none;
  border-top: 1px solid var(--line);
}
.wechat-guide-btn.primary { color: var(--accent); font-weight: 600; }

/* 卡片没配上时才出现的那一句。压得比正文轻：它是退路的说明，
   不该抢在「点右上角」前面。 */
.wechat-share-note {
  margin: -8px 0 18px;
  font-size: 12px;
  line-height: 1.8;
  color: var(--faint);
}

/* 复制不成时露出来的那行地址，给老师长按选中用 */
.wechat-share-url {
  margin: 0 0 16px;
  padding: 10px 12px;
  background: var(--tint);
  border: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-3);
  word-break: break-all;
  user-select: all;
  -webkit-user-select: all;
}

/* 家长端顶栏：没有任何操作入口，只留机构 Logo */
.share-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(16px, env(safe-area-inset-top)) var(--gutter) 14px;
  border-bottom: 1px solid var(--line);
}
.share-top img {
  display: block;
  width: 136px;
  height: auto;
}
.lang-switch {
  min-width: 36px;
  padding: 4px 7px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-align: center;
  color: var(--ink-3);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}
.brandline {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  color: var(--faint);
}
/* 家长端的收尾操作跟着正文自然流动，不吸底、不挡阅读。 */
.share-end-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 20px var(--gutter) calc(36px + env(safe-area-inset-bottom));
}
/* 老师页三颗一排：评估结果 / 分享链接 / 分享海报。2×2 会让第三颗孤零零
   落在第二行，看着像漏了一颗。 */
.share-end-actions.three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.share-end-actions.three .share-end-btn { padding: 8px 4px; }
html[lang="en"] .report-head .name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(18px, 5vw, 21px);
  letter-spacing: 0.01em;
  white-space: normal;
}
html[lang="en"] .radar .vx-name { font-size: 12px; }
html[lang="en"] .radar .vx-level { font-size: 9px; }
html[lang="en"] .axis-panel-head h2 {
  font-size: 15px;
  letter-spacing: 0.015em;
}
html[lang="en"] .detail-row {
  min-height: 48px;
  height: auto;
  padding: 5px 0;
}
html[lang="en"] .detail-row .dt-name {
  font-size: 12.5px;
  line-height: 1.35;
}
/* 「Meeting Expectations」是最长的档位词，一行放不下就折成两行；
   nowrap 会让它压到右边的刻度条上。 */
html[lang="en"] .detail-row .dt-label {
  width: 72px;
  font-size: 9px;
  line-height: 1.25;
  white-space: normal;
}
html[lang="en"] .prose {
  text-align: left;
  text-justify: auto;
  letter-spacing: 0;
  line-height: 1.75;
}
html[lang="en"] .sec .name {
  letter-spacing: 0.06em;
  text-indent: 0;
}

.share-end-btn {
  display: flex;
  min-width: 0;
  min-height: 58px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 8px 10px;
  font: inherit;
  color: var(--ink-2);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.share-end-btn.primary {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}
.share-end-btn span {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-indent: 0.14em;
}
.share-end-btn small {
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.08em;
  color: var(--faint);
}
.share-end-btn.primary small { color: rgba(255, 255, 255, 0.7); }

/* ------------------------------------------------------ 照片画框 */

/* 照片占一个固定的画框，横着翻，下面不挂文字。 */
.photo-story { padding-top: 42px; }

.photo-frame { position: relative; }

.frame-track {
  display: flex;
  overflow-x: auto;
  overscroll-behavior-x: contain;   /* 滑到头别把整页往横里带 */
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.frame-track::-webkit-scrollbar { display: none; }

/* 图整幅装进去不裁 —— 老师拍横拍竖是随手的，而这些照片是报告的证据，
   裁掉半件作品比留一条衬纸糟得多。装不满的地方留纸色，当画框的衬纸。
   --frame 由 report.js 按第一张照片的比例给（夹在 3:4 和 4:3 之间），
   图还没加载出来时先按 4:3 占位，页面不跳。 */
.frame-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;         /* 一次一张，不让一个快滑连翻三张 */
  aspect-ratio: var(--frame, 4 / 3);
  background: var(--tint);
  overflow: hidden;
}
.frame-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 页码常驻。家长得先知道右边还有，才会想到去滑；只剩一张时不出现 ——
   一个「1/1」除了告诉他没别的可看之外不说明任何事。 */
.frame-count {
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(28, 26, 25, 0.5);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
.frame-count b { font-weight: 600; }

/* 圆点压在画框里侧下沿：放到画框外面要再吃 20px 高，
   而它下面紧接着就是这张照片的解读。 */
.frame-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.frame-dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 0 0.5px rgba(28, 26, 25, 0.18);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: width 0.18s ease, background 0.18s ease;
}
.frame-dot.on { width: 16px; background: #fff; }

/* 只有一张时画框还在（版面位置不该因为照片数量变来变去），页码和圆点省掉 */
.photo-frame.single .frame-track { scroll-snap-type: none; }



/* ================================================================
   以下是主题反馈自己加的：门户、报告上的分数、主题行、课程介绍、回门户的 tab
   ================================================================ */

/* ---------------------------------------------------------------- 门户 */

/* 登录后的第一页：logo + 城市 + 两张卡片。卡片是这一页唯一的东西，
   排版语言和报告页一致（发丝线、序号、砖红），不做圆角面板。 */
.portal-wrap {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 0 var(--gutter) calc(28px + env(safe-area-inset-bottom));
}
.portal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0 0;
}
.portal-logo { height: 30px; width: auto; }
.portal-meta { display: flex; align-items: center; gap: 14px; font-size: 12px; color: var(--faint); }
.portal-meta .tab-city { font-size: 12px; letter-spacing: 0.06em; }

.portal-title { padding: 64px 0 26px; }
.portal-title h1 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--ink);
}
.portal-title p {
  margin: 8px 0 0;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--faint);
}

.portal-cards { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.portal-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px 2px 24px 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.portal-card:active { background: var(--tint); }
.portal-card-idx {
  flex-shrink: 0;
  padding-top: 4px;
  font-family: Georgia, serif;
  font-size: 12px;
  color: var(--accent);
}
.portal-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.portal-card-name {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--ink);
}
.portal-card-desc {
  margin-top: 4px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}
.portal-card-hint {
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--faint);
}
.portal-card-arrow {
  flex-shrink: 0;
  padding-top: 2px;
  font-size: 18px;
  color: var(--faint-2);
}
.portal-foot {
  margin-top: auto;
  padding-top: 48px;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  color: var(--faint-2);
}

/* 顶栏最左边那个回门户的「⌂」：和 tab 同一行，但不是一个 tab */
.tab-home {
  font-size: 18px;
  letter-spacing: 0;
  padding-bottom: 10px;
  color: var(--faint-2);
}

/* --------------------------------------------------------- 报告：分数与主题 */

/* 标题下面那行主题：这份反馈是对哪个大主题说的 */
.report-theme {
  margin-top: 12px;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--ink-2);
}

/* 雷达图上方的综合分。分数在这份报告里是明摆着的（在读学员要看几个主题之间的变化），
   但仍只用一个数、一种颜色 —— 不做仪表盘。 */
.score-line {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  padding: 26px 0 0;
}
.score-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--faint);
}
.score-value b {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 40px;
  font-weight: 500;
  line-height: 1;
  color: var(--accent);
}
.score-value small {
  margin-left: 3px;
  font-size: 12px;
  color: var(--faint);
}

/* 每一块小维度标题右侧：轴的分数（数字）+ 档位（词）。数字用衬线，和综合分同一副面孔 */
.axis-points {
  flex-shrink: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1;
  color: var(--ink-2);
}

/* 列表上主题那颗 chip：和探校的结果 chip 同一个壳，但永远是中性的 */
.theme-chip { max-width: 46vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* -------------------------------------------------------- 报告：课程介绍 */

.course-intro { padding: 0 var(--gutter); }
.course-intro .sec { padding-left: 0; padding-right: 0; }
.course-lead { margin-top: 18px; color: var(--ink-2); }
.course-part { margin-top: 22px; }
.course-part-title {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--ink);
  padding-left: 10px;
  border-left: 2px solid var(--accent);
  line-height: 1.5;
}
.course-part .prose { margin-top: 8px; }
.course-how {
  margin: 26px 0 0;
  padding: 14px 16px;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--ink-3);
  background: var(--tint);
  border-left: 2px solid var(--line-strong);
}
html[lang="en"] .course-part-title { letter-spacing: 0.02em; }
