/* ==========================================================================
   24UZ.COM · 24小时AI加油站 — 全站样式
   设计风格：现代清爽 · 干净留白 · 精致色彩 · 全球主流审美
   ========================================================================== */

/* ===== 设计 Token（全局变量） ===== */
:root {
  /* 主色调 —— 精致靛蓝，全球科技感主流色 */
  --accent: #4F46E5;          /* 主强调色 */
  --accent-light: #6366F1;    /* hover */
  --accent-dark: #4338CA;     /* 按下 */
  --accent-bg: #EEF2FF;       /* 主色浅底 */

  /* 功能色 */
  --success: #10B981;
  --success-bg: #ECFDF5;
  --warning: #F59E0B;
  --warning-bg: #FFFBEB;
  --danger: #EF4444;
  --danger-bg: #FEF2F2;
  --info: #3B82F6;
  --info-bg: #EFF6FF;

  /* 文本层级 */
  --text-1: #0F172A;          /* 主文字 — 深蓝黑 */
  --text-2: #334155;          /* 次文字 */
  --text-3: #64748B;          /* 辅助文字 */
  --text-4: #94A3B8;          /* 弱文字 */

  /* 背景层级 */
  --bg-0: #FFFFFF;            /* 纯白 */
  --bg-1: #F8FAFC;            /* 浅灰白 */
  --bg-2: #F1F5F9;            /* 浅灰分隔 */
  --bg-3: #E2E8F0;            /* 边框灰 */

  /* 阴影层级（柔和！） */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.10), 0 4px 6px -4px rgba(15, 23, 42, 0.06);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.12), 0 8px 10px -6px rgba(15, 23, 42, 0.08);

  /* 圆角 */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* 过渡 */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== 全局重置 ===== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html, body { margin: 0; padding: 0; border: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Helvetica Neue", Arial, sans-serif;
  background: var(--bg-1);
  color: var(--text-1);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ===== Header — 现代清爽风格 ===== */
.header {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  padding: 56px 20px 80px;
  color: white;
  position: relative;
  overflow: hidden;
}

/* 装饰光斑 — 微妙点缀 */
.header::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, transparent 60%);
  pointer-events: none;
}
.header::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -80px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.18) 0%, transparent 60%);
  pointer-events: none;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 6px;
  position: relative;
}
.header-left { display: flex; align-items: center; gap: 0; }
.header-center { display: flex; align-items: center; gap: 10px; }
.header-right {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.header-title {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #ffffff;
  cursor: pointer;
  user-select: none;
  transition: color 0.2s ease;
}

.header-title:hover,
.header-title:active {
  color: #ef4444;
}

.header-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.25s var(--ease);
  backdrop-filter: blur(8px);
}
.header-nav-link:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.header-home-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 22px;
  background: linear-gradient(135deg, #4F46E5 0%, #6366F1 100%);
  color: white;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: all 0.25s var(--ease);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.45);
  text-decoration: none;
}
.header-home-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #4338CA 0%, #4F46E5 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.6);
}

.header-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.25s var(--ease);
  text-decoration: none;
  letter-spacing: 0.3px;
}
.header-lang-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.header-subtitle {
  font-size: 14px;
  opacity: 0.75;
  margin-bottom: 28px;
}

/* ===== 搜索框 ===== */
.search-box {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
}

.search-box-inner {
  display: flex;
  align-items: center;
  background: white;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  transition: box-shadow 0.25s var(--ease);
}
.search-box-inner:focus-within {
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2), var(--shadow-xl);
}

.search-cat {
  flex-shrink: 0;
  appearance: none;
  -webkit-appearance: none;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  padding: 18px 32px 18px 22px;
  border-right: 1px solid var(--bg-3);
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  min-width: 140px;
  transition: color 0.2s;
}
.search-cat:hover { color: var(--accent); }
.search-cat option { color: var(--text-1); padding: 6px 10px; }

.search-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  font-size: 15px;
  background: transparent;
  color: var(--text-1);
  padding: 18px 16px 18px 18px;
}
.search-input::placeholder { color: var(--text-4); }

.search-btn {
  flex-shrink: 0;
  background: var(--accent);
  color: white;
  border-radius: 0;
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.25s var(--ease);
  margin-right: 4px;
  border-radius: var(--radius-full);
}
.search-btn:hover { background: var(--accent-dark); }

@media (max-width: 480px) {
  .search-cat { min-width: 100px; font-size: 12px; padding: 16px 28px 16px 14px; }
  .search-input { font-size: 14px; padding: 16px 10px 16px 12px; }
  .search-btn { padding: 12px 20px; font-size: 13px; }
}

