/* 朝阳薪传 v6 · 田野笔记本风
   - 暖橙 + 橄榄 + 向日葵 + 深棕四色
   - 思源宋体做正文，站汸快乐体做手写标题，Caveat 做英文抒写
   - 复盘 7 题一屏全展开，但左侧加可跳目录
   - 答完 7 题跳明信片页
   - 语音 + 文字输入（功能状态一路保留）
   - AI 走云函数代理（不受用户网络影响）
*/

:root {
  /* v6 主体色板 · 暖橙主导 */
  --bg: #FAF6EE;                /* 整体背景 · 田野米黄 */
  --bg-card: #FDFBF5;           /* 卡片 · 略浅米白（用户规范） */
  --bg-warm: #F5EAD2;
  --bg-deep: #E8D9B6;

  /* 主体文字 */
  --ink: #4A3F35;               /* 深棕 */
  --ink-soft: #8A7B6C;          /* 浅棕文字（用户规范） */
  --ink-faint: #B5A891;
  --ink-line: #E4D9C2;          /* 分隔线（用户规范） */

  /* 暖橙 · 主角色 */
  --accent: #E8925A;            /* 暖橙（用户规范） */
  --accent-deep: #C97038;       /* 深橙（用户规范） */
  --accent-soft: #F5C7A7;
  --accent-tint: #FCE6D6;

  /* 橄榄绿 · 辅助色 */
  --secondary: #7A8B6F;         /* 橄榄绿（用户规范） */
  --secondary-deep: #5B7A5A;    /* 深绿（用户规范） */
  --secondary-soft: #B6BFA8;
  --secondary-tint: #DDE3D2;

  /* 第三色 · 棕色 */
  --tertiary: #8B7A66;
  --tertiary-deep: #5C4F3D;
  --tertiary-soft: #C9B89E;
  --tertiary-tint: #E5D9C5;

  /* 古铜金 */
  --gold: #C9A14E;
  --gold-soft: #E0C485;
  --gold-tint: #F0E1B6;

  --line: #E4D9C2;                /* 分隔线（用户规范） */
  --line-soft: #EFE5D0;
  --line-dashed: #C9B89E;

  --warning: #C9A14E;
  --warning-tint: #F0E1B6;
  --danger: #C97038;
  --danger-tint: #F5C7A7;
  --success: var(--secondary);
  --success-tint: var(--secondary-tint);

  /* v6 专属变量 · 主色别名 */
  --orange: #E8925A;            /* 暖橙主色 */
  --olive: #7A8B6F;             /* 橄榄绿 */
  --brown: #4A3F35;             /* 文字棕 */
  --sun: #E6C86E;               /* 向日葵黄 */
  --tape: rgba(232, 146, 90, 0.55);    /* 和纸胶带 */
  --tape-sun: rgba(230, 200, 110, 0.65);  /* 变体·胶带向日葵色 */
  --paper-radius: 12px;
  --shadow-soft: 0 4px 14px rgba(74, 63, 53, 0.08);

  /* v6 字体体系 */
  --font-hand: 'ZCOOL KuaiLe', 'Kaiti SC', 'STKaiti', KaiTi, '楷体', serif;
  --font-body: 'Noto Serif SC', 'Kaiti SC', 'STKaiti', 'Songti SC', serif;
  --font-scribble: 'Caveat', 'Kaiti SC', cursive;

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;

  --sh-1: 0 1px 2px rgba(74, 63, 53, .08);
  --sh-2: 0 4px 14px rgba(74, 63, 53, .1);
  --sh-3: 0 12px 36px rgba(74, 63, 53, .18);

  --shadow-card: 0 4px 14px rgba(74, 63, 53, .08);
  --shadow-card-hover: 0 6px 20px rgba(74, 63, 53, .14);

  /* v6.1 · 提示语专属色 */
  --ink-light: #8A7B6C;
  --divider: #E4D9C2;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
  padding-bottom: 110px;

  /* v6: 田野笔记本 · 5% 噪点纸张纹理 (由 ::before 提供,这里只保底色) */
  background-color: #FAF6EE;
}
/* 求助页有固定底栏（含 z-index 60），多留点呼吸空间 */
body.page-ask,
body.page-ask_followup,
body.page-ask_loading {
  padding-bottom: 220px;
}
body.page-advice {
  padding-bottom: 200px;
}
body.page-feedback_modal {
  padding-bottom: 200px;
}
body.page-review {
  padding-bottom: 220px;
}
body.page-review_done {
  padding-bottom: 90px;
}

/* 全局图案背景：v6 不再使用 .bg-deco (噪点与底色由 body::before 处理) */
.bg-deco { display: none !important; }
/* 4 个角落散布手绘元素 + 主体柔和莫兰迪球光 */
.bg-deco::before {
  content: "";
  position: absolute;
  top: -120px; left: -120px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--m-blush), transparent 70%);
  opacity: .55;
}
.bg-deco::after {
  content: "";
  position: absolute;
  bottom: -120px; right: -120px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--m-sage), transparent 70%);
  opacity: .55;
}

input, textarea, button { font-family: inherit; }
button { cursor: pointer; }

#app {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* =============================================
   顶部品牌区：植物图鉴封面 · 双线边框 · 朱印
   ============================================= */
.brand-hero {
  position: relative;
  margin: 36px 0 32px;
  padding: 44px 28px 36px;
  background: var(--bg-card);
  border: 2px solid var(--ink-line);
  border-radius: 4px;
  box-shadow:
    0 0 0 6px var(--bg-card),
    0 0 0 7px var(--ink-line),
    0 12px 32px rgba(61, 46, 31, .12);
  text-align: center;
  overflow: hidden;
}
/* 朱印 · 右上角「薪传」 */
.brand-hero::before {
  content: "薪传";
  position: absolute;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: rgba(251, 246, 231, .9);
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(4deg);
  box-shadow:
    inset 0 0 0 1.5px rgba(251, 246, 231, .35),
    0 1px 4px rgba(139, 36, 21, .35);
  opacity: .9;
  line-height: 1.1;
  z-index: 5;
}
/* 朱印 · 左下角「朝阳」 */
.brand-hero::after {
  content: "朝阳";
  position: absolute;
  left: 20px;
  bottom: 20px;
  width: 48px;
  height: 48px;
  background: var(--secondary-deep);
  color: rgba(251, 246, 231, .9);
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-5deg);
  box-shadow:
    inset 0 0 0 1.5px rgba(251, 246, 231, .35),
    0 1px 4px rgba(79, 107, 64, .35);
  opacity: .85;
  line-height: 1.1;
  z-index: 5;
}

.brand-hero > svg { position: absolute; pointer-events: none; }
.brand-hero svg.deco-child {
  z-index: 1;
  opacity: .88;
}

