/* ==========================================================================
   AI 工具集 · 全局样式 v2（视觉升级版）
   设计方向：深蓝科技感 Hero + 浅色内容区 + 深色页脚，层次分明
   配色：主色 #2563EB（蓝），中性灰；无大面积紫色/靛蓝
   ========================================================================== */

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-deep: #1e3a8a;
  --primary-light: #eff6ff;
  --sky: #60a5fa;
  --bg: #f8fafc;
  --card-bg: #ffffff;
  --text: #0f172a;
  --text-2: #475569;
  --text-3: #94a3b8;
  --border: #e2e8f0;
  --dark: #0b1220;            /* 深色 hero / 页脚底 */
  --dark-2: #111c33;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 4px 16px rgba(15, 23, 42, 0.05);
  --shadow-hover: 0 6px 14px rgba(37, 99, 235, 0.12), 0 12px 32px rgba(15, 23, 42, 0.10);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* 尊重系统「减少动效」偏好 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================== 顶部导航 ============================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.3px;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.logo-text strong { font-size: 16.5px; font-weight: 800; letter-spacing: 0; }
.logo-text small { font-size: 11px; color: var(--text-3); font-weight: 400; letter-spacing: 0.5px; }
.logo-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 55%, #60a5fa 100%);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  flex-shrink: 0;
}
.logo small { font-size: 12px; font-weight: 400; color: var(--text-3); }

.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links > a {
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
  position: relative;
}
.nav-links > a:hover { color: var(--primary); }
.nav-links > a.active { color: var(--primary); font-weight: 600; }
.nav-links > a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 6px 6px 16px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.nav-search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.nav-search input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 13px;
  width: 140px;
  color: var(--text);
  font-family: inherit;
}
.nav-search button {
  border: none;
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  padding: 5px 16px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s;
}
.nav-search button:hover { background: var(--primary-dark); }

/* 桌面端「分类导航」下拉 */
.nav-cat { position: relative; }
.nav-cat-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 216px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-hover);
  padding: 8px;
  display: none;
  z-index: 200;
  animation: fadeIn 0.15s ease;
}
.nav-cat:hover .nav-cat-menu { display: block; }
.nav-cat-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--text-2);
  font-size: 13.5px;
  transition: background 0.12s, color 0.12s;
}
.nav-cat-menu a:hover { background: var(--primary-light); color: var(--primary); }
.nav-cat-menu a em { font-style: normal; font-size: 11px; color: var(--text-3); }

/* 移动端菜单 */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  color: var(--text);
  font-size: 16px;
  line-height: 1;
}
.nav-dropdown {
  display: none;
  border-top: 1px solid var(--border);
  background: #fff;
  padding: 10px 20px 16px;
}
.nav-dropdown.open { display: block; }
.nav-dropdown a {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 14px;
  color: var(--text-2);
}
.nav-dropdown a:last-child { border-bottom: none; }
.nav-dropdown a em { font-style: normal; color: var(--text-3); font-size: 12px; }

/* ============================== Hero（深蓝渐变） ============================== */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #0b1220 0%, #172554 55%, #1e3a8a 100%);
  color: #fff;
  padding: 80px 0 84px;
  text-align: center;
}

.hero .container { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: #bfdbfe;
  background: rgba(59, 130, 246, 0.16);
  border: 1px solid rgba(96, 165, 250, 0.35);
  border-radius: 999px;
  padding: 5px 16px;
  margin-bottom: 20px;
  backdrop-filter: blur(4px);
}
.hero-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
  animation: pulse 2s infinite;
}

.hero h1 {
  font-size: 58px;
  line-height: 1.15;
  letter-spacing: -1.5px;
  font-weight: 900;
}
.hero h1 .grad {
  background: linear-gradient(90deg, #60a5fa, #38bdf8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero .hero-sub {
  max-width: 620px;
  margin: 16px auto 0;
  color: #cbd5e1;
  font-size: 16px;
}

/* 搜索框 */
.search-box {
  max-width: 640px;
  margin: 32px auto 0;
  display: flex;
  background: #fff;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(2, 6, 23, 0.50), 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: box-shadow 0.2s;
}
.search-box:focus-within {
  box-shadow: 0 18px 56px rgba(37, 99, 235, 0.42), 0 0 0 3px rgba(96, 165, 250, 0.55);
}
.search-box input {
  flex: 1;
  border: none;
  outline: none;
  padding: 18px 28px;
  font-size: 16px;
  background: transparent;
  color: var(--text);
  font-family: inherit;
}
.search-box button {
  border: none;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #fff;
  padding: 0 38px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.15s;
}
.search-box button:hover { filter: brightness(1.1); }

.search-hot {
  margin-top: 18px;
  font-size: 13px;
  color: #94a3b8;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.search-hot a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #dbeafe;
  background: rgba(59, 130, 246, 0.18);
  border: 1px solid rgba(96, 165, 250, 0.35);
  border-radius: 999px;
  padding: 4px 16px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s;
}
.search-hot a::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #60a5fa;
}
.search-hot a:hover {
  color: #fff;
  border-color: rgba(96, 165, 250, 0.8);
  background: rgba(59, 130, 246, 0.35);
  transform: translateY(-1px);
}

