/* AI快报站 - 品牌主题 */
:root {
  --bg: #f8f9fa;
  --surface: #ffffff;
  --surface2: #f1f3f5;
  --surface3: #e9ecef;
  --brand: #228be6;
  --brand2: #7950f2;
  --brand3: #f59f00;
  --text: #212529;
  --text-dim: #495057;
  --text-muted: #868e96;
  --border: #dee2e6;
  --border2: #ced4da;
  --green: #2f9e44;
  --red: #e03131;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-hover: 0 4px 12px rgba(0,0,0,0.08);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; }

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

/* ===== Header ===== */
header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.logo {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.3px;
}
.logo span { color: var(--brand); }
nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
nav a {
  color: var(--text-dim);
  text-decoration: none;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.15s;
}
nav a:hover { color: var(--text); background: var(--surface2); }
.lang-select {
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 15px;
  line-height: 1;
  position: relative;
}
.lang-select:hover { background: var(--surface2); }
.lang-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  z-index: 200;
  min-width: 130px;
}
.lang-menu.show { display: block; }
.lang-menu a {
  display: block;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--text-dim);
  text-decoration: none;
  border-radius: 4px;
  white-space: nowrap;
}
.lang-menu a:hover { background: var(--surface2); color: var(--text); }

/* ===== Hero ===== */
.hero {
  padding: 48px 0 32px;
  text-align: center;
}
.hero h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}
.hero p {
  font-size: 15px;
  color: var(--text-dim);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ===== Section Titles ===== */
.section-title {
  font-size: 18px;
  font-weight: 700;
  margin: 40px 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.section-title .icon-svg { width: 20px; height: 20px; color: var(--brand); flex-shrink: 0; }

/* ===== Card Grid ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

/* ===== Card ===== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: all 0.2s;
  box-shadow: var(--shadow);
}
.card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--border2);
}
.card .tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.card .tag.purple { background: #e8dbff; color: #6741d9; }
.card .tag.green { background: #d3f9d8; color: #2b8a3e; }
.card .tag.orange { background: #fff3bf; color: #e67700; }
.card .tag.blue { background: #d0ebff; color: #1971c2; }
.card .tag.red { background: #ffe0e0; color: #c92a2a; }
.card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.4;
}
.card h3 a {
  color: var(--text);
  text-decoration: none;
}
.card h3 a:hover { color: var(--brand); }
.card p {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 12px;
  line-height: 1.6;
}
.card .meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  gap: 16px;
}

/* ===== Category Grid ===== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
  margin-bottom: 32px;
}
.category-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow);
}
.category-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-hover);
}
.category-card .icon-svg {
  width: 24px;
  height: 24px;
  color: var(--brand);
}
.category-card h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}
.category-card p {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}
.category-action {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 4px;
}
.category-card:hover .category-action { color: var(--brand); }

/* ===== Content Page ===== */
.content-page {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 24px;
}
.content-page h1 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 6px;
  line-height: 1.25;
}
.content-page .subtitle {
  color: var(--text-dim);
  font-size: 15px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.content-page h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 36px 0 12px;
  color: var(--brand);
  padding-left: 12px;
  border-left: 3px solid var(--brand);
}
.content-page h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 24px 0 8px;
}
.content-page p {
  margin-bottom: 12px;
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.8;
}
.content-page ul, .content-page ol {
  margin: 8px 0 16px 22px;
}

