/* Template 7 — Lumen (Apple product-page light tech) */
:root {
    --harbor-canvas: #f2f6fa;
    --harbor-surface: #ffffff;
    --harbor-ink: #15202b;
    --harbor-muted: #5b6b7a;
    --harbor-line: rgba(0, 0, 0, 0.08);
    --harbor-blue: #0a84ff;
    --harbor-blue-soft: #e8f3ff;
    --harbor-blue-rgb: 10, 132, 255;
    --harbor-radius: 22px;
    --harbor-radius-sm: 14px;
    --harbor-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    --harbor-shell: 1060px;
    --harbor-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--harbor-font);
    color: var(--harbor-ink);
    background: var(--harbor-canvas);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul, li { list-style: none; margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

.harbor-glow {
    position: fixed;
    inset: 0 0 auto 0;
    height: 220px;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 60% at 20% 0%, rgba(0, 113, 227, 0.14), transparent 60%),
        radial-gradient(ellipse 70% 50% at 80% 10%, rgba(94, 92, 230, 0.10), transparent 55%),
        linear-gradient(180deg, #eef3f9 0%, var(--harbor-canvas) 100%);
}

/* Masthead */
.harbor-chrome {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(245, 245, 247, 0.86);
    border-bottom: 1px solid var(--harbor-line);
}

.harbor-chrome-inner {
    max-width: var(--harbor-shell);
    margin: 0 auto;
    min-height: 52px;
    padding: 0 22px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.harbor-logo {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.02em;
    flex: 0 1 auto;
    min-width: 0;
}

.harbor-logo a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.harbor-logo-mark {
    width: 28px;
    height: 28px;
    border-radius: 7px;
}

.harbor-logo-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.harbor-findbox {
    display: flex;
    align-items: center;
    flex: 1 1 280px;
    max-width: 360px;
    height: 36px;
    margin-left: auto;
    padding: 0 4px 0 14px;
    border-radius: 980px;
    background: var(--harbor-surface);
    border: 1px solid var(--harbor-line);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.harbor-find-input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 14px;
    color: var(--harbor-ink);
}

.harbor-find-input::placeholder { color: var(--harbor-muted); }

.harbor-find-submit {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--harbor-blue);
}

.harbor-chrome-tools {
    display: none;
    align-items: center;
    gap: 4px;
}

.harbor-find-toggle,
.harbor-burger {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    color: var(--harbor-ink);
}

.harbor-menubar { flex: 0 0 auto; }

.harbor-menulist {
    display: flex;
    align-items: center;
    gap: 2px;
}

.harbor-menulist a {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 10px;
    border-radius: 980px;
    font-size: 12px;
    font-weight: 600;
    color: var(--harbor-muted);
    letter-spacing: -0.01em;
}

.harbor-menulist a:hover,
.harbor-menulist a.active {
    color: var(--harbor-blue);
    background: var(--harbor-blue-soft);
}

/* Drawer (mobile) */
.harbor-slide-mask,
.harbor-slide-head,
.harbor-slide-close,
.harbor-slide-label,
.harbor-slide-cats,
.harbor-slide-pages {
    display: none;
}

.harbor-slide {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1200;
    width: min(80vw, 300px);
    height: 100%;
    background: var(--harbor-surface);
    border-left: 1px solid var(--harbor-line);
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.12);
    transform: translateX(105%);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    overflow-y: auto;
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
}

body.harbor-slide-open .harbor-slide { transform: translateX(0); }

.harbor-slide-head {
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--harbor-line);
}

.harbor-slide-title {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.harbor-slide-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    background: var(--harbor-canvas);
}

.harbor-slide-label {
    margin: 16px 18px 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--harbor-muted);
}

.harbor-slide-cats,
.harbor-slide-pages {
    gap: 6px;
    padding: 10px 14px 14px;
}

.harbor-slide-cats a,
.harbor-slide-pages a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 0 14px;
    border-radius: var(--harbor-radius-sm);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
    background: var(--harbor-canvas);
}

.harbor-slide-cats a:hover,
.harbor-slide-pages a:hover,
.harbor-slide-pages a.active {
    background: var(--harbor-blue-soft);
    color: var(--harbor-blue);
}

.harbor-slide-cats .fa,
.harbor-slide-pages .fa {
    width: 1.1em;
    text-align: center;
    color: var(--harbor-blue);
}

/* Shell */
.harbor-frame {
    position: relative;
    z-index: 1;
    max-width: var(--harbor-shell);
    margin: 0 auto;
    padding: 18px 22px 48px;
}