/* ===== 热门搜索 ===== */
.hot-searches {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.hot-searches-title {
  font-size: 12px;
  opacity: 0.6;
  margin-right: 4px;
}

.hot-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.hot-tag:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

/* ===== 分类导航栏 ===== */
.category-nav {
  background: white;
  border-bottom: 1px solid var(--bg-3);
  position: sticky;
  top: 0;
  z-index: 100;
}

.category-nav-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 0;
}

.category-nav-inner {
  flex: 1;
  min-width: 0;
  padding: 14px 0;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.category-nav-inner::-webkit-scrollbar { display: none; }

.cat-link {
  flex-shrink: 0;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-3);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
  user-select: none;
}
.cat-link:hover { color: var(--accent); background: var(--accent-bg); }
.cat-link.active {
  background: var(--accent);
  color: white;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.35);
}

/* ===== 区域切换器 ===== */
.region-switch {
  display: inline-flex;
  background: var(--bg-2);
  border-radius: var(--radius-full);
  padding: 3px;
  margin-left: 8px;
  flex-shrink: 0;
}
.region-switch button {
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 500;
  border-radius: var(--radius-full);
  color: var(--text-3);
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}
.region-switch button.active {
  background: white;
  color: var(--accent);
  box-shadow: var(--shadow-xs);
}
.region-sep {
  width: 4px;
  flex-shrink: 0;
}
.free-toggle {
  border: 1px dashed transparent !important;
}
.free-toggle.active {
  background: linear-gradient(135deg, #22c55e, #16a34a) !important;
  color: white !important;
}

/* ===== 我的软件 · 醒目横幅 CTA ===== */
.products-cta {
  max-width: 1200px;
  margin: -48px auto 0;
  padding: 0 20px;
  position: relative;
  z-index: 20;
}

.products-cta-inner {
  background: linear-gradient(135deg, #0F172A 0%, #1E3A5F 50%, #0E7490 100%);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  display: flex;
  align-items: center;
  gap: 28px;
  box-shadow: var(--shadow-xl);
  color: white;
  position: relative;
  overflow: hidden;
}

.products-cta-inner::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.products-cta-left { flex: 1; min-width: 0; position: relative; z-index: 1; }

.products-cta-badge {
  display: inline-block;
  background: rgba(14, 165, 233, 0.2);
  color: #7DD3FC;
  border: 1px solid rgba(14, 165, 233, 0.4);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.products-cta-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 0.3px;
}

.products-cta-title em {
  font-style: normal;
  background: linear-gradient(135deg, #7DD3FC, #22D3EE);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.products-cta-desc {
  font-size: 14px;
  opacity: 0.8;
  line-height: 1.6;
  margin-bottom: 18px;
}

.products-cta-features {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.products-cta-features span {
  font-size: 12px;
  opacity: 0.9;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
}

.products-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #22D3EE 0%, #0EA5E9 100%);
  color: #0F172A;
  padding: 13px 30px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s var(--ease);
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
}
.products-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.5);
}

.products-cta-right { flex-shrink: 0; display: flex; gap: 12px; position: relative; z-index: 1; }

.cta-product-card {
  width: 76px;
  height: 76px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  backdrop-filter: blur(10px);
  transition: transform 0.25s var(--ease);
}
.cta-product-card:hover { transform: translateY(-3px); }
.cta-product-card span { font-size: 9px; margin-top: 4px; opacity: 0.7; font-weight: 500; letter-spacing: 0.5px; }

/* ===== 主容器 ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 20px;
}

/* ===== 板块标题 ===== */

/* ===== AI 资讯聚合 ===== */
.news-section {
  margin-bottom: 40px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.news-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--bg-3);
  transition: all 0.25s var(--ease);
  cursor: pointer;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
}
.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-bg);
}

.news-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #F8FAFC 0%, #E2E8F0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.news-body {
  flex: 1;
  min-width: 0;
}

