/* ========== 变量 ========== */
:root {
  --bg-color: #f5f0e1;
  --card-bg: #ffffff;
  --card-inner: #faf8f5;
  --primary-red: #c0392b;
  --primary-indigo: #2c3e50;
  --primary-yellow: #e6b422;
  --success-green: #27ae60;
  --error-red: #e74c3c;
  --btn-wood: #8b5e3c;
  --text-main: #3e2723;
  --text-sub: #8d6e63;
  --border: #d4c5a9;
  --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-heavy: 0 4px 20px rgba(0, 0, 0, 0.08);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --header-h: 48px;
  --tabbar-h: 50px;
  --text-min: 16px;
  --pc-content-single-w: 800px;
  --pc-content-w: 658px;
  --pc-sidebar-w: 350px;
  --pc-column-gap: 16px;
  --pc-layout-w: 1024px;
  --pc-gutter-x: 16px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

[hidden] { display: none !important; }

html {
  font-size: var(--text-min);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: #fff;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: var(--text-min);
  background: #fff;
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

input, select, textarea, button, option, label, summary, details {
  font-size: var(--text-min);
}

button { font: inherit; cursor: pointer; border: none; background: none; }
a { color: var(--btn-wood); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ========== 主容器 ========== */
.app-container {
  width: 100%;
  max-width: 480px;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ========== 顶部标题栏 ========== */
.header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: var(--safe-top) 12px 0;
  min-height: calc(var(--header-h) + var(--safe-top));
  background: #fff;
  border-bottom: 1px solid rgba(212, 197, 169, 0.4);
  z-index: 10;
}

.header-title {
  flex: 1;
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-main);
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  border-radius: 10px;
  flex-shrink: 0;
}

.icon-btn:active { background: rgba(0, 0, 0, 0.05); }
.icon-btn.is-muted { opacity: 0.45; }
.icon-btn.is-muted .sound-on { display: none; }
.icon-btn:not(.is-muted) .sound-off { display: none; }

.header-icon { width: 22px; height: 22px; fill: currentColor; }

/* ========== PC 顶部通栏导航（默认隐藏） ========== */
.pc-nav { display: none; }

/* ========== 主内容 ========== */
.main-wrap {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-color: var(--bg-color);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(230, 180, 34, 0.1), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='30' viewBox='0 0 60 30'%3E%3Cpath d='M0 15c8-6 16-6 24 0s16 6 24 0' fill='none' stroke='%23d4c5a9' stroke-width='0.8' opacity='0.25'/%3E%3C/svg%3E");
  background-size: auto, 60px 30px;
}

.main-content {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0 16px;
  -webkit-overflow-scrolling: touch;
}

.main-content.is-article-mode .game-screen {
  display: none;
}

.game-screen {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 0;
}

.page-head {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(212, 197, 169, 0.35);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: var(--shadow-light);
}

.page-head h1 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main);
}

.page-head-sub {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-sub);
  margin-top: 4px;
}

.game-screen:has(#learnCard:not([hidden])) .page-head {
  display: none;
}

/* ========== 模式切换 ========== */
.mode-switch {
  display: flex;
  gap: 8px;
  padding: 2px 0;
}

.mode-btn {
  flex: 1;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text-sub);
  font-weight: 500;
}

.mode-btn.active {
  background: var(--btn-wood);
  color: #fff;
  border-color: var(--btn-wood);
}

.learn-type-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px 0 2px;
}

.type-filter-btn {
  flex: 1 1 calc(33.33% - 6px);
  min-width: 72px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text-sub);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.type-filter-btn.active {
  background: rgba(139, 94, 60, 0.14);
  color: var(--btn-wood);
  border-color: rgba(139, 94, 60, 0.45);
}

/* ========== 卡片 ========== */
.phrase-card {
  position: relative;
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: var(--shadow-heavy);
  padding: 20px 16px 16px;
  border: 1px solid rgba(212, 197, 169, 0.3);
  overflow: hidden;
}