.brand-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
}
.brand-mark {
  display: none; /* 改用装饰线代替圆章 */
}
.brand-text { width: 100%; text-align: center; }
.brand-text h1 {
  font-family: var(--font-hand);
  font-size: 36px;
  margin: 0;
  font-weight: 700;
  letter-spacing: 12px;
  text-indent: 12px;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
}
.brand-text h1::before,
.brand-text h1::after {
  content: "";
  height: 1.5px;
  width: 28px;
  background: var(--ink-soft);
}
.brand-text h1 .badge {
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 10px;
  background: var(--accent);
  color: #FBF6E7;
  border-radius: 2px;
  letter-spacing: 2px;
  text-indent: 0;
  transform: rotate(-3deg);
  position: relative;
  top: -16px;
  margin-left: -8px;
  box-shadow: 0 1px 3px rgba(139, 36, 21, .3);
}
.brand-text .tagline {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--ink-soft);
  font-family: var(--font-hand);
  letter-spacing: 2px;
}

/* slogan：手写感 + 两侧装饰 */
.brand-slogan {
  font-family: var(--font-hand);
  font-size: 16px;
  letter-spacing: 3px;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 14px 0 0;
  text-indent: 3px;
}
.brand-slogan::before,
.brand-slogan::after {
  content: "";
  height: 1px;
  width: 36px;
  background: linear-gradient(90deg, transparent, var(--ink-soft) 50%, transparent);
}
.brand-slogan .fl {
  font-size: 11px;
  color: var(--accent);
}

.brand-deco-line {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--ink-line) 30%, var(--ink-line) 70%, transparent 100%);
  margin: 28px 32px 14px;
  position: relative;
}
.brand-deco-line::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -4px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  transform: translateX(-50%) rotate(45deg);
}
.brand-poem {
  font-family: var(--font-hand);
  font-size: 13px;
  color: var(--ink-soft);
  text-align: center;
  letter-spacing: 8px;
  margin: 0;
  padding-bottom: 4px;
}

/* =============================================
   待回访条
   ============================================= */
.pending-strip {
  position: relative;
  background: linear-gradient(135deg, var(--gold-tint), var(--warning-tint));
  border: 1px solid var(--gold-soft);
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  gap: 14px;
  align-items: center;
  overflow: hidden;
}
.pending-strip::before {
  content: "";
  position: absolute;
  left: -20px;
  bottom: -20px;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(176, 114, 25, .15), transparent 70%);
  border-radius: 50%;
}
.pending-strip .ico {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--warning);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex: none;
}
.pending-strip .text { flex: 1; font-size: 14px; color: var(--ink); position: relative; z-index: 1; }
.pending-strip button {
  background: var(--ink);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

/* =============================================
   主行动按钮：植物图鉴目录条目风格
   ============================================= */
.cta-stack { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.cta-stack > * + * { margin-top: 0; }

.cta {
  position: relative;
  width: 100%;
  border: none;
  border-radius: var(--r-md);
  padding: 18px 20px 18px 76px;
  font-size: 17px;
  font-weight: 600;
  text-align: left;
  background: var(--bg-card);
  color: var(--ink);
  border: 1.5px solid var(--ink-line);
  box-shadow: var(--shadow-card);
  transition: all .18s ease;
  overflow: hidden;
  cursor: pointer;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  min-height: 88px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.cta::before {
  /* 左侧朱红序号方块 · 古印鉴风格 */
  content: attr(data-num);
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 56px;
  background: var(--accent);
  color: #FBF6E7;
  font-family: var(--font-hand);
  font-size: 26px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0;
  border-right: 1.5px solid var(--ink-line);
}
.cta::after {
  /* 右下角 卷角阴影 */
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, transparent 50%, var(--bg) 50%);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.cta:hover {
  transform: translateX(2px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--accent);
}
.cta:hover::after { opacity: .9; }
.cta:active { transform: translateX(0); }

.cta .ttl {
  display: block;
  font-family: var(--font-hand);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--ink);
  margin-bottom: 4px;
  padding-left: 4px;
}
.cta .sub {
  display: block;
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 4px;
  font-weight: 400;
  line-height: 1.5;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
  padding-left: 4px;
}
.cta .arrow { display: none; }

.cta.secondary {
  background: var(--bg-card);
  border-color: var(--ink-line);
}
.cta.secondary::before { background: var(--secondary-deep); }
.cta.secondary:hover { border-color: var(--secondary); }

.cta.tertiary {
  background: var(--bg-card);
  border-color: var(--ink-line);
}
.cta.tertiary::before { background: var(--tertiary-deep); }
.cta.tertiary:hover { border-color: var(--tertiary); }

.cta.done {
  background: var(--bg-card);
  border-color: var(--secondary);
}
.cta.done::before { background: var(--secondary); }
.cta.done .ttl { color: var(--secondary-deep); }

/* =============================================
   通用卡片
   ============================================= */
.card {
  background: var(--bg-card);
  border-radius: var(--r-md);
  padding: 22px 22px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  position: relative;
}
.card-title {
  font-family: var(--font-hand);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 2px;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.card-title::before {
  content: "";
  width: 4px;
  height: 16px;
  background: var(--accent);
  border-radius: 1px;
}
.card h2 { margin: 0 0 8px; font-size: 21px; font-weight: 700; letter-spacing: -.5px; }
.card .lead { color: var(--ink-soft); font-size: 15px; margin: 0 0 20px; }

/* =============================================
   章节标题
   ============================================= */
.section { margin-top: 40px; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
  padding: 0 4px;
}
.section-head h2 {
  font-size: 17px;
  font-weight: 700;
  margin: 0;
  color: var(--ink);
  letter-spacing: -.3px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-head h2::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}
.section-head .meta { font-size: 13px; color: var(--ink-soft); }

/* =============================================
   经验条目 · 仿古册页
   ============================================= */
.exp-list { display: flex; flex-direction: column; gap: 12px; }
.exp-item {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px 20px 18px 26px;
  cursor: pointer;
  transition: all .18s ease;
  overflow: hidden;
}
.exp-item::before {
  /* 左侧装订线 */
  content: "";
  position: absolute;
  left: 10px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: repeating-linear-gradient(180deg, var(--accent) 0 4px, transparent 4px 8px);
  opacity: .6;
}
.exp-item::after {
  /* 右下角卷角 */
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, transparent 50%, var(--bg-warm) 50%);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.exp-item:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-card-hover);
  transform: translateX(2px);
}
.exp-item .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.exp-item .title {
  font-family: var(--font-hand);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.5;
  margin-bottom: 6px;
  letter-spacing: 1px;
}
.exp-item .desc {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.6;
  font-style: italic;
}
.exp-item .desc::before { content: "下一届："; color: var(--accent); font-style: normal; font-weight: 600; margin-right: 2px; }

/* 空状态 */
.empty-block {
  background: var(--bg-card);
  border: 1.5px dashed var(--ink-line);
  border-radius: var(--r-md);
  padding: 56px 24px;
  text-align: center;
  color: var(--ink-soft);
  position: relative;
  overflow: hidden;
}
.empty-block::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80px;
  height: 80px;
  background:
    radial-gradient(circle, transparent 28px, var(--ink-line) 29px, transparent 30px);
  transform: translate(-50%, -50%);
  opacity: .2;
}
.empty-block .big {
  font-family: var(--font-hand);
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 2px;
  position: relative;
}
.empty-block p {
  margin: 0;
  font-size: 13px;
  position: relative;
}

