/* 「同行」网页版 - Apple 风设计系统
   字体 SF Pro Display 巨字号 · 极简留白 · 玻璃导航 · 0-8 圆角 · 单色橙
*/

:root {
  /* === Apple 色彩 === */
  --color-primary: #FE6C17;
  --color-primary-dark: #D85A0B;
  --color-primary-soft: rgba(254, 108, 23, 0.08);

  /* Apple 灰阶 */
  --color-text: #1d1d1f;          /* 苹果官方黑 */
  --color-text-soft: #6e6e73;     /* 苹果次级字 */
  --color-text-mute: #86868b;     /* 苹果三级字 */
  --color-bg: #ffffff;
  --color-bg-soft: #fbfbfd;       /* 苹果分区灰 */
  --color-bg-card: #ffffff;
  --color-border: rgba(0, 0, 0, 0.08);
  --color-border-strong: rgba(0, 0, 0, 0.16);

  --color-blue: #0071e3;          /* Apple 蓝(按钮/链接) */
  --color-success: #00875a;
  --color-warn: #ff9500;
  --color-danger: #ff3b30;

  /* === 字体 === */
  --font-family: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont,
                 "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;

  /* === 间距(更大) === */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-8: 48px;
  --space-10: 64px;
  --space-12: 96px;
  --space-16: 128px;
  --space-20: 160px;

  /* === 圆角(更小) === */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 18px;
  --radius-pill: 980px;          /* Apple pill 按钮 */

  /* === 阴影(更轻) === */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);

  /* === 字号(Apple Display 风格) === */
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 17px;       /* Apple 正文 */
  --text-lg: 21px;         /* Apple 副标 */
  --text-xl: 28px;
  --text-2xl: 32px;
  --text-3xl: 40px;
  --text-4xl: 48px;
  --text-5xl: 64px;
  --text-6xl: 80px;        /* Apple hero 副标 */
  --text-7xl: 96px;        /* Apple hero 主标 */
  --text-8xl: 128px;       /* Apple iPhone 15 Pro 主标 */
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-family);
  font-size: var(--text-base);
  line-height: 1.47;       /* Apple 行高 1.47059 */
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.022em;  /* Apple 负字距 */
}

a { color: var(--color-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; }

::selection { background: rgba(254, 108, 23, 0.25); }

/* ============== 通用容器(Apple 大留白) ============== */
.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 var(--space-5);
}
@media (min-width: 1068px) {
  .container { max-width: 1024px; }
}
@media (min-width: 1441px) {
  .container { max-width: 1440px; }
}

/* ============== 导航(Apple 玻璃顶栏) ============== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 52px;
  background: rgba(var(--nav-tint, 250, 250, 252), .84);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, .09);
}

/* 全站导航按板块换色 —— 每块内容像有自己的房间。
   全部取极淡色相(<4% 饱和),保持 Apple 克制感;思维花园最浓,因为它确实是另一个空间。 */
body[data-section="learn"]   { --nav-tint: 242, 246, 251; }  /* 学 ADHD · 淡蓝 */
body[data-section="figures"] { --nav-tint: 246, 244, 251; }  /* ADHD 名人 · 淡紫 */
body[data-section="garden"]  { --nav-tint: 245, 237, 224; }  /* 思维花园 · 暖米 */
body[data-section="tools"]   { --nav-tint: 246, 234, 218; }  /* 工具箱 · 牛皮纸 */
body[data-section="test"]    { --nav-tint: 241, 248, 247; }  /* 自测 · 淡青 */
body[data-section="mission"] { --nav-tint: 243, 248, 241; }  /* 训练 · 淡绿 */
body[data-section="chat"]    { --nav-tint: 244, 245, 250; }  /* AI 倾听 · 蓝紫 */
body[data-section="diary"]   { --nav-tint: 251, 244, 243; }  /* 情绪日记 · 淡粉 */
body[data-section="forum"]   { --nav-tint: 251, 247, 239; }  /* 论坛 · 淡暖黄 */
body[data-section="medals"]  { --nav-tint: 251, 245, 231; }  /* 勋章 · 淡金 */
body[data-section="profile"] { --nav-tint: 246, 246, 248; }  /* 我的 · 中性 */
@media (max-width: 833px) {
  .nav { height: 56px; }
}
.nav__inner {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 var(--space-5);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-sm);
}
/* ── 品牌区 ──────────────────────────────────────────
   logo 必须一眼看出是「站点身份」而不是导航里的一项:
   ① 图形 22→30px,文字 17→19px 且加粗到 700
   ② 右侧留发丝分隔线 + 20px 内边距,和菜单物理隔开
   ③ flex-shrink:0 —— 菜单再挤也不许把 logo 压扁 */
.nav__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.022em;
  flex-shrink: 0;
  padding-right: 20px;
  margin-right: 4px;
  border-right: 1px solid rgba(0, 0, 0, .11);
}
.nav__logo:hover { text-decoration: none; }
.nav__logo-mark {
  display: inline-block;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 8px;
}
/* 菜单间距 32→22:logo 长大后要把宽度让出来,否则第一项会被顶到 logo 上 */
.nav__menu {
  display: flex;
  gap: 22px;
  align-items: center;
  flex: 1;
  justify-content: center;
  padding-left: 8px;
}
.nav__menu a {
  color: var(--color-text);
  font-size: var(--text-sm);
  opacity: 0.85;
  font-weight: 400;
  letter-spacing: -0.016em;
  /* 触控友好:桌面端也保证 ≥ 36px 高(移动端在下方 media 里提到 44px) */
  padding: 10px 2px;
  display: inline-flex;
  align-items: center;
  transition: opacity 0.2s ease;
}
.nav__menu a:hover {
  opacity: 1;
  text-decoration: none;
}
.nav__menu a.active {
  opacity: 1;
  border-bottom: 1px solid var(--color-text);
}
.nav__right {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  flex-shrink: 0;
  min-width: 90px;
  justify-content: flex-end;
}
@media (max-width: 833px) {
  .nav__menu {
    overflow-x: auto;
    scrollbar-width: none;
    justify-content: flex-start;
    gap: var(--space-2);
    padding-left: 0;
  }
  .nav__menu::-webkit-scrollbar { display: none; }
  .nav__menu a {
    font-size: var(--text-xs);
    white-space: nowrap;
    /* 触摸目标 ≥ 44px */
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
  }
}
/* 移动端极小屏(<500px)用图标代替文字
   图标来自 icons.js 的统一图标集,用 CSS mask 渲染 —— 这样能跟随 currentColor,
   active 时自然变品牌橙,不像 emoji 那样写死颜色。 */
@media (max-width: 500px) {
  .nav__menu a {
    font-size: 18px;
    padding: 0 10px;
    min-height: 44px;
  }
  .nav__menu a span.text,
  .nav__menu a { color: transparent; position: relative; }
  .nav__menu a[data-icon]::before {
    content: '';
    position: absolute;
    left: 50%; top: 50%;
    width: 21px; height: 21px;
    transform: translate(-50%, -50%);
    background-color: var(--color-text);
    -webkit-mask: var(--ic) center / contain no-repeat;
    mask: var(--ic) center / contain no-repeat;
  }
  .nav__menu a.active[data-icon]::before {
    background-color: var(--color-primary);
  }
}

/* ============== 统一图标(icons.js) ============== */
.ic {
  display: inline-block;
  vertical-align: -0.14em;
  flex-shrink: 0;
  overflow: visible;
}
/* tile 版:品牌橙圆角底 + 白描边图形,尺寸与视觉重量随字号走 */
.ic--tile {
  width: 1em;
  height: 1em;
  overflow: visible;
}
/* 首页功能卡:48px 方块,替代原来的 48px emoji */
.ic--lg {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
}
/* tile 版要撑满外层盒子 —— .ic--tile 默认 1em(约 17px),
   不加这条,48px 的格子里只会画出一个 17px 的小方块。 */