.card-deco {
  position: absolute;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--primary-yellow), transparent);
  opacity: 0.5;
}

.card-deco-top { top: 0; }
.card-deco-bottom { bottom: 0; }

.type-tag {
  display: inline-block;
  font-size: 16px;
  color: var(--btn-wood);
  background: rgba(139, 94, 60, 0.1);
  border: 1px solid rgba(139, 94, 60, 0.2);
  border-radius: 6px;
  padding: 2px 8px;
  margin-bottom: 12px;
}

.phrase-first {
  font-size: 24px;
  font-weight: 600;
  text-align: center;
  color: var(--text-main);
  line-height: 1.5;
  margin-bottom: 16px;
  padding: 8px 0;
}

.phrase-full {
  font-size: 20px;
  font-weight: 600;
  text-align: center;
  color: var(--text-main);
  line-height: 1.5;
  margin-bottom: 16px;
}

.input-area { display: flex; flex-direction: column; gap: 10px; }

.answer-input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card-inner);
  color: var(--text-main);
  font-size: 18px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.answer-input:focus {
  border-color: var(--primary-yellow);
  box-shadow: 0 0 0 3px rgba(230, 180, 34, 0.2);
}

.answer-input:disabled {
  opacity: 0.6;
  background: #f0ebe0;
}

.btn-submit {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-red);
  color: #fff;
  font-size: 18px;
  font-weight: 600;
}

.btn-submit:active { opacity: 0.9; }
.btn-submit:disabled { opacity: 0.55; }

.btn-submit.is-next {
  background: var(--success-green);
  border-color: var(--success-green);
}

.btn-submit.is-next:active { filter: brightness(0.95); }

/* ========== 反馈 ========== */
.feedback-area {
  margin-top: 14px;
  padding: 12px;
  border-radius: 12px;
  background: var(--card-inner);
  border: 1px solid rgba(212, 197, 169, 0.4);
}

.feedback-area.is-correct {
  background: rgba(39, 174, 96, 0.08);
  border-color: rgba(39, 174, 96, 0.3);
  animation: flash-green 0.5s ease;
}

.feedback-area.is-wrong {
  background: rgba(231, 76, 60, 0.08);
  border-color: rgba(231, 76, 60, 0.3);
  animation: flash-red 0.5s ease;
}

@keyframes flash-green {
  0%, 100% { box-shadow: none; }
  50% { box-shadow: 0 0 0 4px rgba(39, 174, 96, 0.25); }
}

@keyframes flash-red {
  0%, 100% { box-shadow: none; }
  50% { box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.25); }
}

.feedback-title {
  font-size: 18px;
  font-weight: 600;
  text-align: center;
}

.feedback-area.is-correct .feedback-title { color: var(--success-green); }
.feedback-area.is-wrong .feedback-title { color: var(--error-red); }

.feedback-full {
  font-size: 18px;
  text-align: center;
  margin-top: 8px;
  color: var(--text-main);
  font-weight: 500;
}

.feedback-meaning {
  font-size: 16px;
  color: var(--text-sub);
  margin-top: 8px;
  line-height: 1.7;
}

.feedback-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 10px;
}

.btn-text {
  color: var(--btn-wood);
  font-size: 16px;
  text-decoration: underline;
  padding: 4px 8px;
}

.hint-link {
  display: block;
  width: 100%;
  margin-top: 12px;
  text-align: center;
  color: var(--text-sub);
  font-size: 16px;
  padding: 8px;
}

.hint-line {
  margin-top: 8px;
  padding: 10px 12px;
  background: rgba(230, 180, 34, 0.12);
  border-radius: 10px;
  color: var(--btn-wood);
  font-size: 16px;
  text-align: center;
}

.hint-line.is-answer {
  background: rgba(192, 57, 43, 0.08);
  border: 1px dashed rgba(192, 57, 43, 0.35);
  color: var(--primary-red);
  cursor: pointer;
}