/* =============================================
   标签 chip · 仿古小印
   ============================================= */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 600;
  background: var(--bg-warm);
  color: var(--ink-soft);
  border: 1px solid var(--line);
  letter-spacing: 1px;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}
.chip-grade {
  background: var(--secondary-tint);
  color: var(--secondary-deep);
  border-color: var(--secondary-soft);
}
.chip-year {
  background: var(--bg-card);
  color: var(--ink-soft);
}
.chip-ptype {
  background: var(--accent-tint);
  color: var(--accent-deep);
  border-color: var(--accent-soft);
}
.chip-ai {
  background: var(--tertiary-tint);
  color: var(--tertiary-deep);
  border-color: var(--tertiary-soft);
}
.chip-status-new { background: var(--bg-warm); color: var(--ink-soft); }
.chip-status-supported {
  background: var(--success-tint);
  color: var(--success);
  border-color: var(--secondary-soft);
}
.chip-status-partial {
  background: var(--warning-tint);
  color: var(--warning);
  border-color: var(--gold-soft);
}
.chip-status-fixed {
  background: var(--tertiary-tint);
  color: var(--tertiary);
}
.chip-status-disproven {
  background: var(--danger-tint);
  color: var(--danger);
  border-color: var(--accent-soft);
}

/* =============================================
   复盘长表单
   ============================================= */
.review-page { padding-top: 32px; }
.review-head {
  text-align: center;
  margin-bottom: 28px;
  padding: 24px 0;
}
.review-head h1 {
  font-size: 30px;
  margin: 0 0 6px;
  font-weight: 800;
  letter-spacing: -.8px;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.review-head .sub { color: var(--ink-soft); font-size: 14px; margin: 0; }

.review-page .progress {
  height: 8px;
  background: var(--line-soft);
  border-radius: 4px;
  overflow: hidden;
  margin: 20px 0 8px;
}
.review-page .progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  width: 0%;
  transition: width .3s;
  border-radius: 4px;
}
.review-page .progress-label {
  text-align: center;
  color: var(--ink-soft);
  font-size: 13px;
  margin-bottom: 28px;
}

.q-block {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--r-md);
  padding: 24px 22px 20px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  transition: all .2s;
}
.q-block::before {
  /* 左侧装订线 */
  content: "";
  position: absolute;
  left: 8px;
  top: 16px;
  bottom: 16px;
  width: 2px;
  background: repeating-linear-gradient(180deg, var(--accent) 0 4px, transparent 4px 8px);
  opacity: .6;
}
.q-block.q-filled {
  background: linear-gradient(180deg, var(--bg-card), var(--secondary-tint));
  border-color: var(--secondary-soft);
}
.q-block.q-filled::before {
  background: repeating-linear-gradient(180deg, var(--secondary-deep) 0 4px, transparent 4px 8px);
}

.q-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-hand);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #FBF6E7;
  background: var(--accent);
  padding: 2px 10px;
  border-radius: 2px;
  margin-left: 18px;
  margin-bottom: 10px;
  min-width: 90px;
}
.q-block.q-filled .q-no {
  background: var(--secondary-deep);
}
.q-text {
  font-family: var(--font-hand);
  font-size: 18px;
  color: var(--ink);
  margin: 4px 0 6px 18px;
  line-height: 1.6;
  font-weight: 700;
  letter-spacing: 2px;
}
.q-hint {
  font-size: 12px;
  color: var(--ink-faint);
  margin: 0 0 14px 18px;
  font-style: italic;
}
.input-wrap {
  position: relative;
  margin-left: 18px;
}
.input-wrap textarea {
  width: 100%;
  border: none;
  background: var(--bg-warm);
  border-radius: 4px;
  resize: none;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  outline: none;
  padding: 14px 16px 14px 20px;
  min-height: 100px;
  transition: background .15s;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  border: 1px solid var(--line-soft);
}
.input-wrap textarea:focus {
  background: var(--bg-card);
  box-shadow: inset 0 0 0 1.5px var(--accent);
  border-color: var(--accent);
}
.input-wrap textarea::placeholder { color: var(--ink-faint); font-style: italic; }
.mic {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #FBF6E7;
  border: none;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
  box-shadow: 0 2px 8px rgba(139, 36, 21, .35);
}
.mic:hover { transform: scale(1.05); }
.mic.recording {
  background: var(--warning);
  animation: pulse 1.4s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 2px 8px rgba(166, 109, 20, .5); }
  50% { box-shadow: 0 2px 16px rgba(166, 109, 20, .8), 0 0 0 8px rgba(166, 109, 20, .15); }
}
.status-text {
  font-size: 12px;
  color: var(--ink-faint);
  margin: 6px 4px 0 18px;
  min-height: 14px;
}
.status-text.live { color: var(--warning); font-weight: 600; }

/* 复盘底部固定按钮 · 浮在主页底部导航栏之上 */
.review-footer {
  position: fixed;
  bottom: 76px; /* 让出底部导航栏高度（约 65px）+ 一点呼吸 */
  left: 0;
  right: 0;
  background: linear-gradient(180deg, transparent, var(--bg) 30%);
  padding: 24px 24px 24px;
  z-index: 50;
}
.review-footer .container {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--bg-card);
  border-radius: 18px;
  padding: 8px 8px 8px 18px;
  box-shadow: 0 8px 24px rgba(95, 60, 30, .18);
  border: 1px solid var(--line-soft);
}

