/* 《观沧海》单篇样板：延续入口与目录页的纸本画卷视觉。 */
:root {
  --ink: #292c2a;
  --paper: #f8f3e8;
  --mint: #ded8c9;
  --sun: #a74635;
  --yellow: #e9e3d5;
  --soft: #eee8dc;
  --muted: #66645e;
  --good: #e5eee3;
  --bad: #f5e3d9;
  --line: 1px solid #bfb5a3;
}

body {
  min-width: 320px;
  background: #ded8c9;
  background-image: radial-gradient(circle at 8% 16%, rgba(255,255,255,.5), transparent 35%),
                    radial-gradient(circle at 88% 90%, rgba(124,116,92,.15), transparent 37%);
}

.page {
  width: min(1440px, calc(100% - 44px));
  margin: 22px auto;
  border: 1px solid #b8ad99;
  border-radius: 0;
  box-shadow: 0 22px 70px rgba(43,38,28,.12);
}

.topbar {
  min-height: 68px;
  padding: 12px clamp(22px,4vw,64px);
  background: rgba(250,247,239,.94);
}
.brand {
  gap: 12px;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 18px;
  letter-spacing: .08em;
}
.brand-mark {
  width: 33px;
  height: 33px;
  border: 1px solid #8d3229;
  border-radius: 0;
  background: #a94737;
  color: #fff8e9;
}
.back {
  padding: 5px 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  color: #6b675d;
  font-family: "Noto Serif SC", "Songti SC", serif;
  letter-spacing: .08em;
}
.back:hover,
.back:focus-visible { background: none; color: #a94737; }

.hero {
  display: flex;
  align-items: center;
  min-height: clamp(410px, 37vw, 535px);
  padding: 0;
  border-bottom: 1px solid #b8ad99;
  background: #e3d9c6 url("poem-guancanghai-sea.jpg") center 48% / cover no-repeat;
}
.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(248,243,232,.96) 0%, rgba(248,243,232,.87) 29%, rgba(248,243,232,.45) 48%, transparent 70%);
}
.hero::after { content: none; }
.hero-content {
  width: min(58%, 700px);
  padding: 45px 0 52px clamp(34px,6.2vw,92px);
}
.eyebrow {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: #6a584a;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 13px;
  letter-spacing: .16em;
}
.eyebrow::before {
  display: inline-block;
  width: 28px;
  height: 1px;
  margin: 0 10px 4px 0;
  background: #a94737;
  content: "";
}
.hero h1 {
  margin: 20px 0 14px;
  color: #252c2c;
  font-size: clamp(58px,6vw,86px);
  line-height: 1.3;
  letter-spacing: .08em;
  text-shadow: 0 2px 18px #f8f3e8bb;
}
.hero-lead {
  max-width: 445px;
  color: #4b4a43;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.85;
}
.hero-meta { gap: 11px; margin-top: 26px; }
.hero-meta span {
  padding: 2px 0;
  border: 0;
  border-bottom: 1px solid #aa9e8b;
  border-radius: 0;
  background: transparent;
  color: #706556;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 12px;
  font-weight: 700;
}