/* Hero removed — banners lead the page */

/* Chip rail */
.harbor-pillrail {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 2px 12px;
    margin-bottom: 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.harbor-pillrail::-webkit-scrollbar { display: none; }

.harbor-pill {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 14px;
    border-radius: 980px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--harbor-ink);
    background: var(--harbor-surface);
    border: 1px solid var(--harbor-line);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.harbor-pill:hover {
    border-color: rgba(var(--harbor-blue-rgb), 0.35);
    color: var(--harbor-blue);
    background: var(--harbor-blue-soft);
}

/* Banners — natural aspect, 2-col PC / 1-col mobile */
.harbor-spotlight {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 0 0 18px;
}

.harbor-promo {
    margin: 0;
    border-radius: var(--harbor-radius);
    overflow: hidden;
    background: var(--harbor-surface);
    border: 1px solid var(--harbor-line);
    box-shadow: var(--harbor-shadow);
}

.harbor-promo a {
    display: block;
    line-height: 0;
}

.harbor-promo img {
    width: 100%;
    height: auto;
    display: block;
}

/* Panels / boards */
.harbor-module,
.harbor-sectionbox {
    margin-bottom: 18px;
    background: var(--harbor-surface);
    border: 1px solid var(--harbor-line);
    border-radius: var(--harbor-radius);
    box-shadow: var(--harbor-shadow);
    overflow: hidden;
}

.harbor-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px 12px;
}

.harbor-panel-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.03em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.harbor-panel-title .fa { color: var(--harbor-blue); font-size: 0.9em; }

.harbor-morelink {
    font-size: 13px;
    font-weight: 600;
    color: var(--harbor-blue);
}

.harbor-morelink:hover { text-decoration: underline; }

/* APP icon tray — squircle */
.harbor-tiletray {
    display: grid;
    grid-template-columns: repeat(11, minmax(0, 1fr));
    gap: 10px 8px;
    padding: 4px 16px 20px;
}

.harbor-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 0;
    text-align: center;
}

.harbor-tile-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    object-fit: cover;
    background: var(--harbor-canvas);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease;
}

.harbor-tile:hover .harbor-tile-icon { transform: scale(1.04); }

.harbor-tile-name {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--harbor-muted);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.harbor-tile:hover .harbor-tile-name { color: var(--harbor-blue); }

/* Link cells — hairline via inset shadow; empty trailing cells match surface */
.harbor-gridrow {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0;
    background: var(--harbor-surface);
    border-top: 1px solid var(--harbor-line);
}

.harbor-gridcell {
    min-height: 48px;
    margin: 0;
    background: var(--harbor-surface);
    box-shadow: inset -1px 0 0 var(--harbor-line), inset 0 -1px 0 var(--harbor-line);
}

.harbor-gridcell a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 48px;
    padding: 0 12px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: #333336;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.harbor-gridcell a:hover {
    background: var(--harbor-blue-soft);
    color: var(--harbor-blue) !important;
}

/* Footer */
.harbor-footing {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--harbor-line);
    background: #ececef;
    padding: 28px 22px 36px;
}

.harbor-footing-inner {
    max-width: var(--harbor-shell);
    margin: 0 auto;
    text-align: center;
}

.harbor-footing-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 0;
    margin-bottom: 14px;
}

.harbor-footing-links a {
    font-size: 12px;
    font-weight: 600;
    color: var(--harbor-muted);
    padding: 0 10px;
    border-right: 1px solid rgba(0, 0, 0, 0.12);
}

.harbor-footing-links a:last-child { border-right: 0; }
.harbor-footing-links a:hover { color: var(--harbor-blue); }

.harbor-footing-contacts {
    margin: 0 0 10px;
    font-size: 13px;
    color: var(--harbor-muted);
}

.harbor-reach { margin: 0 10px; }
.harbor-reach a { color: var(--harbor-blue); font-weight: 600; }
.harbor-reach .fa { margin-right: 4px; }

.harbor-footing-copy {
    margin: 0 0 8px;
    font-size: 12px;
    color: var(--harbor-muted);
}

.harbor-footing-copy a { font-weight: 600; color: var(--harbor-ink); }

.harbor-caution {
    margin: 0;
    font-size: 11px;
    color: #86868b;
    line-height: 1.55;
}