/* ===== 求助页底部固定提交栏 ===== */
.ask-footer {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  padding: 18px 24px calc(18px + 70px);
  background: linear-gradient(180deg, transparent, var(--bg) 35%);
  z-index: 60;
}
.ask-footer .container {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border-radius: 18px;
  padding: 12px 14px 12px 20px;
  box-shadow: 0 8px 24px rgba(74, 111, 165, .25);
  border: 1px solid var(--line-soft);
}
.ask-footer .hint {
  flex: 1;
  font-size: 12px;
  color: var(--ink-faint);
  line-height: 1.4;
}
.ask-footer .big-submit {
  background: linear-gradient(135deg, var(--tertiary) 0%, #3A5A8E 100%);
  color: white;
  border: none;
  border-radius: 14px;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(74, 111, 165, .3);
  transition: transform .15s;
}
.ask-footer .big-submit:hover { transform: translateY(-1px); }
.ask-footer .big-submit:active { transform: translateY(0); }
.ask-footer .big-submit svg { transition: transform .2s; }
.ask-footer .big-submit:hover svg { transform: translateX(3px); }
.progress-mini {
  flex: 1;
  height: 6px;
  background: var(--line-soft);
  border-radius: 3px;
  overflow: hidden;
}
.progress-mini-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  border-radius: 3px;
  transition: width .3s;
}
.review-footer .submit {
  background: var(--accent);
  color: white;
  border: none;
  height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(200, 70, 43, .3);
}
.review-footer .submit:disabled { background: var(--line); color: var(--ink-faint); box-shadow: none; cursor: not-allowed; }

/* =============================================
   求助页
   ============================================= */
.ask-page { padding-top: 32px; }
.ask-head { text-align: center; margin-bottom: 24px; padding: 24px 0; }
.ask-head h1 {
  font-size: 28px;
  margin: 0 0 6px;
  font-weight: 800;
  letter-spacing: -.8px;
  background: linear-gradient(135deg, var(--tertiary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ask-head .sub { color: var(--ink-soft); font-size: 14px; margin: 0; }

.ask-input-card {
  background: var(--bg-card);
  border-radius: 22px;
  padding: 22px;
  margin-bottom: 20px;
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-card);
  position: relative;
}
.ask-input-card textarea {
  width: 100%;
  border: none;
  background: var(--bg-warm);
  border-radius: 14px;
  resize: none;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  outline: none;
  padding: 16px;
  min-height: 120px;
}
.ask-input-card textarea:focus { box-shadow: inset 0 0 0 2px var(--tertiary); }
.ask-input-card textarea::placeholder { color: var(--ink-faint); }
.ask-input-card .toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}
.ask-input-card .hint { flex: 1; font-size: 12px; color: var(--ink-faint); }
.mic-big {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--tertiary);
  color: white;
  border: none;
  font-size: 18px;
  flex: none;
  box-shadow: 0 2px 8px rgba(74, 111, 165, .3);
}
.mic-big.recording { background: var(--warning); animation: pulse 1.4s infinite; }
.submit-ask {
  background: var(--tertiary);
  color: white;
  border: none;
  padding: 12px 22px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  flex: none;
  box-shadow: 0 2px 8px rgba(74, 111, 165, .3);
}

.followup-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 16px;
  margin-top: 12px;
  border: 1px solid var(--line-soft);
}
.followup-card input {
  width: 100%;
  border: none;
  background: var(--bg-warm);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 15px;
  outline: none;
  margin-top: 8px;
}

/* 建议页 */
.advice-page { padding-top: 32px; }
.advice-head { text-align: center; margin-bottom: 16px; padding: 16px 0; }
.advice-head h1 {
  font-size: 28px;
  margin: 0 0 8px;
  font-weight: 800;
  letter-spacing: -.8px;
}
.advice-head .sub { color: var(--ink-soft); font-size: 14px; margin: 0; }
.evidence-line {
  text-align: center;
  font-size: 13px;
  color: var(--ink-soft);
  padding: 10px 16px;
  background: var(--gold-tint);
  border-radius: 999px;
  display: inline-block;
  margin: 0 auto 20px;
  border: 1px solid var(--gold-soft);
}

.advice-block {
  background: var(--bg-card);
  border-radius: 18px;
  padding: 20px 22px;
  margin-bottom: 12px;
  border: 1px solid var(--line-soft);
  box-shadow: var(--sh-1);
  position: relative;
  overflow: hidden;
}
.advice-block.primary {
  background: linear-gradient(135deg, var(--accent-tint), var(--bg-card));
  border-color: var(--accent-soft);
}
.advice-block.evidence {
  background: var(--bg-warm);
}
.advice-block .label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 10px;
  text-transform: uppercase;
}
.advice-block.primary .label { color: var(--accent-deep); }
.advice-block.evidence .label { color: var(--ink-soft); }
.advice-block .label.neutral { color: var(--ink-soft); }
.advice-block p { margin: 0; line-height: 1.7; white-space: pre-wrap; }

.case-mini {
  background: var(--bg-card);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 10px;
  border: 1px solid var(--line-soft);
  cursor: pointer;
}
.case-mini:hover { border-color: var(--accent); }
.case-mini .tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.case-mini .line {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 4px;
  line-height: 1.6;
}
.case-mini .line strong { color: var(--ink); margin-right: 4px; }

/* =============================================
   经验库筛选
   ============================================= */
.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 14px;
  box-shadow: var(--sh-1);
}
.search-bar span { color: var(--ink-faint); font-size: 18px; }
.search-bar input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 15px;
  outline: none;
  color: var(--ink);
}
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.filter-chip {
  background: var(--bg-card);
  border: 1.5px solid var(--line-soft);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all .15s;
}
.filter-chip:hover { border-color: var(--accent); color: var(--accent); }
.filter-chip.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.filter-chip .count {
  background: rgba(0, 0, 0, .08);
  border-radius: 999px;
  padding: 0 6px;
  font-size: 11px;
  font-weight: 700;
}
.filter-chip.active .count { background: rgba(255, 255, 255, .25); }

/* =============================================
   详情页
   ============================================= */
.detail-page { padding-top: 32px; }
.detail-head {
  background: linear-gradient(135deg, var(--bg-card), var(--bg-warm));
  border-radius: 22px;
  padding: 28px 24px;
  margin-bottom: 20px;
  border: 1px solid var(--line-soft);
  position: relative;
  overflow: hidden;
}
.detail-head::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -30px;
  width: 120px;
  height: 120px;
  border: 2px solid rgba(200, 70, 43, .08);
  border-radius: 50%;
}
.detail-head h1 {
  font-size: 24px;
  margin: 8px 0 6px;
  font-weight: 800;
  letter-spacing: -.5px;
  position: relative;
}
.detail-head .muted { color: var(--ink-soft); font-size: 14px; margin: 0; position: relative; }