.hint-line.is-answer:active {
  background: rgba(192, 57, 43, 0.14);
}

/* ========== 学习卡片 ========== */
.learn-body { margin-bottom: 14px; }

.learn-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--btn-wood);
  margin: 10px 0 4px;
}

.learn-meaning, .learn-example, .learn-origin {
  font-size: 16px;
  color: var(--text-sub);
  line-height: 1.7;
}

.learn-origin { font-size: 16px; opacity: 0.9; }

.learn-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}

.btn-nav {
  flex: 1;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text-main);
  font-weight: 500;
}

.btn-nav:active { background: var(--card-inner); }

.learn-pos {
  font-size: 16px;
  color: var(--text-sub);
  white-space: nowrap;
  padding: 0 4px;
}

.btn-master {
  width: 100%;
  margin-top: 10px;
  height: 40px;
  border-radius: 10px;
  border: 1px dashed var(--border);
  color: var(--text-sub);
  font-size: 16px;
}

.btn-master.is-done {
  border-style: solid;
  border-color: var(--success-green);
  color: var(--success-green);
  background: rgba(39, 174, 96, 0.06);
}

/* ========== 状态栏 ========== */
.status-bar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 10px 8px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  border: 1px solid rgba(212, 197, 169, 0.3);
  font-size: 16px;
  color: var(--text-sub);
}

.status-bar strong { color: var(--primary-red); font-size: 18px; }

.combo-badge {
  margin-left: 4px;
  color: var(--primary-yellow);
  font-size: 16px;
}

/* ========== 操作按钮 ========== */
.action-buttons {
  display: flex;
  gap: 10px;
}

.action-btn {
  flex: 1;
  height: 44px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text-main);
  font-weight: 500;
}

.action-btn:active { background: var(--card-inner); }

.daily-badge {
  text-align: center;
  font-size: 16px;
  color: var(--btn-wood);
  padding: 8px 12px;
  background: rgba(230, 180, 34, 0.12);
  border-radius: 10px;
  border: 1px solid rgba(230, 180, 34, 0.25);
}

.daily-badge.is-done {
  color: var(--success-green);
  background: rgba(39, 174, 96, 0.08);
  border-color: rgba(39, 174, 96, 0.25);
}

/* ========== 广告位 ========== */
.ad-slot {
  display: none;
  min-height: 60px;
  max-height: 60px;
  margin: 10px 0;
  color: #999;
  font-size: 14px;
  border-radius: 8px;
  border: 1px dashed #ccc;
  background: #fafafa;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.ad-slot:not(:empty) {
  display: flex;
  flex: 0 0 60px;
}

/* ========== 折叠教程 ========== */
.guide-fold {
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: var(--shadow-light);
  border: 1px solid rgba(0, 0, 0, 0.03);
  overflow: hidden;
  margin-bottom: 8px;
}

.guide-fold summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.guide-fold summary::-webkit-details-marker { display: none; }
.guide-fold summary::after { content: "展开"; color: var(--text-sub); }
.guide-fold[open] summary::after { content: "收起"; }

.guide-body { padding: 0 16px 16px; }
.guide-body p { color: var(--text-sub); line-height: 1.8; margin-bottom: 14px; }
.guide-body h3 { color: var(--primary-indigo); font-weight: 600; margin: 18px 0 10px; }
.guide-body ul, .guide-body ol { padding-left: 20px; margin-bottom: 14px; color: var(--text-sub); line-height: 1.8; }
.guide-body li { margin-bottom: 8px; }

.qa details {
  background: var(--card-inner);
  border: 1px solid rgba(0, 0, 0, 0.03);
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 10px;
}

.qa summary { cursor: pointer; font-weight: 500; }
.qa p { margin-top: 10px; color: var(--text-sub); }

