/* 稿子熟了 · Scheme A 金熟成熟 */

:root {
  --gold: #F9C545;
  --accent: #E0822D;
  --brown: #7A4A18;
  --page: #F7F3EB;
  --page-outer: #EDE4D4;
  --card: #FFFCF6;
  --ink: #1C1915;
  --mute: #8A8175;
  --line: #E8E0D2;
  --record: #E25B52;
  --record-soft: #FDECEA;
  --gold-soft: #F6EDD8;
  --gold-tint: #F3E6C8;
  --placeholder: #B7AFA4;
  --shadow: 0 8px 24px rgba(122, 74, 24, 0.08);
  --shadow-fab: 0 10px 28px rgba(224, 130, 45, 0.32);
  --app-max: 480px;
  --tabbar-height: 56px;
  --radius-card: 16px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
}

@media (min-width: 768px) {
  :root { --app-max: 520px; }
}
@media (min-width: 1280px) {
  :root { --app-max: 560px; }
}

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

html, body { height: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue",
               "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--page-outer);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  overflow: hidden;
  display: flex;
  justify-content: center;
}

button { border: none; background: none; font: inherit; color: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
input, textarea {
  font: inherit;
  color: inherit;
  user-select: text;
  -webkit-user-select: text;
}
button:disabled { cursor: default; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ===== App 壳：大屏居中列，不把手机布局拉满整屏 ===== */
#app {
  width: 100%;
  max-width: var(--app-max);
  height: 100%;
  height: 100dvh;
  min-height: 100%;
  min-height: 100dvh;
  background-color: var(--page);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  padding-top: var(--safe-top);
}

@media (min-width: 768px) {
  #app {
    box-shadow: 0 0 0 1px var(--line), 0 24px 60px rgba(28, 25, 21, 0.10);
  }
}

