:root {
  color-scheme: light;
  --ink: #14324a;
  --muted: #5c7185;
  --line: #d9e4ec;
  --accent: #8c4be7;
  --paper: #ffffff;
  --wash: #f4f8fb;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--wash);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

a { color: inherit; }
.site-header, main, .site-footer { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.site-header { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 7px; color: #fff; background: var(--ink); }
.top-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 18px; color: var(--muted); font-size: 14px; }
.top-links a { text-decoration: none; }
.top-links a[aria-current="page"] { color: var(--accent); font-weight: 800; }

main { padding: 42px 0 64px; }
.hero { padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.eyebrow { margin: 0 0 10px; color: var(--accent); font-size: 14px; font-weight: 800; }
h1 { margin: 0; font-size: clamp(34px, 5vw, 56px); line-height: 1.2; letter-spacing: 0; }
.hero p:last-child { max-width: 800px; margin: 16px 0 0; color: var(--muted); font-size: 17px; line-height: 1.8; }

.study-note { margin: 28px 0 8px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.study-note h2 { margin: 0 0 8px; font-size: 21px; }
.study-note p { margin: 0; color: var(--muted); line-height: 1.8; }

.word-list { margin-top: 12px; background: var(--paper); border-top: 3px solid var(--accent); }
.word-entry { display: grid; grid-template-columns: 120px minmax(180px, 0.7fr) minmax(0, 1.6fr); gap: 24px; padding: 24px; border-bottom: 1px solid var(--line); }
.word-name { margin: 0; font-family: "Songti SC", SimSun, serif; font-size: 29px; }
.word-kind { display: inline-block; margin-top: 8px; color: var(--accent); font-size: 12px; font-weight: 800; }
.meaning h3, .examples h3 { margin: 0 0 8px; color: var(--muted); font-size: 13px; }
.meaning p { margin: 0; font-size: 17px; line-height: 1.75; }
.examples ul { margin: 0; padding: 0; list-style: none; }
.examples li + li { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.quote { display: block; line-height: 1.75; }
.source { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.6; }

.continue { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 30px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.continue p { margin: 0; color: var(--muted); line-height: 1.7; }
.continue a { flex: 0 0 auto; padding: 10px 16px; border-radius: 6px; color: #fff; background: var(--ink); text-decoration: none; }

.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 20px; padding: 22px 0 34px; color: var(--muted); font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 18px; }
.site-footer a { text-decoration: none; }

@media (max-width: 720px) {
  .site-header, main, .site-footer { width: min(100% - 28px, 1120px); }
  .site-header { align-items: flex-start; flex-direction: column; padding: 14px 0; }
  .top-links { justify-content: flex-start; }
  main { padding-top: 28px; }
  .word-entry { grid-template-columns: 72px 1fr; gap: 14px 18px; padding: 20px 16px; }
  .word-name { font-size: 25px; }
  .examples { grid-column: 1 / -1; }
  .continue { align-items: flex-start; flex-direction: column; }
}