.detail-block { margin-bottom: 18px; }
.detail-block .lbl {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: 1px;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.detail-block .val {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.7;
}
.detail-block .val.empty { color: var(--ink-faint); font-style: italic; }
.detail-block.highlight {
  background: linear-gradient(135deg, var(--gold-tint), var(--bg-card));
  border-radius: 18px;
  padding: 22px;
  margin-bottom: 20px;
  border: 1px solid var(--gold-soft);
  position: relative;
}
.detail-block.highlight .lbl { color: var(--gold); }
.detail-block.highlight .val {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.6;
}

.timeline { padding: 4px 0; }
.timeline .item {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}
.timeline .item:last-child { border-bottom: none; }
.timeline .when {
  width: 80px;
  flex: none;
  color: var(--ink-faint);
  font-size: 13px;
}
.timeline .what { flex: 1; font-size: 14px; color: var(--ink); }
.timeline .item.supported .what::before { content: "✓"; color: var(--success); margin-right: 6px; }
.timeline .item.invalid .what::before { content: "✗"; color: var(--danger); margin-right: 6px; }
.timeline .item.partial .what::before { content: "~"; color: var(--warning); margin-right: 6px; }

details.card summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink-soft);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
details.card summary::after { content: "▾"; color: var(--accent); transition: transform .15s; }
details.card[open] summary::after { transform: rotate(180deg); }
.qa-block { padding: 12px 0; border-bottom: 1px dashed var(--line-soft); }
.qa-block:last-child { border-bottom: none; }
.qa-block .q { font-size: 13px; color: var(--ink-soft); margin-bottom: 6px; font-weight: 600; }
.qa-block .a { font-size: 14px; color: var(--ink); line-height: 1.6; }

/* 反馈按钮组 */
.fb-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
}
.fb-btn {
  padding: 16px 8px;
  border-radius: 14px;
  border: 1.5px solid;
  font-size: 14px;
  font-weight: 700;
  background: var(--bg-card);
  transition: all .15s;
}
.fb-btn.good { color: var(--success); border-color: var(--success-tint); }
.fb-btn.good:hover { background: var(--success-tint); border-color: var(--success); }
.fb-btn.partial { color: var(--warning); border-color: var(--warning-tint); }
.fb-btn.partial:hover { background: var(--warning-tint); border-color: var(--warning); }
.fb-btn.bad { color: var(--danger); border-color: var(--danger-tint); }
.fb-btn.bad:hover { background: var(--danger-tint); border-color: var(--danger); }

/* =============================================
   底部导航
   ============================================= */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(251, 246, 231, .92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1.5px solid var(--ink-line);
  display: flex;
  padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
  z-index: 40;
}
.bottom-nav a {
  flex: 1;
  text-align: center;
  padding: 6px 0;
  color: var(--ink-soft);
  font-size: 11px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-family: var(--font-hand);
  letter-spacing: 2px;
}
.bottom-nav a .ico {
  width: 26px;
  height: 26px;
  border-radius: 4px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  transition: all .15s;
}
.bottom-nav a.active { color: var(--accent); }
.bottom-nav a.active .ico {
  background: var(--accent);
  color: #FBF6E7;
}
.bottom-nav a.active span { color: var(--accent); font-weight: 700; }

/* =============================================
   小字脚注
   ============================================= */
.small-foot {
  text-align: center;
  margin-top: 36px;
  padding: 16px;
  font-size: 12px;
  color: var(--ink-faint);
}
.mvp-tag {
  display: inline-block;
  background: var(--bg-warm);
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-right: 6px;
  letter-spacing: 1px;
}

