:root {
    color-scheme: light;
    --h-bg: #f3f8fd;
    --h-card: #ffffff;
    --h-ink: #172e43;
    --h-muted: #71849a;
    --h-line: #dce6f0;
    --h-accent: #3979f6;
    --h-soft: #eef4ff;
    --h-shadow: 0 14px 46px rgba(48, 79, 112, .035);
    --uc-bg: var(--h-bg);
    --uc-ink: var(--h-ink);
    --uc-ink-sub: var(--h-muted);
    --uc-primary: var(--h-accent);
    --md-primary: #3979f6;
    --md-primary-rgb: 57, 121, 246;
    --uc-surface: var(--h-card);
    --uc-border: var(--h-line);
}
html[data-theme="dark"] {
    color-scheme: dark;
    --h-bg: #101a27;
    --h-card: #172435;
    --h-ink: #e8f0fa;
    --h-muted: #a0b2c9;
    --h-line: #304157;
    --h-accent: #8db5ff;
    --h-soft: #203653;
    --h-shadow: 0 14px 46px rgba(0, 0, 0, .1);
}
html { scroll-behavior: smooth; }
html.harbor-theme[data-theme], html.harbor-theme[data-theme] body.uc-body { overflow-x: visible !important; }
html.harbor-theme body::before { display: none !important; }
body, body.uc-body { background: var(--h-bg) !important; color: var(--h-ink); font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 14px; -webkit-font-smoothing: antialiased; }
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
a { color: var(--h-accent); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--h-accent); outline-offset: 4px; }
.harbor-header { padding: 28px 0; }
.harbor-nav { max-width: 1240px; margin: auto; padding: 0 32px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.harbor-brand { display: flex; gap: 11px; align-items: center; color: var(--h-ink); font-size: 18px; font-weight: 750; text-decoration: none; min-width: 0; }
.harbor-brand img { border-radius: 11px; object-fit: contain; flex-shrink: 0; }
.harbor-brand span { overflow-wrap: anywhere; }
.harbor-nav-actions { display: flex; align-items: center; gap: 24px; flex-shrink: 0; font-size: 12px; }
.harbor-nav-actions a { text-decoration: none; color: var(--h-ink); }
.harbor-icon { background: transparent; border: 0; color: var(--h-ink); cursor: pointer; width: 36px; height: 36px; font-size: 22px; border-radius: 50%; }
.harbor-nav-login { border: 1px solid var(--h-line); background: var(--h-card); padding: 10px 15px; border-radius: 9px; }
.harbor-shell { max-width: 1240px; padding: 0 32px; margin: auto; }
.harbor-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; min-height: 300px; padding: 40px 0 44px; }
.harbor-eyebrow { color: var(--h-muted); letter-spacing: 2px; font-size: 10px; font-weight: 600; display: flex; gap: 10px; align-items: center; }
.harbor-eyebrow > span { width: 24px; height: 1px; background: var(--h-muted); }
.harbor-hero h1 { font-size: clamp(34px, 4.2vw, 55px); font-weight: 750; letter-spacing: -2px; line-height: 1.2; margin: 20px 0 16px; color: var(--h-ink); }
.harbor-hero h1 > span { color: var(--h-accent); }
.harbor-hero p { color: var(--h-muted); line-height: 1.9; font-size: 12px; margin: 0; }
.harbor-art { position: relative; min-height: 238px; min-width: 0; display: flex; justify-content: center; align-items: center; isolation: isolate; overflow: clip visible; }
.harbor-orbit { width: 224px; height: 224px; border-radius: 50%; border: 1px solid var(--h-line); position: absolute; transform: rotate(-25deg) scaleX(1.4); z-index: -1; }
.harbor-art-card { width: 170px; height: 213px; transform: rotate(10deg); background: #dceaff; border: 1px solid #b6d0ff; border-radius: 17px; padding: 23px; color: #24569c; box-shadow: 15px 22px 0 #e6effb; display: flex; flex-direction: column; justify-content: space-between; }
.harbor-art-card > span { font-size: 15px; line-height: 1.35; letter-spacing: -.3px; font-weight: 700; }
.harbor-art-chip { font-size: 46px; color: #3979f6; align-self: flex-end; line-height: 1; }
.harbor-art-card small { font-size: 8px; letter-spacing: 2px; }
.harbor-art-mini { position: absolute; bottom: 5px; left: 50%; transform: translateX(-64%) rotate(-5deg); white-space: nowrap; padding: 14px 22px; border: 1px solid var(--h-line); background: var(--h-card); border-radius: 10px; font-size: 11px; box-shadow: var(--h-shadow); }
.harbor-category-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 4px 0 20px; }
.harbor-categories { display: flex; gap: 8px; flex-wrap: wrap; min-width: 0; }
.harbor-categories button, .harbor-notice-button { display: inline-flex; align-items: center; gap: 7px; background: transparent; border: 1px solid transparent; border-radius: 9px; padding: 10px 15px; color: var(--h-muted); cursor: pointer; font-size: 12px; }
.harbor-categories .is-active { border-color: var(--h-line); background: var(--h-card); color: var(--h-ink); box-shadow: var(--h-shadow); }
.harbor-categories img { border-radius: 5px; object-fit: contain; }
.harbor-notice-button { white-space: nowrap; color: var(--h-accent); padding-right: 0; }
.harbor-purchase { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); background: var(--h-card); border: 1px solid var(--h-line); border-radius: 20px; padding: 30px; box-shadow: var(--h-shadow); }
.harbor-catalog { border-right: 1px solid var(--h-line); padding-right: 30px; min-width: 0; }
.harbor-checkout { padding-left: 30px; min-width: 0; }
.harbor-section-title { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.harbor-section-title h2 { font-size: 15px; margin: 0; font-weight: 700; color: var(--h-ink); }
.harbor-section-title > span { font-size: 10px; color: var(--h-muted); white-space: nowrap; }
.harbor-search { display: flex; align-items: center; gap: 9px; border-bottom: 1px solid var(--h-line); margin: 18px 0 16px; padding-bottom: 12px; color: var(--h-muted); }
.harbor-search input { width: 100%; min-width: 0; border: 0; background: transparent; outline: none; font-size: 12px; color: var(--h-ink); padding: 2px; }
.harbor-search input::placeholder { color: var(--h-muted); }
.harbor-products { display: grid; gap: 10px; }
.harbor-products[aria-busy="true"] { opacity: .5; pointer-events: none; }
.harbor-product { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 9px; width: 100%; text-align: left; padding: 20px 42px 18px 20px; border-radius: 12px; background: var(--h-card); border: 1px solid var(--h-line); color: var(--h-ink); cursor: pointer; transition: background .16s, border-color .16s; }
.harbor-product:hover { border-color: var(--h-accent); }
.harbor-product.is-selected { border-color: var(--h-accent); background: var(--h-soft); box-shadow: inset 0 0 0 1px var(--h-accent); }
.harbor-product-price { font-size: 24px; letter-spacing: -.8px; font-weight: 600; line-height: 1.1; }
.harbor-product-name { font-size: 13px; font-weight: 600; line-height: 1.6; overflow-wrap: anywhere; }
.harbor-product-stock { color: var(--h-muted); font-size: 11px; }
.harbor-product-check { position: absolute; right: 18px; top: 21px; width: 18px; height: 18px; border: 1px solid var(--h-line); border-radius: 6px; font-size: 12px; color: transparent; display: grid; place-items: center; }
.is-selected .harbor-product-check { color: var(--h-card); background: var(--h-accent); border-color: var(--h-accent); }
.harbor-live { display: flex; align-items: center; gap: 5px; }
.harbor-live i { background: #419d82; width: 5px; height: 5px; border-radius: 50%; }
.harbor-checkout-caption { color: var(--h-muted); font-size: 11px; margin: 10px 0 18px; }
.harbor-shortcuts { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; padding-bottom: 18px; }
.harbor-shortcuts > * { text-decoration: none; background: var(--h-soft); color: var(--h-accent); border: 1px solid var(--h-line); font-size: 11px; border-radius: 8px; padding: 9px 13px; cursor: pointer; }
.harbor-checkout-status, .harbor-empty { color: var(--h-muted); padding: 38px 12px; text-align: center; font-size: 12px; line-height: 1.8; }
.harbor-item-frame { width: 100%; border: 0; display: block; height: 600px; background: var(--h-card); }
.harbor-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; padding: 24px 0 36px; color: var(--h-muted); font-size: 10px; }
.harbor-footer a { text-decoration: none; color: var(--h-muted); }
.harbor-retry { color: var(--h-accent); background: var(--h-soft); border: 1px solid var(--h-line); border-radius: 8px; padding: 10px 20px; cursor: pointer; }
.harbor-notice { width: min(600px, calc(100% - 32px)); max-height: min(760px, calc(100dvh - 48px)); color: var(--h-ink); background: var(--h-card); padding: 0; border: 1px solid var(--h-line); border-radius: 18px; overflow: hidden; }
.harbor-notice[open] { display: flex; flex-direction: column; }
.harbor-notice::backdrop { background: rgba(15, 32, 55, .38); backdrop-filter: blur(6px); }
.harbor-notice-head { padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--h-line); gap: 12px; }
.harbor-notice h2 { font-size: 21px; margin: 8px 0 0; color: var(--h-ink); }
.harbor-notice-head > button { width: 34px; height: 34px; border-radius: 9px; color: var(--h-muted); background: var(--h-bg); border: 1px solid var(--h-line); font-size: 22px; cursor: pointer; flex-shrink: 0; }
.harbor-notice-content { padding: 24px; overflow-y: auto; line-height: 1.9; min-height: 80px; overflow-wrap: anywhere; }
.harbor-notice-content img, .item-detail img { max-width: 100%; height: auto; }
.harbor-notice-foot { padding: 16px 24px; border-top: 1px solid var(--h-line); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-shrink: 0; }
.harbor-notice-foot small { color: var(--h-muted); font-size: 10px; }
.harbor-notice-foot button { color: #fff; background: #3979f6; border: 0; padding: 11px 18px; border-radius: 8px; font-size: 12px; cursor: pointer; flex-shrink: 0; }
.harbor-embedded body { margin: 0 !important; background: var(--h-card) !important; min-height: 0 !important; padding: 0 !important; }
.harbor-embedded .harbor-header, .harbor-embedded footer, .harbor-embedded .item-panel .col-lg-6:first-child { display: none !important; }
.harbor-embedded main.container { max-width: none; padding: 0 !important; margin: 0 !important; width: 100%; }
.harbor-embedded .item-panel { margin: 0 !important; border: 0 !important; box-shadow: none !important; background: transparent !important; }
.harbor-embedded .panel-body { padding: 0 !important; }
.harbor-embedded .item-panel .row { margin: 0; display: block; }
.harbor-embedded .item-panel .col-lg-6:last-child { width: 100%; padding: 0; margin: 0; }
.harbor-embedded .item-buy { min-width: 0; width: 100%; }
.harbor-embedded .item-buy h4 { font-size: 15px; line-height: 1.7; color: var(--h-ink); overflow-wrap: anywhere; }
.harbor-embedded .item-detail { margin-top: 28px !important; background: transparent; border: 0; border-top: 1px solid var(--h-line); border-radius: 0; padding-top: 16px; box-shadow: none; }
.harbor-embedded .item-detail .panel-header { padding: 0 0 12px; background: transparent; border: 0; }
.harbor-embedded .item-detail .panel-title { font-size: 13px; }
.harbor-embedded .item-detail .panel-body { font-size: 12px; line-height: 1.9; overflow-wrap: anywhere; }
.harbor-embedded .form-label { font-size: 12px; color: var(--h-ink); }
.harbor-embedded .abacus .price { color: var(--h-ink) !important; }
.harbor-embedded .form-control { border: 1px solid var(--h-line) !important; padding: 10px 12px; min-height: 42px; background: var(--h-card) !important; color: var(--h-ink) !important; }
.harbor-embedded .qty-group { max-width: 160px; }
.harbor-embedded .qty-group button { min-width: 34px; min-height: 42px; background: var(--h-soft); color: var(--h-ink); border: 1px solid var(--h-line); }
.harbor-embedded .captcha-group { width: 100% !important; }
.harbor-embedded .captcha-group input { min-width: 0; }
.harbor-embedded .captcha-img { max-width: 100px; cursor: pointer; }
.harbor-embedded .pay-list { display: flex; flex-wrap: wrap; gap: 8px; }
.harbor-embedded .pay { padding: 12px 14px; color: var(--h-ink); border: 1px solid var(--h-line); border-radius: 9px; background: var(--h-card); max-width: 100%; overflow-wrap: anywhere; }
.harbor-embedded .pay:hover { border-color: var(--h-accent); background: var(--h-soft); }
.harbor-embedded .pay-list:empty::after { content: "暂未配置可用支付方式，请稍后再来。"; font-size: 12px; color: var(--h-muted); padding: 12px 0; }
.panel, .uc-card, .auth-card, .card { background-color: var(--h-card); border-color: var(--h-line); color: var(--h-ink); box-shadow: var(--h-shadow); }
.form-control, .form-select, .input-group-text { background-color: var(--h-card); border: 1px solid var(--h-line); color: var(--h-ink); border-radius: 8px; }
.form-control:focus { color: var(--h-ink); background: var(--h-card); border-color: var(--h-accent); box-shadow: 0 0 0 3px var(--h-soft); }
.form-control::placeholder { color: var(--h-muted); opacity: 1; }
.price { color: var(--h-ink); }
.layui-layer, .layui-layer-title, .layui-layer-content { background-color: var(--h-card) !important; color: var(--h-ink) !important; border-color: var(--h-line) !important; }
.layui-layer-content img { max-width: 100%; }
html[data-theme="dark"] .auth-card, html[data-theme="dark"] .panel-body, html[data-theme="dark"] .panel-header { background-color: var(--h-card); color: var(--h-ink); }
.auth-wrapper, .auth-container { max-width: 100%; }
.auth-wrapper { background: transparent !important; }
.auth-wrapper::before, .auth-wrapper::after { display: none !important; }
html.harbor-theme[data-theme] .bg-content.uc-bg { background: var(--h-bg) !important; }
.auth-card .btn-gradient { background: #3979f6; color: #fff; box-shadow: none; font-size: 15px; border-radius: 9px; }
.auth-card .brand-icon { box-shadow: none; border-radius: 16px; }
.order-query-form > .d-flex { flex-wrap: wrap; }
.order-query-form > .d-flex > div { max-width: 100%; }
@media (max-width: 900px) {
    .harbor-nav, .harbor-shell { padding-left: 24px; padding-right: 24px; }
    .harbor-purchase { padding: 22px; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
    .harbor-catalog { padding-right: 22px; }
    .harbor-checkout { padding-left: 22px; }
    .harbor-product { padding-left: 16px; }
    .harbor-product-price { font-size: 22px; }
}
@media (max-width: 680px) {
    .harbor-header { padding: 20px 0; }
    .harbor-nav, .harbor-shell { padding-left: 18px; padding-right: 18px; }
    .harbor-brand { font-size: 14px; gap: 8px; }
    .harbor-brand img { width: 29px; height: 29px; border-radius: 8px; }
    .harbor-nav-actions { gap: 9px; font-size: 11px; }
    .harbor-nav-login { padding: 8px 9px; }
    .harbor-hero { grid-template-columns: 1fr; min-height: 0; padding: 32px 0 28px; gap: 0; }
    .harbor-hero h1 { font-size: 40px; letter-spacing: -1.5px; }
    .harbor-art { display: none; }
    .harbor-category-bar { align-items: flex-start; gap: 6px; }
    .harbor-categories { gap: 5px; }
    .harbor-categories button { padding: 8px 10px; font-size: 11px; }
    .harbor-notice-button { padding: 9px 0 9px 5px; font-size: 11px; }
    .harbor-purchase { display: block; padding: 20px; border-radius: 16px; }
    .harbor-catalog { padding: 0 0 24px; border: 0; border-bottom: 1px solid var(--h-line); }
    .harbor-checkout { padding: 24px 0 0; }
    .harbor-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .harbor-product { padding: 16px 13px; gap: 8px; }
    .harbor-product-price { font-size: 21px; padding-right: 14px; }
    .harbor-product-name { font-size: 11px; }
    .harbor-product-stock { font-size: 10px; }
    .harbor-product-check { width: 14px; height: 14px; right: 10px; top: 17px; font-size: 9px; border-radius: 4px; }
    .harbor-notice-head, .harbor-notice-content { padding: 20px; }
    .harbor-notice-foot { padding: 14px 20px; }
}
@media (max-width: 360px) {
    .harbor-products { grid-template-columns: 1fr; }
    .harbor-nav, .harbor-shell { padding-left: 12px; padding-right: 12px; }
    .harbor-nav-actions { gap: 3px; }
    .harbor-brand { font-size: 12px; }
    .harbor-purchase { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