.ic--lg > .ic--tile {
  width: 100%;
  height: 100%;
  display: block;
}
/* 行内小图标(评论数/点赞数):跟随文字颜色与字号 */
.ic--xs { font-size: 14px; }
.ic--sm { font-size: 17px; }
.ic--md { font-size: 22px; }
/* 图标 + 文字并排时的间距 */
.ic-row {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
/* 星级行:固定字号 + 均等间距,不受容器行高影响 */
.star-row .ic {
  width: 1.05em;
  height: 1.05em;
}

/* ============== Hero(Apple 通栏巨字) ============== */
.hero {
  text-align: center;
  padding: var(--space-16) var(--space-4) var(--space-10);
  background: linear-gradient(180deg, #fff5ec 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(254, 108, 23, 0.12) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.hero__inner { position: relative; z-index: 1; }
.hero__eyebrow {
  font-size: var(--text-base);
  color: var(--color-primary);
  font-weight: 500;
  margin-bottom: var(--space-3);
  letter-spacing: 0;
}
.hero__title {
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--color-text);
  margin: 0 0 var(--space-3);
}
.hero__title .accent {
  background: linear-gradient(135deg, #FE6C17, #FF8A3D);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__subtitle {
  font-size: clamp(20px, 2.5vw, 28px);
  line-height: 1.25;
  font-weight: 400;
  color: var(--color-text-soft);
  margin: 0 auto var(--space-6);
  max-width: 720px;
  letter-spacing: -0.018em;
}
/* 副标题按语义片段整体换行: 避免中文在词中间断开出现孤字 (v31) */
.hero__subtitle .u-nowrap {
  white-space: nowrap;
}
.hero__actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-6);
}

/* ============== 按钮(Apple 蓝 + 文字链) ============== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  font-size: var(--text-base);
  font-weight: 400;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  letter-spacing: -0.016em;
  line-height: 1.18;
}
.btn--primary {
  background: var(--color-primary);
  color: white;
}
.btn--primary:hover {
  background: var(--color-primary-dark);
  text-decoration: none;
}
.btn--blue {
  background: var(--color-blue);
  color: white;
}
.btn--blue:hover {
  background: #0077ED;
  text-decoration: none;
}
.btn--ghost {
  background: transparent;
  color: var(--color-blue);
  border: 1px solid var(--color-blue);
}
.btn--ghost:hover {
  background: var(--color-blue);
  color: white;
  text-decoration: none;
}
.btn--text {
  background: transparent;
  color: var(--color-blue);
  padding: 11px 16px;
}
.btn--text:hover { text-decoration: underline; }
.btn--block { display: flex; width: 100%; }
.btn--lg {
  padding: 14px 28px;
  font-size: var(--text-lg);
}
.btn--sm {
  padding: 6px 14px;
  font-size: var(--text-sm);
}

/* ============== 区段标题(Apple section 风格) ============== */
.section { padding: var(--space-12) 0; }
.section--alt { background: var(--color-bg-soft); }
.section__eyebrow {
  font-size: var(--text-sm);
  color: var(--color-primary);
  font-weight: 500;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-3);
}
.section__title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-align: center;
  margin: 0 0 var(--space-3);
  color: var(--color-text);
}
.section__subtitle {
  font-size: clamp(18px, 2vw, 21px);
  text-align: center;
  color: var(--color-text-soft);
  margin: 0 auto var(--space-10);
  max-width: 720px;
  line-height: 1.38;
  letter-spacing: -0.018em;
}

/* ============== 卡片(Apple 极简白卡) ============== */
.card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-4);
}
.card--flat {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  box-shadow: none;
}
.card--feature {
  text-align: left;
  transition: transform 0.3s;
}
.card--feature:hover { transform: translateY(-4px); }
.card__title {
  font-size: var(--text-xl);
  font-weight: 600;
  margin: 0 0 var(--space-3);
  letter-spacing: -0.022em;
  line-height: 1.2;
}
.card__desc {
  color: var(--color-text-soft);
  font-size: var(--text-base);
  line-height: 1.5;
  margin: 0 0 var(--space-3);
}

/* ============== 网格(Apple 大间距) ============== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-5);
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 833px) {
  .grid--3, .grid--4 { grid-template-columns: 1fr; }
}
@media (max-width: 1068px) and (min-width: 834px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

/* ============== 文章卡片(Apple 极简) ============== */
.article-card {
  display: block;
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  border: 1px solid var(--color-border);
  transition: all 0.3s;
  text-decoration: none;
  color: inherit;
}
.article-card:hover {
  text-decoration: none;
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.article-card__category {
  display: inline-block;
  padding: 3px 10px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: 500;
  margin-bottom: var(--space-3);
  letter-spacing: 0.01em;
}
.article-card__title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 var(--space-2);
  line-height: 1.3;
  letter-spacing: -0.018em;
}
.article-card__excerpt {
  color: var(--color-text-soft);
  font-size: var(--text-sm);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============== 文章详情(Apple 长文阅读) ============== */
.article-detail {
  max-width: 720px;
  margin: var(--space-10) auto;
  padding: 0 var(--space-5);
}
.article-detail h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  margin: 0 0 var(--space-4);
  line-height: 1.08;
  letter-spacing: -0.035em;
}
.article-detail h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  margin: var(--space-10) 0 var(--space-4);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
  letter-spacing: -0.022em;
  line-height: 1.2;
}
.article-detail h3 {
  font-size: var(--text-xl);
  font-weight: 600;
  margin: var(--space-6) 0 var(--space-3);
  letter-spacing: -0.018em;
}
.article-detail p {
  font-size: var(--text-lg);
  line-height: 1.6;
  margin: 0 0 var(--space-4);
  color: var(--color-text);
}
.article-detail ul, .article-detail ol {
  padding-left: 1.5em;
  font-size: var(--text-lg);
  line-height: 1.6;
  margin: 0 0 var(--space-4);
}
.article-detail li { margin-bottom: var(--space-2); }
.article-detail blockquote {
  margin: var(--space-6) 0;
  padding: var(--space-4) var(--space-5);
  border-left: 3px solid var(--color-primary);
  background: var(--color-primary-soft);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--color-text);
}
.article-detail code {
  background: var(--color-bg-soft);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-family: "SF Mono", Consolas, Monaco, monospace;
  font-size: 0.9em;
}

/* ============== 表单(Apple 风格) ============== */
.form {
  max-width: 400px;
  margin: 0 auto;
  padding: var(--space-8) var(--space-4);
}
.form__group { margin-bottom: var(--space-5); }
.form__label {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-text-soft);
  margin-bottom: var(--space-2);
  font-weight: 500;
}
.form__input, .form__textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  font-family: inherit;
  background: white;
  transition: border 0.2s;
  -webkit-appearance: none;
}
.form__input:focus, .form__textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(254, 108, 23, 0.1);
}
.form__textarea { min-height: 120px; resize: vertical; }
.form__hint { font-size: var(--text-xs); color: var(--color-text-mute); margin-top: 6px; }
.form__error { font-size: var(--text-sm); color: var(--color-danger); margin-top: 6px; }

