/* =========================================================
   今日热榜 - 精致卡片风格
   ========================================================= */

/* ---------- 设计变量 ---------- */
:root {
  /* 主色：柔和蓝紫渐变，高级感 */
  --c-primary: #6366f1;
  --c-primary-2: #8b5cf6;
  --c-primary-soft: rgba(99, 102, 241, 0.08);
  --c-primary-grad: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --c-accent: #f59e0b;
  --c-hot: #ef4444;

  /* 背景 */
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-hover: #f1f5f9;

  /* 文字 */
  --c-text: #0f172a;
  --c-text-2: #475569;
  --c-text-3: #94a3b8;

  /* 边框 & 阴影 */
  --c-border: #e2e8f0;
  --c-border-light: #f1f5f9;
  --shadow-card: 0 1px 3px rgba(15, 23, 42, 0.04), 0 1px 2px -1px rgba(15, 23, 42, 0.02);
  --shadow-card-hover: 0 20px 40px -12px rgba(15, 23, 42, 0.12), 0 4px 12px -4px rgba(15, 23, 42, 0.06);
  --shadow-inner: inset 0 1px 0 rgba(255,255,255,0.8);

  /* 尺寸 */
  --radius-card: 18px;
  --radius-sm: 10px;

  --header-h: 118px;
}

[data-theme="dark"] {
  --bg-page: #0a0a0f;
  --bg-card: #141420;
  --bg-hover: #1e1e2e;
  --c-text: #e2e8f0;
  --c-text-2: #94a3b8;
  --c-text-3: #64748b;
  --c-border: #1e293b;
  --c-border-light: #1e293b;
  --c-primary-soft: rgba(99, 102, 241, 0.15);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-card-hover: 0 20px 40px -12px rgba(0, 0, 0, 0.5);
  --shadow-inner: inset 0 1px 0 rgba(255,255,255,0.03);
}

/* ---------- 全局 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body, #app { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji";
  background: var(--bg-page);
  color: var(--c-text);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background .3s ease, color .3s ease;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; outline: none; border: none; background: transparent; color: inherit; }
img { display: block; }

/* ---------- 站点顶部导航（与首页一致） ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, #f5f3ff 0%, #ede9fe 100%);
  border-bottom: 1px solid rgba(139, 92, 246, 0.10);
  transition: background .3s ease, border-color .3s ease;
}
[data-theme="dark"] .site-header {
  background: rgba(20, 20, 32, 0.85);
  border-bottom-color: rgba(139, 92, 246, 0.18);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.site-nav {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 18px;
}

/* 品牌 logo */
.brand-logo {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
}
.brand-logo img {
  height: 44px;
  width: auto;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.brand-logo:hover img { transform: scale(1.04); }

/* 分类导航 */
.nav-cats {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 2px;
  list-style: none;
  flex: 1;
  min-width: 0;
}
.nav-cats > li { position: relative; flex-shrink: 0; }
.nav-cats > li > a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 13px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #475569;
  transition: color .22s ease, background .22s ease;
  white-space: nowrap;
}
.nav-cats > li > a:hover {
  color: var(--c-primary);
  background: var(--c-primary-soft);
}
.nav-cats > li > a.active {
  color: var(--c-primary);
  background: var(--c-primary-soft);
  font-weight: 700;
}
/* 当前页指示器（在分类列表外，独立高亮块，与工具箱之间留 24px 间距） */
.nav-active-page {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 12px;
  padding: 7px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-primary);
  background: var(--c-primary-soft);
  white-space: nowrap;
  transition: all .22s cubic-bezier(.4,0,.2,1);
}
.nav-active-page:hover {
  background: rgba(99, 102, 241, 0.16);
  transform: translateY(-1px);
}
.nav-cats .caret {
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: .6;
}
/* 工具箱下拉 */
.nav-cats .has-sub > .sub-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 200px;
  padding: 8px;
  list-style: none;
  background: var(--bg-card);
  border: 1px solid var(--c-border-light);
  border-radius: 14px;
  box-shadow: var(--shadow-card-hover);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all .2s ease;
  z-index: 60;
}
.nav-cats .has-sub:hover > .sub-menu,
.nav-cats .has-sub:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-cats .has-sub > .sub-menu > li > a {
  display: block;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 13px;
  color: var(--c-text-2);
  transition: all .2s ease;
  white-space: nowrap;
}
.nav-cats .has-sub > .sub-menu > li > a:hover {
  color: var(--c-primary);
  background: var(--c-primary-soft);
}

/* 右侧操作 */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.action-btn.submit {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(139, 92, 246, 0.16);
  color: #475569;
  font-size: 13px;
  font-weight: 500;
  transition: all .2s ease;
  text-decoration: none;
}
.action-btn.submit:hover {
  color: var(--c-primary);
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--c-primary);
  transform: translateY(-1px);
}
.user-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--c-primary-grad);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform .25s ease, box-shadow .25s ease;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
  text-decoration: none;
}
.user-avatar:hover {
  transform: scale(1.06);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}
