/* ====== 设计 Tokens（黄金极客流光方案） ====== */
:root {
  /* 品牌基本色彩（亮色） */
  --color-dark: #2a2c35;
  --color-text: #5e6475;
  --color-title: #1a1c22;
  --color-bg: #f9fafc;       /* 现代温和偏冷白 */
  --color-bg-alt: #f1f3f7;   /* 清爽背板色 */
  --color-card-bg: #ffffff;  /* 卡片底色 */
  --color-border: #e6e8eb;   /* 极细分割线 */
  --color-white: #ffffff;
  
  /* 毛玻璃所需的 RGB 变量 */
  --color-bg-rgb: 249, 250, 252;
  --color-border-rgb: 230, 232, 235;

  /* Favor 经典的紫青双色流光渐变 */
  --grad-start: #36c5e7;     /* 渐变青 */
  --grad-end: #4d36af;       /* 渐变紫 */
  --grad-mix: linear-gradient(135deg, var(--grad-start) 0%, var(--grad-end) 100%);
  --grad-mix-soft: linear-gradient(135deg, rgba(54, 197, 231, 0.08) 0%, rgba(77, 54, 175, 0.08) 100%);

  /* 边角与布局 */
  --radius-card: 16px;       /* 16px 圆角，极简科技范 */
  --radius-btn: 8px;
  --container-max: 1280px;
  --nav-height: 72px;

  /* 漫反射高级双层发光阴影（卡片悬浮用） */
  --shadow-sm: 0 2px 8px rgba(77, 54, 175, 0.03);
  --shadow-md: 0 12px 32px rgba(77, 54, 175, 0.06), 0 2px 8px rgba(0, 0, 0, 0.02);
  --shadow-lg: 0 20px 48px rgba(77, 54, 175, 0.10), 0 4px 16px rgba(0, 0, 0, 0.03);
}

/* ====== 基础 ====== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  font-size: 16px;
  line-height: 1.6;
  padding-top: var(--nav-height);
  transition: background 0.3s, color 0.3s;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { color: var(--color-title); font-weight: 700; margin: 0; }
h1 { font-size: 46px; line-height: 1.2; letter-spacing: -0.02em; }
h2 { font-size: 30px; line-height: 1.3; letter-spacing: -0.01em; }
h3 { font-size: 18px; line-height: 1.4; }
@media (max-width: 768px) {
  h1 { font-size: 32px; }
  h2 { font-size: 24px; }
}

.container-x { max-width: var(--container-max); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-alt { background: var(--color-bg-alt); }
@media (max-width: 768px) { .section { padding: 48px 0; } }

/* ====== 渐变文字与按钮 ====== */
.grad-text {
  background: var(--grad-mix);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* 通用幽灵按钮（如 404 页的“返回首页”） */
.btn-dark-fill {
  display: inline-block;
  padding: 8px 18px;
  background: rgba(var(--color-border-rgb), 0.15);
  color: var(--color-text) !important;
  border-radius: var(--radius-btn);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--color-border);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-dark-fill:hover {
  background: var(--grad-mix-soft);
  color: var(--color-title) !important;
  border-color: rgba(77, 54, 175, 0.3);
  box-shadow: 0 4px 12px rgba(77, 54, 175, 0.1);
  transform: translateY(-1px);
}

/* 主流渐变按钮 */
.btn-grad {
  display: inline-block;
  padding: 10px 24px;
  background: var(--grad-mix);
  color: var(--color-white) !important;
  border-radius: var(--radius-btn);
  border: 0;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(77, 54, 175, 0.15);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-grad:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(77, 54, 175, 0.25);
  opacity: 0.95;
}

/* ====== 顶部导航（Glassmorphism） ====== */
.nav-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-height);
  background: rgba(var(--color-bg-rgb), 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(var(--color-border-rgb), 0.5);
  display: flex; align-items: center;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.nav-inner {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--color-title); font-size: 18px; }