main { padding: clamp(38px,5vw,70px) clamp(24px,5.2vw,76px) 88px; }
.content-section + .content-section { margin-top: 76px; }
.section-head { margin-bottom: 20px; }
.section-head h2 {
  font-size: clamp(29px,3vw,42px);
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: .03em;
}
.section-head p { color: #69665e; font-size: 14px; font-weight: 500; }
.focus-toggle {
  min-height: 38px;
  padding: 8px 15px;
  border: 1px solid #b4a997;
  border-radius: 0;
  background: #f8f3e8;
  color: #5e594f;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 13px;
}
.focus-toggle[aria-pressed="true"] { border-color: #a94737; background: #a94737; }

.poem-sheet {
  border: 1px solid #b9ae9b;
  border-radius: 0;
  background: #fbf8f0;
  box-shadow: 0 14px 30px rgba(43,38,28,.07);
}
.poem-unit { grid-template-columns: minmax(0, 1.72fr) minmax(350px, 1fr); }
.poem-sheet > .poem-unit + .poem-unit { border-top: 1px solid #c9c0b2; }
.poem-unit .original-cell { min-height: 102px; padding: 20px 63px 23px 26px; }
.poem-unit:first-child .original-cell { min-height: 116px; background: #f2ecdf; }
.poem-title { font-size: clamp(29px,3vw,38px); }
.poem-title small { color: #736d62; font-size: 13px; }
.verse { color: #263336; font-size: clamp(25px,2.5vw,32px); line-height: 1.72; }
.translation-cell {
  padding: 17px 25px;
  border-left: 1px solid #c4b9a6;
  background: #f7f1e4;
}
.translation-body small {
  margin-bottom: 4px;
  color: #98604d;
  font-size: 12px;
  font-family: "Noto Serif SC", "Songti SC", serif;
}
.translation-body p {
  color: #34403c;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.75;
}
.translate-toggle,
.chapter-translate {
  right: 15px;
  bottom: 16px;
  width: 34px;
  height: 34px;
  margin: 0;
  border: 1px solid #9e4435;
  border-radius: 0;
  background: #a94737;
  color: #fff9ed;
  font-size: 14px;
}
.translate-toggle[aria-pressed="true"],
.chapter-translate[aria-pressed="true"] { background: #6e2f29; color: #fff; }
.annot:hover,
.annot:focus-visible,
.annot[aria-pressed="true"] { background: #e9e1cc; }
.marker.key::before { background: #a94737; border-color: #8e3e32; }

.sequence-board,
.answer-card {
  border: 1px solid #c3b8a6;
  border-radius: 0;
  background: #f2ecdf;
  box-shadow: none;
}
.sequence-board { padding: 19px; }
.sequence-list { gap: 9px; }
.sequence-slot {
  border: 1px solid #a94737;
  border-radius: 0;
  background: #a94737;
  color: #fff9ed;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 15px;
}
.sequence-item {
  border: 1px solid #c5bbaa;
  border-radius: 0;
  background: #fbf8f1;
  box-shadow: none;
}
.sequence-copy h3 { color: #30332e; font-family: "Noto Serif SC", "Songti SC", serif; }
.sequence-copy p { color: #625f56; font-size: 13px; }
.sequence-handle { border-radius: 0; background: #ebe5d9; color: #82796b; }
.sequence-feedback, .match-feedback { color: #655f55; font-size: 12px; }
.sequence-button, .match-button {
  border: 1px solid #a99b87;
  border-radius: 0;
  background: #faf7ef;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 13px;
}
.primary { border-color: #a94737; background: #a94737; color: #fff9ed; }
.answer-card { background: #fbf8f0; }
.answer-card h3 { font-family: "Noto Serif SC", "Songti SC", serif; font-size: 23px; }
.match-row p { color: #625f56; font-size: 13px; }
.match-blank, .match-option { border-radius: 0; }
.match-blank { border: 1px dashed #a99376; background: #f8f2e6; font-size: 13px; }
.match-option { border: 1px solid #aa9b85; background: #f2ecdf; font-size: 13px; }
.match-blank[data-active="true"] { outline-color: #b78363; }
.match-option[data-active="true"] { background: #e3d6bc; outline-color: #a94737; }
.option-bank strong { border-top-color: #c7bba7; color: #675d51; font-size: 12px; }
.match-toolbar { border: 1px solid #c2b5a1; border-radius: 0; background: #efe9dd; }
.assistant-dock {
  border: 1px solid #9b473a;
  background: #a94737;
  color: #fff9ed;
  box-shadow: 0 6px 22px rgba(80,42,32,.18);
}
.dock-mark { border: 1px solid #fff9ed; background: transparent; }
.assistant-panel { border: 1px solid #5e3932; border-radius: 0; background: #343c39; box-shadow: 7px 7px 0 #a94737aa; }
.note-badge, .note-category { color: #f1d6bb; }
footer { border-top: 1px solid #c6bbaa; background: #f2ecdf; color: #6b645b; }

@media (max-width: 900px) {
  .poem-unit { display: block; }
  .translation-cell { border-left: 0; border-top: 1px solid #c4b9a6; }
  .translation-cell[data-visible="false"] { display: none; }
  .translation-body p { font-size: 17px; }
}

@media (max-width: 700px) {
  .page { width: 100%; margin: 0; border: 0; box-shadow: none; }
  .topbar { min-height: 58px; padding: 10px 15px; }
  .brand { gap: 7px; font-size: 14px; }
  .brand-mark { width: 28px; height: 28px; font-size: 18px; }
  .back { font-size: 12px; }
  .hero {
    align-items: flex-end;
    min-height: 440px;
    background-position: 68% top;
  }
  .hero::before {
    background: linear-gradient(180deg, rgba(248,243,232,.02) 3%, rgba(248,243,232,.05) 29%, rgba(248,243,232,.85) 59%, #f8f3e8 90%);
  }
  .hero-content { width: 100%; padding: 236px 24px 27px; }
  .eyebrow { font-size: 11px; }
  .hero h1 { margin: 9px 0 5px; font-size: 49px; }
  .hero-lead { font-size: 13px; line-height: 1.7; }
  .hero-meta { gap: 8px; margin-top: 11px; }
  .hero-meta span { font-size: 10px; }
  main { padding: 32px 13px 55px; }
  .content-section + .content-section { margin-top: 54px; }
  .section-head { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 12px; }
  .section-head h2 { font-size: 24px; }
  .section-head p { width: 100%; margin: 0; font-size: 12px; }
  #original-title + p { display: block; }
  .focus-toggle { margin-left: auto; font-size: 12px; }
  .poem-unit .original-cell { min-height: 92px; padding: 21px 45px 23px 11px; }
  .poem-unit:first-child .original-cell { min-height: 102px; }
  .poem-title { font-size: 30px; }
  .verse { font-size: 25px; line-height: 1.76; }
  .translation-cell { padding: 16px 19px; }
  .translation-body p { font-size: 17px; line-height: 1.75; }
  .translate-toggle { right: 9px; bottom: 14px; width: 32px; height: 32px; }
  .sequence-board { padding: 10px; }
  .sequence-copy { display: block; }
  .sequence-copy p { margin-top: 4px; font-size: 12px; }
  .sequence-feedback, .match-feedback { font-size: 11px; }
  .sequence-footer, .match-toolbar { align-items: flex-start; flex-wrap: wrap; }
  .answer-card { padding: 17px; }
  .answer-card h3 { font-size: 21px; }
  .match-row p { font-size: 12px; }
  .match-option { font-size: 12px; }
  .assistant-dock { right: 13px; bottom: 13px; }
}

@media (max-width: 360px) {
  .brand { font-size: 12px; }
  .hero-content { padding-inline: 18px; }
  .hero h1 { font-size: 44px; }
  .verse { font-size: 22px; }
}