.action-btn.mobile { display: none; }

/* ---------- 今日热榜页面顶部 ---------- */
.page-header {
  width: 100%;
  background: var(--bg-page);
  border-bottom: 1px solid var(--c-border-light);
}
.page-header-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 16px 10px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: 16px;
}
.page-brand { display: flex; align-items: center; cursor: pointer; gap: 14px; }
.page-brand img {
  width: 46px; height: 46px; border-radius: 12px;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}
.page-brand:hover img { transform: scale(1.08); }
.page-brand .name { display: flex; flex-direction: column; gap: 2px; }
.page-brand .name span:nth-of-type(1) {
  font-size: 22px; font-weight: 800; letter-spacing: -0.5px;
  background: var(--c-primary-grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.page-brand .name span:nth-of-type(2) { font-size: 12px; color: var(--c-text-3); }

/* 时间 */
.page-header .current-time { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.page-header .current-time .time {
  font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #0f172a, #475569);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
[data-theme="dark"] .page-header .current-time .time {
  background: linear-gradient(135deg, #f1f5f9, #94a3b8);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.page-header .current-time .date {
  font-size: 12px; color: var(--c-text-3);
  padding: 3px 12px; background: var(--bg-card);
  border: 1px solid var(--c-border-light);
  border-radius: 100px; font-weight: 500;
}

/* 控制按钮 */
.page-header .controls { display: flex; gap: 10px; justify-content: flex-end; }
.page-header .ctrl-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px; border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--c-border-light);
  color: var(--c-text-2); font-size: 13px; font-weight: 500;
  transition: all .25s cubic-bezier(.4,0,.2,1);
  box-shadow: var(--shadow-card);
}
.page-header .ctrl-btn:hover {
  border-color: var(--c-primary);
  color: var(--c-primary);
  background: var(--c-primary-soft);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.15);
}
.page-header .ctrl-btn:active { transform: translateY(0); }

/* ---------- 主内容区 ---------- */
#mainContent {
  position: relative; z-index: 1;
  padding: 32px 10px 0;
  max-width: 1440px; margin: 0 auto;
  min-height: calc(100vh - 260px);
}

/* ---------- 网格布局 ---------- */
.home, .grid { width: 100%; }
.home .grid, .grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 24px;
}

/* ---------- 卡片 ---------- */
.news-card {
  grid-column: span 1;
  animation: fadeUp .5s cubic-bezier(.16,1,.3,1) both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

.hot-list {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  transition: all .4s cubic-bezier(.16,1,.3,1);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex; flex-direction: column;
  height: 100%;
  position: relative;
  border: 1px solid var(--c-border-light);
}
.hot-list::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--card-accent, var(--c-primary-grad));
  opacity: 0.9;
  transition: height .3s ease, opacity .3s ease;
}
.hot-list:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-6px);
  border-color: transparent;
}
.hot-list:hover::before { height: 4px; opacity: 1; }

/* 卡片头部 */
.hot-list .card-header {
  padding: 20px 22px 18px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  position: relative;
  border-bottom: 1px solid var(--c-border-light);
}
.hot-list .name {
  display: flex; align-items: center; gap: 12px;
  min-width: 0; flex: 1;
}
.hot-list .ico {
  width: 38px; height: 38px; border-radius: 10px;
  overflow: hidden; flex-shrink: 0;
  background: var(--bg-page);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  padding: 4px;
}
.hot-list .ico img { width: 100%; height: 100%; object-fit: contain; }
.hot-list .name-text {
  font-weight: 700; font-size: 17px; letter-spacing: -0.3px;
  color: var(--c-text);
  transition: color .2s ease;
}
.hot-list:hover .name-text { color: var(--card-accent, var(--c-primary)); }
.hot-list .subtitle {
  font-size: 11px; color: var(--c-text-3);
  padding: 2px 9px;
  background: var(--bg-page);
  border-radius: 6px; white-space: nowrap;
  font-weight: 500;
}
.hot-list .updated {
  font-size: 11px; color: var(--c-text-3);
  white-space: nowrap;
}

/* 卡片右侧 */
.hot-list .card-header > div:nth-child(2) {
  display: flex; flex-direction: column; align-items: flex-end;
  gap: 6px; flex-shrink: 0;
}

/* 新闻列表 */
.hot-list .news-list {
  max-height: 520px;
  overflow-y: auto;
  padding: 8px 10px 14px;
  flex: 1;
}
.hot-list .news-list::-webkit-scrollbar { width: 4px; }
.hot-list .news-list::-webkit-scrollbar-thumb {
  background: var(--c-border); border-radius: 2px;
}

