/* AI工具导航 — 极简高效风格 */
:root {
  --bg: #0d1117;
  --bg-card: #161b22;
  --bg-card-hover: #1c2333;
  --border: #30363d;
  --text: #e6edf3;
  --text-dim: #8b949e;
  --accent: #58a6ff;
  --accent-bright: #79c0ff;
  --gold: #d2991d;
  --green: #3fb950;
  --orange: #d2991d;
  --radius: 12px;
}

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

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

/* Header */
header {
  background: rgba(13,17,23,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.4em;
  font-weight: 700;
}

.nav-links { display: flex; gap: 24px; }
.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.9em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

/* Hero */
.hero {
  text-align: center;
  padding: 80px 24px 60px;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.8em;
  font-weight: 800;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #58a6ff, #bc8cff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p { color: var(--text-dim); font-size: 1.2em; margin-bottom: 32px; }

.stats {
  display: flex;
  gap: 32px;
  justify-content: center;
  color: var(--text-dim);
  font-size: 0.95em;
}

.stats strong { color: var(--accent); }

/* Sections */
section {
  max-width: 1200px;
  margin: 0 auto 60px;
  padding: 0 24px;
}

section h2 {
  font-size: 1.6em;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

/* Tool Grid */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  transition: all 0.2s;
}

.tool-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.tool-card.gold { border-color: #3a2a0a; }
.tool-card.gold:hover { border-color: var(--gold); }

.tool-card .rank {
  position: absolute;
  top: -12px;
  right: 16px;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 20px;
  padding: 2px 12px;
  font-size: 0.8em;
  font-weight: 700;
  color: var(--text-dim);
}

.tool-card.gold .rank { border-color: var(--gold); color: var(--gold); }

.tool-icon { font-size: 2em; margin-bottom: 12px; }

.tool-card h3 { font-size: 1.2em; margin-bottom: 6px; }

.tagline {
  color: var(--text-dim);
  font-size: 0.9em;
  margin-bottom: 12px;
}

.scores {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.85em;
}

.scores span:first-child { color: var(--gold); }
.scores span:last-child { color: var(--green); }

.review {
  color: var(--text);
  font-size: 0.9em;
  margin-bottom: 12px;
  line-height: 1.6;
}

.pricing {
  color: var(--text-dim);
  font-size: 0.85em;
  margin-bottom: 16px;
  padding: 6px 12px;
  background: rgba(88,166,255,0.08);
  border-radius: 8px;
  display: inline-block;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.9em;
  font-weight: 600;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  transition: all 0.2s;
}

.btn:hover { border-color: var(--accent); }

.btn.primary {
  background: linear-gradient(135deg, #1f6feb, #388bfd);
  border: none;
  color: white;
}

.btn.primary:hover {
  background: linear-gradient(135deg, #388bfd, #58a6ff);
}

/* Compact cards */
.tool-card.compact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 20px;
}

.tool-card.compact h3 { flex: 1 1 100%; margin: 0; }
.tool-card.compact p { flex: 1 1 100%; font-size: 0.85em; color: var(--text-dim); margin: 0; }
.tool-card.compact .price {
  color: var(--green);
  font-size: 0.85em;
  font-weight: 600;
}

/* Categories */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.cat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-decoration: none;
  color: var(--text);
  font-size: 1.1em;
  font-weight: 600;
  transition: all 0.2s;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cat-card:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
}

.cat-card span {
  color: var(--text-dim);
  font-size: 0.8em;
  font-weight: 400;
}

/* Table */
table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  color: var(--text-dim);
  font-size: 0.85em;
  font-weight: 600;
  text-transform: uppercase;
}

td { font-size: 0.9em; }

tr:hover td { background: rgba(88,166,255,0.04); }

/* Disclosure */
.affiliate-disclosure {
  background: rgba(88,166,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 24px;
  text-align: center;
}

.affiliate-disclosure p {
  color: var(--text-dim);
  font-size: 0.8em;
}

/* Section descriptions */
.section-desc {
  color: var(--text-dim);
  font-size: 0.95em;
  margin-bottom: 24px;
  margin-top: -16px;
}

/* Cloud CTA */
.cloud-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding: 20px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  justify-content: center;
}

.cloud-cta .btn { font-size: 0.95em; }

/* Earn Grid */
.earn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.earn-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.earn-card h3 {
  font-size: 1.1em;
  margin-bottom: 12px;
}

.earn-card p {
  color: var(--text);
  font-size: 0.9em;
  line-height: 1.6;
  margin-bottom: 12px;
}

.earn-card ul {
  list-style: none;
  margin-bottom: 12px;
}

.earn-card ul li {
  color: var(--text-dim);
  font-size: 0.85em;
  padding: 4px 0;
}

.earn-card ul li::before { content: "• "; color: var(--accent); }

.earn-card ul a {
  color: var(--accent);
  font-size: 0.85em;
}

.earn-est {
  color: var(--green) !important;
  font-weight: 700 !important;
  font-size: 0.95em !important;
  padding: 8px 12px;
  background: rgba(63,185,80,0.08);
  border-radius: 8px;
  display: inline-block;
}

/* Hot Deals */
.hot-deals {
  margin-top: 24px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(210,153,29,0.08), rgba(210,153,29,0.02));
  border: 1px solid #3a2a0a;
  border-radius: var(--radius);
}

.hot-deals h3 {
  font-size: 1em;
  margin-bottom: 16px;
  color: var(--gold);
  border: none;
  padding: 0;
}

.deal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.deal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s;
  position: relative;
}

.deal-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.deal-card h4 { font-size: 0.9em; margin-bottom: 4px; }
.deal-card p { color: var(--text-dim); font-size: 0.8em; margin-bottom: 8px; }
.deal-card strong {
  color: var(--orange);
  font-size: 1.1em;
}

.deal-badge {
  position: absolute;
  top: -8px;
  right: 12px;
  background: var(--orange);
  color: #000;
  font-size: 0.7em;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
}

/* Footer */
footer {
  text-align: center;
  padding: 40px 24px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.85em;
}

footer p { margin-bottom: 8px; }

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 2em; }
  .tool-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .stats { flex-direction: column; gap: 8px; }
}