.usage-panel,
.sample-panel {
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: var(--shadow-light);
  border: 1px solid rgba(212, 197, 169, 0.3);
  padding: 16px;
  margin-bottom: 10px;
}

.panel-heading {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-indigo);
  margin-bottom: 10px;
  padding-left: 12px;
  position: relative;
}

.panel-heading::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 16px;
  background: var(--primary-red);
  border-radius: 2px;
}

.panel-lead {
  color: var(--text-sub);
  line-height: 1.8;
  margin-bottom: 12px;
}

.usage-steps {
  list-style: none;
  counter-reset: usage-step;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.usage-step {
  counter-increment: usage-step;
  padding: 10px 12px 10px 40px;
  background: var(--card-inner);
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.03);
  color: var(--text-sub);
  line-height: 1.7;
  position: relative;
}

.usage-step::before {
  content: counter(usage-step);
  position: absolute;
  left: 12px;
  top: 10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(230, 180, 34, 0.2);
  color: var(--btn-wood);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.usage-step strong { color: var(--text-main); }

.feature-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feature-tag {
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(139, 94, 60, 0.08);
  border: 1px solid rgba(139, 94, 60, 0.18);
  color: var(--btn-wood);
  font-size: 14px;
}

.sample-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sample-card {
  background: var(--card-inner);
  border-radius: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.sample-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
}

.sample-desc {
  font-size: 14px;
  color: var(--text-sub);
  margin-bottom: 8px;
  line-height: 1.6;
}

.sample-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sample-list li {
  font-size: 15px;
  color: var(--text-sub);
  line-height: 1.6;
  padding-left: 12px;
  position: relative;
}

.sample-list li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--btn-wood);
  font-weight: 700;
}

/* ========== 文章视图 ========== */
.article-view {
  display: none;
  flex: 0 0 auto;
  overflow: visible;
  background: transparent;
  padding: 8px 0 16px;
  line-height: 1.8;
  margin: 0;
}

.article-view.is-active { display: block; }

.article-view h2 {
  font-size: 22px;
  margin-bottom: 20px;
  padding-left: 12px;
  position: relative;
}

.article-view h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 18px;
  background: var(--primary-red);
  border-radius: 2px;
}

.article-view h3 { margin-top: 18px; margin-bottom: 10px; color: var(--primary-indigo); font-size: 18px; font-weight: 600; }
.article-view h4 { margin-top: 18px; margin-bottom: 10px; color: var(--primary-indigo); font-size: 18px; }
.article-view p,
.article-view ul:not(.history-list),
.article-view ol { margin-bottom: 16px; color: var(--text-sub); }
.article-view ul:not(.history-list),
.article-view ol { padding-left: 20px; }

.panel-sub { font-size: 16px; color: var(--text-sub); margin-bottom: 16px; }

/* ========== 历史记录 ========== */
.history-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.history-empty {
  text-align: center;
  color: var(--text-sub);
  font-size: 16px;
  padding: 24px 0;
}

.history-list li {
  background: var(--card-inner);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.history-item.is-live {
  border-color: rgba(39, 174, 96, 0.35);
  background: rgba(39, 174, 96, 0.06);
}

.history-item.is-live .history-date {
  color: var(--success-green);
}

.history-left { display: flex; flex-direction: column; gap: 4px; }
.history-title { font-weight: 500; color: var(--text-main); }
.history-date { color: #aaa; font-size: 16px; }
.history-score-num { font-size: 20px; font-weight: bold; color: var(--primary-red); }
.history-score-label { font-size: 16px; color: var(--text-sub); text-align: right; }

.site-footnote {
  background: var(--card-inner);
  color: var(--text-sub);
  padding: 20px;
  text-align: center;
  line-height: 1.8;
  margin: 16px 0 8px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.site-footnote p { margin-bottom: 8px; }
.site-footnote p:last-child { margin-bottom: 0; opacity: 0.85; }

/* ========== TabBar ========== */
.tab-bar {
  order: 999;
  flex-shrink: 0;
  display: flex;
  height: calc(var(--tabbar-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: #ffffff;
  border-top: 1px solid rgba(212, 197, 169, 0.45);
  box-shadow: 0 -2px 12px rgba(62, 39, 35, 0.04);
  z-index: 20;
}

.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-sub);
  min-height: var(--tabbar-h);
  padding: 5px 0 3px;
}

.tab-item.active { color: var(--primary-red); }
.tab-icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
  flex-shrink: 0;
}
.tab-text {
  font-size: 14px;
  line-height: 1.2;
  font-weight: 400;
}

/* ========== Toast ========== */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 16px);
  transform: translateX(-50%) translateY(20px);
  background: rgba(62, 39, 35, 0.92);
  color: #fff;
  padding: 12px 20px;
  border-radius: 12px;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  max-width: 90%;
  text-align: center;
}