.view-container {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.view-container > * {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

/* ===== 导航栏 ===== */
.app-nav {
  flex-shrink: 0;
  z-index: 50;
  min-height: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  background-color: var(--card);
  border-bottom: 1px solid var(--line);
}
.app-nav.hidden { display: none; }

.nav-back {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--ink);
  flex-shrink: 0;
}
.nav-back:active { background-color: var(--gold-soft); }
.nav-back svg { width: 22px; height: 22px; }

.nav-title {
  flex: 1;
  text-align: center;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-right { width: 44px; flex-shrink: 0; }

/* ===== TabBar ===== */
.app-tabbar {
  flex-shrink: 0;
  z-index: 50;
  min-height: var(--tabbar-height);
  padding-bottom: var(--safe-bottom);
  display: flex;
  background-color: var(--card);
  border-top: 1px solid var(--line);
}
.app-tabbar.hidden { display: none; }

.tab-item {
  flex: 1;
  min-height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 0 8px;
  color: var(--mute);
}
.tab-icon { width: 22px; height: 22px; }
.tab-label { font-size: 11px; line-height: 1.2; }
.tab-item.active { color: var(--accent); }
.tab-item.active .tab-label { color: var(--brown); font-weight: 600; }

/* ===== Toast / Modal / Loading ===== */
.toast {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 24px;
  background-color: rgba(28, 25, 21, 0.88);
  color: #FFFCF6;
  border-radius: 8px;
  font-size: 14px;
  z-index: 100;
  pointer-events: none;
  max-width: calc(100% - 48px);
  text-align: center;
}
.toast.hidden { display: none; }

.modal-mask {
  position: absolute;
  inset: 0;
  background-color: rgba(28, 25, 21, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 24px;
}
.modal-mask.hidden { display: none; }

.modal-dialog {
  width: 100%;
  max-width: 300px;
  background-color: var(--card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.modal-title {
  padding: 20px 16px 8px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  color: var(--ink);
}
.modal-content {
  padding: 0 18px 16px;
  font-size: 13px;
  text-align: center;
  color: var(--mute);
  line-height: 1.55;
}
.modal-actions {
  display: flex;
  border-top: 1px solid var(--line);
}
.modal-btn {
  flex: 1;
  min-height: 48px;
  padding: 12px 16px;
  font-size: 15px;
  text-align: center;
}
.modal-btn.modal-cancel { color: var(--mute); border-right: 1px solid var(--line); }
.modal-btn.modal-cancel.hidden { display: none; }
.modal-btn.modal-confirm { color: var(--brown); font-weight: 600; }
.modal-btn.modal-confirm.is-danger { color: var(--record); }
.modal-btn:active { background-color: var(--gold-soft); }

.loading-mask {
  position: absolute;
  inset: 0;
  background-color: rgba(247, 243, 235, 0.72);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 150;
}
.loading-mask.hidden { display: none; }
.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--gold-tint);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { font-size: 14px; color: var(--mute); }

/* =====================================================
   首页
===================================================== */
.page {
  position: relative;
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.home-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
  padding-bottom: 88px;
}

.bg-gradient {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 240px;
  background:
    radial-gradient(120% 80% at 12% -10%, rgba(249, 197, 69, 0.28) 0%, rgba(249, 197, 69, 0) 55%),
    linear-gradient(180deg, #F3E6C8 0%, var(--page) 100%);
  pointer-events: none;
  z-index: 0;
}

.brand-header {
  position: relative;
  z-index: 1;
  padding: 28px 20px 20px;
}
.brand-title-wrap { position: relative; display: inline-block; }
.brand-name {
  font-size: 28px;
  font-weight: 700;
  color: var(--brown);
  letter-spacing: 0.04em;
}
.brand-underline {
  width: 56px;
  height: 5px;
  margin-top: 6px;
  background: var(--gold);
  border-radius: 3px;
}
.brand-slogan {
  margin-top: 10px;
  font-size: 14px;
  color: var(--mute);
}

.home-content { position: relative; z-index: 1; padding: 0 16px 16px; }

.empty-wrap {
  padding: 36px 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.empty-illustration {
  width: 132px;
  height: 132px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brown);
}
.empty-illustration svg { width: 120px; height: 120px; }
.empty-text-title {
  margin-top: 8px;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}
.empty-text-desc {
  margin-top: 8px;
  font-size: 13px;
  color: var(--mute);
}
.empty-cta {
  margin-top: 28px;
  min-height: 48px;
  padding: 12px 28px;
  background: var(--accent);
  color: var(--ink);
  border-radius: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-fab);
  font-size: 15px;
  font-weight: 650;
}
.empty-cta:active { transform: scale(0.97); opacity: 0.92; }
.empty-cta svg { width: 18px; height: 18px; }

.list-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 4px 12px;
}
.list-title-text { font-size: 15px; font-weight: 600; color: var(--ink); }
.list-count-badge {
  min-width: 20px;
  height: 20px;
  padding: 0 7px;
  background-color: var(--gold-soft);
  color: var(--brown);
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.script-list { display: flex; flex-direction: column; gap: 10px; }

.script-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 8px 14px 14px;
  background-color: var(--card);
  border-radius: var(--radius-card);
  border: 1px solid rgba(232, 224, 210, 0.9);
  box-shadow: var(--shadow);
  cursor: pointer;
  text-align: left;
}
.script-card:active { background-color: #F8F1E4; }
.script-icon-box {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  background-color: var(--gold-soft);
  color: var(--brown);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.script-icon-box svg { width: 20px; height: 20px; }
.script-info { flex: 1; min-width: 0; }
.script-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.script-meta {
  margin-top: 4px;
  font-size: 12px;
  color: var(--mute);
}
.script-more {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--mute);
}
.script-more:active { background-color: var(--gold-soft); }
.script-more svg { width: 20px; height: 20px; }

.fab {
  position: absolute;
  right: 20px;
  bottom: 16px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-fab);
  z-index: 40;
}
.fab.hidden { display: none; }
.fab:active { transform: scale(0.92); opacity: 0.92; }
.fab svg { width: 24px; height: 24px; }

/* 长按 / 更多 菜单 */
.sheet-mask {
  position: absolute;
  inset: 0;
  background-color: rgba(28, 25, 21, 0.4);
  z-index: 180;
}
.action-sheet {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 181;
  background-color: var(--card);
  border-radius: 16px 16px 0 0;
  padding: 12px 16px calc(var(--safe-bottom) + 12px);
  transform: translateY(100%);
  transition: transform 0.2s ease;
}
.action-sheet.show { transform: translateY(0); }
.sheet-title {
  padding: 8px 4px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sheet-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 14px;
  font-size: 15px;
  border-radius: 12px;
  margin-bottom: 8px;
  width: 100%;
}
.sheet-btn:active { filter: brightness(0.97); }
.sheet-btn svg { width: 18px; height: 18px; }
.sheet-btn-edit { color: var(--ink); background-color: var(--gold-soft); }
.sheet-btn-delete { color: var(--record); background-color: var(--record-soft); }
.sheet-btn-cancel { color: var(--mute); }

/* =====================================================
   编辑页
===================================================== */
.edit-page {
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--page);
}
.edit-input-wrap { padding: 16px 20px 8px; flex-shrink: 0; }
.edit-title {
  width: 100%;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  padding: 8px 0;
  border: none;
  outline: none;
  background: transparent;
}
.edit-title::placeholder { color: var(--placeholder); font-weight: 400; }
.edit-title-line {
  height: 1px;
  background-color: var(--line);
  margin-top: 4px;
}
.edit-body-wrap {
  flex: 1;
  min-height: 0;
  padding: 4px 20px 0;
  display: flex;
  flex-direction: column;
}
.edit-content {
  width: 100%;
  flex: 1;
  min-height: 160px;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.75;
  padding: 12px 0;
  border: none;
  outline: none;
  background: transparent;
  resize: none;
}
.edit-content::placeholder { color: var(--placeholder); }

.edit-bottom {
  flex-shrink: 0;
  padding: 10px 20px calc(var(--safe-bottom) + 12px);
  background-color: var(--card);
  border-top: 1px solid var(--line);
}
.edit-stats-bar {
  display: flex;
  gap: 12px;
  padding: 0 0 8px;
  font-size: 12px;
  color: var(--mute);
}
.edit-stat.is-over { color: var(--record); font-weight: 600; }
.edit-bottom-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.edit-hint {
  font-size: 12px;
  color: var(--mute);
  flex: 1;
  min-width: 0;
  line-height: 1.4;
}
.edit-save {
  flex: 0 0 auto;
  min-width: 148px;
  height: 44px;
  padding: 0 18px;
}

/* =====================================================
   练习工作台
===================================================== */
.practice-page {
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--page);
}
.practice-header {
  flex-shrink: 0;
  padding: 14px 20px 12px;
  background-color: transparent;
}
.practice-title-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.practice-title {
  flex: 1;
  min-width: 0;
  font-size: 17px;
  font-weight: 650;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.practice-progress {
  margin-top: 4px;
  font-size: 12px;
  color: var(--mute);
}
.practice-content-wrap {
  flex: 1;
  min-height: 0;
  padding: 4px 16px 12px;
  overflow: hidden;
  display: flex;
}
.practice-content {
  flex: 1;
  min-height: 0;
  display: flex;
}
.practice-paragraph,
.practice-hidden {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background-color: var(--card);
  border-radius: 18px;
  border: 1px solid rgba(232, 224, 210, 0.9);
  box-shadow: var(--shadow);
}
.practice-paragraph {
  padding: 22px 20px;
  font-size: 16px;
  color: var(--ink);
  line-height: 1.9;
  white-space: pre-wrap;
  word-break: break-word;
}
.practice-empty {
  text-align: center;
  color: var(--mute);
  padding: 40px 20px;
  width: 100%;
}
.practice-hidden {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  border-style: dashed;
  color: var(--brown);
}
.practice-hidden svg, .record-hidden svg { width: 88px; height: 88px; flex-shrink: 0; }
.practice-hidden-title {
  margin-top: 14px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}
.practice-hidden-desc {
  margin-top: 6px;
  font-size: 13px;
  color: var(--mute);
}

.practice-footer {
  flex-shrink: 0;
  padding: 12px 16px calc(var(--safe-bottom) + 12px);
  background-color: var(--card);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
}
.p-toggle-btn {
  min-width: 96px;
  height: 44px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 500;
}
.practice-nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.p-nav-btn {
  min-width: 44px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--card);
  border: 1.5px solid var(--line);
  color: var(--ink);
}
.p-nav-btn svg { width: 22px; height: 22px; }
#p-next {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
  box-shadow: 0 4px 12px rgba(224, 130, 45, 0.28);
}
.p-nav-btn:active { transform: scale(0.96); }
.p-nav-btn:disabled {
  background-color: var(--gold-soft);
  border-color: var(--line);
  color: var(--placeholder);
  box-shadow: none;
  opacity: 0.7;
}

