/* 口播教练 — 苹果式简约设计：大量留白、清晰层级、低饱和暖色点缀 */

:root {
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;
  --bg: #fbfbfd;
  --bg-soft: #f5f5f7;
  --accent: #c05b2e;        /* 暖陶土色，唯一强调色 */
  --accent-hover: #a94e26;
  --filler: #d92d20;        /* 填充词红 */
  --hedge: #e8890c;         /* 犹豫词橙 */
  --vague: #b7791f;         /* 笼统词暗黄 */
  --good: #2e7d32;          /* 亮点绿 */
  --radius: 18px;
  --shadow: 0 4px 24px rgba(0,0,0,.06);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro SC", "PingFang SC",
    "Helvetica Neue", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

/* ---------- 导航 ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(251,251,253,.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,.05);
}
.nav-inner {
  max-width: 1080px; margin: 0 auto; padding: 14px 24px;
  display: flex; justify-content: space-between; align-items: center;
}
.logo { font-size: 17px; font-weight: 600; letter-spacing: .5px; }

/* ---------- 按钮 ---------- */
.btn {
  font-family: inherit; border: none; cursor: pointer;
  border-radius: 980px; font-weight: 500;
  transition: background .2s, transform .15s;
}
.btn:active { transform: scale(.97); }
.btn-small { background: var(--accent); color: #fff; padding: 8px 20px; font-size: 14px; }
.btn-small:hover { background: var(--accent-hover); }
.btn-hero { background: var(--accent); color: #fff; padding: 16px 44px; font-size: 18px; }
.btn-hero:hover { background: var(--accent-hover); }
.btn-end { background: var(--text); color: #fff; padding: 10px 24px; font-size: 14px; }
.btn-ghost { background: transparent; border: 1px solid #d2d2d7; color: var(--text); padding: 10px 24px; font-size: 14px; }
.btn-ghost:hover { background: var(--bg-soft); }

/* ---------- 屏幕切换 ---------- */
.screen { display: none; min-height: 100vh; padding-top: 56px; }
.screen.active { display: block; }

/* ---------- 首页 ---------- */
.hero { text-align: center; padding: 110px 24px 80px; max-width: 820px; margin: 0 auto; }
.hero-eyebrow { color: var(--accent); font-size: 15px; font-weight: 600; letter-spacing: 1px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(40px, 7vw, 68px); font-weight: 700; line-height: 1.15; letter-spacing: -1px; margin-bottom: 24px; }
.hero-sub { color: var(--text-2); font-size: 19px; max-width: 620px; margin: 0 auto 40px; }
.hero-note { color: var(--text-3); font-size: 13px; margin-top: 16px; }

.features {
  max-width: 1080px; margin: 0 auto; padding: 40px 24px 80px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px;
}
.feature-card { background: var(--bg-soft); border-radius: var(--radius); padding: 36px 32px; }
.feature-num { color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: 2px; margin-bottom: 14px; }
.feature-card h3 { font-size: 20px; margin-bottom: 10px; }
.feature-card p { color: var(--text-2); font-size: 15px; }

.legend-demo { max-width: 760px; margin: 0 auto; padding: 20px 24px 100px; text-align: center; }
.legend-demo h2 { font-size: 30px; margin-bottom: 32px; letter-spacing: -.5px; }
.legend-line {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 32px; font-size: 19px; text-align: left; line-height: 2;
}
.legend-tags { display: flex; gap: 24px; justify-content: center; margin-top: 20px; color: var(--text-2); font-size: 13px; flex-wrap: wrap; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
.dot-filler { background: var(--filler); }
.dot-hedge { background: var(--hedge); }
.dot-vague { background: var(--vague); }

.footer { text-align: center; padding: 40px 24px; color: var(--text-3); font-size: 12px; border-top: 1px solid rgba(0,0,0,.05); }

/* ---------- 高亮样式（字幕 & 示例共用） ---------- */
.hl-filler { color: var(--filler); border-bottom: 2px solid var(--filler); padding-bottom: 1px; }
.hl-hedge { color: var(--hedge); border-bottom: 2px solid var(--hedge); padding-bottom: 1px; }
.hl-vague { color: var(--vague); border-bottom: 2px dashed var(--vague); padding-bottom: 1px; position: relative; cursor: help; }
.hl-vague:hover::after {
  content: attr(data-tip); position: absolute; left: 50%; transform: translateX(-50%);
  bottom: calc(100% + 6px); white-space: nowrap; background: var(--text); color: #fff;
  font-size: 12px; padding: 6px 12px; border-radius: 8px; z-index: 10; pointer-events: none;
}

/* ---------- 练习页 ---------- */
.record-topbar {
  max-width: 1080px; margin: 0 auto; padding: 20px 24px;
  display: flex; justify-content: space-between; align-items: center;
}
.rec-status { display: flex; align-items: center; gap: 10px; font-size: 17px; font-variant-numeric: tabular-nums; color: var(--text-2); }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--filler); animation: pulse 1.5s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

.record-stage {
  max-width: 900px; margin: 0 auto; padding: 40px 24px 60px;
  min-height: 46vh; position: relative;
}
.subtitle-area { font-size: clamp(22px, 3.4vw, 32px); font-weight: 500; line-height: 1.9; letter-spacing: .3px; }
.subtitle-placeholder { color: var(--text-3); font-size: 18px; font-weight: 400; }
.subtitle-seg { margin-bottom: 12px; }
.interim { color: var(--text-3); font-size: clamp(18px, 2.6vw, 24px); margin-top: 8px; min-height: 1.6em; }

.coach-tip {
  position: fixed; top: 76px; left: 50%; transform: translateX(-50%) translateY(-8px);
  background: var(--text); color: #fff; font-size: 16px; font-weight: 500;
  padding: 12px 28px; border-radius: 980px; box-shadow: var(--shadow);
  opacity: 0; transition: opacity .3s, transform .3s; pointer-events: none; z-index: 50;
}
.coach-tip.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.record-stats {
  position: sticky; bottom: 0;
  display: flex; justify-content: center; gap: clamp(20px, 6vw, 64px);
  padding: 20px 24px calc(20px + env(safe-area-inset-bottom));
  background: rgba(251,251,253,.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(0,0,0,.05);
}
.stat { text-align: center; }
.stat-num { display: block; font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat-filler { color: var(--filler); }
.stat-hedge { color: var(--hedge); }
.stat-vague { color: var(--vague); }
.stat-label { font-size: 12px; color: var(--text-3); }

/* ---------- 报告页 ---------- */
.report-loading { text-align: center; padding: 160px 24px; color: var(--text-2); }
.spinner {
  width: 36px; height: 36px; margin: 0 auto 20px;
  border: 3px solid #e8e8ed; border-top-color: var(--accent);
  border-radius: 50%; animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.report-content { max-width: 760px; margin: 0 auto; padding: 60px 24px 100px; }
.report-head { display: flex; align-items: center; gap: 32px; margin-bottom: 48px; flex-wrap: wrap; }
.report-head h2 { font-size: 28px; letter-spacing: -.5px; }
.report-oneline { color: var(--text-2); margin-top: 8px; font-size: 16px; }

.score-ring { position: relative; width: 120px; height: 120px; flex-shrink: 0; }
.score-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: #e8e8ed; stroke-width: 8; }
.ring-fg { fill: none; stroke: var(--accent); stroke-width: 8; stroke-linecap: round;
  stroke-dasharray: 326.7; stroke-dashoffset: 326.7; transition: stroke-dashoffset 1.2s ease; }
.score-ring span {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 32px; font-weight: 700;
}

.report-dims { display: grid; gap: 16px; margin-bottom: 48px; }
.dim-row { background: var(--bg-soft); border-radius: 14px; padding: 20px 24px; }
.dim-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.dim-name { font-weight: 600; font-size: 15px; }
.dim-score { color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.dim-bar { height: 4px; background: #e8e8ed; border-radius: 2px; margin-bottom: 12px; overflow: hidden; }
.dim-bar i { display: block; height: 100%; background: var(--accent); border-radius: 2px; width: 0; transition: width 1s ease; }
.dim-comment { color: var(--text-2); font-size: 14px; }

.report-block { margin-bottom: 40px; }
.report-block h3 { font-size: 20px; margin-bottom: 16px; letter-spacing: -.3px; }
.report-list { padding-left: 22px; color: var(--text-2); font-size: 15px; }
.report-list li { margin-bottom: 10px; }
#report-golden div {
  border-left: 3px solid var(--good); padding: 4px 0 4px 16px;
  color: var(--text); margin-bottom: 12px; font-size: 15px;
}
.report-rewrite-block { background: var(--bg-soft); border-radius: var(--radius); padding: 32px; }
.rewrite-hint { color: var(--text-3); font-size: 13px; margin: -8px 0 16px; }
.report-rewrite { font-size: 16px; line-height: 2; white-space: pre-wrap; margin-bottom: 20px; }
.report-cta { text-align: center; margin-top: 60px; }
.report-error { text-align: center; padding: 120px 24px; color: var(--filler); font-size: 15px; }

@media (max-width: 640px) {
  .desktop-br { display: none; }
  .report-head { gap: 20px; }
  .hero { padding-top: 80px; }
}
