/* ═══════════════════════════════════════════
   AI Tool Nav — AI工具导航+评测站
   暗色主题 · 紫蓝渐变 · 现代科技感
   ═══════════════════════════════════════════ */

:root {
  --bg: #0a0a14;
  --bg2: #12122a;
  --bg3: #1a1a3a;
  --border: #252545;
  --text: #d0d0e0;
  --text2: #8888aa;
  --accent: #7c3aed;
  --accent2: #a78bfa;
  --green: #10b981;
  --orange: #f59e0b;
  --red: #ef4444;
  --blue: #3b82f6;
  --radius: 10px;
  --maxw: 1120px;
}

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

html { font-size: 17px; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans SC', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
}

a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }

.content {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 24px 20px 60px;
}

h1 { font-size: 2rem; line-height: 1.3; }
h2 { font-size: 1.5rem; margin: 40px 0 16px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
h3 { font-size: 1.15rem; margin: 0 0 8px; }

/* ── Nav ── */
nav {
  backdrop-filter: blur(12px);
  background: rgba(10,10,20,.85);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 24px;
  padding: 0 24px; height: 56px;
}
nav .logo { font-size: 1.2rem; font-weight: 800; color: var(--accent2); }
nav .logo span { color: var(--text); font-weight: 400; margin-left: 4px; }
nav a { color: var(--text2); font-size: .9rem; transition: color .15s; }
nav a:hover { color: var(--text); text-decoration: none; }

/* ── Hero ── */
.hero {
  text-align: center; padding: 60px 20px 48px;
  background: linear-gradient(135deg, #0f0f24 0%, #1a1030 40%, #0f1a30 100%);
}
.hero h1 { font-size: 2.4rem; background: linear-gradient(135deg, var(--accent2), #c084fc); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { color: var(--text2); font-size: 1.05rem; max-width: 600px; margin: 12px auto 0; }

/* ── Search ── */
.search-wrap {
  max-width: 520px; margin: 28px auto 0;
  display: flex; gap: 0;
}
.search-wrap input {
  flex: 1; padding: 12px 18px;
  background: var(--bg2); border: 1px solid var(--border); border-right: none; border-radius: var(--radius) 0 0 var(--radius);
  color: var(--text); font-size: .95rem; outline: none;
}
.search-wrap input:focus { border-color: var(--accent); }
.search-wrap button {
  padding: 12px 24px;
  background: var(--accent); border: none; border-radius: 0 var(--radius) var(--radius) 0;
  color: #fff; font-size: .95rem; cursor: pointer; transition: background .15s;
}
.search-wrap button:hover { background: #6d28d9; }

/* ── Card Grid ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px; margin: 20px 0;
}
.card-grid.compact { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

.card {
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; transition: border-color .15s, transform .12s;
  display: block; color: inherit;
}
a.card { text-decoration: none; }
a.card:hover { border-color: var(--accent); transform: translateY(-2px); text-decoration: none; }
.card .tag {
  display: inline-block; font-size: .72rem; font-weight: 600; padding: 2px 10px;
  border-radius: 99px; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .5px;
}
.tag.purple { background: rgba(124,58,237,.2); color: var(--accent2); }
.tag.green { background: rgba(16,185,129,.2); color: var(--green); }
.tag.orange { background: rgba(245,158,11,.2); color: var(--orange); }
.tag.blue { background: rgba(59,130,246,.2); color: var(--blue); }
.card h3 { font-size: 1rem; margin: 0 0 6px; }
.card p { color: var(--text2); font-size: .82rem; line-height: 1.5; margin: 0; }

/* ── Tool Row (列表视图) ── */
.tool-row {
  display: flex; align-items: center; gap: 16px;
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 20px; margin-bottom: 8px; transition: border-color .15s;
}
.tool-row:hover { border-color: var(--accent); }
.tool-row .tool-icon {
  width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
  background: var(--bg3);
}
.tool-row .tool-info { flex: 1; min-width: 0; }
.tool-row .tool-info h4 { font-size: .95rem; margin: 0; }
.tool-row .tool-info p { color: var(--text2); font-size: .78rem; margin: 2px 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tool-row .tool-price { font-size: .82rem; color: var(--green); white-space: nowrap; }
.tool-row .tool-rating { font-size: .82rem; color: var(--orange); white-space: nowrap; }

/* ── Star Rating ── */
.stars { color: var(--orange); letter-spacing: 1px; }

/* ── Category Hero ── */
.cat-hero {
  padding: 40px 20px; text-align: center;
  background: linear-gradient(135deg, #100a20, #1a1030);
  border-bottom: 1px solid var(--border);
}

/* ── Review Page ── */
.review-header {
  display: flex; gap: 28px; align-items: flex-start; margin: 32px 0;
  flex-wrap: wrap;
}
.review-logo {
  width: 80px; height: 80px; border-radius: 16px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 2.2rem;
  background: var(--bg3); border: 1px solid var(--border);
}
.review-meta { flex: 1; min-width: 240px; }
.review-meta h1 { font-size: 1.8rem; margin: 0; }
.review-meta .subtitle { color: var(--text2); margin: 4px 0 0; }
.review-meta .quick-stats { display: flex; gap: 20px; margin-top: 12px; flex-wrap: wrap; }
.quick-stat { text-align: center; }
.quick-stat .val { font-size: 1.3rem; font-weight: 700; color: var(--accent2); }
.quick-stat .lbl { font-size: .72rem; color: var(--text2); }

.pros-cons-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0;
}
.pro-card, .con-card {
  padding: 20px; border-radius: var(--radius); border: 1px solid var(--border);
}
.pro-card { background: rgba(16,185,129,.05); border-color: rgba(16,185,129,.15); }
.con-card { background: rgba(239,68,68,.05); border-color: rgba(239,68,68,.15); }
.pro-card h4 { color: var(--green); }
.con-card h4 { color: var(--red); }

/* ── Pricing Table ── */
.pricing-table { margin: 20px 0; }
.price-card {
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; text-align: center;
}
.price-card .plan { font-size: .78rem; text-transform: uppercase; color: var(--text2); letter-spacing: 1px; }
.price-card .amount { font-size: 2rem; font-weight: 700; margin: 8px 0; }
.price-card .per { font-size: .78rem; color: var(--text2); }
.price-card.featured { border-color: var(--accent); box-shadow: 0 0 24px rgba(124,58,237,.1); }

/* ── Table ── */
table { width: 100%; border-collapse: collapse; margin: 16px 0; }
th { text-align: left; padding: 10px 14px; border-bottom: 2px solid var(--border); font-size: .82rem; color: var(--text2); text-transform: uppercase; letter-spacing: .5px; }
td { padding: 10px 14px; border-bottom: 1px solid var(--border); font-size: .88rem; }
tr:hover td { background: rgba(124,58,237,.04); }

/* ── Info Card ── */
.info-card {
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; margin-bottom: 12px;
}
.info-card h4 { margin: 0 0 8px; }

/* ── Breadcrumb ── */
.breadcrumb { color: var(--text2); font-size: .82rem; margin-bottom: 20px; }
.breadcrumb a { color: var(--text2); }

/* ── Compare Table ── */
.compare-table { overflow-x: auto; margin: 20px 0; }
.compare-table table { min-width: 700px; }
.compare-table td:first-child { font-weight: 600; white-space: nowrap; }
.compare-table .check { color: var(--green); }
.compare-table .cross { color: var(--red); }

/* ── Newsletter ── */
.newsletter {
  background: linear-gradient(135deg, #1a1030, #1a1a30);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 40px; text-align: center; margin: 40px 0;
}
.newsletter input {
  padding: 12px 18px; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius) 0 0 var(--radius); color: var(--text); font-size: .9rem;
  width: 320px; max-width: 70%; outline: none;
}
.newsletter button {
  padding: 12px 24px; background: var(--accent); border: none;
  border-radius: 0 var(--radius) var(--radius) 0; color: #fff; font-size: .9rem; cursor: pointer;
}

/* ── Footer ── */
footer {
  text-align: center; padding: 30px 20px;
  border-top: 1px solid var(--border); margin-top: 60px;
  color: #555; font-size: .8rem;
}
footer a { color: #666; }
footer a:hover { color: var(--accent2); }

/* ── Responsive ── */
@media (max-width: 768px) {
  html { font-size: 15px; }
  nav { padding: 0 14px; gap: 14px; overflow-x: auto; }
  nav .logo { font-size: 1rem; }
  .hero h1 { font-size: 1.7rem; }
  .card-grid { grid-template-columns: 1fr; }
  .review-header { flex-direction: column; }
  .pros-cons-grid { grid-template-columns: 1fr; }
}
@media (max-width: 500px) {
  .search-wrap { flex-direction: column; }
  .search-wrap input { border-radius: var(--radius); border-right: 1px solid var(--border); }
  .search-wrap button { border-radius: var(--radius); margin-top: 8px; }
}

.tool-icon img { display: block; }