/* =====================================================
   选择稿件
===================================================== */
.select-page {
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0;
}
.select-tip {
  flex-shrink: 0;
  padding: 16px 20px 8px;
  font-size: 14px;
  color: var(--mute);
}
.select-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 16px calc(var(--safe-bottom) + 20px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.select-list .script-card { padding: 14px 14px; }
.select-list .script-arrow {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #C4B8A6;
}
.select-list .script-arrow svg { width: 18px; height: 18px; }
.select-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--mute);
}
.select-empty-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  color: var(--brown);
  opacity: 0.55;
}
.select-empty-icon svg { width: 56px; height: 56px; }
.select-empty-text { font-size: 14px; }

/* =====================================================
   模拟录音
===================================================== */
.record-page {
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--page);
}
.record-title-row {
  flex-shrink: 0;
  padding: 14px 20px 12px;
}
.record-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.record-content-wrap {
  flex: 1;
  min-height: 0;
  padding: 4px 16px 12px;
  overflow: hidden;
  display: flex;
}
.record-content,
.record-hidden {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background-color: var(--card);
  border-radius: 18px;
  border: 1px solid rgba(232, 224, 210, 0.9);
  box-shadow: var(--shadow);
}
.record-content {
  padding: 20px;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.9;
  white-space: pre-wrap;
  word-break: break-word;
}
.record-hidden {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  text-align: center;
  color: var(--mute);
  border-style: dashed;
}
.record-bottom {
  flex-shrink: 0;
  padding: 12px 16px calc(var(--safe-bottom) + 12px);
  background-color: var(--card);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
}
.record-timer {
  font-size: 22px;
  font-weight: 400;
  color: var(--brown);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5px;
  min-width: 96px;
  text-align: left;
}
.record-timer.is-recording { color: var(--record); }
.record-toggle {
  width: auto;
  min-width: 88px;
  height: 44px;
  padding: 0 12px;
  font-size: 13px;
}
.record-main {
  flex: 1;
  height: 48px;
  min-height: 48px;
  font-size: 16px;
  font-weight: 650;
}

