:root {
    --mist: #F4FAFC;
    --surface: #FFFFFF;
    --soft: #E7F3F6;
    --title: #0E3A46;
    --text: #24505A;
    --muted: #4A7380;
    --quiet: #7A9AA4;
    --brand: #1A7F8F;
    --bright: #2BB3C4;
    --deep: #0F5B68;
    --pale: #D7EEF2;
    --line: rgba(26,127,143,.16);
    --shadow: 0 14px 34px rgba(14,58,70,.08);
    --radius: 18px;
    --header-h: 106px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--mist); }
body { margin: 0; color: var(--text); background: var(--mist); font-family: -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",Arial,sans-serif; line-height: 1.72; font-size: 16px; overflow-x: hidden; }
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button,input { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
.site-header { position: relative; z-index: 60; }
.harbor-bar { position: fixed; inset: 0 0 auto 0; height: 58px; background: var(--pale); border-bottom: 1px solid var(--line); z-index: 62; }
.harbor-inner { max-width: 1200px; height: 58px; padding: 0 20px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.brand-mark { justify-self: center; display: inline-flex; align-items: center; min-height: 44px; }
.brand-logo { max-height: 34px; width: auto; }
.brand-text { color: var(--title); font-weight: 800; letter-spacing: .08em; font-size: 20px; }
.harbor-actions { justify-self: end; display: flex; align-items: center; gap: 10px; }
.round-action { width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.78); display: inline-grid; place-items: center; cursor: pointer; transition: transform .18s ease,border-color .18s ease,background .18s ease; }
.round-action:hover,.round-action:focus-visible { transform: translateY(-1px); border-color: rgba(26,127,143,.36); background: #fff; outline: none; }
.menu-trigger { justify-self: start; }
.menu-lines,.menu-lines::before,.menu-lines::after { width: 18px; height: 2px; border-radius: 4px; background: var(--deep); display: block; position: relative; content: ""; }
.menu-lines::before { position: absolute; top: -6px; }
.menu-lines::after { position: absolute; top: 6px; }
.search-glyph { width: 17px; height: 17px; border: 2px solid var(--deep); border-radius: 50%; display: block; position: relative; flex: 0 0 auto; }
.search-glyph::after { content: ""; position: absolute; width: 7px; height: 2px; background: var(--deep); border-radius: 4px; right: -5px; bottom: -2px; transform: rotate(45deg); }
.app-pill,.btn-primary,.btn-secondary { min-height: 44px; border-radius: 999px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; transition: transform .18s ease,box-shadow .18s ease; }
.app-pill,.btn-primary { color: #fff; background: linear-gradient(135deg,#2BB3C4 0%,#1A7F8F 55%,#0F5B68 100%); }
.btn-secondary { background: #fff; color: var(--deep); border: 1px solid var(--line); }
.app-pill:hover,.btn-primary:hover,.btn-secondary:hover,.app-pill:focus-visible,.btn-primary:focus-visible,.btn-secondary:focus-visible { transform: translateY(-2px); box-shadow: var(--shadow); outline: none; }
.dock-nav { position: fixed; inset: 58px 0 auto 0; height: 48px; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); z-index: 61; }
.dock-inner { max-width: 900px; height: 48px; margin: 0 auto; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.dock-link { position: relative; height: 48px; display: inline-flex; align-items: center; color: var(--muted); font-weight: 650; white-space: nowrap; }
.dock-link::after { content: ""; position: absolute; left: 50%; right: 50%; bottom: 0; height: 3px; background: var(--brand); border-radius: 3px 3px 0 0; transition: left .18s ease,right .18s ease; }
.dock-link:hover,.dock-link:focus-visible,.dock-link.is-current { color: var(--deep); outline: none; }
.dock-link.is-current::after,.dock-link:hover::after { left: 0; right: 0; }
.site-main { padding-top: calc(var(--header-h) + 34px); }
.container { width: min(1200px, calc(100% - 40px)); margin: 0 auto; }
.page-hero { margin-bottom: 30px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--brand); font-weight: 800; letter-spacing: .08em; font-size: 14px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--bright); border-radius: 4px; }
h1,h2,h3 { color: var(--title); line-height: 1.28; margin-top: 0; }
h1 { font-size: clamp(28px,4vw,32px); margin: 10px 0 14px; }
h2 { font-size: clamp(22px,3vw,26px); margin-bottom: 12px; }
h3 { font-size: 18px; margin-bottom: 8px; }
p { margin: 0 0 1em; }
.lead { color: var(--muted); font-size: 17px; max-width: 780px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.cover-card,.content-card,.story-card,.info-panel,.rule-panel,.faq-item,.step-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.cover-card { padding: clamp(24px,4vw,42px); }
.cover-media { margin-top: 26px; overflow: hidden; border-radius: 18px; background: var(--soft); }
.cover-media img,.cover-media .image-slot { width: 100%; max-height: 340px; object-fit: cover; }
.image-slot { width: 100%; aspect-ratio: 16 / 7; min-height: 160px; background: linear-gradient(145deg,var(--pale),var(--soft)); border: 1px dashed rgba(26,127,143,.18); }
.section-block { padding: 34px 0; }
.section-head { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 20px; }
.section-head p { max-width: 680px; color: var(--muted); margin: 0; }
.card-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.card-grid.two { grid-template-columns: repeat(2,minmax(0,1fr)); }
.card-grid.four { grid-template-columns: repeat(4,minmax(0,1fr)); }
.content-card,.story-card,.step-card { padding: 20px; overflow: hidden; }
.content-card .card-media,.story-card .card-media { margin: -20px -20px 18px; overflow: hidden; background: var(--soft); }
.content-card .card-media img,.content-card .card-media .image-slot,.story-card .card-media img,.story-card .card-media .image-slot { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card-link { color: var(--brand); font-weight: 750; display: inline-flex; align-items: center; min-height: 44px; }
.card-link::after { content: "→"; margin-left: 6px; }
.split-feature { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: 24px; align-items: stretch; }
.feature-media { border-radius: var(--radius); overflow: hidden; background: var(--soft); min-height: 260px; }
.feature-media img,.feature-media .image-slot { width: 100%; height: 100%; object-fit: cover; }
.info-panel,.rule-panel { padding: clamp(22px,4vw,34px); }
.soft-panel { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px,4vw,32px); color: var(--text); }
.soft-panel h2,.soft-panel h3 { color: var(--title); }
.tag-row { display: flex; flex-wrap: wrap; gap: 9px; margin: 16px 0 0; }
.tag { display: inline-flex; align-items: center; min-height: 34px; padding: 0 13px; border-radius: 999px; color: var(--deep); background: var(--pale); font-weight: 700; font-size: 14px; }
.tide-list,.note-list,.window-grid,.district-grid,.manual-list,.discovery-list,.rules-list { display: grid; gap: 14px; }
.tide-item,.note-item,.manual-item,.discovery-item { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.tide-no { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; color: #fff; background: linear-gradient(135deg,var(--bright),var(--deep)); font-weight: 800; }
.index-list { display: grid; gap: 12px; }
.index-link { display: flex; justify-content: space-between; gap: 18px; align-items: center; min-height: 62px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.index-link strong { color: var(--title); }
.index-link span { color: var(--muted); }
.article-prose { max-width: 880px; }
.article-prose p { margin-bottom: 1.15em; }
.quote-note { border-left: 4px solid var(--bright); padding: 16px 18px; background: var(--soft); border-radius: 0 14px 14px 0; color: var(--deep); margin: 22px 0; }
.window-grid,.district-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.window-card,.district-card { padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.gallery-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.gallery-card { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.gallery-card .gallery-media img,.gallery-card .gallery-media .image-slot { width: 100%; aspect-ratio: 16/8; object-fit: cover; }
.gallery-caption { padding: 16px 18px; }
.app-feature { display: grid; grid-template-columns: minmax(240px,.75fr) minmax(0,1.25fr); gap: 28px; align-items: center; }
.app-visual { background: var(--soft); border-radius: 22px; padding: 20px; min-height: 300px; display: grid; place-items: center; }
.app-visual img { max-height: 420px; width: auto; }
.app-icon { width: 72px; height: 72px; border-radius: 18px; overflow: hidden; margin-bottom: 16px; }
.app-icon img { width: 100%; height: 100%; object-fit: cover; }
.faq-list { display: grid; gap: 14px; }
.faq-item { padding: 20px 22px; }
.faq-item h2 { font-size: 18px; }
.faq-item p { margin: 0; color: var(--muted); }
.notice { padding: 20px 22px; background: var(--pale); color: var(--deep); border-radius: 16px; border: 1px solid var(--line); }
.site-footer { margin-top: 50px; padding: 46px 0 26px; background: #0E3A46; color: #D4E8EC; }
.footer-inner { width: min(1200px, calc(100% - 40px)); margin: 0 auto; }
.footer-brand { display: grid; grid-template-columns: minmax(220px,.7fr) minmax(0,1.3fr); gap: 28px; padding-bottom: 26px; border-bottom: 1px solid rgba(255,255,255,.13); }
.footer-logo-wrap { display: inline-flex; align-items: center; gap: 14px; color: #fff; }
.footer-logo { max-height: 34px; width: auto; }
.footer-logo-wrap strong { display: block; font-size: 18px; }
.footer-logo-wrap em { display: block; font-style: normal; font-size: 12px; letter-spacing: .16em; opacity: .76; }
.footer-brand p { margin: 0; color: #BFD7DC; max-width: 650px; }
.footer-map { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 24px; padding: 30px 0; }
.footer-map h2 { color: #fff; font-size: 15px; margin-bottom: 10px; }
.footer-map a { display: block; min-height: 34px; color: #D4E8EC; }
.footer-map a:hover,.footer-map a:focus-visible { color: #fff; text-decoration: underline; outline: none; }
.footer-note,.footer-bottom { color: #AFCBD1; font-size: 14px; }
.footer-bottom { margin-top: 10px; }
.page-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(14,58,70,.45); opacity: 0; pointer-events: none; transition: opacity .18s ease; }
.page-overlay.is-open { opacity: 1; pointer-events: auto; }
.modal { position: fixed; z-index: 100; left: 50%; top: 50%; width: min(760px,92vw); max-height: min(82vh,820px); overflow: auto; transform: translate(-50%,-48%) scale(.98); background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 24px 70px rgba(14,58,70,.24); padding: 22px; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .18s ease,transform .18s ease,visibility .18s ease; }
.modal.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%,-50%) scale(1); }
.modal-head { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.modal-brand { display: flex; gap: 12px; align-items: center; }
.modal-brand img { max-height: 30px; width: auto; }
.modal-brand strong { display: block; color: var(--title); }
.modal-brand span,.search-subtitle { display: block; color: var(--quiet); font-size: 13px; }
.modal-close { min-width: 52px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--mist); color: var(--deep); cursor: pointer; }
.modal-close:hover,.modal-close:focus-visible { border-color: rgba(26,127,143,.36); outline: none; }
.sea-map-groups { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; padding-top: 18px; }
.sea-map-groups h2 { font-size: 15px; margin-bottom: 10px; color: var(--brand); }
.sea-map-groups a { display: block; padding: 10px 0; border-bottom: 1px solid rgba(26,127,143,.10); }
.sea-map-groups a:last-child { border-bottom: 0; }
.sea-map-groups strong { display: block; color: var(--title); font-size: 15px; }
.sea-map-groups span { display: block; color: var(--muted); font-size: 13px; line-height: 1.55; margin-top: 2px; }
.search-layer { width: min(620px,92vw); }
.search-box { margin-top: 20px; min-height: 54px; display: flex; align-items: center; gap: 12px; padding: 0 18px; background: var(--soft); border: 1px solid var(--line); border-radius: 18px; }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--title); }
.search-presets { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-top: 16px; }
.search-presets a { min-height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 999px; color: var(--deep); background: #fff; }
.mobile-bottom-nav { display: none; }
@media (max-width: 900px) {
    .card-grid,.card-grid.four { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .split-feature,.app-feature { grid-template-columns: 1fr; }
    .footer-brand { grid-template-columns: 1fr; }
    .footer-map { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 720px) {
    :root { --header-h: 58px; }
    body { padding-bottom: calc(50px + env(safe-area-inset-bottom)); }
    .harbor-inner { padding: 0 16px; grid-template-columns: 1fr auto 1fr; gap: 8px; }
    .dock-nav,.desktop-search { display: none; }
    .harbor-actions { gap: 0; }
    .app-pill { min-width: 82px; padding: 0 15px; font-size: 14px; }
    .site-main { padding-top: calc(var(--header-h) + 24px); }
    .container,.footer-inner { width: min(100% - 32px,1200px); }
    .section-block { padding: 26px 0; }
    .section-head { align-items: start; flex-direction: column; gap: 8px; }
    .card-grid,.card-grid.two,.card-grid.four,.window-grid,.district-grid,.gallery-grid { grid-template-columns: 1fr; }
    .tide-item,.note-item,.manual-item,.discovery-item { grid-template-columns: 48px 1fr; gap: 12px; padding: 15px; }
    .sea-map-groups { grid-template-columns: 1fr; gap: 12px; }
    .search-presets { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .modal { max-height: 86vh; padding: 18px; }
    .footer-map { gap: 18px; }
    .mobile-bottom-nav { position: fixed; z-index: 55; inset: auto 0 0 0; height: calc(50px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: rgba(255,255,255,.97); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5,1fr); box-shadow: 0 -8px 24px rgba(14,58,70,.06); }
    .mobile-bottom-nav a { min-width: 0; min-height: 50px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; color: var(--quiet); font-size: 11px; }
    .mobile-bottom-nav span { font-size: 17px; line-height: 1; }
    .mobile-bottom-nav a.is-current { color: var(--brand); font-weight: 800; }
    .page-overlay { z-index: 90; }
    .modal { z-index: 100; }
}
@media (max-width: 460px) {
    .brand-text { font-size: 18px; }
    .cover-card { padding: 22px 18px; }
    .footer-map { grid-template-columns: 1fr 1fr; }
    .search-presets { grid-template-columns: 1fr 1fr; }
}