.news-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.news-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-badge {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  font-weight: 700;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.news-badge.rank-旗舰 { background: linear-gradient(135deg, #EF4444, #DC2626); color: white; }
.news-badge.rank-专业 { background: linear-gradient(135deg, #6366F1, #4F46E5); color: white; }
.news-badge.rank-新锐 { background: linear-gradient(135deg, #06B6D4, #0891B2); color: white; }
.news-badge.rank-官方 { background: linear-gradient(135deg, #F59E0B, #D97706); color: white; }

.news-region {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: var(--radius-xs);
  font-weight: 600;
  flex-shrink: 0;
}
.news-region.cn  { background: var(--danger-bg);  color: var(--danger); }
.news-region.int { background: var(--info-bg);    color: var(--info); }

.news-desc {
  font-size: 12.5px;
  color: var(--text-3);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== 🌍 全球有趣网址 ===== */
.fun-section {
  margin-top: 24px;
}
.fun-cat-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -4px 0 16px 0;
}
.fun-cat-switch button {
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid var(--bg-3);
  background: white;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.fun-cat-switch button:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.fun-cat-switch button.active {
  background: linear-gradient(135deg, #4F46E5 0%, #6366F1 100%);
  color: white;
  border-color: transparent;
  box-shadow: var(--shadow-xs);
}
.fun-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.fun-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 14px;
  background: white;
  border: 1px solid var(--bg-3);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  position: relative;
}
.fun-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
  text-decoration: none;
  color: inherit;
}
.fun-card-icon {
  font-size: 28px;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}
.fun-card-body {
  flex: 1;
  min-width: 0;
}
.fun-card-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-1);
  margin-bottom: 4px;
  line-height: 1.3;
}
.fun-card-desc {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
}
.fun-card-meta {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.fun-card-cat {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--accent-bg);
  color: var(--accent);
  font-weight: 600;
}
.fun-card-source {
  font-size: 10px;
  color: var(--text-4);
  font-family: 'SF Mono', monospace;
}
.fun-card-arrow {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 14px;
  color: var(--text-4);
  opacity: 0.5;
  transition: all 0.2s ease;
}
.fun-card:hover .fun-card-arrow {
  color: var(--accent);
  opacity: 1;
  transform: translate(2px, -2px);
}

.section-subtitle {
  font-size: 13px;
  color: var(--text-3);
  margin: -8px 0 16px 0;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-1);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 20px;
  background: linear-gradient(180deg, var(--accent) 0%, #818CF8 100%);
  border-radius: 2px;
}

.section-more {
  font-size: 13px;
  color: var(--text-3);
  cursor: pointer;
  transition: color 0.2s;
  font-weight: 500;
}
.section-more:hover { color: var(--accent); }

/* ===== 热门AI工具 Top5 ===== */
.top-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

.top-tool-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 24px;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s var(--ease);
  cursor: pointer;
  border: 1px solid transparent;
}
.top-tool-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-bg);
}

.top-rank {
  position: absolute;
  top: -10px;
  left: 20px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: white;
  box-shadow: var(--shadow-sm);
}
.top-rank.r1 { background: linear-gradient(135deg, #EF4444, #DC2626); }
.top-rank.r2 { background: linear-gradient(135deg, #F59E0B, #D97706); }
.top-rank.r3 { background: linear-gradient(135deg, #10B981, #059669); }
.top-rank.r4 { background: linear-gradient(135deg, #6366F1, #4F46E5); }
.top-rank.r5 { background: linear-gradient(135deg, #06B6D4, #0891B2); }

.top-tool-icon { font-size: 36px; margin-bottom: 12px; }

.top-tool-name {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-1);
}

.top-tool-cat {
  font-size: 12px;
  color: var(--text-3);
}

/* ===== AI场景 ===== */
.scenes-section { margin-bottom: 40px; }

.scenes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.scene-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 22px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  position: relative;
  border: 1px solid var(--bg-3);
  box-shadow: var(--shadow-xs);
}
.scene-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.scene-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 8px;
}

.scene-desc {
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 12px;
  line-height: 1.5;
}

.scene-tool {
  display: inline-block;
  padding: 4px 10px;
  background: var(--accent-bg);
  color: var(--accent);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
}

/* ===== 工具卡片网格 ===== */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

.tool-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--bg-3);
  transition: all 0.3s var(--ease);
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
}
.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-bg);
}

/* 标签 */
.tool-card-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  font-weight: 600;
  letter-spacing: 0.5px;
}
.tool-card-tag.featured { background: linear-gradient(135deg, #EF4444, #DC2626); color: white; }
.tool-card-tag.latest  { background: linear-gradient(135deg, #06B6D4, #0891B2); color: white; }
.tool-card-tag.hot     { background: linear-gradient(135deg, #F59E0B, #D97706); color: white; }

/* 区域徽章 */
.region-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  font-weight: 600;
  letter-spacing: 0.5px;
}
.region-badge.cn  { background: var(--danger-bg); color: var(--danger); }
.region-badge.int { background: var(--info-bg); color: var(--info); }

/* 价格徽章 */
.pricing-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  font-weight: 600;
  letter-spacing: 0.5px;
}
/* 注意：pricing-badge 和 tool-card-tag 都在右上角 */
/* 让有 tag 的卡片 pricing 稍往下错开 */
.tool-card-tag.featured ~ .pricing-badge,
.tool-card-tag.latest  ~ .pricing-badge,
.tool-card-tag.hot     ~ .pricing-badge { top: 32px; }

.pricing-badge.free     { background: #dcfce7; color: #16a34a; }
.pricing-badge.freemium { background: #fef3c7; color: #d97706; }
.pricing-badge.paid     { background: #fce7f3; color: #db2777; }

.tool-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 0 56px;
}

.tool-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #F1F5F9 0%, #E2E8F0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.tool-info { flex: 1; min-width: 0; }

.tool-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tool-category-tag {
  font-size: 12px;
  color: var(--text-3);
}

.tool-desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* ===== 分类页面 ===== */
.category-header {
  background: white;
  padding: 36px 20px;
  border-bottom: 1px solid var(--bg-3);
}
.category-header-inner { max-width: 1200px; margin: 0 auto; }

.category-breadcrumb {
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 12px;
}
.category-breadcrumb a { color: var(--accent); }
.category-breadcrumb span { margin: 0 6px; }

.category-page-title {
  font-size: 24px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 12px;
}
.cat-emoji { font-size: 28px; }

.category-page-desc {
  font-size: 14px;
  color: var(--text-3);
  margin-top: 6px;
}

/* ===== 详情页面 ===== */
.detail-header {
  background: white;
  padding: 44px 20px;
  border-bottom: 1px solid var(--bg-3);
}
.detail-header-inner { max-width: 900px; margin: 0 auto; }

.detail-main {
  display: flex;
  gap: 24px;
  margin-top: 24px;
}

.detail-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #F1F5F9 0%, #E2E8F0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  flex-shrink: 0;
}

.detail-info { flex: 1; }

.detail-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-1);
}

.detail-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.detail-meta .tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--accent-bg);
  color: var(--accent);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
}
.detail-meta .tag.region-cn  { background: var(--danger-bg);  color: var(--danger); }
.detail-meta .tag.region-int { background: var(--info-bg);    color: var(--info); }

.detail-visit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--accent);
  color: white;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.25s var(--ease);
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}
.detail-visit-btn:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
}

.detail-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 36px 20px;
}
.detail-content h3 {
  font-size: 17px;
  margin-bottom: 16px;
  color: var(--text-1);
  font-weight: 700;
}
.detail-content p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-2);
}

/* ===== 搜索结果页 ===== */
.search-summary {
  background: white;
  padding: 18px 22px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--bg-3);
  font-size: 14px;
  color: var(--text-2);
}
.search-summary strong { color: var(--accent); font-weight: 700; }