.nav-brand img { width: 32px; height: 32px; transition: transform 0.3s ease; }
.nav-brand:hover img { transform: rotate(10deg); }
.nav-menu { display: flex; gap: 32px; align-items: center; }
.nav-menu a {
  color: var(--color-text);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 0;
  position: relative;
  transition: color 0.2s;
}
.nav-menu a:hover { color: var(--color-title); }
.nav-menu a:focus-visible { outline: 2px solid var(--grad-end); outline-offset: 4px; border-radius: 2px; }

/* 流光描边胶囊：API 商城等 CTA 入口 */
.nav-menu a.nav-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  font-weight: 600;
  color: var(--color-title);
  border-radius: 999px;
  border: 1.5px solid transparent;
  background:
    linear-gradient(var(--color-card-bg), var(--color-card-bg)) padding-box,
    linear-gradient(90deg, var(--grad-start), var(--grad-end), var(--grad-start)) border-box;
  background-size: 100% 100%, 200% 100%;
  animation: nav-cta-flow 4s linear infinite;
  transition: color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.nav-menu a.nav-cta:hover {
  background:
    var(--grad-mix-soft) padding-box,
    linear-gradient(var(--color-card-bg), var(--color-card-bg)) padding-box,
    linear-gradient(90deg, var(--grad-start), var(--grad-end), var(--grad-start)) border-box;
  background-size: auto, auto, 200% 100%;
  color: var(--color-title);
  box-shadow: 0 4px 12px rgba(77, 54, 175, 0.1);
  transform: translateY(-1px);
}
.nav-menu a.nav-cta::after { content: none; } /* 兜底：防止 .active 状态横线 */
.nav-cta-logo {
  width: 22px;
  height: 22px;
  margin-right: 7px;
  border-radius: 5px;
  flex-shrink: 0;
}
@keyframes nav-cta-flow {
  to { background-position: 0 0, 200% 0; }
}
.nav-menu a.active {
  color: var(--color-title);
  font-weight: 600;
}
.nav-menu a.active::after {
  content: '';
  position: absolute;
  left: 10%; right: 10%; bottom: -8px;
  height: 2px;
  border-radius: 999px;
  background: var(--grad-mix);
  transform: scaleX(1);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 0; font-size: 24px; cursor: pointer; color: var(--color-title); }
@media (max-width: 1100px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--color-card-bg);
    flex-direction: column;
    padding: 16px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--color-border);
    z-index: 999;
    box-shadow: var(--shadow-md);
  }
  .nav-menu.open { display: flex; }
  .nav-toggle { display: block; }
}

/* ====== Hero 区域与背景网格 ====== */
.hero {
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 50% 0%, rgba(54, 197, 231, 0.08) 0%, rgba(77, 54, 175, 0.05) 50%, var(--color-bg) 100%);
  text-align: center;
}
/* 背景网格 + 60s 缓慢横向漂移 */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(77, 54, 175, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77, 54, 175, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: 0 0;
  mask-image: radial-gradient(circle at 50% 30%, black, transparent 85%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, black, transparent 85%);
  pointer-events: none;
  animation: hero-grid-drift 60s linear infinite;
  z-index: 1;
}
/* 呼吸光层（独立元素，避免重绘 background） */
.hero-glow {
  position: absolute;
  inset: -10%;
  background: radial-gradient(circle at 50% 35%,
    rgba(54, 197, 231, 0.22) 0%,
    rgba(77, 54, 175, 0.10) 35%,
    transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  opacity: 0.6;
  animation: hero-breathe 6s ease-in-out infinite;
  z-index: 0;
}
/* Canvas 粒子层（最底） */
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
}
/* 让正文浮在所有装饰层之上 */
.hero > .container-x { position: relative; z-index: 3; }