/* 成功动画 */
.success-circle {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary), var(--secondary-deep));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  box-shadow: 0 8px 24px rgba(92, 140, 110, .35);
  position: relative;
}
.success-circle::after {
  content: "";
  position: absolute;
  inset: -8px;
  border: 2px dashed var(--secondary-soft);
  border-radius: 50%;
  animation: spin 8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.muted { color: var(--ink-soft); }

/* 移动端微调 */
@media (max-width: 600px) {
  .brand-hero { padding: 36px 22px 30px; }
  .brand-text h1 { font-size: 26px; letter-spacing: 8px; text-indent: 8px; }
  .brand-text h1::before, .brand-text h1::after { width: 18px; }
  .brand-slogan { font-size: 13px; letter-spacing: 2px; gap: 8px; }
  .brand-slogan::before, .brand-slogan::after { width: 22px; }
  .brand-hero::before { width: 40px; height: 40px; font-size: 11px; top: 14px; right: 14px; }
  .brand-hero::after { width: 40px; height: 40px; font-size: 11px; left: 14px; bottom: 14px; }
  .cta { padding: 16px 18px 16px 68px; min-height: 76px; }
  .cta::before { width: 48px; font-size: 22px; }
  .cta .ttl { font-size: 17px; letter-spacing: 2px; }
  .cta .sub { font-size: 12px; }
}
/* ===== 云端状态指示（云共享版） ===== */
.cloud-status {  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  margin: 20px auto 8px;
  padding: 10px 18px;
  width: fit-content;
  max-width: 92%;
  border-radius: 999px;
  font-size: 13px;
  background: var(--secondary-tint);
  color: var(--secondary-deep);
  border: 1px solid var(--secondary-soft);
}
.cloud-status .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.cloud-status.on .dot {
  background: var(--secondary-deep);
  box-shadow: 0 0 0 3px rgba(122, 139, 120, 0.18);
}
.cloud-status.off {
  background: var(--warning-tint);
  color: var(--warning);
  border-color: #E0D2B4;
}
.cloud-status.off .dot {
  background: var(--warning);
  box-shadow: 0 0 0 3px rgba(176, 146, 90, 0.18);
}

/* ===== 首页底部标语 ===== */
.home-foot {
  text-align: center;
  margin: 32px auto 8px;
}
.home-motto {
  font-family: var(--font-hand);
  font-size: 16px;
  letter-spacing: 5px;
  color: #A67A2C;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.home-motto::before,
.home-motto::after {
  content: "";
  height: 1px;
  width: 32px;
  background: linear-gradient(90deg, transparent, #D9A05B);
}
.home-motto::after {
  background: linear-gradient(90deg, #D9A05B, transparent);
}

/* ===== 问 AI 等待动画 ===== */
.ask-loading-orb {
  width: 52px;
  height: 52px;
  margin: 0 auto 20px;
  border-radius: 50%;
  border: 3px solid var(--accent-soft);
  border-top-color: var(--accent);
  animation: askspin 0.9s linear infinite;
}
@keyframes askspin {
  to { transform: rotate(360deg); }
}

/* ========================================================================
   v6 · 田野笔记本风 · 覆盖段
   - 所有规则挂 body.page-* 前缀,作用域明确
   - 噪点底纹 + 暖橙 + 和纸胶带 + 向日葵 + 明信片
   ======================================================================== */

/* 全局噪点纸张纹理 (5% 透明) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='5'/><feColorMatrix values='0 0 0 0 0.30 0 0 0 0 0.22 0 0 0 0 0.16 0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 200px 200px;
  opacity: 0.05;
}
#app { position: relative; z-index: 1; }

/* ----- v6 通用：卡片 / 按钮 / CTA ----- */
body.page-home .brand-hero,
body.page-review .q-block,
body.page-ask .ask-input-card,
body.page-ask .card,
body.page-advice .advice-block,
body.page-library .card,
body.page-me .card,
body.page-review_done .postcard,
body.page-detail .detail-body,
body.page-feedback_modal .feedback-card {
  background: var(--bg-card);
  border-radius: var(--paper-radius);
  box-shadow: var(--shadow-soft);
  position: relative;
}

/* v6: 首页品牌区贴和纸胶带 */
body.page-home .brand-hero::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 22px;
  width: 92px;
  height: 22px;
  background: var(--tape);
  transform: rotate(-8deg);
  border-radius: 2px;
  box-shadow: 0 2px 6px rgba(74, 63, 53, 0.08);
  pointer-events: none;
}

/* ----- 首页三大 CTA · 暖橙胶囊 ----- */
body.page-home .cta {
  border-radius: 999px;
  background: #fff;
  transition: transform .2s ease, box-shadow .2s ease;
  border: 1.5px dashed rgba(122, 76, 38, 0.18);
}
body.page-home .cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(74, 63, 53, 0.10);
}
body.page-home .cta .ttl {
  font-family: var(--font-hand);
  font-size: 17px;
  color: var(--brown);
}
body.page-home .cta .sub {
  font-family: var(--font-body);
  color: var(--ink-soft);
  font-size: 13px;
}

/* ----- 复盘页 · 双栏布局 + 目录栏 + 主卡片 ----- */
body.page-review .container {
  max-width: 980px;
  margin: 0 auto;
}

/* 主区双栏(grid)*/
body.page-review .review-page {
  display: grid !important;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  align-items: start;
}
@media (max-width: 720px) {
  body.page-review .review-page {
    grid-template-columns: 1fr;
  }
}

/* 左侧目录栏 */
body.page-review .review-toc {
  background: var(--bg-card);
  border-radius: var(--paper-radius);
  box-shadow: var(--shadow-soft);
  padding: 16px 14px 14px;
  position: sticky;
  top: 16px;
}
body.page-review .review-toc::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 18px;
  width: 80px;
  height: 20px;
  background: var(--tape-sun);
  transform: rotate(-6deg);
  border-radius: 2px;
  pointer-events: none;
}
body.page-review .review-toc h4 {
  margin: 0 0 10px;
  font-family: var(--font-hand);
  font-size: 16px;
  color: var(--brown);
  padding-left: 4px;
}
body.page-review .review-toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
}
body.page-review .review-toc li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 6px;
  font-size: 13px;
  color: var(--ink-soft);
  border-radius: 6px;
  font-family: var(--font-body);
  cursor: default;
}
body.page-review .review-toc li.active {
  background: rgba(232, 146, 90, 0.12);
  color: var(--brown);
  font-weight: 500;
}
body.page-review .review-toc li.done .toc-dot {
  background: var(--olive);
}
body.page-review .toc-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(74, 63, 53, 0.18);
  flex-shrink: 0;
}
body.page-review .toc-num {
  font-family: var(--font-scribble);
  font-size: 14px;
  color: var(--orange);
  font-style: italic;
  margin-left: auto;
}

/* 复盘每题主卡片 */
body.page-review .q-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
body.page-review .q-block {
  background: var(--bg-card);
  border-radius: var(--paper-radius);
  box-shadow: var(--shadow-soft);
  padding: 26px 22px 20px;
  position: relative;
  transition: box-shadow .2s;
}
body.page-review .q-block::before {
  /* 和纸胶带 */
  content: "";
  position: absolute;
  top: -10px;
  left: 26px;
  width: 90px;
  height: 22px;
  background: var(--tape);
  transform: rotate(-8deg);
  border-radius: 2px;
  box-shadow: 0 2px 6px rgba(74, 63, 53, 0.08);
  pointer-events: none;
}
/* 不同题用不同色调的胶带，制造手账感 */
body.page-review .q-block[data-no="2"]::before { background: var(--tape-sun); }
body.page-review .q-block[data-no="4"]::before { background: rgba(122, 139, 111, 0.55); }
body.page-review .q-block[data-no="5"]::before { background: var(--tape-sun); }
body.page-review .q-block[data-no="7"]::before { background: rgba(122, 139, 111, 0.55); }

body.page-review .q-block.q-filled {
  box-shadow: 0 6px 18px rgba(122, 139, 111, 0.18);
}

body.page-review .q-no {
  font-family: var(--font-scribble);
  font-size: 14px;
  color: var(--orange);
  font-style: italic;
  margin-bottom: 6px;
}
body.page-review .q-text {
  font-family: var(--font-hand);
  font-size: 22px;
  color: var(--brown);
  line-height: 1.5;
  margin-bottom: 8px;
}
body.page-review .q-hint {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ink-soft);
  font-style: italic;
  margin-bottom: 14px;
}

/* 输入框 */
body.page-review .input-wrap textarea {
  background: #fff;
  border: 1.5px dashed rgba(122, 76, 38, 0.28);
  border-radius: 8px;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--brown);
  resize: vertical;
  outline: none;
  transition: border-color .2s;
}
body.page-review .input-wrap textarea::placeholder {
  color: var(--ink-soft);
  font-family: var(--font-scribble);
  font-size: 16px;
  font-style: italic;
}
body.page-review .input-wrap textarea:focus {
  border-color: var(--orange);
}

/* 语音麦克风按钮保持左侧贴边 */
body.page-review .mic {
  background: rgba(232, 146, 90, 0.16);
  color: var(--orange);
  border: 1.5px dashed var(--orange);
}
body.page-review .mic.recording {
  background: var(--orange);
  color: #fff;
}

/* 向日葵进度 */
body.page-review .sun-progress {
  display: flex;
  gap: 6px;
  margin-top: 14px;
  justify-content: center;
  align-items: center;
}
body.page-review .sun-progress .sun {
  font-size: 22px;
  filter: grayscale(1) opacity(0.3);
  transition: filter .3s, transform .3s;
  display: inline-block;
}
body.page-review .sun-progress .sun.done {
  filter: none;
}

/* "保存这一页" 暖橙胶囊 */
body.page-review .review-footer .submit,
body.page-review .review-footer .container button.submit {
  background: var(--orange);
  color: #fff;
  font-family: var(--font-hand);
  border: 0;
  border-radius: 999px;
  padding: 12px 32px;
  font-size: 16px;
  box-shadow: 0 4px 14px rgba(232, 146, 90, 0.32);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
body.page-review .review-footer .submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(232, 146, 90, 0.40);
}
body.page-review .review-footer .submit:disabled {
  background: var(--ink-soft);
  box-shadow: none;
  cursor: not-allowed;
}

