:root {
  /* 暖灰底 + 苔绿主色（京都喫茶店：安静 · 克制 · 私密） */
  --bg: #e9e6df;
  --surface: #f3f1ea;
  --ink: #3b3a35;
  --muted: #8c887e;
  --line: #ddd8cd;
  --accent: #6f7d5a;        /* 苔绿 */
  --accent-deep: #566546;   /* 深苔绿（录音中 / 强调） */
  --accent-soft: #b3bda3;
  --radius: 14px;
  --space: 20px;
  font-family: "Noto Serif SC", "Songti SC", "Yu Mincho", "Hiragino Mincho ProN", "Source Han Serif SC", "SimSun", serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

#app {
  max-width: 560px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 0 var(--space) calc(var(--space) * 3);
}

/* 系列切换条：回转 Hub + 兄弟站（安静、不抢主视觉） */
.series-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0 8px;
  border-bottom: 1px solid var(--line);
  font-size: 11px; letter-spacing: .08em;
}
.series-bar a { color: var(--muted); text-decoration: none; transition: color .15s; }
.series-bar a:hover { color: var(--accent); }
.series-bar .series-name { color: #a9a49a; }

/* 顶栏 */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0 16px;
  position: sticky; top: 0; background: var(--bg); z-index: 10;
}
.brand { font-size: 18px; font-weight: 600; letter-spacing: .04em; }
.brand-sub { color: var(--accent); font-weight: 400; margin-left: 4px; }
.nav { display: flex; gap: 4px; }
.nav-btn {
  border: none; background: transparent; color: var(--muted);
  font-size: 14px; padding: 6px 10px; border-radius: 999px; cursor: pointer;
  transition: all .2s;
}
.nav-btn.active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.05); }

.view { padding-top: 8px; }

/* 问候 */
.greeting-jp { font-size: 13px; color: var(--accent); letter-spacing: .08em; }
.greeting-cn { font-size: 22px; font-weight: 500; margin: 4px 0 18px; }
.quote {
  font-size: 13px; color: var(--muted); border-left: 3px solid var(--accent-soft);
  padding: 6px 0 6px 12px; margin: 0 0 22px; font-style: italic;
}