.hero h1 { font-size: 68px; margin-bottom: 8px; letter-spacing: -0.025em; opacity: 0; animation: hero-rise 0.7s 0.1s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
.hero .hero-tagline { font-size: 24px; color: var(--color-title); font-weight: 500; margin: 0 0 18px; opacity: 0; animation: hero-rise 0.7s 0.22s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
.hero .subtitle { font-size: 16px; color: var(--color-text); margin-bottom: 36px; opacity: 0; animation: hero-rise 0.7s 0.34s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
.hero .search-box { opacity: 0; animation: hero-rise 0.7s 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
.hero .chips { opacity: 0; animation: hero-rise 0.7s 0.68s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }

/* 渐变文字流光 —— 仅 hero 区内的 grad-text 才动，避免影响子页面/卡片标题 */
.hero .grad-text {
  background: linear-gradient(90deg,
    var(--grad-end) 0%,
    #6f42c1 30%,
    var(--grad-start) 50%,
    #6f42c1 70%,
    var(--grad-end) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: grad-flow 4s linear infinite;
}
/* h1.grad-text 需要同时跑入场动画 + 流光（animation 简写互相覆盖问题） */
.hero h1.grad-text {
  animation:
    hero-rise 0.7s 0.1s cubic-bezier(0.2, 0.7, 0.2, 1) forwards,
    grad-flow 4s linear infinite;
}

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes hero-breathe {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50%      { opacity: 0.85; transform: scale(1.04); }
}
@keyframes hero-grid-drift {
  from { background-position: 0 0; }
  to   { background-position: 32px 32px; }
}
@keyframes grad-flow {
  from { background-position: 0% 50%; }
  to   { background-position: 200% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero h1,
  .hero .hero-tagline,
  .hero .subtitle,
  .hero .search-box,
  .hero .chips,
  .hero .grad-text,
  .hero::before,
  .hero-glow,
  .nav-menu a.nav-cta {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .hero-canvas { display: none; }
}

@media (max-width: 768px) {
  .hero { padding: 64px 0 48px; }
  .hero h1 { font-size: 40px; }
  .hero .hero-tagline { font-size: 18px; }
  .hero .subtitle { font-size: 14px; margin-bottom: 24px; }
  /* 移动端关闭重特效，省电省 GPU */
  .hero-canvas { display: none; }
  .hero-glow { animation-duration: 10s; }
}

/* 小 hero（子页面顶部） */
.hero-sm {
  padding: 64px 0 40px;
  background: radial-gradient(circle at 50% 0%, rgba(77, 54, 175, 0.04) 0%, var(--color-bg-alt) 100%);
  text-align: center;
  position: relative;
}
.hero-sm h1 { font-size: 34px; margin-bottom: 8px; letter-spacing: -0.01em; }
.hero-sm .subtitle { font-size: 16px; color: var(--color-text); }
@media (max-width: 768px) { .hero-sm h1 { font-size: 26px; } }

/* ====== 高阶发光搜索框 ====== */
.search-box {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 6px 6px 6px 24px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.search-box:focus-within {
  border-color: rgba(77, 54, 175, 0.35);
  box-shadow: 0 0 0 4px rgba(77, 54, 175, 0.12), var(--shadow-md);
  transform: translateY(-1px);
}
.search-box input {
  flex: 1;
  border: 0;
  outline: 0;
  font-size: 15px;
  background: transparent;
  color: var(--color-title);
}
.search-box input::placeholder { color: #a0a6b5; }
.search-box button {
  padding: 10px 26px;
  border: 0;
  border-radius: 999px;
  background: var(--grad-mix);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(77, 54, 175, 0.15);
  transition: all 0.25s ease;
}
.search-box button:hover {
  box-shadow: 0 4px 12px rgba(77, 54, 175, 0.3);
  transform: scale(1.02);
}

.search-box-sm {
  max-width: 100%;
  margin: 0 0 16px;
}

/* 推荐关键词 chips */
.chips { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.chip {
  padding: 6px 16px;
  background: rgba(var(--color-border-rgb), 0.3);
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  color: var(--color-text);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.chip:hover {
  background: var(--color-card-bg);
  border-color: rgba(77, 54, 175, 0.25);
  color: var(--grad-end);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
.chip:focus-visible { outline: 2px solid var(--grad-end); outline-offset: 2px; }

/* ====== 段标题 ====== */
.section-head {
  display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 32px;
}
.section-head h2 { font-size: 26px; font-weight: 700; color: var(--color-title); }
.section-head .more { font-size: 14px; color: var(--color-text); font-weight: 500; transition: color 0.2s ease; }
.section-head .more:hover { color: var(--grad-end); }

/* ====== 卡片网格 ====== */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 1199px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (max-width: 768px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .grid { grid-template-columns: 1fr; } }

.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 991px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .grid-3 { grid-template-columns: 1fr; } }

/* ====== 高阶科技感卡片 ====== */
.card-item {
  display: flex;
  flex-direction: column;
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.card-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(77, 54, 175, 0.2);
}
.card-item--agent { height: 220px; }
.card-item--site { height: 340px; }

/* 网站卡截图区 */
.card-shot {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--grad-mix-soft);
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--color-border);
}
.card-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), filter 0.5s ease;
}
.card-item:hover .card-shot img {
  transform: scale(1.04);
  filter: brightness(1.02) contrast(1.02);
}

/* 卡片内容容器 */
.card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.card-item--agent .card-body { padding: 22px; }

.card-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 12px; }

/* 图标容器悬浮 3D 浮动与微渐变 */
.card-icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-mix-soft);
  border-radius: 12px;
  font-size: 26px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-item:hover .card-icon {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 4px 12px rgba(77, 54, 175, 0.15);
}
.card-icon-img { width: 32px; height: 32px; object-fit: contain; }

/* 网站卡内图标微缩 */
.card-item--site .card-icon { width: 40px; height: 40px; font-size: 20px; border-radius: 10px; }
.card-item--site .card-icon-img { width: 24px; height: 24px; }

/* 徽标 */
.card-badge {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(54, 197, 231, 0.08);
  color: var(--grad-end);
  font-weight: 600;
  border: 1px solid rgba(77, 54, 175, 0.08);
}
.card-title { font-size: 17px; font-weight: 700; color: var(--color-title); margin-bottom: 6px; transition: color 0.2s ease; }
.card-item:hover .card-title { color: var(--grad-end); }

.card-desc {
  font-size: 13px;
  color: var(--color-text);
  line-height: 1.5;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 14px;
}
.card-tags { display: flex; gap: 6px; }
.card-tag {
  font-size: 11px;
  padding: 3px 10px;
  background: var(--color-bg-alt);
  color: var(--color-text);
  border-radius: 6px;
  transition: all 0.2s ease;
}
.card-item:hover .card-tag {
  background: rgba(77, 54, 175, 0.05);
  color: var(--grad-end);
}

/* 立即访问横向微移动效 */
.card-action {
  font-size: 13px;
  color: var(--grad-end);
  font-weight: 600;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-item:hover .card-action {
  transform: translateX(3px);
}

/* 分类速览卡片 */
.cat-card {
  display: flex; flex-direction: column; align-items: center;
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 24px 16px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  height: 148px;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}
.cat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(77, 54, 175, 0.15);
}
.cat-card-icon {
  font-size: 38px;
  margin-bottom: 8px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.cat-card:hover .cat-card-icon {
  transform: scale(1.12) rotate(4deg);
}
.cat-card-name { font-size: 15px; color: var(--color-title); font-weight: 600; margin-bottom: 4px; }
.cat-card-count { font-size: 12px; color: var(--color-text); }

/* ====== 磨砂玻璃自适应筛选条 ====== */
.filter-bar {
  position: sticky; top: var(--nav-height);
  background: rgba(var(--color-bg-rgb), 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 20px 0;
  border-bottom: 1px solid rgba(var(--color-border-rgb), 0.5);
  z-index: 100;
  transition: all 0.3s ease;
}
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.filter-row:first-child { margin-top: 0; }
.filter-row + .grid { margin-top: 28px; }
.filter-label { font-size: 13px; color: var(--color-text); margin-right: 8px; min-width: 40px; font-weight: 500; }

/* 胶囊 Tabs 按钮：完全恢复至最原始、硬朗的高对比度状态，不带模糊投影 */
.tab {
  padding: 6px 14px;
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--color-text);
  cursor: pointer;
  transition: all 0.2s;
}
.tab:hover { border-color: var(--color-dark); color: var(--color-title); }
.tab:focus-visible { outline: 2px solid var(--grad-end); outline-offset: 2px; }
.tab.active { background: var(--color-dark); border-color: var(--color-dark); color: #fff; font-weight: 700; }

/* ====== 结果计数 / 空状态 ====== */
.result-count { font-size: 14px; color: var(--color-text); margin-bottom: 20px; font-weight: 500; }
.empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 0;
  color: var(--color-text);
  font-size: 15px;
}

/* ====== 商务极简页脚 ====== */
.footer {
  background: var(--color-dark);
  color: #a0a6b5;
  padding: 64px 0 32px;
  margin-top: 80px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }
.footer h4 { color: #fff; font-size: 15px; margin: 0 0 16px; font-weight: 600; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand img { width: 32px; height: 32px; }
.footer-brand span { color: #fff; font-weight: 700; font-size: 18px; }
.footer-desc { font-size: 14px; color: #8a8f9d; line-height: 1.6; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 12px; }
.footer li a { font-size: 14px; color: #a0a6b5; transition: color 0.2s; }
.footer li a:hover { color: #fff; }
.footer-copy {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  color: #707584;
}

/* ============ Hero 资讯横滚条 ============ */
/* 布局：label 和 more 浮在卡片外的左上 / 右下，卡片本体只包横滚区 */
.hero-marquee {
  position: relative;
  margin: 28px 0 0;
  /* 上下留出空间放 label / more */
  padding: 18px 0 22px;
  text-align: left;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.55s cubic-bezier(0.2, 0.7, 0.2, 1),
              transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.hero-marquee.is-ready { opacity: 1; transform: translateY(0); }

/* AI 资讯标签：横排，浮在卡片左上角外侧 */
.hero-marquee-label {
  position: absolute;
  top: 0;
  left: 4px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1;
  background: var(--grad-mix);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
  pointer-events: none;
}

/* 横滚区（卡片本体）：自动轮播，滚动条完全隐藏 */
.hero-marquee-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  /* 注：scroll-snap 与 RAF 增量滚动冲突，已移除 */
  padding: 12px 14px;
  min-width: 0;
  background: rgba(var(--color-bg-rgb), 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(var(--color-border-rgb), 0.6);
  border-radius: 14px;
  /* Firefox / IE：隐藏滚动条 */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
/* WebKit / Blink：隐藏滚动条 */
.hero-marquee-scroll::-webkit-scrollbar { display: none; }

.hero-marquee-item {
  flex: 0 0 280px;
  display: flex;
  gap: 12px;
  padding: 12px;
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.25s ease;
}
.hero-marquee-item:hover {
  transform: translateY(-3px);
  border-color: rgba(77, 54, 175, 0.3);
  box-shadow: var(--shadow-md);
}
.hero-marquee-item:focus-visible {
  outline: 2px solid var(--grad-end);
  outline-offset: 2px;
}

.hero-marquee-cover {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--grad-mix-soft);
}
.hero-marquee-cover--ph { /* 无封面时的占位，仅显示渐变底色 */ }

.hero-marquee-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-marquee-source {
  font-size: 11px;
  font-weight: 600;
  color: var(--grad-end);
  letter-spacing: 0.02em;
}
.hero-marquee-title {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--color-title);
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 查看更多：浮在卡片右下角外侧 */
.hero-marquee-more {
  position: absolute;
  right: 4px;
  bottom: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  color: var(--grad-end);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease, transform 0.2s ease;
}
.hero-marquee-more:hover {
  color: var(--grad-start);
  transform: translateX(3px);
}
.hero-marquee-more:focus-visible {
  outline: 2px solid var(--grad-end);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .hero-marquee {
    margin-top: 22px;
    padding: 16px 0 20px;
  }
  .hero-marquee-label { font-size: 11px; left: 2px; }
  .hero-marquee-scroll { padding: 10px 12px; gap: 10px; }
  .hero-marquee-item { flex: 0 0 240px; padding: 10px; }
  .hero-marquee-cover { flex: 0 0 52px; width: 52px; height: 52px; }
  .hero-marquee-more { font-size: 11px; right: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-marquee {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* ============ AI 资讯模块 ============ */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.news-item {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
}
.news-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(77, 54, 175, 0.15);
}
.news-item > a {
  display: flex;
  gap: 20px;
  padding: 20px;
  color: inherit;
  text-decoration: none;
}

.news-cover {
  flex: 0 0 240px;
  width: 240px;
  height: 135px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--grad-mix-soft);
  position: relative;
}
.news-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.news-item:hover .news-cover img {
  transform: scale(1.04);
}

.news-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.news-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-title);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}
.news-item:hover .news-title { color: var(--grad-end); }

.news-summary {
  margin: 0;
  font-size: 13px;
  color: var(--color-text);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-meta {
  margin-top: auto;
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: #8a8f9d;
}
.news-source {
  font-weight: 600;
  color: var(--grad-end);
}

.news-list .empty {
  padding: 40px 16px;
  text-align: center;
  color: var(--color-text);
  font-size: 14px;
}

/* 资讯页日期筛选条 */
.news-filter { margin-bottom: 20px; }
.btn-load-more {
  padding: 10px 32px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-btn);
  background: var(--color-card-bg);
  color: var(--color-title);
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.btn-load-more:hover { border-color: var(--grad-start); background: var(--grad-mix-soft); }

/* ====== 资讯页美化 ====== */

/* Hero 增强 */
.hero-news {
  padding: 64px 0 40px;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(54,197,231,0.10) 0%, rgba(77,54,175,0.08) 50%, var(--color-bg-alt) 100%);
  overflow: hidden;
  position: relative;
}
.hero-news::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%234d36af' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-news-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 20px;
  background: var(--grad-mix-soft);
  border: 1px solid rgba(54,197,231,0.25);
  font-size: 12px;
  font-weight: 600;
  color: var(--grad-start);
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}
.hero-news-badge::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--grad-start);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}
.hero-news h1 { font-size: 42px; margin-bottom: 10px; }
.hero-news .subtitle {
  font-size: 17px;
  color: var(--color-text);
  opacity: 0.85;
}

/* 资讯卡片左侧彩色边框 + 内容优化 */
.news-item {
  border-left: 3px solid transparent;
  background-image: linear-gradient(var(--color-card-bg), var(--color-card-bg)),
                    linear-gradient(180deg, var(--grad-start), var(--grad-end));
  background-origin: border-box;
  background-clip: padding-box, border-box;
  border-left-color: var(--grad-start);
}
.news-item:hover {
  border-left-color: var(--grad-end);
}

/* 来源标签 pill 样式 */
.news-source {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--grad-mix-soft);
  font-size: 11px;
  font-weight: 600;
  color: var(--grad-end);
  border: 1px solid rgba(77,54,175,0.12);
}

/* 筛选栏搜索框聚焦光晕 */
.news-search-input:focus {
  box-shadow: 0 0 0 3px rgba(54,197,231,0.12);
}

/* 结果计数 */
.result-count {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 13px;
}
.result-count::before {
  content: "";
  display: inline-block;
  width: 3px; height: 14px;
  border-radius: 2px;
  background: var(--grad-mix);
}

/* 加载更多按钮 */
.btn-load-more {
  border-radius: 24px;
  padding: 10px 40px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* 暗色模式适配 */
.is-dark-theme .hero-news {
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(54,197,231,0.07) 0%, rgba(77,54,175,0.06) 50%, var(--color-bg-alt) 100%);
}
.is-dark-theme .news-source {
  background: rgba(77,54,175,0.18);
  border-color: rgba(139,113,249,0.2);
  color: #c4b6ff;
}
.is-dark-theme .news-search-input {
  background: var(--color-bg);
}

/* ====== 极致科技极夜暗色模式 ====== */
.is-dark-theme {
  --color-bg: #090b10;       /* 极客极夜蓝 */
  --color-bg-alt: #12141c;   /* 深邃分区色 */
  --color-card-bg: #161822;  /* 亮色暗板卡片 */
  --color-border: #222533;   /* 极夜分割线 */
  --color-text: #a0a6b5;     /* 舒适的中字 */
  --color-title: #f1f3f7;    /* 亮白大字 */

  --color-bg-rgb: 9, 11, 16;
  --color-border-rgb: 34, 37, 51;

  --grad-end: #8b71f9;       /* 提亮暗色模式渐变终点，增强可读性 */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 16px 40px rgba(0, 0, 0, 0.55), 0 4px 12px rgba(139, 113, 249, 0.05);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.7), 0 8px 24px rgba(139, 113, 249, 0.08);
}

.card-badge--platform {
  color: var(--badge-fg);
  background: var(--badge-bg);
}
.is-dark-theme .card-badge {
  background: rgba(139, 113, 249, 0.15);
  color: #c4b6ff;
  border-color: rgba(139, 113, 249, 0.25);
}
.is-dark-theme .card-badge--platform {
  background: rgba(139, 113, 249, 0.15);
  color: #c4b6ff;
}
.is-dark-theme .card-action { color: #c4b6ff; }
.is-dark-theme body { background: var(--color-bg); color: var(--color-text); }

.is-dark-theme .nav-bar,
.is-dark-theme .nav-menu,
.is-dark-theme .search-box,
.is-dark-theme .chip,
.is-dark-theme .card-item,
.is-dark-theme .cat-card,
.is-dark-theme .filter-bar,
.is-dark-theme .tab { background: var(--color-card-bg); }

.is-dark-theme .nav-bar,
.is-dark-theme .nav-menu { border-bottom-color: var(--color-border); }

/* 深色模式下给 logo 加白色发光描边，避免深紫边缘和暗背景糊在一起 */
.is-dark-theme .nav-brand img,
.is-dark-theme .nav-cta-logo {
  filter:
    drop-shadow(0 0 1px rgba(255, 255, 255, 0.55))
    drop-shadow(0 0 4px rgba(140, 180, 255, 0.25));
}

.is-dark-theme .card-shot {
  background: linear-gradient(135deg, #1b1e2a 0%, #222533 100%);
  border-bottom-color: var(--color-border);
}

/* 回到顶部悬浮按钮 */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: auto;
  height: auto;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(54,197,231,0.35);
  background: rgba(var(--color-bg-rgb), 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--grad-end);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease,
              visibility 0.25s ease,
              transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.2s ease,
              color 0.2s ease,
              border-color 0.2s ease;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--grad-mix-soft);
  color: var(--grad-end);
  border-color: rgba(77, 54, 175, 0.3);
  transform: translateY(-2px);
}
.back-to-top:focus-visible {
  outline: 2px solid var(--grad-end);
  outline-offset: 3px;
}
@media (max-width: 768px) {
  .back-to-top {
    right: 16px;
    bottom: 16px;
    font-size: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .back-to-top { transition: opacity 0.15s ease, visibility 0.15s ease; }
}

/* 主题切换按钮 */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  color: var(--color-title);
  transition: all 0.2s ease;
}
.theme-toggle:hover {
  background: var(--color-bg-alt);
  border-color: var(--grad-end);
  color: var(--grad-end);
  transform: rotate(15deg);
}
.theme-toggle:focus-visible { outline: 2px solid var(--grad-end); outline-offset: 2px; }

@media (max-width: 768px) {
  .news-item > a {
    flex-direction: column;
    gap: 14px;
  }
  .news-cover {
    flex: 0 0 auto;
    width: 100%;
    height: 180px;
  }
}
