:root {
  --bg: #f5f6f8;
  --card: #ffffff;
  --text: #1f2329;
  --muted: #8a919f;
  --line: #e6e8eb;
  --brand: #2b6cff;
  --brand-soft: #eaf1ff;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,.06);
  --accent: #ff5a4a;
  --accent-soft: #fff2f0;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); }
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--text); line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

/* ============ 头部菜单 / 导航 ============ */
.topbar { background: var(--card); border-bottom: 1px solid var(--line); }
.topbar-inner {
  display: flex; align-items: center; gap: 24px;
  min-height: 56px; padding: 8px 16px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.seo-intro {
  max-width: 720px;
  margin: 0 auto 8px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}
.logo {
  font-size: 22px; font-weight: 700; color: var(--brand);
  white-space: nowrap; flex: 0 0 auto;
}
.logo small { font-size: 12px; color: var(--muted); font-weight: 400; margin-left: 6px; }
.main-menu {
  display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0;
  overflow-x: auto;
}
.menu-item {
  padding: 6px 14px; font-size: 14px; color: #555; border-radius: 18px;
  white-space: nowrap; transition: .15s;
}
.menu-item:hover { background: var(--brand-soft); color: var(--brand); }
.menu-item.active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.weather-slot { flex: 0 0 auto; }

/* ============ 搜索栏目（独立 section）============ */
.hero-search {
  background: #fff7f5;
  max-width: 1100px;
  margin: 16px auto;
  padding: 6px 12px 12px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.search-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  margin: 0 0 10px;
  border-bottom: 1px solid #f3ddd6;
}
.tab-btn {
  appearance: none; border: 0; background: transparent;
  padding: 12px 0; font-size: 15px; font-weight: 600; cursor: pointer;
  color: #888; border-radius: 10px 10px 0 0; transition: .15s;
}
.tab-btn.active {
  background: var(--accent); color: #fff;
  box-shadow: 0 -2px 8px rgba(255,90,74,.18);
}
.search-pane { padding: 8px 4px 4px; }
.search-pane.hidden { display: none; }

/* 引擎 chip 行 */
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip {
  appearance: none; border: 0; background: #fff; color: #444;
  border-radius: 8px; padding: 6px 12px; font-size: 13px; cursor: pointer;
  transition: .15s;
}
.chip:hover { background: var(--accent-soft); }
.chip.active {
  background: var(--accent); color: #fff; font-weight: 600;
}
.chip-tip { color: var(--muted); font-size: 12px; margin-left: 4px; }
.chip-more {
  background: var(--accent-soft); color: var(--accent); font-weight: 500;
  border: 1px dashed var(--accent);
}
.chip-more:hover { background: var(--accent); color: #fff; }
.chip-back {
  background: #f5f5f5; color: #666; font-weight: 500;
  border: 1px solid var(--line);
}
.chip-back:hover { background: #eee; }

/* AI 工具卡片 */
.ai-tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.ai-card {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; display: flex; align-items: center; gap: 10px;
  transition: .15s;
}
.ai-card:hover { transform: translateY(-1px); border-color: var(--accent); }
.ai-card .avatar { width: 36px; height: 36px; font-size: 16px; border-radius: 9px; }
.ai-card .meta { flex: 1; min-width: 0; }
.ai-card .nm { font-size: 14px; font-weight: 500; }
.ai-card .ds { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-card .go { color: var(--accent); font-size: 18px; }
.ai-back-btn {
  grid-column: 1 / -1;
  appearance: none; border: 1px solid var(--line); background: #f8f8f8;
  border-radius: 10px; padding: 8px 14px; font-size: 13px; color: #666;
  cursor: pointer; text-align: left; transition: .15s;
}
.ai-back-btn:hover { background: #eee; border-color: var(--accent); color: var(--accent); }
.ai-more {
  justify-content: center; font-size: 14px; font-weight: 500;
  color: var(--accent); background: var(--accent-soft);
  border: 1px dashed var(--accent); cursor: pointer;
}
.ai-more:hover { background: var(--accent); color: #fff; border-style: solid; }

/* 搜索输入行（+ 联想下拉浮层）*/
.search-row { display: block; margin-top: 6px; position: relative; }
.search-input { position: relative; display: block; }
.search-input .ico {
  position: absolute; left: 14px; top: 14px; color: var(--muted);
}
.search-input input {
  width: 100%; height: 44px; border: 0; background: #fff;
  padding: 0 100px 0 40px; font-size: 14px; outline: none;
  border-radius: 10px; border: 1px solid #f0d5cc;
}
.search-input input::placeholder { color: #b9b0ad; }
.search-input .search-submit {
  position: absolute; right: 6px; top: 6px;
  height: 32px; padding: 0 22px; appearance: none; border: 0; cursor: pointer;
  background: var(--accent); color: #fff; border-radius: 8px; font-size: 14px;
  font-weight: 500;
}

/* 联想下拉浮层 */
.suggest {
  position: absolute; left: 0; right: 0; top: 48px;
  background: #fff; border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
  border: 1px solid var(--line);
  z-index: 50; max-height: 360px; overflow: auto;
  padding: 10px 12px 12px;
}
.suggest[hidden] { display: none; }
.sg-section + .sg-section { margin-top: 10px; }
.sg-group {
  font-size: 12px; color: var(--muted); margin-bottom: 8px;
  letter-spacing: 0.5px;
}
.sg-keywords {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.suggest .sg-tag {
  position: static; right: auto; top: auto;
  appearance: none; border: 0; cursor: pointer;
  padding: 5px 12px; border-radius: 999px;
  background: #f5f5f5; color: #555; font-size: 13px;
  line-height: 1.4; font-weight: 400;
  transition: .12s;
}
.suggest .sg-tag:hover {
  background: var(--accent-soft); color: var(--accent);
}
.suggest-empty {
  padding: 20px; color: var(--muted); text-align: center; font-size: 13px;
}

/* 热门关键词行 */
.hot-row {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  padding: 8px 4px 2px;
}
.hot-row-label { color: var(--muted); font-size: 12px; }
.hot-chip {
  appearance: none; border: 0; cursor: pointer;
  padding: 4px 12px; border-radius: 999px;
  background: #fff; color: #555; font-size: 12px;
  transition: .12s;
}
.hot-chip:hover { background: var(--accent-soft); color: var(--accent); }
.hot-chip-more {
  background: var(--accent-soft); color: var(--accent); font-weight: 500;
  border: 1px dashed var(--accent);
}
.hot-chip-more:hover { background: var(--accent); color: #fff; border-style: solid; }

/* 天气 */
.weather { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.weather select { border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; font-size: 13px; background: #fff; }

/* 区块 */
.section { margin: 24px 0; }
.section h2 { font-size: 16px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.section h2 .bar { width: 4px; height: 16px; background: var(--brand); border-radius: 2px; }
.section-head-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 12px;
}
.section-head-row h2 { margin-bottom: 0; }
.section-head-actions { display: flex; align-items: center; gap: 8px; }
.section-more {
  font-size: 13px; color: var(--brand); white-space: nowrap;
  padding: 4px 10px; border-radius: 999px; background: var(--brand-soft);
}
.section-more:hover { background: var(--brand); color: #fff; }
.section-refresh { border: none; cursor: pointer; font-family: inherit; line-height: 1.4; }
.section-refresh:active { transform: scale(0.96); }
.section-desc { font-size: 13px; color: var(--muted); margin: -4px 0 14px; }

/* 分类网格 */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.cat-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 12px; text-align: center; transition: .15s; box-shadow: var(--shadow);
}
.cat-card:hover { transform: translateY(-2px); border-color: var(--brand); }
.cat-card .emoji { font-size: 26px; }
.cat-card .name { font-size: 14px; margin-top: 6px; }
.cat-card .desc { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* 名站 / 站点网格 */
.site-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.site-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; display: flex; align-items: center; gap: 12px; transition: .15s; box-shadow: var(--shadow);
}
.site-card:hover { transform: translateY(-2px); border-color: var(--brand); }
.avatar {
  width: 40px; height: 40px; border-radius: 10px; flex: 0 0 40px;
  display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 600; font-size: 18px;
}
.site-card .meta { min-width: 0; flex: 1; }
.site-card .meta .nm { font-size: 14px; font-weight: 500; }
.site-card .meta .ds { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.go { color: var(--brand); font-size: 18px; flex: 0 0 auto; }

/* 热搜侧边栏列表 */
.hot-list { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; box-shadow: var(--shadow); }
.hot-item { display: flex; align-items: center; gap: 10px; padding: 7px 0; cursor: pointer; border-bottom: 1px dashed var(--line); }
.hot-item:last-child { border-bottom: none; }
.hot-item .rank { width: 20px; text-align: center; color: var(--muted); font-size: 13px; font-weight: 600; }
.hot-item:nth-child(-n+3) .rank { color: #ff5a5a; }
.hot-item .word { font-size: 14px; }
.hot-item .heat { margin-left: auto; font-size: 12px; color: var(--muted); }

/* 详情页 */
.detail-wrap { max-width: 640px; }
.back { color: var(--brand); font-size: 14px; display: inline-block; margin: 16px 0; }
.detail-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); text-align: center; }
.detail-card .avatar { width: 72px; height: 72px; border-radius: 16px; font-size: 32px; margin: 0 auto 14px; }
.detail-card h1 { font-size: 22px; }
.detail-card .cat-tag { display: inline-block; background: var(--brand-soft); color: var(--brand); border-radius: 12px; padding: 2px 12px; font-size: 12px; margin: 8px 0 14px; }
.detail-card .desc { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.detail-card .stats { display: flex; justify-content: center; gap: 24px; color: var(--muted); font-size: 13px; margin-bottom: 20px; }
.detail-card .stats b { color: var(--text); display: block; font-size: 18px; }
.btn-go {
  display: inline-block; background: var(--brand); color: #fff; padding: 12px 36px; border-radius: 24px;
  font-size: 15px; font-weight: 500; transition: .15s;
}
.btn-go:hover { opacity: .9; }
.visit-note { margin-top: 14px; font-size: 12px; color: var(--muted); }

/* 轮播图 */
.carousel {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: #1a1a2e; box-shadow: var(--shadow);
  height: 220px;
}
@media (min-width: 768px) { .carousel { height: 280px; } }
.carousel[hidden] { display: none; }
.carousel-track { position: relative; width: 100%; height: 100%; }
.carousel-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .45s ease;
  pointer-events: none;
}
.carousel-slide.active { opacity: 1; pointer-events: auto; z-index: 1; }
.carousel-link { display: block; width: 100%; height: 100%; color: inherit; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.carousel-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 16px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,.55));
}
.carousel-cap-text { color: #fff; font-size: 15px; font-weight: 500; }
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 3; width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.85); color: #333; font-size: 22px; line-height: 1;
  cursor: pointer; transition: .15s;
}
.carousel-btn:hover { background: #fff; }
.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }
.carousel-dots {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  z-index: 3; display: flex; gap: 6px;
}
.carousel-dot {
  width: 8px; height: 8px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.45); cursor: pointer; padding: 0;
}
.carousel-dot.active { background: #fff; width: 20px; border-radius: 4px; }

/* 名人语录 — 每人一行 */
.quotes-list { display: flex; flex-direction: column; gap: 12px; }
.quote-row {
  display: flex; gap: 20px; align-items: stretch;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow); transition: .15s;
}
.quote-row.clickable { cursor: pointer; }
.quote-row.clickable:hover {
  border-color: var(--brand);
  box-shadow: 0 4px 14px rgba(43,108,255,.08);
}
.quote-detail-hint {
  font-size: 12px; color: var(--brand); padding: 4px 10px;
  border-radius: 8px; background: var(--brand-soft);
}
.quote-person {
  flex: 0 0 100px; text-align: center; padding-top: 4px;
}
.quote-person .avatar { margin: 0 auto 8px; }
.quote-name { font-size: 14px; font-weight: 600; line-height: 1.3; }
.quote-title { font-size: 11px; color: var(--muted); margin-top: 4px; line-height: 1.4; }
.quote-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.quote-text {
  font-size: 15px; color: #333; line-height: 1.75; flex: 1;
  transition: opacity .25s;
}
.quote-source {
  font-size: 12px; color: var(--muted); margin-top: 10px;
  padding-top: 8px; border-top: 1px dashed var(--line);
}
.quote-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-top: 10px;
}
.quote-dots { display: flex; gap: 6px; align-items: center; }
.quote-dot {
  width: 7px; height: 7px; border: 0; border-radius: 50%;
  background: var(--line); cursor: pointer; padding: 0; transition: .15s;
}
.quote-dot.active { background: var(--brand); width: 18px; border-radius: 4px; }
.quote-actions { display: flex; gap: 6px; align-items: center; }
.quote-btn {
  appearance: none; border: 1px solid var(--line); background: #fff;
  border-radius: 8px; padding: 4px 12px; font-size: 12px; color: #555;
  cursor: pointer; transition: .12s; line-height: 1.4;
}
.quote-btn:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
@media (max-width: 640px) {
  .quote-row { flex-direction: column; gap: 12px; }
  .quote-person { flex: none; display: flex; align-items: center; gap: 12px; text-align: left; }
  .quote-person .avatar { margin: 0; flex-shrink: 0; }
}

/* 语录详情弹窗 */
body.modal-open { overflow: hidden; }
.quote-modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.quote-modal[hidden] { display: none; }
.quote-modal-backdrop {
  position: absolute; inset: 0; background: rgba(0,0,0,.45);
  border: 0; cursor: pointer;
}
.quote-modal-panel {
  position: relative; z-index: 1;
  width: min(640px, 100%); max-height: min(88vh, 720px);
  background: var(--card); border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0,0,0,.2);
  display: flex; flex-direction: column; overflow: hidden;
}
.quote-modal-close {
  position: absolute; right: 12px; top: 10px; z-index: 2;
  width: 32px; height: 32px; border: 0; border-radius: 50%;
  background: #f0f2f5; color: #666; font-size: 22px; line-height: 1;
  cursor: pointer;
}
.quote-modal-close:hover { background: #e8eaed; color: #333; }
.quote-modal-head {
  display: flex; gap: 14px; align-items: center;
  padding: 22px 20px 14px; border-bottom: 1px solid var(--line);
}
.quote-modal-person { min-width: 0; }
.quote-modal-count { font-size: 12px; color: var(--muted); margin-top: 4px; }
.quote-modal-body {
  padding: 16px 20px; overflow: auto; flex: 1; min-height: 0;
}
.quote-modal-text {
  font-size: 18px; line-height: 1.8; color: #222; font-weight: 500;
}
.quote-modal-meta {
  margin-top: 14px; font-size: 13px; color: var(--muted);
  padding: 10px 12px; background: #f8f9fb; border-radius: 8px;
}
.quote-modal-list {
  margin-top: 16px; display: flex; flex-direction: column; gap: 8px;
}
.quote-modal-item {
  text-align: left; border: 1px solid var(--line); background: #fff;
  border-radius: 10px; padding: 10px 12px; cursor: pointer; transition: .12s;
}
.quote-modal-item:hover { border-color: var(--brand-soft); background: var(--brand-soft); }
.quote-modal-item.active {
  border-color: var(--brand); background: var(--brand-soft);
  box-shadow: inset 0 0 0 1px var(--brand);
}
.quote-modal-item-text {
  display: block; font-size: 13px; color: #333; line-height: 1.5;
}
.quote-modal-item-sub {
  display: block; font-size: 11px; color: var(--muted); margin-top: 4px;
}
.quote-modal-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px 20px 16px; border-top: 1px solid var(--line);
}
.quote-modal-nav { display: flex; align-items: center; gap: 8px; }

/* 优设设计导航 — 全屏布局 */
body.uisdc-page {
  overflow: hidden;
  background: #f0f2f5;
}
.uisdc-layout {
  display: flex;
  height: 100vh;
  height: 100dvh;
}
.uisdc-sidebar {
  flex: 0 0 220px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-right: 1px solid #e8eaed;
  overflow: hidden;
}
.uisdc-logo {
  display: block;
  padding: 18px 20px 12px;
  font-size: 20px;
  font-weight: 700;
  color: var(--brand);
  white-space: nowrap;
}
.uisdc-nav-all {
  display: block;
  margin: 0 14px 10px;
  padding: 10px 14px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  text-align: left;
  transition: .15s;
  text-decoration: none;
}
button.uisdc-nav-all {
  appearance: none;
  width: calc(100% - 28px);
}
.uisdc-nav-all:hover {
  border-color: #ff6b3d;
  color: #ff6b3d;
  background: #fff5f0;
}
.uisdc-nav {
  flex: 1;
  overflow-y: auto;
  padding: 4px 10px 12px;
}
.uisdc-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 2px;
  appearance: none;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font-size: 14px;
  color: #444;
  cursor: pointer;
  text-align: left;
  transition: .12s;
}
.uisdc-nav-item:hover {
  background: #f5f6f8;
}
.uisdc-nav-item.active {
  background: #ff6b3d;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(255, 107, 61, .35);
}
.uisdc-nav-icon {
  flex: 0 0 20px;
  font-size: 16px;
  line-height: 1;
  text-align: center;
}
.uisdc-nav-text {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.uisdc-sidebar-foot {
  padding: 10px 16px 14px;
  font-size: 11px;
  color: #aaa;
  border-top: 1px solid #f0f0f0;
}

.uisdc-main {
  flex: 1;
  overflow-y: auto;
  scroll-behavior: smooth;
}
.uisdc-main-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 28px 48px;
}
.uisdc-block {
  margin-bottom: 36px;
  scroll-margin-top: 16px;
}
.uisdc-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.uisdc-block-title {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
}
.uisdc-block-more {
  font-size: 13px;
  color: #999;
  padding: 4px 10px;
  border-radius: 6px;
  transition: .12s;
}
.uisdc-block-more:hover {
  color: #ff6b3d;
  background: #fff5f0;
}
.uisdc-block-desc {
  font-size: 13px;
  color: #999;
  margin-bottom: 14px;
}
.uisdc-block-meta {
  font-size: 12px;
  color: #bbb;
  margin: -8px 0 14px;
}
.uisdc-nav a.uisdc-nav-item {
  text-decoration: none;
}

.uisdc-site-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
  gap: 12px;
}
.uisdc-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  padding: 14px;
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 12px;
  cursor: pointer;
  appearance: none;
  font: inherit;
  color: inherit;
  transition: .15s;
  min-height: 108px;
}
.uisdc-card:hover {
  border-color: #ffd4c4;
  box-shadow: 0 4px 16px rgba(255, 107, 61, .12);
  transform: translateY(-2px);
}
.uisdc-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.uisdc-card-top .avatar {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 8px;
  font-size: 16px;
}
.uisdc-card-name {
  font-size: 14px;
  font-weight: 600;
  color: #222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.uisdc-card-desc {
  flex: 1;
  font-size: 12px;
  color: #999;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.uisdc-card-tags {
  margin-top: 8px;
  display: flex;
  gap: 6px;
}
.uisdc-tag {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.6;
}
.uisdc-tag-hot { background: #fff0eb; color: #ff6b3d; }
.uisdc-tag-cn  { background: #eaf1ff; color: #2b6cff; }
.uisdc-tag-en  { background: #f0f0f0; color: #888; }

@media (max-width: 900px) {
  .uisdc-layout { flex-direction: column; height: auto; min-height: 100dvh; }
  body.uisdc-page { overflow: auto; }
  .uisdc-sidebar {
    flex: none;
    border-right: 0;
    border-bottom: 1px solid #e8eaed;
    max-height: none;
  }
  .uisdc-nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 6px;
    padding: 0 10px 10px;
  }
  .uisdc-nav-item {
    flex: 0 0 auto;
    width: auto;
    padding: 8px 14px;
  }
  .uisdc-nav-all { display: none; }
  .uisdc-sidebar-foot { display: none; }
  .uisdc-main { overflow: visible; }
  .uisdc-site-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
}

/* 站点详情弹窗 */
.site-modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.site-modal[hidden] { display: none; }
.site-modal-backdrop {
  position: absolute; inset: 0; border: 0; background: rgba(0,0,0,.45); cursor: pointer;
}
.site-modal-panel {
  position: relative; width: min(560px, 100%); max-height: 85vh; overflow: auto;
  background: var(--card); border-radius: 16px; box-shadow: 0 20px 50px rgba(0,0,0,.2);
}
.site-modal-close {
  position: absolute; right: 12px; top: 12px; z-index: 1;
  width: 32px; height: 32px; border: 0; border-radius: 50%;
  background: #f0f1f3; color: #666; font-size: 20px; cursor: pointer; line-height: 1;
}
.site-modal-close:hover { background: #e8eaed; color: #333; }
.site-modal-head {
  display: flex; align-items: center; gap: 14px;
  padding: 24px 48px 16px 24px; border-bottom: 1px solid var(--line);
}
.site-modal-info { min-width: 0; }
.site-modal-name { font-size: 18px; font-weight: 600; }
.site-modal-cat {
  display: inline-block; margin-top: 4px;
  background: var(--brand-soft); color: var(--brand);
  border-radius: 12px; padding: 2px 10px; font-size: 12px;
}
.site-modal-body { padding: 16px 24px; }
.site-modal-desc { font-size: 14px; color: #444; line-height: 1.7; }
.site-modal-notes {
  margin-top: 14px; padding-left: 18px; font-size: 12px; color: var(--muted);
}
.site-modal-notes li + li { margin-top: 6px; }
.site-modal-meta {
  margin-top: 14px; font-size: 11px; color: #aaa;
  padding: 8px 10px; background: #f8f9fb; border-radius: 8px;
}
.site-modal-foot {
  padding: 12px 24px 20px; text-align: center; border-top: 1px solid var(--line);
}

/* 布局：首页两栏 */
.home-cols { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; }
@media (max-width: 820px) {
  .home-cols { grid-template-columns: 1fr; }
  .weather-slot { display: none; }
  .hero-search { margin: 12px 8px; }
}

.empty { color: var(--muted); text-align: center; padding: 40px; }
.changelog-list { display: flex; flex-direction: column; gap: 24px; }
.changelog-entry {
  padding: 20px 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.changelog-date {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--text);
}
.changelog-items {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}
.changelog-items li { margin-bottom: 4px; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--text); text-decoration: underline; }
.footer { text-align: center; color: var(--muted); font-size: 12px; padding: 30px 0; }