/* 进度条换暖色调（保留功能）*/
body.page-review .progress {
  background: rgba(232, 146, 90, 0.18);
}
body.page-review .progress-fill {
  background: linear-gradient(90deg, var(--orange), var(--sun));
}
body.page-review .progress-mini {
  background: rgba(232, 146, 90, 0.18);
}
body.page-review .progress-mini-fill {
  background: linear-gradient(90deg, var(--orange), var(--sun));
}

/* ----- 明信片页 (review_done) ----- */
body.page-review_done .detail-body { display: none; }     /* 详情主体隐藏 */
body.page-review_done .success-circle {
  background: var(--olive);
  border-radius: 50%;
  color: #fff;
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 12px;
  box-shadow: 0 6px 16px rgba(122, 139, 111, 0.30);
}
body.page-review_done .review_done-head {
  text-align: center;
  padding: 24px 20px 8px;
}
body.page-review_done .review_done-head h1 {
  font-family: var(--font-hand);
  font-size: 22px;
  color: var(--brown);
  margin: 0 0 6px;
}

/* 明信片容器 */
body.page-review_done .postcard {
  display: block;
  width: min(380px, calc(100% - 32px));
  margin: 28px auto 24px;
  padding: 42px 30px 32px;
  background: var(--bg-card);
  border: 2.5px dashed rgba(122, 76, 38, 0.28);
  border-radius: var(--paper-radius);
  box-shadow: 0 10px 30px rgba(74, 63, 53, 0.12);
  position: relative;
  text-align: center;
}
/* 顶部胶带 */
body.page-review_done .postcard::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  width: 110px;
  height: 22px;
  background: var(--tape-sun);
  border-radius: 2px;
  box-shadow: 0 2px 6px rgba(74, 63, 53, 0.08);
  pointer-events: none;
}
/* 4 枚彩色邮票 */
body.page-review_done .stamp {
  position: absolute;
  width: 38px;
  height: 44px;
  border: 4px solid var(--bg-card);
  box-shadow: 0 3px 8px rgba(74, 63, 53, 0.18);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
}
body.page-review_done .stamp-1 {
  top: -14px;
  left: 14px;
  transform: rotate(-12deg);
  background: linear-gradient(135deg, var(--orange), var(--sun));
}
body.page-review_done .stamp-2 {
  top: -10px;
  right: 18px;
  transform: rotate(8deg);
  background: linear-gradient(135deg, var(--olive), var(--sun));
}
body.page-review_done .stamp-3 {
  bottom: -10px;
  left: 18px;
  transform: rotate(-6deg);
  background: linear-gradient(135deg, var(--sun), var(--orange));
}
body.page-review_done .stamp-4 {
  bottom: -14px;
  right: 14px;
  transform: rotate(14deg);
  background: linear-gradient(135deg, var(--brown), var(--olive));
}
/* 邮戳 */
body.page-review_done .postmark {
  position: absolute;
  top: 28px;
  right: 24px;
  width: 58px;
  height: 58px;
  border: 1.5px dashed var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-scribble);
  font-size: 13px;
  color: var(--orange);
  transform: rotate(-15deg);
  text-align: center;
  line-height: 1.2;
}
body.page-review_done .postmark::before {
  /* 双圈 */
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px dashed rgba(232, 146, 90, 0.5);
  border-radius: 50%;
}
/* 明信片文案 */
body.page-review_done .postcard-headline {
  font-family: var(--font-hand);
  font-size: 24px;
  color: var(--brown);
  line-height: 1.6;
  margin: 28px 0 10px;
}
body.page-review_done .postcard-sub {
  font-family: var(--font-scribble);
  font-size: 20px;
  color: var(--orange);
  font-style: italic;
}
body.page-review_done .postcard-from {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1.5px dashed rgba(122, 76, 38, 0.22);
  font-family: var(--font-scribble);
  color: var(--ink-soft);
  font-size: 15px;
  font-style: italic;
  line-height: 1.6;
}

/* ----- 求助页 / 建议页 / 经验库 / 我的 · 卡片统一 ---------- */
body.page-ask .ask-input-card,
body.page-ask .card,
body.page-advice .advice-block,
body.page-library .card,
body.page-me .card {
  background: var(--bg-card);
  border-radius: var(--paper-radius);
  box-shadow: var(--shadow-soft);
  padding: 18px 18px;
  position: relative;
}

/* 求助页输入框 */
body.page-ask #ask-question {
  background: #fff;
  border: 1.5px dashed rgba(122, 76, 38, 0.28);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--brown);
  padding: 14px;
}
body.page-ask #ask-question::placeholder {
  color: var(--ink-soft);
  font-family: var(--font-scribble);
  font-style: italic;
  font-size: 16px;
}
body.page-ask #ask-question:focus {
  border-color: var(--orange);
  outline: none;
}

/* 求助页底部固定按钮 */
body.page-ask .ask-footer .big-submit {
  background: var(--orange);
  color: #fff;
  font-family: var(--font-hand);
  border: 0;
  border-radius: 999px;
  padding: 14px 32px;
  font-size: 17px;
  box-shadow: 0 4px 14px rgba(232, 146, 90, 0.32);
  transition: transform .2s ease;
}
body.page-ask .ask-footer .big-submit:hover {
  transform: translateY(-2px);
}

/* 卡片标题统一大号手写体 */
body.page-home .brand-text h1,
body.page-review .brand-text h1,
body.page-ask .brand-text h1,
body.page-advice .advice-head h1,
body.page-library .brand-text h1,
body.page-me .brand-text h1 {
  font-family: var(--font-hand);
  color: var(--brown);
}

/* 顶部小标 motto/slogan 改成 Caveat 斜体 */
body.page-home .brand-slogan,
body.page-review .brand-slogan,
body.page-ask .brand-slogan,
body.page-library .brand-slogan,
body.page-me .brand-slogan {
  font-family: var(--font-scribble);
  color: var(--orange);
  font-style: italic;
}

/* 经验库筛选 chip 用 v6 配色 */
body.page-library .filter-chip {
  border-color: var(--ink-line);
  color: var(--brown);
  font-family: var(--font-body);
}
body.page-library .filter-chip.active {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}

/* chips 通用 v6 化 */
.chip {
  border-radius: 6px;
  font-family: var(--font-body);
}