.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { background: rgba(39, 174, 96, 0.95); }
.toast.error { background: rgba(192, 57, 43, 0.95); }
.toast.hint { background: rgba(139, 94, 60, 0.95); }

/* ========== PC 侧栏（默认隐藏） ========== */
.pc-side-panel { display: none; }

.history-icon {
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  color: var(--btn-wood);
  box-shadow: 0 2px 8px rgba(139, 94, 60, 0.12);
  border: 1px solid #f0e6d2;
  flex-shrink: 0;
}

.history-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

.pc-history-list .history-item {
  background: var(--card-bg);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.pc-history-list .history-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.pc-history-list .history-title {
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pc-history-list .history-date { font-size: 16px; }

/* ========== 移动端 ========== */
@media (max-width: 859px) {
  html, body { height: 100dvh; overflow: hidden; }
  body { align-items: stretch; width: 100%; }
  .app-container { width: 100%; max-width: 100%; height: 100dvh; min-height: 100dvh; }
}

/* ========== PC 适配 ========== */
@media (min-width: 860px) {
  html {
    overflow-y: auto;
  }

  body {
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
    padding: 0;
    min-height: 100dvh;
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
    background:
      radial-gradient(ellipse 600px 600px at 85% 15%, rgba(212, 197, 169, 0.15), transparent),
      radial-gradient(ellipse 400px 400px at 10% 80%, rgba(141, 110, 99, 0.08), transparent),
      var(--bg-color);
  }

  .app-container {
    width: 100%;
    max-width: none;
    min-height: 100dvh;
    height: auto;
    overflow: visible;
    border-radius: 0;
    box-shadow: none;
  }

  .header { display: none; }

  .pc-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    min-height: 52px;
    padding: 0 24px;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid rgba(212, 197, 169, 0.45);
    box-shadow: 0 1px 10px rgba(62, 39, 35, 0.05);
    flex-shrink: 0;
    z-index: 30;
  }

  .pc-nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
    margin-right: auto;
    text-decoration: none;
    flex-shrink: 0;
  }

  .pc-nav-brand:hover { opacity: 0.88; text-decoration: none; }

  .pc-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    color: var(--text-sub);
    padding: 8px 14px;
    border-radius: 10px;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
  }

  .pc-nav-ico {
    width: 18px;
    height: 18px;
    fill: currentColor;
    flex-shrink: 0;
  }

  .pc-nav-link.active {
    color: var(--primary-red);
    background: rgba(192, 57, 43, 0.06);
  }

  .pc-nav-link:hover {
    color: var(--primary-red);
    background: rgba(139, 94, 60, 0.06);
  }

  .pc-nav-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    flex-shrink: 0;
  }

  .pc-nav-sound.is-muted { opacity: 0.5; }
  .pc-nav-sound.is-muted .sound-on { display: none; }
  .pc-nav-sound:not(.is-muted) .sound-off { display: none; }

  .pc-nav-back {
    text-decoration: none;
    color: var(--btn-wood);
    border: 1px solid rgba(139, 94, 60, 0.25);
  }

  .pc-nav-back:hover {
    background: rgba(139, 94, 60, 0.08);
    color: var(--btn-wood);
    text-decoration: none;
  }

  .main-wrap {
    flex: 1 0 auto;
    display: block;
    width: 100%;
    max-width: var(--pc-content-single-w);
    margin: 0 auto;
    padding: 16px 16px 32px;
    overflow: visible;
    min-height: auto;
  }

  .main-content {
    display: block;
    width: 100%;
    max-width: var(--pc-content-single-w);
    margin: 0 auto;
    min-height: auto;
    overflow: visible;
    padding: 0;
  }

  .pc-side-panel {
    display: none;
  }

  .game-screen {
    overflow: visible;
  }

  .article-view {
    overflow: visible;
  }

  .pc-panel-title {
    font-size: 18px;
    color: var(--primary-indigo);
    margin-bottom: 12px;
    padding-left: 12px;
    position: relative;
  }

  .pc-panel-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 16px;
    background: var(--primary-red);
    border-radius: 2px;
  }

  .pc-tip-card {
    background: var(--card-bg);
    padding: 14px;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-main);
    margin-bottom: 14px;
    border: 1px solid rgba(212, 197, 169, 0.3);
  }

  .pc-daily-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
  }

  .pc-daily-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
    background: var(--card-bg);
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-sub);
  }

  .pc-daily-num {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(230, 180, 34, 0.2);
    color: var(--btn-wood);
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .pc-daily-text { flex: 1; min-width: 0; }

  .pc-history-list { margin-top: 4px; }

  .page-head h1 { font-size: 20px; }

  .phrase-card { padding: 24px 20px 18px; }

  .sample-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .tab-bar { display: none; }

  .toast {
    bottom: 32px;
    max-width: var(--pc-content-single-w);
  }
  .mode-btn:hover:not(.active) { border-color: var(--btn-wood); color: var(--btn-wood); }
  .type-filter-btn:hover:not(.active) { border-color: var(--btn-wood); color: var(--btn-wood); }
  .btn-submit:hover:not(:disabled) { filter: brightness(1.05); }
  .action-btn:hover { border-color: var(--btn-wood); color: var(--btn-wood); }
  .btn-nav:hover { border-color: var(--btn-wood); }
  .hint-link:hover { color: var(--btn-wood); }
  .btn-text:hover { color: var(--primary-red); }

  .article-view.is-active {
    max-width: 100%;
    padding: 12px 0 20px;
  }
}

