.study-desk {
  --desk-paper: #f8f7f2;
  --desk-ink: #1b312e;
  --desk-muted: #556460;
  --desk-rule: #c9cfc5;
  --desk-accent: #a53529;
  width: min(1120px, calc(100% - 96px)); margin: 0 auto; padding: 54px 0 90px;
  color: var(--desk-ink); font-family: "PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  line-height: 1.55; font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
}
.study-desk * { box-sizing: border-box; }
.study-desk [hidden] { display: none !important; }
.study-desk h1, .study-desk h2, .study-desk h3, .study-desk p { margin: 0; color: inherit; }
.study-desk button, .study-desk select { color: inherit; font: inherit; }
.study-desk button, .study-desk select, .study-desk summary { cursor: pointer; }
.study-desk a { color: inherit; text-underline-offset: 4px; }
.study-desk :focus-visible { outline: 3px solid var(--desk-accent); outline-offset: 4px; }
.study-desk ::selection { background: #eed2c2; color: var(--desk-ink); }
.desk-intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.study-desk h1 { font-family: "Songti SC","STSong","Noto Serif CJK SC",serif; font-size: 54px; line-height: 1.2; letter-spacing: -.025em; font-weight: 700; }
.desk-intro p { margin-top: 14px; font-size: 16px; color: var(--desk-muted); }
.study-desk .desk-button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 45px; padding: 10px 18px; background: var(--desk-accent); color: #fffaf3; font-size: 14px; font-weight: 650; border-radius: 4px; text-decoration: none; transition: background .16s ease; white-space: nowrap; }
.study-desk .desk-button:hover { background: #81291f; }
.study-desk svg { display: block; width: 19px; height: 19px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.study-desk .desk-local { display: flex; gap: 8px; align-items: flex-start; margin: 18px 0 28px; color: var(--desk-muted); font-size: 13px; }
.desk-local svg { width: 16px; height: 16px; margin-top: 2px; }
.desk-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--desk-ink); padding: 22px 0 18px; }
.desk-segment { display: inline-flex; border: 1px solid #a7b2a9; border-radius: 4px; }
.desk-segment button { border: none; background: transparent; padding: 8px 14px; min-height: 38px; font-size: 13px; }
.desk-segment button + button { border-left: 1px solid #a7b2a9; }
.desk-segment button:first-child { border-radius: 3px 0 0 3px; }
.desk-segment button:last-child { border-radius: 0 3px 3px 0; }
.desk-segment button[aria-pressed="true"] { background: var(--desk-ink); color: #fff; }
.desk-segment button[aria-pressed="false"]:hover, .desk-period select:hover { background: #e9ece4; }
.desk-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.desk-period { display: flex; gap: 10px; align-items: center; font-size: 13px; font-weight: 550; }
.desk-period select { background: transparent; border: 1px solid #a7b2a9; padding: 7px 8px; border-radius: 4px; min-height: 38px; }
.study-desk .desk-filter-note { font-size: 12px; color: var(--desk-muted); margin: -7px 0 14px; }
.study-desk .desk-count-note { color: var(--desk-muted); font-size: 12px; margin-top: 9px; }
.desk-overview { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); background: #e9ece3; padding: 24px 0 22px; }
.desk-metric { padding: 0 26px; }
.desk-metric + .desk-metric { border-left: 1px solid #bdc7b9; }
.desk-metric > span { display: block; font-size: 14px; color: #485750; }
.desk-metric > div { display: flex; align-items: baseline; gap: 6px; }
.desk-metric strong { font-family: Georgia,"Times New Roman",serif; font-size: 46px; line-height: 1.18; font-weight: 500; }
.desk-metric small { font-size: 13px; }
.desk-workspace { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(270px,1fr); gap: clamp(32px,5vw,72px); margin-top: 43px; align-items: start; }
.study-desk h2 { font-family: "Songti SC","STSong","Noto Serif CJK SC",serif; font-weight: 700; font-size: 27px; letter-spacing: -.02em; line-height: 1.35; }
.desk-tabs { display: flex; gap: 24px; margin-top: 14px; border-bottom: 1px solid var(--desk-rule); }
.desk-tabs button { position: relative; border: 0; background: transparent; font-size: 14px; padding: 10px 0 12px; color: var(--desk-muted); }
.desk-tabs button[aria-pressed="true"] { color: var(--desk-accent); font-weight: 650; }
.desk-tabs button[aria-pressed="true"]::after { content: ""; position: absolute; bottom: -1px; left: 0; right: 0; height: 3px; background: var(--desk-accent); }
.desk-tabs button:hover { color: var(--desk-accent); }
.desk-empty { padding: 27px 0; }
.study-desk .desk-empty h3 { font-size: 18px; font-weight: 650; margin-bottom: 5px; }
.study-desk .desk-empty p, .study-desk .desk-support { font-size: 14px; line-height: 1.7; color: var(--desk-muted); }
.study-desk .desk-support { padding-top: 15px; }
.study-desk .desk-inline { display: inline-block; margin-top: 13px; font-size: 14px; color: var(--desk-accent); text-decoration: underline; text-decoration-thickness: 1px; font-weight: 600; }
.desk-skills table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 15px; }
.desk-skills th, .desk-skills td { padding: 10px 2px; text-align: right; border-bottom: 1px solid var(--desk-rule); }
.desk-skills th:first-child { text-align: left; }
.desk-skills thead th { font-size: 12px; font-weight: 500; color: var(--desk-muted); }
.desk-skills tbody th { font-weight: 600; }
.study-desk .desk-skills > p { color: var(--desk-muted); font-size: 12px; margin-top: 15px; line-height: 1.8; }
.desk-entry { padding: 17px 0; border-bottom: 1px solid var(--desk-rule); }
.desk-entry summary { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; align-items: center; list-style: none; }
.desk-entry summary::-webkit-details-marker { display: none; }
.desk-entry summary::after { content: ""; width: 8px; height: 8px; border-right: 1.5px solid var(--desk-muted); border-bottom: 1.5px solid var(--desk-muted); transform: rotate(45deg); margin: 0 4px 4px; }
.desk-entry[open] summary::after { transform: rotate(225deg); margin: 6px 4px 0; }
.desk-entry summary:hover .desk-entry-title { color: var(--desk-accent); }
.desk-entry-meta { display: block; color: var(--desk-muted); font-size: 12px; margin-bottom: 4px; }
.desk-entry-title { display: block; font-size: 16px; font-weight: 650; }
.desk-review-actions { display: flex; flex-wrap: wrap; gap: 0 18px; }
.desk-answers { padding: 0; margin: 16px 0 0; list-style: none; }
.desk-answer { background: #efefe7; padding: 14px 16px; }
.desk-answer + .desk-answer { margin-top: 6px; }
.study-desk .desk-answer p { font-size: 14px; margin: 3px 0; white-space: pre-line; }
.study-desk .desk-answer .desk-answer-title { font-weight: 650; margin-bottom: 6px; }
.study-desk .desk-answer .desk-answer-label { display: block; color: var(--desk-muted); font-size: 12px; margin-top: 8px; }
.study-desk .desk-answer .desk-verdict { color: var(--desk-accent); font-size: 12px; margin: 0 0 3px; font-weight: 650; }
.study-desk .desk-answer .desk-correct { color: #35634e; }
.desk-word { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 4px 16px; border-bottom: 1px solid var(--desk-rule); padding: 14px 0; }
.study-desk .desk-word b { display: block; font: 600 23px/1.2 Georgia,serif; margin: 0 0 3px; }
.study-desk .desk-word p { font-size: 14px; }
.desk-meaning { margin-top: 7px; }
.desk-meaning summary { font-size: 13px; color: var(--desk-muted); }
.desk-meaning p { padding: 5px 0 0; }
.study-desk .desk-word-source { font-size: 12px; color: var(--desk-muted); }
.desk-word .desk-inline { margin: 4px 0; font-size: 13px; }
.study-desk .desk-more { margin-top: 20px; min-height: 40px; border: 1px solid #9aa89c; border-radius: 3px; background: transparent; font-size: 14px; padding: 7px 14px; }
.study-desk .desk-more:hover { background: #e9ece4; }
.desk-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media(max-width: 820px) {
  .study-desk { width: calc(100% - 48px); padding-top: 36px; }
  .desk-workspace { grid-template-columns: minmax(0,1fr); gap: 36px; }
}
@media(max-width: 560px) {
  .study-desk { width: calc(100% - 36px); padding: 27px 0 54px; }
  .study-desk h1 { font-size: 40px; }
  .desk-intro { flex-direction: column; align-items: flex-start; gap: 16px; }
  .desk-intro p { font-size: 15px; margin-top: 8px; }
  .study-desk .desk-local { margin: 13px 0 20px; }
  .desk-toolbar { flex-wrap: wrap; padding: 16px 0 14px; gap: 10px; }
  .desk-segment button { font-size: 12px; padding: 8px 9px; }
  .desk-period { gap: 5px; font-size: 12px; }
  .desk-period select { padding: 6px 4px; }
  .desk-overview { padding: 15px 0; }
  .desk-metric { padding: 0 11px; }
  .desk-metric > span { font-size: 12px; }
  .desk-metric strong { font-size: 32px; }
  .desk-metric small { font-size: 12px; }
  .desk-workspace { margin-top: 27px; }
  .study-desk h2 { font-size: 24px; }
  .desk-tabs { margin-top: 9px; }
  .desk-filters { width: 100%; }
}
@media(prefers-reduced-motion: reduce) {
  .study-desk * { transition: none !important; }
}