/* ============== 提示卡 ============== */
.alert {
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  margin-bottom: var(--space-5);
  line-height: 1.5;
}
.alert--info { background: #e3f2fd; color: #0d47a1; }
.alert--warn { background: #fff4e5; color: #b45309; }
.alert--success { background: #e8f5e9; color: #1b5e20; }
.alert--danger { background: #ffebee; color: #b71c1c; }

/* ============== 聊天(Apple 极简) ============== */
.chat {
  max-width: 800px;
  margin: var(--space-8) auto;
  padding: 0 var(--space-4);
}
.chat__messages {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
  min-height: 60vh;
}
.chat-bubble {
  max-width: 80%;
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-xl);
  line-height: 1.5;
  word-break: break-word;
  white-space: pre-wrap;
  font-size: var(--text-base);
  letter-spacing: -0.016em;
}
.chat-bubble--user {
  background: var(--color-primary);
  color: white;
  margin-left: auto;
  border-bottom-right-radius: 6px;
}
.chat-bubble--ai {
  background: var(--color-bg-soft);
  color: var(--color-text);
  border-bottom-left-radius: 6px;
  border: 1px solid var(--color-border);
}
.chat-bubble--ai.thinking { opacity: 0.6; }
.chat__input {
  position: sticky;
  bottom: var(--space-4);
  display: flex;
  gap: var(--space-3);
  padding: var(--space-4);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}
.chat__input textarea {
  flex: 1;
  border: none;
  font-size: var(--text-base);
  font-family: inherit;
  resize: none;
  max-height: 100px;
  padding: var(--space-2);
  background: transparent;
}
.chat__input textarea:focus { outline: none; }

/* ============== 训练关卡(保留鲜艳感) ============== */
#mosq-arena {
  position: relative;
  height: 60vh;
  min-height: 360px;
  background: linear-gradient(180deg, #E3F2FD 0%, #BBDEFB 100%);
  border-radius: var(--radius-xl);
  margin-top: var(--space-5);
  overflow: hidden;
  touch-action: manipulation;
  user-select: none;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 833px) {
  #mosq-arena { height: 50vh; min-height: 320px; }
}
.schulte-cell {
  aspect-ratio: 1;
  font-size: clamp(28px, 6vw, 40px);
  font-weight: 600;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.15s;
  color: var(--color-text);
  font-family: var(--font-family);
}
.schulte-cell:hover { background: var(--color-bg-soft); }
.mem-card {
  aspect-ratio: 1;
  font-size: clamp(28px, 6vw, 40px);
  background: linear-gradient(135deg, var(--color-primary), #FF8A3D);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  color: white;
  font-family: var(--font-family);
  font-weight: 500;
}
.diff-cell {
  aspect-ratio: 1;
  border: 3px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.15s;
}
.diff-cell:hover { border-color: var(--color-border-strong); }

/* ============== 用户菜单(Apple 浮层) ============== */
.user-menu {
  position: absolute;
  right: 0; top: calc(100% + 8px);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  min-width: 180px;
  border: 1px solid var(--color-border);
}
.user-menu a {
  display: block;
  padding: 10px 16px;
  color: var(--color-text);
  font-size: var(--text-sm);
}
.user-menu a:hover {
  background: var(--color-bg-soft);
  text-decoration: none;
}
.user-menu a.danger { color: var(--color-danger); }

/* ============== Toast ============== */
.toast-container {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  pointer-events: none;
}
.toast {
  padding: var(--space-3) var(--space-5);
  background: rgba(29, 29, 31, 0.92);
  color: white;
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  backdrop-filter: blur(20px);
  animation: toast-in 0.3s;
  letter-spacing: -0.016em;
}
.toast--success { background: rgba(0, 135, 90, 0.95); }
.toast--error { background: rgba(255, 59, 48, 0.95); }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============== 底部(Apple 极简) ============== */
.footer {
  background: var(--color-bg-soft);
  border-top: 1px solid var(--color-border);
  padding: var(--space-10) 0 var(--space-6);
  margin-top: var(--space-16);
  color: var(--color-text-soft);
  font-size: var(--text-sm);
}
.footer__inner {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 var(--space-5);
}
.footer p { margin: var(--space-2) 0; }
.footer__links { display: flex; gap: var(--space-5); flex-wrap: wrap; }
.footer__links a { color: var(--color-text-soft); }
/* ICP 备案号:工信部要求页面底部展示备案号并跳转 beian.miit.gov.cn */
.footer__beian { margin-top: var(--space-6); font-size: var(--text-sm); color: var(--color-text-soft); }
.footer__beian a {
  display: inline-block;
  padding: 4px 0;
  color: var(--color-text-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border-strong);
}
.footer__beian a:hover { color: var(--color-primary); border-bottom-color: var(--color-primary); }
@media (max-width: 833px) {
  .footer__links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 8px 4px;
  }
}
.footer__disclaimer {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  margin: var(--space-6) 0;
  font-size: var(--text-sm);
  color: var(--color-text-soft);
  line-height: 1.5;
}

/* ============== 勋章墙(Apple 极简大图标) ============== */
.medal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--space-5);
}
.medal {
  text-align: center;
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background: var(--color-bg-soft);
  transition: all 0.3s;
}
.medal--locked { opacity: 0.35; filter: grayscale(0.6); }
.medal__icon {
  font-size: 64px;
  line-height: 1;
  margin-bottom: var(--space-3);
}
.medal__name {
  font-size: var(--text-base);
  font-weight: 600;
  margin: 0 0 4px;
  letter-spacing: -0.016em;
}
.medal__desc {
  font-size: var(--text-xs);
  color: var(--color-text-soft);
  margin: 0;
  line-height: 1.4;
}

/* ============== Loading ============== */
.loading {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============== 工具 ============== */
.text-mute { color: var(--color-text-mute); }
.text-soft { color: var(--color-text-soft); }
.text-primary { color: var(--color-primary); }
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }

/* ============== Apple scroll fade-in 动效 ============== */
/* 安全网:.fade-up 默认可见,只有 JS 主动加 .not-ready 才隐藏。
   这样即使 IntersectionObserver 失效,内容也永远不会永久消失。 */
.fade-up {
  opacity: 1;
  transform: none;
}
.fade-up.not-ready {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.28, 0.11, 0.32, 1),
              transform 0.6s cubic-bezier(0.28, 0.11, 0.32, 1);
}
.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* 打印/截图场景:强制全部可见 */
@media print {
  .fade-up, .fade-up.not-ready, .fade-up.is-visible {
    opacity: 1 !important;
    transform: none !important;
  }
}
/* 尊重系统「减少动效」偏好 */
@media (prefers-reduced-motion: reduce) {
  .fade-up, .fade-up.not-ready, .fade-in {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
}
.fade-in { animation: fade-in 0.3s; }
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ============== 自测题目选项(Apple radio 风格) ============== */
.quiz-options { display: flex; flex-direction: column; gap: 8px; }
.quiz-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  background: white;
  transition: all 0.15s;
  font-size: var(--text-base);
}
.quiz-opt:hover { background: var(--color-bg-soft); }
.quiz-opt input[type="radio"] {
  margin: 0;
  accent-color: var(--color-primary);
  width: 18px;
  height: 18px;
}
.quiz-opt:has(input:checked) {
  background: var(--color-primary-soft);
  border-color: var(--color-primary);
  font-weight: 500;
}

/* ============== 进度条 ============== */
.progress {
  height: 4px;
  background: var(--color-border);
  border-radius: 2px;
  overflow: hidden;
}
.progress__bar {
  height: 100%;
  background: var(--color-primary);
  transition: width 0.3s;
}

/* ============== 主内容区 ============== */
.app-main {
  min-height: calc(100vh - 48px);
}

/* ============== 响应式 padding ============== */
@media (max-width: 833px) {
  .hero { padding: var(--space-10) var(--space-3) var(--space-8); }
  .section { padding: var(--space-10) 0; }
  .article-detail { margin: var(--space-6) auto; }
}

