/* ============================================================
   搜搜 · 聚合搜索  精简版样式（极简搜索框 + 左侧结果流 + 右侧概览）
   ============================================================ */

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f6f7f9;
  --surface-3: #eceff3;
  --border: #e8eaed;
  --border-strong: #dadce0;
  --text: #202124;
  --text-2: #4d5156;
  --text-3: #80868b;
  --primary: #1a73e8;
  --primary-hover: #1765cc;
  --primary-soft: #e8f0fe;
  --web: #1a73e8;
  --news: #c5221f;
  --music: #8430ce;
  --video: #d93025;
  --image: #188038;
  --danger: #d93025;
  --shadow-sm: 0 1px 3px rgba(60, 64, 67, .10);
  --shadow: 0 2px 10px rgba(60, 64, 67, .14);
  --shadow-lg: 0 8px 28px rgba(60, 64, 67, .18);
  --radius: 12px;
  --radius-sm: 8px;
  --topbar-h: 56px;
}

body.theme-dark {
  --bg: #17181c;
  --surface: #202124;
  --surface-2: #282a2f;
  --surface-3: #33363c;
  --border: #3c4043;
  --border-strong: #5f6368;
  --text: #e8eaed;
  --text-2: #bdc1c6;
  --text-3: #9aa0a6;
  --primary: #8ab4f8;
  --primary-hover: #aecbfa;
  --primary-soft: #283244;
  --web: #8ab4f8;
  --music: #c58af9;
  --video: #f28b82;
  --image: #81c995;
  --danger: #f28b82;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .35);
  --shadow: 0 2px 10px rgba(0, 0, 0, .45);
  --shadow-lg: 0 8px 28px rgba(0, 0, 0, .55);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh;
  background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  font-size: 14px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background .2s ease, color .2s ease;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 18px; height: 18px; display: inline-block; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
::selection { background: var(--primary-soft); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 8px; border: 2px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }

/* ---------------------------------------------------------- 顶栏 */
.topbar {
  position: sticky; top: 0; z-index: 60;
  height: var(--topbar-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(16px, 3vw, 32px);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.brand { display: inline-flex; align-items: center; gap: 9px; padding: 2px 0; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center; color: #fff;
  background: var(--primary);
}
.brand-mark .icon { width: 17px; height: 17px; stroke-width: 2.2; }
.brand-mark.small { width: 23px; height: 23px; border-radius: 7px; }
.brand-mark.small .icon { width: 14px; height: 14px; }
.brand-text { font-weight: 700; font-size: 17px; letter-spacing: .5px; }
.brand-sub { font-size: 10px; font-weight: 600; color: var(--text-3); letter-spacing: 1.2px; margin-left: 3px; vertical-align: 2px; }
.topbar-actions { display: flex; align-items: center; gap: 2px; }
.icon-btn {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; position: relative;
  color: var(--text-2); transition: background .16s ease, color .16s ease;
}
.icon-btn:hover { background: var(--surface-2); color: var(--primary); }
.icon-btn .icon { width: 18px; height: 18px; }
.badge {
  position: absolute; top: 0; right: 0; min-width: 15px; height: 15px;
  padding: 0 4px; border-radius: 8px; font-size: 10px; font-weight: 700;
  background: var(--danger); color: #fff; line-height: 15px; text-align: center;
}

/* ---------------------------------------------------------- 首页 */
.hero {
  position: relative;
  padding: clamp(58px, 12vh, 130px) 20px 40px;
  background: var(--surface);
  transition: padding .25s ease;
}
.hero-glow { display: none; }
.hero-inner { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; text-align: center; }
.hero-head { margin-bottom: 26px; }
.hero-tag { display: none; }
.hero-brand-name {
  font-size: clamp(44px, 8vw, 68px); font-weight: 600; letter-spacing: -2px;
  line-height: 1.1; margin: 0 0 8px;
}
.hero-brand-name i { font-style: normal; }
.hero-brand-name .c1 { color: #4285f4; }
.hero-brand-name .c2 { color: #ea4335; }
.hero-brand-name .c3 { color: #fbbc05; }
.hero-brand-name .c4 { color: #34a853; font-size: .55em; letter-spacing: 0; }
.hero-head h1 { font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--text-2); margin: 0 0 3px; }
.hero-head h1 span { color: var(--primary); }
.hero-head p { margin: 0; color: var(--text-3); font-size: 13px; }
.hero-actions { margin-top: 14px; }
.ha-btn { padding: 7px 15px; border-radius: 6px; background: var(--surface-2); color: var(--text-2); font-size: 12.5px; border: 1px solid transparent; }
.ha-btn:hover { border-color: var(--border-strong); color: var(--primary); }
body.has-results .hero-actions { display: none; }

/* 搜索框：胶囊 + 轻阴影 */
.search-wrap { position: relative; max-width: 620px; margin: 0 auto; z-index: 20; }
.search-box {
  display: flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 8px 0 16px;
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: 24px; box-shadow: var(--shadow-sm);
  transition: box-shadow .18s ease, border-color .18s ease;
}
.search-box:hover, .search-box:focus-within {
  border-color: transparent;
  box-shadow: var(--shadow);
}
.search-lead { width: 19px; height: 19px; color: var(--text-3); }
#searchInput {
  flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent;
  font-size: 15px; color: var(--text);
}
#searchInput::placeholder { color: var(--text-3); }
#searchInput::-webkit-search-cancel-button { display: none; }
.clear-btn { width: 28px; height: 28px; border-radius: 50%; color: var(--text-3); display: grid; place-items: center; }
.clear-btn:hover { background: var(--surface-2); color: var(--text); }
.clear-btn .icon { width: 15px; height: 15px; }
.search-btn {
  height: 34px; min-width: 66px; padding: 0 16px; border-radius: 18px; flex: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--primary); color: #fff; font-weight: 600; font-size: 13.5px;
  transition: background .18s ease;
}
.search-btn:hover { background: var(--primary-hover); }
.search-btn .icon { width: 16px; height: 16px; stroke-width: 2.2; }

/* 联想词 */
.suggest-panel {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 0 0 20px 20px; box-shadow: var(--shadow);
  padding: 8px 0 10px; text-align: left; max-height: 380px; overflow: auto; z-index: 30;
}
.sug-group-title { padding: 5px 18px; font-size: 11px; font-weight: 600; color: var(--text-3); }
.sug-item {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 7px 18px; color: var(--text); font-size: 14px; text-align: left;
}
.sug-item:hover, .sug-item.active { background: var(--surface-2); }
.sug-item .icon { width: 15px; height: 15px; color: var(--text-3); }
.sug-item em { font-style: normal; font-weight: 600; }
.sug-del { margin-left: auto; opacity: 0; }
.sug-item:hover .sug-del { opacity: 1; }

/* 分类导航：下划线式 */
.tabs {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 2px;
  margin: 20px auto 0; border-bottom: 1px solid var(--border);
  max-width: 680px;
}
.tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 15px 11px; margin-bottom: -1px;
  color: var(--text-2); font-size: 13px; font-weight: 500;
  border-bottom: 2px solid transparent; transition: color .16s ease, border-color .16s ease;
}
.tab .icon { width: 15px; height: 15px; }
.tab:hover { color: var(--primary); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }

.hot-words { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 7px; margin-top: 22px; }
.hot-label { color: var(--text-3); font-size: 12px; margin-right: 3px; }
.hot-chip { padding: 5px 12px; border-radius: 15px; background: var(--surface-2); color: var(--text-2); font-size: 12.5px; transition: background .16s ease, color .16s ease; }
.hot-chip:hover { background: var(--primary-soft); color: var(--primary); }

.feature-cards { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.feature-card {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px; border-radius: 16px;
  color: var(--text-2); background: transparent; border: 1px solid var(--border);
  font-size: 12.5px; transition: border-color .16s ease, color .16s ease;
}
.feature-card:hover { border-color: var(--primary); color: var(--primary); }
.fc-icon { display: grid; place-items: center; }
.fc-icon .icon { width: 15px; height: 15px; }
.fc-web .fc-icon { color: var(--web); }
.fc-news .fc-icon { color: var(--news); }
.fc-music .fc-icon { color: var(--music); }
.fc-video .fc-icon { color: var(--video); }
.fc-image .fc-icon { color: var(--image); }
.fc-doc .fc-icon { color: var(--primary); }
.feature-card strong { font-weight: 500; }
.feature-card small { display: none; }

/* ---------------------------------------------------------- 结果页状态 */
body.has-results .hero {
  padding: 12px 20px 0;
  position: sticky; top: var(--topbar-h); z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
body.has-results .hero-head,
body.has-results .hot-words,
body.has-results .feature-cards,
body.has-results .hero-glow { display: none; }
body.has-results .hero-inner { max-width: 1080px; text-align: left; }
body.has-results .search-wrap { margin: 0; max-width: 620px; }
body.has-results .search-box { height: 42px; border-radius: 22px; box-shadow: none; background: var(--surface-2); border-color: transparent; }
body.has-results .search-box:focus-within { background: var(--surface); box-shadow: var(--shadow-sm); border-color: var(--border-strong); }
body.has-results #searchInput { font-size: 14px; }
body.has-results .search-btn { height: 30px; min-width: 56px; padding: 0 13px; font-size: 12.5px; }
body.has-results .tabs { justify-content: flex-start; margin: 10px 0 0; max-width: none; border-bottom: 0; gap: 0; }
body.has-results .tab { padding: 7px 16px 10px; font-size: 13px; }
body.has-results .footer { display: none; }

.main { max-width: 1120px; margin: 0 auto; padding: 18px 20px 70px; min-height: 40vh; }
.result-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; margin-bottom: 12px; padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.result-meta { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.result-meta strong { font-size: 13px; font-weight: 500; color: var(--text-3); }
.result-meta > span { font-size: 12px; color: var(--text-3); }
.error-hint { color: var(--video) !important; }
.result-tools { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.source-chips { display: flex; gap: 5px; flex-wrap: wrap; max-width: 330px; }
.source-chip { padding: 4px 10px; border-radius: 14px; color: var(--text-2); font-size: 12px; white-space: nowrap; border: 1px solid var(--border); }
.source-chip:hover { border-color: var(--primary); color: var(--primary); }
.source-chip.active { background: var(--primary-soft); border-color: transparent; color: var(--primary); font-weight: 600; }
.source-chip.direct-filter { display: inline-flex; align-items: center; gap: 4px; }
.source-chip.direct-filter .icon { width: 12px; height: 12px; }
.source-chip.direct-filter.active { background: #e6f4ea; border-color: transparent; color: #137333; }
body.theme-dark .source-chip.direct-filter.active { background: #243d2c; color: #81c995; }
.mini-select {
  height: 30px; padding: 0 8px; border-radius: 8px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-2); font-size: 12px; outline: none;
}
.view-toggle { display: flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.view-toggle button { width: 30px; height: 28px; display: grid; place-items: center; color: var(--text-3); }
.view-toggle button .icon { width: 14px; height: 14px; }
.view-toggle button.active { background: var(--primary-soft); color: var(--primary); }
.tool-btn { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--border); color: var(--text-2); font-size: 12px; }
.tool-btn:hover { color: var(--primary); border-color: var(--primary); }
.tool-btn .icon { width: 14px; height: 14px; }
.chip-toggle {
  display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 10px;
  border-radius: 8px; border: 1px solid var(--border); background: var(--surface);
  color: var(--text-2); font-size: 12px; cursor: pointer; transition: all .15s;
}
.chip-toggle .icon { width: 13px; height: 13px; }
.chip-toggle:hover { color: var(--primary); border-color: var(--primary); }
.chip-toggle.on { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); font-weight: 600; }

/* 轻量提示条（不再是彩色大横幅） */
.open-source-tips {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 4px 0 10px; margin-bottom: 6px;
  font-size: 12px; color: var(--text-3); border-bottom: 1px solid var(--border);
}
.open-source-tips .icon { width: 14px; height: 14px; }
.open-source-tips button { padding: 2px 9px; border-radius: 12px; border: 1px solid var(--border); color: var(--text-2); font-size: 11.5px; }
.open-source-tips button:hover { color: var(--primary); border-color: var(--primary); }

/* 左结果流 + 右概览 */
.result-layout { display: block; }
.result-main { min-width: 0; max-width: 1280px; margin: 0 auto; }

/* 区块标题 */
.result-section { margin-bottom: 26px; animation: fadeUp .25s ease both; }
.section-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.section-icon { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; }
.section-icon .icon { width: 14px; height: 14px; }
.sec-web .section-icon { background: var(--primary-soft); color: var(--web); }
.sec-news .section-icon { background: #fce8e6; color: var(--news); }
.sec-music .section-icon { background: #f3e8fd; color: var(--music); }
.sec-video .section-icon { background: #fce8e6; color: var(--video); }
.sec-image .section-icon { background: #e6f4ea; color: var(--image); }
.sec-doc .section-icon { background: var(--primary-soft); color: var(--primary); }
body.theme-dark .sec-music .section-icon { background: #3a2b4a; }
body.theme-dark .sec-video .section-icon { background: #4a2b2b; }
body.theme-dark .sec-image .section-icon { background: #243d2c; }
.section-head h2 { margin: 0; font-size: 14px; font-weight: 600; }
.section-head .count { font-size: 11.5px; color: var(--text-3); }
.section-more { margin-left: auto; display: inline-flex; align-items: center; gap: 3px; color: var(--primary); font-size: 12.5px; }
.section-more:hover { text-decoration: underline; }
.section-more .icon { width: 13px; height: 13px; }

/* ---------------------------------------------------------- 网页结果（无卡片） */
.web-list { display: flex; flex-direction: column; }
.web-item { display: block; padding: 13px 4px 15px; border-bottom: 1px solid var(--border); transition: background .15s ease; }
.web-item:hover { background: var(--surface-2); }
.web-item-top { display: flex; align-items: center; gap: 7px; margin-bottom: 4px; }
.web-favicon {
  width: 20px; height: 20px; border-radius: 50%; background: var(--surface-3);
  color: var(--text-2); flex: none; display: grid; place-items: center;
  font-size: 10px; font-weight: 700;
}
.web-source { font-size: 12.5px; color: var(--text); }
.web-display { font-size: 11.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 45%; }
.web-title { font-size: 17px; font-weight: 400; color: #1a0dab; margin: 0 0 3px; line-height: 1.45; }
body.theme-dark .web-title { color: var(--primary); }
.web-item:hover .web-title { text-decoration: underline; }
.web-desc { margin: 0; color: var(--text-2); font-size: 13px; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.web-actions { display: flex; gap: 6px; margin-top: 7px; opacity: 0; transition: opacity .15s ease; }
.web-item:hover .web-actions { opacity: 1; }
.mini-action { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 6px; color: var(--text-3); font-size: 11.5px; }
.mini-action:hover { color: var(--primary); background: var(--surface-3); }
.mini-action .icon { width: 12px; height: 12px; }
.mini-action.liked { color: var(--danger); }
.mini-action.speaking { color: var(--primary); background: var(--primary-soft); animation: pulseSpeak 1.1s ease-in-out infinite; }
@keyframes pulseSpeak { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
.rel-tag {
  display: inline-block; padding: 0 5px; border-radius: 4px;
  font-size: 10.5px; line-height: 16px; color: var(--text-3);
  background: var(--surface-3);
}

/* ---------------------------------------------------------- 新闻结果 */
.news-list { display: flex; flex-direction: column; }
.news-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 13px 4px 14px; border-bottom: 1px solid var(--border);
}
.news-item:hover { background: var(--surface-2); }
.news-thumb {
  width: 108px; height: 72px; flex: none; border-radius: 8px; overflow: hidden;
  background: var(--surface-3); order: 2; margin-left: auto;
}
.news-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-main { flex: 1; min-width: 0; }
.news-top { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; }
.news-source { font-size: 12px; color: var(--text-2); font-weight: 500; }
.news-time { font-size: 11.5px; color: var(--text-3); }
.news-title { display: block; font-size: 16px; font-weight: 400; color: #1a0dab; line-height: 1.45; margin-bottom: 3px; }
body.theme-dark .news-title { color: var(--primary); }
.news-title:hover { text-decoration: underline; }
.news-desc[data-action] { cursor: pointer; }
.news-desc[data-action]:hover { color: var(--text); }
.news-desc { margin: 0; color: var(--text-2); font-size: 12.5px; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-actions { display: flex; gap: 6px; margin-top: 6px; opacity: 0; transition: opacity .15s ease; }
.news-item:hover .news-actions { opacity: 1; }
@media (max-width: 700px) { .news-thumb { width: 84px; height: 58px; } .news-actions { opacity: 1; } }

/* ---------------------------------------------------------- 文档结果 */
.doc-list { display: flex; flex-direction: column; }
.doc-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 13px 4px 14px; border-bottom: 1px solid var(--border);
}
.doc-item:hover { background: var(--surface-2); }
.doc-badge {
  width: 40px; height: 44px; flex: none; border-radius: 6px;
  display: grid; place-items: center; font-size: 10px; font-weight: 700;
  letter-spacing: .3px; color: #fff; background: var(--video);
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .12);
}
.doc-badge[title]:hover { filter: brightness(1.08); }
.doc-main { flex: 1; min-width: 0; }
.doc-title { display: block; font-size: 16px; font-weight: 400; color: #1a0dab; line-height: 1.45; margin-bottom: 3px; }
body.theme-dark .doc-title { color: var(--primary); }
.doc-title:hover { text-decoration: underline; }
.doc-desc { margin: 0; color: var(--text-2); font-size: 12.5px; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.doc-meta { display: flex; align-items: center; gap: 9px; margin-top: 5px; font-size: 11.5px; color: var(--text-3); flex-wrap: wrap; }
.doc-meta .doc-direct { color: var(--image); font-weight: 600; }
.doc-actions { display: flex; flex-direction: column; gap: 4px; flex: none; opacity: 0; transition: opacity .15s ease; }
.doc-item:hover .doc-actions { opacity: 1; }
.doc-actions .mini-action { white-space: nowrap; }
@media (max-width: 760px) { .doc-actions { opacity: 1; flex-direction: row; flex-wrap: wrap; } }

/* ---------------------------------------------------------- 卡片通用 */
.card-actions { position: absolute; top: 7px; right: 7px; display: flex; gap: 4px; z-index: 3; opacity: 0; transition: opacity .18s ease; }
.media-card:hover .card-actions, .image-card:hover .card-actions, .video-card:hover .card-actions { opacity: 1; }
.round-btn {
  width: 27px; height: 27px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .94); color: #3c4043; box-shadow: var(--shadow-sm);
  transition: background .16s ease;
}
.round-btn:hover { background: var(--primary); color: #fff; }
.round-btn.liked { background: var(--danger); color: #fff; }
.round-btn .icon { width: 14px; height: 14px; }
.tag-playable {
  position: absolute; left: 7px; top: 7px; z-index: 3;
  padding: 2px 8px; border-radius: 6px; font-size: 10.5px; font-weight: 600;
  background: rgba(24, 128, 56, .92); color: #fff;
}

/* 音乐卡片 */
.music-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 9px; }
.music-card {
  display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 8px 10px;
  align-items: center; padding: 9px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  transition: border-color .16s ease, box-shadow .16s ease; position: relative;
}
.music-card:hover { box-shadow: var(--shadow-sm); border-color: var(--border-strong); }
.music-cover {
  width: 48px; height: 48px; border-radius: 7px; flex: none; object-fit: cover;
  background: var(--surface-3); display: grid; place-items: center; color: var(--text-3); overflow: hidden;
  border: 0; padding: 0; cursor: pointer;
}
.music-cover .icon { width: 21px; height: 21px; }
.music-cover img { width: 100%; height: 100%; object-fit: cover; }
.music-info { min-width: 0; flex: 1; }
.music-title { font-weight: 500; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.music-sub { font-size: 11.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.music-badges { display: flex; align-items: center; gap: 5px; margin-top: 4px; flex-wrap: wrap; }
.chip-mini { padding: 1px 6px; border-radius: 5px; font-size: 10.5px; background: var(--surface-2); color: var(--text-3); }
.chip-mini.free { background: #e6f4ea; color: var(--image); font-weight: 600; }
.chip-mini.time { background: #f3e8fd; color: var(--music); }
body.theme-dark .chip-mini.free { background: #243d2c; }
body.theme-dark .chip-mini.time { background: #3a2b4a; }
.music-play {
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  display: grid; place-items: center; color: #fff; background: var(--music);
  transition: filter .16s ease;
}
.music-play:hover { filter: brightness(1.12); }
.music-play .icon { width: 15px; height: 15px; fill: currentColor; stroke-width: 1; }
.music-play.is-playing .icon { fill: none; stroke-width: 2.5; }
.music-card.is-current { border-color: var(--music); background: var(--surface-2); }

/* 真实媒体直链：在线播放 / 下载操作条 */
.media-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.media-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  height: 26px; padding: 0 9px; border-radius: 6px; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text-2); font-size: 11.5px; cursor: pointer;
  transition: border-color .15s ease, color .15s ease, filter .15s ease;
}
.media-btn:hover { border-color: var(--primary); color: var(--primary); }
.media-btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.media-btn.primary:hover { color: #fff; filter: brightness(1.08); }
.media-btn.ghost { background: transparent; }
.media-btn.icon { width: 27px; padding: 0; }
.media-btn .icon { width: 12px; height: 12px; }
.media-hint { flex: 1; font-size: 11px; color: var(--text-3); }
.chip-mini.mp3 { background: #e8f0fe; color: #1a73e8; font-weight: 700; letter-spacing: .3px; }
.chip-mini.link-only { background: var(--surface-3); color: var(--text-3); }
body.theme-dark .chip-mini.mp3 { background: #22365c; color: #8ab4f8; }
.tag-link-only {
  position: absolute; left: 7px; top: 7px; z-index: 3;
  padding: 2px 8px; border-radius: 6px; font-size: 10.5px; font-weight: 600;
  background: rgba(60, 64, 72, .9); color: #fff;
}
.tag-embed {
  position: absolute; left: 7px; top: 7px; z-index: 3;
  padding: 2px 8px; border-radius: 6px; font-size: 10.5px; font-weight: 600;
  background: rgba(26, 105, 220, .94); color: #fff;
}
.media-url {
  display: block; margin-top: 6px; max-width: 100%; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; padding: 3px 7px;
  border: 1px solid var(--border); border-radius: 5px; background: var(--surface-2);
  font-family: ui-monospace, Consolas, "Courier New", monospace; font-size: 10.5px; color: var(--text-3);
}

/* 视频卡片 */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.video-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; transition: box-shadow .16s ease; position: relative; }
.video-card:hover { box-shadow: var(--shadow-sm); }
.video-thumb {
  position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden;
  background: var(--surface-2); display: grid; place-items: center; color: var(--text-3);
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-thumb .ph-icon { width: 30px; height: 30px; }
.video-play-overlay { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(10, 14, 30, .12); opacity: 0; transition: opacity .16s ease; }
.video-card:hover .video-play-overlay { opacity: 1; }
.video-play-overlay span { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.95); color: #222; }
.video-play-overlay .icon { width: 19px; height: 19px; fill: currentColor; stroke-width: 1; margin-left: 2px; }
.video-duration { position: absolute; bottom: 6px; right: 6px; padding: 1px 6px; border-radius: 4px; background: rgba(12,16,30,.82); color: #fff; font-size: 10.5px; }
.video-body { padding: 9px 11px 11px; }
.video-title { font-size: 12.5px; font-weight: 500; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 37px; }
.video-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 6px; font-size: 11px; color: var(--text-3); }
.video-foot span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 图片瀑布流 */
.image-grid { columns: 4 170px; column-gap: 9px; }
.image-grid.list-view { columns: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 9px; }
.image-card { position: relative; break-inside: avoid; margin-bottom: 9px; border-radius: 8px; overflow: hidden; background: var(--surface-2); cursor: zoom-in; }
.image-card.img-fail { display: none; }
.image-card:hover { box-shadow: var(--shadow-sm); }
.image-card img { width: 100%; min-height: 110px; display: block; object-fit: cover; }
.image-grid.list-view .image-card img { height: 150px; }
.image-overlay { position: absolute; inset: auto 0 0 0; padding: 18px 9px 8px; background: linear-gradient(transparent, rgba(10,14,28,.78)); color: #fff; opacity: 0; transition: opacity .16s ease; }
.image-card:hover .image-overlay { opacity: 1; }
.image-overlay .t { font-size: 11.5px; font-weight: 500; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.image-overlay .s { font-size: 10.5px; opacity: .8; margin-top: 2px; }

/* 骨架屏 / 空状态 */
.skeleton { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 15px; }
.sk-line { height: 11px; border-radius: 5px; margin-bottom: 9px; background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; }
.sk-line.lg { height: 16px; width: 60%; }
.sk-line.sm { width: 36%; height: 10px; }
.sk-block { height: 120px; border-radius: 8px; background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; }
.sk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-2); }
.empty-icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 16px; background: var(--surface-2); color: var(--text-3); }
.empty-icon .icon { width: 28px; height: 28px; }
.empty-state h3 { margin: 0 0 7px; color: var(--text); font-size: 17px; }
.empty-state p { margin: 0 0 18px; font-size: 13px; }
.empty-actions { display: flex; gap: 9px; justify-content: center; flex-wrap: wrap; }
.primary-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 17px; border-radius: 18px; background: var(--primary); color: #fff; font-weight: 500; font-size: 13px; }
.primary-btn:hover { background: var(--primary-hover); }
.primary-btn .icon { width: 15px; height: 15px; }
.ghost-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 17px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border-strong); color: var(--text-2); font-size: 13px; }
.ghost-btn:hover { border-color: var(--primary); color: var(--primary); }

/* ---------------------------------------------------------- 分页（经典数字页码） */
.pager { margin: 22px 0 8px; margin-right: 320px; }
.pager-inner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px; }
.pg-info { font-size: 12px; color: var(--text-3); white-space: nowrap; }
.pg-info b { color: var(--text-2); font-weight: 600; }
.pg-btns { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.pg-btn, .pg-num {
  min-width: 32px; height: 32px; padding: 0 9px; border-radius: 7px;
  display: inline-grid; place-items: center; font-size: 12.5px;
  color: var(--primary); transition: background .15s ease;
}
.pg-btn { padding: 0 11px; font-weight: 500; }
.pg-btn:hover, .pg-num:hover { background: var(--primary-soft); }
.pg-num.active { background: var(--primary); color: #fff; font-weight: 600; pointer-events: none; }
.pg-btn:disabled { color: var(--text-3); opacity: .55; cursor: default; background: none; }
.pg-ellipsis { padding: 0 4px; color: var(--text-3); font-size: 12px; }
.pg-extra { display: flex; align-items: center; gap: 10px; }
.pg-more { padding: 6px 13px; border-radius: 16px; border: 1px solid var(--border-strong); color: var(--primary); font-size: 12px; }
.pg-more:hover { border-color: var(--primary); background: var(--primary-soft); }
.pg-more:disabled { opacity: .5; cursor: default; }
.pg-size { font-size: 12px; color: var(--text-3); display: inline-flex; align-items: center; gap: 4px; }
.pg-size select { height: 28px; padding: 0 6px; border-radius: 7px; border: 1px solid var(--border-strong); background: var(--surface); font-size: 12px; outline: none; }

/* ---------------------------------------------------------- 页脚 */
.footer { border-top: 1px solid var(--border); background: var(--surface-2); padding: 24px 20px 30px; }
.footer-inner { max-width: 1000px; margin: 0 auto; text-align: center; }
.footer-brand { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; }
.footer-brand span:last-child { color: var(--text-3); font-size: 12.5px; }
.footer-note { margin: 10px auto 6px; max-width: 700px; color: var(--text-3); font-size: 11.5px; line-height: 1.75; }
.footer-keys { margin: 0; color: var(--text-3); font-size: 11px; }
kbd { display: inline-block; padding: 1px 5px; margin: 0 2px; border-radius: 4px; background: var(--surface); border: 1px solid var(--border); font-family: inherit; font-size: 10.5px; }

/* ---------------------------------------------------------- 抽屉 */
.overlay { position: fixed; inset: 0; z-index: 80; background: rgba(20, 24, 34, .38); animation: fadeIn .18s ease; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 90;
  width: min(390px, 92vw); background: var(--surface);
  border-left: 1px solid var(--border); box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; animation: slideIn .25s cubic-bezier(.22,.9,.3,1);
}
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.drawer-head h2 { margin: 0; font-size: 16px; }
.drawer-body { flex: 1; overflow: auto; padding: 16px 20px 28px; }
.drawer-empty { text-align: center; color: var(--text-3); padding: 56px 10px; }
.drawer-empty .icon { width: 32px; height: 32px; margin-bottom: 9px; }
.drawer-row { display: flex; align-items: center; gap: 10px; padding: 10px 11px; border-radius: 9px; border: 1px solid var(--border); margin-bottom: 8px; }
.drawer-row:hover { border-color: var(--primary); }
.drawer-row-main { flex: 1; min-width: 0; }
.drawer-row-title { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drawer-row-sub { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.drawer-row .icon-btn { width: 27px; height: 27px; }
.drawer-row .icon-btn .icon { width: 14px; height: 14px; }
.drawer-section-title { font-size: 11.5px; font-weight: 600; color: var(--text-3); margin: 16px 0 9px; }
.drawer-clear { width: 100%; padding: 9px; border-radius: 9px; background: var(--surface-2); color: var(--text-2); font-size: 12.5px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.drawer-clear:hover { color: var(--danger); }
.drawer-clear .icon { width: 14px; height: 14px; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.setting-row:last-of-type { border-bottom: 0; }
.setting-label strong { display: block; font-size: 13px; font-weight: 500; }
.setting-label small { display: block; color: var(--text-3); font-size: 11px; margin-top: 2px; }
.setting-row select, .setting-row input[type="number"] { height: 32px; padding: 0 8px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); outline: none; font-size: 12.5px; }
.switch { position: relative; width: 38px; height: 22px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--surface-3); transition: background .2s ease; }
.switch span::before { content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s ease; }
.switch input:checked + span { background: var(--primary); }
.switch input:checked + span::before { transform: translateX(16px); }
.drawer-tip { margin-top: 20px; padding: 11px 13px; border-radius: 9px; background: var(--surface-2); color: var(--text-2); font-size: 11.5px; line-height: 1.7; }

/* ---------------------------------------------------------- 灯箱 / 视频弹窗 / 播放器 */
.lightbox { position: fixed; inset: 0; z-index: 110; background: rgba(8, 10, 15, .97); display: flex; align-items: center; justify-content: center; animation: fadeIn .18s ease; }
.lb-stage { position: absolute; inset: 0; display: grid; place-items: center; }
.lb-stage img { max-width: 100vw; max-height: 100vh; width: auto; height: auto; object-fit: contain; cursor: zoom-out; }
.lb-close { position: absolute; top: 18px; right: 20px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.12); color: #fff; z-index: 3; }
.lb-close:hover { background: rgba(255,255,255,.25); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.12); color: #fff; z-index: 3; }
.lb-nav:hover { background: rgba(255,255,255,.26); }
.lb-prev { left: 20px; } .lb-next { right: 20px; }
.lb-bar { position: absolute; bottom: 0; left: 0; right: 0; padding: 34px 22px 16px; background: linear-gradient(transparent, rgba(0,0,0,.8)); color: #fff; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; z-index: 3; }
.lb-bar .lb-title { flex: 1; min-width: 180px; font-size: 13.5px; font-weight: 500; }
.lb-bar .lb-sub { font-size: 11.5px; opacity: .7; margin-top: 2px; }
.lb-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 8px; background: rgba(255,255,255,.14); color: #fff; font-size: 12px; }
.lb-btn:hover { background: rgba(255,255,255,.28); }
.lb-btn .icon { width: 14px; height: 14px; }

.modal { position: fixed; inset: 0; z-index: 105; background: rgba(12, 14, 20, .78); display: flex; align-items: center; justify-content: center; padding: 20px; animation: fadeIn .18s ease; }
.modal-card { width: min(880px, 96vw); background: var(--surface); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-lg); position: relative; }
.modal-close { position: absolute; top: 10px; right: 10px; z-index: 5; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(20,24,40,.6); color: #fff; }
.modal-close:hover { background: var(--danger); }
.modal-stage { width: 100%; aspect-ratio: 16/9; background: #0c0f18; display: grid; place-items: center; position: relative; }
.modal-stage video { width: 100%; height: 100%; object-fit: contain; }
.modal-stage img.poster { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.modal-stage .poster-info { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: #fff; text-align: center; padding: 20px; }
.modal-stage .poster-info .icon { width: 38px; height: 38px; }
.modal-stage .poster-info strong { font-size: 16px; }
.modal-stage .poster-info small { opacity: .75; }
.modal-stage .poster-info .pi-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
/* 视频在本页内嵌播放：官方 iframe 播放器撑满 16:9 舞台 */
.modal-stage iframe.embed-frame {
  width: 100%; height: 100%; border: 0; display: block; background: #0c0f18;
}
.embed-bar {
  position: absolute; left: 0; right: 0; top: 0; z-index: 4;
  display: flex; align-items: center; gap: 8px;
  padding: 9px 46px 14px 12px;
  background: linear-gradient(rgba(8, 11, 20, .88), rgba(8, 11, 20, 0));
  color: #fff; font-size: 11.5px; pointer-events: none;
}
.embed-bar > * { pointer-events: auto; }
.embed-bar .icon { width: 14px; height: 14px; flex: none; }
.embed-bar span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: .9; }
.embed-bar .eb-link {
  flex: none; padding: 4px 9px; border-radius: 6px;
  background: rgba(255, 255, 255, .16); color: #fff; font-size: 11px;
}
.embed-bar .eb-link:hover { background: rgba(255, 255, 255, .3); }
.modal-info { padding: 14px 18px 18px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.modal-info .mi-main { flex: 1; min-width: 180px; }
.modal-info .mi-main strong { display: block; font-size: 14px; }
.modal-info .mi-main small { color: var(--text-3); font-size: 11.5px; }

.player {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
  background: var(--surface); border-top: 1px solid var(--border);
  box-shadow: 0 -4px 18px rgba(20,28,60,.08); animation: slideUp .25s ease;
}
.player-progress { height: 3px; background: var(--surface-3); cursor: pointer; }
.player-progress-fill { height: 100%; width: 0; background: var(--music); transition: width .12s linear; }
.player-inner { height: 66px; max-width: 1240px; margin: 0 auto; padding: 0 18px; display: flex; align-items: center; gap: 12px; }
.player-cover { width: 42px; height: 42px; border-radius: 8px; flex: none; overflow: hidden; background: var(--surface-3); color: var(--text-3); display: grid; place-items: center; }
.player-cover img { width: 100%; height: 100%; object-fit: cover; }
.player-meta { min-width: 110px; width: 180px; }
.player-meta strong { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-meta span { display: block; font-size: 11px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-controls { display: flex; align-items: center; gap: 6px; }
.pbtn { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--text-2); }
.pbtn:hover { background: var(--surface-2); color: var(--primary); }
.pbtn .icon { width: 16px; height: 16px; }
.pbtn-main { width: 38px; height: 38px; background: var(--music); color: #fff; }
.pbtn-main:hover { color: #fff; filter: brightness(1.1); }
.pbtn-main .icon { width: 18px; height: 18px; fill: currentColor; stroke-width: 1; }
.player-time { font-size: 11px; color: var(--text-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.player-extra { display: flex; align-items: center; gap: 3px; margin-left: auto; }
.player-extra .vol-icon { width: 15px; height: 15px; color: var(--text-3); }
#volumeRange { width: 72px; accent-color: var(--primary); }
.pbtn.on { color: var(--primary); background: var(--primary-soft); }
.queue-panel { max-height: 240px; overflow: auto; border-top: 1px solid var(--border); padding: 10px 18px 14px; background: var(--surface); }
.queue-row { display: flex; align-items: center; gap: 9px; padding: 7px 9px; border-radius: 7px; font-size: 12px; }
.queue-row:hover { background: var(--surface-2); }
.queue-row.active { color: var(--primary); font-weight: 600; }
.queue-row .idx { width: 18px; color: var(--text-3); }

/* Toast */
.toast-stack { position: fixed; top: 68px; right: 18px; z-index: 200; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 8px; padding: 10px 15px; border-radius: 9px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); font-size: 12.5px; max-width: 330px; animation: toastIn .22s ease; }
.toast .icon { width: 15px; height: 15px; color: var(--primary); }
.toast.success .icon { color: var(--image); }
.toast.error .icon { color: var(--danger); }

/* 动画 */
@keyframes fadeUp { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideIn { from { transform: translateX(100%); } to { transform: none; } }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: none; } }
@keyframes toastIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* 响应式 */
@media (max-width: 1000px) {
  .pager { margin-right: 0; }
  .image-grid { columns: 3 150px; }
}
@media (max-width: 760px) {
  :root { --topbar-h: 52px; }
  .topbar { padding: 0 12px; }
  .brand-text { font-size: 15px; } .brand-sub { display: none; }
  .hero { padding: 42px 14px 28px; }
  .hero-brand-name { font-size: 46px; }
  .hero-head p { font-size: 12.5px; }
  .search-box { height: 46px; }
  /* 七个栏目在手机上改为单行横滑：换行会让 active 下划线错位到第二行 */
  .tabs, body.has-results .tabs {
    flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden;
    justify-content: flex-start; gap: 0;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    scroll-snap-type: x proximity;
    margin-left: -14px; margin-right: -14px;
    padding-left: 14px; padding-right: 14px;
  }
  .tabs::-webkit-scrollbar, body.has-results .tabs::-webkit-scrollbar { display: none; }
  .tabs.tabs-fade {
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 26px), transparent 100%);
    mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 26px), transparent 100%);
  }
  /* 滚动容器会裁掉负 margin 的边框，这里改用内阴影画选中线 */
  .tab, body.has-results .tab {
    flex: none; white-space: nowrap; scroll-snap-align: start;
    margin-bottom: 0; border-bottom: 0;
    padding: 8px 11px; font-size: 12px;
  }
  .tab.active, body.has-results .tab.active { box-shadow: inset 0 -2px 0 var(--primary); }
  .tab .icon { display: none; }
  .feature-cards { gap: 6px; margin-top: 22px; }
  .feature-card { padding: 5px 10px; font-size: 11.5px; }
  .main { padding: 14px 12px 60px; }
  .result-tools { width: 100%; }
  .source-chips { max-width: 100%; }
  .image-grid { columns: 2 130px; column-gap: 8px; }
  .image-card { margin-bottom: 8px; }
  .music-grid, .video-grid { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 8px; }
  .music-card { padding: 8px; gap: 8px; }
  .music-cover { width: 42px; height: 42px; }
  .music-play { width: 29px; height: 29px; }
  .player-inner { height: 62px; padding: 0 10px; gap: 8px; }
  .player-meta { width: auto; flex: 1; min-width: 55px; }
  .player-time, .player-extra .vol-icon, #volumeRange, .player-extra [data-action="toggle-queue"], .player-extra [data-action="toggle-repeat"], .player-extra [data-action="player-download"] { display: none; }
  .lb-nav { width: 36px; height: 36px; }
  .lb-prev { left: 7px; } .lb-next { right: 7px; }
  .pg-info { width: 100%; text-align: center; }
  .footer { padding: 20px 12px 26px; }
  .modal { padding: 10px; }
  .embed-bar { padding: 7px 40px 11px 8px; font-size: 10.5px; gap: 5px; }
  .embed-bar .eb-link { padding: 3px 6px; font-size: 10px; }
  .modal-stage .poster-info strong { font-size: 13px; }
  .modal-stage .poster-info small { font-size: 10.5px; }
}
@media (max-width: 420px) {
  .hot-words { gap: 5px; }
  .image-grid { columns: 2 110px; }
  .web-title { font-size: 15.5px; }
}

/* ---------------- 后台联动：公告 / 维护 / 入口 ---------------- */
.site-notice { display: flex; align-items: center; gap: 9px; padding: 9px 20px; font-size: 12.5px; line-height: 1.6; border-bottom: 1px solid var(--border); }
.site-notice .icon { width: 15px; height: 15px; flex: none; }
.site-notice span { flex: 1; }
.site-notice button { border: 0; background: none; color: inherit; opacity: .6; cursor: pointer; display: grid; place-items: center; }
.site-notice button:hover { opacity: 1; }
.site-notice.notice-info { background: #e8f0fe; color: #1967d2; }
.site-notice.notice-warn { background: #fef7e0; color: #b06000; }
.site-notice.notice-ok { background: #e6f4ea; color: #137333; }
body.theme-dark .site-notice.notice-info { background: #1c3249; color: #8ab4f8; }
body.theme-dark .site-notice.notice-warn { background: #41331c; color: #fdd663; }
body.theme-dark .site-notice.notice-ok { background: #1b3a28; color: #81c995; }
.admin-entry { color: var(--primary); font-weight: 500; margin-left: 6px; }
.admin-entry:hover { text-decoration: underline; }
.maintenance-mask { position: fixed; inset: 0; z-index: 999; background: rgba(16, 22, 40, .72); display: grid; place-items: center; padding: 20px; }
.mm-card { background: var(--surface); color: var(--text); border-radius: 14px; padding: 32px 30px; max-width: 410px; width: 100%; text-align: center; box-shadow: var(--shadow-lg); }
.mm-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; margin: 0 auto 16px; }
.mm-icon .icon { width: 26px; height: 26px; }
.mm-card h2 { margin: 0 0 9px; font-size: 20px; }
.mm-card p { margin: 0 0 12px; color: var(--text-2); font-size: 13px; line-height: 1.7; }
.mm-card small { display: block; color: var(--text-3); font-size: 11px; line-height: 1.6; }
.mm-link { display: inline-block; margin-top: 18px; padding: 8px 17px; border-radius: 18px; background: var(--primary); color: #fff; font-size: 12.5px; font-weight: 500; }
.mm-link:hover { background: var(--primary-hover); }

/* ============================================================
   新闻站内阅读 + 多风格语音播报
   ============================================================ */

.news-full {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; padding: 1px 7px; border-radius: 20px;
  background: rgba(197, 34, 31, .09); color: var(--news);
  border: 1px solid rgba(197, 34, 31, .22); white-space: nowrap;
}
.news-full .icon { width: 11px; height: 11px; }
.news-item.is-reading { background: var(--primary-soft); }

.reader-modal { padding: 24px 16px; }
.reader-card {
  width: min(880px, 97vw); max-height: 92vh; display: flex; flex-direction: column;
  background: var(--surface); border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow-lg); position: relative; animation: fadeIn .18s ease;
}
.reader-head { padding: 26px 32px 14px; flex: none; }
.reader-meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-3); margin-bottom: 8px; }
.reader-meta .rm-source {
  color: var(--news); font-weight: 600; background: rgba(197, 34, 31, .08);
  padding: 1px 8px; border-radius: 20px;
}
.reader-title { margin: 0 0 8px; font-size: 23px; line-height: 1.45; font-weight: 600; letter-spacing: -.2px; }
.reader-sub { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--text-3); align-items: center; }
.reader-sub a { color: var(--primary); text-decoration: none; }
.reader-sub a:hover { text-decoration: underline; }

.tts-panel {
  flex: none; padding: 11px 32px 12px;
  background: var(--surface-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.tts-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tts-label { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-3); font-weight: 500; }
.tts-label .icon { width: 14px; height: 14px; }
.tts-styles { display: flex; gap: 7px; flex-wrap: wrap; }
.tts-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 11px; border-radius: 20px; cursor: pointer;
  border: 1px solid var(--border-strong); background: var(--surface);
  color: var(--text-2); font-size: 12.5px; line-height: 1.4;
  transition: all .15s ease;
}
.tts-chip small { font-size: 10.5px; opacity: .62; }
.tts-chip:hover { border-color: var(--primary); color: var(--primary); }
.tts-chip.active {
  background: var(--primary-soft); border-color: var(--primary);
  color: var(--primary); font-weight: 600;
}
.tts-controls { margin-top: 9px; gap: 8px; }
.tts-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 12px; border-radius: 7px; cursor: pointer;
  border: 1px solid var(--border-strong); background: var(--surface);
  color: var(--text-2); font-size: 12.5px; font-family: inherit;
}
.tts-btn .icon { width: 13px; height: 13px; }
.tts-btn:hover { background: var(--surface-3); color: var(--text); }
.tts-btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
.tts-btn.primary:hover { background: var(--primary-hover); color: #fff; }
.tts-btn.primary.is-playing { background: var(--danger); border-color: var(--danger); }
.tts-rate { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-3); }
.tts-rate input { width: 96px; accent-color: var(--primary); }
.tts-rate b { color: var(--text-2); font-weight: 600; min-width: 34px; }
.tts-progress { flex: 1 1 90px; height: 4px; border-radius: 4px; background: var(--surface-3); overflow: hidden; min-width: 70px; }
.tts-progress i { display: block; height: 100%; width: 0; background: var(--primary); transition: width .25s linear; }
.tts-mini {
  margin-left: 4px; padding: 4px 9px; font-size: 11px; cursor: pointer;
  border: 1px dashed var(--border); border-radius: 999px;
  background: transparent; color: var(--text-3); white-space: nowrap;
}
.tts-mini:hover, .tts-mini.active { border-style: solid; border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }

/* 音色面板 */
.voice-panel {
  margin-top: 10px; padding: 12px 14px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border);
}
.vp-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.vp-head strong { font-size: 12.5px; }
.vp-modes { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.vp-mode { padding: 3px 10px; font-size: 11.5px; background: transparent; border: 0; cursor: pointer; color: var(--text-3); }
.vp-mode.active { background: var(--primary); color: #fff; }
.vp-note { margin: 8px 0 10px; font-size: 11.5px; line-height: 1.6; color: var(--text-3); }
.vp-list { display: flex; flex-direction: column; gap: 6px; max-height: 260px; overflow: auto; }
.vp-row {
  display: flex; align-items: center; gap: 8px; padding: 6px 8px;
  border-radius: 8px; background: var(--surface-2); font-size: 12px;
}
.vp-row.is-bad { opacity: .62; }
.vp-name { min-width: 96px; font-weight: 600; display: flex; flex-direction: column; line-height: 1.25; }
.vp-name small { font-weight: 400; font-size: 10px; color: var(--text-3); }
.vp-tag { padding: 1px 6px; border-radius: 999px; font-size: 10.5px; white-space: nowrap; }
.vp-tag.local { background: color-mix(in srgb, #16a34a 14%, transparent); color: #15803d; }
.vp-tag.online { background: color-mix(in srgb, #2563eb 14%, transparent); color: #1d4ed8; }
.vp-tag.bad { background: color-mix(in srgb, #dc2626 14%, transparent); color: #b91c1c; }
.vp-g { font-size: 11px; color: var(--text-2); white-space: nowrap; min-width: 46px; }
.vp-used { flex: 1; font-size: 11px; color: var(--text-3); }
.vp-acts { display: flex; gap: 6px; }
.vp-btn {
  padding: 3px 9px; font-size: 11.5px; cursor: pointer; white-space: nowrap;
  border: 1px solid var(--border); border-radius: 7px; background: var(--surface); color: var(--text-2);
}
.vp-btn:hover { border-color: var(--primary); color: var(--primary); }
.vp-btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.vp-empty { padding: 14px; text-align: center; font-size: 12px; color: var(--text-3); }
body.theme-dark .vp-tag.local { color: #4ade80; }
body.theme-dark .vp-tag.online { color: #60a5fa; }
body.theme-dark .vp-tag.bad { color: #f87171; }

.tts-hint { margin: 8px 0 0; font-size: 11.5px; color: var(--text-3); line-height: 1.5; }

/* 语音可用性提示：当前浏览器拿不到真男声时引导换 Edge */
.voice-warn {
  display: flex; align-items: center; gap: 12px; justify-content: space-between;
  padding: 9px 12px; margin: 0 0 10px; border-radius: 10px;
  background: rgba(255, 170, 40, .12);
  border: 1px solid rgba(255, 170, 40, .42);
  color: var(--text); font-size: 12.5px; line-height: 1.55;
}
.voice-warn[hidden] { display: none !important; }
.voice-warn .tts-mini { flex: 0 0 auto; white-space: nowrap; }
.voice-warn .tts-mini[hidden] { display: none !important; }
body.theme-dark .voice-warn { background: rgba(255, 170, 40, .14); border-color: rgba(255, 170, 40, .38); }

.reader-body {
  flex: 1 1 auto; overflow-y: auto; padding: 22px 34px 30px;
  font-size: 16.5px; line-height: 1.95; color: var(--text); letter-spacing: .1px;
  scroll-behavior: smooth;
}
.reader-body .reader-p {
  margin: 0 0 17px; padding: 2px 10px 2px 0; border-radius: 6px;
  transition: background .2s ease, box-shadow .2s ease;
}
.reader-body .reader-p.is-reading {
  background: var(--primary-soft);
  box-shadow: inset 3px 0 0 var(--primary);
  padding: 8px 12px; margin-left: -12px; margin-right: -12px;
}
.reader-body .reader-lead { color: var(--text-2); font-size: 15px; margin-bottom: 18px; }
.reader-loading, .reader-error { padding: 40px 0; text-align: center; color: var(--text-3); font-size: 13px; }
.reader-error { color: var(--danger); }
.reader-art { margin: 0 0 20px; }
.reader-art img { width: 100%; border-radius: 10px; display: block; }
.reader-foot {
  flex: none; padding: 9px 32px; border-top: 1px solid var(--border);
  font-size: 11.5px; color: var(--text-3); display: flex; gap: 14px; flex-wrap: wrap; align-items: center;
  background: var(--surface);
}
.reader-foot .rf-spacer { flex: 1; }
@media (max-width: 700px) {
  .reader-modal { padding: 0; }
  .reader-card { width: 100vw; height: 100vh; max-height: 100vh; border-radius: 0; }
  .reader-head { padding: 20px 18px 10px; }
  .reader-title { font-size: 19px; }
  .tts-panel { padding: 10px 16px; }
  .reader-body { padding: 18px 18px 26px; font-size: 16px; }
  .reader-foot { padding: 8px 16px; }
  .tts-rate { display: none; }
}

/* 新闻卡片：阅读 / 播报入口常显，便于发现 */
.news-item .news-actions { opacity: 1; }
.news-item .news-actions .mini-action { font-size: 12px; }
.reader-body { min-height: 240px; }

/* 人物音色行 + 播报计数 */
.tts-panel .tts-row + .tts-row { margin-top: 7px; }
.tts-styles { row-gap: 6px; }
.tts-panel .tts-chip small { margin-left: 3px; }

/* 正在播报字幕条：声音与文字同屏 */
.reader-now {
  flex: none; display: none; align-items: flex-start; gap: 8px;
  margin: 0 32px 6px; padding: 9px 12px; border-radius: 9px;
  background: var(--primary-soft); border: 1px solid color-mix(in srgb, var(--primary) 26%, transparent);
  font-size: 13px; line-height: 1.6; color: var(--text);
  max-height: 64px; overflow: hidden;
}
.reader-now.on { display: flex; }
.reader-now .rn-dot {
  flex: none; width: 7px; height: 7px; margin-top: 6px; border-radius: 50%;
  background: var(--primary); animation: pulseDot 1.1s ease-in-out infinite;
}
.reader-now .rn-text {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
@keyframes pulseDot {
  0%, 100% { opacity: .35; transform: scale(.82); }
  50% { opacity: 1; transform: scale(1.12); }
}

/* 逐句高亮：正在朗读的那一句单独描出来 */
.reader-body .reader-s { transition: background .18s ease, color .18s ease; border-radius: 4px; }
.reader-body .reader-s.is-reading {
  background: color-mix(in srgb, var(--primary) 22%, transparent);
  box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--primary) 34%, transparent);
  color: var(--text);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.reader-body .reader-p.is-reading { background: color-mix(in srgb, var(--primary-soft) 30%, transparent); }

/* 音乐：整曲 / 试听片段 标签 */
.chip-mini.full { background: color-mix(in srgb, #16a34a 14%, transparent); color: #15803d; font-weight: 600; }
.chip-mini.preview { background: color-mix(in srgb, #f59e0b 16%, transparent); color: #b45309; font-weight: 600; }
.chip-mini.free { display: inline-flex; align-items: center; gap: 3px; }
.chip-mini.free .icon { width: 11px; height: 11px; }
body.theme-dark .chip-mini.full { color: #4ade80; }
body.theme-dark .chip-mini.preview { color: #fbbf24; }
@media (max-width: 700px) {
  .reader-now { margin: 0 16px 4px; font-size: 12.5px; max-height: 58px; }
}
.tts-count {
  font-size: 11.5px; color: var(--text-3); white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 700px) {
  .tts-count { display: none; }
  .tts-panel .tts-chip { padding: 4px 9px; font-size: 12px; }
}

/* ============================================================
   v2.12 · 事件聚合 / 今日热榜 / 分享导出
   ============================================================ */

/* ---------- 多源事件聚合 ---------- */
.cluster-badge {
  display: inline-flex; align-items: center; gap: 3px; flex: none;
  padding: 1px 8px; border-radius: 20px; cursor: pointer;
  background: var(--primary-soft); color: var(--primary);
  font-size: 11.5px; font-weight: 500; white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.cluster-badge:hover { background: var(--primary); color: #fff; }
.cluster-badge .icon { width: 11px; height: 11px; }
.cluster-badge.open { background: var(--primary); color: #fff; }

.cluster-panel {
  display: flex; flex-direction: column; gap: 1px;
  margin: 7px 0 9px; padding: 7px 9px;
  background: var(--surface-2);
  border-left: 2px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  animation: clusterIn .16s ease;
}
@keyframes clusterIn { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
.cluster-hd { font-size: 11.5px; color: var(--text-3); padding: 1px 7px 4px; }
.cluster-row {
  display: flex; align-items: baseline; gap: 8px;
  padding: 5px 7px; border-radius: 6px; cursor: pointer;
  color: var(--text-2); font-size: 13px; transition: background .14s ease, color .14s ease;
}
.cluster-row:hover, .cluster-row:focus-visible { background: var(--surface); color: var(--primary); outline: none; }
.cluster-src {
  flex: none; width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 11.5px; color: var(--text-3);
}
.cluster-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cluster-time { flex: none; font-size: 11.5px; color: var(--text-3); }

/* ---------- 今日热榜 ---------- */
.hot-chip.is-top {
  color: var(--danger); font-weight: 500;
  background: rgba(217, 48, 37, .09);
}
.hot-chip.is-top:hover { background: rgba(217, 48, 37, .16); color: var(--danger); }
.hot-rank {
  display: inline-flex; align-items: center; justify-content: center;
  width: 14px; height: 14px; margin-right: 4px; border-radius: 4px;
  background: var(--danger); color: #fff;
  font-size: 9.5px; font-style: normal; font-weight: 700; vertical-align: 1px;
}
.hot-words .hot-label .icon { width: 12px; height: 12px; margin-right: 3px; vertical-align: -1px; }

/* ---------- 分享 / 导出菜单 ---------- */
.tool-menu { position: relative; display: inline-flex; }
.tool-btn .caret { width: 11px; height: 11px; transform: rotate(90deg); opacity: .55; }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 7px); z-index: 80;
  min-width: 198px; padding: 5px;
  display: flex; flex-direction: column; gap: 1px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; box-shadow: var(--shadow-lg);
}
.menu-item {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 7px 9px; border-radius: 7px; text-align: left;
  color: var(--text-2); font-size: 12.5px; transition: background .14s ease, color .14s ease;
}
.menu-item:hover { background: var(--surface-2); color: var(--primary); }
.menu-item .icon { width: 14px; height: 14px; flex: none; }
.menu-item span { flex: 1; }
.menu-item small { color: var(--text-3); font-size: 11px; }
.menu-sep { height: 1px; margin: 4px 2px; background: var(--border); }
.menu-title { padding: 5px 9px 2px; font-size: 11px; color: var(--text-3); }

@media (max-width: 700px) {
  .cluster-src { width: 56px; }
  .menu-panel { right: auto; left: 0; }
}
.cluster-more {
  flex: none; padding: 0 5px; border-radius: 4px;
  background: var(--surface-3); color: var(--text-3);
  font-size: 10.5px; line-height: 16px;
}

/* ---------- 音色缺失提示（v2.13） ---------- */
.vp-warn {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin: 8px 0 4px; padding: 9px 11px;
  border-radius: 9px; line-height: 1.6;
  background: rgba(217, 48, 37, .07);
  border: 1px solid rgba(217, 48, 37, .18);
  color: var(--text-2); font-size: 12.5px;
}
.vp-warn b { color: var(--danger); }
.vp-warn small { flex-basis: 100%; color: var(--text-3); font-size: 11.5px; }
.vp-warn .vp-btn { margin-left: auto; }

/* 「你是不是要找」纠正条 */
.correct-bar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 0 0 14px; padding: 10px 14px; border-radius: 12px;
  background: rgba(255, 170, 40, .10);
  border: 1px solid rgba(255, 170, 40, .38);
  font-size: 13.5px; color: var(--text);
}
.correct-bar .cb-icon { display: inline-flex; color: #d97706; }
.correct-bar .cb-icon .icon { width: 16px; height: 16px; }
.cb-link {
  border: 0; background: transparent; padding: 2px 6px; border-radius: 6px;
  font: inherit; font-weight: 700; color: var(--primary); cursor: pointer;
  border-bottom: 1px dashed currentColor;
}
.cb-link:hover { background: rgba(37, 99, 235, .10); }
.cb-note { font-size: 11.5px; color: var(--text-3); }
body.theme-dark .correct-bar { background: rgba(255, 170, 40, .12); }

/* v2.24：结果质量提示条（相关结果偏多 / 已清理无效重复条目） */
.quality-bar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 0 0 14px; padding: 9px 14px; border-radius: 12px;
  background: rgba(37, 99, 235, .07);
  border: 1px solid rgba(37, 99, 235, .22);
  font-size: 13px; color: var(--text-2);
}
.quality-bar b { color: var(--text); }
.qb-icon { display: inline-flex; color: var(--primary); }
.qb-icon .icon { width: 15px; height: 15px; }
.qb-btn {
  margin-left: auto; padding: 4px 12px; border-radius: 8px;
  border: 1px solid var(--primary); background: transparent;
  color: var(--primary); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.qb-btn:hover { background: rgba(37, 99, 235, .10); }
body.theme-dark .quality-bar { background: rgba(59, 130, 246, .12); border-color: rgba(59, 130, 246, .30); }
@media (max-width: 640px) {
  .quality-bar { padding: 9px 11px; font-size: 12.5px; }
  .qb-btn { margin-left: 0; }
}

/* ============================================================
   v2.16：稍后读 / 命令面板 / 搜索洞察
   ============================================================ */

/* ---------- 稍后读 ---------- */
.badge.is-unread { background: var(--primary); }
.later-tabs { display: flex; gap: 6px; margin: 0 0 10px; }
.later-tab {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 7px 8px; border-radius: 9px; font-size: 12.5px; font-weight: 600;
  color: var(--text-2); background: var(--surface-2); border: 1px solid transparent; cursor: pointer;
}
.later-tab i {
  font-style: normal; font-size: 10.5px; font-weight: 700; min-width: 16px;
  padding: 1px 5px; border-radius: 7px; background: var(--surface-3); color: var(--text-3);
}
.later-tab.active { color: var(--primary); background: var(--primary-soft); border-color: color-mix(in srgb, var(--primary) 30%, transparent); }
.later-tab.active i { background: var(--primary); color: #fff; }
.later-summary { font-size: 11.5px; color: var(--text-3); margin: 0 0 10px; }
.later-row.is-read .drawer-row-title { color: var(--text-3); font-weight: 500; }
.later-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary); margin-right: 6px; vertical-align: 2px;
}
.reader-later {
  display: inline-flex; align-items: center; gap: 4px; margin-left: 6px;
  padding: 3px 9px; border-radius: 20px; font-size: 11.5px; font-weight: 600;
  border: 1px solid var(--border-strong); background: transparent; color: var(--text-2); cursor: pointer;
}
.reader-later .icon { width: 13px; height: 13px; }
.reader-later:hover { border-color: var(--primary); color: var(--primary); }
.reader-later.on { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }

/* ---------- 命令面板 ---------- */
.cmd-overlay {
  position: fixed; inset: 0; z-index: 320;
  background: rgba(15, 17, 21, .42);
  backdrop-filter: blur(3px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 12vh 16px 16px;
}
.cmd-panel {
  width: min(620px, 100%); max-height: 66vh; display: flex; flex-direction: column;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: 16px;
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.cmd-input-row {
  display: flex; align-items: center; gap: 10px; padding: 13px 16px;
  border-bottom: 1px solid var(--border);
}
.cmd-icon { width: 17px; height: 17px; color: var(--text-3); flex: none; }
.cmd-input-row input {
  flex: 1; border: 0; outline: 0; background: transparent; color: var(--text);
  font-size: 15px; font-family: inherit;
}
.cmd-input-row input::placeholder { color: var(--text-3); }
.cmd-close {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  color: var(--text-3); background: var(--surface-2); cursor: pointer;
}
.cmd-close .icon { width: 14px; height: 14px; }
.cmd-list { overflow-y: auto; padding: 6px 8px 10px; }
.cmd-group {
  font-size: 10.5px; font-weight: 700; letter-spacing: .8px; color: var(--text-3);
  padding: 10px 10px 5px; text-transform: uppercase;
}
.cmd-item {
  width: 100%; display: flex; align-items: center; gap: 10px; text-align: left;
  padding: 9px 10px; border-radius: 9px; cursor: pointer; color: var(--text);
  border: 1px solid transparent;
}
.cmd-item:hover { background: var(--surface-2); }
.cmd-item.active { background: var(--primary-soft); border-color: color-mix(in srgb, var(--primary) 32%, transparent); }
.cmd-item-icon { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); flex: none; }
.cmd-item.active .cmd-item-icon { background: var(--surface); color: var(--primary); }
.cmd-item-icon .icon { width: 15px; height: 15px; }
.cmd-item-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cmd-item-text b { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmd-item-text small { font-size: 11px; color: var(--text-3); margin-top: 1px; }
.cmd-enter { font-size: 11px; color: var(--text-3); opacity: 0; }
.cmd-item.active .cmd-enter { opacity: 1; }
.cmd-foot {
  display: flex; gap: 14px; padding: 8px 14px; border-top: 1px solid var(--border);
  font-size: 11px; color: var(--text-3); background: var(--surface-2);
}
.cmd-foot kbd {
  font-family: inherit; font-size: 10.5px; padding: 1px 5px; border-radius: 4px;
  background: var(--surface); border: 1px solid var(--border-strong); color: var(--text-2);
}
.cmd-empty { padding: 26px 12px; text-align: center; color: var(--text-3); font-size: 13px; }
.cmd-empty small { display: block; margin-top: 6px; font-size: 11.5px; opacity: .8; }
.cmd-hint { display: none; }
@media (min-width: 900px) { .cmd-hint { display: grid; } }

/* ---------- 搜索洞察 ---------- */
.ins-head { padding: 2px 0 10px; border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.ins-q { font-size: 15px; font-weight: 700; color: var(--text); word-break: break-all; }
.ins-sub { font-size: 11.5px; color: var(--text-3); margin-top: 3px; }
.ins-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.ins-kpi {
  padding: 10px 6px; border-radius: 10px; background: var(--surface-2);
  text-align: center; display: flex; flex-direction: column; gap: 2px;
}
.ins-kpi b { font-size: 17px; font-weight: 700; color: var(--primary); }
.ins-kpi span { font-size: 10.5px; color: var(--text-3); }
.ins-tip {
  display: flex; gap: 7px; align-items: flex-start; font-size: 12px; line-height: 1.55;
  padding: 8px 10px; border-radius: 9px; background: var(--primary-soft);
  color: var(--text-2); margin-bottom: 8px;
}
.ins-tip .icon { width: 14px; height: 14px; flex: none; margin-top: 2px; color: var(--primary); }
.ins-row { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 12px; }
.ins-name { width: 96px; flex: none; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ins-bar { flex: 1; height: 7px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.ins-bar i { display: block; height: 100%; border-radius: 4px; background: var(--primary); }
.ins-bar i.bad { background: var(--danger); }
.ins-row b { width: 34px; text-align: right; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.ins-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ins-chip {
  font-size: 11.5px; padding: 3px 9px; border-radius: 20px;
  background: var(--surface-2); color: var(--text-2);
}
.ins-chip b { color: var(--primary); }
.ins-note { font-size: 11.5px; color: var(--text-3); padding: 2px 0 6px; }

/* 旧闻标记：超过一年的新闻，提示用户不是最新进展 */
.stale-tag {
  display: inline-block; padding: 0 5px; border-radius: 4px;
  font-size: 10.5px; line-height: 16px; color: var(--warn, #b26a00);
  background: rgba(245, 158, 11, .14);
}

/* ============================================================
   栏目：无图标 + 位于搜索框上方
   ============================================================ */
.tabs { margin: 0 auto 20px; }
.tab { gap: 0; padding: 8px 17px 10px; }
.feature-card { gap: 0; padding: 6px 15px; }
body.has-results .tabs { margin: 0 0 10px; }
body.has-results .search-wrap { margin: 0; }

/* ============================================================
   笔记栏目：仿百度笔记 / 小红书图文瀑布流
   ============================================================ */
body.note-mode .source-chips,
body.note-mode #sinceSelect,
body.note-mode #sortSelect,
body.note-mode #viewToggle,
body.note-mode #strictBtn { display: none !important; }

.note-page { padding: 2px 0 10px; }
.note-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; margin-bottom: 14px;
}
.note-heading { display: flex; align-items: baseline; gap: 12px; }
.note-logo {
  font-size: 21px; font-weight: 700; letter-spacing: 1px;
  color: #ff2e4d; position: relative; padding-left: 2px;
}
.note-logo::after {
  content: ''; display: block; height: 4px; border-radius: 3px;
  background: #ff2e4d; opacity: .85; margin-top: 2px;
}
.note-sub { font-size: 12px; color: var(--text-3); }
.note-sorts { display: flex; gap: 4px; }
.note-sort {
  padding: 6px 15px; border-radius: 18px; font-size: 13px;
  color: var(--text-2); background: transparent;
}
.note-sort:hover { background: var(--surface-2); }
.note-sort.active { background: var(--primary-soft, #eef1ff); color: var(--primary); font-weight: 600; }

.note-cats {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px;
  padding-bottom: 14px; border-bottom: 1px solid var(--border);
}
.note-cat {
  padding: 6px 16px; border-radius: 16px; font-size: 12.5px;
  color: var(--text-2); background: var(--surface-2); border: 1px solid transparent;
}
.note-cat:hover { color: var(--primary); }
.note-cat.active {
  color: #fff; background: #ff2e4d; border-color: #ff2e4d; font-weight: 600;
}

.note-waterfall { columns: 5; column-gap: 14px; }
.note-card {
  display: inline-block; width: 100%; margin: 0 0 14px;
  break-inside: avoid; -webkit-column-break-inside: avoid;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden; cursor: pointer;
  box-shadow: 0 1px 3px rgba(20, 24, 40, .04);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  vertical-align: top;
}
.note-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 46, 77, .35);
  box-shadow: 0 8px 24px rgba(20, 24, 40, .12);
}
.nc-cover { position: relative; width: 100%; aspect-ratio: 3 / 4; overflow: hidden; background: var(--surface-2); }
.nc-h1 .nc-cover { aspect-ratio: 1 / 1; }
.nc-h2 .nc-cover { aspect-ratio: 4 / 5; }
.nc-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nc-placeholder {
  position: absolute; inset: 0; display: none; place-items: center;
  font-size: 52px; font-weight: 700; color: rgba(255,255,255,.92);
  background: linear-gradient(135deg, #ff9a9e, #fecfef);
}
.nc-h1 .nc-placeholder { background: linear-gradient(135deg, #a1c4fd, #c2e9fb); }
.nc-h2 .nc-placeholder { background: linear-gradient(135deg, #84fab0, #8fd3f4); }
.nc-cover.cover-fail .nc-placeholder { display: grid; }
.nc-badge {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  padding: 2px 7px; border-radius: 10px; font-size: 10.5px;
  color: #fff; background: rgba(0, 0, 0, .5); backdrop-filter: blur(4px);
}
.nc-body { padding: 10px 11px 11px; }
.nc-title {
  margin: 0 0 6px; font-size: 13.5px; line-height: 1.45; font-weight: 600;
  color: var(--text); display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.nc-desc {
  margin: 0 0 7px; font-size: 11.5px; line-height: 1.5; color: var(--text-3);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.nc-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 9px; }
.nc-tags span { font-size: 11px; color: var(--primary); }
.nc-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.nc-author {
  display: inline-flex; align-items: center; gap: 6px; min-width: 0;
  font-size: 11.5px; color: var(--text-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nc-avatar {
  width: 20px; height: 20px; flex: none; border-radius: 50%;
  display: grid; place-items: center; color: #fff; font-size: 10px;
  font-style: normal; font-weight: 700;
}
.nc-like {
  display: inline-flex; align-items: center; gap: 3px; flex: none;
  font-size: 11.5px; color: var(--text-3);
}
.nc-like .icon { width: 13px; height: 13px; }
.nc-like.on, .nc-like.on .icon { color: #ff2e4d; }
.nc-like.on .icon { fill: #ff2e4d; }
.note-empty {
  grid-column: 1 / -1; padding: 50px 10px; text-align: center;
  color: var(--text-3); font-size: 13px;
}

/* 笔记详情弹层：左大图 + 右作者/正文/互动 */
.note-modal { z-index: 120; }
.note-modal-card {
  display: flex; position: relative;
  width: min(1040px, 94vw); height: min(700px, 88vh);
  background: var(--surface); border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.note-modal-close {
  position: absolute; top: 12px; right: 14px; z-index: 8;
  width: 32px; height: 32px; border-radius: 50%; font-size: 24px; line-height: 1;
  color: #fff; background: rgba(0, 0, 0, .45);
}
.note-modal-close:hover { background: #ff2e4d; }
.note-modal-media { flex: 1.2; min-width: 0; background: #14161d; }
.nm-figure {
  position: relative; width: 100%; height: 100%;
  display: grid; place-items: center; overflow: hidden;
}
.nm-figure img { width: 100%; height: 100%; object-fit: contain; }
.nm-placeholder {
  position: absolute; inset: 0; display: none; place-items: center;
  font-size: 120px; font-weight: 700; color: rgba(255,255,255,.9);
  background: linear-gradient(135deg, #ff9a9e, #a1c4fd);
}
.nm-figure.cover-fail .nm-placeholder { display: grid; }
.note-modal-side { flex: 1; min-width: 320px; display: flex; flex-direction: column; }
.nm-author {
  display: flex; align-items: center; gap: 10px; flex: none;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
}
.nm-avatar {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  display: grid; place-items: center; color: #fff; font-size: 16px;
  font-style: normal; font-weight: 700;
}
.nm-author-txt { flex: 1; min-width: 0; }
.nm-author-txt b { display: block; font-size: 14px; color: var(--text); }
.nm-author-txt small { display: block; margin-top: 2px; font-size: 11.5px; color: var(--text-3); }
.nm-follow {
  flex: none; padding: 6px 14px; border-radius: 16px;
  font-size: 12px; color: #fff; background: #ff2e4d;
}
.nm-scroll { flex: 1; overflow: auto; padding: 20px 22px; }
.nm-scroll h2 { margin: 0 0 14px; font-size: 19px; line-height: 1.45; color: var(--text); }
.nm-text { margin: 0 0 18px; font-size: 14px; line-height: 1.9; color: var(--text-2); white-space: pre-wrap; }
.nm-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.nm-tags span { font-size: 13px; color: var(--primary); }
.nm-meta { font-size: 12px; color: var(--text-3); }
.nm-actions {
  display: flex; align-items: center; gap: 16px; flex: none;
  padding: 14px 20px; border-top: 1px solid var(--border); flex-wrap: wrap;
}
.nm-btn { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--text-2); }
.nm-btn .icon { width: 18px; height: 18px; }
.nm-btn.on, .nm-btn.on .icon { color: #ff2e4d; }
.nm-btn.on .icon { fill: #ff2e4d; }
.nm-origin {
  margin-left: auto; padding: 7px 14px; border-radius: 18px;
  font-size: 12.5px; color: #fff; background: var(--primary);
}
@media (max-width: 1280px) { .note-waterfall { columns: 4; } }
@media (max-width: 980px)  { .note-waterfall { columns: 3; } .note-modal-media { flex: 1; } }
@media (max-width: 720px)  {
  .note-waterfall { columns: 2; column-gap: 10px; }
  .note-card { margin-bottom: 10px; }
  .note-modal-card { flex-direction: column; height: 92vh; }
  .note-modal-media { flex: none; height: 42%; }
  .note-modal-side { min-width: 0; }
}
@media (max-width: 420px) { .note-waterfall { columns: 1; } }

/* 相关搜索：结果页底部给出可继续探索的词，冷门查询不至于走进死胡同 */
.related-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin: 26px 0 8px; padding: 16px 18px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface-2);
}
.rb-label {
  display: inline-flex; align-items: center; gap: 5px;
  margin-right: 4px; font-size: 13px; font-weight: 600; color: var(--text-2);
}
.rb-label .icon { width: 15px; height: 15px; color: var(--primary); }
.rb-chip {
  padding: 6px 13px; border-radius: 16px;
  border: 1px solid var(--border-strong); background: var(--surface);
  font-size: 12.5px; color: var(--text-2); transition: color .15s, border-color .15s, background .15s;
}
.rb-chip:hover { color: var(--primary); border-color: var(--primary); background: var(--primary-soft); }
@media (max-width: 720px) {
  .related-bar { padding: 12px; gap: 6px; }
  .rb-chip { padding: 5px 10px; font-size: 12px; }
}

