/* ============================================================
   哼哼 · 账号三屏  —  登录 / 完善资料 / 我的
   暖阳 · 文房 (warm literary craft)，复用 tools.html 视觉语言
   被 auth.html / onboarding.html / mine.html 引用，覆盖 multipage.css
   字体：霞鹜文楷 (中文) + Fraunces (拉丁/数字) + PingFang (小字)
   ============================================================ */

:root {
  --font-han: "Noto Serif SC", "Songti SC", "Source Han Serif SC", serif;
  --font-display: "Fraunces", "Noto Serif SC", "Songti SC", Georgia, serif;
  --font-sans: "Noto Serif SC", ui-serif, "Songti SC", "Source Han Serif SC", serif;
  --ink-soft: color-mix(in srgb, var(--ink) 84%, transparent);
  --wechat: #2c9c4a;
  --danger: #c0573a;
}

/* [hidden] 必须压过组件自带的 display:flex（否则身份区/引导卡同时出现） */
[hidden] {
  display: none !important;
}

/* ---------- 基底 + 氛围（去掉 multipage 的网格背景，换暖底） ---------- */
body[data-page="auth"],
body[data-page="onboarding"],
body[data-page="mine"] {
  background: var(--bg);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.home-atmos {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.atmos-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
}

.atmos-glow--a {
  top: -18vh;
  left: -12vw;
  width: 72vw;
  max-width: 560px;
  height: 72vw;
  max-height: 560px;
  background: radial-gradient(circle, rgba(233, 173, 84, 0.55), transparent 70%);
  opacity: 0.6;
}

.atmos-glow--b {
  top: 40vh;
  right: -24vw;
  width: 64vw;
  max-width: 500px;
  height: 64vw;
  max-height: 500px;
  background: radial-gradient(circle, rgba(214, 119, 91, 0.32), transparent 70%);
  opacity: 0.55;
}

.atmos-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  opacity: 0.05;
  mix-blend-mode: multiply;
}

/* ---------- 手机栏容器 ---------- */
.account-shell {
  position: relative;
  z-index: 1;
  width: min(480px, 100%);
  margin: 0 auto;
  padding: clamp(20px, 6vw, 40px) clamp(20px, 6vw, 28px) 120px;
}

/* 登录/完善资料：纵向更聚焦、内容靠上 */
body[data-page="auth"] .account-shell,
body[data-page="onboarding"] .account-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: clamp(28px, 8vw, 48px);
}

/* ---------- 印章 Logo ---------- */
.seal-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
}

.seal-logo--stack {
  flex-direction: column;
  gap: 16px;
  text-align: center;
}

.logo-mark {
  display: block;
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 6px 13px rgba(176, 84, 47, 0.24));
}

.logo-mark--lg {
  width: 72px;
  height: 72px;
  filter: drop-shadow(0 10px 22px rgba(176, 84, 47, 0.26));
}

.logo-mark svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.seal-logo--stack .logo-text {
  align-items: center;
}

.logo-name {
  font-family: var(--font-han);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.logo-sub {
  margin-top: 7px;
  padding-left: 0.12em;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.44em;
  color: var(--faint);
}

/* ====================================================================
   登录 · auth.html
   ==================================================================== */
.auth-head {
  margin-bottom: clamp(22px, 6vw, 34px);
  text-align: center;
}

.auth-head .seal-logo {
  margin-bottom: 22px;
}

/* 表单卡 */
.auth-card {
  position: relative;
  padding: clamp(20px, 6vw, 26px) clamp(18px, 5vw, 24px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--brass) 7%, var(--panel)),
    var(--panel) 64%
  );
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.72) inset,
    0 18px 44px rgba(120, 92, 64, 0.12);
}

.field {
  margin-top: 16px;
}

.field:first-child {
  margin-top: 0;
}

.field-label {
  display: block;
  margin: 0 0 8px 2px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}

/* 文本/手机输入 */
.input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 6px 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.9);
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.input-wrap.is-focus {
  border-color: color-mix(in srgb, var(--brass) 62%, var(--line-strong));
  background: #fffdf8;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brass) 14%, transparent);
}

.input-prefix {
  display: inline-flex;
  align-items: center;
  padding-right: 10px;
  margin-right: 2px;
  border-right: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  white-space: nowrap;
}

.input-wrap input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 16px;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.input-wrap select {
  width: 100%;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  appearance: none;
  cursor: pointer;
}

.select-wrap {
  position: relative;
  padding-right: 42px;
}