.harbor-caution .fa { color: #ff9f0a; margin-right: 4px; }

/* Subpages */
body.harbor-is-inner .harbor-pillrail { display: none; }

.harbor-page-wrap {
    position: relative;
    z-index: 1;
    max-width: var(--harbor-shell);
    margin: 0 auto;
    padding: 28px 22px 48px;
}

.harbor-page-panel {
    background: var(--harbor-surface);
    border: 1px solid var(--harbor-line);
    border-radius: var(--harbor-radius);
    box-shadow: var(--harbor-shadow);
    padding: 28px 32px 32px;
}

.harbor-page-panel h2 {
    margin: 0 0 20px;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.harbor-page-panel h2 .fa { color: var(--harbor-blue); }

.harbor-page-body { color: var(--harbor-ink); }

.harbor-prose-block { margin-bottom: 28px; }

.harbor-prose-block h3 {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.harbor-prose-block p {
    margin: 0 0 10px;
    color: var(--harbor-muted);
    font-size: 15px;
    line-height: 1.65;
}

.harbor-merit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.harbor-merit-grid li {
    padding: 16px;
    border-radius: var(--harbor-radius-sm);
    background: var(--harbor-canvas);
    border: 1px solid var(--harbor-line);
}

.harbor-merit-grid strong {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    letter-spacing: -0.01em;
}

.harbor-merit-grid span {
    font-size: 13px;
    color: var(--harbor-muted);
    line-height: 1.5;
}

.harbor-prose-list { padding-left: 18px; list-style: decimal; }
.harbor-prose-list li {
    list-style: decimal;
    margin: 8px 0;
    font-size: 14px;
    color: var(--harbor-muted);
    line-height: 1.6;
}

.harbor-guideline-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 10px 0;
    font-size: 14px;
    color: var(--harbor-muted);
    line-height: 1.55;
}

.harbor-guideline-list .fa {
    margin-top: 3px;
    color: var(--harbor-blue);
}

.harbor-reach-card {
    padding: 16px 18px;
    border-radius: var(--harbor-radius-sm);
    background: var(--harbor-blue-soft);
    border: 1px solid rgba(var(--harbor-blue-rgb), 0.18);
}

.harbor-reach-card p { margin: 8px 0; color: var(--harbor-ink); }
.harbor-reach-card a { color: var(--harbor-blue); font-weight: 600; }

.harbor-page-note {
    margin-top: 12px;
    font-size: 13px;
    color: var(--harbor-muted);
}

.harbor-codecap {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    background: var(--harbor-surface);
    color: var(--harbor-blue);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px;
    font-weight: 600;
}

.lumen-dns-list,
.harbor-help-item { margin: 10px 0; }

.harbor-help-item strong {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
}

.harbor-help-item p {
    margin: 0;
    font-size: 14px;
    color: var(--harbor-muted);
}

.harbor-find-row {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
}

.harbor-find-row input {
    flex: 1;
    height: 44px;
    padding: 0 16px;
    border-radius: 980px;
    border: 1px solid var(--harbor-line);
    background: var(--harbor-canvas);
    font-size: 15px;
    outline: 0;
}

.harbor-find-row input:focus {
    border-color: rgba(var(--harbor-blue-rgb), 0.45);
    box-shadow: 0 0 0 4px rgba(var(--harbor-blue-rgb), 0.12);
}

.harbor-find-row button {
    height: 44px;
    padding: 0 22px;
    border-radius: 980px;
    background: var(--harbor-blue);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
}

.harbor-find-row button:hover { filter: brightness(1.06); }

.harbor-hits-title {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.harbor-hits-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.harbor-hit-item {
    border: 1px solid var(--harbor-line);
    border-radius: var(--harbor-radius-sm);
    background: var(--harbor-canvas);
    overflow: hidden;
}

.harbor-hit-link {
    display: block;
    padding: 16px;
}

.harbor-hit-name {
    display: block;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

.harbor-hit-desc {
    display: block;
    font-size: 13px;
    color: var(--harbor-muted);
    line-height: 1.5;
}

.harbor-hit-item:hover {
    border-color: rgba(var(--harbor-blue-rgb), 0.3);
    background: var(--harbor-blue-soft);
}

.harbor-find-empty {
    grid-column: 1 / -1;
    padding: 28px;
    text-align: center;
    color: var(--harbor-muted);
    border: 1px dashed rgba(var(--harbor-blue-rgb), 0.28);
    border-radius: var(--harbor-radius-sm);
    background: rgba(var(--harbor-blue-rgb), 0.04);
}

.harbor-find-empty .fa { margin-right: 6px; color: var(--harbor-blue); }

/* Responsive */
@media (max-width: 1024px) {
    .harbor-tiletray { grid-template-columns: repeat(8, minmax(0, 1fr)); }
    .harbor-gridrow { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
    body.harbor-slide-open { overflow: hidden; }

    .harbor-chrome-inner {
        min-height: 52px;
        padding: 8px 14px;
        flex-wrap: wrap;
    }

    .harbor-chrome-tools { display: inline-flex; }
    .harbor-find-toggle,
    .harbor-burger { display: inline-flex; }

    body.harbor-find-open .harbor-find-toggle {
        background: var(--harbor-blue-soft);
        color: var(--harbor-blue);
    }

    .harbor-menubar { display: none; }

    .harbor-logo { flex: 1 1 auto; }
    .harbor-logo-text { max-width: none; }

    .harbor-findbox {
        display: none;
        order: 3;
        flex: 1 1 100%;
        max-width: none;
        height: 40px;
        margin: 4px 0 0;
    }

    body.harbor-find-open .harbor-findbox { display: flex; }
    .harbor-find-input { font-size: 16px; }

    .harbor-slide-mask {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1190;
        background: rgba(0, 0, 0, 0.4);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.22s ease;
    }

    body.harbor-slide-open .harbor-slide-mask {
        opacity: 1;
        pointer-events: auto;
    }

    .harbor-slide-head,
    .harbor-slide-close,
    .harbor-slide-pages { display: flex; }
    .harbor-slide-pages { flex-direction: column; }
    .harbor-slide-label { display: block; }
    .harbor-slide-cats {
        display: flex;
        flex-direction: column;
    }

    .harbor-frame,
    .harbor-page-wrap { padding: 16px 14px 32px; }

    .harbor-spotlight {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 14px;
    }

    .harbor-promo { border-radius: var(--harbor-radius-sm); }

    .harbor-tiletray {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 10px 6px;
        padding: 4px 12px 16px;
    }

    .harbor-tile-icon { width: 52px; height: 52px; border-radius: 13px; }

    .harbor-gridrow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .harbor-gridcell a { font-size: 12px; padding: 0 6px; min-height: 44px; }

    .harbor-page-panel { padding: 20px 16px 24px; }
    .harbor-page-panel h2 { font-size: 20px; }
    .harbor-merit-grid { grid-template-columns: 1fr; }
    .harbor-find-row { flex-direction: column; }
    .harbor-find-row button { width: 100%; }
    .harbor-hits-grid { grid-template-columns: 1fr; }

    .harbor-footing-links a { font-size: 11px; padding: 0 8px; }
}

@media (max-width: 480px) {
    .harbor-tiletray { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .harbor-tile-icon { width: 48px; height: 48px; border-radius: 12px; }
    .harbor-tile-name { font-size: 10px; }
    .harbor-gridrow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Theme geometry fingerprint (7_2) */
:root {
    --harbor-blue: #0a84ff !important;
    --harbor-blue-soft: #e8f3ff !important;
    --harbor-blue-rgb: 10, 132, 255 !important;
    --harbor-canvas: #f2f6fa !important;
    --harbor-radius: 22px !important;
    --harbor-radius-sm: 14px !important;
    --harbor-shell: 1060px !important;
}
.harbor-frame,
.harbor-page-wrap,
.harbor-footing-inner,
.harbor-chrome-inner {
    max-width: 1060px !important;
}
.harbor-module,
.harbor-sectionbox,
.harbor-page-panel,
.harbor-promo {
    border-radius: 22px !important;
}
.harbor-gridrow {
    gap: 0 !important;
    background: var(--harbor-surface) !important;
}
.harbor-gridcell {
    border: 0 !important;
    background: var(--harbor-surface) !important;
    box-shadow: inset -1px 0 0 var(--harbor-line), inset 0 -1px 0 var(--harbor-line) !important;
}
@media (min-width: 769px) {
    .harbor-tiletray {
        grid-template-columns: repeat(11, minmax(0, 1fr)) !important;
    }
    .harbor-gridrow {
        grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
    }
}
@media (max-width: 768px) {
    .harbor-slide-cats {
        display: flex !important;
        flex-direction: column !important;
    }
    .harbor-slide-label {
        display: block !important;
    }
    .harbor-tiletray {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    }
    .harbor-gridrow {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}
@media (max-width: 480px) {
    .harbor-gridrow {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}