/* ============== 顶栏用户名(桌面显示,移动隐藏) ============== */
@media (max-width: 600px) {
  .nav-username { display: none; }
  .nav-logout {
    font-size: 12px !important;
    padding: 6px 10px !important;
    min-height: 36px;  /* 顶栏内可用,顶栏整体 56 */
  }
  #user-menu-btn {
    font-size: 24px !important;
    padding: 0 8px !important;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  #user-area a[href="#/profile"] {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

/* ============== 移动端触摸目标 (Apple HIG: ≥44px) ============== */
@media (max-width: 833px) {
  .btn {
    min-height: 44px;
  }
  .form__input, .form__textarea {
    min-height: 44px;
    font-size: 16px; /* iOS 不缩放 */
  }
  /* 自测 quiz 选项 */
  .quiz-opt {
    min-height: 48px;
    padding: 14px 18px;
  }
  /* 卡片(.card--feature)增加整体触摸区 */
  .card--feature {
    min-height: 60px;
  }
  /* 训练关卡返回链接 */
  a[href*="/mission"] + h1,
  .container > a[href^="#/"] {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

/* ============== 移动端特殊页面 ============== */
@media (max-width: 833px) {
  .chat__input {
    padding: 12px;
    border-radius: 18px;
  }
  .chat__input textarea {
    min-height: 24px;
    max-height: 120px;
    font-size: 16px; /* iOS 不缩放 */
    padding: 8px;
  }
  .chat__input button[type="submit"] {
    min-width: 64px;
    min-height: 44px;
  }
  .chat-bubble {
    max-width: 88%;
    font-size: 16px;
  }
  /* 自测卡片 */
  .card {
    padding: 20px;
  }
  .alert {
    padding: 14px 18px;
    font-size: 14px;
  }
  /* 英雄区移动端再紧一点 */
  .hero {
    padding: 48px 20px 32px;
  }
  .hero__title {
    font-size: 36px !important;
  }
  .hero__subtitle {
    font-size: 17px;
  }
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero__actions .btn {
    width: 100%;
  }
}

/* ============== 训练 + 勋章 移动端 ============== */
@media (max-width: 833px) {
  .medal-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .medal { padding: 16px 8px; }
  .medal__icon { font-size: 48px; }
  .medal__name { font-size: 14px; }
  .medal__desc { font-size: 11px; }
  /* 自测历史卡片 */
  .container > a.card,
  .grid a.card {
    margin-bottom: 12px;
  }
  /* 训练返回链接 */
  .container > a[href^="#/mission"],
  .container > a[href^="#/test"],
  .container > a[href^="#/learn"] {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 0;
  }
}

/* ============== 移动端 - 顶栏 logo / 登录 / 返回链接 ============== */
@media (max-width: 833px) {
  /* 顶栏 logo - 同行(移动端保留分隔线,但内边距收窄以省出菜单横向空间) */
  .nav__logo {
    min-height: 44px;
    min-width: 64px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 17px;
    padding: 0 14px 0 4px;
    margin-right: 12px;
  }
  .nav__logo-mark { width: 27px; height: 27px; border-radius: 7px; }
  /* 顶栏登录链接(未登录态) */
  #login-link, .nav__right a[href="#/login"] {
    min-height: 44px;
    min-width: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
  }
  /* 文章/训练/自测详情页 - 返回链接 */
  .container > a[href^="#/"]:first-child,
  a[href="#/learn"].text-soft,
  a[href="#/test"].text-soft,
  a[href="#/mission"].text-soft,
  a[href="#/chat"].text-soft {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 0;
    font-size: 15px !important;
  }
}

/* ============== 移动端 - 修复剩余触点小 ============== */
@media (max-width: 833px) {
  /* 聊天页未登录提示的"登录"链接 */
  #chat-messages a[href="#/login"] {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 8px;
    background: var(--color-primary);
    color: white !important;
    text-decoration: none;
  }
  /* 文章/详情页返回链接(任何 text-soft 链接) */
  .article-detail a.text-soft,
  a.text-soft[href^="#/"],
  .back-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 10px 0;
    font-size: 15px !important;
    color: var(--color-text-soft);
    text-decoration: none;
  }
}

/* ══════════════════════════════════════════════
   思维花园 · 读书角落 (v1)
   定位: 与站内 Apple 风保持一致,但内容区切到暖米白纸感,
        形成"进入另一个空间"的阅读氛围。长时间阅读用暖墨色而非纯黑。
   ══════════════════════════════════════════════ */
.g-sheet {
  --g-paper: #F5EDE0;
  --g-paper-2: #EBE0CD;
  --g-ink: #2A2520;
  --g-ink-soft: #6B6259;
  --g-ink-mute: #9C938A;
  --g-line: rgba(42, 37, 32, .12);
  background: var(--g-paper);
  color: var(--g-ink);
  min-height: 70vh;
}
/* 整个视口(含导航栏背后的区域)一起转暖 —— 进入"另一个空间"必须一眼看出来 */
body.g-space { background: #F5EDE0; }
.g-sheet .g-foot {
  max-width: 660px;
  margin: 0 auto;
  padding: 56px 28px 64px;
  font-size: 12px;
  line-height: 1.9;
  color: var(--g-ink-mute);
  border-top: 1px solid var(--g-line);
}

/* ── 扉页 ─────────────────────────────── */
.g-cover { max-width: 660px; margin: 0 auto; padding: 96px 28px 8px; }
.g-eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .14em;
  color: var(--color-primary); margin-bottom: 24px;
}
.g-h1 {
  font-size: clamp(40px, 8vw, 56px); font-weight: 700;
  letter-spacing: -.03em; line-height: 1.12; margin-bottom: 24px;
}
.g-lede p { font-size: 17px; line-height: 1.95; color: var(--g-ink-soft); margin-bottom: 18px; }
.g-meta {
  display: grid; grid-template-columns: 76px 1fr; gap: 10px 16px;
  font-size: 14px; line-height: 1.7; margin: 32px 0;
  padding-top: 24px; border-top: 1px solid var(--g-line);
}
.g-meta dt { color: var(--g-ink-mute); }
.g-meta dd { margin: 0; }
.g-btn {
  display: inline-flex; align-items: center; min-height: 48px;
  background: var(--color-primary); color: #fff;
  font-size: 16px; font-weight: 600; padding: 14px 30px;
  border-radius: 10px; text-decoration: none; transition: .2s;
}
.g-btn:hover { background: var(--color-primary-dark); }