/* Hero 数据面板 */
.hero-panel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 720px;
  margin: 34px auto 0;
}
.hero-stat {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 14px 12px;
  backdrop-filter: blur(4px);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.hero-stat:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(96, 165, 250, 0.5);
  transform: translateY(-2px);
}
.hero-stat .num {
  font-size: 27px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  line-height: 1.2;
}
.hero-stat .num span { color: #60a5fa; }
.hero-stat .label { font-size: 12.5px; color: #94a3b8; margin-top: 3px; }

/* ============================== 区块标题 ============================== */
.section { padding: 44px 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 22px;
}
.section-head .left { display: flex; align-items: baseline; gap: 12px; }
.section-head h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.3px; }
.section-head .en { font-size: 12px; color: var(--text-3); letter-spacing: 1.5px; }
.section-head .more { font-size: 13px; }
.section-head .more a {
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s;
}
.section-head .more a:hover { color: var(--primary); }

/* ============================== 分类网格 ============================== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.cat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
  color: var(--text);
  position: relative;
}
.cat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(37, 99, 235, 0.45);
}
.cat-card .arrow {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  opacity: 0;
  transition: opacity 0.18s, transform 0.18s;
}
.cat-card:hover .arrow { opacity: 1; transform: translateY(-50%) translateX(-2px); }
.cat-icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
}
.cat-icon svg { width: 24px; height: 24px; }
.cat-name { font-size: 16px; font-weight: 600; }
.cat-count { font-size: 12px; color: var(--text-3); margin-top: 2px; }

/* ============================== 工具卡片 ============================== */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.tool-card {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
  color: var(--text);
  position: relative;
  overflow: hidden;
}
/* 顶部细高光线 */
.tool-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.55), transparent);
  opacity: 0;
  transition: opacity 0.18s;
}
.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(37, 99, 235, 0.45);
}
.tool-card:hover::before { opacity: 1; }
.tool-card .card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.tool-card .card-main { display: flex; align-items: center; gap: 13px; min-width: 0; }
.tool-card .card-badges { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex-shrink: 0; }

.logo-block {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.16);
  position: relative;
  overflow: hidden;
}
.logo-block::after {
  content: "";
  position: absolute;
  top: -30%;
  left: -30%;
  width: 70%;
  height: 70%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.30), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.logo-block img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 13px;
}
/* 真实 Logo 容器：白底圆角方形，图片加载失败回退首字母 */
.logo-block.logo-img {
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}
.logo-block.logo-img::after { display: none; }
.logo-block.logo-img img {
  object-fit: contain;
  padding: 7px;
}
.logo-fb {
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-weight: 700;
  font-size: 20px;
  color: var(--primary);
}

