/* =========================================================
   蓝航导航 - 桌面端统一样式（固定1200px宽度）
   主色调：蓝色系 #2563eb
   辅助色：紫 #7c3aed / 橙 #f97316 / 绿 #10b981
   背景色：#f5f6f8
   卡片：白底 + 1px #ebeef5 边框 + 8-12px 圆角
   ========================================================= */

/* ===== 1. 基础重置 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* 注意：不要在这里写 scroll-behavior: smooth。
   它会同时接管「浏览器刷新后的滚动位置还原」，导致刷新时页面平滑下滑一点点。
   页面内的平滑滚动由 JS 的 scrollTo({ behavior: 'smooth' }) 负责即可。 */

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: #f5f6f8;
  color: #333;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-width: 1400px;
  /* 关闭浏览器的滚动锚定(Scroll Anchoring)。
     本页大量元素在加载后才会改变形态（.fade-in-up 的 transform 归零、
     数字滚动 hero-stats、热度条 hot-bar-fill 宽度动画），
     浏览器会为了「锚定你正在看的内容」而自动微调滚动位置，
     表现为「每次刷新页面自动下滑一点点」。关掉它即可消除该微调。 */
  overflow-anchor: none;
}

a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ===== 2. 图标系统 (SVG Sprite 线性图标) ===== */
.iconfont {
  display: inline-block;
  width: 1em;
  height: 1em;
  stroke-width: 1.5;
  vertical-align: -0.15em;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: hidden;
}
.iconfont svg { width: 100%; height: 100%; display: block; }