/* 经验列表项微调:每条加胶带装饰 */
body.page-home .exp-item,
body.page-library .exp-item,
body.page-me .exp-item {
  background: #fff;
  border-radius: var(--paper-radius);
  box-shadow: var(--shadow-soft);
  padding: 14px 14px 14px 16px;
  position: relative;
}
body.page-library .exp-item::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 18px;
  width: 50px;
  height: 14px;
  background: var(--tape);
  opacity: 0.7;
  transform: rotate(-6deg);
  border-radius: 2px;
  pointer-events: none;
}

/* 页脚小字用思源 */
body .small-foot {
  font-family: var(--font-body);
  color: var(--ink-soft);
}

/* 移动端:目录栏自动折叠到顶部 */
@media (max-width: 720px) {
  body.page-review .review-toc {
    position: static;
    margin-bottom: 4px;
  }
  body.page-review .q-text {
    font-size: 19px;
  }
}

/* 加载页 loading orb 用暖橙 */
body.page-ask_loading .ask-loading-orb {
  border-color: var(--accent-soft);
  border-top-color: var(--orange);
}

/* ========================================================
   v6.1 设计稿图案扩展
   Hero 主视觉 / 页脚横幅 / 明信片 / 笑脸贴纸
   ======================================================== */

/* ---------- 首页 Hero ---------- */
.hero {
  position: relative;
  width: 100%;
  margin: 0 0 18px;
  border-radius: 0;
  overflow: hidden;
  background: var(--bg-card);
  border-bottom: 1px solid var(--line);
}
.hero-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: cover;
  object-position: right center;
}
.hero-text {
  position: absolute;
  top: 28px;
  left: 28px;
  max-width: 46%;
  z-index: 2;
}
.hero-title {
  font-family: var(--font-hand);
  font-size: 30px;
  line-height: 1.35;
  color: var(--ink);
  margin: 0 0 6px;
  letter-spacing: 1px;
  text-shadow: 0 1px 0 rgba(255,253,247,0.6);
}
.hero-sub {
  font-family: var(--font-scribble);
  font-size: 22px;
  color: var(--orange);
  margin: 0;
  line-height: 1.4;
  transform: rotate(-2deg);
  transform-origin: left center;
  display: inline-block;
  padding: 2px 6px;
  background: rgba(253,251,245,0.65);
  border-radius: 6px;
}
/* ---------- 页脚教室横幅 ---------- */
.footer-banner {
  margin: 36px 16px 24px;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--line);
}
.footer-banner img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: cover;
  object-position: center;
}
.footer-banner-caption {
  font-family: var(--font-scribble);
  font-size: 18px;
  color: var(--ink-soft);
  text-align: center;
  margin: 0;
  padding: 10px 16px 4px;
  transform: rotate(-1deg);
}

/* ---------- 明信片视图（v6.1） ---------- */
.postcard {
  position: relative;
  background: #FFFDF9;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 36px 28px 28px;
  margin: 0 auto 24px;
  max-width: 560px;
  box-shadow: 0 6px 24px rgba(74,63,53,0.10);
  overflow: visible;
}
/* 四角虚线内框 */
.postcard-inner {
  position: relative;
  border: 2px dashed var(--line);
  border-radius: 8px;
  padding: 56px 22px 28px;
  background:
    repeating-linear-gradient(45deg, transparent, transparent 12px, rgba(232,146,90,0.02) 12px, rgba(232,146,90,0.02) 14px);
}
/* 右上角向日葵邮票 */
.postcard-stamp {
  position: absolute;
  top: -14px;
  right: -10px;
  width: 86px;
  height: 102px;
  background: #FFFDF5;
  border: 2px dashed var(--accent-deep);
  padding: 6px;
  transform: rotate(8deg);
  box-shadow: var(--shadow-soft);
  z-index: 3;
}
.postcard-stamp svg { width: 100%; height: 100%; }
.postcard-stamp-caption {
  display: block;
  font-family: var(--font-scribble);
  font-size: 14px;
  text-align: center;
  color: var(--ink-soft);
  margin-top: 2px;
  letter-spacing: 1px;
}
/* 五个笑脸贴纸错落排列 */
.smile-stickers {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0;
  margin: -42px auto 18px;
  position: relative;
  z-index: 2;
  height: 110px;
}
.smile-stickers img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 3px 6px rgba(74,63,53,0.18));
  margin: 0 -6px;
  transition: transform 0.3s ease;
}
.smile-stickers img:nth-child(1) { transform: rotate(-8deg) translateY(0); }
.smile-stickers img:nth-child(2) { transform: rotate(-3deg) translateY(8px); }
.smile-stickers img:nth-child(3) { transform: rotate(2deg) translateY(-4px); }
.smile-stickers img:nth-child(4) { transform: rotate(6deg) translateY(6px); }
.smile-stickers img:nth-child(5) { transform: rotate(10deg) translateY(-2px); }
/* 标题 + 配文 */
.postcard-title {
  font-family: var(--font-hand);
  font-size: 32px;
  text-align: center;
  color: var(--ink);
  margin: 4px 0 12px;
  letter-spacing: 2px;
}
.postcard-text {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink);
  text-align: center;
  margin: 0 auto 16px;
  max-width: 380px;
}
.postcard-sign {
  font-family: var(--font-scribble);
  font-size: 20px;
  color: var(--orange);
  text-align: center;
  margin: 0 0 8px;
  letter-spacing: 1px;
}
/* 底部中间和纸胶带 */
.postcard-tape {
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%) rotate(-2deg);
  width: 220px;
  height: 22px;
  background: rgba(230, 200, 110, 0.72);
  box-shadow: 0 1px 4px rgba(74,63,53,0.10);
  z-index: 3;
}
.postcard-tape::before,
.postcard-tape::after {
  content: '';
  position: absolute;
  top: 0;
  width: 8px;
  height: 100%;
  background-image:
    linear-gradient(135deg, transparent 50%, rgba(255,253,245,0.7) 50%),
    linear-gradient(225deg, transparent 50%, rgba(255,253,245,0.7) 50%);
  background-size: 8px 8px;
}
.postcard-tape::before { left: -4px; }
.postcard-tape::after { right: -4px; transform: scaleX(-1); }

@media (max-width: 720px) {
  .hero-text { left: 18px; top: 18px; max-width: 58%; }
  .hero-title { font-size: 22px; }
  .hero-sub { font-size: 16px; }
  .postcard { padding: 30px 18px 22px; margin: 0 auto 18px; }
  .postcard-inner { padding: 50px 14px 24px; }
  .smile-stickers { height: 86px; }
  .smile-stickers img { width: 56px; height: 56px; }
  .postcard-title { font-size: 26px; }
  .postcard-stamp { width: 68px; height: 80px; top: -10px; right: -8px; }
}