.hot-list .lists { display: flex; flex-direction: column; gap: 1px; }

/* 新闻条目 */
.news-item {
  display: flex; align-items: flex-start;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  transition: all .2s cubic-bezier(.4,0,.2,1);
  cursor: pointer; position: relative;
}
.news-item:hover {
  background: var(--bg-hover);
}
.news-item:hover .title { color: var(--card-accent, var(--c-primary)); }

.news-item .rank {
  width: 30px;
  font-weight: 700; font-size: 14px;
  color: var(--c-text-3);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0; text-align: center;
  line-height: 22px;
  font-family: 'SF Mono', 'Monaco', monospace;
  margin-right: 10px;
}

/* 前三名 */
.news-item.top1 .rank {
  color: #fff;
  background: linear-gradient(135deg, #ef4444, #f97316);
  border-radius: 7px;
  width: 24px; height: 22px; line-height: 22px;
  font-size: 13px;
  margin-top: 1px;
  box-shadow: 0 3px 8px rgba(239, 68, 68, 0.35);
  font-weight: 700;
}
.news-item.top2 .rank {
  color: #fff;
  background: linear-gradient(135deg, #f97316, #fbbf24);
  border-radius: 7px;
  width: 24px; height: 22px; line-height: 22px;
  font-size: 13px;
  margin-top: 1px;
  box-shadow: 0 3px 8px rgba(249, 115, 22, 0.3);
  font-weight: 700;
}
.news-item.top3 .rank {
  color: #fff;
  background: linear-gradient(135deg, #eab308, #84cc16);
  border-radius: 7px;
  width: 24px; height: 22px; line-height: 22px;
  font-size: 13px;
  margin-top: 1px;
  box-shadow: 0 3px 8px rgba(234, 179, 8, 0.3);
  font-weight: 700;
}

.news-item .title-wrap { flex: 1; min-width: 0; }
.news-item .title {
  font-size: 14px; line-height: 1.55;
  color: var(--c-text);
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden; text-overflow: ellipsis;
  transition: color .2s ease;
}
.news-item .meta {
  display: flex; gap: 10px; align-items: center;
  margin-top: 5px; font-size: 11px; color: var(--c-text-3);
}
.news-item .hot-icon {
  color: var(--c-hot);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ---------- 列表页 ---------- */
.list-page {
  display: flex; flex-direction: column; gap: 24px;
  animation: fadeUp .4s cubic-bezier(.16,1,.3,1);
}
.list-page .filter-bar {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 24px;
  background: var(--bg-card);
  border: 1px solid var(--c-border-light);
  border-radius: var(--radius-card);
  flex-wrap: wrap;
  box-shadow: var(--shadow-card);
}
.list-page .filter-bar select {
  padding: 8px 14px;
  border: 1px solid var(--c-border-light);
  border-radius: 10px;
  background: var(--bg-page);
  color: var(--c-text);
  font-size: 13px; font-family: inherit;
  cursor: pointer; transition: all .2s;
}
.list-page .filter-bar select:hover { border-color: var(--c-primary); }
.list-page .list-content {
  background: var(--bg-card);
  border: 1px solid var(--c-border-light);
  border-radius: var(--radius-card);
  padding: 14px 18px;
  box-shadow: var(--shadow-card);
}
.list-page .list-content .news-item { padding: 12px 14px; }
.list-page .list-content .news-item .title { font-size: 15px; }

/* ---------- 页脚 ---------- */
footer {
  position: relative; z-index: 1;
  padding: 36px 10px 32px;
  max-width: 1440px; margin: 48px auto 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  font-size: 12px; color: var(--c-text-3);
  border-top: 1px solid var(--c-border-light);
}
footer .copyright {
  margin-bottom: 6px; display: flex; gap: 6px; align-items: center;
}
footer .copyright .description {
  font-weight: 700;
  background: var(--c-primary-grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  font-size: 15px;
}
footer .author { cursor: pointer; transition: color .2s; font-weight: 600; }
footer .author:hover { color: var(--c-primary); }
footer .icp { font-size: 12px; cursor: pointer; transition: color .2s; margin-top: 4px; }
footer .icp:hover { color: var(--c-primary); }

/* ---------- 移动端菜单 ---------- */
.mobile-menu { position: fixed; inset: 0; z-index: 100; display: none; }
.mobile-menu.open { display: block; }
.mobile-menu .menu-mask {
  position: absolute; inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(6px);
  animation: fadeIn .2s ease;
}
.mobile-menu .menu-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 85%; max-width: 360px;
  background: var(--bg-card);
  padding: 28px 22px;
  overflow-y: auto;
  animation: slideIn .35s cubic-bezier(.16,1,.3,1);
  box-shadow: -12px 0 40px rgba(15, 23, 42, 0.15);
}
.mobile-menu .menu-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.mobile-menu .menu-block {
  display: flex; flex-direction: column; gap: 10px;
}
.mobile-menu .menu-block-title {
  font-size: 11px; font-weight: 700; color: var(--c-text-3);
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0 4px;
}
.mobile-menu .menu-cats {
  display: flex; flex-direction: column; gap: 6px;
  list-style: none;
}
.mobile-menu .menu-cat {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--bg-hover);
  color: var(--c-text-2);
  font-weight: 600;
  font-size: 14px;
  transition: all .2s ease;
}
.mobile-menu .menu-cat:hover {
  color: var(--c-primary);
  background: var(--c-primary-soft);
}
.mobile-menu .menu-cat.active {
  background: var(--c-primary-grad);
  color: #fff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}
.mobile-menu .menu-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mobile-menu .menu-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--c-primary-grad);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.25);
  transition: all .2s ease;
}
.mobile-menu .menu-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35);
}
.mobile-menu .menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.mobile-menu .menu-grid .menu-item {
  display: flex; flex-direction: column;
  align-items: center; gap: 8px;
  padding: 16px 6px;
  border-radius: 14px;
  cursor: pointer;
  transition: all .25s ease;
}
.mobile-menu .menu-grid .menu-item:hover {
  background: var(--c-primary-soft);
  transform: translateY(-3px);
}
.mobile-menu .menu-grid .menu-item img {
  width: 34px; height: 34px; border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.mobile-menu .menu-grid .menu-item span { font-size: 11px; color: var(--c-text-2); font-weight: 500; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideIn { from { transform: translateX(100%); } to { transform: none; } }

/* ---------- 设置面板 ---------- */
.setting-panel {
  position: fixed; inset: 0; z-index: 100;
  display: none; align-items: center; justify-content: center;
}
.setting-panel.open { display: flex; }
.setting-panel .setting-mask {
  position: absolute; inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(6px);
  animation: fadeIn .2s ease;
}
.setting-panel .setting-box {
  position: relative;
  width: 90%; max-width: 440px;
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 28px;
  display: flex; flex-direction: column; gap: 22px;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.2);
  animation: scaleIn .25s cubic-bezier(.16,1,.3,1);
  border: 1px solid var(--c-border-light);
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(.95) translateY(10px); }
  to   { opacity: 1; transform: none; }
}
.setting-panel .setting-title {
  font-size: 18px; font-weight: 700; letter-spacing: -0.3px;
}
.setting-panel .setting-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}
.setting-panel .setting-label { font-size: 14px; font-weight: 500; color: var(--c-text-2); }
.setting-panel .setting-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.seg-btn {
  padding: 8px 18px;
  border: 1px solid var(--c-border-light);
  border-radius: 10px;
  font-size: 13px;
  background: var(--bg-page);
  color: var(--c-text-2);
  font-weight: 500;
  transition: all .2s ease;
}
.seg-btn:hover { border-color: var(--c-primary); color: var(--c-primary); }
.seg-btn.active {
  background: var(--c-primary-grad);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
  font-weight: 600;
}
.seg-btn.primary {
  background: var(--c-primary-grad);
  border-color: transparent;
  color: #fff; font-weight: 600;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}
.seg-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35);
}

