:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  --bg: #f0ede4;
  --paper: #faf9f4;
  --surface: #fffdf8;
  --surface-muted: #e7eee8;
  --ink: #24332f;
  --muted: #6e7972;
  --line: #d4d8cf;
  --line-strong: #9aa79d;
  --sea: #327361;
  --sea-strong: #1d5648;
  --sea-soft: #e0ece5;
  --coral: #b85b49;
  --coral-soft: #f2e1da;
  --blue: #557984;
  --blue-soft: #e3edf0;
  --gold: #a87936;
  --gold-soft: #f1e7d1;
  --danger: #a74840;
  --danger-soft: #f4dfdb;
  background: var(--bg);
  color: var(--ink);
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; overflow-x: clip; background: var(--bg); }
body { min-height: 100%; margin: 0; overflow-x: clip; background: var(--bg); color: var(--ink); }
button, input, select, textarea { font: inherit; letter-spacing: 0; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
a { color: inherit; }
img { max-width: 100%; }
.site-shell { background: var(--bg); }
h1, h2, h3, p { overflow-wrap: break-word; }
.static-fallback { width: min(1120px, calc(100% - 40px)); min-height: 72vh; margin-inline: auto; display: grid; align-content: center; justify-items: start; gap: 12px; }
.static-fallback h1 { margin: 0; font-family: "Songti SC", "STSong", serif; font-size: 64px; }
.static-fallback p { margin: 0; color: var(--muted); font-size: 18px; line-height: 1.8; }
.static-fallback a { margin-top: 8px; color: var(--sea); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }

.page-width { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.page-main { min-height: calc(100vh - 140px); padding: 24px 0 68px; }
.site-header { position: sticky; z-index: 50; top: 0; min-height: 62px; border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header-inner { width: min(1240px, calc(100% - 40px)); min-height: 62px; margin-inline: auto; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 24px; }
.site-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.site-brand strong { font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif; font-size: 23px; }
.brand-mark { position: relative; width: 43px; height: 31px; display: inline-block; color: var(--sea); }
.brand-island { position: absolute; display: block; background: currentColor; transform: rotate(-8deg); }
.brand-island-a { width: 13px; height: 8px; left: 1px; top: 14px; border-radius: 55% 45% 60% 40%; }
.brand-island-b { width: 18px; height: 11px; left: 16px; top: 4px; border-radius: 44% 56% 41% 59%; }
.brand-island-c { width: 11px; height: 7px; right: 0; bottom: 2px; border-radius: 60% 40% 48% 52%; }
.brand-route { position: absolute; width: 31px; height: 16px; left: 7px; top: 10px; border-bottom: 1px solid var(--coral); border-radius: 50%; transform: rotate(12deg); }
.site-navigation { width: max-content; max-width: 100%; padding: 3px; display: flex; align-items: center; gap: 2px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); }
.site-navigation a { min-height: 34px; padding: 6px 11px; display: inline-flex; align-items: center; gap: 6px; border-radius: 99px; color: var(--muted); text-decoration: none; }
.site-navigation a:hover { color: var(--ink); }
.site-navigation a.active { background: var(--surface-muted); color: var(--ink); font-weight: 700; }
.site-actions { display: flex; align-items: center; justify-content: flex-end; gap: 5px; }
.site-more { position: relative; }
.site-more-menu { position: absolute; z-index: 70; top: calc(100% + 8px); right: 0; min-width: 128px; padding: 5px; display: none; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 8px 24px color-mix(in srgb, var(--ink) 12%, transparent); }
.site-more:hover .site-more-menu, .site-more:focus-within .site-more-menu, .site-more-menu.open { display: grid; gap: 2px; }
.site-more-menu a { min-height: 34px; padding: 7px 9px; display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; text-decoration: none; }
.site-more-menu a:hover, .site-more-menu a.active { background: var(--sea-soft); color: var(--sea-strong); }
.join-link, .login-link, .account-chip, .icon-action { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border-radius: 4px; text-decoration: none; }
.join-link { padding: 8px 12px; color: var(--sea); }
.join-link:hover { background: var(--sea-soft); }
.login-link { padding: 8px 13px; border: 1px solid var(--sea); background: var(--sea); color: #fff; font-weight: 700; }
.account-chip { max-width: 180px; padding: 4px 8px 4px 4px; color: var(--muted); font-size: 13px; }
.account-chip img { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; object-fit: cover; }
.account-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon-action { position: relative; width: 40px; flex: 0 0 40px; border: 1px solid transparent; background: transparent; color: var(--muted); padding: 0; }
.icon-action:hover, .icon-action.active { border-color: var(--line); background: var(--surface-muted); color: var(--sea); }
.notification-dot { position: absolute; right: 7px; top: 7px; width: 7px; height: 7px; border: 2px solid var(--surface); border-radius: 50%; background: var(--coral); }
.mobile-navigation { display: none; }

.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.site-footer > div { width: min(1120px, calc(100% - 40px)); min-height: 92px; margin-inline: auto; display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; color: var(--muted); font-size: 13px; }
.site-footer > div > span { color: var(--ink); font-family: "Songti SC", "STSong", serif; font-size: 20px; font-weight: 800; }
.site-footer p { margin: 0; }
.site-footer a { display: inline-flex; align-items: center; gap: 6px; color: var(--sea); }

.eyebrow { color: var(--coral); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; font-weight: 750; }
.home-hero { position: relative; min-height: calc(100svh - 62px); border-bottom: 1px solid var(--line); background: var(--paper); overflow: hidden; }
.home-hero-inner { position: relative; width: min(1240px, calc(100% - 40px)); min-height: calc(100svh - 62px); margin-inline: auto; padding: 78px 0 58px; display: grid; grid-template-columns: minmax(270px, .82fr) minmax(420px, 1.24fr) minmax(185px, .48fr); gap: clamp(24px, 3.4vw, 58px); align-items: center; }
.home-hero-copy { max-width: 500px; padding: 30px 0 25px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.home-hero h1 { margin: 11px 0 13px; font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif; font-size: 88px; line-height: .88; font-weight: 850; letter-spacing: .02em; }
.home-poem { margin: 0 0 11px; font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif; font-size: 26px; line-height: 1.5; }
.home-description { max-width: 430px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.85; }
.hero-editorial { min-width: 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); }
.hero-editorial > header { min-height: 46px; padding: 0 4px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.hero-editorial > header span, .hero-editorial > header a { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; }
.hero-editorial > header span { color: var(--coral); font-weight: 750; }
.hero-editorial > header a { color: var(--sea); text-decoration: none; }
.hero-picks { display: grid; }
.hero-picks > a { position: relative; min-height: 112px; padding: 15px 4px; display: grid; grid-template-columns: 28px 48px minmax(0, 1fr) 20px; gap: 13px; align-items: center; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding .18s ease, background .18s ease; }
.hero-picks > a:last-child { border-bottom: 0; }
.hero-picks > a:hover { padding-inline: 12px; background: color-mix(in srgb, var(--surface) 62%, transparent); }
.pick-number { color: var(--coral); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 10px; }
.hero-picks img { width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 50%; object-fit: cover; }
.hero-picks div { min-width: 0; }
.hero-picks strong { font-family: "Songti SC", "STSong", serif; font-size: 19px; }
.hero-picks p { margin: 6px 0; overflow: hidden; color: var(--muted); font-size: 12px; line-height: 1.55; text-overflow: ellipsis; white-space: nowrap; }
.hero-picks small { color: var(--blue); font-size: 10px; }
.pick-arrow { color: var(--muted); }
.home-hero-rail { min-width: 0; min-height: 410px; padding-left: 22px; display: flex; flex-direction: column; gap: 22px; border-left: 1px solid var(--line); }
.rail-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rail-code { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 9px; }
.home-stat-grid { display: grid; gap: 0; border-top: 1px solid var(--line); }
.home-stat { min-height: 74px; padding: 12px 0; display: grid; align-content: center; gap: 3px; border-bottom: 1px solid var(--line); }
.home-stat strong { color: var(--ink); font-family: "Songti SC", "STSong", serif; font-size: 25px; line-height: 1; }
.home-stat span { color: var(--muted); font-size: 10px; }
.home-rail-nav { display: grid; border-top: 1px solid var(--line); }
.home-rail-nav a { min-height: 46px; padding: 8px 0; display: grid; grid-template-columns: 22px minmax(0, 1fr) 14px; gap: 7px; align-items: center; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.home-rail-nav a:hover { color: var(--sea-strong); }
.home-rail-nav span { color: var(--coral); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 9px; }
.home-rail-nav strong { font-family: "Songti SC", "STSong", serif; font-size: 13px; }
.home-rail-nav svg { color: var(--muted); }
.home-rail-arrivals { margin-top: auto; display: grid; gap: 7px; }
.home-rail-arrivals > a { min-width: 0; display: grid; gap: 2px; color: var(--ink); text-decoration: none; }
.home-rail-arrivals > a:hover span { color: var(--sea-strong); }
.home-rail-arrivals a span { overflow: hidden; font-family: "Songti SC", "STSong", serif; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.home-rail-arrivals a small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.home-hero-ticker { position: absolute; right: 0; bottom: 17px; left: 0; min-height: 25px; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border-top: 1px solid var(--line); color: var(--muted); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 9px; }
.home-hero-ticker span:last-child { color: var(--sea); }
.search-box { width: min(520px, 100%); min-height: 46px; margin-top: 25px; padding: 0 13px; display: flex; align-items: center; gap: 9px; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--surface); color: var(--muted); }
.search-box:focus-within { border-color: var(--sea); box-shadow: 0 0 0 2px var(--sea-soft); }
.search-box input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); }
.hero-actions { margin-top: 13px; display: flex; gap: 8px; flex-wrap: wrap; }
.button { min-height: 38px; padding: 7px 13px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line-strong); border-radius: 2px; background: var(--surface); color: var(--ink); font-weight: 680; text-decoration: none; }
.button.primary { border-color: var(--sea); background: var(--sea); color: #fff; }
.button.primary:hover { background: var(--sea-strong); }
.button.secondary:hover, .button:hover { border-color: var(--sea); color: var(--sea); }
.button.quiet { border-color: transparent; background: transparent; color: var(--muted); }
.button.small { min-height: 36px; padding: 6px 10px; font-size: 12px; }
.home-body { padding-bottom: 68px; }
.demo-banner { min-height: 40px; margin: 16px 0 0; padding: 8px 12px; display: flex; align-items: center; gap: 9px; border-left: 3px solid var(--coral); background: var(--coral-soft); color: color-mix(in srgb, var(--ink) 80%, var(--coral)); font-size: 12px; }
.demo-banner > span { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }
.home-principles { padding: 34px 0 10px; display: grid; grid-template-columns: minmax(250px, .8fr) minmax(0, 1.2fr); gap: 44px; border-bottom: 1px solid var(--line); }
.home-principles h2 { max-width: 330px; margin: 7px 0 9px; font-family: "Songti SC", "STSong", serif; font-size: 27px; line-height: 1.35; }
.home-principles header p { max-width: 350px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.principles-list { border-top: 2px solid var(--ink); }
.principles-list article { min-height: 74px; padding: 11px 2px; display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 14px; border-bottom: 1px solid var(--line); }
.principles-list article > span { color: var(--coral); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; }
.principles-list strong { font-family: "Songti SC", "STSong", serif; font-size: 18px; }
.principles-list p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.content-section { padding: 36px 0 10px; }
.content-section + .content-section { margin-top: 28px; border-top: 1px solid var(--line); }
.section-heading { min-height: 54px; margin-bottom: 14px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.section-heading h2 { margin: 6px 0 0; padding-left: 11px; border-left: 2px solid var(--coral); font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif; font-size: 26px; line-height: 1.2; }
.section-heading > a:not(.button) { display: inline-flex; align-items: center; gap: 5px; color: var(--sea); font-size: 12px; text-decoration: none; }
.island-grid { display: grid; gap: 18px; }
.featured-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.badge-tag { color: var(--gold); background: var(--gold-soft) !important; }
.island-card { min-height: 214px; padding: 16px; display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; gap: 11px; border: 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); border-radius: 0; background: var(--surface); transition: border-color .18s ease, transform .18s ease; }
.island-card:hover { border-top-color: var(--sea); transform: translateY(-2px); }
.island-card-head { display: grid; grid-template-columns: 46px minmax(0, 1fr) 40px; gap: 11px; align-items: center; }
.author-avatar { width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; object-fit: cover; background: var(--surface-muted); }
.island-identity { min-width: 0; display: grid; gap: 3px; }
.island-identity a { overflow: hidden; color: var(--ink); font-family: "Songti SC", "STSong", serif; font-size: 19px; font-weight: 800; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.island-identity a:hover { color: var(--coral); }
.island-identity span { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.island-description { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.72; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tag-line { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; color: var(--blue); font-size: 10px; }
.tag-line span { padding: 3px 6px; border-radius: 2px; background: var(--blue-soft); }
.location-chip { display: inline-flex; align-items: center; gap: 4px; }
.island-card-foot { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.island-card-foot > a { min-width: 0; display: flex; align-items: center; gap: 5px; overflow: hidden; color: var(--blue); font-size: 11px; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.status-group { display: flex; align-items: center; justify-content: flex-end; gap: 5px; flex-wrap: wrap; }
.status { min-height: 21px; padding: 2px 6px; display: inline-flex; align-items: center; gap: 4px; border-radius: 2px; font-size: 9px; white-space: nowrap; }
.status.connected { background: var(--sea-soft); color: var(--sea); }
.status.featured { background: var(--gold-soft); color: var(--gold); }
.status.demo { border: 1px solid color-mix(in srgb, var(--coral) 45%, var(--line)); color: var(--coral); }
.arrival-list { border-top: 2px solid var(--ink); }
.arrival-list > a { min-height: 61px; padding: 9px 3px; display: grid; grid-template-columns: 44px minmax(140px, 1fr) minmax(100px, .6fr) auto 18px; gap: 14px; align-items: center; border-bottom: 1px solid var(--line); text-decoration: none; }
.arrival-list > a:hover { background: color-mix(in srgb, var(--surface-muted) 48%, transparent); }
.arrival-index { color: var(--coral); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; }
.arrival-list strong { font-family: "Songti SC", "STSong", serif; font-size: 17px; }
.arrival-list a > span:not(.arrival-index), .arrival-list time { color: var(--muted); font-size: 12px; }
.section-note { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.home-articles-section { padding-top: 34px; }

.page-intro { min-height: 112px; padding: 18px 0 17px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); }
.page-intro h1 { margin: 6px 0 0; font-family: "Songti SC", "STSong", serif; font-size: 34px; }
.page-intro p { max-width: 660px; margin: 8px 0 0; color: var(--muted); line-height: 1.65; }
.page-intro-aside { color: var(--muted); }
.result-count { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; }
.directory-toolbar { padding: 14px 0; display: grid; grid-template-columns: minmax(220px, 1fr) 180px auto; gap: 10px; align-items: center; }
.directory-toolbar .search-box { margin: 0; }
.select-control { min-height: 46px; padding: 0 10px; display: flex; align-items: center; gap: 7px; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--surface); color: var(--muted); }
.select-control select { min-width: 0; width: 100%; border: 0; outline: 0; background: var(--surface); color: var(--ink); }
.toggle-control { min-height: 44px; padding: 0 10px; display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.toggle-control input { width: 18px; height: 18px; accent-color: var(--sea); }
.segmented-control { min-height: 44px; display: inline-grid; grid-auto-flow: column; border: 1px solid var(--line-strong); border-radius: 4px; overflow: hidden; background: var(--surface); }
.segmented-control button { min-width: 82px; min-height: 42px; padding: 7px 10px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-right: 1px solid var(--line); background: transparent; color: var(--muted); }
.segmented-control button:last-child { border-right: 0; }
.segmented-control button.active { background: var(--sea-soft); color: var(--sea-strong); font-weight: 750; }
.state-panel { min-height: 240px; padding: 28px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 11px; color: var(--muted); text-align: center; }
.state-panel p { max-width: 540px; margin: 0; line-height: 1.65; }
.back-link, .text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--sea); text-decoration: none; font-size: 13px; }
.blog-detail-hero { padding: 34px 0 32px; border-bottom: 1px solid var(--line); }
.blog-detail-author { display: flex; align-items: center; gap: 18px; }
.detail-avatar { width: 74px; height: 74px; flex: 0 0 74px; border: 1px solid var(--line); border-radius: 50%; object-fit: cover; }
.blog-detail-author h1 { margin: 5px 0 3px; font-family: "Songti SC", "STSong", serif; font-size: 39px; }
.blog-detail-author p, .blog-detail-description { color: var(--muted); }
.blog-detail-author p { margin: 0; }
.blog-detail-description { max-width: 760px; margin: 21px 0 17px; font-size: 16px; line-height: 1.8; }
.detail-actions { margin-top: 20px; display: flex; gap: 9px; flex-wrap: wrap; }
.detail-badges { margin-top: 24px; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.detail-badges > span:not(.eyebrow) { padding: 4px 8px; border: 1px solid color-mix(in srgb, var(--gold) 42%, var(--line)); border-radius: 2px; background: var(--gold-soft); color: var(--gold); font-size: 11px; }
.detail-feed-section { padding-top: 24px; }
.article-list { border-top: 1px solid var(--line); }
.article-row { min-height: 112px; padding: 16px 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; border-bottom: 1px solid var(--line); }
.article-row h3 { margin: 5px 0 7px; font-family: "Songti SC", "STSong", serif; font-size: 21px; }
.article-row h3 a { text-decoration: none; }
.article-row h3 a:hover { color: var(--sea); }
.article-row p { max-width: 740px; margin: 0; overflow: hidden; color: var(--muted); line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.article-row time, .article-source { color: var(--muted); font-size: 12px; }
.article-source { display: inline-flex; align-items: center; gap: 7px; }
.article-source img { width: 21px; height: 21px; border: 1px solid var(--line); border-radius: 50%; object-fit: cover; background: var(--surface-muted); }
.article-row time { padding-top: 25px; white-space: nowrap; }
.article-list-compact .article-row { min-height: 94px; padding-block: 13px; }
.article-list-compact .article-row h3 { margin-top: 6px; font-size: 19px; }
.discover-summary { margin: 16px 0 2px; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); background: var(--surface); }
.discover-summary > div { min-height: 76px; padding: 13px 16px; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-content: center; border-right: 1px solid var(--line); }
.discover-summary > div:last-child { border-right: 0; }
.discover-summary svg { grid-row: 1 / -1; align-self: center; color: var(--sea); }
.discover-summary strong { font-family: "Songti SC", "STSong", serif; font-size: 23px; line-height: 1.1; }
.discover-summary span { color: var(--muted); font-size: 11px; }
.discover-toolbar { grid-template-columns: minmax(0, 1fr) 240px; }
.discover-results { padding-top: 23px; }
.rss-notice { margin: 14px 0 0; }
.location-note { padding: 11px 13px; border-left: 3px solid var(--blue); background: var(--blue-soft); color: var(--muted); font-size: 12px; line-height: 1.6; }
.star-stats, .marks-stats { margin: 22px 0; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); background: var(--surface); }
.star-stats > div, .marks-stats > div { min-height: 86px; padding: 16px; display: grid; align-content: center; gap: 3px; border-right: 1px solid var(--line); }
.star-stats > div:last-child, .marks-stats > div:last-child { border-right: 0; }
.star-stats strong, .marks-stats strong { font-family: "Songti SC", "STSong", serif; font-size: 27px; }
.star-stats span, .marks-stats span { color: var(--muted); font-size: 11px; }
.stars-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(260px, .65fr); gap: 16px; }
.star-map-panel, .star-region-panel { min-width: 0; padding: 20px; border: 1px solid var(--line); background: var(--surface); }
.star-map-panel .section-heading, .star-region-panel .section-heading { min-height: 52px; margin-bottom: 10px; }
.star-map-panel .section-heading h2, .star-region-panel .section-heading h2 { font-size: 21px; }
.eyebrow { display: inline-flex; align-items: center; gap: 5px; }
.star-map { position: relative; min-height: 430px; overflow: hidden; border: 1px solid var(--line); background: var(--paper); }
.star-map svg { display: block; width: 100%; height: auto; min-height: 430px; }
.star-map-shapes path { fill: color-mix(in srgb, var(--surface-muted) 55%, transparent); stroke: var(--line-strong); stroke-width: .7; vector-effect: non-scaling-stroke; cursor: pointer; transition: fill .18s ease, stroke .18s ease; }
.star-map-shapes path.has-stars { fill: color-mix(in srgb, var(--sea-soft) 76%, var(--surface)); stroke: var(--sea); }
.star-map-shapes path.active { fill: var(--gold-soft); stroke: var(--gold); stroke-width: 1.4; }
.star-node { cursor: pointer; }
.star-node circle { fill: var(--coral); fill-opacity: .78; stroke: var(--surface); stroke-width: 2; transition: r .18s ease, fill .18s ease; }
.star-node:hover circle, .star-node.active circle { fill: var(--gold); }
.star-node text { fill: var(--ink); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; font-weight: 800; text-anchor: middle; pointer-events: none; }
.star-map-legend { position: absolute; left: 12px; right: 12px; bottom: 10px; display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 10px; }
.star-map-legend span { display: inline-flex; align-items: center; gap: 5px; padding: 5px 7px; background: color-mix(in srgb, var(--surface) 88%, transparent); }
.legend-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }
.region-list { border-top: 2px solid var(--ink); }
.region-list button { width: 100%; min-height: 47px; padding: 7px 2px; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto 16px; gap: 8px; align-items: center; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.region-list button:hover, .region-list button.active { background: var(--sea-soft); color: var(--sea-strong); }
.region-list button > span { color: var(--coral); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 10px; }
.region-list button b { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; }
.region-list button svg { color: var(--muted); }
.star-blogs { padding-top: 37px; }
.marks-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.mark-card { min-height: 205px; padding: 22px; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 18px; border: 1px solid var(--line); background: var(--surface); }
.mark-card.dormant { opacity: .68; }
.mark-icon { width: 58px; height: 58px; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--gold) 48%, var(--line)); border-radius: 50%; background: var(--gold-soft); color: var(--gold); font-family: "Songti SC", "STSong", serif; font-size: 28px; }
.mark-copy { min-width: 0; }
.mark-copy h2 { margin: 5px 0 7px; font-family: "Songti SC", "STSong", serif; font-size: 21px; }
.mark-copy p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.mark-foot { grid-column: 1 / -1; min-height: 40px; display: flex; align-items: center; gap: 6px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.mark-foot span { margin-right: auto; }
.mark-foot a { display: block; }
.mark-foot img { width: 27px; height: 27px; border: 2px solid var(--surface); border-radius: 50%; object-fit: cover; background: var(--surface-muted); }
.platform-form { max-width: 880px; padding: 28px 0; display: grid; gap: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid label { display: grid; gap: 7px; color: var(--muted); font-size: 13px; font-weight: 650; }
.form-grid label.wide { grid-column: 1 / -1; }
.form-grid input, .form-grid select, .form-grid textarea { width: 100%; min-height: 44px; padding: 10px 11px; border: 1px solid var(--line-strong); border-radius: 4px; outline: 0; background: var(--surface); color: var(--ink); resize: vertical; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { border-color: var(--sea); box-shadow: 0 0 0 2px var(--sea-soft); }
.rss-check { min-height: 88px; padding: 17px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid var(--line); background: var(--surface); }
.rss-check > div { display: grid; grid-template-columns: auto 1fr; gap: 4px 9px; align-items: center; }
.rss-check p { grid-column: 2; margin: 0; color: var(--muted); font-size: 12px; }
.notice { min-height: 58px; padding: 13px 15px; display: flex; align-items: center; gap: 11px; border-left: 3px solid var(--blue); background: var(--blue-soft); color: var(--ink); }
.notice .button { margin-left: auto; }
.notice.success { border-left-color: var(--sea); background: var(--sea-soft); }
.notice.error-state { border-left-color: var(--danger); background: var(--danger-soft); color: var(--danger); text-align: left; }
.connect-principles { padding: 24px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); }
.connect-principles > div { min-height: 145px; padding: 22px; display: grid; align-content: start; gap: 9px; background: var(--surface); }
.connect-principles strong { font-size: 15px; }
.connect-principles p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.integration-grid { padding: 26px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.integration-card { min-height: 320px; padding: 22px; display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--surface); }
.integration-card-head { display: flex; align-items: center; justify-content: space-between; }
.integration-icon, .relation-panel-icon { width: 42px; height: 42px; display: grid; place-items: center; background: var(--sea-soft); color: var(--sea); }
.integration-card h2 { margin: 18px 0 8px; font-family: "Songti SC", "STSong", serif; font-size: 23px; }
.integration-card > p { margin: 0; color: var(--muted); line-height: 1.7; }
.integration-card small { margin-top: 9px; color: var(--blue); line-height: 1.5; }
.integration-card ul { margin: 18px 0; padding: 0; display: grid; gap: 7px; list-style: none; }
.integration-card li { display: flex; align-items: center; gap: 7px; font-size: 13px; }
.integration-actions { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.integration-actions a { display: inline-flex; align-items: center; gap: 6px; color: var(--sea); text-decoration: none; }
.integration-detail { padding: 25px 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .7fr); gap: 38px; border-bottom: 1px solid var(--line); }
.integration-detail h2, .protocol-addresses h2 { margin: 0 0 10px; font-family: "Songti SC", "STSong", serif; font-size: 21px; }
.integration-detail p { color: var(--muted); line-height: 1.7; }
.integration-detail ul { margin: 0; padding: 0; display: grid; gap: 8px; list-style: none; }
.integration-detail li { display: flex; align-items: center; gap: 8px; }
.protocol-addresses { padding: 20px; display: grid; align-content: start; gap: 8px; background: var(--surface); border: 1px solid var(--line); }
.protocol-addresses code { padding: 9px; overflow-wrap: anywhere; background: var(--surface-muted); color: var(--sea); }
.connection-steps { padding: 22px 0; }
.connection-steps article { min-height: 90px; padding: 15px 0; display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 16px; border-top: 1px solid var(--line); }
.connection-steps article > span { color: var(--coral); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.connection-steps h3 { margin: 0 0 5px; font-size: 15px; }
.connection-steps p { margin: 0; color: var(--muted); line-height: 1.65; }
.relations-grid { padding: 26px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.relation-panel { min-height: 260px; padding: 24px; display: flex; flex-direction: column; align-items: flex-start; border: 1px solid var(--line); background: var(--surface); }
.relation-panel.wide { grid-column: 1 / -1; min-height: 220px; }
.relation-panel .eyebrow { margin-top: 17px; }
.relation-panel h2 { margin: 6px 0 9px; font-family: "Songti SC", "STSong", serif; font-size: 24px; }
.relation-panel p { max-width: 680px; margin: 0 0 22px; color: var(--muted); line-height: 1.7; }
.relation-panel .button, .relation-panel .text-link { margin-top: auto; }
.relation-summary { margin-top: 22px; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); background: var(--surface); }
.relation-summary > div { min-height: 88px; padding: 15px; display: grid; place-content: center; gap: 3px; border-right: 1px solid var(--line); text-align: center; }
.relation-summary > div:last-child { border-right: 0; }
.relation-summary strong { font-family: "Songti SC", "STSong", serif; font-size: 24px; }
.relation-summary span { color: var(--muted); font-size: 11px; }
.notification-list { width: 100%; margin: 0 0 16px; display: grid; }
.notification-list a { min-height: 38px; display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; gap: 7px; align-items: center; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 12px; }
.notification-list a > span { width: 6px; height: 6px; border-radius: 50%; }
.notification-list a > span.unread { background: var(--coral); }
.notification-list time { color: var(--muted); }
.trusted-section { padding-top: 20px; }
.trusted-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.trusted-list article { min-height: 70px; padding: 13px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 11px; align-items: center; border: 1px solid var(--line); background: var(--surface); }
.trusted-list article > svg { color: var(--sea); }
.trusted-list article div { min-width: 0; display: grid; gap: 3px; }
.trusted-list article span { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.relation-request-list { display: grid; gap: 8px; }
.relation-request-list article { min-height: 72px; padding: 12px 14px; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; border: 1px solid var(--line); background: var(--surface); }
.relation-request-list article > div { display: grid; gap: 3px; }
.relation-request-list article span { color: var(--muted); font-size: 12px; }
.relation-notice { margin-top: 15px; max-width: 620px; }
.result-count { display: inline-flex; align-items: center; gap: 5px; }
.admin-section-nav { min-height: 58px; display: flex; align-items: center; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.admin-section-nav a { min-height: 42px; padding: 9px 12px; display: inline-flex; align-items: center; gap: 7px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.admin-section-nav a.active { background: var(--sea-soft); color: var(--sea); font-weight: 700; }
.admin-workspace { padding-top: 19px; }
.review-list { display: grid; gap: 12px; }
.review-list article { padding: 20px; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(230px, .7fr) auto; gap: 22px; align-items: start; border: 1px solid var(--line); background: var(--surface); }
.review-list h3 { margin: 8px 0 6px; font-family: "Songti SC", "STSong", serif; font-size: 22px; }
.review-list p { margin: 0; color: var(--muted); line-height: 1.6; }
.review-links { margin-top: 12px; display: flex; gap: 14px; }
.review-links a { display: inline-flex; align-items: center; gap: 4px; color: var(--sea); font-size: 12px; }
.review-list dl { margin: 0; display: grid; gap: 8px; }
.review-list dl div { display: grid; grid-template-columns: 70px 1fr; gap: 8px; font-size: 12px; }
.review-list dt { color: var(--muted); }
.review-list dd { margin: 0; }
.review-actions { display: flex; gap: 7px; }
.admin-blog-table { border-top: 1px solid var(--line); }
.admin-blog-table article { min-height: 72px; padding: 10px 0; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto 40px 120px; gap: 12px; align-items: center; border-bottom: 1px solid var(--line); }
.admin-blog-table img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.admin-blog-table article > div { min-width: 0; display: grid; gap: 3px; }
.admin-blog-table article > div span { overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.admin-blog-table select { min-height: 38px; padding: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.settings-panel { min-height: 210px; padding: 25px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: start; border: 1px solid var(--line); background: var(--surface); }
.settings-panel h2 { margin: 6px 0 8px; font-family: "Songti SC", "STSong", serif; }
.settings-panel p { max-width: 650px; margin: 0; color: var(--muted); line-height: 1.7; }
.spin { animation: spin .8s linear infinite; }
.loading-ring { width: 24px; height: 24px; border: 2px solid var(--line); border-top-color: var(--sea); border-radius: 50%; animation: spin .8s linear infinite; }
.error-state { color: var(--danger); }
@keyframes spin { to { transform: rotate(360deg); } }

.button.primary, .login-link { color: #10231d; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media (max-width: 920px) {
  .site-header-inner { gap: 14px; }
  .site-navigation a { padding-inline: 9px; }
  .site-navigation a span { display: none; }
  .home-hero-inner { grid-template-columns: minmax(250px, .78fr) minmax(340px, 1.2fr) minmax(160px, .45fr); gap: 22px; }
  .home-hero h1 { font-size: 66px; }
  .home-poem { font-size: 23px; }
  .featured-grid { grid-template-columns: 1fr; }
  .directory-toolbar { grid-template-columns: 1fr 180px auto; }
  .stars-layout { grid-template-columns: minmax(0, 1.2fr) minmax(220px, .8fr); }
}

@media (max-width: 700px) {
  body { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
  .page-width, .site-header-inner, .site-footer > div, .home-hero-inner { width: min(100% - 24px, 1160px); }
  .site-header, .site-header-inner { min-height: 58px; }
  .site-header-inner { grid-template-columns: minmax(0, 1fr) auto; }
  .site-navigation { display: none; }
  .site-brand strong { font-size: 20px; }
  .brand-mark { transform: scale(.88); transform-origin: left center; }
  .join-link span, .login-link span, .account-chip span { display: none; }
  .join-link, .login-link { width: 40px; padding: 0; }
  .account-chip { width: 40px; padding: 4px; }
  .mobile-navigation { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; min-height: calc(62px + env(safe-area-inset-bottom)); padding: 4px 8px env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 96%, transparent); backdrop-filter: blur(14px); }
  .mobile-navigation a { min-width: 0; min-height: 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: 10px; text-decoration: none; }
  .mobile-navigation a.active { color: var(--coral); }
  .site-footer { display: none; }
  .home-hero { min-height: 0; }
  .home-hero-inner { min-height: 0; padding: 32px 0 42px; display: flex; flex-direction: column; gap: 0; }
  .home-hero-copy { max-width: none; padding: 20px 0 23px; }
  .home-hero h1 { margin-block: 9px 11px; font-size: 58px; }
  .home-poem { font-size: 22px; }
  .home-description { font-size: 13px; }
  .home-principles { padding-top: 27px; display: block; }
  .home-principles h2 { font-size: 23px; }
  .home-principles header p { margin-bottom: 22px; }
  .hero-editorial { width: 100%; margin-bottom: 25px; }
  .hero-picks > a { min-height: 112px; grid-template-columns: 24px 44px minmax(0, 1fr) 18px; padding-block: 15px; }
  .hero-picks img { width: 44px; height: 44px; }
  .home-hero-rail { width: 100%; min-height: 0; padding: 21px 0 0; gap: 18px; border-top: 1px solid var(--line); border-left: 0; }
  .home-stat-grid { grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
  .home-stat { min-height: 64px; padding: 10px 8px; border-right: 1px solid var(--line); border-bottom: 0; }
  .home-stat:last-child { border-right: 0; }
  .home-stat strong { font-size: 21px; }
  .home-rail-nav { grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
  .home-rail-nav a { min-height: 42px; padding-inline: 8px; border-right: 1px solid var(--line); }
  .home-rail-nav a:last-child { border-right: 0; }
  .home-rail-arrivals { margin-top: 0; grid-template-columns: auto repeat(3, minmax(0, 1fr)); align-items: center; gap: 9px; }
  .home-rail-arrivals > .eyebrow { grid-column: 1 / -1; }
  .home-hero-ticker { position: static; min-height: 0; padding-top: 13px; display: grid; grid-template-columns: 1fr; gap: 4px; }
  .content-section { padding-top: 29px; }
  .section-heading { align-items: flex-start; }
  .section-heading h2 { font-size: 23px; }
  .arrival-list > a { grid-template-columns: 34px minmax(0, 1fr) 16px; gap: 10px; }
  .arrival-list a > span:not(.arrival-index), .arrival-list time { display: none; }
  .directory-grid { grid-template-columns: 1fr; }
  .page-main { padding-top: 20px; }
  .page-intro { min-height: 110px; align-items: flex-start; }
  .page-intro h1 { font-size: 29px; }
  .directory-toolbar { grid-template-columns: 1fr; }
  .discover-toolbar { grid-template-columns: 1fr; }
  .discover-summary > div { min-height: 70px; padding: 10px; }
  .discover-summary strong { font-size: 19px; }
  .stars-layout { grid-template-columns: 1fr; }
  .star-map-panel, .star-region-panel { padding: 15px; }
  .star-map, .star-map svg { min-height: 310px; }
  .marks-grid { grid-template-columns: 1fr; }
  .star-stats, .marks-stats { margin-top: 16px; }
  .star-stats > div, .marks-stats > div { min-height: 72px; padding: 11px; }
  .star-stats strong, .marks-stats strong { font-size: 23px; }
  .blog-detail-author h1 { font-size: 31px; }
  .article-row { grid-template-columns: 1fr; gap: 7px; }
  .article-row time { padding-top: 0; }
  .form-grid, .integration-grid, .relations-grid, .connect-principles { grid-template-columns: 1fr; }
  .integration-detail { grid-template-columns: 1fr; gap: 20px; }
  .form-grid label.wide, .relation-panel.wide { grid-column: auto; }
  .rss-check { align-items: stretch; flex-direction: column; }
  .rss-check .button { width: 100%; }
  .notice { align-items: flex-start; flex-wrap: wrap; }
  .notice .button { width: 100%; margin-left: 0; }
  .relation-summary { grid-template-columns: repeat(2, 1fr); }
  .relation-summary > div:nth-child(2) { border-right: 0; }
  .relation-summary > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .trusted-list { grid-template-columns: 1fr; }
  .relation-request-list article { grid-template-columns: 1fr 1fr; }
  .relation-request-list article > div { grid-column: 1 / -1; }
  .review-list article { grid-template-columns: 1fr; }
  .review-actions { justify-content: flex-end; }
  .admin-blog-table article { grid-template-columns: 42px minmax(0, 1fr) auto; }
  .admin-blog-table article > .status { display: none; }
  .admin-blog-table select { grid-column: 2 / -1; }
  .settings-panel { grid-template-columns: auto minmax(0, 1fr); }
  .settings-panel .segmented-control { grid-column: 1 / -1; }
}

@media (max-width: 430px) {
  .home-hero-copy { padding-top: 29px; }
  .home-hero h1 { font-size: 52px; }
  .hero-actions { width: 100%; }
  .hero-actions .button { flex: 1; }
  .island-card { min-height: 218px; padding: 15px; }
  .section-heading { display: grid; }
  .section-heading > a { justify-self: start; }
  .status.connected { display: none; }
}

/* 群岛新视觉：纸张、植物与手稿式目录 */
:root {
  --bg: #f1eee5;
  --paper: #fbfaf5;
  --surface: #fffefa;
  --surface-muted: #e8eee8;
  --ink: #263630;
  --muted: #707b74;
  --line: #d6d9d0;
  --line-strong: #9da99f;
  --sea: #32735f;
  --sea-strong: #1d5647;
  --sea-soft: #e1ece5;
  --coral: #b8614e;
  --coral-soft: #f3e3db;
  --blue: #557984;
  --blue-soft: #e4edef;
  --gold: #a57836;
  --gold-soft: #f2e8d2;
  --danger: #aa4e46;
  --danger-soft: #f3dfdb;
}

body { background: var(--bg); }
.site-header { min-height: 70px; background: rgba(251, 250, 245, .97); border-bottom-color: var(--line); }
.site-header-inner { min-height: 70px; width: min(1320px, calc(100% - 56px)); gap: 30px; }
.site-brand strong { font-size: 26px; color: var(--ink); }
.brand-mark { color: var(--sea); }
.site-navigation { padding: 0; border: 0; border-radius: 0; background: transparent; }
.site-navigation a { min-height: 50px; padding: 10px 12px 8px; border-radius: 0; border-bottom: 2px solid transparent; }
.site-navigation a.active { background: transparent; border-bottom-color: var(--coral); color: var(--sea-strong); }
.site-navigation a:hover { background: transparent; color: var(--coral); border-bottom-color: var(--line-strong); }
.join-link { color: var(--sea-strong); }
.join-link:hover { background: transparent; color: var(--coral); }
.login-link { border-color: var(--sea); background: var(--sea); color: #fff; }
.login-link:hover { border-color: var(--sea-strong); background: var(--sea-strong); color: #fff; }
.site-more-menu { border-color: var(--line-strong); background: var(--surface); box-shadow: 0 12px 24px rgba(44, 58, 50, .12); }
.icon-action:hover, .icon-action.active { border-color: var(--line-strong); background: var(--surface); color: var(--sea-strong); }
.notification-dot { border-color: var(--surface); }
.site-footer { background: #e7e4da; border-top-color: var(--line); }

.page-width { width: min(1240px, calc(100% - 56px)); }
.page-main { padding-top: 32px; }

.home-hero { min-height: calc(100svh - 70px); background: var(--paper); border-bottom-color: var(--line-strong); }
.home-hero::before { border-color: rgba(255, 255, 255, .7); }
.home-hero-inner { width: min(1320px, calc(100% - 56px)); min-height: calc(100svh - 70px); padding: 54px 0 50px; grid-template-columns: minmax(250px, .8fr) minmax(430px, 1.35fr) minmax(205px, .58fr); gap: 34px; align-items: center; }
.home-hero-copy { max-width: 500px; padding: 24px 0 28px; }
.home-hero-copy::before { width: 58px; height: 4px; margin-bottom: 18px; background: var(--coral); }
.home-hero h1 { margin: 6px 0 14px; color: var(--ink); font-size: 92px; font-weight: 900; }
.home-poem { margin-bottom: 13px; color: var(--sea-strong); font-size: 26px; }
.home-description { color: var(--muted); line-height: 1.9; }
.hero-actions { margin-top: 18px; }
.hero-editorial { border-top: 2px solid var(--ink); background: rgba(255, 254, 250, .58); }
.hero-editorial > header { min-height: 49px; padding-inline: 7px; border-bottom-color: var(--line); }
.hero-editorial > header span { color: var(--coral); }
.hero-editorial > header a { color: var(--sea-strong); }
.hero-picks > a { min-height: 118px; padding-inline: 7px; border-bottom-color: var(--line); }
.hero-picks > a:hover { padding-inline: 15px; background: var(--surface); }
.hero-picks img { border-color: var(--line-strong); }
.hero-picks strong { color: var(--ink); font-size: 20px; }
.hero-picks p { color: var(--muted); }
.hero-picks small { color: var(--blue); }
.home-hero-rail { min-height: 422px; padding-left: 23px; border-left-color: var(--line-strong); }
.home-stat-grid, .home-rail-nav { border-color: var(--line); }
.home-stat { border-bottom-color: var(--line); }
.home-stat strong { color: var(--ink); font-size: 28px; }
.home-stat span, .rail-code { color: var(--muted); }
.home-rail-nav a { border-bottom-color: var(--line); }
.home-rail-nav a:hover { color: var(--sea-strong); }
.home-rail-nav strong, .home-rail-arrivals a span { color: var(--ink); }
.home-rail-arrivals a small { color: var(--muted); }
.home-hero-ticker { border-top-color: var(--line); color: var(--muted); }
.home-hero-ticker span:last-child { color: var(--sea-strong); }
.home-body { padding-bottom: 82px; }
.home-principles { padding: 45px 0 19px; gap: 54px; border-bottom-color: var(--line); }
.home-principles h2, .principles-list strong { color: var(--ink); }
.home-principles h2 { font-size: 30px; }
.home-principles header p, .principles-list p { color: var(--muted); }
.principles-list { border-top-color: var(--ink); }
.principles-list article { border-bottom-color: var(--line); }

.content-section { padding-top: 43px; }
.content-section + .content-section { border-top-color: var(--line); }
.section-heading { min-height: 58px; }
.section-heading h2 { border-left-color: var(--coral); color: var(--ink); font-size: 28px; }
.section-heading > a:not(.button) { color: var(--sea-strong); }
.section-heading > a:not(.button):hover { color: var(--coral); }
.island-grid { gap: 17px; }
.island-card { min-height: 226px; padding: 18px; border-color: var(--line); border-top: 3px solid var(--sea); background: var(--surface); box-shadow: 0 1px 0 rgba(38, 54, 48, .02); }
.island-card:hover { border-top-color: var(--coral); box-shadow: 0 9px 18px rgba(44, 58, 50, .08); }
.island-identity a, .island-description, .arrival-list strong { color: var(--ink); }
.island-identity a:hover { color: var(--coral); }
.island-identity span, .island-description, .arrival-list a > span:not(.arrival-index), .arrival-list time { color: var(--muted); }
.tag-line span { border-color: rgba(85, 121, 132, .2); background: var(--blue-soft); }
.badge-tag { color: var(--gold) !important; background: var(--gold-soft) !important; }
.island-card-foot > a { color: var(--blue); }
.island-card-foot > a:hover { color: var(--coral); }
.status.connected { background: var(--sea-soft); color: var(--sea-strong); }
.status.featured { background: var(--gold-soft); color: var(--gold); }
.arrival-list { border-top-color: var(--ink); }
.arrival-list > a { border-bottom-color: var(--line); }
.arrival-list > a:hover { background: var(--surface); }

.page-intro { min-height: 160px; padding: 28px 0 24px; border-top-color: var(--ink); border-bottom-color: var(--line); }
.page-intro h1 { color: var(--ink); font-size: 48px; }
.page-intro p { color: var(--muted); }
.result-count { color: var(--muted); }
.directory-toolbar { padding-block: 17px; }
.search-box, .select-control, .form-grid input, .form-grid select, .form-grid textarea { border-color: var(--line-strong); border-radius: 2px; background: var(--surface); }
.search-box:focus-within, .form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { border-color: var(--sea); box-shadow: 0 0 0 3px var(--sea-soft); }
.select-control select { background: var(--surface); color: var(--ink); }
.toggle-control { color: var(--muted); }
.button { border-color: var(--line-strong); border-radius: 2px; background: var(--surface); color: var(--ink); }
.button.primary { border-color: var(--sea); background: var(--sea); color: #fff; }
.button.primary:hover { border-color: var(--sea-strong); background: var(--sea-strong); color: #fff; }
.button.secondary:hover, .button:hover { border-color: var(--sea); color: var(--sea-strong); }
.button.quiet { color: var(--muted); }
.state-panel { color: var(--muted); }
.article-list { border-top-color: var(--ink); }
.article-row { border-bottom-color: var(--line); }
.article-row h3 { color: var(--ink); }
.article-row h3 a:hover { color: var(--coral); }
.article-row p, .article-row time, .article-source { color: var(--muted); }
.article-source img { border-color: var(--line); }
.discover-summary, .star-stats, .marks-stats, .relation-summary { border-color: var(--line); background: var(--surface); }
.discover-summary > div, .star-stats > div, .marks-stats > div, .relation-summary > div { border-color: var(--line); }
.discover-summary strong, .star-stats strong, .marks-stats strong, .relation-summary strong { color: var(--ink); }
.discover-summary span, .star-stats span, .marks-stats span, .relation-summary span { color: var(--muted); }
.rss-notice, .notice { background: var(--blue-soft); color: var(--ink); }
.notice.success { background: var(--sea-soft); }
.notice.error-state { background: var(--danger-soft); color: var(--danger); }

.star-map-panel, .star-region-panel, .integration-card, .relation-panel, .trusted-list article, .relation-request-list article, .review-list article, .settings-panel, .rss-check, .protocol-addresses { border-color: var(--line); background: var(--surface); }
.star-map { border-color: var(--line); background: #f6f4ec; }
.star-map-shapes path { fill: #e6e8df; stroke: #b6c0b8; }
.star-map-shapes path.has-stars { fill: #dcebe1; stroke: var(--sea); }
.star-map-shapes path.active { fill: var(--gold-soft); stroke: var(--gold); }
.star-node circle { stroke: var(--surface); }
.star-map-legend span { background: rgba(255, 254, 250, .9); }
.region-list { border-top-color: var(--ink); }
.region-list button { border-bottom-color: var(--line); }
.region-list button:hover, .region-list button.active { background: var(--sea-soft); color: var(--sea-strong); }
.mark-card { border-color: var(--line); background: var(--surface); }
.mark-copy h2, .mark-copy p { color: var(--ink); }
.mark-copy p { color: var(--muted); }
.mark-foot { border-top-color: var(--line); color: var(--muted); }
.integration-card, .relation-panel { border-top-color: var(--sea); }
.integration-card h2, .integration-detail h2, .protocol-addresses h2, .relation-panel h2, .settings-panel h2 { color: var(--ink); }
.integration-card > p, .integration-detail p, .relation-panel p, .settings-panel p, .connection-steps p { color: var(--muted); }
.integration-icon, .relation-panel-icon { background: var(--sea-soft); color: var(--sea-strong); }
.protocol-addresses code { background: var(--surface-muted); color: var(--sea-strong); }
.connection-steps article { border-top-color: var(--line); }
.form-grid label, .rss-check p { color: var(--muted); }
.location-note { background: var(--blue-soft); color: var(--muted); }
.admin-section-nav { border-bottom-color: var(--line); }
.admin-section-nav a { color: var(--muted); }
.admin-section-nav a.active { background: var(--sea-soft); color: var(--sea-strong); }
.admin-blog-table, .review-links, .review-list dl { border-color: var(--line); }
.admin-blog-table article, .review-list dl div { border-bottom-color: var(--line); }

@media (max-width: 1120px) {
  .home-hero-inner { grid-template-columns: minmax(235px, .77fr) minmax(350px, 1.2fr) minmax(180px, .5fr); gap: 22px; }
  .home-hero h1 { font-size: 74px; }
  .home-poem { font-size: 23px; }
}

@media (max-width: 760px) {
  .site-header, .site-header-inner { min-height: 60px; }
  .site-header-inner { width: min(100% - 28px, 1240px); }
  .page-width, .home-hero-inner { width: min(100% - 28px, 1240px); }
  .mobile-navigation { background: rgba(251, 250, 245, .97); border-top-color: var(--line-strong); }
  .home-hero { min-height: 0; }
  .home-hero-inner { min-height: 0; padding: 30px 0 36px; }
  .home-hero-copy { padding: 22px 0 29px; }
  .home-hero h1 { font-size: 62px; }
  .home-poem { font-size: 22px; }
  .home-hero-rail { border-top-color: var(--line-strong); }
  .page-intro { min-height: 124px; }
  .page-intro h1 { font-size: 35px; }
  .section-heading h2 { font-size: 25px; }
}

@media (max-width: 430px) {
  .home-hero h1 { font-size: 55px; }
  .home-poem { font-size: 20px; }
  .home-rail-arrivals { grid-template-columns: 1fr; }
}

/* 开发者工作区：长文档使用窄栏、锚点目录和可横向滚动的协议表格。 */
.developer-entry { margin: 26px 0 8px; padding: 23px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, .95fr); gap: 26px; border: 1px solid var(--line); border-top: 3px solid var(--coral); background: var(--surface); }
.developer-entry-heading h2 { margin: 8px 0 7px; font-family: "Songti SC", "STSong", serif; font-size: 27px; }
.developer-entry-heading p { max-width: 640px; margin: 0; color: var(--muted); line-height: 1.75; }
.developer-entry-links { display: grid; gap: 1px; background: var(--line); }
.developer-entry-links a { min-height: 63px; padding: 10px 13px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 11px; background: var(--paper); color: var(--sea-strong); text-decoration: none; }
.developer-entry-links a:hover { background: var(--sea-soft); }
.developer-entry-links a > svg:first-child { color: var(--coral); }
.developer-entry-links span { min-width: 0; display: grid; gap: 3px; }
.developer-entry-links strong { color: var(--ink); font-size: 14px; }
.developer-entry-links small { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.developer-subnav { min-height: 48px; margin-bottom: 18px; display: flex; align-items: center; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.developer-subnav a { min-height: 39px; padding: 8px 11px; display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; text-decoration: none; white-space: nowrap; }
.developer-subnav a:hover, .developer-subnav a.active { background: var(--sea-soft); color: var(--sea-strong); }
.developer-subnav a:first-child { color: var(--sea); }
.developer-subnav-divider { width: 1px; height: 20px; margin-inline: 4px; background: var(--line-strong); }
.developer-docs .page-intro { margin-bottom: 26px; }
.developer-docs-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 35px; align-items: start; }
.developer-docs-index { position: sticky; top: 94px; padding: 13px 0; display: grid; gap: 2px; border-top: 2px solid var(--ink); }
.developer-docs-index a { padding: 8px 9px; color: var(--muted); font-size: 12px; text-decoration: none; }
.developer-docs-index a:hover { color: var(--coral); background: var(--surface-muted); }
.developer-docs-content { min-width: 0; }
.developer-docs-section { scroll-margin-top: 92px; padding: 0 0 42px; border-bottom: 1px solid var(--line); }
.developer-docs-section + .developer-docs-section { padding-top: 42px; }
.developer-docs-section-heading { display: grid; grid-template-columns: 39px minmax(0, 1fr); gap: 14px; align-items: start; }
.developer-docs-section-heading > span { padding-top: 8px; color: var(--coral); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; }
.developer-docs-section-heading h2 { margin: 0 0 7px; font-family: "Songti SC", "STSong", serif; font-size: 30px; }
.developer-docs-section-heading p { max-width: 760px; margin: 0; color: var(--muted); line-height: 1.75; }
.developer-docs-blocks { margin-left: 53px; padding-top: 20px; display: grid; gap: 17px; }
.developer-docs-paragraph { margin: 0; color: var(--ink); line-height: 1.9; }
.developer-docs-list { margin: 0; padding: 0; display: grid; gap: 10px; list-style: none; }
.developer-docs-list li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 8px; align-items: start; color: var(--ink); font-size: 13px; line-height: 1.75; }
.developer-docs-list li svg { margin-top: 4px; color: var(--sea); }
.developer-code { min-width: 0; border: 1px solid var(--line); background: #25352f; color: #edf3e9; }
.developer-code-label { min-height: 35px; padding: 8px 11px; display: flex; align-items: center; gap: 6px; border-bottom: 1px solid rgba(255,255,255,.13); color: #d4e7d2; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; }
.developer-code pre { margin: 0; padding: 15px; overflow-x: auto; }
.developer-code code { color: inherit; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; line-height: 1.7; white-space: pre; }
.developer-note { padding: 13px 15px; display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 9px; align-items: start; border-left: 3px solid var(--blue); background: var(--blue-soft); }
.developer-note p { margin: 0; color: var(--ink); font-size: 13px; line-height: 1.7; }
.developer-note.success { border-left-color: var(--sea); background: var(--sea-soft); }
.developer-note.warning { border-left-color: var(--coral); background: var(--coral-soft); }
.developer-table-wrap { overflow-x: auto; border: 1px solid var(--line); background: var(--surface); }
.developer-table { width: 100%; min-width: 610px; border-collapse: collapse; font-size: 12px; line-height: 1.65; }
.developer-table th, .developer-table td { padding: 11px 12px; vertical-align: top; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); text-align: left; }
.developer-table tr:last-child th, .developer-table tr:last-child td { border-bottom: 0; }
.developer-table th:last-child, .developer-table td:last-child { border-right: 0; }
.developer-table thead th { background: var(--surface-muted); color: var(--sea-strong); font-weight: 750; white-space: nowrap; }
.developer-table tbody th { width: 120px; color: var(--ink); font-weight: 700; }
.developer-table tbody td { color: var(--muted); }
.prompt-intro { min-height: 82px; margin: 0 0 18px; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid var(--line); background: var(--surface); }
.prompt-intro > div { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 10px; align-items: center; }
.prompt-intro strong { font-size: 14px; }
.prompt-intro p { grid-column: 2; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.prompt-mark { width: 38px; height: 38px; display: grid; place-items: center; grid-row: 1 / span 2; color: var(--coral); background: var(--coral-soft); }
.prompt-size { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; white-space: nowrap; }
.ai-prompt { max-height: 760px; margin: 0; padding: 23px; overflow: auto; border: 1px solid var(--line); background: #25352f; color: #edf3e9; }
.ai-prompt code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.tester-head { padding: 23px 0 25px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); }
.tester-head h1 { margin: 7px 0 8px; font-family: "Songti SC", "STSong", serif; font-size: 45px; }
.tester-head p { max-width: 700px; margin: 0; color: var(--muted); line-height: 1.75; }
.tester-head > svg { flex: 0 0 auto; color: var(--sea); }
.tester-form { margin-top: 22px; padding: 18px; border: 1px solid var(--line); background: var(--surface); }
.tester-form label { display: block; margin-bottom: 8px; color: var(--ink); font-size: 13px; font-weight: 700; }
.tester-input-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; }
.tester-input-row input { min-height: 44px; min-width: 0; padding: 9px 11px; border: 1px solid var(--line-strong); border-radius: 2px; background: var(--paper); color: var(--ink); }
.tester-form > p { margin: 9px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.tester-form code, .tester-footer code { color: var(--sea-strong); }
.tester-summary { min-height: 72px; margin: 14px 0 25px; display: grid; grid-template-columns: repeat(3, 1fr) auto; border: 1px solid var(--line); background: var(--surface); }
.tester-summary > div { min-height: 72px; padding: 11px 16px; display: grid; align-content: center; gap: 2px; border-right: 1px solid var(--line); }
.tester-summary strong { font-family: "Songti SC", "STSong", serif; font-size: 25px; }
.tester-summary span, .tester-summary time { color: var(--muted); font-size: 11px; }
.tester-summary time { padding: 0 16px; display: flex; align-items: center; white-space: nowrap; }
.tester-results { border-top: 2px solid var(--ink); }
.tester-results > header { min-height: 62px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.tester-results h2 { margin: 5px 0 0; font-family: "Songti SC", "STSong", serif; font-size: 25px; }
.tester-result { min-height: 70px; padding: 12px 3px; display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 10px; align-items: center; border-bottom: 1px solid var(--line); }
.tester-result-icon { color: var(--muted); }
.tester-result.pass .tester-result-icon, .tester-result.pass .tester-result-status { color: var(--sea); }
.tester-result.fail .tester-result-icon, .tester-result.fail .tester-result-status { color: var(--danger); }
.tester-result.running .tester-result-icon, .tester-result.running .tester-result-status { color: var(--blue); }
.tester-result > div { min-width: 0; }
.tester-result strong { font-size: 13px; }
.tester-result p { margin: 3px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.tester-result-status { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 10px; }
.tester-scope { margin-top: 20px; padding: 14px 15px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; border-left: 3px solid var(--coral); background: var(--coral-soft); }
.tester-scope > svg { margin-top: 2px; color: var(--coral); }
.tester-scope strong { font-size: 13px; }
.tester-scope p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.tester-footer { margin-top: 20px; padding: 15px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid var(--line); background: var(--blue-soft); }
.tester-footer > div { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; }
.tester-footer > div > svg { color: var(--sea); }
.tester-footer strong { font-size: 13px; }
.tester-footer p { margin: 3px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.tester-doc-link { margin: 16px 0 0; display: flex; align-items: center; gap: 5px; color: var(--sea); font-size: 12px; }
.tester-doc-link a { color: inherit; }

@media (max-width: 760px) {
  .mobile-navigation { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .developer-entry { grid-template-columns: 1fr; gap: 18px; }
  .developer-docs-layout { grid-template-columns: 1fr; gap: 12px; }
  .developer-docs-index { position: static; display: flex; padding: 8px 0; align-items: center; overflow-x: auto; border-top: 0; border-bottom: 1px solid var(--line); }
  .developer-docs-index .eyebrow { flex: 0 0 auto; margin-right: 4px; }
  .developer-docs-index a { flex: 0 0 auto; white-space: nowrap; }
  .developer-docs-blocks { margin-left: 0; }
  .developer-docs-section-heading { grid-template-columns: 30px minmax(0, 1fr); gap: 9px; }
  .developer-docs-section-heading h2 { font-size: 26px; }
  .developer-docs-section-heading p { font-size: 13px; }
  .prompt-intro { align-items: flex-start; flex-direction: column; }
  .tester-head h1 { font-size: 36px; }
  .tester-summary { grid-template-columns: repeat(3, 1fr); }
  .tester-summary time { grid-column: 1 / -1; min-height: 35px; padding: 7px 11px; border-top: 1px solid var(--line); }
  .tester-footer { align-items: stretch; flex-direction: column; }
  .tester-footer .button { width: 100%; }
}

@media (max-width: 430px) {
  .mobile-navigation a { font-size: 9px; }
  .developer-subnav a { padding-inline: 8px; }
  .developer-entry { padding: 16px; }
  .developer-docs-section + .developer-docs-section { padding-top: 30px; }
  .developer-docs-section { padding-bottom: 30px; }
  .developer-code pre, .ai-prompt { padding: 14px; }
  .tester-input-row { grid-template-columns: 1fr; }
  .tester-input-row .button { width: 100%; }
  .tester-result { grid-template-columns: 22px minmax(0, 1fr); }
  .tester-result-status { grid-column: 2; }
}
