:root {
  color-scheme: light;
  --paper: #faf9f7;
  --surface: #fff;
  --ink: #252b44;
  --muted: #626777;
  --line: #e8e7e5;
  --primary: #3f6755;
  --primary-dark: #315344;
  --mint: #e3eee7;
  --rose: #f8e6e6;
  --shadow: 0 12px 30px #2936460a;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
button, input, textarea, select { font: inherit; color: inherit; }
button, select { cursor: pointer; }
button { border: 0; background: none; }
button:disabled { opacity: .55; cursor: default; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #456cc0; outline-offset: 4px; }
.skip { position: fixed; top: 8px; left: 10px; z-index: 4; transform: translateY(-180%); padding: 12px; background: white; }
.skip:focus { transform: none; }
.site-header { background: #fffdfa; border-bottom: 1px solid var(--line); }
.header-inner, .main, .footer { max-width: 1240px; margin-inline: auto; padding-inline: 28px; }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 750; font-size: 21px; letter-spacing: .05em; white-space: nowrap; }
.brand small { display: block; margin-top: 1px; color: var(--muted); font-size: 11px; font-weight: 500; letter-spacing: .12em; }
.mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 30% 54% 34% 46%; color: #fff9df; background: #537662; font-size: 25px; }
nav { display: flex; align-items: stretch; gap: clamp(12px, 3vw, 38px); align-self: stretch; }
nav a { display: grid; place-items: center; border-bottom: 2px solid transparent; font-size: 15px; font-weight: 650; white-space: nowrap; color: #555b6d; }
nav a[aria-current] { color: var(--primary-dark); border-color: var(--primary); }
nav a:hover, .search-trigger:hover, .footer a:hover { color: var(--primary-dark); }
.header-actions, .action-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.search-trigger { padding: 6px; color: var(--muted); display: flex; align-items: center; gap: 5px; font-size: 14px; white-space: nowrap; }
.search-trigger > span:first-child { font-size: 23px; line-height: 1; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 9px 16px; border-radius: 9px; border: 1px solid transparent; font-size: 14px; font-weight: 680; white-space: nowrap; }
.button.primary { background: var(--primary); color: white; }
.button.primary:hover { background: var(--primary-dark); }
.button.outline { border-color: #d6ded5; background: white; color: var(--primary-dark); max-width: 180px; text-overflow: ellipsis; overflow: hidden; }
.button.outline:hover { background: var(--mint); }
.button.text { color: var(--primary-dark); padding-inline: 8px; }
.button.text:hover { text-decoration: underline; }
.main { min-height: 65vh; padding-top: 28px; padding-bottom: 42px; }
.hero { min-height: 399px; position: relative; overflow: hidden; isolation: isolate; border-radius: 22px; display: flex; align-items: center; color: #fffdf4; background: #112449; }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 46%; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #101d3ae8 0%, #162747ce 27%, #15264432 59%, transparent 82%); }
.hero-copy { padding: 38px 48px; }
.hero-kicker { color: #ffda9c; font-size: 14px; font-weight: 700; letter-spacing: .14em; }
.hero h1 { margin-block: 14px; font-family: "Noto Serif SC", "Songti SC", "SimSun", serif; font-size: clamp(40px, 5.1vw, 66px); font-weight: 760; line-height: 1.13; letter-spacing: .025em; }
.hero-copy > p:not(.hero-kicker) { font-size: 16px; line-height: 1.7; color: #f0eee9; max-width: 310px; }
.hero .action-row { margin-top: 24px; }
.hero .button.primary { background: #f1ddaf; color: #263343; border-color: #f1ddaf; }
.hero .button.primary:hover { background: #fff0c9; }
.hero .button.outline { background: #18294774; color: #fffdf4; border-color: #ede6d9a0; }
.hero .button.outline:hover { background: #263c59; }
.launch-note { min-height: 61px; display: flex; gap: 12px; align-items: center; margin-top: 17px; border: 1px solid #efe5ce; border-radius: 12px; padding: 12px 16px; background: #fff7e9; }
.launch-note span[aria-hidden] { color: #8b652f; font-size: 19px; }
.launch-note strong { color: #644826; font-size: 14px; }
.launch-note time { color: #654f3d; font-size: 14px; }
.launch-note a { margin-left: auto; }
.block { margin-top: 34px; }
.block-top { display: flex; align-items: end; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.block-top h2 { font-size: 25px; letter-spacing: .045em; }
.block-top p { margin-top: 4px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.tiles, .guide-grid { display: grid; gap: 12px; }
.tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.tile, .guide-card, .panel-card { background: var(--surface); border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow); }
.tile { padding: 15px 12px; min-height: 115px; }
.tile:hover, .guide-card:hover, .topic-row:hover { border-color: #a9c0b0; background: #fcfefa; }
.tile strong, .tile small { display: block; }
.tile strong { margin-top: 9px; white-space: nowrap; font-size: 15px; }
.tile small { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.symbol { display: inline-grid; place-items: center; width: 33px; height: 33px; border-radius: 10px; background: var(--mint); color: #35604e; font-size: 22px; }
.symbol.peach { background: #fff0e0; color: #915629; }
.symbol.sky { background: #e8f2fa; color: #3a6792; }
.symbol.lilac { background: #efebf9; color: #694d9f; }
.symbol.rose { background: #f8e8ea; color: #a34e65; }
.symbol.sand { background: #f9f0d7; color: #826128; }
.guide-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.guide-card { padding: 16px; min-height: 126px; display: flex; flex-direction: column; justify-content: center; }
.guide-card h3 { margin-top: 7px; font-size: 17px; line-height: 1.4; }
.guide-card p { margin-top: 5px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.guide-meta { color: var(--primary-dark); font-size: 12px; font-weight: 650; }
.sub-hero { border-radius: 16px; padding: 27px 24px; background: linear-gradient(100deg, #e6eee4, #f2f4ec); }
.sub-hero h1, .article h1 { font-size: clamp(28px, 4.1vw, 43px); line-height: 1.28; }
.sub-hero p { margin-top: 7px; color: #40554c; font-size: 15px; line-height: 1.55; }
.sub-hero.row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.search-box { display: flex; align-items: center; gap: 8px; border: 1px solid #dddeda; padding: 0 12px; background: white; border-radius: 9px; width: min(100%, 430px); }
.search-box span { color: var(--muted); font-size: 22px; }
.search-box input { min-height: 44px; border: none; background: transparent; width: 100%; }
.search-box input:focus-visible { outline-offset: 0; }
.toolbar { margin: 18px 0 13px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { display: inline-flex; border: 1px solid #dfe4dd; background: #fff; border-radius: 22px; padding: 7px 11px; font-size: 14px; color: #4b5562; line-height: 1.3; }
.chip[aria-current] { background: var(--mint); color: var(--primary-dark); border-color: #c2d6c8; font-weight: 680; }
.chip:hover { border-color: #8cae97; }
.results { margin: 0 0 11px; color: var(--muted); font-size: 14px; }
.atlas-shelf { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.atlas-volume { padding: 19px 21px; border: 1px solid var(--atlas-line); border-radius: 14px; background: var(--atlas-paper); color: var(--atlas-ink); }
.atlas-volume.people { --atlas-paper: #f5f0f4; --atlas-line: #e5dce4; --atlas-ink: #62445c; }
.atlas-volume.plants { --atlas-paper: #edf3eb; --atlas-line: #d6e2d4; --atlas-ink: #355642; }
.atlas-volume-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--atlas-line); }
.atlas-volume-head h3 { font-family: "Noto Serif SC", "Songti SC", "SimSun", serif; font-size: 23px; }
.atlas-volume-head span { font-size: 14px; white-space: nowrap; }
.atlas-volume-links { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); column-gap: 10px; }
.atlas-volume-links a { display: grid; align-content: start; padding-top: 12px; gap: 3px; line-height: 1.55; overflow-wrap: anywhere; }
.atlas-volume-links a:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.atlas-volume-links strong { font-size: 15px; }
.atlas-volume-links span { color: #59625f; font-size: 14px; }
.atlas-intro { background: linear-gradient(110deg, #e6ede6, #f7f0e2); }
.atlas-results { margin-top: 22px; }
.atlas-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.atlas-group + .atlas-group { margin-top: 29px; }
.atlas-group h2 { display: flex; align-items: center; gap: 9px; font-size: 21px; margin-bottom: 12px; }
.atlas-group h2 small { color: var(--muted); font-size: 14px; font-weight: 500; }
.atlas-card { gap: 8px; justify-content: start; padding: 16px; min-height: 135px; overflow-wrap: anywhere; }
.atlas-card h3, .atlas-card p { margin: 0; }
.atlas-card p { font-size: 16px; line-height: 1.55; }
.atlas-card small { margin-top: auto; color: var(--primary-dark); font-size: 13px; line-height: 1.5; }
.article .atlas-category { display: flex; gap: 8px; align-items: center; color: var(--primary-dark); margin-bottom: 10px; font-size: 14px; font-weight: 650; }
.atlas-detail { overflow-wrap: anywhere; }
.atlas-volume-links .shelf-entry { display: flex; align-items: center; gap: 9px; }
.shelf-entry img { flex: none; width: 48px; height: 48px; object-fit: contain; border-radius: 9px; background: #ffffff80; }
.shelf-entry div { min-width: 0; }
.shelf-entry strong, .shelf-entry span { display: block; }
.atlas-grid .atlas-card { padding: 0; gap: 0; overflow: hidden; }
.atlas-plate { display: grid; place-items: center; background: radial-gradient(ellipse at 50% 45%, #fbfcf5, #e8efdf); }
.atlas-plate.plate-neighbors, .atlas-plate.plate-player { background: radial-gradient(ellipse at 50% 40%, #fffaf5, #eee1e6); }
.atlas-plate.plate-flowers { background: radial-gradient(ellipse at 50% 45%, #fbf8ff, #ece6f3); }
.atlas-plate.plate-orchard { background: radial-gradient(ellipse at 50% 40%, #fff9ea, #f2e6d3); }
.atlas-card .atlas-plate { width: 100%; height: clamp(126px, 13vw, 180px); }
.atlas-plate img { width: 100%; height: 100%; min-height: 0; object-fit: contain; display: block; }
.atlas-blurb { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px; }
.atlas-figure { margin: 18px 0 12px; }
.atlas-figure .atlas-plate { height: clamp(190px, 32vw, 360px); border-radius: 14px; overflow: hidden; }
.atlas-figure figcaption { margin-top: 7px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.atlas-figure figcaption a { font-weight: 500; }
.atlas-facts { margin: 0; padding-left: 1.3em; }
.atlas-facts li + li { margin-top: 5px; }
.atlas-citation { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 17px; }
.atlas-citation h2 { margin-top: 0; }
.atlas-citation a { display: inline-block; margin-top: 5px; line-height: 1.6; }
.atlas-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 20px 3px; }
.back { display: inline-flex; padding: 5px 0; color: var(--primary-dark); font-size: 14px; font-weight: 650; margin-bottom: 13px; }
.back:hover { text-decoration: underline; }
.article, .topic-detail { max-width: 850px; margin-inline: auto; }
.article .panel-card, .topic-detail .panel-card { padding: clamp(16px, 4vw, 35px); }
.article .guide-meta { margin-bottom: 7px; }
.article h2, .topic-detail h2 { font-size: 20px; margin-block: 21px 8px; }
.article p, .article li { font-size: 16px; line-height: 1.8; color: #454e5d; }
.article .intro { margin-top: 12px; }
.article a:not(.back):not(.guide-card), .text-link { color: #2e654d; font-weight: 620; text-decoration: underline; text-underline-offset: 3px; }
.source-list { padding-left: 21px; }
.related { margin-top: 19px; }
.related h2 { margin-block: 0 10px; }
.topic-layout { display: grid; grid-template-columns: minmax(0, 1fr) 248px; align-items: start; gap: 14px; }
.topic-sidebar { padding: 16px; line-height: 1.55; }
.topic-sidebar h2 { font-size: 17px; }
.topic-sidebar p { margin-top: 6px; font-size: 14px; color: var(--muted); }
.topic-sidebar a { display: inline-block; margin-top: 7px; }
.topic-list { display: grid; gap: 8px; }
.topic-row { background: white; border: 1px solid var(--line); border-radius: 11px; padding: 13px 15px; min-width: 0; }
.topic-row h3 { font-size: 17px; margin-block: 4px; overflow-wrap: anywhere; }
.topic-row p { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; line-height: 1.48; }
.topic-top { color: #456552; font-size: 13px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.topic-meta { margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.pager { margin-top: 12px; display: flex; gap: 8px; align-items: center; justify-content: end; color: var(--muted); font-size: 14px; }
.center { padding: 27px 16px; text-align: center; color: var(--muted); line-height: 1.65; }
.center .button { margin-top: 8px; }
.topic-detail h1 { font-size: clamp(26px, 4vw, 38px); line-height: 1.3; margin-block: 8px 6px; overflow-wrap: anywhere; }
.post-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.78; font-size: 16px; margin-top: 13px; }
.subtle { color: var(--muted); font-size: 14px; line-height: 1.55; }
.comment { border-top: 1px solid var(--line); padding-block: 13px; }
.comment .post-text { margin-top: 7px; }
.reply-form { margin-top: 12px; }
.form { display: grid; gap: 11px; margin-top: 13px; }
.form label { display: grid; gap: 5px; font-size: 14px; font-weight: 650; }
.form :is(input, textarea, select) { border: 1px solid #dcded9; border-radius: 8px; background: #fff; padding: 10px; width: 100%; }
.form textarea { resize: vertical; min-height: 100px; }
.form p { color: var(--muted); font-size: 14px; line-height: 1.55; }
.form :is(button,.button) { justify-self: start; }
.error { color: #a23e4b !important; margin-top: 6px; }
.reply-form .form { margin-top: 7px; }
.report { display: grid; gap: 8px; padding: 16px; }
.report p { overflow-wrap: anywhere; }
.footer { border-top: 1px solid var(--line); padding-top: 19px; padding-bottom: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 14px; }
.footer p, .footer-links { color: var(--muted); font-size: 13px; }
.footer p { margin-top: 3px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 15px; }
dialog { width: min(550px, calc(100% - 24px)); border: 1px solid var(--line); padding: 0; color: var(--ink); background: white; border-radius: 15px; }
dialog::backdrop { background: #222a46a1; }
.dialog-frame { position: relative; padding: 23px; }
.close-button { position: absolute; right: 9px; top: 8px; width: 37px; height: 37px; border-radius: 9px; font-size: 23px; color: var(--muted); }
.close-button:hover { background: #f2f1ef; }
.dialog-frame h2 { font-size: 22px; margin-right: 28px; }
.dialog-frame p { margin-top: 6px; }
.key-box { display: block; overflow-wrap: anywhere; background: #eef4ef; border-radius: 8px; padding: 10px; margin-top: 10px; user-select: all; }
.dialog-frame .action-row { margin-top: 12px; }
.toast { position: fixed; z-index: 5; bottom: 17px; right: 17px; max-width: min(480px,calc(100% - 34px)); border-radius: 9px; padding: 12px 16px; color: white; background: #263548; box-shadow: var(--shadow); line-height: 1.5; }
@media (max-width: 1000px) {
  .tiles { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .tile { min-height: 97px; }
  .hero { min-height: 360px; }
}
@media (max-width: 760px) {
  .header-inner, .main, .footer { padding-inline: 15px; }
  .header-inner { min-height: 61px; gap: 9px; }
  .brand { font-size: 17px; gap: 6px; }
  .brand small { font-size: 10px; }
  .mark { width: 32px; height: 32px; font-size: 20px; }
  nav { gap: 10px; }
  nav a { font-size: 13px; }
  .header-actions { gap: 2px; }
  .header-actions .button { min-height: 35px; padding: 5px 8px; font-size: 13px; max-width: 94px; }
  .desktop { display: none; }
  .main { padding-top: 15px; }
  .hero { min-height: 335px; }
  .hero-copy { padding-inline: 24px; }
  .hero-art { object-position: 57% center; }
  .hero::before { background: linear-gradient(90deg,#101d3ae8 0%,#162747bd 43%,#15264434 82%); }
  .guide-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .atlas-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .atlas-volume { padding: 15px; }
  .topic-layout { grid-template-columns: 1fr; }
  .topic-sidebar { margin-top: 6px; }
}
@media (max-width: 580px) {
  .header-inner { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 0 12px; }
  .header-inner .brand { min-height: 46px; }
  .header-inner nav { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; gap: 0; }
  .header-inner nav a { font-size: 14px; min-height: 39px; padding-inline: 5px; }
  .header-actions { grid-row: 1; grid-column: 2; }
  .atlas-shelf { grid-template-columns: 1fr; gap: 9px; }
}
@media (max-width: 460px) {
  .header-inner, .main, .footer { padding-inline: 10px; }
  .brand { font-size: 14px; }
  .brand small { display: none; }
  .mark { width: 26px; height: 26px; font-size: 16px; }
  nav { gap: 7px; }
  nav a { font-size: 12px; }
  .search-trigger { padding: 3px; }
  .hero { border-radius: 14px; min-height: 320px; }
  .hero-copy { padding-inline: 16px; }
  .hero h1 { font-size: 43px; }
  .hero-art { object-position: 59% center; }
  .hero::before { background: linear-gradient(90deg,#101d3afd 0%,#162747bd 62%,#15264455 100%); }
  .launch-note { flex-wrap: wrap; gap: 5px 8px; padding: 8px; }
  .launch-note .button { min-height: 30px; padding-block: 3px; }
  .tiles, .guide-grid { gap: 7px; }
  .tile { padding: 9px 8px; }
  .tile strong { font-size: 14px; }
  .tile small { font-size: 11px; }
  .guide-card { padding: 11px; }
  .atlas-grid { grid-template-columns: 1fr; gap: 8px; }
  .atlas-card { min-height: auto; gap: 6px; padding: 14px; }
  .atlas-foot { font-size: 14px; }
  .atlas-grid .atlas-card { display: grid; grid-template-columns: minmax(100px, 32%) minmax(0,1fr); }
  .atlas-card .atlas-plate { width: 100%; height: 100%; min-height: 118px; }
  .atlas-card .atlas-plate img { max-height: 175px; align-self: center; }
  .atlas-blurb { padding: 12px; }
  .guide-card h3 { font-size: 15px; }
  .block-top h2 { font-size: 22px; }
  .sub-hero { padding: 16px; }
  .sub-hero .button { padding-inline: 9px; }
}
