:root {
    --bg: #E8F3F4;
    --deep-bg: #D4E8EA;
    --surface: #F7FCFC;
    --secondary: #DCECEE;
    --title: #0A3D4A;
    --text: #1E4A54;
    --muted: #4A737C;
    --soft: #7A8F93;
    --lake: #1A6B7A;
    --green: #2E9A8F;
    --night: #08222A;
    --gold: #D4B46A;
    --star: #F2F7F8;
    --mist: #7DB8B0;
    --border: rgba(10, 61, 74, 0.16);
    --accent-border: rgba(46, 154, 143, 0.40);
    --shadow: 0 16px 36px rgba(8, 34, 42, 0.10);
    --radius: 16px;
    --max: 1220px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 0; overflow-x: hidden; background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif; font-size: 16px; line-height: 1.78; }
body.ui-locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
a, button, input { font: inherit; }
button { border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 9999; background: var(--night); color: var(--star); padding: 10px 14px; border-radius: 10px; }
.skip-link:focus { top: 12px; }
.header-shell, .page-shell { width: min(calc(100% - 32px), var(--max)); margin: 0 auto; }
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 1200; }
.star-track { height: 22px; background: var(--night); color: var(--star); font-size: 12px; letter-spacing: .04em; }
.star-track-inner { height: 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.track-action { min-height: 22px; padding: 0 6px; background: transparent; color: var(--star); font-size: 12px; }
.track-action:hover, .track-action:focus-visible { color: var(--gold); outline: none; }
.dome-bar { height: 64px; background: rgba(247, 252, 252, .98); border-bottom: 1px solid rgba(26, 107, 122, .2); }
.dome-bar-inner { height: 64px; display: grid; grid-template-columns: minmax(150px, 1fr) auto minmax(150px, 1fr); align-items: center; gap: 18px; }
.brand-link { justify-self: start; min-height: 44px; display: inline-flex; align-items: center; max-width: 240px; }
.brand-logo, .footer-logo, .map-logo { width: auto; max-width: 220px; height: 34px; object-fit: contain; object-position: left center; }
.footer-logo, .map-logo { height: 32px; }
.brand-text-fallback { color: var(--title); font-weight: 800; letter-spacing: .08em; white-space: nowrap; }
.map-trigger { min-height: 44px; padding: 0 16px; border: 1px solid var(--accent-border); border-radius: 12px; background: var(--star); color: var(--night); display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.map-trigger:hover, .map-trigger:focus-visible { background: var(--secondary); outline: 2px solid rgba(212, 180, 106, .7); outline-offset: 2px; }
.map-trigger-mark { color: var(--gold); }
.app-link { justify-self: end; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 18px; border-radius: 12px; color: var(--star); background: linear-gradient(135deg, #2E9A8F 0%, #1A6B7A 55%, #0A3D4A 100%); font-weight: 700; }
.app-link:hover, .app-link:focus-visible, .btn-primary:hover, .btn-primary:focus-visible { filter: brightness(.96); outline: 2px solid var(--gold); outline-offset: 2px; }
.screen-tabs { height: 44px; background: var(--secondary); border-bottom: 1px solid rgba(212, 180, 106, .55); }
.screen-tabs-inner { height: 44px; display: flex; align-items: center; gap: 8px; }
.screen-tab { min-height: 32px; padding: 4px 12px; display: inline-flex; align-items: center; border-radius: 8px; color: var(--title); font-weight: 700; font-size: 14px; }
.screen-tab:hover, .screen-tab:focus-visible { background: var(--star); outline: 1px solid var(--accent-border); }
.screen-tab.is-current { background: var(--lake); color: var(--star); }
.site-main { padding-top: 154px; min-height: 60vh; }
.section { padding: 34px 0; }
.section.compact { padding: 22px 0; }
.section.deep { background: var(--deep-bg); border-block: 1px solid var(--border); }
.section.night { background: var(--night); color: var(--star); }
.section.night h2, .section.night h3, .section.night p, .section.night .eyebrow { color: var(--star); }
.eyebrow { margin: 0 0 6px; color: var(--lake); font-weight: 800; font-size: 13px; letter-spacing: .1em; }
h1, h2, h3, h4 { margin-top: 0; color: var(--title); line-height: 1.35; }
h1 { margin-bottom: 16px; font-size: clamp(28px, 4vw, 32px); letter-spacing: -.02em; }
h2 { margin-bottom: 14px; font-size: clamp(23px, 3vw, 27px); }
h3 { margin-bottom: 8px; font-size: 18px; }
p { margin: 0 0 14px; }
.lead { max-width: 850px; font-size: 17px; color: var(--text); }
.muted { color: var(--muted); }
.small { font-size: 14px; color: var(--muted); }
.hero-shell { padding-top: 22px; }
.hero-media { max-height: 300px; min-height: 210px; width: 100%; object-fit: contain; object-position: center; background: var(--night); border-radius: 18px; border: 1px solid var(--border); }
.media-placeholder { width: 100%; min-height: 190px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; border-radius: 16px; background: linear-gradient(145deg, var(--night), #0D4652); color: var(--star); border: 1px solid rgba(242, 247, 248, .18); }
.hero-media.media-placeholder { min-height: 260px; }
.content-media { width: 100%; max-height: 240px; min-height: 180px; object-fit: contain; object-position: center; background: var(--surface); border-radius: 16px; border: 1px solid var(--border); }
.app-media { width: 100%; max-height: 420px; object-fit: contain; object-position: center; background: var(--surface); border-radius: 16px; }
.icon-media { width: 64px; height: 64px; object-fit: contain; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.hero-copy { max-width: 860px; padding: 24px 0 8px; }
.hero-copy .kicker { color: var(--lake); font-weight: 800; margin-bottom: 6px; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.btn-primary, .btn-secondary { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; padding: 9px 18px; font-weight: 800; }
.btn-primary { background: linear-gradient(135deg, #2E9A8F 0%, #1A6B7A 55%, #0A3D4A 100%); color: var(--star); }
.btn-secondary { background: var(--star); color: var(--night); border: 1px solid var(--gold); }
.btn-secondary:hover, .btn-secondary:focus-visible { background: var(--secondary); outline: 2px solid var(--lake); outline-offset: 2px; }
.constellation-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; align-items: start; }
.constellation-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 12px; box-shadow: 0 10px 24px rgba(8, 34, 42, .06); }
.constellation-card:nth-child(1), .constellation-card:nth-child(5) { margin-top: 22px; }
.constellation-card:nth-child(2), .constellation-card:nth-child(4) { margin-top: 10px; }
.constellation-card h3 { margin-top: 12px; }
.constellation-card p { margin: 0; color: var(--muted); font-size: 14px; }
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
.info-card, .status-card, .step-card, .quote-card, .list-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: 0 8px 22px rgba(8, 34, 42, .045); }
.info-card p:last-child, .status-card p:last-child, .step-card p:last-child, .quote-card p:last-child, .list-card p:last-child { margin-bottom: 0; }
.number { display: block; margin-bottom: 8px; color: var(--gold); font-size: 32px; line-height: 1; font-weight: 900; letter-spacing: -.04em; }
.number-row { display: grid; grid-template-columns: 62px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.number-row:last-child { border-bottom: 0; }
.number-row .number { margin: 3px 0 0; }
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 26px; align-items: center; }
.split.reverse { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.stack-list { display: grid; gap: 12px; }
.stack-item { padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.stack-item h3 { margin-bottom: 6px; }
.status-badge { display: inline-flex; min-height: 30px; align-items: center; padding: 2px 10px; border-radius: 8px; background: var(--secondary); color: var(--title); border: 1px solid var(--accent-border); font-size: 13px; font-weight: 800; margin-bottom: 10px; }
.steps { counter-reset: xkstep; display: grid; gap: 14px; }
.step-line { position: relative; padding: 20px 20px 20px 72px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; }
.step-line::before { counter-increment: xkstep; content: counter(xkstep, decimal-leading-zero); position: absolute; left: 20px; top: 18px; color: var(--gold); font-weight: 900; font-size: 24px; }
.editor-note { border-left: 3px solid var(--gold); padding: 18px 20px; background: var(--surface); border-radius: 0 14px 14px 0; }
.editor-note + .editor-note { margin-top: 16px; }
.editor-label { display: inline-block; color: var(--lake); font-weight: 900; margin-bottom: 6px; }
.index-list { display: grid; gap: 12px; }
.index-list article { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; }
.index-list h2, .index-list h3 { margin-bottom: 6px; }
.topic-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px var(--border); }
.topic-table th, .topic-table td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.topic-table tr:last-child th, .topic-table tr:last-child td { border-bottom: 0; }
.topic-table th { width: 22%; color: var(--title); background: rgba(220, 236, 238, .6); }
.prose { max-width: 900px; }
.prose h2 { margin-top: 30px; }
.prose h3 { margin-top: 22px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.inline-links { display: flex; flex-wrap: wrap; gap: 10px; }
.inline-links a { min-height: 44px; display: inline-flex; align-items: center; padding: 8px 14px; background: var(--surface); color: var(--title); border: 1px solid var(--accent-border); border-radius: 10px; font-weight: 700; }
.inline-links a:hover, .inline-links a:focus-visible { background: var(--secondary); outline: 2px solid var(--gold); outline-offset: 2px; }
.notice { padding: 18px 20px; border: 1px solid rgba(212, 180, 106, .68); background: #F7F3E8; color: var(--night); border-radius: 14px; }
.faq-list { display: grid; gap: 14px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px; }
.faq-item h2 { font-size: 19px; margin-bottom: 8px; }
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.app-layout { display: grid; grid-template-columns: minmax(260px, .75fr) minmax(0, 1.25fr); gap: 30px; align-items: center; }
.app-icon-row { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.app-icon-row .media-placeholder { width: 64px; min-height: 64px; padding: 6px; }
.site-footer { background: var(--night); color: var(--star); padding: 40px 0 calc(28px + env(safe-area-inset-bottom)); }
.footer-brand-row { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-bottom: 28px; border-bottom: 1px solid rgba(242, 247, 248, .14); }
.footer-brand { display: inline-flex; align-items: center; gap: 14px; color: var(--star); }
.footer-brand .brand-text-fallback { color: var(--star); }
.footer-brand-copy { display: flex; flex-direction: column; line-height: 1.3; }
.footer-brand-copy small { color: #AFC7CC; font-size: 11px; letter-spacing: .08em; }
.footer-brand-row p { max-width: 650px; margin: 0; color: #C9DADD; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 28px 0; }
.footer-grid h2 { color: var(--gold); font-size: 15px; margin-bottom: 10px; }
.footer-grid a { display: block; width: fit-content; min-height: 32px; color: var(--star); font-size: 14px; }
.footer-grid a:hover, .footer-grid a:focus-visible, .footer-bottom a:hover, .footer-bottom a:focus-visible { color: var(--gold); outline: none; text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 16px; padding-top: 18px; border-top: 1px solid rgba(242, 247, 248, .14); color: #AFC7CC; font-size: 13px; }
.ui-overlay { position: fixed; inset: 86px 0 0; z-index: 1300; background: rgba(8, 34, 42, .42); opacity: 0; pointer-events: none; transition: opacity .18s ease; }
.ui-overlay.is-visible { opacity: 1; pointer-events: auto; }
.star-map, .search-layer { position: fixed; top: 86px; left: 0; right: 0; z-index: 1400; visibility: hidden; pointer-events: none; transform: translateY(-14px); opacity: 0; transition: opacity .18s ease, transform .18s ease, visibility .18s; }
.star-map { width: 100%; max-height: 68vh; overflow-y: auto; background: var(--surface); border-bottom: 1px solid var(--accent-border); box-shadow: var(--shadow); padding: 20px max(16px, calc((100vw - var(--max)) / 2)); }
.star-map.is-open, .search-layer.is-open { visibility: visible; pointer-events: auto; transform: translateY(0); opacity: 1; }
.star-map-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.star-map-brand { display: inline-flex; align-items: center; gap: 12px; }
.star-map-brand > span { display: flex; flex-direction: column; line-height: 1.3; }
.star-map-brand small { color: var(--muted); font-size: 11px; letter-spacing: .06em; }
.panel-close { min-height: 44px; min-width: 64px; padding: 0 14px; border-radius: 10px; background: var(--secondary); color: var(--title); border: 1px solid var(--border); font-weight: 700; }
.panel-close:hover, .panel-close:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.star-map-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; padding-top: 18px; }
.star-map-grid h2 { font-size: 15px; color: var(--lake); margin-bottom: 8px; }
.star-map-grid a { display: block; padding: 10px 0; border-bottom: 1px solid var(--border); }
.star-map-grid a:last-child { border-bottom: 0; }
.star-map-grid a strong { display: block; color: var(--title); font-size: 15px; }
.star-map-grid a span { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.star-map-grid a:hover strong, .star-map-grid a:focus-visible strong { color: var(--green); }
.star-map-grid a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 8px; }
.search-layer { padding: 14px 16px 0; }
.search-card { width: min(760px, calc(100% - 32px)); margin: 0 auto; padding: 20px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); border: 1px solid var(--accent-border); }
.search-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.search-head > div { display: flex; flex-direction: column; }
.search-head strong { color: var(--title); font-size: 18px; }
.search-head span { color: var(--muted); font-size: 13px; }
.search-look { margin-top: 18px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--accent-border); background: var(--star); color: var(--title); }
.search-look input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; color: var(--night); }
.preset-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.preset-links a { min-height: 40px; display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 9px; background: var(--secondary); color: var(--title); font-weight: 700; }
.preset-links a:hover, .preset-links a:focus-visible { background: var(--lake); color: var(--star); outline: none; }
.search-note { margin: 12px 0 0; color: var(--muted); font-size: 12px; }
.mobile-bottom-nav { display: none; }
@media (max-width: 980px) {
    .constellation-grid { grid-template-columns: repeat(2, 1fr); }
    .constellation-card:nth-child(n) { margin-top: 0; }
    .constellation-card:last-child { grid-column: 1 / -1; }
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .card-grid.three { grid-template-columns: repeat(2, 1fr); }
    .split, .split.reverse, .app-layout { grid-template-columns: 1fr; }
    .star-map-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
    body { line-height: 1.72; }
    .header-shell, .page-shell { width: min(calc(100% - 32px), var(--max)); }
    .star-track { height: 22px; }
    .dome-bar, .dome-bar-inner { height: 64px; }
    .dome-bar-inner { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; }
    .brand-link { min-width: 0; max-width: 135px; overflow: hidden; }
    .brand-logo { max-width: 132px; height: 30px; }
    .brand-text-fallback { font-size: 15px; overflow: hidden; text-overflow: ellipsis; }
    .map-trigger { min-height: 44px; padding: 0 10px; font-size: 14px; }
    .map-trigger-mark { display: none; }
    .app-link { min-height: 44px; padding: 0 10px; font-size: 14px; white-space: nowrap; }
    .screen-tabs { display: none; }
    .site-main { padding-top: 102px; padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
    .section { padding: 26px 0; }
    .hero-shell { padding-top: 16px; }
    .hero-media { min-height: 180px; max-height: 280px; }
    .hero-media.media-placeholder { min-height: 220px; }
    .content-media { min-height: 160px; max-height: 220px; }
    .constellation-grid, .card-grid, .card-grid.three, .card-grid.two, .contact-grid { grid-template-columns: 1fr; }
    .constellation-card:last-child { grid-column: auto; }
    .number-row { grid-template-columns: 50px 1fr; }
    .number { font-size: 28px; }
    .topic-table, .topic-table tbody, .topic-table tr, .topic-table th, .topic-table td { display: block; width: 100%; }
    .topic-table tr { border-bottom: 1px solid var(--border); }
    .topic-table tr:last-child { border-bottom: 0; }
    .topic-table th, .topic-table td { border-bottom: 0; }
    .topic-table th { padding-bottom: 4px; }
    .topic-table td { padding-top: 4px; }
    .footer-brand-row { align-items: flex-start; flex-direction: column; gap: 18px; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .site-footer { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
    .ui-overlay { inset: 86px 0 0; }
    .star-map, .search-layer { top: 86px; }
    .star-map { max-height: 78vh; padding: 16px; }
    .star-map-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .star-map-grid a { padding: 9px 0; }
    .star-map-grid a span { font-size: 11px; }
    .star-map-brand .map-logo { max-width: 120px; }
    .search-layer { padding: 10px 8px 0; }
    .search-card { width: calc(100% - 16px); padding: 16px; }
    .mobile-bottom-nav { position: fixed; z-index: 1100; left: 0; right: 0; bottom: 0; height: calc(50px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(5, 1fr); background: rgba(247, 252, 252, .98); border-top: 1px solid var(--border); box-shadow: 0 -8px 22px rgba(8, 34, 42, .08); }
    .mobile-bottom-nav a { min-width: 0; min-height: 50px; display: flex; align-items: center; justify-content: center; color: var(--title); font-size: 13px; font-weight: 800; }
    .mobile-bottom-nav a.is-current { background: var(--lake); color: var(--star); }
    .button-row { gap: 10px; }
    .btn-primary, .btn-secondary { flex: 1 1 auto; }
}
@media (max-width: 420px) {
    .star-track-inner > span { max-width: 235px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .star-map-grid { gap: 10px; }
    .star-map-grid a span { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
