:root {
  --primary: #635bff;
  --primary-soft: #efedff;
  --accent: #17181c;
  --bg: #f7f8fc;
  --card: #ffffff;
  --soft: #f4f5f9;
  --text: #1f2126;
  --text2: #4b505a;
  --muted: #8b909b;
  --line: #e9ebf2;
  --radius: 14px;
  --shadow: 0 2px 12px rgba(30, 35, 70, .05);
  --shadow-hover: 0 10px 30px rgba(50, 45, 110, .13);
}
body[data-theme="dark"] {
  --bg: #111318; --card: #1b1e25; --soft: #22262e;
  --text: #eef0f4; --text2: #b9bec9; --muted: #7e8592;
  --line: #2c313b; --accent: #e9ebf0;
  --primary-soft: #26243d;
  --shadow: 0 2px 12px rgba(0,0,0,.22); --shadow-hover: 0 10px 30px rgba(0,0,0,.4);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 14px; -webkit-font-smoothing: antialiased; transition: background .25s, color .25s; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; outline: none; }
button { cursor: pointer; border: 0; background: none; color: inherit; }
svg { width: 18px; height: 18px; display: block; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
[hidden] { display: none !important; }
.module { margin-top: 26px; }
main { padding-bottom: 60px; }

/* ---------------- Header ---------------- */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 60; transition: background .25s, border-color .25s; }
.header-inner { height: 64px; display: flex; align-items: center; gap: 26px; }
.brand { display: flex; align-items: center; gap: 7px; flex-shrink: 0; }
.brand-mark { color: var(--primary); display: flex; }
.brand-mark svg { width: 23px; height: 23px; }
.brand-name { font-size: 17px; font-weight: 800; letter-spacing: .5px; }
.brand-sub { font-size: 11.5px; color: var(--muted); border-left: 1px solid var(--line); padding-left: 8px; }
.main-nav { display: flex; align-items: center; gap: 21px; height: 100%; flex: 1; min-width: 0; }
.main-nav a { position: relative; display: flex; align-items: center; height: 100%; font-size: 13px; color: var(--text2); white-space: nowrap; transition: color .18s; }
.main-nav a:hover { color: var(--primary); }
.main-nav a.active { color: var(--primary); font-weight: 600; }
.main-nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--primary); border-radius: 2px 2px 0 0; }
.main-nav a .nav-caret { width: 11px; height: 11px; margin-left: 2px; opacity: .7; }
.header-tools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.tool { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 11px; border-radius: 8px; font-size: 12px; color: var(--text2); transition: all .18s; white-space: nowrap; }
.tool svg { width: 15px; height: 15px; }
.tool:hover { background: var(--soft); color: var(--primary); }
.tool.outline { border: 1px solid var(--line); color: var(--primary); }
.tool.outline:hover { border-color: var(--primary); background: var(--primary-soft); }
.tool.icon-only { padding: 0 7px; color: var(--muted); }
.tool.login-btn { border: 1px solid var(--primary); color: var(--primary); border-radius: 20px; padding: 0 15px; font-weight: 600; }
.tool.login-btn:hover { background: var(--primary); color: #fff; }
.announce { margin-top: 16px; padding: 10px 16px; background: var(--primary-soft); border: 1px solid color-mix(in srgb, var(--primary) 20%, var(--line)); border-radius: 8px; font-size: 12.5px; color: var(--text2); }

/* ---------------- Search hero ---------------- */
.search-hero { position: relative; border-radius: var(--radius); overflow: visible; border: 1px solid var(--line); box-shadow: var(--shadow); background: linear-gradient(135deg, #f3f1ff 0%, #f8f9ff 46%, #eef4ff 100%); }
body[data-theme="dark"] .search-hero { background: linear-gradient(135deg, #1e1c34 0%, #1a1d2a 50%, #17202e 100%); }
.hero-bg { position: absolute; inset: 0; border-radius: var(--radius); overflow: hidden; pointer-events: none; }
.hero-bg::before { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -220px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--primary) 13%, transparent), transparent 70%); }
.hero-bg::after { content: ""; position: absolute; width: 320px; height: 320px; left: -140px; bottom: -230px; border-radius: 50%; background: radial-gradient(circle, rgba(99, 140, 255, .12), transparent 70%); }
.hero-inner { position: relative; padding: 40px 60px 30px; text-align: center; }
.hero-logo { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--primary); font-size: 30px; font-weight: 800; letter-spacing: 2px; }
.hl-mark { position: relative; display: flex; }
.hl-mark svg { width: 40px; height: 40px; }
.hl-search { position: absolute; width: 17px !important; height: 17px !important; right: -3px; bottom: 0; background: var(--primary); color: #fff; border-radius: 50%; padding: 2px; }
.hero-slogan { margin: 12px 0 22px; font-size: 15px; color: var(--text2); letter-spacing: .5px; }
.disk-chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px; margin-bottom: 20px; }
.disk-chip { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text2); cursor: pointer; transition: color .16s; }
.disk-chip i { width: 7px; height: 7px; border-radius: 50%; background: #c9cddd; border: 2px solid transparent; }
.disk-chip:hover { color: var(--primary); }
.disk-chip.active { color: var(--primary); font-weight: 700; }
.disk-chip.active i { background: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
.search-box { display: flex; align-items: center; gap: 12px; max-width: 620px; height: 56px; margin: 0 auto; padding: 0 8px 0 20px; background: var(--card); border: 1px solid var(--line); border-radius: 30px; box-shadow: 0 8px 26px rgba(80, 70, 160, .13); transition: box-shadow .2s, border-color .2s; }
.search-box:focus-within { border-color: var(--primary); box-shadow: 0 10px 34px rgba(99, 91, 255, .22); }
.search-box > svg { width: 19px; height: 19px; color: var(--muted); flex-shrink: 0; }
.search-box input { flex: 1; min-width: 0; border: 0; background: none; font-size: 14.5px; color: var(--text); }
.search-box input::placeholder { color: var(--muted); }
.search-box button { height: 42px; padding: 0 26px; border-radius: 24px; background: var(--primary); color: #fff; font-size: 14px; font-weight: 600; transition: filter .18s, transform .18s; }
.search-box button:hover { filter: brightness(1.08); transform: translateY(-1px); }
.hot-words { display: flex; align-items: flex-start; justify-content: center; gap: 12px; margin-top: 24px; max-width: 860px; margin-left: auto; margin-right: auto; }
.hw-label { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: var(--text2); white-space: nowrap; padding-top: 5px; }
.hw-label svg { width: 14px; height: 14px; color: #ff7a45; }
.hw-tags { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; }
.hw-tag { font-size: 11.5px; color: var(--text2); padding: 4px 10px; border: 1px solid var(--line); background: color-mix(in srgb, var(--card) 70%, transparent); border-radius: 14px; cursor: pointer; transition: all .16s; }
.hw-tag:hover { color: var(--primary); border-color: var(--primary); background: var(--primary-soft); }
.float-badge { position: absolute; right: -14px; top: 46%; display: flex; align-items: center; gap: 5px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-hover); color: var(--primary); font-size: 11px; font-weight: 600; padding: 8px 11px; border-radius: 20px 0 0 20px; }
.float-badge svg { width: 14px; height: 14px; }

/* history (top-right) */
.history-wrap { position: absolute; right: 18px; top: 16px; z-index: 12; }
.history-toggle { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 8px; border: 1px solid var(--line); background: color-mix(in srgb, var(--card) 80%, transparent); font-size: 11.5px; color: var(--text2); backdrop-filter: blur(6px); transition: all .16s; }
.history-toggle:hover { color: var(--primary); border-color: var(--primary); }
.history-toggle svg { width: 14px; height: 14px; }
.history-toggle .tiny { width: 10px; height: 10px; opacity: .6; }
.history-panel { position: absolute; right: 0; top: 38px; width: 228px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-hover); padding: 12px; text-align: left; }
.hp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; font-size: 12px; }
.hp-head button { display: flex; align-items: center; gap: 3px; font-size: 10.5px; color: var(--muted); }
.hp-head button:hover { color: var(--primary); }
.hp-head svg { width: 12px; height: 12px; }
.hp-list { display: flex; flex-direction: column; gap: 3px; max-height: 220px; overflow: auto; }
.hp-item { display: block; width: 100%; text-align: left; font-size: 12px; color: var(--text2); padding: 7px 9px; border-radius: 6px; transition: background .15s; }
.hp-item:hover { background: var(--primary-soft); color: var(--primary); }
.hp-empty { font-size: 11.5px; color: var(--muted); padding: 14px 4px; text-align: center; }

/* ---------------- Poster grid ---------------- */
.poster-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.poster-head h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; font-weight: 700; }
.poster-head .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 16%, transparent); }
.poster-count { font-size: 11.5px; color: var(--muted); }
/* 列宽用 minmax(0,1fr)：防止长标题/副标题把某一列撑宽，保证图片四边严格对齐 */
.poster-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.poster-card { min-width: 0; cursor: pointer; transition: transform .22s, box-shadow .22s; }
.poster-card:hover { transform: translateY(-4px); }
.poster-frame { position: relative; aspect-ratio: 3 / 4; border-radius: 9px; overflow: hidden; background: var(--soft); box-shadow: var(--shadow); border: 1px solid var(--line); }
.poster-card:hover .poster-frame { box-shadow: var(--shadow-hover); }
.poster-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.poster-badge { position: absolute; right: 7px; top: 7px; background: rgba(0,0,0,.6); backdrop-filter: blur(4px); color: #ffd075; font-size: 10.5px; font-weight: 700; padding: 3px 7px; border-radius: 5px; }
.poster-title { font-size: 12.5px; font-weight: 600; margin-top: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.poster-card:hover .poster-title { color: var(--primary); }
.poster-sub { display: flex; justify-content: space-between; gap: 8px; font-size: 10.5px; color: var(--muted); margin-top: 4px; min-width: 0; }
.poster-sub em { font-style: normal; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.poster-sub em:last-child { text-align: right; }

/* ---------------- Rankings ---------------- */
.rank-section { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.rank-card { min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px 12px; }
.rank-card h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 14px; font-weight: 700; }
.rank-card h3 svg { width: 16px; height: 16px; color: var(--primary); }
.rank-card h3 svg.fire { color: #ff7a45; }
.rank-list { list-style: none; margin: 0; padding: 0; }
.rank-list li { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 9px 2px; border-bottom: 1px dashed var(--line); font-size: 12.5px; cursor: pointer; transition: color .15s; }
.rank-list li:last-child { border-bottom: 0; }
.rank-list li:hover { color: var(--primary); }
.rank-no { flex-shrink: 0; width: 19px; height: 19px; border-radius: 5px; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; background: #c3c7d2; }
.rank-list li:nth-child(1) .rank-no { background: #ff6b4a; }
.rank-list li:nth-child(2) .rank-no { background: #ff9a45; }
.rank-list li:nth-child(3) .rank-no { background: #ffbe4d; }
.rank-title { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
/* 固定列宽：分类标签一列、时间一列，所有行左右边界严格对齐 */
.rank-extra { flex: 0 0 70px; width: 70px; box-sizing: border-box; justify-content: flex-end; text-align: right; font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.rank-extra svg { width: 11px; height: 11px; color: #ff7a45; flex-shrink: 0; }
.rank-tag { flex: 0 0 42px; width: 42px; box-sizing: border-box; text-align: center; font-size: 10px; color: var(--primary); background: var(--primary-soft); padding: 2px 7px; border-radius: 4px; }

/* ---------------- Results ---------------- */
.result-section { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 20px 18px; margin-top: 16px; }
.result-main { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; min-width: 0; }
.result-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.result-head h3 { display: flex; align-items: center; gap: 7px; margin: 0; font-size: 14px; font-weight: 700; }
.result-head h3 svg { width: 17px; height: 17px; color: var(--primary); }
.result-head em { font-style: normal; font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 4px; }
.result-head-right { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.source-tip { font-size: 11px; color: var(--muted); }
.source-tip.api { color: #17a34a; }
.result-close { font-size: 11.5px; color: var(--muted); cursor: pointer; }
.result-close:hover { color: var(--primary); }
.result-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.sort-wrap { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.sort-wrap select { height: 28px; padding: 0 22px 0 9px; border: 1px solid var(--line); border-radius: 6px; background: var(--soft); color: var(--text2); font-size: 11.5px; cursor: pointer; }
.result-list { display: flex; flex-direction: column; gap: 10px; }
.res-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); transition: border-color .16s, box-shadow .16s; }
.res-item:hover { border-color: color-mix(in srgb, var(--primary) 40%, var(--line)); box-shadow: var(--shadow); }
.res-main { flex: 1; min-width: 0; }
.res-name { font-size: 14px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.res-meta { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; font-size: 11px; color: var(--muted); }
.pill { font-size: 10.5px; padding: 3px 8px; border-radius: 5px; background: var(--primary-soft); color: var(--primary); font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; gap: 3px; }
.pill svg { width: 11px; height: 11px; }
.pill.valid { background: #eaf8ee; color: #17a34a; }
body[data-theme="dark"] .pill.valid { background: #1c3327; }
.pill.plain { background: var(--soft); color: var(--muted); font-weight: 400; }
.res-get { flex-shrink: 0; height: 33px; padding: 0 18px; border-radius: 18px; background: var(--primary); color: #fff; font-size: 12px; font-weight: 600; transition: filter .16s, transform .16s; }
.res-get:hover { filter: brightness(1.08); transform: translateY(-1px); }
.result-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.tab-chip { font-size: 11.5px; padding: 5px 11px; border-radius: 6px; background: var(--soft); color: var(--text2); }
.tab-chip:hover, .tab-chip.active { background: var(--primary); color: #fff; }
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
.pagination button { min-width: 30px; height: 30px; border-radius: 6px; border: 1px solid var(--line); font-size: 11.5px; color: var(--text2); }
.pagination button:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.pagination button.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination button:disabled { opacity: .4; cursor: not-allowed; }
.empty { padding: 46px 20px; text-align: center; color: var(--muted); font-size: 12.5px; }
.empty svg { width: 34px; height: 34px; margin: 0 auto 12px; opacity: .4; }

/* overview */
.overview-section { max-width: 420px; margin: 18px auto 0; }
.overview-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.overview-card h3 { margin: 0 0 14px; font-size: 14px; font-weight: 700; text-align: center; }
.ov-stats { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 16px; }
.ov-stats div { flex: 1; text-align: center; }
.ov-stats span { display: block; font-size: 10.5px; color: var(--muted); }
.ov-stats b { display: block; font-size: 18px; margin-top: 5px; }
.ov-stats small { font-size: 9px; color: var(--muted); font-weight: 400; margin-left: 1px; }
.ov-missing { text-align: center; padding: 18px 12px; background: var(--soft); border-radius: 10px; }
.ov-bell { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--primary); color: #fff; margin-bottom: 9px; }
.ov-bell svg { width: 20px; height: 20px; }
.ov-missing b { display: block; font-size: 13px; }
.ov-missing p { margin: 7px 0 12px; font-size: 11px; color: var(--muted); line-height: 1.7; }
.ov-missing button { height: 28px; padding: 0 15px; border-radius: 6px; background: var(--primary); color: #fff; font-size: 11.5px; }
.ov-notice { margin: 14px 0 0; font-size: 10.5px; color: var(--muted); line-height: 1.8; text-align: center; }

/* ---------------- Legacy modules ---------------- */
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.section-head h2 { margin: 0; font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.section-head .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
.collection-row { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 6px; }
.collection-card { position: relative; flex: 0 0 calc((100% - 4 * 14px) / 5.35); min-width: 150px; aspect-ratio: 1.85 / 1; border-radius: 9px; overflow: hidden; cursor: pointer; box-shadow: var(--shadow); }
.collection-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.collection-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.78), rgba(0,0,0,.05) 62%); }
.col-text { position: absolute; left: 13px; right: 10px; bottom: 11px; z-index: 2; color: #fff; }
.col-title { font-size: 13px; font-weight: 700; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.col-sub { font-size: 10px; opacity: .8; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-head { display: flex; justify-content: space-between; padding: 12px 4px; font-size: 12px; color: var(--muted); }

/* ---------------- Footer ---------------- */
.site-footer { border-top: 1px solid var(--line); background: var(--card); padding: 24px 0; margin-top: 14px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 5px; font-size: 13px; }
.footer-brand svg { width: 16px; height: 16px; color: var(--primary); }
.footer-brand span { color: var(--muted); }
.footer-inner p { margin: 0; font-size: 11.5px; color: var(--muted); flex: 1; text-align: center; }
.footer-links { display: flex; gap: 9px; align-items: center; font-size: 11.5px; color: var(--muted); }
.footer-links a:hover { color: var(--primary); }

/* ---------------- Claim modal ---------------- */
.modal-mask { position: fixed; inset: 0; background: rgba(14, 16, 26, .6); backdrop-filter: blur(3px); z-index: 100; display: grid; place-items: center; padding: 20px; }
.claim-modal { width: min(390px, 100%); max-height: 92vh; overflow: auto; background: #fff; border-radius: 14px; box-shadow: 0 26px 80px rgba(0,0,0,.3); color: #1f2126; }
.cm-head { display: flex; align-items: center; justify-content: space-between; padding: 15px 19px; border-bottom: 1px solid #eef0f4; font-size: 14px; }
.cm-head button { color: #8b909b; }
.cm-head svg { width: 16px; height: 16px; }
.cm-body { padding: 20px 24px 22px; text-align: center; }
.cm-body h2 { margin: 2px 0 8px; font-size: 20px; font-weight: 800; }
.cm-title { margin: 0 0 18px; font-size: 13px; color: #4b505a; }
.cm-transferred { margin: -8px 0 14px; padding: 7px 10px; border-radius: 7px; background: #eaf8ee; color: #17a34a; font-size: 11.5px; font-weight: 700; }
body[data-theme="dark"] .cm-transferred { background: #1c3327; }
.cm-qr-title { font-size: 13px; font-weight: 700; color: #2a64d8; margin: 0 0 6px; }
.cm-qr-tip { font-size: 11px; color: #8b909b; margin: 0 0 12px; }
.cm-qr { width: 200px; height: 200px; margin: 0 auto 14px; border: 1px solid #eef0f4; border-radius: 8px; display: block; }
.cm-link-box { background: #f4f6fb; border-radius: 8px; padding: 11px 13px; text-align: left; }
.cm-link-box label { display: block; font-size: 11px; color: #8b909b; margin-bottom: 5px; }
.cm-link-box a { display: block; font-size: 12px; color: #2a64d8; word-break: break-all; }
.cm-warn { margin: 12px 0 16px; font-size: 11.5px; color: #e1383c; font-weight: 600; }
.cm-actions { display: flex; gap: 8px; }
.cm-actions button { flex: 1; height: 36px; border-radius: 7px; font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 5px; }
.cm-actions svg { width: 14px; height: 14px; }
.cm-actions .primary { background: #4b7bec; color: #fff; }
.cm-actions .ghost { border: 1px solid #e4e7ee; color: #4b505a; }
.cm-actions .ghost:hover { border-color: #4b7bec; color: #4b7bec; }
.cm-demo { margin-top: 10px; font-size: 10.5px; color: #9aa0ac; }

.toast { position: fixed; left: 50%; bottom: 38px; transform: translate(-50%, 20px); background: var(--accent); color: var(--card); padding: 10px 22px; border-radius: 8px; font-size: 13px; opacity: 0; pointer-events: none; transition: all .26s; z-index: 200; box-shadow: var(--shadow-hover); }
body[data-theme="dark"] .toast { color: #111; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- Responsive ---------------- */
@media (max-width: 1080px) { .main-nav { gap: 14px; } .main-nav a { font-size: 12px; } .tool span { display: none; } .hero-inner { padding: 36px 30px 28px; } }
@media (max-width: 860px) {
  .main-nav { display: none; }
  .rank-section { grid-template-columns: minmax(0, 1fr); }
  .poster-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .result-tools { gap: 8px; }
  .result-tabs { margin-left: 0; }
  .hero-inner { padding: 34px 18px 26px; }
  .hero-logo { font-size: 24px; }
  .hl-mark svg { width: 33px; height: 33px; }
  .disk-chips { gap: 11px; }
  .float-badge { display: none; }
  .search-box { height: 50px; }
  .search-box button { height: 38px; padding: 0 18px; }
  .hot-words { flex-direction: column; align-items: center; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 14px; }
  .poster-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .res-item { flex-wrap: wrap; }
  .res-get { width: 100%; }
  .ov-stats b { font-size: 15px; }
}

/* ---------------- Logo（后台可换） ---------------- */
.brand-logo { display: block; width: auto; max-width: 150px; object-fit: contain; }
.hl-logo-img { display: block; width: auto; height: 40px; max-width: 170px; object-fit: contain; }
.hl-mark .hl-search { right: -5px; }

/* ---------------- 网站介绍（后台可改） ---------------- */
.intro-section { margin-top: 34px; }
.intro-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 28px; align-items: center; overflow: hidden; padding: 28px 30px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.intro-card::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 4px; background: linear-gradient(180deg, var(--primary), transparent); }
.intro-kicker { margin-bottom: 8px; font-size: 10.5px; font-weight: 800; letter-spacing: 2px; color: var(--primary); }
.intro-main h2 { margin: 0 0 10px; font-size: 20px; font-weight: 800; }
.intro-main p { max-width: 760px; margin: 0 0 16px; font-size: 13px; line-height: 1.85; color: var(--text2); white-space: pre-wrap; }
.intro-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.intro-tags span { padding: 5px 12px; border-radius: 20px; background: var(--primary-soft); color: var(--primary); font-size: 11px; font-weight: 600; }
.intro-side { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding-left: 26px; border-left: 1px solid var(--line); }
.intro-stat { text-align: center; }
.intro-stat b { display: block; font-size: 20px; font-weight: 800; color: var(--primary); }
.intro-stat span { font-size: 10.5px; color: var(--muted); }
@media (max-width: 860px) {
  .intro-card { grid-template-columns: 1fr; gap: 20px; padding: 22px 20px; }
  .intro-side { padding: 18px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .hl-logo-img { height: 33px; }
}