.tool-name {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.card-text { min-width: 0; flex: 1; }
.tool-desc {
  font-size: 13px;
  color: var(--text-2);
  margin-top: 3px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tool-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tag {
  font-size: 11px;
  color: var(--primary);
  background: var(--primary-light);
  border-radius: 6px;
  padding: 2px 9px;
  white-space: nowrap;
  border: 1px solid rgba(37, 99, 235, 0.10);
}
.badge {
  font-size: 11px;
  border-radius: 999px;
  padding: 2px 10px;
  white-space: nowrap;
  font-weight: 500;
}
.badge-hot { color: #dc2626; background: #fef2f2; border: 1px solid #fecaca; }
.badge-rec { color: #b45309; background: #fffbeb; border: 1px solid #fde68a; }
.badge-new { color: #047857; background: #ecfdf5; border: 1px solid #a7f3d0; }

/* ============================== 页头（分类页 / 搜索页 深色） ============================== */
.page-head {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(800px 320px at 15% -20%, rgba(59, 130, 246, 0.25), transparent 60%),
    linear-gradient(180deg, #0b1220 0%, #15223d 100%);
  color: #fff;
  padding: 46px 0 40px;
}
.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 100% at 50% 0%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 100% at 50% 0%, #000 30%, transparent 100%);
  pointer-events: none;
}
.page-head .container { position: relative; z-index: 1; }
.page-head h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.5px; }
.page-head .desc { color: #cbd5e1; font-size: 14.5px; margin-top: 8px; max-width: 640px; }
.page-head .crumb { font-size: 12.5px; color: #94a3b8; margin-bottom: 10px; }
.page-head .crumb a { color: #94a3b8; }
.page-head .crumb a:hover { color: #60a5fa; }

/* 浅色页头变体（详情页） */
.page-head.light {
  background:
    radial-gradient(800px 320px at 15% -20%, rgba(37, 99, 235, 0.10), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.page-head.light .crumb { color: var(--text-3); }
.page-head.light .crumb a { color: var(--text-3); }
.page-head.light .crumb a:hover { color: var(--primary); }
.page-head.light .desc { color: var(--text-2); }

/* ============================== 分类页 ============================== */
.cat-layout { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; padding: 28px 0; }

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-2);
  border-radius: 999px;
  padding: 7px 18px;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.filter-sort select {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--text-2);
  padding: 8px 14px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s;
}
.filter-sort select:focus { border-color: var(--primary); }

/* ============================== 详情页 ============================== */
.detail-layout { display: block; padding: 28px 0; }
.detail-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.detail-head { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.detail-head .logo-block { width: 76px; height: 76px; border-radius: 20px; font-size: 32px; }
.detail-title { flex: 1; min-width: 220px; }
.detail-title h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.5px; }
.detail-title .desc { color: var(--text-2); margin-top: 4px; font-size: 15px; }
.detail-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 11px;
  padding: 11px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: all 0.15s;
}
.btn-primary {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}
.btn-primary:hover { background: linear-gradient(135deg, #1d4ed8, #2563eb); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

.meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 26px;
}
.meta-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  transition: border-color 0.15s;
}
.meta-item:hover { border-color: rgba(37, 99, 235, 0.35); }
.meta-item .k { font-size: 12px; color: var(--text-3); }
.meta-item .v { font-size: 14.5px; font-weight: 600; margin-top: 3px; }

.detail-section { margin-top: 28px; }
.detail-section h2 {
  font-size: 17px;
  font-weight: 700;
  padding-left: 11px;
  border-left: 3px solid var(--primary);
  margin-bottom: 12px;
}
.detail-section p { color: var(--text-2); font-size: 14.5px; }
.intro-text { white-space: pre-line; line-height: 1.8; }

.access-direct { color: #059669; }
.access-limited { color: #d97706; }
.access-blocked { color: #dc2626; }

.sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 84px; }
.sidebar .card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.sidebar .card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
  padding-left: 10px;
  border-left: 3px solid var(--primary);
}
.side-mini { display: flex; flex-direction: column; gap: 6px; }
.side-mini a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-2);
  font-size: 13.5px;
  padding: 7px;
  border-radius: 10px;
  transition: background 0.15s, color 0.15s;
}
.side-mini a:hover { background: var(--primary-light); color: var(--primary); }
.side-mini .logo-block { width: 30px; height: 30px; border-radius: 8px; font-size: 14px; }

/* ============================== 搜索页 ============================== */
.search-head { background: #fff; border-bottom: 1px solid var(--border); padding: 34px 0; }
.search-head h1 { font-size: 26px; font-weight: 800; }
.search-head .count { color: var(--text-3); font-size: 14px; margin-top: 4px; }
.search-box.light { box-shadow: var(--shadow); border: 1px solid var(--border); }
.search-box.light:focus-within { box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12); }

.hl { background: #fde68a; border-radius: 3px; padding: 0 1px; }
.empty-box { text-align: center; padding: 70px 20px; color: var(--text-3); }
.empty-box .big { font-size: 40px; margin-bottom: 10px; color: #cbd5e1; }

/* ============================== 页脚（深色） ============================== */
.footer {
  border-top: 1px solid #1e293b;
  background: var(--dark);
  padding: 34px 0;
  margin-top: 48px;
  font-size: 13px;
  color: #64748b;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.footer .brand { display: flex; align-items: center; gap: 8px; font-weight: 700; color: #e2e8f0; }
.footer .brand .logo-icon { width: 26px; height: 26px; font-size: 12px; border-radius: 7px; }
.footer a { color: #94a3b8; }
.footer a:hover { color: #60a5fa; }
.footer .links { display: flex; gap: 18px; }

/* ============================== 滚动渐入动画 ============================== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

@keyframes fadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Hero 入场编排：一次加载序列，非散落特效 */
.hero .hero-badge { animation: riseUp 0.55s ease both; }
.hero h1 { animation: riseUp 0.55s 0.08s ease both; }
.hero .hero-sub { animation: riseUp 0.55s 0.16s ease both; }
.hero .search-box { animation: riseUp 0.55s 0.24s ease both; }
.hero .search-hot { animation: riseUp 0.55s 0.32s ease both; }
.hero .hero-panel { animation: riseUp 0.6s 0.4s ease both; }
@keyframes riseUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================== 响应式 ============================== */
@media (max-width: 1024px) {
  .cat-grid, .tool-grid { grid-template-columns: repeat(3, 1fr); }
  .meta-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-panel { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links, .nav-search { display: none; }
  .nav-toggle { display: block; }
  .hero { padding: 52px 0 60px; }
  .hero h1 { font-size: 38px; }
  .cat-grid, .tool-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-layout, .detail-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .page-head h1 { font-size: 24px; }
  .search-box button { padding: 0 22px; }
}

@media (max-width: 480px) {
  .cat-grid, .tool-grid { grid-template-columns: 1fr; }
  .tool-desc { -webkit-line-clamp: 2; }
  .hero-panel { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .hero-stat .num { font-size: 24px; }
  .detail-card { padding: 20px; }
  .detail-head { flex-direction: column; }
  .section { padding: 32px 0; }
  .section-head h2 { font-size: 20px; }
}
