:root {
    --mist: #F4FAFC;
    --white: #FFFFFF;
    --soft: #E7F3F6;
    --title: #0E3A46;
    --text: #24505A;
    --muted: #4A7380;
    --subtle: #7A9AA4;
    --sea: #1A7F8F;
    --bright: #2BB3C4;
    --deep: #0F5B68;
    --pale: #D7EEF2;
    --border: rgba(26,127,143,0.16);
    --shadow: 0 14px 34px rgba(14,58,70,0.08);
    --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--mist); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif; line-height: 1.75; overflow-x: hidden; }
body.layer-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
a, button, input { -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid rgba(43,179,196,.42); outline-offset: 3px; }
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 80; box-shadow: 0 1px 0 var(--border); }
.mist-line { height: 20px; background: var(--title); color: #fff; }
.header-inner { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.mist-inner { height: 20px; display: flex; align-items: center; justify-content: space-between; font-size: 11px; letter-spacing: .06em; }
.mist-search-btn { height: 20px; min-width: 44px; padding: 0 10px; border: 0; color: #fff; background: transparent; }
.dock-bar { height: 62px; background: #fff; border-bottom: 1px solid var(--border); }
.dock-inner { height: 62px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; }
.dock-logo { min-height: 44px; display: inline-flex; align-items: center; justify-self: start; color: var(--title); font-weight: 800; letter-spacing: .08em; }
.dock-logo img { height: 36px; width: auto; max-width: 190px; object-fit: contain; object-position: left center; }
.drawer-trigger { min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--border); background: var(--soft); color: var(--deep); font-weight: 700; }
.app-link { min-height: 44px; padding: 0 16px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; justify-self: end; color: #fff; background: linear-gradient(135deg,#2BB3C4 0%,#1A7F8F 55%,#0F5B68 100%); font-weight: 700; }
.shell-tabs { height: 42px; background: var(--pale); border-bottom: 1px solid var(--border); }
.shell-tabs-inner { height: 42px; display: flex; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.shell-tabs-inner::-webkit-scrollbar { display: none; }
.shell-tab { display: inline-flex; align-items: center; justify-content: center; min-height: 30px; padding: 0 12px; border-radius: 8px; color: var(--deep); font-size: 14px; white-space: nowrap; }
.shell-tab:hover { background: rgba(255,255,255,.6); }
.shell-tab.is-current { background: var(--sea); color: #fff; }
.page-main { min-height: 60vh; padding-top: 148px; }
.page-shell { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.hero-section { padding: 28px 0 22px; }
.section { padding: 34px 0; }
.section + .section { border-top: 1px solid var(--border); }
.eyebrow { display: inline-block; color: var(--sea); font-size: 13px; font-weight: 800; letter-spacing: .12em; }
h1, h2, h3 { color: var(--title); line-height: 1.35; margin-top: 0; }
h1 { font-size: clamp(28px, 4vw, 32px); margin-bottom: 14px; }
h2 { font-size: clamp(22px, 3vw, 26px); margin-bottom: 12px; }
h3 { font-size: 18px; margin-bottom: 8px; }
p { margin: 0 0 14px; }
.lede { max-width: 830px; color: var(--muted); font-size: 17px; }
.meta-note { color: var(--subtle); font-size: 14px; }
.action-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.btn-primary, .btn-secondary { min-height: 44px; padding: 0 18px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-weight: 750; }
.btn-primary { color: #fff; background: linear-gradient(135deg,#2BB3C4 0%,#1A7F8F 55%,#0F5B68 100%); }
.btn-secondary { color: var(--deep); background: #fff; border: 1px solid var(--border); }
.btn-primary:hover, .app-link:hover { filter: brightness(.98); transform: translateY(-1px); }
.btn-secondary:hover { background: var(--soft); }
.media-slot { width: 100%; min-height: 180px; display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.media-slot img { width: 100%; height: 100%; max-height: 240px; object-fit: contain; object-position: center; }
.media-placeholder { color: var(--deep); background: linear-gradient(145deg, var(--soft), #fff); }
.media-placeholder span { padding: 30px; font-weight: 700; letter-spacing: .06em; }
.banner-slot { aspect-ratio: 16 / 9; max-height: 300px; margin-bottom: 22px; }
.banner-slot img { max-height: 300px; }
.app-media { min-height: 320px; }
.app-media img { max-height: 420px; width: auto; }
.icon-media { min-height: 90px; }
.icon-media img { max-height: 72px; width: auto; }
.hero-copy { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow); }
.step-grid, .card-grid, .info-grid, .gallery-grid, .faq-grid, .footer-groups { display: grid; gap: 16px; }
.step-grid { grid-template-columns: repeat(4, 1fr); }
.step-item { min-height: 144px; padding: 18px; border-radius: 16px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow); }
.step-item .chip { display: inline-flex; min-height: 28px; padding: 0 9px; border-radius: 8px; align-items: center; color: #fff; background: var(--bright); font-size: 12px; font-weight: 800; margin-bottom: 10px; }
.step-item:nth-child(even) .chip { background: var(--deep); }
.step-item p { color: var(--muted); font-size: 15px; }
.step-item a { color: var(--deep); font-weight: 750; }
.card-grid { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 18px; box-shadow: var(--shadow); }
.card .media-slot { margin-bottom: 14px; }
.card p { color: var(--muted); }
.card-link { color: var(--sea); font-weight: 750; }
.number-list { display: grid; gap: 12px; margin-top: 18px; }
.number-item { display: grid; grid-template-columns: 52px 1fr; gap: 14px; padding: 16px; background: #fff; border: 1px solid var(--border); border-radius: 14px; }
.number-item .num { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; background: var(--sea); color: #fff; font-weight: 800; }
.number-item p { margin: 3px 0 0; color: var(--muted); }
.split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: 26px; align-items: start; }
.split.reverse { grid-template-columns: minmax(280px, .85fr) minmax(0, 1.15fr); }
.prose-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: clamp(20px, 3vw, 28px); box-shadow: var(--shadow); }
.prose-card p:last-child { margin-bottom: 0; }
.info-grid { grid-template-columns: repeat(2, 1fr); }
.info-card { background: #fff; border: 1px solid var(--border); border-radius: 15px; padding: 20px; }
.info-card p { color: var(--muted); }
.atlas-list { display: grid; gap: 10px; }
.atlas-row { display: grid; grid-template-columns: minmax(120px,.36fr) 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 12px; background: #fff; border: 1px solid var(--border); }
.atlas-row span { color: var(--muted); }
.atlas-row a { color: var(--sea); font-weight: 750; }
.gallery-grid { grid-template-columns: repeat(4, 1fr); }
.gallery-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 14px; }
.gallery-card .media-slot { min-height: 150px; }
.gallery-card p { margin-top: 10px; color: var(--muted); }
.path-list { display: grid; gap: 12px; }
.path-item { display: grid; grid-template-columns: 110px 1fr auto; gap: 14px; align-items: center; padding: 16px; border-radius: 14px; background: var(--soft); }
.path-item strong { color: var(--deep); }
.path-item span { color: var(--muted); }
.path-item a { color: var(--sea); font-weight: 750; }
.callout { padding: 20px; border-radius: 16px; background: var(--pale); color: var(--deep); border: 1px solid var(--border); }
.callout strong { color: var(--title); }
.faq-list { display: grid; gap: 14px; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: 15px; padding: 20px; }
.faq-item h2 { font-size: 19px; margin-bottom: 8px; }
.faq-item p { color: var(--muted); margin: 0; }
.article-index { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 4px; }
.article-index a { min-height: 40px; padding: 0 13px; display: inline-flex; align-items: center; border-radius: 10px; border: 1px solid var(--border); background: #fff; color: var(--deep); }
.long-prose h2 { margin-top: 26px; }
.long-prose p { color: var(--text); }
.rule-list { display: grid; gap: 14px; }
.rule-item { padding: 20px; background: #fff; border-radius: 15px; border: 1px solid var(--border); }
.rule-item h2 { font-size: 20px; }
.search-panel { position: fixed; top: 82px; left: 50%; z-index: 110; width: min(760px, calc(100% - 32px)); transform: translate(-50%, -16px); visibility: hidden; opacity: 0; pointer-events: none; transition: .22s ease; }
.search-panel.is-open { visibility: visible; opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.search-card { background: #fff; border: 1px solid var(--border); border-radius: 0 0 18px 18px; padding: 20px; box-shadow: var(--shadow); }
.panel-heading { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.panel-heading h2 { margin: 2px 0 0; font-size: 22px; }
.icon-text-btn { min-height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--border); background: #fff; color: var(--deep); }
.search-look { margin-top: 16px; display: grid; gap: 7px; color: var(--muted); font-size: 14px; }
.search-look input { width: 100%; min-height: 48px; border: 1px solid var(--border); border-radius: 12px; padding: 0 14px; color: var(--title); background: var(--mist); }
.preset-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.preset-links a { min-height: 40px; padding: 0 12px; display: inline-flex; align-items: center; border-radius: 10px; color: var(--deep); background: var(--pale); }
.tide-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 120; width: min(410px, 86vw); padding: 18px; background: var(--mist); box-shadow: -18px 0 38px rgba(14,58,70,.16); transform: translateX(100%); visibility: hidden; pointer-events: none; transition: transform .25s ease, visibility .25s; overflow-y: auto; }
.tide-drawer.is-open { transform: translateX(0); visibility: visible; pointer-events: auto; }
.drawer-top { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 14px; }
.drawer-brand { display: flex; align-items: center; gap: 10px; }
.drawer-brand img { height: 32px; width: auto; max-width: 150px; object-fit: contain; }
.drawer-brand strong, .drawer-brand span { display: block; }
.drawer-brand strong { color: var(--title); }
.drawer-brand span { color: var(--subtle); font-size: 11px; letter-spacing: .12em; }
.drawer-wave-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wave-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 14px; box-shadow: var(--shadow); }
.wave-card:nth-child(2), .wave-card:nth-child(4) { margin-top: 18px; }
.wave-card h2 { font-size: 16px; margin-bottom: 9px; color: var(--sea); }
.wave-card a { display: block; padding: 9px 0; border-top: 1px dashed var(--border); }
.wave-card a:first-of-type { border-top: 0; }
.wave-card strong { display: block; color: var(--title); font-size: 14px; }
.wave-card span { display: block; color: var(--muted); font-size: 12px; line-height: 1.5; margin-top: 2px; }
.page-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(14,58,70,.34); opacity: 0; visibility: hidden; pointer-events: none; transition: .2s ease; }
.page-overlay.is-active { opacity: 1; visibility: visible; pointer-events: auto; }
.site-footer { margin-top: 46px; background: var(--title); color: #D4E8EC; }
.footer-inner { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; padding: 34px 0 28px; }
.footer-brand-row { display: flex; justify-content: space-between; gap: 24px; align-items: center; padding-bottom: 22px; border-bottom: 1px solid rgba(212,232,236,.15); }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { height: 32px; max-width: 170px; object-fit: contain; }
.footer-brand strong, .footer-brand span { display: block; color: #fff; }
.footer-brand span { font-size: 12px; letter-spacing: .12em; color: #D4E8EC; }
.footer-brand-row p { max-width: 430px; margin: 0; color: #D4E8EC; }
.footer-groups { grid-template-columns: repeat(4, 1fr); padding: 24px 0; }
.footer-groups h2 { color: #fff; font-size: 15px; margin-bottom: 8px; }
.footer-groups a { display: block; min-height: 34px; padding: 4px 0; color: #D4E8EC; }
.footer-groups a:hover { color: #fff; }
.footer-note { border-top: 1px solid rgba(212,232,236,.15); padding-top: 18px; color: #D4E8EC; font-size: 13px; }
.footer-note p { margin-bottom: 6px; }
.mobile-bottom { display: none; }
@media (max-width: 900px) {
    .step-grid, .card-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .split, .split.reverse { grid-template-columns: 1fr; }
    .info-grid { grid-template-columns: 1fr; }
    .footer-groups { grid-template-columns: repeat(2, 1fr); }
    .atlas-row { grid-template-columns: 1fr; }
    .path-item { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    body { padding-bottom: calc(50px + env(safe-area-inset-bottom)); }
    .site-header { box-shadow: 0 1px 0 var(--border); }
    .shell-tabs { display: none; }
    .page-main { padding-top: 98px; }
    .dock-inner { grid-template-columns: minmax(0,1fr) auto auto; gap: 8px; }
    .dock-logo { min-width: 0; }
    .dock-logo img { max-width: 118px; height: 30px; }
    .dock-logo span { font-size: 14px; white-space: nowrap; }
    .drawer-trigger, .app-link { min-height: 44px; padding: 0 10px; border-radius: 10px; font-size: 13px; white-space: nowrap; }
    .mist-brand { font-size: 10px; }
    .page-shell { width: min(100% - 32px, var(--max)); }
    .hero-section { padding-top: 20px; }
    .section { padding: 28px 0; }
    .step-grid, .card-grid, .gallery-grid, .footer-groups { grid-template-columns: 1fr; }
    .number-item { grid-template-columns: 46px 1fr; padding: 14px; }
    .search-panel { top: 82px; width: calc(100% - 16px); }
    .search-card { background: var(--pale); padding: 16px; }
    .tide-drawer { width: min(86vw, 410px); padding: 14px; }
    .drawer-wave-grid { grid-template-columns: 1fr; }
    .wave-card:nth-child(2), .wave-card:nth-child(4) { margin-top: 0; }
    .footer-brand-row { align-items: flex-start; flex-direction: column; }
    .mobile-bottom { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; height: calc(50px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(5,1fr); background: #fff; border-top: 1px solid var(--border); }
    .mobile-bottom a { min-height: 50px; display: flex; align-items: center; justify-content: center; color: var(--deep); font-size: 13px; }
    .mobile-bottom a.is-current { background: var(--sea); color: #fff; }
    .banner-slot { aspect-ratio: 3 / 2; }
}
@media (max-width: 420px) {
    .header-inner { width: calc(100% - 24px); }
    .dock-inner { gap: 6px; }
    .drawer-trigger, .app-link { padding: 0 8px; font-size: 12px; }
    .dock-logo img { max-width: 96px; }
    .page-shell, .footer-inner { width: calc(100% - 32px); }
}