/* ===== 页脚 ===== */
.footer {
  background: linear-gradient(135deg, #F1F5F9 0%, #E2E8F0 100%);
  border-top: 1px solid #CBD5E1;
  padding: 32px 20px;
  margin-top: 60px;
  text-align: center;
  color: #475569;
  font-size: 13px;
}
.footer-links { margin-bottom: 14px; }
.footer-links a {
  margin: 0 10px;
  color: #64748B;
  transition: color 0.2s;
}
.footer-links a:hover { color: #334155; }

/* ===== 空状态 ===== */
.empty-state {
  text-align: center;
  padding: 70px 20px;
  color: var(--text-3);
  grid-column: 1 / -1;
}
.empty-emoji { font-size: 64px; margin-bottom: 16px; opacity: 0.6; }
.empty-text { font-size: 15px; color: var(--text-2); }

/* ===== 右侧浮动导航：回顶 / 回底 ===== */
.float-nav {
  position: fixed;
  right: 20px;
  bottom: 80px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.3s var(--ease);
}
.float-nav.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.float-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4F46E5 0%, #6366F1 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
  transition: all 0.25s var(--ease);
  font-size: 18px;
  line-height: 1;
}
.float-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #4338CA 0%, #4F46E5 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.55);
}
.float-btn:disabled {
  background: var(--bg-3);
  color: var(--text-4);
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.6;
}

@media (max-width: 360px) {
  .float-nav { right: 14px; bottom: 70px; }
  .float-btn { width: 40px; height: 40px; font-size: 16px; }
}

/* ===== 响应式（仅小屏）===== */
@media (max-width: 360px) {
  .header { padding: 40px 16px 64px; }
  .header-title { font-size: 24px; }
  .header-subtitle { font-size: 13px; }
  .products-cta { margin-top: -40px; padding: 0 16px; }
  .products-cta-inner { flex-direction: column; padding: 24px; gap: 20px; }
  .products-cta-right { order: -1; }
  .cta-product-card { width: 60px; height: 60px; font-size: 24px; }
  .products-cta-title { font-size: 18px; }
  .container { padding: 24px 16px; }
  .top-tools-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .top-tool-card { padding: 20px; }
  .tools-grid { grid-template-columns: 1fr; }
  .detail-main { flex-direction: column; }
  .detail-icon { width: 64px; height: 64px; font-size: 32px; }
  .detail-title { font-size: 22px; }
  .category-nav-inner { padding: 10px 16px; gap: 2px; }
  .cat-link { padding: 6px 12px; font-size: 12px; }
  .region-switch { margin-left: 4px; }
  .region-switch button { padding: 4px 9px; font-size: 11px; }
}

@media (max-width: 320px) {
  .top-tools-grid { grid-template-columns: repeat(2, 1fr); }
  .top-tool-icon { font-size: 28px; margin-bottom: 8px; }
}
