/* 云盘资源搜索（海搜风格）— 工具私有样式，前缀 hs-，不污染全站 */
:root {
    --hs-accent: #4caf50;
    --hs-accent-2: #7bd88f;
    --hs-accent-soft: rgba(76, 175, 80, .12);
    --hs-warn: #f0b45a;
    --hs-hit: #ffb74d;
    --hs-err: #ef6b6b;
    --hs-bg-1: #10464f;
    --hs-bg-2: #0a2c37;
    --hs-bg-3: #06141d;
    --hs-surface: rgba(9, 28, 36, .82);
    --hs-surface-2: rgba(13, 38, 46, .9);
    --hs-line: rgba(128, 205, 160, .18);
    --hs-line-2: rgba(128, 205, 160, .32);
    --hs-text: #e9f2f4;
    --hs-sub: rgba(233, 242, 244, .66);
    --hs-faint: rgba(233, 242, 244, .45);
    --hs-shadow: 0 18px 54px rgba(0, 0, 0, .36);
    --hs-r: 14px;
    --hs-r-sm: 8px;
    --hs-maxw: 960px;
}
.hs[data-hs-theme="light"] {
    --hs-bg-1: #dff2ec;
    --hs-bg-2: #eef7f5;
    --hs-bg-3: #f7fbfa;
    --hs-surface: rgba(255, 255, 255, .9);
    --hs-surface-2: rgba(255, 255, 255, .96);
    --hs-line: rgba(24, 84, 60, .16);
    --hs-line-2: rgba(24, 84, 60, .3);
    --hs-text: #14272c;
    --hs-sub: rgba(20, 39, 44, .7);
    --hs-faint: rgba(20, 39, 44, .5);
    --hs-shadow: 0 18px 48px rgba(24, 70, 58, .14);
    --hs-accent: #2e7d32;
    --hs-accent-2: #1b5e20;
    --hs-accent-soft: rgba(46, 125, 50, .1);
    --hs-hit: #b56500;
}
.hs[data-hs-tone="blue"]   { --hs-bg-1: #123c60; --hs-bg-2: #0a2740; --hs-bg-3: #05131f; --hs-accent: #4aa3ff; --hs-accent-2: #8cc7ff; --hs-accent-soft: rgba(74,163,255,.14); }
.hs[data-hs-tone="purple"] { --hs-bg-1: #3b2a63; --hs-bg-2: #241a42; --hs-bg-3: #100c1e; --hs-accent: #a985ff; --hs-accent-2: #cfb6ff; --hs-accent-soft: rgba(169,133,255,.14); }
.hs[data-hs-tone="emerald"]{ --hs-bg-1: #0e5145; --hs-bg-2: #09332d; --hs-bg-3: #041a17; --hs-accent: #35c997; --hs-accent-2: #7ae8c4; --hs-accent-soft: rgba(53,201,151,.13); }
.hs[data-hs-tone="amber"]  { --hs-bg-1: #59411c; --hs-bg-2: #382812; --hs-bg-3: #1a1207; --hs-accent: #e9a63c; --hs-accent-2: #ffd08a; --hs-accent-soft: rgba(233,166,60,.14); }
.hs[data-hs-theme="light"][data-hs-tone="sky"]  { --hs-bg-1: #dcecff; --hs-accent: #1565c0; --hs-accent-soft: rgba(21,101,192,.1); }
.hs[data-hs-theme="light"][data-hs-tone="cyan"] { --hs-bg-1: #d8f4f2; --hs-accent: #00897b; --hs-accent-soft: rgba(0,137,123,.1); }
.hs[data-hs-theme="light"][data-hs-tone="rose"] { --hs-bg-1: #ffe7ec; --hs-accent: #c2185b; --hs-accent-soft: rgba(194,24,91,.1); }
.hs[data-hs-theme="light"][data-hs-tone="sand"] { --hs-bg-1: #f6ecd8; --hs-accent: #a1620a; --hs-accent-soft: rgba(161,98,10,.1); }

/* 桌面满屏（保留左侧导航） */
body.page-haisou-full .app,
body.page-haisou-full .main-content,
body.page-haisou-full .page-container { max-width: 100%; }
body.page-haisou-full .main-content { width: 100%; border-right: 0; min-width: 0; }
body.page-haisou-full { overflow: visible; }
/* 渐变放在独立绝对定位层，不用 background-attachment:fixed（滚动时每帧重绘整屏渐变） */
.hs { position: relative; min-height: calc(100vh - 64px); color: var(--hs-text); font-size: 14px; line-height: 1.6; background: var(--hs-bg-3); }
.hs, .hs * { box-sizing: border-box; }
.hs [hidden] { display: none !important; }
.hs button, .hs input, .hs select { font: inherit; color: inherit; }
.hs button { cursor: pointer; }
.hs button:disabled { opacity: .45; cursor: not-allowed; }
.hs :focus-visible { outline: 2px solid var(--hs-accent-2); outline-offset: 2px; }
.hs .hs-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hs-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: radial-gradient(ellipse 85% 70% at 50% 30%, var(--hs-bg-1) 0%, var(--hs-bg-2) 42%, var(--hs-bg-3) 100%); }
.hs-bg canvas { display: block; width: 100%; height: 100vh; opacity: .5; }
.hs.is-static-bg .hs-bg canvas { display: none; }

/* 顶栏 */
.hs-nav { position: sticky; top: 0; z-index: 60; height: 64px; border-bottom: 1px solid var(--hs-line); background: color-mix(in srgb, var(--hs-bg-3) 72%, transparent); backdrop-filter: blur(14px); }
.hs[data-hs-theme="light"] .hs-nav { background: color-mix(in srgb, var(--hs-bg-3) 78%, transparent); }
.hs-nav-in { height: 100%; max-width: 1600px; margin: 0 auto; padding: 0 22px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.hs-brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--hs-text); font-weight: 700; font-size: 20px; }
.hs-brand-ic { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 15px; background: linear-gradient(145deg, #2d8ce0, #1c4fb0); box-shadow: 0 2px 10px rgba(30, 100, 190, .4); }
.hs-nav-mid { display: flex; justify-content: center; gap: 6px; }
.hs-nav-link { position: relative; border: 0; background: none; color: var(--hs-sub); padding: 8px 14px; border-radius: 20px; font-size: 13.5px; }
.hs-nav-link:hover { background: var(--hs-accent-soft); color: var(--hs-text); }
.hs-nav-link.is-on { color: var(--hs-accent-2); font-weight: 600; }
.hs-dot { position: absolute; top: 4px; right: 8px; width: 6px; height: 6px; border-radius: 50%; background: #f05252; }
.hs-nav-right { display: flex; justify-content: flex-end; gap: 6px; position: relative; }
.hs-icon-btn { position: relative; width: 34px; height: 34px; border: 1px solid var(--hs-line); border-radius: 10px; background: transparent; color: var(--hs-sub); display: grid; place-items: center; font-size: 15px; }
.hs-icon-btn:hover { color: var(--hs-text); border-color: var(--hs-line-2); background: var(--hs-accent-soft); }
.hs-nav-comm { border-radius: 50%; color: #62b6ff; border-color: rgba(98, 182, 255, .35); }
.hs-user-menu { position: absolute; top: 58px; right: 22px; width: 290px; padding: 16px; border: 1px solid var(--hs-line); border-radius: var(--hs-r); background: var(--hs-surface-2); box-shadow: var(--hs-shadow); backdrop-filter: blur(18px); z-index: 70; }
.hs-user-t { margin: 0 0 6px; font-weight: 700; }
.hs-user-d { margin: 0 0 14px; font-size: 12.5px; color: var(--hs-sub); }
.hs-user-acts { display: flex; gap: 8px; }

/* 首页 hero */
.hs-main { position: relative; z-index: 1; max-width: 100%; padding: 0 20px 32px; }
.hs-home { display: flex; flex-direction: column; align-items: center; }
.hs-hero { width: min(100%, var(--hs-maxw)); padding: 44px 0 8px; text-align: center; }
.hs-title { margin: 0; font-size: 34px; font-weight: 700; letter-spacing: 2px; line-height: 1.3; }
.hs-demo-badge { display: inline-block; vertical-align: 7px; margin-left: 6px; padding: 2px 9px; border-radius: 20px; border: 1px solid var(--hs-line-2); background: var(--hs-accent-soft); color: var(--hs-accent-2); font-size: 11px; letter-spacing: 0; font-weight: 600; }
.hs-subtitle { margin: 2px 0 14px; font-size: 13px; color: var(--hs-sub); letter-spacing: 1.5px; }
.hs-stats p { margin: 0; font-size: 12.5px; color: var(--hs-sub); }
.hs-stats b { color: var(--hs-accent-2); font-weight: 700; }
.hs-stats-sub { margin-top: 2px !important; font-size: 12px; }
.hs-search-row { position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; margin: 22px auto 0; width: min(100%, 500px); }
.hs-search-tip { flex: 0 0 34px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: var(--hs-faint); font-size: 17px; }
.hs-search-tip:hover { color: var(--hs-warn); background: var(--hs-accent-soft); }
.hs-search-box { flex: 1 1 auto; display: flex; align-items: center; height: 56px; border: 1px solid var(--hs-line-2); border-radius: 24px; background: var(--hs-surface); box-shadow: 0 8px 30px rgba(0, 0, 0, .18); transition: border-color .18s, box-shadow .18s; }
.hs-search-box:focus-within { border-color: var(--hs-accent); box-shadow: 0 0 0 3px var(--hs-accent-soft); }
.hs-query { flex: 1 1 auto; min-width: 0; height: 100%; padding: 0 20px; border: 0; outline: none; background: transparent; font-size: 15px; text-align: center; }
.hs-query::placeholder { color: var(--hs-faint); }
.hs-query::-webkit-search-cancel-button { display: none; }
.hs-search-go { flex: 0 0 46px; height: 46px; margin-right: 4px; border: 0; border-radius: 50%; background: transparent; color: var(--hs-sub); font-size: 18px; }
.hs-search-go:hover { color: var(--hs-accent-2); background: var(--hs-accent-soft); }
.hs-syntax { width: min(100%, 400px); margin: 0 auto 8px; padding: 10px 14px; border: 1px solid var(--hs-line); border-radius: 12px; background: var(--hs-surface-2); text-align: left; font-size: 12px; }
.hs-syn-row { display: flex; align-items: center; gap: 6px; min-height: 26px; color: var(--hs-sub); }
.hs-syn-row > span { flex: 0 0 66px; }
.hs-syn-row > div { display: flex; flex-wrap: wrap; gap: 4px; }
.hs-syn-add { border: 1px dashed var(--hs-line-2); border-radius: 6px; background: none; color: var(--hs-accent-2); width: 22px; height: 20px; line-height: 1; }

/* 筛选 */
.hs-filters { width: min(100%, 760px); margin: 18px auto 0; display: flex; flex-direction: column; gap: 9px; text-align: left; }
.hs-filter-row { display: flex; align-items: flex-start; gap: 10px; }
.hs-filter-label { flex: 0 0 52px; padding-top: 5px; color: var(--hs-faint); font-size: 13px; text-align: right; }
.hs-seg, .hs-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.hs-chip { min-height: 28px; padding: 3px 11px; border: 1px solid var(--hs-line-2); border-radius: var(--hs-r-sm); background: var(--hs-accent-soft); color: var(--hs-accent-2); font-size: 12px; display: inline-flex; align-items: center; gap: 4px; transition: transform .12s, background .16s, border-color .16s; }
.hs-chip:hover { border-color: var(--hs-accent); transform: translateY(-1px); }
.hs-chip.is-on { background: color-mix(in srgb, var(--hs-accent) 26%, transparent); border-color: var(--hs-accent); color: var(--hs-text); font-weight: 600; }
.hs-chip .hs-pf-ic { width: 15px; height: 15px; border-radius: 4px; display: inline-grid; place-items: center; font-size: 9px; color: #fff; font-weight: 700; }
.hs-chip-all { border-style: dashed; }
.hs-size { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.hs-num, .hs-sel, .hs-txt { height: 30px; padding: 0 9px; border: 1px solid var(--hs-line-2); border-radius: var(--hs-r-sm); background: var(--hs-surface); color: var(--hs-text); outline: none; font-size: 13px; }
.hs-num { width: 72px; text-align: center; }
.hs-sel { min-width: 66px; }
.hs-txt { flex: 1 1 220px; min-width: 0; }
.hs-num:focus, .hs-sel:focus, .hs-txt:focus { border-color: var(--hs-accent); }
.hs-tilde { color: var(--hs-faint); padding: 0 4px; }

/* 热搜与历史 */
.hs-discover { width: min(100%, 800px); margin: 22px auto 0; }
.hs-discover-head { display: flex; justify-content: center; margin-bottom: 9px; }
.hs-hot-tabs { display: inline-flex; gap: 4px; }
.hs-hot-tab { border: 0; background: none; color: var(--hs-sub); font-size: 12.5px; padding: 3px 8px; border-radius: 6px; }
.hs-hot-tab.is-on { color: var(--hs-accent-2); font-weight: 600; }
.hs-hot, .hs-history { justify-content: center; }
.hs-hot, .hs-history, .hs-submit-list { contain: layout style; }
.hs-hot .hs-chip { background: color-mix(in srgb, var(--hs-accent) 14%, transparent); border-color: var(--hs-line); color: var(--hs-sub); border-radius: 6px; font-size: 12px; min-height: 24px; padding: 2px 9px; animation: hs-chip-in .35s both; }
@keyframes hs-chip-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.hs-hot .hs-chip:hover, .hs-history .hs-chip:hover { color: var(--hs-text); border-color: var(--hs-accent); }
.hs-history-wrap { margin-top: 14px; }
.hs-history-head { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 12.5px; color: var(--hs-faint); }
.hs-link-btn { border: 0; background: none; color: var(--hs-accent-2); font-size: 12px; padding: 2px 4px; text-decoration: underline; }
.hs-hist-x { margin-left: 2px; border: 0; background: none; color: var(--hs-faint); font-size: 12px; padding: 0 2px; }
.hs-hist-x:hover { color: var(--hs-err); }
.hs-footer { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px; padding: 26px 16px calc(30px + env(safe-area-inset-bottom)); color: var(--hs-faint); font-size: 12.5px; }
.hs-foot-link { border: 0; background: none; color: var(--hs-sub); font-size: 12.5px; padding: 4px; }
.hs-foot-link:hover { color: var(--hs-accent-2); text-decoration: underline; }
.hs-foot-note { flex: 1 1 100%; text-align: center; font-size: 11.5px; opacity: .8; }
.hs-noscript { max-width: 720px; margin: 40px auto; padding: 18px; border: 1px solid var(--hs-line); border-radius: 12px; text-align: center; }
/* 通用按钮与卡片 */
.hs-btn { min-height: 34px; padding: 6px 14px; border: 1px solid var(--hs-line-2); border-radius: var(--hs-r-sm); background: var(--hs-surface); color: var(--hs-text); font-size: 13px; }
.hs-btn:hover { border-color: var(--hs-accent); background: var(--hs-accent-soft); }
.hs-btn-pri { background: var(--hs-accent); border-color: var(--hs-accent); color: #fff; font-weight: 600; }
.hs[data-hs-theme="light"] .hs-btn-pri { color: #fff; }
.hs-btn-pri:hover { background: var(--hs-accent-2); border-color: var(--hs-accent-2); }
.hs-panel { width: min(100%, 1120px); margin: 28px auto 0; padding: 22px; border: 1px solid var(--hs-line); border-radius: var(--hs-r); background: var(--hs-surface); box-shadow: var(--hs-shadow); }
.hs-panel-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.hs-panel-head h2 { margin: 0; font-size: 19px; }
.hs-panel-sub { color: var(--hs-faint); font-size: 12px; }

/* 搜索结果 */
.hs-results { width: min(100%, var(--hs-maxw)); margin: 26px auto 0; border: 1px solid var(--hs-line); border-radius: var(--hs-r); background: var(--hs-surface); box-shadow: var(--hs-shadow); overflow: hidden; }
.hs-results-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--hs-line); }
.hs-results-head h2 { margin: 0; font-size: 15px; font-weight: 600; }
.hs-notice { display: flex; align-items: center; gap: 8px; margin: 12px 14px 0; padding: 9px 12px; border: 1px solid rgba(240, 180, 90, .42); border-radius: var(--hs-r-sm); background: rgba(240, 180, 90, .09); color: var(--hs-warn); font-size: 12.5px; }
.hs-notice span:nth-child(2) { flex: 1 1 auto; }
.hs-table-wrap { overflow-x: auto; overscroll-behavior: contain; scrollbar-width: thin; }
/* 结果区自身成为纵向滚动容器，sticky 表头才真正生效，长结果也不再撑爆页面 */
.hs-results .hs-table-wrap { max-height: min(68vh, 620px); overflow-y: auto; }
.hs-result-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.hs-result-table th { position: sticky; top: 0; z-index: 2; background: var(--hs-surface-2); color: var(--hs-sub); font-weight: 600; text-align: left; white-space: nowrap; padding: 0; }
.hs-result-table th button { width: 100%; padding: 9px 12px; border: 0; background: none; color: inherit; text-align: left; font-weight: 600; font-size: 12.5px; }
.hs-result-table th button:hover { color: var(--hs-accent-2); }
.hs-sort-ic { opacity: .5; font-size: 11px; }
.hs-result-table td { padding: 9px 12px; border-top: 1px solid var(--hs-line); vertical-align: middle; }
.hs-result-table tbody tr:nth-child(even) { background: color-mix(in srgb, var(--hs-accent) 7%, transparent); }
.hs-result-table tbody tr:hover { background: var(--hs-accent-soft); }
.hs-th-name { width: 52%; }
.hs-th-status, .hs-th-files, .hs-th-size { width: 13%; }
.hs-th-act { width: 40px; }
.hs-row-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
/* 结果标题改成 button（避免 javascript: 伪协议触发 CSP），保留链接视觉 */
.hs-row-title a, .hs-row-title .hs-row-link { color: var(--hs-hit); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; text-align: left; }
.hs-row-title .hs-row-link { flex: 1 1 auto; border: 0; background: none; padding: 0; cursor: pointer; }
.hs-row-title a:hover, .hs-row-title .hs-row-link:hover { text-decoration: underline; }
.hs-row-title mark { background: rgba(255, 183, 77, .22); color: inherit; padding: 0 1px; border-radius: 2px; }
.hs-pf-ic { flex: 0 0 18px; width: 18px; height: 18px; border-radius: 5px; display: inline-grid; place-items: center; font-size: 10px; color: #fff; font-weight: 700; }
.hs-status { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; white-space: nowrap; }
.hs-status.valid { color: var(--hs-accent-2); }
.hs-status.invalid { color: var(--hs-err); }
.hs-status.unknown { color: var(--hs-faint); }
.hs-status.checking { color: var(--hs-warn); }
.hs-status-dot { width: 13px; height: 13px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 9px; background: currentColor; color: var(--hs-surface-2); }
.hs-row-more { width: 28px; height: 28px; border: 0; border-radius: 6px; background: none; color: var(--hs-sub); font-size: 16px; }
.hs-row-more:hover { background: var(--hs-accent-soft); color: var(--hs-text); }
.hs-empty { padding: 42px 16px; text-align: center; color: var(--hs-sub); font-size: 13.5px; }
.hs-results-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 16px 4px; color: var(--hs-sub); font-size: 12.5px; }
.hs-results-timing { padding: 0 16px 14px; color: var(--hs-faint); font-size: 11.5px; }
.hs-row-menu { position: fixed; z-index: 90; min-width: 170px; padding: 5px; border: 1px solid var(--hs-line-2); border-radius: 10px; background: var(--hs-surface-2); box-shadow: var(--hs-shadow); backdrop-filter: blur(14px); }
.hs-row-menu button { display: block; width: 100%; padding: 8px 10px; border: 0; border-radius: 6px; background: none; color: var(--hs-text); font-size: 12.5px; text-align: left; }
.hs-row-menu button:hover { background: var(--hs-accent-soft); color: var(--hs-accent-2); }

/* 弹窗通用 */
.hs-mask { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 18px; background: rgba(2, 10, 14, .66); backdrop-filter: blur(4px); }
.hs-modal { width: min(100%, 640px); max-height: min(88vh, 860px); display: flex; flex-direction: column; border: 1px solid var(--hs-line-2); border-radius: var(--hs-r); background: var(--hs-surface-2); box-shadow: var(--hs-shadow); overflow: hidden; }
.hs-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--hs-line); }
.hs-modal-head h2 { margin: 0; font-size: 16px; }
.hs-modal-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 16px; scrollbar-width: thin; }
.hs-modal-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 16px; border-top: 1px solid var(--hs-line); }
.hs-detail { width: min(100%, 920px); }
.hs-detail-body { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 16px; }
.hs-detail-info dl { margin: 0; display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 8px 10px; font-size: 13px; }
.hs-detail-info dt { color: var(--hs-faint); }
.hs-detail-info dd { margin: 0; word-break: break-all; }
.hs-detail-info .hs-kv-link { color: var(--hs-accent-2); font-size: 12.5px; }
.hs-detail-files { min-width: 0; border: 1px solid var(--hs-line); border-radius: 10px; padding: 10px; }
.hs-detail-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.hs-detail-bar > span:first-child { flex: 1 1 auto; font-size: 12.5px; color: var(--hs-sub); }
.hs-detail-bar input { width: 140px; height: 30px; padding: 0 9px; border: 1px solid var(--hs-line-2); border-radius: 7px; background: var(--hs-surface); outline: none; font-size: 12.5px; }
.hs-mini-seg { display: inline-flex; border: 1px solid var(--hs-line-2); border-radius: 7px; overflow: hidden; }
.hs-mini-seg button { border: 0; background: none; color: var(--hs-sub); font-size: 12px; padding: 5px 9px; }
.hs-mini-seg button.is-on { background: var(--hs-accent-soft); color: var(--hs-accent-2); }
.hs-file-tree { max-height: 300px; overflow: auto; scrollbar-width: thin; font-size: 12.5px; }
.hs-file-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; }
.hs-file-row:hover { background: var(--hs-accent-soft); }
.hs-file-row.is-dir { color: var(--hs-accent-2); cursor: pointer; }
.hs-file-row .hs-file-n { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hs-file-row .hs-file-s { flex: 0 0 auto; color: var(--hs-faint); font-size: 11.5px; }
.hs-detail-note { margin: 8px 2px 0; color: var(--hs-faint); font-size: 11.5px; line-height: 1.6; }
.hs-qr { width: 92px; height: 92px; border-radius: 8px; background: #fff; display: grid; place-items: center; padding: 5px; }
.hs-qr canvas { width: 100%; height: 100%; image-rendering: pixelated; }
.hs-toast { position: fixed; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 200; max-width: min(90vw, 460px); padding: 10px 18px; border: 1px solid var(--hs-line-2); border-radius: 22px; background: var(--hs-surface-2); color: var(--hs-text); box-shadow: var(--hs-shadow); font-size: 13px; text-align: center; }
/* 设置 / 引导 / 文档 */
.hs-set { width: min(100%, 560px); }
.hs-set-body h3 { margin: 4px 0 10px; font-size: 13px; color: var(--hs-accent-2); border-bottom: 1px solid var(--hs-line); padding-bottom: 6px; }
.hs-set-body h3:not(:first-child) { margin-top: 18px; }
.hs-set-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 38px; font-size: 13px; }
.hs-set-row > label:first-child { flex: 1 1 auto; }
.hs-set-tip { margin: 0 0 10px; color: var(--hs-faint); font-size: 12px; line-height: 1.7; }
.hs-set-tip code { padding: 1px 4px; border-radius: 4px; background: var(--hs-accent-soft); }
.hs-file { max-width: 230px; font-size: 12px; }
.hs-switch { position: relative; flex: 0 0 40px; width: 40px; height: 22px; }
.hs-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.hs-switch span { position: absolute; inset: 0; border-radius: 20px; background: var(--hs-line-2); transition: background .18s; pointer-events: none; }
.hs-switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .18s; }
.hs-switch input:checked + span { background: var(--hs-accent); }
.hs-switch input:checked + span::after { transform: translateX(18px); }
.hs-switch input:focus-visible + span { outline: 2px solid var(--hs-accent-2); outline-offset: 2px; }
.hs-tones { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.hs-tone { width: 26px; height: 26px; border: 2px solid transparent; border-radius: 8px; padding: 0; }
.hs-tone.is-on { border-color: var(--hs-text); transform: scale(1.08); }
.hs-guide { width: min(100%, 520px); }
.hs-guide-case { margin: 0 0 14px; padding: 10px 12px; border-radius: 9px; background: var(--hs-accent-soft); color: var(--hs-sub); font-size: 12.5px; }
.hs-guide-steps { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 14px; }
.hs-guide-steps i { width: 26px; height: 6px; border-radius: 4px; background: var(--hs-line-2); }
.hs-guide-steps i.is-on { background: var(--hs-accent); }
.hs-guide-query { padding: 12px; border: 1px solid var(--hs-line-2); border-radius: 20px; background: var(--hs-surface); text-align: center; font-size: 14px; word-break: break-all; }
.hs-guide-tip { margin: 12px 2px 0; color: var(--hs-sub); font-size: 13px; min-height: 42px; }
.hs-doc-body p { margin: 0 0 12px; font-size: 13.5px; line-height: 1.85; }
.hs-doc-body p:first-child { color: var(--hs-accent-2); }

/* 平台数据 */
.hs-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 18px; }
.hs-kpi { padding: 14px; border: 1px solid var(--hs-line); border-radius: 11px; background: var(--hs-surface-2); }
.hs-kpi b { display: block; font-size: 21px; color: var(--hs-accent-2); line-height: 1.35; }
.hs-kpi span { font-size: 12px; color: var(--hs-sub); }
.hs-chart-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 14px; margin-bottom: 14px; }
.hs-chart-card { min-width: 0; padding: 14px; border: 1px solid var(--hs-line); border-radius: 11px; background: var(--hs-surface-2); }
.hs-chart-card h3 { margin: 0 0 10px; font-size: 13px; color: var(--hs-sub); }
.hs-chart-card svg { display: block; width: 100%; height: auto; }
.hs-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11.5px; color: var(--hs-sub); margin-top: 6px; }
.hs-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; }
.hs-bars { display: flex; flex-direction: column; gap: 7px; }
.hs-bar-row { display: grid; grid-template-columns: 62px minmax(0, 1fr) 44px; align-items: center; gap: 8px; font-size: 11.5px; }
.hs-bar-track { height: 9px; border-radius: 6px; background: var(--hs-accent-soft); overflow: hidden; }
.hs-bar-fill { height: 100%; border-radius: 6px; background: var(--hs-accent); }
.hs-bar-row b { text-align: right; color: var(--hs-sub); font-weight: 500; }
.hs-stats-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.hs-stats-table th, .hs-stats-table td { padding: 7px 10px; border-bottom: 1px solid var(--hs-line); text-align: left; }
.hs-stats-table th { color: var(--hs-sub); position: sticky; top: 0; background: var(--hs-surface-2); }
.hs-stats-panel .hs-table-wrap { max-height: 300px; overflow-y: auto; }

/* 提交分享 */
.hs-submit-panel { width: min(100%, 760px); }
.hs-hint-bar { margin: 0 0 16px; padding: 10px 12px; border: 1px solid rgba(240, 180, 90, .4); border-radius: 9px; background: rgba(240, 180, 90, .08); color: var(--hs-warn); font-size: 12.5px; }
.hs-submit-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hs-submit-form label { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; color: var(--hs-sub); }
.hs-submit-form input, .hs-submit-form select { height: 38px; padding: 0 10px; border: 1px solid var(--hs-line-2); border-radius: 8px; background: var(--hs-surface); color: var(--hs-text); outline: none; font-size: 13px; }
.hs-submit-form input:focus, .hs-submit-form select:focus { border-color: var(--hs-accent); }
.hs-form-acts { grid-column: 1 / -1; display: flex; gap: 8px; }
.hs-sub-title { margin: 22px 0 10px; font-size: 14px; }
.hs-submit-list { display: flex; flex-direction: column; gap: 8px; }
.hs-sub-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--hs-line); border-radius: 9px; font-size: 12.5px; }
.hs-sub-item .hs-sub-n { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hs-sub-item time { color: var(--hs-faint); font-size: 11.5px; }
.hs-submit-note { margin-top: 12px; color: var(--hs-faint); font-size: 12px; }

/* 三端适配 */
@media (max-width: 1100px) {
    .hs-detail-body { grid-template-columns: minmax(0, 1fr); }
    .hs-chart-grid { grid-template-columns: minmax(0, 1fr); }
    .hs-nav-in { padding: 0 14px; }
    .hs-nav-link { padding: 8px 9px; font-size: 12.5px; }
}
@media (max-width: 900px) {
    .hs-nav { top: 53px; }
    .hs-nav-mid { display: none; }
    .hs-nav-in { grid-template-columns: 1fr auto; }
    .hs-hero { padding-top: 28px; }
    .hs-filter-row { flex-direction: column; gap: 4px; }
    .hs-filter-label { flex: 0 0 auto; padding-top: 0; text-align: left; }
    .hs-filters { width: min(100%, 560px); }
}
@media (max-width: 767px) {
    .hs-main { padding: 0 12px 24px; }
    .hs-title { font-size: 27px; }
    .hs-search-row { gap: 4px; }
    .hs-search-tip { flex-basis: 30px; width: 30px; height: 30px; font-size: 15px; }
    .hs-search-box { height: 50px; border-radius: 18px; }
    .hs-query, .hs-submit-form input, .hs-submit-form select, .hs-detail-bar input { font-size: 16px; }
    .hs-search-go { flex-basis: 40px; height: 40px; }
    .hs-chip { min-height: 34px; padding: 5px 11px; font-size: 12.5px; }
    .hs-hot .hs-chip, .hs-history .hs-chip { min-height: 30px; }
    .hs-num, .hs-sel, .hs-txt, .hs-mini-seg button { min-height: 36px; font-size: 16px; }
    .hs-btn { min-height: 40px; }
    .hs-icon-btn { width: 38px; height: 38px; }
    .hs-result-table { min-width: 560px; }
    .hs-th-name { width: 50%; }
    .hs-mask { padding: 0; align-items: flex-end; }
    .hs-modal { width: 100%; max-width: none; max-height: 92vh; border-radius: 16px 16px 0 0; padding-bottom: env(safe-area-inset-bottom); }
    .hs-modal-foot { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
    .hs-submit-form { grid-template-columns: minmax(0, 1fr); }
    .hs-set-row { min-height: 44px; }
    .hs-detail-info dl { grid-template-columns: 74px minmax(0, 1fr); }
    .hs-file-tree { max-height: 260px; }
    .hs-foot-note { padding: 0 12px; }
}
@media (max-width: 420px) {
    .hs-title { font-size: 24px; }
    .hs-demo-badge { vertical-align: 4px; font-size: 10px; padding: 1px 6px; }
    .hs-stats p, .hs-stats-sub { font-size: 11.5px; }
    .hs-nav-link { display: none; }
    .hs-chip { font-size: 12px; padding: 4px 8px; }
    .hs-toast { font-size: 12.5px; padding: 9px 14px; }
}
@media (hover: none) { .hs-chip:hover { transform: none; } }
/* .hs input/select 的 font: inherit 是 (0,1,1)，会压过 .hs-query 等单类规则的 font-size，
   导致桌面字号回落到 14px、手机端也拿不到 16px（iOS 聚焦会放大页面）。这里用更高特异性纠正。 */
.hs .hs-query { font-size: 15px; }
.hs .hs-num, .hs .hs-sel, .hs .hs-txt { font-size: 13px; }
.hs .hs-submit-form input, .hs .hs-submit-form select, .hs .hs-detail-bar input { font-size: 13px; }
@media (max-width: 767px) {
    .hs .hs-query, .hs .hs-submit-form input, .hs .hs-submit-form select, .hs .hs-detail-bar input,
    .hs .hs-num, .hs .hs-sel, .hs .hs-txt, .hs .hs-mini-seg button { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .hs *, .hs *::before, .hs *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
@media print { .hs-nav, .hs-footer, .hs-mask, .hs-toast, .hs-bg, .hs-discover, .hs-filters, .hs-search-row { display: none !important; } .hs { color: #111; } }