/* ── 目录 ─────────────────────────────── */
.g-toc { max-width: 660px; margin: 0 auto; padding: 48px 28px 0; }
.g-toc h2 { font-size: 30px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 8px; }
.g-toc-hint { font-size: 15px; color: var(--g-ink-mute); margin-bottom: 32px; }
.g-part { margin-bottom: 36px; }
.g-part-hd {
  display: flex; align-items: baseline; gap: 12px;
  padding-bottom: 12px; margin-bottom: 4px; border-bottom: 1px solid var(--g-line);
}
.g-part-hd span { font-size: 17px; font-weight: 700; letter-spacing: .06em; }
.g-part-hd em { font-size: 13px; font-style: normal; color: var(--g-ink-mute); }
.g-toc-item {
  display: flex; gap: 18px; padding: 18px 12px; margin: 0 -12px;
  text-decoration: none; color: inherit; border-radius: 10px; transition: background .2s;
}
.g-toc-item:hover { background: rgba(254, 108, 23, .05); }
.g-toc-n {
  flex: 0 0 30px; font-size: 13px; color: var(--g-ink-mute); padding-top: 4px;
  font-variant-numeric: tabular-nums;
}
.g-toc-body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.g-toc-t { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.g-toc-d {
  font-size: 14px; color: var(--g-ink-mute); line-height: 1.6;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

/* ── 顶栏 + 进度 ────────────────────────── */
.g-bar {
  position: sticky; top: 0; z-index: 20;
  max-width: 660px; margin: 0 auto; padding: 14px 28px;
  display: flex; align-items: center; gap: 14px;
  background: rgba(245, 237, 224, .88);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}
.g-back {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 14px; color: var(--g-ink-soft); text-decoration: none; flex: 0 0 auto;
  min-height: 44px;
}
.g-prog { display: flex; gap: 4px; flex: 1; justify-content: center; }
.g-prog i {
  width: 18px; height: 3px; border-radius: 2px;
  background: var(--g-line); transition: background .3s;
}
.g-prog i.on { background: var(--color-primary); }
.g-count {
  font-size: 13px; color: var(--g-ink-mute); flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
}

/* ── 卡片正文 ──────────────────────────── */
.g-card { max-width: 660px; margin: 0 auto; padding: 32px 28px 0; }
.g-chapter {
  font-size: 13px; letter-spacing: .14em; font-weight: 600;
  color: var(--color-primary); margin-bottom: 16px;
}
.g-card-h1 {
  font-size: clamp(30px, 6.5vw, 40px); font-weight: 700;
  letter-spacing: -.025em; line-height: 1.2; margin-bottom: 28px;
}
.g-core {
  padding-left: 20px; border-left: 3px solid var(--color-primary);
  margin-bottom: 32px;
}
.g-core p { font-size: 19px; line-height: 1.9; margin-bottom: 14px; }
.g-core p:last-child { margin-bottom: 0; }
.g-body p { font-size: 16px; line-height: 2.05; color: var(--g-ink-soft); margin-bottom: 20px; }
.g-body strong { color: var(--g-ink); font-weight: 600; }
.g-src {
  font-size: 13px; line-height: 1.85; color: var(--g-ink-mute);
  background: var(--g-paper-2); border-radius: 9px;
  padding: 14px 18px; margin-bottom: 30px;
}
.g-warn {
  font-size: 14px; line-height: 1.85; color: #8A2B22;
  background: #FFF5F3; border-left: 3px solid #D93025;
  border-radius: 0 9px 9px 0; padding: 16px 20px; margin-bottom: 30px;
}

/* ── 今天就能做 ────────────────────────── */
.g-do {
  background: #fff; border: 1px solid var(--g-line); border-radius: 16px;
  padding: 26px 26px 24px; margin-bottom: 30px;
}
.g-do-lb {
  font-size: 12px; letter-spacing: .12em; font-weight: 700;
  color: var(--color-primary); margin-bottom: 12px;
}
.g-do-h { font-size: 19px; font-weight: 600; line-height: 1.5; margin-bottom: 16px; }
.g-do-list { padding-left: 0; list-style: none; counter-reset: gd; }
.g-do-list li {
  counter-increment: gd; position: relative; padding-left: 30px;
  font-size: 15px; line-height: 1.85; color: var(--g-ink-soft); margin-bottom: 10px;
}
.g-do-list li:last-child { margin-bottom: 0; }
.g-do-list li::before {
  content: counter(gd); position: absolute; left: 0; top: 5px;
  width: 19px; height: 19px; border-radius: 50%;
  background: var(--color-primary); color: #fff;
  font-size: 11px; font-weight: 700; line-height: 19px; text-align: center;
}
.g-do-list strong { color: var(--g-ink); font-weight: 600; }

/* ── 停下来想一想 ──────────────────────── */
.g-ask {
  background: rgba(254, 108, 23, .07); border-radius: 16px;
  padding: 26px 24px; margin-bottom: 28px;
}
.g-ask-lb {
  font-size: 12px; letter-spacing: .12em; font-weight: 700;
  color: var(--color-primary); margin-bottom: 12px;
}
.g-ask-p { font-size: 16px; line-height: 1.9; }

/* ── 翻页 ─────────────────────────────── */
.g-nav { display: flex; gap: 12px; }
.g-nav-btn {
  flex: 1; display: flex; align-items: center; justify-content: center;
  min-height: 48px; border: 1px solid var(--g-line); border-radius: 10px;
  font-size: 15px; font-weight: 500; text-decoration: none;
  color: var(--g-ink); transition: background .2s;
}
.g-nav-btn:hover { background: var(--g-paper-2); }

@media (max-width: 640px) {
  .g-cover { padding: 64px 24px 8px; }
  .g-toc, .g-card { padding-left: 24px; padding-right: 24px; }
  .g-bar { padding: 10px 24px; }
  .g-prog { display: none; }
  .g-core p { font-size: 17px; line-height: 1.85; }
  .g-body p { font-size: 15px; line-height: 2; }
  .g-meta { grid-template-columns: 1fr; gap: 4px 0; }
  .g-meta dt { margin-top: 10px; }
}

/* ══════════════════════════════════════════════
   工具箱 · 可打印表格 (v1)
   定位: 与思维花园同一片暖纸底。整块 .t-paper 是「打印出来的那张纸」——
        屏幕上是纸, Ctrl+P 出来也是纸, 不变形。
   核心: 一切可勾选 / 可书写的东西都必须能原样打印, 且打印时不丢边框。
   ══════════════════════════════════════════════ */
@page { size: A4; margin: 14mm; }

.t-sheet {
  --t-paper: #F5EDE0;
  --t-paper-2: #EBE0CD;
  --t-ink: #2A2520;
  --t-ink-soft: #6B6259;
  --t-ink-mute: #9C938A;
  --t-line: rgba(42, 37, 32, .12);
  background: var(--t-paper);
  color: var(--t-ink);
  min-height: 70vh;
}
body[data-section="tools"] { background: #F5EDE0; }

/* ── 顶栏 + 进度 ────────────────────────── */
.t-bar {
  position: sticky; top: 0; z-index: 20;
  max-width: 720px; margin: 0 auto; padding: 14px 28px;
  display: flex; align-items: center; gap: 14px;
  background: rgba(245, 237, 224, .88);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}
.t-back {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 14px; color: var(--t-ink-soft); text-decoration: none;
  flex: 0 0 auto; min-height: 44px;
}
.t-prog { display: flex; gap: 4px; flex: 1; justify-content: center; }
.t-prog i {
  width: 18px; height: 3px; border-radius: 2px;
  background: var(--t-line); transition: background .3s;
}
.t-prog i.on { background: var(--color-primary); }
.t-count {
  font-size: 13px; color: var(--t-ink-mute); flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
}

/* ── 扉页 ───────────────────────────────── */
.t-cover { max-width: 720px; margin: 0 auto; padding: 96px 28px 8px; }
.t-eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .14em;
  color: var(--color-primary); margin-bottom: 24px;
}
.t-h1 {
  font-size: clamp(40px, 8vw, 56px); font-weight: 700;
  letter-spacing: -.03em; line-height: 1.12; margin-bottom: 24px;
}
.t-lede p { font-size: 17px; line-height: 1.95; color: var(--t-ink-soft); margin-bottom: 18px; }
.t-printnote {
  font-size: 15px; line-height: 1.9; color: var(--t-ink-soft);
  background: #fff; border: 1px solid var(--t-line); border-radius: 14px;
  padding: 18px 22px; margin: 28px 0 32px;
}
.t-printnote strong { color: var(--t-ink); }

/* ── 列表 ───────────────────────────────── */
.t-list { max-width: 720px; margin: 0 auto; padding: 48px 28px 0; }
.t-list h2 { font-size: 30px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 8px; }
.t-list-hint { font-size: 15px; color: var(--t-ink-mute); margin-bottom: 28px; }
.t-item {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 12px; margin: 0 -12px;
  text-decoration: none; color: inherit; border-radius: 10px;
  transition: background .2s;
  border-bottom: 1px solid var(--t-line);
}
.t-item:last-child { border-bottom: 0; }
.t-item:hover { background: rgba(254, 108, 23, .05); }
.t-item-n {
  flex: 0 0 28px; font-size: 13px; color: var(--t-ink-mute);
  font-variant-numeric: tabular-nums;
}
.t-item-body { flex: 1; min-width: 0; }
.t-item-t { display: block; font-size: 19px; font-weight: 600; line-height: 1.5; }
.t-item-d { display: block; font-size: 14px; color: var(--t-ink-mute); margin-top: 3px; }
.t-item-go { flex: 0 0 auto; color: var(--t-ink-mute); font-size: 15px; }

/* ── 单张表 ─────────────────────────────── */
.t-card { max-width: 720px; margin: 0 auto; padding: 32px 28px 8px; }
.t-chapter {
  font-size: 12px; font-weight: 600; letter-spacing: .12em;
  color: var(--color-primary); margin-bottom: 10px;
}
.t-card-h1 {
  font-size: clamp(30px, 5vw, 40px); font-weight: 700;
  letter-spacing: -.03em; line-height: 1.18; margin-bottom: 6px;
}
.t-card-tag { font-size: 16px; color: var(--t-ink-soft); margin-bottom: 28px; }

.t-when {
  font-size: 15px; line-height: 1.8; color: var(--t-ink-soft);
  background: var(--t-paper-2); border-radius: 12px; padding: 16px 20px; margin-bottom: 22px;
}
.t-when b { display: block; color: var(--t-ink); margin-bottom: 4px; font-size: 13px; letter-spacing: .08em; }

.t-how { padding-left: 0; list-style: none; counter-reset: th; margin-bottom: 22px; }
.t-how li {
  counter-increment: th; position: relative; padding-left: 30px;
  font-size: 15px; line-height: 1.9; color: var(--t-ink-soft); margin-bottom: 10px;
}
.t-how li:last-child { margin-bottom: 0; }
.t-how li::before {
  content: counter(th); position: absolute; left: 0; top: 4px;
  width: 19px; height: 19px; border-radius: 50%;
  background: var(--t-paper-2); color: var(--t-ink);
  font-size: 11px; font-weight: 700; line-height: 19px; text-align: center;
}
.t-how strong { color: var(--t-ink); font-weight: 600; }

.t-tip {
  font-size: 15px; line-height: 1.9; color: var(--t-ink);
  border-left: 3px solid var(--color-primary);
  padding: 4px 0 4px 16px; margin-bottom: 26px;
}
.t-tip strong { font-weight: 700; }

/* ── 那张纸 ─────────────────────────────── */
.t-paper {
  background: #fff; border: 1px solid var(--t-line); border-radius: 16px;
  padding: 32px 30px; margin-bottom: 26px;
}
.t-field { margin-bottom: 26px; }
.t-field:last-child { margin-bottom: 0; }
.t-field label {
  display: block; font-size: 13px; font-weight: 600; color: var(--t-ink-soft);
  margin-bottom: 10px; letter-spacing: .02em;
}
.t-field-lg label { font-size: 14px; }

/* 可书写行 */
.t-line {
  min-height: 38px; padding: 7px 10px; margin-bottom: 8px;
  border-bottom: 1px solid rgba(42, 37, 32, .18);
  font-size: 15px; line-height: 24px; color: var(--t-ink);
  outline: none; word-break: break-word;
}
.t-line:last-child { margin-bottom: 0; }
.t-line:focus { border-bottom-color: var(--color-primary); background: rgba(254, 108, 23, .03); }
.t-line:empty::before { content: attr(data-ph); color: var(--t-ink-mute); pointer-events: none; }
.t-line:empty { min-height: 38px; }

/* 可勾选行 */
.t-boxes { display: flex; flex-direction: column; gap: 10px; }
.t-box-row {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 9px 12px; border-radius: 10px; cursor: pointer;
  border: 1px solid transparent; transition: background .15s, border-color .15s;
  -webkit-tap-highlight-color: transparent;
}
.t-box-row:hover { background: rgba(254, 108, 23, .05); }
.t-box-row.on { background: rgba(254, 108, 23, .06); border-color: rgba(254, 108, 23, .22); }
.t-box {
  flex: 0 0 20px; width: 20px; height: 20px; margin-top: 2px;
  border: 1.8px solid rgba(42, 37, 32, .35); border-radius: 5px;
  background: #fff; position: relative; transition: all .15s;
}
.t-box-row.on .t-box, .t-week-box.on .t-box { background: var(--color-primary); border-color: var(--color-primary); }
.t-box-row.on .t-box::after, .t-week-box.on .t-box::after {
  content: ''; position: absolute; left: 6px; top: 2.5px;
  width: 5px; height: 10px;
  border: solid #fff; border-width: 0 2.2px 2.2px 0; transform: rotate(43deg);
}
.t-box-tx { font-size: 16px; line-height: 1.7; color: var(--t-ink); }
.t-box-row.on .t-box-tx { color: var(--t-ink-soft); text-decoration: line-through; text-decoration-color: rgba(42, 37, 32, .3); }
.t-box-tx em { display: block; font-style: normal; font-size: 13px; color: var(--t-ink-mute); margin-top: 2px; }
.t-boxes-sm .t-box-tx { font-size: 15px; }

/* 大号勾选(周日重置) */
.t-three { display: flex; flex-direction: column; gap: 12px; }
.t-three-item { display: flex; align-items: center; gap: 12px; }
.t-three-item .t-line { flex: 1; margin-bottom: 0; }
.t-box-lg {
  flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.t-box-lg .t-box-core {
  width: 14px; height: 14px; border-radius: 50%;
  background: rgba(42, 37, 32, .16); transition: all .15s;
}
.t-box-lg.on { background: var(--color-primary); border-color: var(--color-primary); }
.t-box-lg.on .t-box-core { background: #fff; transform: scale(1.15); }

/* 表格(注意力地图 / 就医准备单) */
.t-table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.t-table th {
  font-size: 12px; font-weight: 700; color: var(--t-ink-soft);
  text-align: left; padding: 8px 6px; border-bottom: 1.5px solid rgba(42, 37, 32, .25);
  letter-spacing: .04em;
}
.t-table td { padding: 0 6px; vertical-align: top; }
.t-table td .t-line { min-height: 34px; margin-bottom: 6px; font-size: 14px; }
.t-table tr:last-child td .t-line { border-bottom-color: rgba(42, 37, 32, .12); }

.t-two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.t-two b { display: block; font-size: 13px; color: var(--t-ink-soft); margin-bottom: 8px; }

/* 一周七格(家长自我照顾) */
.t-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-bottom: 24px; }
.t-week-col { display: flex; flex-direction: column; gap: 8px; }
.t-week-day {
  text-align: center; font-size: 13px; font-weight: 700; color: var(--t-ink-soft);
  padding-bottom: 6px; border-bottom: 1px solid var(--t-line);
}
.t-week-box {
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  padding: 8px 0; border-radius: 8px; border: 1px dashed rgba(42, 37, 32, .2);
  background: #fff; -webkit-tap-highlight-color: transparent;
}
.t-week-box:hover { border-color: var(--color-primary); }
.t-week-box .t-box { margin-top: 0; }
.t-week-col .t-line { min-height: 62px; font-size: 12px; line-height: 18px; padding: 6px 4px; margin-bottom: 0; }

.t-note {
  font-size: 13.5px; line-height: 1.85; color: var(--t-ink-soft);
  background: var(--t-paper-2); border-radius: 10px; padding: 14px 16px; margin-bottom: 0;
}
.t-note strong { color: var(--t-ink); }
.t-note-strong { border-left: 3px solid var(--color-primary); }

/* ── 情绪温度计 ───────────────────────────── */
.t-scale { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.t-zone {
  display: block; width: 100%; text-align: left; cursor: pointer;
  padding: 13px 16px; border-radius: 11px;
  background: var(--z-bg); border: 1.5px solid transparent;
  transition: transform .12s, border-color .15s;
  -webkit-tap-highlight-color: transparent;
}
.t-zone:hover { transform: translateX(3px); }
.t-zone.on { border-color: var(--z-fg); box-shadow: 0 2px 10px rgba(0, 0, 0, .07); }
.t-zone-r {
  display: inline-block; min-width: 52px; font-size: 15px; font-weight: 700;
  color: var(--z-fg); font-variant-numeric: tabular-nums;
}
.t-zone-n { font-size: 16px; font-weight: 700; color: var(--t-ink); }
.t-zone-s { display: block; font-size: 13px; color: var(--t-ink-soft); margin: 3px 0 6px; }
.t-zone-a { display: block; font-size: 14.5px; line-height: 1.75; color: var(--t-ink); }
.t-zone-a strong { font-weight: 700; color: var(--z-fg); }
.t-scale-now {
  display: flex; align-items: center; gap: 10px; margin: 0;
  font-size: 15px; padding: 14px 18px; border-radius: 11px;
  background: var(--t-paper-2); min-height: 52px;
}
.t-scale-now-lb { font-size: 12px; letter-spacing: .1em; color: var(--t-ink-mute); flex: 0 0 auto; }
.t-scale-now-v { font-size: 15px; font-weight: 600; color: var(--t-ink); }

/* ── 打印 + 翻页 + 页脚 ──────────────────── */
.t-print {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 48px; padding: 13px 26px; margin-bottom: 18px;
  background: var(--color-primary); color: #fff; border: 0; border-radius: 10px;
  font-size: 16px; font-weight: 600; cursor: pointer; transition: background .2s;
}
.t-print:hover { background: var(--color-primary-dark); }
.t-link { font-size: 14px; color: var(--t-ink-mute); margin: 0 0 26px; }
.t-link a { color: var(--color-primary); text-decoration: none; }
.t-link a:hover { text-decoration: underline; }

.t-nav { display: flex; gap: 12px; margin-bottom: 8px; }
.t-nav-btn {
  flex: 1; display: flex; align-items: center; justify-content: center;
  min-height: 48px; border: 1px solid var(--t-line); border-radius: 10px;
  font-size: 15px; font-weight: 500; text-decoration: none;
  color: var(--t-ink); transition: background .2s;
}
.t-nav-btn:hover { background: var(--t-paper-2); }
.t-foot {
  max-width: 720px; margin: 0 auto; padding: 56px 28px 64px;
  font-size: 12px; line-height: 1.9; color: var(--t-ink-mute);
  border-top: 1px solid var(--t-line);
}

/* ── 打印样式: 只留「那张纸」 ───────────────── */
@media print {
  /* 屏幕上才需要的东西一律不出现在纸上 */
  .nav, .footer, .t-bar, .t-nav, .t-when, .t-how, .t-tip,
  .t-print, .t-link, .t-cover, .t-list, .t-chapter, .t-card-tag,
  .t-scale-now { display: none !important; }

  html, body {
    background: #fff !important;
    color: #000 !important;
  }
  /* 名字要留:家人拿到纸得知道这是什么 */
  .t-card-h1 { font-size: 20pt !important; margin-bottom: 10pt; }
  .t-card { padding: 0 !important; margin: 0 !important; max-width: none !important; }
  .t-body { margin: 0 !important; }
  .t-sheet { background: #fff !important; min-height: 0 !important; }
  .t-paper {
    border: 1.5pt solid #444 !important; border-radius: 0 !important;
    padding: 10pt 12pt !important; margin: 0 !important;
    page-break-inside: avoid;
  }
  /* 线加粗一点:打印出来要看得见 */
  .t-line { border-bottom-color: #999 !important; min-height: 26pt; background: none !important; }
  .t-line:empty::before { color: #aaa !important; }
  .t-box { border-color: #555 !important; }
  .t-box-row.on, .t-week-box.on { background: none !important; border-color: transparent !important; }
  .t-box-row.on .t-box-tx { text-decoration-color: #999 !important; }
  .t-table th { border-bottom-color: #444 !important; }
  .t-table td .t-line { border-bottom-color: #bbb !important; }
  .t-field { margin-bottom: 14pt; page-break-inside: avoid; }
  /* 提示框在纸上不要色块, 改用一条左侧线 */
  .t-note {
    background: none !important; border-radius: 0 !important;
    border-left: 1.5pt solid #bbb; padding: 2pt 0 2pt 8pt !important;
  }
  .t-two { gap: 14pt; }
  .t-week { gap: 5pt; }
  .t-week-col .t-line { min-height: 46pt; }
  /* 打印页脚:每张纸上都有一句出处 */
  .t-card::after {
    content: '「同行」原创工具 · tongxing · 可自由打印用于家庭使用 · 不构成医学建议';
    display: block; margin-top: 10pt; padding-top: 6pt;
    border-top: .5pt solid #ccc;
    font-size: 7.5pt; color: #999;
  }
}

@media (max-width: 640px) {
  .t-cover { padding: 64px 24px 8px; }
  .t-list, .t-card { padding-left: 24px; padding-right: 24px; }
  .t-bar { padding: 10px 24px; }
  .t-prog { display: none; }
  .t-paper { padding: 22px 18px; }
  .t-two { grid-template-columns: 1fr; gap: 16px; }
  .t-week { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .t-table th, .t-table td { padding-left: 3px; padding-right: 3px; }
  .t-table td .t-line { font-size: 13px; }
}

/* ══════════════════════════════════════════════
   工具箱 · 互动工具 (v1)
   优先级矩阵 / 最小下一步 / 资源索引
   沿用工具箱暖纸底, 但这些页不打印 —— 它们是"动手用"的, 不是"拿走用"的。
   ══════════════════════════════════════════════ */
.t-live { max-width: 720px; margin: 0 auto; padding: 44px 28px 0; }
.t-live h2 { font-size: 30px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 8px; }
.t-live .t-list-hint { font-size: 15px; color: var(--t-ink-mute); margin-bottom: 20px; }
.t-live-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 20px 14px; margin: 0 -14px 10px;
  text-decoration: none; color: inherit; border-radius: 12px;
  background: #fff; border: 1px solid var(--t-line);
  transition: transform .15s, border-color .2s, background .2s;
}
.t-live-item:hover { transform: translateY(-2px); border-color: rgba(254, 108, 23, .35); }
.t-live-item-soft { background: transparent; border-style: dashed; }
.t-live-n {
  flex: 0 0 auto; font-size: 12px; font-weight: 700; letter-spacing: .08em;
  color: var(--t-ink-mute); padding-top: 5px; white-space: nowrap;
}
.t-live-body { flex: 1; min-width: 0; }
.t-live-t { display: block; font-size: 19px; font-weight: 700; line-height: 1.5; }
.t-live-d { display: block; font-size: 14.5px; line-height: 1.75; color: var(--t-ink-soft); margin-top: 4px; }

/* ── 今天先做哪件 ────────────────────────── */
.t-sheet {
  --mx-a: #FE6C17; --mx-b: #0A84FF; --mx-c: #34C759;
  --mx-d: #BF5AF2; --mx-e: #FF9F0A;
}
.mx-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
.mx-grid {
  display: grid;
  grid-template-columns: 128px repeat(var(--n), minmax(54px, 1fr));
  gap: 5px; min-width: 430px;
}
.mx-head {
  display: flex; align-items: center; gap: 7px;
  padding: 0 8px 0 0; min-height: 54px;
}
.mx-code {
  flex: 0 0 auto; font-size: 14px; font-weight: 800;
  width: 18px; text-align: center; font-variant-numeric: tabular-nums;
}
.mx-head input {
  flex: 1; min-width: 0; border: 0; border-bottom: 1px solid var(--g-line, rgba(42, 37, 32, .16));
  background: none; padding: 5px 2px; font-size: 13.5px; color: inherit;
  font-family: inherit; outline: none;
}
.mx-head input:focus { border-bottom-color: var(--color-primary); }
.mx-head input::placeholder { color: #B8B0A6; }

.mx-cell {
  min-height: 54px; border-radius: 8px; border: 1px solid transparent;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 800; font-family: inherit;
}
.mx-empty { background: rgba(42, 37, 32, .028); }
.mx-diag { background: rgba(42, 37, 32, .05); font-variant-numeric: tabular-nums; }
.mx-decide {
  cursor: pointer; background: rgba(42, 37, 32, .028);
  border-color: rgba(42, 37, 32, .07);
  transition: background .15s, border-color .15s, transform .1s;
  -webkit-tap-highlight-color: transparent;
}
.mx-decide:hover { border-color: var(--color-primary); transform: scale(1.04); }
.mx-decide.is-set { background: #fff; border-color: var(--w); box-shadow: inset 0 0 0 1.5px var(--w); }
/* 任一端没填名字 → 占位但不可点,布局不跳 */
.mx-decide.mx-off, .mx-cell.mx-off {
  background: rgba(42, 37, 32, .012); border-color: rgba(42, 37, 32, .04);
  cursor: default;
}
.mx-decide.mx-off .mx-hint, .mx-cell.mx-off .mx-hint { color: #DCD5CB; }
.mx-head.is-off .mx-code { opacity: .34; }
.mx-head.is-off input { opacity: .62; }
/* 滑动提示只在窄屏出现,桌面端 .mx-wrap 不需要滚 */
.mx-swipe { display: none; }
.mx-hint { font-size: 12px; font-weight: 600; color: #BCB4A9; letter-spacing: .02em; }
.mx-winner { font-size: 19px; font-weight: 800; }
.mx-blank {
  grid-column: 1 / -1; text-align: center; padding: 40px 12px;
  font-size: 15px; color: var(--t-ink-mute);
}

.mx-rank { margin-top: 22px; }
.mx-rank-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 4px; border-bottom: 1px solid var(--t-line);
}
.mx-rank-row:last-child { border-bottom: 0; }
.mx-rank-n {
  flex: 0 0 24px; font-size: 13px; font-weight: 700; color: var(--t-ink-mute);
  text-align: center;
}
.mx-rank-row.is-top .mx-rank-n { color: var(--color-primary); font-size: 16px; }
.mx-rank-name {
  flex: 0 0 40%; font-size: 14.5px; line-height: 1.5;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mx-rank-row.is-top .mx-rank-name { font-weight: 700; }
.mx-rank-bar { flex: 1; height: 7px; border-radius: 4px; background: rgba(42, 37, 32, .07); overflow: hidden; }
.mx-rank-bar i { display: block; height: 100%; border-radius: 4px; background: var(--color-primary); transition: width .3s; }
.mx-rank-votes {
  flex: 0 0 26px; text-align: right; font-size: 13px;
  color: var(--t-ink-mute); font-variant-numeric: tabular-nums;
}
.mx-note { font-size: 14px; color: var(--t-ink-mute); padding: 10px 2px; }
.mx-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.mx-btn {
  flex: 1; min-width: 140px; min-height: 44px; cursor: pointer;
  background: none; border: 1px solid var(--g-line, rgba(42, 37, 32, .14));
  border-radius: 9px; font-size: 14.5px; font-family: inherit; color: var(--t-ink-soft);
  transition: background .2s, border-color .2s;
}
.mx-btn:hover { background: rgba(254, 108, 23, .06); border-color: rgba(254, 108, 23, .3); }
.mx-credit {
  font-size: 12.5px; line-height: 1.8; color: var(--t-ink-mute);
  padding: 14px 0 0; margin: 0 0 26px;
}
.mx-credit a { color: var(--color-primary); }
.lt-disc {
  font-size: 12.5px; line-height: 1.85; color: var(--t-ink-mute);
  padding: 13px 0 0; margin: 0 0 22px; border-top: 1px solid rgba(42, 37, 32, .07);
}

/* ── 最小下一步 ────────────────────────────── */
.t-warn {
  font-size: 15px; line-height: 1.9; color: var(--t-ink);
  background: #FFF5F3; border-left: 3px solid #D93025; border-radius: 0 12px 12px 0;
  padding: 18px 20px; margin-bottom: 24px;
}
.t-warn b { display: block; margin-bottom: 6px; }

.ns-add { display: flex; gap: 9px; margin-bottom: 20px; }
.ns-add input {
  flex: 1; min-width: 0; min-height: 44px; padding: 0 12px;
  border: 1px solid var(--g-line, rgba(42, 37, 32, .16)); border-radius: 9px;
  font-size: 15px; font-family: inherit; color: inherit; background: #fff; outline: none;
}
.ns-add input:focus { border-color: var(--color-primary); }
.ns-addbtn {
  flex: 0 0 auto; min-height: 44px; padding: 0 18px; cursor: pointer;
  background: var(--color-primary); color: #fff; border: 0; border-radius: 9px;
  font-size: 15px; font-weight: 600; font-family: inherit;
}
.ns-addbtn:hover { background: var(--color-primary-dark); }

.ns-task { padding: 16px 0; border-bottom: 1px solid var(--t-line); }
.ns-task:last-child { border-bottom: 0; }
.ns-task-hd { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.ns-task-t { flex: 1; font-size: 17px; font-weight: 700; line-height: 1.5; }
.ns-task-n {
  font-size: 12px; color: var(--t-ink-mute); font-variant-numeric: tabular-nums;
  padding: 2px 8px; border-radius: 20px; background: rgba(42, 37, 32, .05);
}
.ns-del {
  flex: 0 0 auto; width: 28px; height: 28px; cursor: pointer; border: 0; border-radius: 7px;
  background: none; color: var(--t-ink-mute); font-size: 19px; line-height: 1; font-family: inherit;
}
.ns-del:hover { background: rgba(255, 59, 48, .1); color: #D93025; }

.ns-cur {
  display: block; width: 100%; text-align: left; cursor: pointer;
  background: rgba(254, 108, 23, .07); border: 1.5px solid rgba(254, 108, 23, .25);
  border-radius: 12px; padding: 16px 18px; margin-bottom: 14px; font-family: inherit;
  transition: background .15s;
}
.ns-cur:hover { background: rgba(254, 108, 23, .13); }
.ns-cur-lb {
  display: block; font-size: 11.5px; letter-spacing: .12em; font-weight: 700;
  color: var(--color-primary); margin-bottom: 6px;
}
.ns-cur-tx { display: block; font-size: 19px; font-weight: 700; line-height: 1.5; color: var(--t-ink); }
.ns-cur::after {
  content: '点一下，划掉这一步 →'; display: block; margin-top: 10px;
  font-size: 12.5px; color: var(--color-primary); font-weight: 600;
}

.ns-steps { list-style: none; padding: 0; margin: 0 0 12px; }
.ns-step {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14.5px; line-height: 1.75; color: var(--t-ink-mute);
  padding: 5px 2px;
}
.ns-step.is-done { color: var(--t-ink); text-decoration: line-through; text-decoration-color: rgba(42, 37, 32, .3); }
.ns-dot {
  flex: 0 0 14px; width: 14px; height: 14px; margin-top: 5px; border-radius: 50%;
  border: 1.5px solid rgba(42, 37, 32, .2);
}
.ns-step.is-done .ns-dot { background: var(--color-primary); border-color: var(--color-primary); }
.ns-addstep { display: flex; gap: 8px; }
.ns-addstep input {
  flex: 1; min-width: 0; min-height: 40px; padding: 0 12px;
  border: 1px dashed var(--g-line, rgba(42, 37, 32, .2)); border-radius: 9px;
  font-size: 14px; font-family: inherit; background: none; color: inherit; outline: none;
}
.ns-addstep input:focus { border-color: var(--color-primary); border-style: solid; }
.ns-addstep button {
  flex: 0 0 auto; min-width: 52px; cursor: pointer; background: none;
  border: 1px solid var(--g-line, rgba(42, 37, 32, .14)); border-radius: 9px;
  font-size: 14px; font-family: inherit; color: var(--t-ink-soft);
}
.ns-addstep button:hover { background: rgba(254, 108, 23, .07); }

.ns-fin {
  font-size: 15px; line-height: 1.8; color: var(--t-ink);
  background: #E3F0E4; border-radius: 11px; padding: 14px 16px;
}
.ns-fin strong { color: #2E6B34; }
.ns-task.is-done .ns-task-t { text-decoration: line-through; text-decoration-color: rgba(42, 37, 32, .3); }
.ns-stats { margin-top: 18px; font-size: 14px; color: var(--t-ink-soft); line-height: 1.8; }
.ns-stat-n { font-size: 20px; font-weight: 800; color: var(--color-primary); margin-right: 4px; }
.ns-stat-s { color: var(--t-ink-mute); }

/* ── 免费资源索引 ──────────────────────────── */
.fr-group { margin: 36px 0 0; }
.fr-group h2 { font-size: 21px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 8px; }
.fr-note {
  font-size: 14px; line-height: 1.85; color: var(--t-ink-soft);
  background: var(--t-paper-2, #EBE0CD); border-radius: 10px;
  padding: 13px 16px; margin-bottom: 14px;
}
.fr-item {
  display: block; text-decoration: none; color: inherit;
  padding: 16px 14px; margin: 0 -14px 8px; border-radius: 10px;
  border-bottom: 1px solid var(--t-line);
  transition: background .2s;
}
.fr-item:hover { background: rgba(254, 108, 23, .05); }
.fr-item-hd { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.fr-item-n { font-size: 17px; font-weight: 700; line-height: 1.5; }
.fr-item-tag {
  font-size: 11.5px; color: var(--t-ink-mute); padding: 2px 9px;
  border-radius: 20px; background: rgba(42, 37, 32, .06); white-space: nowrap;
}
.fr-item-d { display: block; font-size: 14.5px; line-height: 1.8; color: var(--t-ink-soft); margin-top: 6px; }
.fr-item-go {
  display: inline-block; margin-top: 8px; font-size: 13px;
  font-weight: 600; color: var(--color-primary);
}

@media (max-width: 640px) {
  .t-live, .t-card { padding-left: 24px; padding-right: 24px; }
  .mx-grid { grid-template-columns: 104px repeat(var(--n), minmax(50px, 1fr)); min-width: 400px; }
  /* 网格在容器内横向滚动,不给提示会被当成被裁掉 */
  .mx-swipe {
    display: block; margin: 2px 0 10px; font-size: 12px;
    color: var(--t-ink-mute); letter-spacing: .02em;
  }
  .mx-rank-name { flex: 0 0 46%; }
  .ns-cur-tx { font-size: 17px; }
  .fr-item-hd { gap: 8px; }
}