/* Tool icon badges */
.tool-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  margin: 0 2px;
}
.tool-badge.chatgpt { background: #d3f9d8; color: #2b8a3e; }
.tool-badge.claude { background: #e8dbff; color: #6741d9; }
.tool-badge.cursor { background: #fff3bf; color: #e67700; }
.tool-badge.copilot { background: #d0ebff; color: #1971c2; }

/* Data callout */
.data-callout {
  background: linear-gradient(135deg, var(--surface2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 16px 0;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.data-callout .data-icon { font-size: 24px; flex-shrink: 0; }
.data-callout .data-body { flex: 1; }
.data-callout .data-body strong { color: var(--text); }
.data-callout .data-body p { margin: 0; font-size: 14px; }

/* Key stat */
.key-stat {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  min-width: 100px;
}
.key-stat .stat-val {
  font-size: 24px;
  font-weight: 800;
  color: var(--brand);
}
.key-stat .stat-lbl {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}
.stats-row {
  display: flex;
  gap: 12px;
  margin: 16px 0;
  flex-wrap: wrap;
}

/* Winner callout */
.winner-callout {
  background: linear-gradient(135deg, rgba(34,139,230,0.06), rgba(121,80,242,0.06));
  border: 1px solid rgba(34,139,230,0.2);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 16px 0;
  text-align: center;
}
.winner-callout .winner-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}
.winner-callout .winner-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--brand);
  margin: 4px 0;
}
.winner-callout .winner-reason {
  font-size: 14px;
  color: var(--text-dim);
}

/* Pull quote */
.pull-quote {
  border-left: 3px solid var(--brand);
  background: var(--surface2);
  padding: 16px 20px;
  margin: 20px 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
}
.pull-quote p { margin: 0; font-size: 15px; color: var(--text-dim); }
.pull-quote .quote-author {
  font-style: normal;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ===== Tool Block ===== */
.tool-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s;
  box-shadow: var(--shadow);
}
.tool-block h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.tool-block .tagline { color: var(--text-dim); font-size: 14px; margin-bottom: 12px; }
.tool-block .price-tag {
  display: inline-block;
  background: #fff3bf;
  color: #e67700;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 20px;
  margin: 6px 0;
}
.tool-block .best-for {
  margin: 12px 0 0;
  padding: 10px 14px;
  background: #e7f5ff;
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 14px;
  color: var(--text-dim);
}

/* ===== Pros/Cons ===== */
.tool-pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 12px 0;
}
.tool-pros, .tool-cons {
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.tool-pros { background: #f6fff8; border-color: #b2f2bb; }
.tool-cons { background: #fff5f5; border-color: #ffc9c9; }
.tool-pros h4 { color: var(--green); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.tool-cons h4 { color: var(--red); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.tool-pros ul, .tool-cons ul { list-style: none; padding: 0; margin: 0; }
.tool-pros li, .tool-cons li { padding: 3px 0; font-size: 14px; color: var(--text-dim); }

/* ===== Comparison Table ===== */
.comp-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.comp-table thead th {
  background: var(--surface2);
  padding: 10px 12px;
  text-align: left;
  font-weight: 700;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.comp-table tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 13px;
}
.comp-table tbody tr:last-child td { border-bottom: none; }
.comp-table tbody tr:hover td { background: var(--surface2); }
.comp-table .win { color: var(--green); font-weight: 600; }

/* ===== Score Badge ===== */
.score-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, var(--brand3), var(--brand2));
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}
.score-badge .num { font-size: 15px; }

.gh-stars {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #d3f9d8;
  color: var(--green);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  margin-bottom: 8px;
}

/* ===== Buttons ===== */
.affiliate-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 13px;
  transition: all 0.15s;
  margin-top: 8px;
}
.affiliate-btn:hover {
  opacity: 0.9;
  box-shadow: 0 2px 8px rgba(34,139,230,0.25);
}
.affiliate-btn.ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
}
.affiliate-btn.ghost:hover { border-color: var(--brand); color: var(--brand); }

.status-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.3px;
}
.status-badge.dead { background: #ffe0e0; color: var(--red); }
.status-badge.active { background: #d3f9d8; color: var(--green); }

.alert-box {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid;
  margin: 14px 0;
  font-size: 14px;
}
.alert-box.warn { background: #fff5f5; border-color: #ffc9c9; color: var(--text-dim); }
.alert-box.info { background: #e7f5ff; border-color: #a5d8ff; color: var(--text-dim); }

/* ===== Featured Card ===== */
.featured-card {
  display: flex;
  gap: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 32px;
  align-items: center;
  position: relative;
  box-shadow: var(--shadow);
}
.featured-badge {
  position: absolute;
  top: -10px;
  left: 20px;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
}
.featured-content { flex: 1; }
.featured-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.featured-content h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}
.featured-content h2 a { color: var(--text); text-decoration: none; }
.featured-content h2 a:hover { color: var(--brand); }
.featured-content p { font-size: 14px; color: var(--text-dim); line-height: 1.7; margin-bottom: 12px; max-width: 500px; }
.featured-meta { display: flex; gap: 14px; font-size: 12px; color: var(--text-muted); margin-bottom: 12px; flex-wrap: wrap; }
.featured-visual { flex-shrink: 0; }
.vs-block { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.vs-item { padding: 6px 16px; border-radius: 6px; font-weight: 700; font-size: 13px; }
.vs-item.chatgpt { background: #d3f9d8; color: var(--green); }
.vs-item.claude { background: #e8dbff; color: #6741d9; }
.vs-divider { font-size: 13px; font-weight: 800; color: var(--text-muted); }

/* ===== Rank List ===== */
.rank-list { counter-reset: rank; }
.rank-item {
  counter-increment: rank;
  display: flex;
  gap: 14px;
  padding: 16px;
  margin-bottom: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  align-items: flex-start;
  box-shadow: var(--shadow);
}
.rank-item::before {
  content: '#' counter(rank);
  font-size: 24px;
  font-weight: 800;
  color: var(--brand);
  min-width: 36px;
  opacity: 0.4;
}
.rank-item .rank-content { flex: 1; }
.rank-item h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.rank-item p { font-size: 14px; color: var(--text-dim); margin: 0; line-height: 1.7; }
.rank-item .price {
  display: inline-block;
  background: #fff3bf;
  color: #e67700;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  margin-top: 4px;
}

/* ===== Trust Bar ===== */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 32px;
}
.trust-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow);
}
.trust-icon { font-size: 24px; margin-bottom: 10px; }
.trust-item h4 { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.trust-item p { font-size: 13px; color: var(--text-dim); line-height: 1.6; margin: 0; }

/* ===== AI 热点 ===== */
.nf-tabs {
  display: flex;
  gap: 4px;
  padding: 8px 0 12px;
  flex-wrap: wrap;
}
.nf-tab {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  text-decoration: none;
  padding: 4px 12px;
  border-radius: 6px;
  transition: all 0.15s;
}
.nf-tab:hover { color: var(--text); background: var(--surface2); }
.nf-tab.active { color: var(--text); background: var(--surface2); font-weight: 600; }
.nf-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 48px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.nf-loading, .nf-empty {
  text-align: center;
  padding: 32px;
  color: var(--text-muted);
  font-size: 14px;
}
.nf-scroll {
  max-height: 600px;
  overflow-y: auto;
}
.nf-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: background 0.1s;
}
.nf-item:last-child { border-bottom: none; }
.nf-item:hover { background: var(--surface2); }
.nf-time {
  font-size: 12px;
  color: var(--text-muted);
  flex-shrink: 0;
  width: 40px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.nf-title {
  flex: 1;
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nf-src {
  font-size: 11px;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* ===== Daily Page ===== */
.daily-section {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  overflow: hidden;
}
.daily-item {
  display: flex;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.daily-item:last-child { border-bottom: none; }
.daily-item:hover { background: var(--surface2); }
.daily-time {
  font-size: 12px;
  color: var(--text-muted);
  flex-shrink: 0;
  width: 40px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  margin-top: 1px;
}
.daily-body { flex: 1; min-width: 0; }
.daily-title {
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  line-height: 1.5;
  display: block;
}
.daily-title:hover { color: var(--brand); }
.daily-src {
  font-size: 11px;
  color: var(--text-muted);
}

/* ===== Footer ===== */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 24px 0;
  margin-top: 48px;
  text-align: center;
}
footer p { font-size: 12px; color: var(--text-muted); }
footer a { color: var(--text-muted); text-decoration: none; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero h1 { font-size: 24px; }
  .hero { padding: 32px 0 24px; }
  .card-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .tool-pros-cons { grid-template-columns: 1fr; }
  nav a { padding: 8px 6px; font-size: 11px; }
  .content-page h1 { font-size: 22px; }
  .featured-card { flex-direction: column; text-align: center; }
  .featured-visal { display: none; }
}
