:root {
    --mist: #F4FAFC;
    --white: #FFFFFF;
    --soft: #E7F3F6;
    --title: #0E3A46;
    --text: #24505A;
    --muted: #4A7380;
    --faint: #7A9AA4;
    --sea: #1A7F8F;
    --bright: #2BB3C4;
    --deep: #0F5B68;
    --pale: #D7EEF2;
    --line: rgba(26,127,143,0.16);
    --shadow: 0 14px 34px rgba(14,58,70,0.08);
    --radius: 18px;
    --max: 1200px;
    --harbor-h: 58px;
    --dock-h: 48px;
}
* { 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", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; line-height: 1.75; overflow-x: hidden; }
body.layer-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; }
button { color: inherit; }
:focus-visible { outline: 3px solid rgba(43,179,196,.35); outline-offset: 3px; }
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 1000; }
.harbor-bar { height: var(--harbor-h); background: rgba(215,238,242,.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.harbor-inner { max-width: var(--max); height: 100%; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.round-control { width: 44px; height: 44px; border: 1px solid rgba(15,91,104,.16); border-radius: 50%; background: rgba(255,255,255,.82); display: inline-grid; place-items: center; cursor: pointer; font-size: 22px; transition: .2s ease; }
.round-control:hover { transform: translateY(-1px); background: #fff; box-shadow: 0 8px 18px rgba(14,58,70,.08); }
.brand-lockup { justify-self: center; min-width: 120px; min-height: 44px; display: flex; align-items: center; justify-content: center; }
.brand-logo { max-height: 34px; width: auto; }
.brand-text { font-weight: 800; letter-spacing: .08em; color: var(--title); }
.harbor-actions { justify-self: end; display: flex; gap: 10px; align-items: center; }
.app-mini-link { min-height: 44px; padding: 0 18px; display: inline-flex; align-items: center; border-radius: 999px; color: #fff; font-weight: 700; background: linear-gradient(135deg,#2BB3C4 0%,#1A7F8F 55%,#0F5B68 100%); }
.dock-nav { height: var(--dock-h); background: rgba(255,255,255,.98); border-bottom: 1px solid var(--line); }
.dock-inner { max-width: 860px; height: 100%; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: repeat(6, 1fr); align-items: stretch; }
.dock-inner a { position: relative; display: flex; align-items: center; justify-content: center; min-height: 44px; color: var(--muted); font-size: 15px; }
.dock-inner a:hover, .dock-inner a.is-current { color: var(--sea); }
.dock-inner a.is-current::after { content: ""; position: absolute; left: 26%; right: 26%; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--sea); }
.site-main { min-height: 60vh; padding-top: calc(var(--harbor-h) + var(--dock-h)); }
.page-shell { max-width: var(--max); margin: 0 auto; padding: 44px 20px 72px; }
.page-hero { display: grid; gap: 22px; margin-bottom: 30px; }
.eyebrow { margin: 0; color: var(--sea); font-size: 14px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3 { color: var(--title); line-height: 1.3; }
h1 { margin: 6px 0 0; font-size: clamp(28px, 4vw, 32px); letter-spacing: -.02em; }
h2 { margin: 0 0 12px; font-size: 22px; }
h3 { margin: 0 0 8px; font-size: 18px; }
p { margin: 0 0 1em; }
.lead { max-width: 860px; margin: 0; font-size: 17px; color: var(--muted); }
.hero-media, .image-slot { overflow: hidden; border-radius: 20px; background: linear-gradient(135deg, var(--pale), var(--soft)); border: 1px solid var(--line); }
.hero-media { max-height: 340px; min-height: 180px; }
.hero-media img { width: 100%; height: 100%; max-height: 340px; object-fit: cover; }
.section { margin-top: 28px; padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.section.soft { background: var(--soft); box-shadow: none; }
.section-head { display: flex; gap: 18px; align-items: end; justify-content: space-between; margin-bottom: 18px; }
.section-head p { margin: 0; color: var(--muted); max-width: 650px; }
.card-grid { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 20px; min-width: 0; }
.card.soft { background: var(--soft); }
.card p:last-child { margin-bottom: 0; }
.card-link { transition: transform .2s ease, box-shadow .2s ease; }
.card-link:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.thumb { aspect-ratio: 16 / 9; overflow: hidden; border-radius: 14px; margin-bottom: 16px; background: linear-gradient(135deg, var(--pale), #eef8fa); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.pill { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 999px; background: var(--pale); color: var(--deep); font-size: 13px; font-weight: 800; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.btn { min-height: 44px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; font-weight: 800; border: 1px solid transparent; }
.btn.primary { color: #fff; background: linear-gradient(135deg,#2BB3C4 0%,#1A7F8F 55%,#0F5B68 100%); }
.btn.secondary { color: var(--deep); background: #fff; border-color: rgba(15,91,104,.22); }
.btn:hover { transform: translateY(-1px); }
.tide-list, .index-list, .steps, .note-list { display: grid; gap: 14px; }
.tide-item, .index-item, .step-item, .note-item { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 18px; border-radius: 15px; border: 1px solid var(--line); background: #fff; }
.tide-no, .index-no, .step-no { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--pale); color: var(--deep); font-weight: 900; }
.prose { max-width: 860px; }
.prose p { margin-bottom: 1.1em; }
.prose ul { padding-left: 1.25em; }
.quote-note { padding: 18px 20px; border-left: 4px solid var(--sea); background: var(--soft); border-radius: 0 14px 14px 0; color: var(--deep); }
.app-showcase { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr); gap: 26px; align-items: center; }
.app-icon { width: 72px; height: 72px; border-radius: 18px; overflow: hidden; background: var(--pale); border: 1px solid var(--line); display: grid; place-items: center; }
.app-icon img { width: 100%; height: 100%; object-fit: cover; }
.faq-list { display: grid; gap: 14px; }
.faq-item { padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.faq-item h2 { font-size: 18px; }
.legal-section { padding: 24px 0; border-top: 1px solid var(--line); }
.legal-section:first-child { border-top: 0; padding-top: 0; }
.mini-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; color: var(--faint); font-size: 14px; }
.site-footer { background: var(--title); color: #D4E8EC; }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 48px 20px 34px; }
.footer-brand { display: grid; grid-template-columns: auto 1fr; gap: 14px 18px; align-items: center; max-width: 650px; }
.footer-brand p { grid-column: 1 / -1; color: #AFCFD5; }
.footer-brand-link { width: 70px; min-height: 44px; display: flex; align-items: center; }
.footer-logo { max-height: 34px; width: auto; filter: brightness(0) invert(1); }
.footer-brand strong { color: #fff; display: block; }
.footer-brand span { display: block; color: #9FC5CC; font-size: 12px; letter-spacing: .18em; }
.footer-grid { margin-top: 34px; 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; padding: 5px 0; color: #C8E0E5; font-size: 14px; }
.footer-grid a:hover { color: #fff; }
.footer-note { margin-top: 30px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); color: #AFCFD5; font-size: 14px; }
.copyright { margin: 8px 0 0; color: #8FB6BE; font-size: 13px; }
.layer-backdrop { position: fixed; inset: 0; z-index: 1200; background: rgba(5,35,42,.52); opacity: 0; visibility: hidden; pointer-events: none; transition: .2s ease; }
.layer-backdrop.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.modal-layer { position: fixed; z-index: 1300; left: 50%; top: 50%; transform: translate(-50%, -48%) scale(.98); width: min(760px, 92vw); max-height: min(82vh, 760px); overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 24px 80px rgba(5,35,42,.25); padding: 22px; opacity: 0; visibility: hidden; pointer-events: none; transition: .2s ease; }
.modal-layer.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.modal-head strong { display: block; color: var(--title); }
.modal-head span { color: var(--faint); font-size: 13px; }
.modal-close { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--soft); color: var(--deep); cursor: pointer; font-size: 26px; line-height: 1; }
.menu-brand { display: flex; align-items: center; gap: 12px; }
.menu-brand img { max-width: 100px; max-height: 32px; }
.sea-menu-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; padding-top: 18px; }
.sea-group h2 { font-size: 15px; color: var(--sea); margin-bottom: 9px; }
.sea-group a { display: block; padding: 10px 12px; border-radius: 12px; }
.sea-group a:hover { background: var(--soft); }
.sea-group strong { display: block; color: var(--title); font-size: 15px; }
.sea-group span { display: block; color: var(--muted); font-size: 13px; line-height: 1.55; }
.search-layer { width: min(620px, 92vw); }
.search-box { padding: 18px 0 10px; }
.search-box label { display: block; color: var(--title); font-weight: 800; margin-bottom: 9px; }
.search-box input { width: 100%; min-height: 48px; border: 1px solid rgba(15,91,104,.24); border-radius: 14px; padding: 0 15px; color: var(--title); background: var(--mist); }
.search-presets { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; padding-top: 10px; }
.search-presets a { min-height: 70px; padding: 13px 14px; border-radius: 14px; border: 1px solid var(--line); background: #fff; color: var(--title); font-weight: 800; }
.search-presets a span { display: block; color: var(--muted); font-size: 13px; font-weight: 500; }
.search-empty { color: var(--muted); padding: 16px 0 0; }
.mobile-bottom-nav { display: none; }
.home-cover { padding-top: 34px; }
.cover-card { display: grid; gap: 24px; }
.cover-copy { max-width: 850px; }
.home-section { margin-top: 34px; }
.story-strip { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.story-strip .thumb { margin-bottom: 10px; }
.story-strip p { font-size: 14px; color: var(--muted); }
.no-image-slot { min-height: 170px; display: grid; place-items: center; color: var(--muted); background: linear-gradient(135deg, var(--pale), #eef8fa); border-radius: 16px; border: 1px solid var(--line); }
@media (max-width: 900px) {
    .card-grid.four { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .card-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .story-strip { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .app-showcase { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    :root { --dock-h: 0px; }
    .dock-nav { display: none; }
    .harbor-inner { padding: 0 16px; grid-template-columns: 44px minmax(0,1fr) auto; gap: 8px; }
    .search-trigger { display: none; }
    .brand-lockup { min-width: 0; }
    .brand-logo { max-width: 146px; }
    .app-mini-link { padding: 0 13px; font-size: 14px; }
    .site-main { padding-top: var(--harbor-h); }
    .page-shell { padding: 30px 16px calc(76px + env(safe-area-inset-bottom)); }
    .section { padding: 20px; }
    .section-head { display: block; }
    .card-grid, .card-grid.two, .card-grid.four { grid-template-columns: 1fr; }
    .story-strip { grid-template-columns: 1fr; }
    .sea-menu-grid { grid-template-columns: 1fr; }
    .modal-layer { padding: 18px; max-height: 82vh; }
    .search-presets { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .footer-inner { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
    .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); background: rgba(255,255,255,.97); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr); box-shadow: 0 -8px 22px 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; color: var(--faint); font-size: 11px; line-height: 1.2; }
    .mobile-bottom-nav a span { font-size: 18px; line-height: 1; margin-bottom: 3px; }
    .mobile-bottom-nav a.is-current { color: var(--sea); font-weight: 800; }
    .layer-backdrop { z-index: 1500; }
    .modal-layer { z-index: 1600; }
    .tide-item, .index-item, .step-item, .note-item { grid-template-columns: 38px 1fr; padding: 15px; gap: 12px; }
    .tide-no, .index-no, .step-no { width: 38px; height: 38px; }
}
@media (max-width: 420px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 18px 12px; }
    .footer-brand { grid-template-columns: 1fr; }
    .footer-brand p { grid-column: auto; }
    .harbor-actions { gap: 6px; }
    .app-mini-link { padding: 0 11px; }
}