.select-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 18px;
  width: 8px;
  height: 8px;
  border-right: 1.6px solid var(--muted);
  border-bottom: 1.6px solid var(--muted);
  transform: translateY(-68%) rotate(45deg);
  pointer-events: none;
}

.input-wrap input::placeholder {
  color: var(--faint);
  letter-spacing: 0.02em;
}

.input-wrap input:focus,
.input-wrap select:focus {
  outline: none;
}

/* 主按钮 */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 54px;
  margin-top: 20px;
  border: 0;
  border-radius: 14px;
  font-family: var(--font-han);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.16em;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(201, 116, 42, 0.34);
  transition:
    transform 0.24s cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 0.24s ease,
    filter 0.24s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #e0a23e, #c9742a);
  color: #fff;
}

.btn-secondary {
  border: 1px solid color-mix(in srgb, var(--brass) 38%, var(--line));
  background: rgba(255, 253, 248, 0.86);
  color: var(--brass);
  box-shadow: none;
}

.btn-primary:hover:not(:disabled),
.btn-secondary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(201, 116, 42, 0.4);
}

.btn-secondary:hover:not(:disabled) {
  box-shadow: 0 10px 22px rgba(201, 116, 42, 0.16);
}

.btn-primary:active,
.btn-secondary:active {
  transform: translateY(0);
}

.btn-primary:disabled,
.btn-secondary:disabled {
  cursor: default;
  filter: grayscale(0.4) opacity(0.55);
  box-shadow: none;
}

.auth-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.auth-actions .btn-primary,
.auth-actions .btn-secondary {
  margin-top: 0;
}

.auth-feedback {
  min-height: 20px;
  margin: 12px 2px 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
}

.auth-feedback.is-error {
  color: var(--danger);
}

.auth-feedback.is-success {
  color: #6f9568;
}

/* ====================================================================
   完善资料 · onboarding.html
   ==================================================================== */
.ob-head {
  margin-bottom: 24px;
  text-align: center;
}

.ob-title {
  margin: 0;
  font-family: var(--font-han);
  font-weight: 700;
  font-size: clamp(25px, 6.5vw, 31px);
  color: var(--ink);
}

.ob-lede {
  margin: 9px auto 0;
  max-width: 18em;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--muted);
}

/* 头像选择 */
.avatar-pick {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 26px;
}

.avatar-main {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--brass) 36%, var(--line));
  background: radial-gradient(120% 120% at 32% 24%, #fdf3e2, #f3d7ac);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 12px 26px rgba(176, 84, 47, 0.18);
  overflow: hidden;
}

.avatar-main span {
  font-family: var(--font-han);
  font-weight: 700;
  font-size: 40px;
  color: var(--brass);
}

.avatar-main img,
.id-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-main img {
  position: absolute;
  inset: 0;
}

.avatar-upload {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 16px;
  border: 1px solid color-mix(in srgb, var(--brass) 34%, var(--line));
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.86);
  color: var(--brass);
  font-family: var(--font-han);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease;
}

.avatar-upload:hover {
  border-color: color-mix(in srgb, var(--brass) 62%, var(--line));
  background: #fffdf8;
  transform: translateY(-1px);
}

.avatar-status {
  min-height: 18px;
  margin-top: -8px;
  color: var(--muted);
  font-family: var(--font-han);
  font-size: 12px;
  line-height: 1.5;
}

.avatar-status.is-error {
  color: var(--danger);
}

.avatar-status.is-success {
  color: #6f9568;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.avatar-swatches {
  display: flex;
  gap: 10px;
}

.avatar-swatch {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.avatar-swatch:hover {
  transform: scale(1.1);
}

.avatar-swatch.is-active {
  border-color: var(--ink);
}

/* 声型 chip */
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.chip {
  height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.85);
  color: var(--ink-soft);
  font-family: var(--font-han);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition:
    transform 0.22s cubic-bezier(0.2, 0.7, 0.2, 1),
    border-color 0.22s ease,
    background 0.22s ease,
    color 0.22s ease,
    box-shadow 0.22s ease;
}

.chip:hover {
  border-color: color-mix(in srgb, var(--brass) 42%, var(--line-strong));
}

.chip.is-active {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, #e0a23e, #c9742a);
  box-shadow: 0 8px 18px rgba(201, 116, 42, 0.3);
}

.ob-actions {
  margin-top: 30px;
  text-align: center;
}

.skip-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--muted);
  font-size: 13.5px;
  letter-spacing: 0.04em;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.skip-link:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}

/* ====================================================================
   我的 · mine.html
   ==================================================================== */
