/* ===== AI 工具导航站 - 全局样式 ===== */
:root {
  --primary: #6366f1;
  --primary-light: #818cf8;
  --primary-dark: #4f46e5;
  --bg: #f8fafc;
  --surface: #ffffff;
  --border: #e2e8f0;
  --text: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --transition: 0.2s ease;
}

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

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

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

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

/* ===== 导航栏 ===== */
.navbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.92);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}
.nav-logo .logo-icon { font-size: 28px; }
.nav-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.nav-links a {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 14px;
  color: var(--text-secondary);
  transition: var(--transition);
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  background: var(--primary);
  color: #fff;
}

/* ===== Hero 区域 ===== */
.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 64px 0 56px;
  text-align: center;
}
.hero h1 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}
.hero p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 32px;
}
.hero-search {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}
.hero-search input {
  width: 100%;
  padding: 16px 56px 16px 24px;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  color: var(--text);
  background: #fff;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  outline: none;
  transition: var(--transition);
}
.hero-search input:focus {
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}
.hero-search .search-icon {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  pointer-events: none;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 36px;
  font-size: 14px;
  opacity: 0.85;
}
.hero-stats span strong {
  font-size: 24px;
  font-weight: 700;
}

/* ===== 分类导航 ===== */
.categories-section {
  padding: 40px 0 8px;
}
.section-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text);
}
.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-secondary);
}
.category-pill:hover,
.category-pill.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}
.category-pill .cat-count {
  font-size: 12px;
  opacity: 0.7;
}

/* ===== 工具网格 ===== */
.tools-section {
  padding: 40px 0;
}
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}
.tool-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}
.tool-card.featured {
  border-left: 3px solid var(--primary);
}
.tool-card-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}
.tool-icon {
  font-size: 36px;
  line-height: 1;
  flex-shrink: 0;
}
.tool-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.tool-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}
.tool-featured-badge {
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 50px;
  font-weight: 600;
}
.tool-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.tool-tag {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--bg);
  color: var(--text-muted);
}
.tool-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
}
.tool-pricing {
  color: var(--primary);
  font-weight: 500;
}
.tool-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--primary);
  font-weight: 500;
  font-size: 14px;
  transition: var(--transition);
}
.tool-link:hover { gap: 8px; }
.tool-link .arrow { transition: var(--transition); }

/* ===== 无结果 ===== */
.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  grid-column: 1 / -1;
}
.no-results .no-icon { font-size: 48px; margin-bottom: 12px; }
.no-results p { font-size: 16px; }

/* ===== 推广位（预留） ===== */
.ad-spot {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 2px dashed #f59e0b;
  border-radius: var(--radius);
  padding: 16px 20px;
  text-align: center;
  font-size: 14px;
  color: #92400e;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 160px;
  transition: var(--transition);
}
.ad-spot:hover {
  border-style: solid;
  background: linear-gradient(135deg, #fde68a, #fcd34d);
}
.ad-spot .ad-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.6;
}
.ad-spot .ad-title {
  font-size: 16px;
  font-weight: 700;
}
.ad-spot .ad-cta {
  display: inline-block;
  padding: 6px 16px;
  background: #f59e0b;
  color: #fff;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

/* ===== 统计条 ===== */
.stats-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}
.stats-bar strong {
  color: var(--primary);
  font-weight: 700;
}

/* ===== 页脚 ===== */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 32px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}
.site-footer a {
  color: var(--primary);
  font-weight: 500;
}
.site-footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

/* ===== 面包屑 ===== */
.breadcrumb {
  padding: 16px 0;
  font-size: 14px;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--primary); }
.breadcrumb .sep { margin: 0 8px; }

/* ===== 分类页头部 ===== */
.category-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 48px 0;
  text-align: center;
}
.category-header h1 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 8px;
}
.category-header p {
  font-size: 16px;
  opacity: 0.9;
}

/* ===== 工具详情页 ===== */
.detail-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 48px 0;
}
.detail-header .tool-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.detail-header .detail-icon {
  font-size: 64px;
  line-height: 1;
}
.detail-header h1 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 8px;
}
.detail-header .detail-pricing {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255,255,255,0.2);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin: 12px 0;
}
.detail-body {
  padding: 40px 0;
}
.detail-description {
  max-width: 800px;
  margin: 0 auto 40px;
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
}
.detail-actions {
  text-align: center;
  margin-bottom: 40px;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  background: var(--primary);
  color: #fff;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(99,102,241,0.4);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99,102,241,0.5);
}
.detail-tags {
  text-align: center;
  margin-bottom: 40px;
}
.detail-tags .tool-tag {
  font-size: 14px;
  padding: 4px 12px;
  margin: 4px;
  display: inline-block;
}
.related-tools {
  padding: 40px 0;
}

/* ===== 关于页 ===== */
.about-section {
  padding: 48px 0;
  max-width: 800px;
  margin: 0 auto;
}
.about-section h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 32px 0 16px;
  color: var(--primary);
}
.about-section p,
.about-section li {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.8;
}
.about-section ul {
  padding-left: 20px;
}
.ad-cta-box {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 2px solid #f59e0b;
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  margin: 32px 0;
}
.ad-cta-box h3 {
  font-size: 22px;
  color: #92400e;
  margin-bottom: 8px;
}
.ad-cta-box p {
  color: #a16207;
  margin-bottom: 16px;
}
.ad-cta-box .btn-primary {
  background: #f59e0b;
  box-shadow: 0 4px 14px rgba(245,158,11,0.4);
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 15px; }
  .hero-stats { gap: 20px; }
  .hero-stats span strong { font-size: 20px; }
  .tools-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
  .navbar .container { flex-direction: column; height: auto; padding: 12px 16px; gap: 8px; }
  .nav-links a { font-size: 13px; padding: 4px 10px; }
  .category-header h1 { font-size: 28px; }
  .detail-header h1 { font-size: 28px; }
  .section-title { font-size: 20px; }
}

@media (max-width: 480px) {
  .tools-grid {
    grid-template-columns: 1fr;
  }
  .hero { padding: 40px 0 36px; }
  .hero h1 { font-size: 24px; }
  .category-pills { gap: 6px; }
  .category-pill { padding: 8px 14px; font-size: 13px; }
}

/* ===== 推广横幅 ===== */
.promo-banner {
  display: block; max-width: 800px; margin: 0 auto 20px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 14px; padding: 0; text-decoration: none;
  box-shadow: 0 4px 20px rgba(99,102,241,0.3);
  transition: all 0.3s ease; overflow: hidden; position: relative;
}
.promo-banner::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, #f59e0b, #ec4899, #6366f1);
  background-size: 400% 400%; animation: promo-shine 3s ease infinite;
  opacity: 0.15; z-index: 0;
}
@keyframes promo-shine {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.promo-banner:hover {
  transform: translateY(-2px); box-shadow: 0 8px 30px rgba(99,102,241,0.45);
}
.promo-content {
  display: flex; align-items: center; gap: 16px; padding: 16px 24px;
  position: relative; z-index: 1;
}
.promo-icon { font-size: 32px; flex-shrink: 0; animation: promo-bounce 1.5s ease-in-out infinite; }
@keyframes promo-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.promo-text {
  display: flex; flex-direction: column; gap: 4px; flex: 1;
  color: #fff;
}
.promo-text strong { font-size: 18px; font-weight: 700; }
.promo-text span { font-size: 14px; opacity: 0.9; font-weight: 500; }
@media (max-width: 600px) {
  .promo-content { padding: 12px 16px; gap: 10px; }
  .promo-text strong { font-size: 15px; }
  .promo-text span { font-size: 12px; }
}
