:root {
    --mist: #F4FAFC;
    --white: #FFFFFF;
    --sea-soft: #E7F3F6;
    --title: #0E3A46;
    --text: #24505A;
    --muted: #4A7380;
    --assist: #7A9AA4;
    --brand: #1A7F8F;
    --bright: #2BB3C4;
    --deep: #0F5B68;
    --pale: #D7EEF2;
    --border: rgba(26,127,143,0.16);
    --shadow: 0 14px 34px rgba(14,58,70,0.08);
    --radius: 16px;
    --top-offset: 124px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { margin: 0; background: var(--mist); color: var(--text); font: 16px/1.82 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; overflow-x: hidden; }
a { color: var(--deep); text-decoration: none; }
a:hover { color: var(--brand); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid rgba(43,179,196,.35); outline-offset: 3px; }
button, input { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
.site-header { position: fixed; z-index: 80; inset: 0 0 auto 0; }
.header-inner { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.mist-line { height: 20px; background: var(--title); color: #fff; font-size: 12px; line-height: 20px; }
.mist-inner { display: flex; align-items: center; justify-content: space-between; height: 20px; }
.text-button { border: 0; background: transparent; color: #fff; min-height: 20px; padding: 0 4px; }
.dock-bar { height: 62px; background: #fff; border-bottom: 1px solid var(--border); }
.dock-inner { display: grid; grid-template-columns: minmax(160px, 1fr) auto minmax(160px, 1fr); align-items: center; height: 62px; gap: 16px; }
.brand-home { justify-self: start; display: flex; align-items: center; min-height: 44px; max-width: 250px; }
.brand-logo, .footer-logo, .drawer-logo { height: 34px; width: auto; max-width: 220px; object-fit: contain; }
.logo-fallback { font-weight: 800; letter-spacing: .08em; color: var(--title); }
.drawer-trigger, .app-link, .primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 12px; padding: 0 18px; font-weight: 700; border: 1px solid transparent; }
.drawer-trigger { background: var(--sea-soft); color: var(--deep); border-color: var(--border); }
.app-link { justify-self: end; color: #fff; background: linear-gradient(135deg,#2BB3C4 0%,#1A7F8F 55%,#0F5B68 100%); }
.shell-tabs { height: 42px; background: var(--pale); border-bottom: 1px solid var(--border); }
.tab-inner { height: 42px; display: flex; align-items: center; gap: 10px; overflow: hidden; }
.tab-inner a { display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border-radius: 8px; color: var(--deep); font-size: 14px; white-space: nowrap; }
.tab-inner a.active { background: var(--brand); color: #fff; }
.site-main { padding-top: calc(var(--top-offset) + 34px); padding-bottom: 52px; min-height: 70vh; }
.page-shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.hero, .section-card, .content-card, .number-item, .article-band, .step-card, .faq-item, .policy-block, .gallery-card, .book-row, .interest-card { background: var(--white); border: 1px solid var(--border); box-shadow: var(--shadow); border-radius: var(--radius); }
.hero { overflow: hidden; }
.hero-media, .section-media, .card-media, .app-media { background: linear-gradient(145deg, var(--sea-soft), #fff); display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--border); }
.hero-media { min-height: 190px; max-height: 300px; }
.hero-media img { width: 100%; max-height: 300px; object-fit: contain; object-position: center; }
.section-media { min-height: 180px; max-height: 240px; border-radius: 14px; overflow: hidden; }
.section-media img, .card-media img { width: 100%; height: 100%; max-height: 240px; object-fit: contain; object-position: center; }
.card-media { min-height: 180px; height: 205px; background: var(--sea-soft); border-bottom: 1px solid var(--border); }
.media-placeholder { width: 100%; min-height: 180px; background: linear-gradient(135deg, var(--pale), var(--sea-soft)); }
.hero-copy { padding: clamp(24px, 5vw, 54px); max-width: 820px; }
.eyebrow { display: inline-block; color: var(--brand); font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 8px; }
h1, h2, h3 { color: var(--title); line-height: 1.35; margin-top: 0; }
h1 { font-size: clamp(28px, 4vw, 32px); margin-bottom: 16px; }
h2 { font-size: clamp(21px, 3vw, 26px); margin-bottom: 14px; }
h3 { font-size: 18px; margin-bottom: 8px; }
p { margin: 0 0 1em; }
.lead { color: var(--muted); font-size: 17px; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.primary-button { color: #fff; background: linear-gradient(135deg,#2BB3C4 0%,#1A7F8F 55%,#0F5B68 100%); }
.primary-button:hover { color: #fff; filter: brightness(.98); }
.secondary-button { background: #fff; color: var(--deep); border-color: var(--border); }
.home-section, .page-section { margin-top: 34px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.section-heading p { max-width: 700px; margin: 0; color: var(--muted); }
.step-grid, .pebble-grid, .four-grid, .three-grid, .policy-grid, .gallery-grid { display: grid; gap: 16px; }
.step-grid, .pebble-grid, .four-grid, .gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.three-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.policy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.step-card { padding: 20px; border-left: 5px solid var(--bright); }
.step-grid.lower { margin-top: 16px; }
.step-grid.lower .step-card { border-left-color: var(--deep); }
.step-card a { font-weight: 800; }
.pebble-card { overflow: hidden; background: #fff; border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); }
.pebble-card .card-body, .gallery-card .card-body { padding: 20px; }
.current-layout, .split-layout, .app-layout { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 24px; align-items: stretch; }
.section-card { padding: 24px; }
.number-list { display: grid; gap: 12px; }
.number-item { display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: center; padding: 16px; box-shadow: none; }
.number-item .num { color: var(--brand); font-weight: 900; font-size: 20px; }
.number-item p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.list-link { font-weight: 800; }
.yard-grid .content-card, .policy-grid .policy-block, .three-grid .content-card, .four-grid .content-card { padding: 22px; }
.book-list { display: grid; gap: 12px; }
.book-row { padding: 18px 20px; display: grid; grid-template-columns: 120px 1fr auto; gap: 18px; align-items: center; box-shadow: none; }
.book-row strong { color: var(--title); }
.path-list { display: grid; gap: 14px; }
.article-band { padding: 22px 24px; box-shadow: none; }
.app-layout .app-visual { background: var(--sea-soft); border-radius: var(--radius); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; padding: 24px; min-height: 360px; }
.app-visual img { max-height: 420px; object-fit: contain; }
.app-icon { width: 64px; height: 64px; object-fit: contain; margin-bottom: 14px; }
.long-copy { max-width: 900px; }
.long-copy p { margin-bottom: 1.1em; }
.page-intro { padding: 30px; background: var(--sea-soft); border: 1px solid var(--border); border-radius: var(--radius); }
.page-intro .eyebrow { color: var(--deep); }
.content-stack { display: grid; gap: 18px; margin-top: 22px; }
.content-card { padding: 24px; box-shadow: none; }
.content-card ul, .policy-block ul { margin: 12px 0 0; padding-left: 1.2em; }
.content-card li, .policy-block li { margin-bottom: 8px; }
.route-essay { border-left: 4px solid var(--brand); padding-left: 24px; }
.interest-card { overflow: hidden; }
.interest-card .card-body { padding: 22px; }
.notes-list { display: grid; gap: 14px; }
.notes-list article { padding: 20px 22px; border-bottom: 1px solid var(--border); background: #fff; border-radius: 12px; }
.pane-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; }
.quote-box { padding: 24px; background: var(--pale); color: var(--deep); border-radius: 14px; font-weight: 700; }
.gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery-card { overflow: hidden; box-shadow: none; }
.gallery-card .card-media { height: 210px; }
.faq-list { display: grid; gap: 14px; }
.faq-item { padding: 22px; box-shadow: none; }
.faq-item h2 { font-size: 18px; }
.policy-block { padding: 24px; box-shadow: none; }
.notice { padding: 18px 20px; background: var(--pale); color: var(--deep); border-radius: 12px; border: 1px solid var(--border); }
.site-footer { background: var(--title); color: #D4E8EC; padding: 48px 0 calc(38px + env(safe-area-inset-bottom)); }
.footer-inner { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.footer-brand { display: flex; align-items: center; gap: 16px; margin-bottom: 30px; }
.footer-brand strong { display: block; color: #fff; font-size: 20px; }
.footer-brand span { display: block; font-size: 12px; letter-spacing: .16em; }
.footer-logo-wrap .logo-fallback { color: #fff; }
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.footer-grid h2 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.footer-grid a { display: block; color: #D4E8EC; padding: 3px 0; font-size: 14px; }
.footer-grid a:hover { color: #fff; }
.footer-note { border-top: 1px solid rgba(255,255,255,.12); margin: 28px 0 0; padding-top: 20px; color: #D4E8EC; }
.copyright { margin: 8px 0 0; color: #AFCFD6; font-size: 13px; }
.tide-drawer { position: fixed; z-index: 120; top: 0; right: 0; width: min(410px, 86vw); height: 100dvh; background: var(--mist); border-left: 1px solid var(--border); box-shadow: -18px 0 44px rgba(14,58,70,.16); transform: translateX(104%); visibility: hidden; pointer-events: none; transition: transform .26s ease, visibility .26s; overflow-y: auto; padding: 18px; }
.tide-drawer.open { transform: translateX(0); visibility: visible; pointer-events: auto; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.drawer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--title); }
.drawer-logo { max-width: 120px; height: 30px; }
.icon-button { width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 12px; background: #fff; color: var(--deep); font-size: 25px; }
.drawer-groups { display: grid; gap: 12px; }
.wave-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 15px; box-shadow: var(--shadow); }
.wave-card:nth-child(even) { margin-left: 14px; }
.wave-card h2 { font-size: 15px; margin-bottom: 8px; color: var(--brand); }
.wave-card a { display: block; padding: 10px 8px; border-radius: 10px; }
.wave-card a:hover { background: var(--sea-soft); }
.wave-card strong { display: block; color: var(--title); font-size: 15px; }
.wave-card span { display: block; color: var(--muted); font-size: 12px; line-height: 1.55; margin-top: 2px; }
.search-layer { position: fixed; z-index: 115; top: 82px; left: 50%; width: min(760px, calc(100% - 32px)); transform: translate(-50%, -18px); visibility: hidden; pointer-events: none; opacity: 0; transition: .22s ease; }
.search-layer.open { visibility: visible; pointer-events: auto; opacity: 1; transform: translate(-50%, 0); }
.search-card { background: #fff; border: 1px solid var(--border); border-radius: 0 0 18px 18px; box-shadow: 0 20px 50px rgba(14,58,70,.16); padding: 24px; }
.search-head { display: flex; justify-content: space-between; gap: 16px; align-items: start; }
.search-head h2 { margin-bottom: 0; }
.search-look { display: block; margin-top: 18px; }
.search-look span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.search-look input { width: 100%; min-height: 46px; border: 1px solid var(--border); border-radius: 10px; padding: 0 14px; background: var(--mist); color: var(--text); }
.search-tip { color: var(--muted); font-size: 13px; margin-top: 8px; }
.preset-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.preset-links a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--sea-soft); color: var(--deep); }
.page-overlay { position: fixed; z-index: 100; inset: 0; background: rgba(14,58,70,.38); opacity: 0; visibility: hidden; pointer-events: none; transition: .2s ease; }
.page-overlay.active { opacity: 1; visibility: visible; pointer-events: auto; }
.ui-locked { overflow: hidden; }
.mobile-bottom { display: none; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--border); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
th { color: var(--title); background: var(--sea-soft); }
@media (max-width: 900px) {
    .step-grid, .pebble-grid, .four-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .three-grid { grid-template-columns: 1fr; }
    .current-layout, .split-layout, .app-layout, .pane-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 640px) {
    :root { --top-offset: 82px; }
    body { padding-bottom: calc(50px + env(safe-area-inset-bottom)); }
    .header-inner, .page-shell, .footer-inner { width: calc(100% - 32px); }
    .dock-inner { grid-template-columns: minmax(0,1fr) auto auto; gap: 8px; }
    .brand-home { min-width: 0; max-width: none; overflow: hidden; }
    .brand-logo { max-width: 120px; height: 28px; }
    .drawer-trigger, .app-link { min-height: 44px; padding: 0 10px; font-size: 14px; }
    .shell-tabs { display: none; }
    .site-main { padding-top: calc(var(--top-offset) + 22px); padding-bottom: 30px; }
    .hero-copy { padding: 24px 20px 28px; }
    .hero-media { min-height: 150px; }
    .step-grid, .pebble-grid, .four-grid, .gallery-grid, .policy-grid { grid-template-columns: 1fr; }
    .section-heading { display: block; }
    .section-heading p { margin-top: 6px; }
    .number-item { grid-template-columns: 44px 1fr; }
    .number-item .list-link { grid-column: 2; }
    .book-row { grid-template-columns: 1fr; gap: 6px; }
    .footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px 14px; }
    .site-footer { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
    .mobile-bottom { display: grid; position: fixed; z-index: 70; left: 0; right: 0; bottom: 0; height: calc(50px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: #fff; border-top: 1px solid var(--border); grid-template-columns: repeat(5,1fr); }
    .mobile-bottom a { display: flex; align-items: center; justify-content: center; min-width: 0; color: var(--deep); font-size: 13px; }
    .mobile-bottom a.active { background: var(--brand); color: #fff; }
    .search-layer { top: 82px; width: calc(100% - 20px); }
    .search-card { background: var(--pale); padding: 20px; }
    .tide-drawer { width: 86vw; }
    .wave-card:nth-child(even) { margin-left: 8px; }
    .page-intro { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; transition: none !important; }
}