/* ===== 3. 顶部导航栏（固定宽度，无响应式） ===== */
.topbar {
  background: #fff;
  border-bottom: 1px solid #ebeef5;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 1400px;
}
.topbar.scrolled {
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(12px);
}
.topbar-inner {
  width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 28px;
}
/* 注意：这里不再随滚动改高度。
   原先的 .topbar.scrolled .topbar-inner { height: 54px; } 会让整页内容
   在滚动瞬间重排上移 6px，配合浏览器滚动恢复会表现为「刷新后自动下滑一点点」。
   滚动时的视觉反馈全部交给下面的 .topbar.scrolled（阴影 + 毛玻璃）。 */

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: #2563eb;
  flex-shrink: 0;
  position: relative;
  transition: opacity 0.2s;
  width: 140px;
  height: 40px;
}
.logo:hover { opacity: 0.85; }
.logo-mark {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.08); }
.logo-badge {
  position: absolute;
  top: -4px;
  right: -24px;
  background: linear-gradient(135deg, #f97316, #ef4444);
  color: #fff;
  font-size: 8px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 10px;
  animation: pulse-badge 2s ease-in-out infinite;
}
@keyframes pulse-badge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

/* 导航菜单 */
.nav {
  display: flex;
  gap: 2px;
  flex: 1;
}
.nav a {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  color: #4b5563;
  font-weight: 500;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.nav a:hover { color: #2563eb; background: #eff6ff; }
.nav a.active { color: #2563eb; background: #dbeafe;}
.nav a .iconfont { font-size: 16px; }

/* 搜索框 */
.search-wrap {
  width: 340px;
  flex-shrink: 0;
  position: relative;
      left: 0px;
     
}
.search-wrap input {
  width: 100%;
  height: 36px;
  padding: 0 40px 0 14px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  font-size: 13px;
  outline: none;
  background: #f9fafb;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.search-wrap input:focus {
  border-color: #2563eb;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.search-wrap .search-btn {
  position: absolute;
  right: 4px;
  top: 4px;
  width: 28px;
  height: 28px;
  border: none;
  background: #2563eb;
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.search-wrap .search-btn:hover {
  background: #1d4ed8;
  transform: scale(1.08);
}
.search-wrap .search-btn .iconfont { font-size: 14px; }

/* 右侧按钮区 */
.topbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  min-width: 250px;
    justify-content: flex-end;
}
.submit-btn {
  padding: 7px 16px;
  background: #fff;
  border: 1px solid #2563eb;
  color: #2563eb;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 5px;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.submit-btn:hover { background: #2563eb; color: #fff; }
.submit-btn:active { transform: scale(0.96); }

.login-btn {
  padding: 7px 14px;
  color: #2787B6;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.login-btn:hover { color: #2563eb; }
.login-reg {
  padding: 7px 14px;
  color: #E67E0F;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.login-reg:hover { color: #f1b606a6; }

/* 汉堡菜单 - 桌面端隐藏 */
.hamburger { display: none; }
.mobile-nav { display: none; }
.nav-mask { display: none; }

/* ===== 4. 通用组件 ===== */

/* 主容器 - 固定1400px */
.container {
  width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 通用 section */
.section {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #ebeef5;
  margin-bottom: 16px;
  overflow: hidden;
}
.section-hd {
  padding: 0 0 5px;
  border-bottom: 1px solid #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-title {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title .iconfont { font-size: 18px; color: #2563eb; }
.section-title .title-tag {
  font-size: 11px;
  background: linear-gradient(135deg, #f97316, #ef4444);
  color: #fff;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 500;
  margin-left: 4px;
}
.section-more {
  font-size: 13px;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 3px;
  transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.section-more:hover { color: #2563eb; }
.section-more .iconfont { font-size: 14px; }
.section-bd { padding: 16px 18px; }

/* 按钮样式 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}
.btn-primary:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  background: #fff;
  color: #2563eb;
  border-color: #2563eb;
}
.btn-outline:hover {
  background: #2563eb;
  color: #fff;
}

.btn-ghost {
  background: #fff;
  color: #4b5563;
  border-color: #d1d5db;
}
.btn-ghost:hover {
  color: #2563eb;
  border-color: #2563eb;
  background: #f8faff;
}
.btn .iconfont { font-size: 15px; }

/* 波纹效果 */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: scale(0);
  animation: ripple-effect 0.6s ease-out;
  pointer-events: none;
}
@keyframes ripple-effect {
  to { transform: scale(4); opacity: 0; }
}

/* 渐入动画 */
/* 注意：未进入视口时不要用 translateY 把元素「推下去」。
   被推下去的区块会让浏览器在加载瞬间多算出一截可滚动高度，
   刷新还原滚动位置时就会对不上，表现为「自动下滑一点点」。
   改用 scale + opacity：视觉上同样是「从下方轻微浮入」，
   但不会让元素占据的位置超出自身布局盒，不产生高度差。 */
.fade-in-up,
.fade-in {
  opacity: 0;
  transform: translate3d(0, 14px, 0) scale(0.995);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.fade-in-up.visible,
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 徽章 / 标签 */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
}
.badge-primary { background: #eff6ff; color: #2563eb; border: 1px solid #dbeafe; }
.badge-warn { background: #fffbeb; color: #d97706; border: 1px solid #fef3c7; }
.badge-success { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }

.tag {
  padding: 3px 10px;
  background: #f3f4f6;
  color: #4b5563;
  border-radius: 4px;
  font-size: 12px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.tag:hover { background: #e5e7eb; color: #1f2937; }

/* 小标签变体 */
.site-tag {
  display: inline-block;
  padding: 1px 6px;
  font-size: 11px;
  border-radius: 3px;
  font-weight: 500;
  line-height: 1.4;
}
.site-tag.hot { background: #fef2f2; color: #dc2626; }
.site-tag.new { background: #f0fdf4; color: #16a34a; }
.site-tag.rec { background: #eff6ff; color: #2563eb; }

/* ===== 5. 页脚 ===== */
.footer {
  background: #fff;
  border-top: 1px solid #ebeef5;
  margin-top: 32px;
  padding: 32px 0 20px;
  min-width: 1400px;
}
.footer-inner {
  width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 28px;
}
.footer-col h4 {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 14px;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  font-size: 13px;
  color: #6b7280;
  transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.footer-col ul li a:hover { color: #2563eb; }

.footer-about p {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.7;
  margin-bottom: 12px;
}
.footer-about .logo { margin-bottom: 12px; }

.footer-social {
  display: flex;
  gap: 10px;
}
.footer-social a {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #f3f4f6;
  display: grid;
  place-items: center;
  color: #6b7280;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.footer-social a:hover {
  background: #2563eb;
  color: #fff;
  transform: translateY(-2px);
}
.footer-social a .iconfont { font-size: 16px; }

.footer-bottom {
  border-top: 1px solid #f3f4f6;
  padding-top: 20px;
  text-align: center;
}
.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 12px;
  font-size: 12px;
}
.footer-links a {
  color: #6b7280;
  transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.footer-links a:hover { color: #2563eb; }
.footer-copyright {
  font-size: 12px;
  color: #9ca3af;
  line-height: 1.8;
}

/* =========================================================
   各页面特有样式
   ========================================================= */

/* ===== 首页特有样式 ===== */

/* Hero Banner */
.hero {
  background: linear-gradient(135deg, #19224a 0%, #243b7f 55%, #33308f 100%);
  border-radius: 12px;
  padding: 36px 40px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  color: #fff;
}
.hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -60px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(255,255,255,.15) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: 30%;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(99, 102, 241, .22) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.hero-left { max-width: 560px; }
.hero-title {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}
.hero-title span {
  background: linear-gradient(90deg, #fbbf24, #f97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: 14px;
  opacity: 0.85;
  margin-bottom: 20px;
  line-height: 1.7;
}
.hero-stats { display: flex; gap: 32px; }
.hero-stat { text-align: center; }
.hero-stat .num {
  font-size: 26px;
  font-weight: 800;
  color: #fbbf24;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.hero-stat .label { font-size: 12px; opacity: 0.8; margin-top: 2px; }
.hero-right { display: flex; gap: 12px; flex-shrink: 0; }
.hero-float-icon {
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(10px);
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 26px;
  animation: float-icon 3s ease-in-out infinite;
}
.hero-float-icon:nth-child(2) { animation-delay: .5s; }
.hero-float-icon:nth-child(3) { animation-delay: 1s; }
@keyframes float-icon {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* 快速入口 */
.quick-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.15);
  position: relative;
  z-index: 1;
}
.quick-nav a {
  padding: 6px 14px;
  background: rgba(255,255,255,.12);
  border-radius: 20px;
  font-size: 13px;
  color: #fff;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 5px;
}
.quick-nav a:hover {
  background: rgba(255,255,255,.25);
  transform: translateY(-2px);
}
.quick-nav a .iconfont { font-size: 14px; }

/* 推荐卡片 */
.recommend-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.recommend-card {
  display: flex;
  gap: 12px;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid #f0f2f5;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  cursor: pointer;
  background: #fafbfc;
}
.recommend-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(37,99,235,.12);
  border-color: #bfdbfe;
  background: #fff;
}
.recommend-card .rc-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 22px;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.recommend-card:hover .rc-icon { transform: scale(1.1) rotate(-5deg); }
.recommend-card .rc-info { flex: 1; min-width: 0; }
.recommend-card .rc-name {
  font-size: 14px;
  color: #1f2937;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.recommend-card .rc-desc {
  font-size: 12px;
  color: #9ca3af;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.recommend-card .rc-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #9ca3af;
}
.recommend-card .rc-meta .views {
  display: flex;
  align-items: center;
  gap: 3px;
}
.rc-tag {
  position: absolute;
  top: -1px;
  right: 12px;
  background: linear-gradient(135deg, #f97316, #ef4444);
  color: #fff;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 0 0 6px 6px;
  font-weight: 500;
}
.rc-tag.new { background: linear-gradient(135deg, #10b981, #059669); }
.rc-tag.hot { background: linear-gradient(135deg, #f97316, #ef4444); }
.rc-tag.vip { background: linear-gradient(135deg, #f59e0b, #d97706); }

/* 工具网格 */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
}
.tool-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.tool-item:hover {
  background: #eff6ff;
  transform: translateY(-2px);
}
.tool-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.tool-item:hover .tool-icon {
  transform: scale(1.15) rotate(8deg);
}
.tool-name {
  font-size: 12px;
  color: #4b5563;
  text-align: center;
}

/* 热榜 + 分类导航 双栏布局 1:2 */
.hot-cat-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 16px;
  margin-bottom: 16px;
}

/* 热榜 */
.hot-list { padding: 8px 0; }
.hot-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  transition: background 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}
.hot-item:hover { background: #f9fafb; }
.hot-rank {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  background: #f3f4f6;
  color: #9ca3af;
}
.hot-item:nth-child(1) .hot-rank { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #fff; }
.hot-item:nth-child(2) .hot-rank { background: linear-gradient(135deg, #d1d5db, #9ca3af); color: #fff; }
.hot-item:nth-child(3) .hot-rank { background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; }
.hot-name {
  flex: 1;
  font-size: 14px;
  color: #374151;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hot-item:hover .hot-name { color: #2563eb; }
.hot-heat {
  font-size: 12px;
  color: #9ca3af;
  display: flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}
.hot-heat .iconfont { font-size: 12px; color: #f97316; }
.hot-trend {
  font-size: 12px;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}
.hot-trend.up { color: #ef4444; }
.hot-trend.down { color: #10b981; }
.hot-trend.flat { color: #9ca3af; }

/* hao123 风格分类列表（每行一个分类） */
.cat-list-rows {
  padding: 0;
}
.cat-row {
  display: flex;
  align-items: center;
  padding: 10px 18px;
  border-bottom: 1px solid #f3f4f6;
  transition: background 0.15s ease;
}
.cat-row:last-child { border-bottom: none; }
.cat-row:hover { background: #fafbfc; }

.cat-row-title {
  width: 90px;
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 600;
  color: #2563eb;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.cat-row-title .cat-icon {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  font-size: 12px;
  background: #eff6ff;
  flex-shrink: 0;
}

.cat-row-links {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  min-width: 0;
}
.cat-row-links a {
  font-size: 13px;
  color: #4b5563;
  transition: color 0.15s ease;
  white-space: nowrap;
  position: relative;
}
.cat-row-links a:hover { color: #2563eb; }
.cat-row-links a.hot-link {
  color: #ef4444;
  font-weight: 500;
}
.cat-row-links a.hot-link:hover { color: #dc2626; }

.cat-row-more {
  flex-shrink: 0;
  margin-left: 12px;
}
.cat-row-more a {
  font-size: 12px;
  color: #9ca3af;
  display: flex;
  align-items: center;
  gap: 2px;
  transition: color 0.15s ease;
  white-space: nowrap;
}
.cat-row-more a:hover { color: #2563eb; }
.cat-row-more a .iconfont { font-size: 12px; }

/* 广告位 */
.ad-banner {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  border: 1px solid #fcd34d;
}
.ad-banner::before {
  content: '广告合作';
  position: absolute;
  top: 0;
  left: 0;
  background: rgba(0,0,0,.1);
  color: #92400e;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 0 0 6px 0;
}
.ad-content {
  display: flex;
  align-items: center;
  gap: 20px;
}
.ad-icon {
  width: 52px;
  height: 52px;
  background: #fff;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 26px;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
.ad-text h3 {
  font-size: 16px;
  color: #92400e;
  margin-bottom: 4px;
}
.ad-text p {
  font-size: 13px;
  color: #a16207;
}
.ad-btn {
  padding: 10px 24px;
  background: linear-gradient(135deg, #f97316, #ef4444);
  color: #fff;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(249,115,22,.3);
  position: relative;
  overflow: hidden;
}
.ad-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249,115,22,.4);
}

/* ===== 分类页特有样式 ===== */

/* 面包屑 */
.breadcrumb {
  background: #fff;
  padding: 10px 16px;
  border-radius: 6px;
  margin-bottom: 14px;
  margin-top: 16px;
  font-size: 13px;
  color: #6b7280;
  border: 1px solid #ebeef5;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.breadcrumb a { color: #2563eb; transition: color 0.2s; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { color: #d1d5db; }
.breadcrumb .current { color: #374151; font-weight: 500; }

/* 布局 */
.layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 14px;
}

/* 侧边栏 */
.sidebar {

  height: fit-content;
  position: sticky;
  top: 76px;
  overflow: hidden;
}
.sidebar-hd {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  border-bottom: 1px solid #f3f4f6;
  background: #fafbfc;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-hd .iconfont { color: #2563eb; font-size: 16px; }
.cat-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  font-size: 13px;
  color: #4b5563;
  border-left: 3px solid transparent;
  transition: all 0.15s ease;
  cursor: pointer;
}
.cat-list li a:hover {
  background: #f9fafb;
  color: #2563eb;
}
.cat-list li a.active {
  background: #eff6ff;
  color: #2563eb;
  font-weight: 600;
  border-left-color: #2563eb;
}
.cat-list .cat-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.cat-list .cat-left .iconfont { font-size: 16px; flex-shrink: 0; }
.cat-list .cat-count {
  font-size: 11px;
  color: #9ca3af;
  background: #f3f4f6;
  padding: 2px 7px;
  border-radius: 10px;
  flex-shrink: 0;
}
.cat-list li a.active .cat-count {
  background: #2563eb;
  color: #fff;
}

.main { min-width: 0; }

/* 分类头部 */
.cat-header {
  background: #fff;
  border-radius: 6px;
  border: 1px solid #ebeef5;
  padding: 16px 20px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.cat-info h1 {
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cat-info h1 .iconfont { font-size: 22px; color: #2563eb; }
.cat-info p {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.6;
}
.sort-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.sort-bar .sort-label {
  font-size: 12px;
  color: #9ca3af;
  margin-right: 4px;
}
.sort-bar a {
  padding: 5px 12px;
  font-size: 12px;
  color: #6b7280;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}
.sort-bar a:hover { color: #2563eb; }
.sort-bar a.active {
  color: #2563eb;
  background: #eff6ff;
  border-color: #bfdbfe;
  font-weight: 500;
}

/* 网站列表卡片 */
.site-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.site-card {
  background: #fff;
  border-radius: 6px;
  border: 1px solid #ebeef5;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}
.site-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 4px 12px rgba(37,99,235,.08);
  transform: translateY(-1px);
}
.site-logo {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #eff6ff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #2563eb;
  font-size: 24px;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.site-card:hover .site-logo { transform: scale(1.08); }
.site-body { flex: 1; min-width: 0; }
.site-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.site-title h3 {
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
  transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.site-card:hover .site-title h3 { color: #2563eb; }
.tag {
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 500;
  line-height: 1.6;
}
.tag-hot { background: #fef2f2; color: #dc2626; }
.tag-new { background: #f0fdf4; color: #16a34a; }
.tag-rec { background: #eff6ff; color: #2563eb; }
.tag-vip { background: #fffbeb; color: #d97706; }
.site-desc {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.site-meta {
  display: flex;
  gap: 14px;
  margin-top: 6px;
  font-size: 12px;
  color: #9ca3af;
}
.site-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-meta .iconfont { font-size: 12px; }

.site-side {
  text-align: right;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.site-num {
  font-size: 18px;
  font-weight: 700;
  color: #2563eb;
  font-variant-numeric: tabular-nums;
}
.site-num-label {
  font-size: 11px;
  color: #9ca3af;
  margin-top: -4px;
}
.go-btn {
  padding: 5px 16px;
  background: #2563eb;
  color: #fff;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.go-btn:hover {
  background: #1d4ed8;
  box-shadow: 0 2px 8px rgba(37,99,235,.3);
}
.go-btn .iconfont { font-size: 12px; }

/* 分页 */
.pager, .pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-top: 24px;
  padding: 20px 0;
  flex-wrap: wrap;
}
.pager a, .pager span,
.page-btn {
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: 13px;
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #4b5563;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}
.pager a:hover,
.page-btn:hover:not(.disabled):not(.active) {
  border-color: #2563eb;
  color: #2563eb;
}
.pager .on,
.page-btn.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
  font-weight: 500;
}
.pager .disabled,
.page-btn.disabled {
  color: #d1d5db;
  cursor: not-allowed;
  background: #fafaf7;
}
.pager .dots,
.page-ellipsis {
  border: none;
  background: transparent;
  color: #9ca3af;
  padding: 0 4px;
}

/* ===== 详情页特有样式 ===== */

.main-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
}
.main-content { min-width: 0; }

/* 详情卡 */
.detail-card {
  background: #fff;
  border: 1px solid #ebeef5;
  border-radius: 8px;
  padding: 28px 32px;
  margin-bottom: 20px;
}
.detail-head {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.site-icon {
  width: 88px;
  height: 88px;
  border-radius: 16px;
  background: linear-gradient(135deg, #eef2ff, #e0e7ff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4f46e5;
  font-size: 40px;
  flex-shrink: 0;
  border: 1px solid #e0e7ff;
}
.site-icon .iconfont { font-size: 42px; }
.site-main { flex: 1; min-width: 0; }
.site-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.site-title {
  font-size: 24px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.5px;
}
.site-domain-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 13px;
  color: #6b7280;
}
.site-domain-row a {
  color: #2563eb;
  font-weight: 500;
}
.site-domain-row a:hover { text-decoration: underline; }
.site-domain-row .iconfont { font-size: 14px; }
.site-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.rating-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.stars {
  color: #d4a017;
  font-size: 16px;
  letter-spacing: 2px;
  line-height: 1;
}
.rating-num {
  font-size: 18px;
  font-weight: 700;
  color: #d4a017;
}
.rating-count {
  font-size: 12px;
  color: #9ca3af;
}
.detail-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

/* 统计栏 */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: #ebeef5;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 24px;
  border: 1px solid #ebeef5;
}
.stat-item {
  background: #fff;
  padding: 18px 16px;
  text-align: center;
}
.stat-label {
  font-size: 12px;
  color: #9ca3af;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.stat-value {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
}
.stat-value.blue { color: #2563eb; }
.stat-value.amber { color: #d97706; }
.stat-value.green { color: #16a34a; }

/* 信息表 */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 13px;
}
.info-table tr { border-bottom: 1px solid #f3f4f6; }
.info-table tr:last-child { border-bottom: none; }
.info-table th {
  text-align: left;
  padding: 10px 12px;
  color: #6b7280;
  font-weight: 500;
  width: 120px;
  background: #fafaf8;
}
.info-table td {
  padding: 10px 12px;
  color: #1f2937;
}
.info-table td a { color: #2563eb; }
.info-table td a:hover { text-decoration: underline; }

/* 详情 section */
.section {
  background: #fff;
  border: 1px solid #ebeef5;
  border-radius: 8px;
  padding: 10px 20px;
  margin-bottom: 20px;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f3f4f6;
}

/* 描述文本 */
.desc-text {
  color: #4b5563;
  line-height: 1.85;
  font-size: 14px;
}
.desc-text p { margin-bottom: 12px; }
.desc-text p:last-child { margin-bottom: 0; }
.desc-text strong { color: #111827; font-weight: 600; }
.desc-text .hl {
  background: #fef3c7;
  padding: 1px 5px;
  border-radius: 3px;
  color: #92400e;
  font-weight: 500;
}
.feature-list {
  margin-top: 12px;
  padding-left: 4px;
}
.feature-list li {
  padding: 4px 0 4px 18px;
  position: relative;
  color: #4b5563;
  font-size: 13.5px;
}
.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  background: #2563eb;
  border-radius: 50%;
}

/* 走势图 */
.chart-wrap {
  width: 100%;
  height: 280px;
  position: relative;
}
.chart-svg { width: 100%; height: 100%; }
.chart-legend {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 8px;
  font-size: 12px;
  color: #6b7280;
}
.chart-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}
.legend-dot.blue { background: #2563eb; }
.legend-dot.amber { background: #d4a017; }

/* 相关推荐 */
.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.related-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.related-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4b5563;
  font-size: 18px;
  flex-shrink: 0;
}
.related-icon .iconfont { font-size: 18px; }
.related-info { flex: 1; min-width: 0; }
.related-name {
  font-size: 14px;
  /*font-weight: 500;*/
  color: #1f2937;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.related-desc {
  font-size: 12px;
  color: #9ca3af;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 侧边栏卡片 */
.sidebar { min-width: 0; }
.side-card {
  background: #fff;
  border: 1px solid #ebeef5;
  border-radius: 8px;
  padding: 18px 20px;
  margin-bottom: 16px;
}
.side-title {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f3f4f6;
  display: flex;
  align-items: center;
  gap: 6px;
}
.side-title .iconfont { color: #2563eb; font-size: 16px; }
.side-rank-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed #f0f0ed;
  transition: all 0.2s;
}
.side-rank-list li:last-child { border-bottom: none; }
.side-rank-list li:hover { padding-left: 4px; }
.side-rank-list li:hover .side-rank-name { color: #2563eb; }
.rank-num {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: #e5e7eb;
  color: #6b7280;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.rank-num.top1 { background: #fef3c7; color: #b45309; }
.rank-num.top2 { background: #f3f4f6; color: #6b7280; }
.rank-num.top3 { background: #fed7aa; color: #d97706; }
.side-rank-name {
  flex: 1;
  font-size: 13px;
  color: #374151;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s;
}
.side-rank-heat {
  font-size: 12px;
  color: #9ca3af;
  flex-shrink: 0;
}

/* 广告占位 */
.ad-box {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  margin-bottom: 16px;
  border: 1px dashed #f59e0b;
}
.ad-box .ad-label {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(0,0,0,0.1);
  border-radius: 4px;
  font-size: 11px;
  color: #78350f;
  margin-bottom: 8px;
}
.ad-box h4 {
  font-size: 15px;
  color: #78350f;
  margin-bottom: 4px;
}
.ad-box p {
  font-size: 12px;
  color: #92400e;
  opacity: 0.8;
}

/* 快速链接 */
.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.quick-links a {
  padding: 5px 10px;
  background: #f3f4f6;
  color: #4b5563;
  border-radius: 4px;
  font-size: 12px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.quick-links a:hover {
  background: #2563eb;
  color: #fff;
}

/* ===== 排行榜页特有样式 ===== */

/* 榜单头部 */
.rank-header {
  background: #fff;
  border: 1px solid #ebeef5;
  border-radius: 6px;
  padding: 28px 32px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.rank-header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}
.rank-trophy {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #fef3c7, #fbbf24);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #92400e;
  font-size: 28px;
}
.rank-header h1 {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 4px;
}
.rank-header p {
  font-size: 13px;
  color: #888;
}
.rank-stats { display: flex; gap: 32px; }
.rank-stat { text-align: center; }
.rank-stat .num {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  font-variant-numeric: tabular-nums;
}
.rank-stat .label {
  font-size: 12px;
  color: #999;
  margin-top: 2px;
}

/* Tab 切换 */
.rank-tabs-wrap {
  background: #fff;
  border: 1px solid #ebeef5;
  border-radius: 6px;
  margin-bottom: 16px;
  padding: 0 20px;
}
.rank-tabs {
  display: flex;
  gap: 0;
  position: relative;
}
.rank-tab {
  padding: 14px 20px;
  cursor: pointer;
  font-size: 14px;
  color: #666;
  transition: color 0.2s ease-out;
  font-weight: 500;
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
}
.rank-tab:hover { color: #2563eb; }
.rank-tab.active {
  color: #2563eb;
  font-weight: 600;
}
.rank-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20px;
  right: 20px;
  height: 2px;
  background: #2563eb;
  border-radius: 2px 2px 0 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.rank-tab .iconfont { font-size: 16px; }

/* 筛选栏 */
.filter-bar {
  background: #fff;
  border: 1px solid #ebeef5;
  border-radius: 6px;
  padding: 14px 20px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.filter-left {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #666;
}
.filter-label { color: #999; }
.filter-tags { display: flex; gap: 4px; }
.filter-tag {
  padding: 4px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  color: #666;
  transition: all 0.2s;
}
.filter-tag:hover {
  color: #2563eb;
  background: #f0f4ff;
}
.filter-tag.active {
  color: #2563eb;
  background: #f0f4ff;
  font-weight: 500;
}
.filter-right {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #666;
}
.sort-select {
  padding: 4px 8px;
  border: 1px solid #e0ded8;
  border-radius: 4px;
  font-size: 13px;
  color: #333;
  background: #fff;
  cursor: pointer;
  outline: none;
}

/* 排行列表 */
.rank-list {
  background: #fff;
  border: 1px solid #ebeef5;
  border-radius: 6px;
  overflow: hidden;
}
.rank-list-header {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  background: #fafaf7;
  border-bottom: 1px solid #ebeef5;
  font-size: 12px;
  color: #999;
  font-weight: 500;
}
.rank-list-header .col-rank { width: 60px; }
.rank-list-header .col-site { flex: 1; }
.rank-list-header .col-category { width: 100px; }
.rank-list-header .col-hot { width: 180px; }
.rank-list-header .col-trend { width: 60px; text-align: center; }
.rank-list-header .col-action { width: 80px; text-align: right; }

.rank-item {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #f0eee9;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}
.rank-item:last-child { border-bottom: none; }
.rank-item:hover { background: #fafaf7; }
.rank-item:hover .rank-site-name { color: #2563eb; }

.col-rank { width: 60px; flex-shrink: 0; }
.rank-num {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: #999;
  border-radius: 4px;
}
.rank-num.top1 {
  background: linear-gradient(135deg, #fef3c7, #fbbf24);
  color: #92400e;
  box-shadow: 0 2px 6px rgba(251, 191, 36, 0.3);
}
.rank-num.top2 {
  background: linear-gradient(135deg, #f3f4f6, #d1d5db);
  color: #4b5563;
  box-shadow: 0 2px 6px rgba(156, 163, 175, 0.3);
}
.rank-num.top3 {
  background: linear-gradient(135deg, #fed7aa, #f97316);
  color: #7c2d12;
  box-shadow: 0 2px 6px rgba(249, 115, 22, 0.3);
}

.col-site {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}
.rank-site-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: #f0f4ff;
  color: #2563eb;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.rank-item:hover .rank-site-icon { transform: scale(1.1); }
.rank-site-info { flex: 1; min-width: 0; }
.rank-site-name {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 3px;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.rank-site-desc {
  font-size: 12px;
  color: #999;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.col-category { width: 100px; flex-shrink: 0; }
.rank-category {
  font-size: 12px;
  color: #666;
  padding: 3px 10px;
  background: #f5f5f0;
  border-radius: 3px;
  display: inline-block;
  transition: all 0.2s;
}
.rank-category:hover {
  background: #e8e8e0;
  color: #333;
}

.col-hot { width: 180px; flex-shrink: 0; }
.rank-hot {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hot-bar {
  flex: 1;
  height: 6px;
  background: #f0eee9;
  border-radius: 3px;
  overflow: hidden;
}
.hot-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #2563eb);
  border-radius: 3px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}
.hot-value {
  font-size: 13px;
  color: #333;
  font-weight: 600;
  min-width: 55px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.col-trend { width: 60px; flex-shrink: 0; text-align: center; }
.rank-trend {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 3px;
}
.trend-up { color: #dc2626; background: #fef2f2; }
.trend-down { color: #16a34a; background: #f0fdf4; }
.trend-flat { color: #9ca3af; background: #f9fafb; }

.col-action { width: 80px; flex-shrink: 0; text-align: right; }
.btn-detail {
  padding: 5px 14px;
  border: 1px solid #e0ded8;
  border-radius: 4px;
  font-size: 12px;
  color: #555;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
}
.btn-detail:hover {
  border-color: #2563eb;
  color: #2563eb;
  background: #f0f4ff;
}

/* ===== 公共组件：顶栏分类下拉菜单 ===== */
.nav .nav-drop { position: relative; display: flex; align-items: center; }
.nav .nav-drop-trigger {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  color: #4b5563;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
}
.nav .nav-drop:hover .nav-drop-trigger,
.nav .nav-drop.open .nav-drop-trigger { color: #2563eb; background: #eff6ff; }
.nav .nav-drop.active .nav-drop-trigger { color: #2563eb; background: #dbeafe; }
.nav .nav-drop-trigger .nav-caret {
  font-size: 10px;
  opacity: 1;
  transform: translateX(0px) rotate(0deg);
  transition: opacity .2s ease, transform .3s ease;
}
.nav .nav-drop:hover .nav-caret,
.nav .nav-drop.open .nav-caret {
  opacity: 1;
  transform: translateX(0) rotate(180deg);
}
.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  margin-top: 0;
  background: #fff;
  border: 1px solid #ebeef5;
  border-radius: 12px;
  box-shadow: 0 14px 40px rgba(0,0,0,.12);
  padding: 16px;
  min-width: 580px;
  z-index: 300;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
}
.nav .nav-drop:hover .nav-dropdown,
.nav .nav-drop.open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity .25s ease, transform .25s ease;
}
.nav-dropdown-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px 10px;
}
.nav-dropdown-grid a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  color: #374151;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all .2s ease;
}
.nav-dropdown-grid a:hover { background: #f3f6ff; color: #2563eb; transform: translateX(3px); }
.nav-dropdown-grid a .dd-ico {
  width: 15px;
  height: 15px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: 14px;
  flex-shrink: 0;
  text-align: center;
  line-height: 26px;
}

/* ===== 公共组件：顶栏登录下拉面板 ===== */
.login-drop { position: relative; display: flex; }
.login-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 300px;
  background: #fff;
  border: 1px solid #ebeef5;
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(15, 23, 42, .18);
  overflow: hidden;
  z-index: 500;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.28s ease;
}
.login-drop.open .login-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.login-panel .lp-hero {
  padding: 22px 24px 18px;
  background: linear-gradient(180deg, #f5f7ff 0%, #fdfdff 100%);
  text-align: center;
  color: #1f2937;
  border-bottom: 1px solid #eef1f8;
}
.login-panel .lp-avatar {
  width: 52px;
  height: 52px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 24px;
  box-shadow: 0 6px 14px rgba(99, 102, 241, .28);
}
.login-panel .lp-welcome { font-size: 18px; font-weight: 700; color: #1f2937; }
.login-panel .lp-sub { font-size: 12px; color: #8b93a7; margin-top: 4px; }
.login-panel .lp-body { padding: 20px 22px 18px; }
.login-panel .lp-field { position: relative; margin-bottom: 12px; }
.login-panel .lp-ico {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  display: flex;
}
.login-panel .lp-ico .iconfont { font-size: 16px; }
.login-panel .lp-field input {
  width: 100%;
  height: 44px;
  padding: 0 14px 0 38px;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
  background: #f8fafc;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.login-panel .lp-field input:focus {
  border-color: #2563eb;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
.login-panel .lp-btn {
  width: 100%;
  height: 44px;
  border: none;
  border-radius: 9px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  margin-top: 4px;
  box-shadow: 0 6px 16px rgba(37, 99, 235, .25);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.login-panel .lp-btn:hover { opacity: .92; transform: translateY(-1px); }
.login-panel .lp-btn:active { transform: scale(.98); }
.login-panel .lp-links { display: flex; justify-content: space-between; margin-top: 14px; }
.login-panel .lp-links a { font-size: 13px; color: #9ca3af; text-decoration: none; transition: color .2s; }
.login-panel .lp-links a:first-child { color: #2563eb; font-weight: 500; }
.login-panel .lp-links a:hover { color: #7c3aed; }
.login-panel .lp-third { margin-top: 18px; }
.login-panel .lp-third-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #a2aab8;
}
.login-panel .lp-third-title::before,
.login-panel .lp-third-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #eef1f8;
}
.login-panel .lp-third-btns {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 14px;
}
.login-panel .lp-oauth {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.login-panel .lp-oauth:hover { transform: translateY(-2px); opacity: .9; }
.login-panel .lp-oauth.qq { background: #12a5f4; }
.login-panel .lp-oauth.wechat { background: #07c160; }
.login-panel .lp-oauth.weibo { background: #e6162d; font-size: 13px; }

/* ===== 公共组件：顶栏个人中心下拉面板 ===== */

.user-drop { display: none; }                              /* 默认隐藏 */
.topbar-right.is-login .login-drop { display: none; }      /* 已登录→隐藏登录框 */
.topbar-right.is-login .user-drop { display: flex; }       /* 已登录→显示个人中心 */

.user-trigger {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 8px;
  color: #4b5563;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.user-trigger:hover { color: #2563eb; background: #eff6ff; }
.user-trigger .user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  display: grid;
  place-items: center;
}
.user-trigger .user-avatar .iconfont { font-size: 15px; }
.user-trigger .user-caret { font-size: 12px; color: #9ca3af; transition: transform .25s ease; }
.user-drop.open .user-caret { transform: rotate(180deg); }
.user-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 250px;
  background: #fff;
  border: 1px solid #ebeef5;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, .14);
  overflow: hidden;
  z-index: 500;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.25s ease;
}
.user-drop.open .user-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.user-panel .up-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid #f1f3f9;
}
.user-panel .up-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.user-panel .up-avatar .iconfont { font-size: 22px; }
.user-panel .up-name { font-size: 15px; font-weight: 700; color: #1f2937; }
.user-panel .up-id { font-size: 12px; color: #9ca3af; margin-top: 2px; }
.user-panel .up-nav { padding: 6px 0; }
.user-panel .up-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  font-size: 13px;
  color: #374151;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.user-panel .up-nav a i{font-size: 14px;}
.user-panel .up-nav a .iconfont { font-size: 15px; color: #7c8db0; }
.user-panel .up-nav a:hover { background: #f6f9ff; color: #2563eb; }
.user-panel .up-nav a:hover .iconfont { color: #2563eb; }
.user-panel .up-logout {
  display: flex;
  justify-content: center;
  padding: 12px 18px;
  border-top: 1px solid #f1f3f9;
  font-size: 13px;
  color: #ef4444;
  text-decoration: none;
  transition: background 0.2s ease;
}
.user-panel .up-logout:hover { background: #fef2f2; }

/* 面包屑 */
.breadcrumb {
  background: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  margin-bottom: 14px;
  font-size: 13px;
  color: #6b7280;
  border: 1px solid #ebeef5;
  display: flex;
  align-items: center;
  gap: 8px;
}
.breadcrumb a { color: #2563eb; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { color: #d1d5db; }
.breadcrumb .current { color: #374151; font-weight: 500; }
.color-blue { color: #2563eb; }
.color-red { color: #ef4444; }
.size-sm { font-size: 8px; }