/* ============================================================
   DriveWise SSD 测评站样式
   - editorial 风格：干净、可读、评分导向
   - CSS 变量统一配色，改主题改 :root
   - 纯 CSS，无框架
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-alt: #f6f8fb;
  --text: #111827;
  --text-muted: #5b6474;
  --primary: #2563eb;      /* 主色蓝 */
  --primary-dark: #1d4ed8;
  --rating: #f59e0b;       /* 评分金色 */
  --good: #15803d;         /* 优点绿 */
  --bad: #b91c1c;          /* 缺点红 */
  --border: #e5e9f0;
  --radius: 14px;
  --shadow: 0 4px 18px rgba(17, 24, 39, 0.05);
  --max-width: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 20px; }
.brand { font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.brand span { color: var(--primary); }
.nav-links { display: flex; gap: 22px; }
.nav-links a { color: var(--text-muted); font-weight: 500; font-size: 14px; }
.nav-links a:hover { color: var(--text); }

/* ---------- 按钮 ---------- */
.btn { display: inline-block; padding: 10px 20px; border-radius: 10px; font-weight: 600; border: 1px solid transparent; transition: all .15s ease; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { border-color: var(--border); color: var(--text); background: #fff; }
.btn-ghost:hover { border-color: var(--text-muted); }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 48px; text-align: center; border-bottom: 1px solid var(--border); }
.hero h1 { font-size: 40px; letter-spacing: -0.02em; margin-bottom: 12px; }
.hero p { font-size: 17px; color: var(--text-muted); max-width: 620px; margin: 0 auto; }

/* ---------- 分类区块 ---------- */
.category { padding: 48px 0; border-bottom: 1px solid var(--border); }
.category:last-of-type { border-bottom: none; }
.category-head { margin-bottom: 24px; }
.category-head h2 { font-size: 24px; letter-spacing: -0.01em; }
.category-head p { color: var(--text-muted); font-size: 15px; margin-top: 4px; }

/* ---------- 产品卡网格 ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.product-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.product-card .card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.category-tag { font-size: 12px; font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: 0.05em; }
.rating-badge {
  font-size: 24px; font-weight: 800; color: var(--rating);
  line-height: 1; flex-shrink: 0;
}
.rating-badge small { font-size: 12px; font-weight: 600; color: var(--text-muted); }
.product-card h3 { font-size: 19px; margin-bottom: 6px; }
.product-card .tagline { color: var(--text-muted); font-size: 14px; margin-bottom: 18px; flex: 1; }
.card-actions { display: flex; gap: 10px; }
.card-actions .btn { flex: 1; text-align: center; font-size: 14px; }

/* ---------- 面包屑 ---------- */
.breadcrumb { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--primary); }

/* ---------- 评测页 ---------- */
.review-page { padding: 48px 0 72px; }
.review-meta { color: var(--text-muted); font-size: 13px; margin-bottom: 24px; }
.review-page h1 { font-size: 34px; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 8px; }

/* 评分 + 购买卡 */
.verdict {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 24px; margin-bottom: 28px;
}
.verdict .score { text-align: center; }
.verdict .score .num { font-size: 44px; font-weight: 800; color: var(--rating); line-height: 1; }
.verdict .score .lbl { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.verdict .verdict-text { flex: 1; min-width: 200px; }
.verdict .verdict-text p { color: var(--text-muted); font-size: 14px; }
.verdict .verdict-actions { display: flex; flex-direction: column; gap: 8px; }

/* pros / cons 两栏 */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 32px; }
.pros-box, .cons-box { border-radius: var(--radius); padding: 20px; }
.pros-box { background: #f0fdf4; border: 1px solid #bbf7d0; }
.cons-box { background: #fef2f2; border: 1px solid #fecaca; }
.pros-box h3 { color: var(--good); margin-bottom: 10px; font-size: 15px; }
.cons-box h3 { color: var(--bad); margin-bottom: 10px; font-size: 15px; }
.pros-box li, .cons-box li { font-size: 14px; margin-bottom: 6px; color: var(--text); }
.pros-box ul, .cons-box ul { list-style: none; padding: 0; }

/* 正文标题与段落 */
.review-body h2 { font-size: 22px; margin: 32px 0 12px; letter-spacing: -0.01em; }
.review-body p { margin-bottom: 14px; color: #2b3345; }

/* 规格表 */
.spec-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 8px; }
.spec-table th, .spec-table td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--border); font-size: 14px; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }
.spec-table th { width: 42%; font-weight: 600; background: #fafbfd; }
.spec-table td { color: var(--text-muted); }

/* 购买 CTA */
.buy-cta {
  margin-top: 32px; padding: 24px; text-align: center;
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius);
}
.buy-cta p { color: var(--text-muted); font-size: 13px; margin-bottom: 14px; }
.buy-cta .cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- 披露条 ---------- */
.disclosure {
  background: #fffbeb; border: 1px solid #fde68a; border-radius: var(--radius);
  padding: 12px 16px; font-size: 12px; color: #6b5a1e; margin-bottom: 32px;
}
.disclosure a { text-decoration: underline; color: var(--primary); }

/* ---------- 页脚 ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0; margin-top: 32px; }
.footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--text-muted); font-size: 13px; }
.footer-links { display: flex; gap: 20px; }

/* ---------- 响应式 ---------- */
@media (max-width: 640px) {
  .hero h1 { font-size: 30px; }
  .review-page h1 { font-size: 27px; }
  .pros-cons { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