/* ---------- 加载 / 错误 ---------- */
.loading, .error-state {
  padding: 40px 20px; text-align: center;
  color: var(--c-text-3); font-size: 13px;
}
.spinner {
  display: inline-block;
  width: 20px; height: 20px;
  border: 2px solid var(--c-border);
  border-top-color: var(--c-primary);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  vertical-align: middle; margin-right: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .home .grid, .grid {
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .site-nav { padding: 6px 10px; gap: 10px; }
  .brand-logo img { height: 34px; }
  .nav-cats,
  .action-btn.submit,
  .user-avatar { display: none; }
  .action-btn.mobile { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,0.55); border: 1px solid rgba(139,92,246,0.18); color: var(--c-text-2); }

  .page-header-inner { display: flex; justify-content: space-between; padding: 12px 10px; }
  .page-header .current-time,
  .page-header .controls { display: none; }
  .page-brand img { width: 38px; height: 38px; border-radius: 10px; }
  .page-brand .name span:nth-of-type(1) { font-size: 19px; }
  .page-brand .name span:nth-of-type(2) { display: none; }

  #mainContent { padding: 20px 10px 0; }
  .home .grid, .grid { grid-template-columns: 1fr; gap: 16px; }

  .hot-list .card-header { padding: 16px 18px 14px; }
  .hot-list .ico { width: 32px; height: 32px; }
  .hot-list .name-text { font-size: 15px; }
  .hot-list .news-list { padding: 6px 10px 12px; }
  .news-item { padding: 9px 10px; }

  footer { padding: 28px 10px 24px; margin-top: 28px; }
}

/* 减少动效 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