/* 目标 */
.goal {
  background: var(--surface); border-radius: var(--radius);
  padding: 14px 16px; margin-bottom: 18px; border: 1px solid var(--line);
}
.goal-top { display: flex; align-items: center; justify-content: space-between; }
.goal-label { font-size: 14px; }
.goal-bar {
  height: 8px; background: var(--line); border-radius: 999px;
  overflow: hidden; margin: 10px 0 8px;
}
.goal-bar-fill {
  height: 100%; background: var(--accent); border-radius: 999px;
  transition: width .35s ease;
}
.goal-stats { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.goal-stats b { color: var(--accent); }
.goal-makeup { font-size: 12px; color: var(--accent-deep); margin-top: 6px; }

/* 话题难度标签 */
.lv-tag {
  display: inline-block; font-size: 11px; line-height: 1; padding: 3px 7px;
  border-radius: 999px; margin-bottom: 6px; color: #fff;
}
.lv-light { background: #9aa884; }
.lv-medium { background: #7d8c63; }
.lv-heavy { background: #566546; }

/* 话题卡 */
.topic-card {
  background: var(--surface); border-radius: var(--radius);
  padding: 18px 18px 16px; margin-bottom: 18px;
  border: 1px solid var(--line);
}
.topic-label { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.topic-text { font-size: 17px; line-height: 1.7; margin-bottom: 12px; }
.topic-actions { display: flex; gap: 8px; }
.link-btn {
  border: none; background: transparent; color: var(--accent);
  font-size: 13px; cursor: pointer; padding: 4px 6px;
}
.link-btn:hover { text-decoration: underline; }

/* 录音 */
.record-zone { text-align: center; padding: 10px 0 8px; }
.rec-hint { font-size: 12px; color: var(--muted); margin-top: 10px; }
.rec-timer { font-size: 14px; color: var(--muted); margin: 8px 0; font-variant-numeric: tabular-nums; }
.wave-canvas { width: 100%; height: 72px; display: block; margin: 6px 0; }

.rec-btn {
  width: 84px; height: 84px; border-radius: 50%;
  border: none; cursor: pointer; margin: 6px auto;
  background: var(--accent); color: #fff; font-size: 30px;
  box-shadow: 0 6px 18px rgba(111,125,90,.32);
  transition: transform .15s, background .2s;
  user-select: none; -webkit-user-select: none; touch-action: none;
}
.rec-btn:active { transform: scale(.95); }
.rec-btn.recording { background: var(--accent-deep); animation: pulse 1.4s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(86,101,70,.4); } 50% { box-shadow: 0 0 0 14px rgba(86,101,70,0); } }

/* 日志列表 */
.log-item {
  background: var(--surface); border-radius: var(--radius);
  padding: 14px 16px; margin-bottom: 12px; border: 1px solid var(--line);
}
.log-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.log-date { font-size: 13px; color: var(--muted); }
.log-topic { font-size: 14px; color: var(--ink); margin-bottom: 8px; }
.log-meta { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.log-controls { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.mini-btn {
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  font-size: 12px; padding: 5px 10px; border-radius: 999px; cursor: pointer;
}
.mini-btn:hover { border-color: var(--accent); color: var(--accent); }

.player-bar { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.play-btn {
  width: 34px; height: 34px; border-radius: 50%; border: none;
  background: var(--accent); color: #fff; cursor: pointer; font-size: 14px;
}
.player-time { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* 导出 */
.section-title { font-size: 15px; font-weight: 600; margin: 4px 0 14px; }
.voice-profile {
  background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--accent); border-radius: 10px;
  padding: 16px 18px; margin-bottom: 22px;
}
.vp-head { font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: .03em; margin-bottom: 12px; }
.vp-stats { display: flex; gap: 28px; }
.vp-stat { display: flex; flex-direction: column; }
.vp-num { font-size: 24px; font-weight: 800; color: var(--ink); line-height: 1.1; }
.vp-label { font-size: 12px; color: var(--muted); margin-top: 2px; }
.vp-topics { margin-top: 12px; font-size: 13px; color: var(--muted); line-height: 1.8; }
.vp-chip {
  display: inline-block; background: var(--bg); border: 1px solid var(--line);
  border-radius: 999px; padding: 2px 10px; margin: 0 4px 4px 0; color: var(--ink);
}
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
select, .big-btn {
  font-size: 14px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); padding: 10px 12px;
}
select { width: 100%; }
.big-btn {
  width: 100%; background: var(--accent); color: #fff; border: none;
  cursor: pointer; font-weight: 500; margin-top: 8px;
}
.big-btn:active { transform: scale(.99); }
.range-note { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* 关于页 */
.about { padding-top: 8px; }
.about-hero { text-align: center; padding: 18px 0 6px; }
.about-jp { font-size: 13px; color: var(--accent); letter-spacing: .1em; }
.about-title { font-size: 24px; font-weight: 500; margin: 6px 0 4px; letter-spacing: .04em; }
.about-sub { font-size: 12px; color: var(--muted); }

.promise {
  margin: 22px 0; padding: 22px 20px;
  background: var(--surface); border-radius: var(--radius);
  border: 1px solid var(--line); text-align: center;
}
.promise-line {
  font-size: 20px; font-weight: 500; margin: 0 0 10px;
  letter-spacing: .08em; color: var(--ink);
}
.promise-line:last-of-type { margin-bottom: 0; }
.promise-leave {
  font-size: 13px; color: var(--muted); margin: 16px 0 0;
  padding-top: 14px; border-top: 1px dashed var(--line);
}

.story { margin: 0 0 22px; }
.story p {
  font-size: 15px; line-height: 1.8; margin: 0 0 12px; color: var(--ink);
}

.gourmet {
  margin: 0 0 22px; padding: 18px 18px 4px;
  background: var(--surface); border-radius: var(--radius);
  border: 1px solid var(--line); border-left: 3px solid var(--accent-soft);
}
.gourmet-title {
  font-size: 15px; font-weight: 600; margin: 0 0 12px;
  color: var(--accent-deep);
}
.gourmet p {
  font-size: 14px; line-height: 1.8; margin: 0 0 14px; color: var(--ink);
}

.about-foot { text-align: center; margin: 10px 0 6px; }
.about-foot-note { font-size: 12px; color: var(--muted); margin: 0 0 8px; }
.about-quote {
  font-size: 14px; color: var(--ink); letter-spacing: .06em;
  font-weight: 500; margin: 0;
}

.empty { text-align: center; color: var(--muted); font-size: 14px; padding: 40px 0; }

/* 母品牌页脚：安静的归属标注，不抢子品牌 slogan 的视觉重心 */
.site-footer {
  margin-top: 44px; padding-top: 22px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.mother-slogan {
  font-size: 14px; color: var(--ink); letter-spacing: .06em;
  font-weight: 500; margin: 0 0 6px;
}
.series-tag {
  font-size: 11px; color: var(--muted); letter-spacing: .04em; margin: 0;
}
.foot-links { margin-top: 10px; }
.foot-links a {
  display: inline-block; font-size: 12px; color: var(--muted); text-decoration: none;
  margin: 0 8px; transition: color .15s;
}
.foot-links a:hover { color: var(--accent); }
.brand-line {
  font-size: 11px; color: var(--muted); letter-spacing: .1em;
  margin: 0 0 12px;
}

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px;
  font-size: 13px; z-index: 100; opacity: 0; transition: opacity .25s;
}
.toast.show { opacity: 1; }