/* PC 宽屏：内容区 1024px = 主区 658px + 间距 16px + 侧栏 350px */
@media (min-width: 1024px) {
  .main-wrap {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: center;
    gap: var(--pc-column-gap);
    width: 100%;
    max-width: calc(var(--pc-layout-w) + var(--pc-gutter-x) * 2);
    margin: 0 auto;
    padding: 16px var(--pc-gutter-x) 32px;
    box-sizing: border-box;
  }

  .main-content {
    flex: 0 0 var(--pc-content-w);
    width: var(--pc-content-w);
    max-width: var(--pc-content-w);
    margin: 0;
    padding: 0;
    order: 1;
    align-self: flex-start;
  }

  .game-screen {
    padding-top: 0;
  }

  .article-view.is-active {
    padding-top: 0;
  }

  .pc-side-panel {
    display: flex;
    flex-direction: column;
    flex: 0 0 var(--pc-sidebar-w);
    width: var(--pc-sidebar-w);
    order: 2;
    align-self: flex-start;
    background: var(--card-inner);
    padding: 0 16px 20px;
    overflow: visible;
    border-radius: 12px;
  }

  .pc-side-panel > .pc-panel-title:first-child {
    margin-top: 0;
  }

  .toast {
    max-width: var(--pc-layout-w);
  }
}