/* 身份区 */
.mine-id {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 6px 2px 2px;
}

.id-avatar {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--brass) 36%, var(--line));
  background: radial-gradient(120% 120% at 32% 24%, #fdf3e2, #f3d7ac);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 8px 18px rgba(176, 84, 47, 0.16);
  font-family: var(--font-han);
  font-weight: 700;
  font-size: 28px;
  color: var(--brass);
  overflow: hidden;
}

.id-text {
  flex: 1;
  min-width: 0;
}

.id-name {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-han);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.id-voice {
  height: 22px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--brass) 32%, var(--line));
  background: color-mix(in srgb, var(--brass) 10%, #fff);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--brass);
}

.id-phone {
  margin-top: 5px;
  font-family: var(--font-display);
  font-size: 13.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.id-edit {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 13px;
  border: 1px solid color-mix(in srgb, var(--brass) 30%, var(--line));
  border-radius: 999px;
  color: var(--brass);
  background: rgba(255, 253, 248, 0.76);
  font-family: var(--font-han);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
}

.id-edit:hover {
  border-color: color-mix(in srgb, var(--brass) 60%, var(--line));
  background: #fffdf8;
  transform: translateY(-1px);
}

/* 登录引导卡（未登录态） */
.signin-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border: 1px solid color-mix(in srgb, var(--brass) 26%, var(--line));
  border-radius: 20px;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--brass) 9%, var(--panel)),
    var(--panel) 66%
  );
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.72) inset,
    0 14px 32px rgba(120, 92, 64, 0.1);
}

.signin-card .logo-mark {
  flex-shrink: 0;
}

.signin-copy {
  flex: 1;
  min-width: 0;
}

.signin-copy h2 {
  margin: 0;
  font-family: var(--font-han);
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
}

.signin-copy p {
  margin: 4px 0 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
}

.signin-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e0a23e, #c9742a);
  color: #fff;
  font-family: var(--font-han);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  box-shadow: 0 8px 18px rgba(201, 116, 42, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.signin-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(201, 116, 42, 0.38);
}

/* 分区标题（复用 tools 语言） */
.mine-section {
  margin-top: clamp(26px, 7vw, 34px);
}

.section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 2px 16px;
}

.section-kicker {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--brass);
}

.section-title {
  margin: 0;
  font-family: var(--font-han);
  font-weight: 700;
  font-size: 19px;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.section-rule {
  flex: 1;
  height: 1px;
  margin-left: 4px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}

/* 指标卡 */
.practice-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  margin-bottom: 12px;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--brass) 22%, var(--line));
  border-radius: 16px;
  color: inherit;
  background: color-mix(in srgb, var(--brass) 7%, var(--panel));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}

.practice-total-button {
  cursor: pointer;
  font: inherit;
  text-align: left;
  appearance: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.practice-total-button:hover {
  border-color: color-mix(in srgb, var(--brass) 42%, var(--line));
  background: color-mix(in srgb, var(--brass) 10%, var(--panel));
}

.practice-total-button:active {
  transform: translateY(1px);
}

.practice-total span {
  font-family: var(--font-han);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}

.practice-total strong {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-family: var(--font-display);
  font-weight: 650;
  color: var(--brass);
}

.practice-total b {
  font-size: 28px;
  line-height: 1;
}

.practice-total i {
  font-style: normal;
  font-family: var(--font-han);
  font-size: 13px;
}

.practice-total-cta {
  flex-shrink: 0;
  font-style: normal;
  font-family: var(--font-han);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--brass);
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.metric {
  position: relative;
  padding: 16px 14px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--accent, var(--brass)) 9%, var(--panel)),
    var(--panel) 64%
  );
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 10px 24px rgba(120, 92, 64, 0.09);
}

.metric::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(
    130% 80% at 16% 0%,
    color-mix(in srgb, var(--accent, var(--brass)) 16%, transparent),
    transparent 60%
  );
}

.metric > * {
  position: relative;
  z-index: 1;
}

.metric[data-accent="gold"]  { --accent: #c2941f; }
.metric[data-accent="coral"] { --accent: #d2745a; }
.metric[data-accent="green"] { --accent: #6f9568; }

.metric-num {
  display: flex;
  align-items: baseline;
  gap: 3px;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
}

.metric-num b {
  font-weight: 600;
  font-size: 34px;
  line-height: 1;
}

.metric-num i {
  font-style: normal;
  font-size: 13px;
  color: var(--muted);
}

.metric-label {
  margin-top: 8px;
  font-family: var(--font-han);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}

/* "最近反复出现的问题"列表 */
.note-list {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--panel);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 10px 24px rgba(120, 92, 64, 0.08);
}

.note-list:focus {
  outline: none;
}

.note-list:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--brass) 42%, transparent);
  outline-offset: 3px;
}

