:root {
  --bg: #f7f1e7;
  --paper: #fffaf0;
  --paper-soft: #f2eadc;
  --ink: #2f2b25;
  --body: #3f392f;
  --muted: #756d60;
  --line: #d9cdb9;
  --line-soft: #e7ddcc;
  --accent: #6f7b5e;
  --accent-2: #b47a64;
  --accent-3: #8c7655;
  --shadow: 0 10px 24px rgba(60, 45, 28, 0.06);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  background: var(--bg) !important;
  color: var(--body) !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif !important;
  font-size: 15px;
  line-height: 1.65;
  letter-spacing: 0;
}

.page {
  max-width: 1180px !important;
}

.site-nav {
  border-bottom: 1px solid var(--line) !important;
  background: rgba(247, 241, 231, 0.96) !important;
  box-shadow: none !important;
  backdrop-filter: blur(10px);
}

.brand-link {
  color: var(--ink) !important;
  font-family: "Iowan Old Style", "Yu Mincho", "Hiragino Mincho ProN", "Songti SC", Georgia, serif !important;
  font-size: 15px !important;
  font-weight: 600 !important;
}

.nav-link {
  min-height: 30px !important;
  border: 0 !important;
  border-bottom: 1px solid transparent !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--muted) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}

.nav-link:hover,
.nav-link.active {
  border-bottom-color: var(--accent) !important;
  background: transparent !important;
  color: var(--ink) !important;
}

header {
  border-bottom: 1px solid var(--line) !important;
}

.kicker {
  color: var(--accent) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
}

h1,
h2,
h3,
.word-main {
  color: var(--ink) !important;
  font-family: "Iowan Old Style", "Yu Mincho", "Hiragino Mincho ProN", "Songti SC", Georgia, serif !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
}

h1 {
  line-height: 1.06 !important;
}

h2 {
  line-height: 1.22 !important;
}

.meta,
.desc,
footer,
.subtitle,
.chip,
.stat span,
.summary-card span,
.word-gloss,
.word-meta,
.meaning,
.note {
  color: var(--muted) !important;
}

.tool-card,
.card,
.summary-card,
.stat,
.side,
.example-group,
.example-card,
.word-card,
.expr-card {
  border: 1px solid var(--line) !important;
  border-radius: 4px !important;
  background: rgba(255, 250, 240, 0.78) !important;
  box-shadow: none !important;
}

section {
  border-color: var(--line) !important;
  border-radius: 4px !important;
  box-shadow: none !important;
}

.tool-card:hover,
.word-card:hover,
.card:hover {
  border-color: #b8ab95 !important;
  box-shadow: var(--shadow) !important;
}

.tag,
.badge,
.word-count {
  border: 1px solid var(--line) !important;
  border-radius: 2px !important;
  background: var(--paper-soft) !important;
  color: var(--ink) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}

.badge.part1,
.badge.part23,
.badge.xhs,
.badge.new,
.badge.keep,
.badge.region,
.badge.neutral,
.badge.progress {
  background: var(--paper-soft) !important;
  color: var(--ink) !important;
}

.badge.progress.learned {
  border-color: rgba(111, 123, 94, 0.35) !important;
  background: rgba(111, 123, 94, 0.13) !important;
  color: #59634a !important;
}

.badge.progress.pending {
  border-color: rgba(180, 122, 100, 0.25) !important;
  background: rgba(180, 122, 100, 0.08) !important;
  color: var(--muted) !important;
}

input,
select,
button,
.audio-button,
.search-row a,
.category-nav a {
  border-color: var(--line) !important;
  border-radius: 3px !important;
  background: rgba(255, 250, 240, 0.92) !important;
  color: var(--ink) !important;
  font-size: 14px !important;
  box-shadow: none !important;
}

button:hover,
.audio-button:hover,
.audio-button.playing,
.cluster-btn:hover,
.cluster-btn.active,
.category-nav a:hover {
  border-color: #ad9e86 !important;
  background: #efe5d5 !important;
  color: var(--ink) !important;
}

.toolbar,
.controls {
  border-color: var(--line) !important;
  background: rgba(247, 241, 231, 0.96) !important;
}

.stats {
  background: rgba(255, 250, 240, 0.36) !important;
}

.stat strong,
.summary-card strong {
  color: var(--ink) !important;
  font-family: "Iowan Old Style", "Yu Mincho", "Hiragino Mincho ProN", "Songti SC", Georgia, serif !important;
  font-weight: 500 !important;
}

.card-summary {
  position: relative !important;
  padding-right: 56px !important;
}

.paw-stamp {
  position: absolute;
  top: 12px;
  right: 12px;
  display: block;
  width: 38px;
  height: 34px;
  border: 1px solid rgba(180, 122, 100, 0.35);
  border-radius: 50%;
  background: rgba(255, 250, 240, 0.65);
  color: rgba(152, 93, 78, 0.58);
  transform: rotate(5deg);
  opacity: 0.86;
  pointer-events: none;
}

.paw-stamp::after {
  content: "已练";
  position: absolute;
  right: 7px;
  bottom: 4px;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
}

.paw-toes,
.paw-toes::before,
.paw-toes::after,
.paw-pad {
  position: absolute;
  display: block;
  background: currentColor;
}

.paw-toes {
  top: 8px;
  left: 16px;
  width: 6px;
  height: 7px;
  border-radius: 50%;
}

.paw-toes::before,
.paw-toes::after {
  content: "";
  width: 6px;
  height: 7px;
  border-radius: 50%;
}

.paw-toes::before {
  left: -8px;
  top: 4px;
}

.paw-toes::after {
  left: 8px;
  top: 4px;
}

.paw-pad {
  top: 17px;
  left: 14px;
  width: 10px;
  height: 8px;
  border-radius: 55% 55% 45% 45%;
}

.student-answer,
.cue,
blockquote,
.note {
  border-color: var(--line) !important;
  background: rgba(255, 250, 240, 0.72) !important;
}

.group-head,
.category h2,
.examples h2,
h2 {
  border-color: var(--line) !important;
}

.result-line {
  color: var(--muted) !important;
  font-size: 14px !important;
}

a,
.open,
.back-link {
  color: #7c5b4e !important;
}

@media (max-width: 760px) {
  body {
    font-size: 15px;
  }
}
