:root {
  --paper: #faf7ee;
  --white: #fffdf6;
  --ink: #233b30;
  --muted: #637066;
  --line: #d4d6c6;
  --yellow: #eed36a;
  --green: #244c3b;
  --light-green: #e4ebd8;
  --red: #964936;
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 15px; line-height: 1.75; }
body.modal-open { overflow: hidden; }
a { color: inherit; text-underline-offset: 5px; }
button, input, select, textarea { font: inherit; color: inherit; }
button, summary { cursor: pointer; }
button, a, input, select, summary, textarea { -webkit-tap-highlight-color: transparent; }
button { border-radius: 0; }
button, a { touch-action: manipulation; }
button { transition: background-color 140ms ease, color 140ms ease, transform 140ms ease, box-shadow 140ms ease; }
button:active { transform: scale(.98); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
h1, h2, .entry-word, .featured-word, .detail-word, .brand-mark { font-family: "Noto Serif CJK SC", "Songti SC", "STSong", "SimSun", serif; }
h2 { font-size: 32px; line-height: 1.35; font-weight: 900; }
h3 { line-height: 1.5; }
.container { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 20; padding: 12px 20px; background: var(--white); }
.skip-link:focus { top: 12px; }
.site-header { border-bottom: 1px solid var(--ink); background: var(--paper); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 88px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-size: 20px; font-weight: 700; letter-spacing: 1px; line-height: 1.35; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 46px; background: var(--green); color: var(--white); font-size: 27px; }
.brand small { display: block; font-size: 10px; font-weight: 400; letter-spacing: 2px; margin-top: 6px; }
nav { display: flex; gap: 32px; }
nav a { display: flex; align-items: center; min-height: 44px; text-decoration: none; font-size: 14px; font-weight: 600; }
nav a:hover { text-decoration: underline; }
.hero { background: var(--yellow); border-bottom: 2px solid var(--ink); }
.hero-inner { padding-top: 32px; padding-bottom: 20px; }
.hero-top { display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.hero-title { padding-block: 10px; min-width: 0; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 2px; line-height: 1.6; }
.hero .eyebrow span { margin-left: 16px; padding-left: 16px; border-left: 1px solid currentColor; font-weight: 400; }
h1 { position: relative; width: fit-content; font-size: clamp(54px, 7.2vw, 90px); font-weight: 900; line-height: 1.3; letter-spacing: 2px; margin-block: 11px 12px; }
h1 span { color: var(--green); }
h1 i { position: absolute; bottom: 9px; right: -110px; border: 1px solid var(--red); padding: 3px 8px; transform: rotate(-9deg); color: var(--red); font: 13px "Microsoft YaHei", sans-serif; letter-spacing: 2px; white-space: nowrap; }
.hero-lead { font-size: 16px; line-height: 1.9; }
.hero-subtitle { display: block; }
.hero-figure { width: 172px; flex-shrink: 0; padding: 6px; margin-right: 22px; background: var(--white); border: 1px solid var(--ink); transform: rotate(4deg); box-shadow: 5px 5px 0 rgba(35,59,48,.2); }
.hero-figure img { display: block; width: 100%; height: auto; outline: 1px solid rgba(0,0,0,.1); outline-offset: -1px; }
.hero-figure figcaption { padding-top: 4px; text-align: center; font-size: 10px; letter-spacing: 2px; }
.search-form { display: flex; width: 100%; border: 2px solid var(--ink); background: var(--white); box-shadow: 4px 4px 0 var(--ink); margin-top: 26px; }
.search-form input { width: 100%; min-width: 0; height: 64px; border: 0; background: transparent; padding: 0 22px; border-radius: 0; font-size: 17px; }
.search-form input:focus { outline: 0; }
.search-form:focus-within { outline: 3px solid var(--red); outline-offset: 6px; }
.search-form input::placeholder { color: #7b8175; }
.search-button { display: flex; align-items: center; justify-content: center; gap: 16px; min-width: 155px; margin: 6px; border: 0; background: var(--green); color: var(--white); font-weight: 700; }
.search-button:hover { background: #153927; }
kbd { border: 1px solid #9eaf9d; padding: 0 6px; font: 10px system-ui, sans-serif; opacity: .8; }
.quick-searches { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 12px; margin-top: 12px; font-size: 12px; }
.quick-searches button { min-height: 40px; padding: 0 2px; background: none; border: 0; text-decoration: underline; text-underline-offset: 4px; }
.quick-searches button:hover { color: var(--red); }
.hero-tip { margin-left: auto; color: #4d573d; }
.hero-bottom { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid rgba(35,59,48,.3); margin-top: 11px; padding-top: 14px; font-size: 12px; }
.hero-bottom strong { font-size: 17px; margin-right: 3px; }
.stat-divider { margin-inline: 13px; opacity: .5; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 275px; gap: 42px; padding-top: 50px; padding-bottom: 52px; }
section[id] { scroll-margin-top: 24px; }
.dictionary:focus { outline: none; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-heading .eyebrow { color: var(--muted); margin-bottom: 6px; }
.section-heading h2 { overflow-wrap: anywhere; }
.count-badge { display: inline-block; padding: 4px 12px; border: 1px solid var(--ink); background: var(--yellow); font-size: 12px; white-space: nowrap; }
.category-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.category-filters button { min-height: 40px; padding: 7px 13px; border: 1px solid var(--line); background: transparent; font-size: 12px; }
.category-filters button[aria-pressed="true"] { background: var(--green); color: var(--white); border-color: var(--green); }
.category-filters button:hover { border-color: var(--green); }
.category-filters .filter-count { margin-left: 8px; opacity: .7; }
.mobile-category-filter { display: none; }
.filter-details { margin-top: 16px; border-block: 1px solid var(--line); }
.filter-details summary { min-height: 44px; padding-block: 10px; font-size: 12px; }
.filter-details summary span { margin-left: 12px; color: var(--muted); font-size: 11px; }
.filter-controls { display: flex; gap: 20px; flex-wrap: wrap; padding-bottom: 16px; }
.filter-field { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.filter-controls select { min-height: 40px; padding: 4px 28px 4px 10px; border: 1px solid var(--line); border-radius: 0; background: var(--white); font-size: 12px; }
.result-summary { color: var(--muted); margin-block: 15px; font-size: 11px; }
.entry-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.entry-card { min-width: 0; }
.entry-link { display: flex; align-items: center; gap: 18px; min-height: 142px; height: 100%; padding: 19px 17px; border: 1px solid #a8b2a2; background: var(--white); text-decoration: none; transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease; }
.entry-link:hover { border-color: var(--green); box-shadow: 3px 3px 0 var(--green); transform: translate(-2px,-2px); }
.entry-word { font-size: 48px; line-height: 1.2; flex: 0 0 52px; font-weight: 700; text-align: center; }
.entry-copy { min-width: 0; }
.entry-category { font-size: 10px; color: var(--muted); letter-spacing: 1px; }
.entry-meaning { margin-block: 6px 8px; font-size: 14px; line-height: 1.7; }
.entry-meta { font-size: 10px; color: #697368; }
.entry-two .entry-word { font-size: 36px; flex-basis: 76px; }
.entry-phrase .entry-link { display: block; }
.entry-phrase .entry-word { display: block; font-size: 24px; text-align: left; line-height: 1.6; margin-bottom: 11px; overflow-wrap: anywhere; }
.pagination { justify-content: center; align-items: center; gap: 18px; margin-top: 22px; font-size: 12px; }
.pagination button { min-height: 44px; padding: 7px 15px; border: 1px solid var(--ink); background: var(--white); }
.pagination button:hover:not(:disabled) { background: var(--green); color: var(--white); }
.pagination button:disabled { opacity: .4; cursor: default; }
.dictionary-aside { padding-top: 7px; }
.daily-word { padding: 20px; border: 1px solid var(--ink); background: var(--light-green); box-shadow: 4px 4px 0 var(--ink); }
.daily-label { display: flex; justify-content: space-between; gap: 8px; font-size: 10px; border-bottom: 1px solid #a6b59c; padding-bottom: 12px; }
.daily-label time { color: var(--muted); }
.featured-word { display: block; font-size: 104px; text-align: center; line-height: 1.6; font-weight: 900; }
.featured-word.featured-two { font-size: 64px; padding-block: 18px; }
.featured-word.featured-phrase { font-size: 32px; line-height: 1.6; padding-block: 24px; overflow-wrap: anywhere; }
.featured-meaning { font-size: 14px; text-align: center; }
.featured-status { margin-block: 10px 17px; color: var(--muted); text-align: center; font-size: 10px; }
.daily-word .outline-button { width: 100%; background: transparent; font-size: 12px; }
.aside-loading { padding-block: 32px; font-size: 12px; }
.reading-note { margin-top: 30px; padding: 22px 20px; background: var(--green); color: var(--paper); }
.reading-note .eyebrow { color: #bac9ad; }
.reading-note h3 { margin-block: 13px; font-size: 22px; font-weight: 500; }
.reading-note p:not(.eyebrow) { color: #d8e1d1; font-size: 12px; line-height: 1.9; }
.reading-note a { display: inline-flex; align-items: center; min-height: 44px; margin-top: 9px; font-size: 11px; }
.state-panel { border: 1px dashed #a8b2a2; background: var(--white); text-align: center; padding: 35px 24px; }
.state-panel h3 { font-size: 20px; }
.state-panel p { max-width: 390px; margin: 12px auto 20px; color: var(--muted); font-size: 13px; }
.state-number { display: block; font: 56px Georgia,serif; color: #98a68b; }
.outline-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 17px; border: 1px solid var(--ink); background: var(--white); text-decoration: none; font-size: 13px; }
.outline-button:hover { background: var(--green); color: var(--white); }
.clear-button { min-height: 44px; background: none; border: 0; padding: 12px 0; color: var(--muted); font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }
.section-space { padding-block: 48px; }
.topics-section { background: #eceede; border-block: 1px solid var(--line); }
.section-aside { color: var(--muted); font-size: 12px; }
.topic-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.topic-card { padding: 25px 22px; border: 1px solid #a8b2a2; background: var(--paper); }
.topic-topline { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; font-size: 10px; color: var(--muted); }
.topic-number { font: 28px Georgia,serif; color: #8a977c; }
.topic-card h3 { font-size: 22px; }
.topic-card p { font-size: 12px; color: var(--muted); margin-block: 9px 18px; }
.topic-words { font-size: 14px !important; color: var(--ink) !important; overflow-wrap: anywhere; }
.topic-card button { min-height: 44px; padding: 8px 0; border: 0; border-top: 1px solid var(--line); background: transparent; width: 100%; text-align: left; font-size: 12px; }
.topic-card button:hover { color: var(--red); }
.topics-footnote { margin-top: 22px; font-size: 11px; color: var(--muted); }
.conversation-note { margin-bottom: 20px; font-size: 12px; color: var(--muted); }
.conversation-item { border-block: 1px solid var(--line); margin-top: 12px; background: var(--white); }
.conversation-item summary { padding: 15px 18px; min-height: 56px; font-size: 14px; }
.conversation-number { margin-inline: 6px 16px; font-family: Georgia,serif; color: var(--muted); }
.conversation-length { float: right; font-size: 11px; color: var(--muted); }
.conversation-lines { margin: 0 22px 15px; }
.conversation-lines > div { display: flex; align-items: flex-start; gap: 16px; padding-block: 9px; }
.conversation-lines dt { flex: 0 0 30px; color: var(--muted); font-size: 12px; }
.conversation-lines dd { margin: 0; font-size: 14px; }
.conversation-source { margin: 0 22px 15px; color: var(--muted); font-size: 10px; }
.pronunciation-panel { display: grid; grid-template-columns: .8fr 1.2fr; gap: 50px; border: 1px solid var(--ink); padding: 35px 40px; box-shadow: 4px 4px 0 #d1d7bf; }
.pronunciation-panel h2 { margin-block: 14px 17px; }
.pronunciation-panel > div > p:not(.eyebrow) { font-size: 12px; color: var(--muted); line-height: 1.9; }
.pronunciation-content article { display: flex; align-items: flex-start; gap: 18px; padding-block: 9px 19px; }
.pronunciation-content article + article { border-top: 1px solid var(--line); padding-top: 20px; }
.step-number { flex-shrink: 0; padding: 2px 7px; border: 1px solid #a8b2a2; font: 12px/1.75 Georgia,serif; }
.pronunciation-content h3 { font-size: 15px; margin-bottom: 8px; }
.pronunciation-content p { font-size: 12px; color: var(--muted); }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; }
.tone-reference { margin-top: 28px; padding: 24px; border: 1px solid var(--line); background: var(--white); }
.tone-reference h3 { font-size: 16px; }
.tone-table { width: 100%; border-collapse: collapse; margin-top: 17px; font-size: 13px; text-align: left; }
.tone-table th, .tone-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); }
.tone-table thead { background: var(--light-green); }
.about-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 50px; padding-top: 8px; padding-bottom: 60px; }
.about-section h2 { margin-block: 12px 19px; }
.about-section > div > p:not(.eyebrow) { color: var(--muted); font-size: 13px; }
.source-card { padding: 25px 29px; border-left: 3px solid var(--green); background: #f0eedf; }
.tag { display: inline-block; padding: 2px 8px; border: 1px solid #a8b2a2; font-size: 10px; }
.source-card h3 { margin-block: 13px 9px; font-size: 18px; }
.source-card p { color: var(--muted); font-size: 12px; }
.source-description { margin-top: 12px; }
.source-card .license-note { margin-top: 12px; font-size: 10px; }
.about-sources { min-width: 0; }
.source-card + .source-card { margin-top: 22px; }
.source-notes { margin-top: 12px; border-top: 1px solid var(--line); }
.source-notes summary { min-height: 44px; padding-block: 10px; font-size: 12px; }
.source-notes p { margin-block: 12px; }
.source-notes ul { padding-left: 20px; font-size: 12px; color: var(--muted); }
.source-notes li { margin-bottom: 9px; }
.source-notes .classification-note { padding-left: 12px; border-left: 2px solid var(--red); }
.muted { color: var(--muted); }
.site-footer { background: var(--green); color: var(--paper); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 27px; font-size: 11px; }
.footer-brand { font-family: "SimSun",serif; font-size: 21px; font-weight: 700; text-decoration: none; }
.footer-inner a { display: flex; align-items: center; min-height: 44px; }
dialog { width: min(690px,calc(100% - 32px)); max-height: calc(100dvh - 48px); margin: auto; padding: 0; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); box-shadow: 8px 8px 0 rgba(35,59,48,.35); }
dialog::backdrop { background: rgba(20,36,28,.6); }
.dialog-bar { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: 8px 22px; border-bottom: 1px solid var(--ink); background: var(--yellow); font-size: 12px; }
.dialog-bar button { min-width: 58px; min-height: 40px; border: 1px solid var(--ink); background: var(--paper); font-size: 12px; }
.dialog-content { padding: 26px 30px; }
.detail-heading { display: flex; align-items: center; gap: 24px; margin-bottom: 24px; }
.detail-word { font-size: 80px; line-height: 1.2; }
.detail-heading p { margin-bottom: 7px; font-size: 12px; }
.detail-alias { margin-top: 6px; color: var(--muted); font-size: 12px; }
.detail-heading--phrase { display: block; }
.detail-heading--phrase .detail-word { font-size: 32px; line-height: 1.5; margin-bottom: 17px; overflow-wrap: anywhere; }
.detail-section { border-top: 1px solid var(--line); padding-top: 17px; margin-top: 20px; }
.detail-section h3 { font-size: 15px; margin-bottom: 10px; }
.detail-section ol { padding-left: 25px; margin: 0; }
.detail-section li { padding-left: 4px; margin-bottom: 7px; }
.detail-section p { font-size: 13px; }
.detail-note { color: var(--muted); margin-top: 9px; font-size: 12px !important; }
.detail-section .reading-value { font: 22px/1.6 Georgia,"Times New Roman",serif; margin-bottom: 9px; overflow-wrap: anywhere; }
.audio-status { display: inline-block; margin-top: 10px; border: 1px dashed #a8b2a2; padding: 5px 12px; font-size: 11px; color: var(--muted); }
.example { margin: 0; padding: 13px 17px; background: var(--light-green); border-left: 2px solid var(--green); }
.example p { margin-bottom: 5px; }
.example footer { font-size: 10px; color: var(--muted); }
.detail-source { overflow-wrap: anywhere; }
.detail-source a { min-height: 44px; display: inline-flex; align-items: center; }
.dialog-bottom { padding: 0 30px 22px; }
.dialog-bottom p { font-size: 11px; color: var(--muted); margin-top: 9px; }
.dialog-bottom textarea { width: 100%; padding: 12px; border: 1px solid var(--line); font-size: 12px; margin-top: 10px; background: var(--white); }
@media (max-width: 980px) {
  h1 i { display: none; }
  .content-grid { grid-template-columns: minmax(0,1fr) 230px; gap: 25px; }
  .entry-list { grid-template-columns: 1fr; }
  .hero-figure { width: 150px; margin-right: 8px; }
  nav { gap: 20px; }
}
@media (max-width: 680px) {
  .container { width: calc(100% - 36px); }
  .header-inner { flex-wrap: wrap; padding-block: 13px 0; gap: 6px; }
  .brand { font-size: 17px; }
  .brand-mark { width: 34px; height: 36px; font-size: 23px; }
  .brand small { font-size: 9px; margin-top: 4px; }
  nav { width: 100%; justify-content: space-between; gap: 4px; border-top: 1px solid var(--line); margin-top: 4px; }
  nav a { min-height: 44px; font-size: 12px; }
  .hero-inner { padding-top: 16px; padding-bottom: 16px; }
  .hero-top { gap: 14px; }
  .hero-title { padding-block: 0; }
  .hero .eyebrow { font-size: 10px; letter-spacing: 1px; }
  .hero .eyebrow span { display: none; }
  h1 { font-size: 44px; letter-spacing: 2px; line-height: 1.2; margin-block: 13px; }
  h1 span { display: block; }
  .hero-lead { font-size: 12px; line-height: 1.9; }
  .hero-subtitle { display: none; }
  .hero-figure { width: 108px; margin-right: 3px; padding: 4px; align-self: flex-start; margin-top: 18px; }
  .hero-figure figcaption { font-size: 8px; letter-spacing: 0; }
  .search-form { margin-top: 14px; }
  .search-form input { height: 56px; padding-inline: 13px; font-size: 14px; }
  .search-button { min-width: 76px; margin: 4px; font-size: 14px; }
  kbd { display: none; }
  .quick-searches { gap: 2px 11px; font-size: 11px; }
  .hero-tip { display: none; }
  .hero-bottom { font-size: 10px; padding-top: 12px; }
  .hero-bottom p:last-child { display: none; }
  .hero-bottom strong { font-size: 15px; }
  .content-grid { display: block; padding-top: 26px; padding-bottom: 35px; }
  h2 { font-size: 27px; }
  .section-heading { margin-bottom: 19px; }
  .category-filters { gap: 7px; }
  .category-filters button { padding-inline: 9px; font-size: 11px; }
  .category-filters .filter-count { display: none; }
  .category-filters { display: none; }
  .mobile-category-filter { display: flex; align-items: center; gap: 12px; font-size: 12px; }
  .mobile-category-filter select { flex: 1; min-width: 0; min-height: 44px; padding: 8px; border: 1px solid var(--line); border-radius: 0; background: var(--white); }
  .entry-list { gap: 10px; }
  .entry-link { min-height: 113px; gap: 22px; padding: 15px 20px; }
  .entry-word { font-size: 44px; }
  .dictionary-aside { display: grid; grid-template-columns: 1fr; margin-top: 26px; }
  .daily-word { padding: 18px; }
  .featured-word { font-size: 80px; line-height: 1.4; }
  .reading-note { margin-top: 22px; }
  .reading-note h3 br { display: none; }
  .section-space { padding-block: 34px; }
  .section-aside { display: none; }
  .topic-list { grid-template-columns: 1fr; gap: 13px; }
  .topic-card { padding: 20px; }
  .topic-topline { margin-bottom: 8px; }
  .topic-words { margin-bottom: 10px !important; }
  .pronunciation-panel { grid-template-columns: 1fr; padding: 25px 22px; gap: 24px; }
  .pronunciation-panel h2 br, .about-section h2 br { display: none; }
  .about-section { grid-template-columns: 1fr; gap: 25px; padding-top: 0; }
  .source-card { padding: 22px; }
  .footer-inner { flex-wrap: wrap; gap: 5px 15px; padding-block: 21px; }
  .footer-inner p { width: 100%; order: 3; color: #c5d1be; }
  .footer-inner > a:last-child { margin-left: auto; font-size: 9px; }
  .dialog-content { padding: 22px; }
  .dialog-bottom { padding-inline: 22px; }
  .dialog-bar { padding-inline: 16px; }
  .detail-word { font-size: 68px; }
  .detail-heading { gap: 18px; }
  .detail-heading--phrase .detail-word { font-size: 27px; }
  .conversation-item summary { padding-inline: 12px; font-size: 13px; }
  .conversation-number { margin-right: 10px; }
  .tone-reference { padding: 18px 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