.practice-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 16px 13px;
  background: color-mix(in srgb, var(--brass) 6%, #fff);
  border-bottom: 1px solid var(--line);
}

.practice-list-title {
  font-family: var(--font-han);
  font-size: 15.5px;
  font-weight: 800;
  color: var(--ink);
}

.practice-list-sub {
  margin-top: 3px;
  font-size: 12px;
  color: var(--muted);
}

.note-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 16px;
  border-top: 1px solid var(--line);
}

.practice-session-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 16px;
  border-top: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.42);
}

.note-row:first-child {
  border-top: 0;
}

.practice-list-head + .practice-session-row {
  border-top: 0;
}

.empty-state {
  padding: 18px 16px;
}

.empty-title {
  font-family: var(--font-han);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.empty-copy {
  margin-top: 4px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
}

.note-dot {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: var(--accent, var(--brass));
  border: 1px solid color-mix(in srgb, var(--accent, var(--brass)) 30%, var(--line));
  background: color-mix(in srgb, var(--accent, var(--brass)) 12%, #fff);
}

.note-row[data-accent="coral"] { --accent: #d2745a; }
.note-row[data-accent="gold"]  { --accent: #c2941f; }
.note-row[data-accent="rust"]  { --accent: #cf6a4f; }
.practice-session-row[data-accent="coral"] { --accent: #d2745a; }
.practice-session-row[data-accent="green"] { --accent: #6f9568; }
.practice-session-row[data-accent="gold"]  { --accent: #c2941f; }
.practice-session-row[data-accent="rust"]  { --accent: #cf6a4f; }

.note-dot svg {
  width: 18px;
  height: 18px;
}

.note-body {
  flex: 1;
  min-width: 0;
}

.note-text {
  font-family: var(--font-han);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.note-sub {
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
}

.practice-session-issue {
  margin-top: 7px;
  font-size: 12px;
  line-height: 1.45;
  color: color-mix(in srgb, var(--brass) 80%, var(--ink));
}

.note-go {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 253, 248, 0.85);
  color: var(--brass);
  font-family: var(--font-han);
  font-size: 12.5px;
  font-weight: 700;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.note-go:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--brass) 46%, var(--line-strong));
  background: color-mix(in srgb, var(--brass) 8%, #fff);
}

/* 设置列表 */
.settings-list {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--panel);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 10px 24px rgba(120, 92, 64, 0.08);
}

.setting-row {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 16px;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-han);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease;
}

.setting-row:first-child {
  border-top: 0;
}

.setting-row:hover {
  background: color-mix(in srgb, var(--brass) 5%, transparent);
}

.setting-row:active {
  background: color-mix(in srgb, var(--brass) 9%, transparent);
}

.setting-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--muted);
}

.setting-icon svg {
  width: 100%;
  height: 100%;
}

.setting-row span {
  flex: 1;
}

.setting-chev {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--faint);
}

.setting-row.is-danger {
  color: var(--danger);
}

.setting-row.is-danger .setting-icon {
  color: var(--danger);
}

/* 数据降级（未登录预览态） */
.is-locked {
  opacity: 0.5;
  filter: saturate(0.7);
  pointer-events: none;
}

/* ---------- 底部导航（暖化 + 两列） ---------- */
.bottom-tabs {
  border-color: color-mix(in srgb, var(--brass) 22%, var(--line-strong));
  background: rgba(250, 244, 232, 0.86);
  box-shadow: 0 14px 36px rgba(120, 80, 40, 0.22);
}

.bottom-tabs a {
  font-family: var(--font-han);
  font-weight: 700;
  letter-spacing: 0.14em;
}

.bottom-tabs a.is-active {
  color: #fff;
  background: linear-gradient(135deg, #e0a23e, #c9742a);
  box-shadow: 0 6px 16px rgba(201, 116, 42, 0.4);
}

/* ---------- 进场动画初始态 ---------- */
.js-anim .reveal {
  opacity: 0;
  will-change: transform, opacity;
}

@media (prefers-reduced-motion: reduce) {
  .js-anim .reveal {
    opacity: 1;
  }
}

/* ---------- 小屏微调 ---------- */
@media (max-width: 360px) {
  .metric-num b {
    font-size: 30px;
  }
  .chip {
    padding: 0 15px;
    font-size: 14px;
  }
}