/* =====================================================
   模拟记录列表
===================================================== */
.sim-page {
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.sim-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 16px calc(var(--safe-bottom) + 24px);
}
.sim-cta-wrap { margin-bottom: 20px; }
.sim-cta-card {
  padding: 22px 20px 20px;
  background-color: var(--card);
  border-radius: 20px;
  border: 1px solid rgba(232, 224, 210, 0.9);
  box-shadow: var(--shadow);
}
.sim-cta-kicker {
  font-size: 12px;
  color: var(--mute);
}
.sim-cta-title {
  margin-top: 6px;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}
.sim-cta-desc {
  margin-top: 6px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--mute);
}
.sim-cta-btn {
  width: 100%;
  height: 48px;
  min-height: 48px;
  border-radius: 14px;
  background: var(--accent);
  color: var(--ink);
  font-size: 16px;
  font-weight: 650;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--shadow-fab);
}
.sim-cta-btn:active { transform: scale(0.98); opacity: 0.95; }
.sim-cta-btn svg { width: 18px; height: 18px; }

.sim-records-header { padding: 4px 4px 12px; }
.sim-records-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.sim-list { display: flex; flex-direction: column; gap: 10px; }
.sim-record-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 12px 14px 16px;
  background-color: var(--card);
  border-radius: var(--radius-card);
  border: 1px solid rgba(232, 224, 210, 0.9);
  box-shadow: var(--shadow);
}
.sim-record-info { flex: 1; min-width: 0; }
.sim-record-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sim-record-meta {
  margin-top: 4px;
  font-size: 12px;
  color: var(--mute);
}
.sim-record-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.sim-play-btn,
.sim-delete-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--gold-soft);
  color: var(--brown);
  border: 1px solid transparent;
}
.sim-play-btn:active { background-color: var(--gold-tint); }
.sim-play-btn.is-playing {
  background-color: var(--gold-tint);
  border-color: var(--accent);
  color: var(--brown);
}
.sim-delete-btn {
  background-color: var(--record-soft);
  color: var(--record);
}
.sim-delete-btn:active { filter: brightness(0.97); }
.sim-play-btn svg,
.sim-delete-btn svg { width: 18px; height: 18px; }

.sim-empty {
  padding: 36px 20px;
  text-align: center;
}
.sim-empty-text { font-size: 15px; color: var(--mute); font-weight: 500; }
.sim-empty-hint { margin-top: 6px; font-size: 12px; color: var(--placeholder); }

/* =====================================================
   通用按钮
===================================================== */
.btn-primary {
  height: 48px;
  min-height: 44px;
  background: var(--accent);
  color: var(--ink);
  border-radius: 24px;
  font-size: 16px;
  font-weight: 650;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-fab);
}
.btn-primary:active { transform: scale(0.97); opacity: 0.92; }
.btn-primary[disabled] {
  background: var(--gold-tint);
  color: var(--mute);
  box-shadow: none;
}

.btn-secondary {
  height: 44px;
  min-height: 44px;
  background-color: var(--gold-soft);
  color: var(--brown);
  border-radius: 22px;
  font-size: 15px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-secondary:active { opacity: 0.85; }

.btn-danger {
  height: 48px;
  min-height: 44px;
  background-color: var(--record);
  color: #FFFFFF;
  border-radius: 24px;
  font-size: 16px;
  font-weight: 650;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(226, 91, 82, 0.28);
}
.btn-danger:active { transform: scale(0.97); opacity: 0.92; }
.btn-danger[disabled] {
  opacity: 0.65;
  box-shadow: none;
}

.hidden { display: none !important; }

/* 矮屏 / 手机横屏：压缩品牌区与留白 */
@media (max-height: 500px) {
  .brand-header { padding: 16px 20px 12px; }
  .brand-name { font-size: 22px; }
  .empty-illustration { width: 88px; height: 88px; }
  .empty-illustration svg { width: 80px; height: 80px; }
  .practice-paragraph,
  .record-content { padding: 14px 16px; }
  .sim-cta-card { padding: 16px; }
  .fab { width: 48px; height: 48px; }
}
