/* 家电好物推荐 — 全局样式 v4
 * 现代克制风 · 移动端优先 · 京东红 #e2231a 仅作主 CTA/链接/关键标识
 * 清冷蓝灰基调 · 干净不闷
 */

/* ========== 顶部菜单 — 热门分类快捷（2026-06-24 加） ========== */
.header-nav-hot {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 14px;
  padding-left: 14px;
  border-left: 1px solid var(--border);
}
.header-nav-hot .hot-label {
  font-size: 0.7rem;
  color: var(--red);
  background: var(--red-bg);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}
.header-nav-hot a {
  font-size: 0.82rem;
  color: var(--text2);
  padding: 4px 6px !important;
}
.header-nav-hot a:hover {
  color: var(--red);
  background: transparent;
}
@media (max-width: 900px) {
  .header-nav-hot { display: none; }
}

/* ========== 京东优惠导航区块（2026-06-24 加） ========== */
.jd-nav {
  background: linear-gradient(135deg, #fff6f5 0%, #fff0ee 100%);
  padding: 32px 0 36px;
  border-bottom: 1px solid var(--border);
}
.jd-nav .section-title {
  margin-bottom: 6px;
}
.jd-nav-desc {
  color: var(--text2);
  font-size: 0.9rem;
  margin-bottom: 18px;
}
.jd-nav-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.jd-nav-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  transition: all 0.2s ease;
}
.jd-nav-card:hover {
  border-color: var(--red);
  background: #fff;
  box-shadow: 0 4px 12px rgba(226, 35, 26, .12);
  transform: translateY(-1px);
}
.jd-nav-icon {
  font-size: 24px;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--red-bg);
  border-radius: 8px;
}
.jd-nav-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.jd-nav-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.jd-nav-sub {
  font-size: 0.78rem;
  color: var(--text2);
}
@media (max-width: 900px) {
  .jd-nav-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .jd-nav-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .jd-nav-card { padding: 10px 8px; }
  .jd-nav-icon { width: 30px; height: 30px; font-size: 20px; }
  .jd-nav-title { font-size: 0.85rem; }
}

/* ========== 1. 设计令牌 ========== */
:root {
  --red: #e2231a;
  --red-soft: #ff5757;
  --red-bg: #fff0ee;
  --red-bg-2: #fff6f5;
  --red-deep: #c41a13;

  --bg: #f0f3f7;
  --bg-2: #f6f8fb;
  --card: #ffffff;
  --text: #1a1a1a;
  --text2: #666;
  --text3: #999;

  --border: #e4e8ee;
  --border-strong: #ced4de;

  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 16px;

  --shadow: 0 1px 4px rgba(0, 0, 0, .04);
  --shadow-hover: 0 6px 24px rgba(0, 0, 0, .08);
  --shadow-card: 0 2px 8px rgba(0, 0, 0, .03);

  --max-w: 1100px;

  --t-fast: .15s ease;
  --t-base: .2s ease;
}

/* ========== 2. Reset ========== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  word-break: break-word;
}

img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; }

a {
  color: var(--red);
  text-decoration: none;
  transition: color var(--t-fast);
}
a:hover { color: var(--red-deep); text-decoration: underline; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 16px;
}

/* ========== 3. Header ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 17px;
  font-weight: 700;
  color: var(--red);
  white-space: nowrap;
  letter-spacing: -.3px;
}
.logo:hover { text-decoration: none; }

.header-nav {
  display: flex;
  gap: 2px;
  flex: 1;
  flex-wrap: wrap;
}

.header-nav a {
  color: var(--text2);
  font-size: 14px;
  padding: 6px 14px;
  border-radius: 20px;
  transition: all var(--t-base);
}
.header-nav a:hover,
.header-nav a.active {
  background: var(--red-bg);
  color: var(--red);
  text-decoration: none;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 5px 14px;
  background: var(--bg);
  transition: border var(--t-base), background var(--t-base);
}
.header-search:focus-within {
  border-color: var(--red);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(226, 35, 26, .08);
}
.header-search input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 13px;
  width: 130px;
  color: var(--text);
}
.header-search button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 15px;
  padding: 0 4px;
  color: var(--text2);
}

/* ========== 4. Hero ========== */
.hero {
  position: relative;
  background: linear-gradient(135deg, #edf2f9 0%, #dce6f5 50%, #e8eff8 100%);
  padding: 56px 16px 48px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .12;
  z-index: 0;
  pointer-events: none;
}

.hero > .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 34px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -.6px;
  line-height: 1.25;
}

.hero p {
  font-size: 15px;
  color: var(--text2);
  margin-bottom: 28px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.hero-stat { text-align: center; }

.hero-stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--red);
  font-feature-settings: "tnum";
  line-height: 1.2;
  letter-spacing: -.5px;
}

.hero-stat-label {
  font-size: 12px;
  color: var(--text3);
  margin-top: 4px;
  letter-spacing: .2px;
}

/* ========== 5. Section ========== */
.section {
  padding: 32px 0;
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -.2px;
}

.section-title::before {
  content: '';
  width: 3px;
  height: 16px;
  background: var(--red);
  border-radius: 2px;
  flex-shrink: 0;
}

.section-title .more {
  margin-left: auto;
  font-size: 13px;
  font-weight: 400;
  color: var(--text3);
}
.section-title .more:hover { color: var(--red); text-decoration: none; }

/* ========== 6. Category Grid ========== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  gap: 10px;
}

.cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 8px;
  background: var(--card);
  border: 1px solid transparent;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  color: var(--text);
  overflow: hidden;
  transition: transform var(--t-base), box-shadow var(--t-base),
    border-color var(--t-base);
}

.cat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--cat-img, none) center/cover no-repeat;
  opacity: .4;
  z-index: 0;
  transition: opacity var(--t-base), transform var(--t-base);
}

.cat-card:hover::before {
  opacity: .5;
  transform: scale(1.04);
}

.cat-card > * {
  position: relative;
  z-index: 1;
}

.cat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: var(--red);
  text-decoration: none;
}

.cat-card-icon {
  font-size: 26px;
  margin-bottom: 6px;
  line-height: 1.2;
}

.cat-card-label {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.cat-card-count {
  font-size: 11px;
  color: var(--text3);
  margin-top: 3px;
  font-feature-settings: "tnum";
}

/* ========== 7. Product Table ========== */
.product-table {
  width: 100%;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-collapse: collapse;
  overflow: hidden;
}

.product-table thead { background: var(--bg-2); }

.product-table th {
  text-align: left;
  padding: 12px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.product-table td {
  padding: 14px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  vertical-align: middle;
}

.product-table tbody tr { transition: background var(--t-fast); }
.product-table tbody tr:hover { background: var(--bg-2); }
.product-table tbody tr:last-child td { border-bottom: none; }

.prod-name {
  font-weight: 500;
  color: var(--text);
  line-height: 1.5;
  max-width: 380px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.prod-name small {
  display: block;
  color: var(--text3);
  font-weight: 400;
  font-size: 12px;
  margin-top: 2px;
}

.prod-price {
  font-weight: 700;
  color: var(--red);
  white-space: nowrap;
  font-feature-settings: "tnum";
  font-size: 15px;
}
.prod-price s {
  color: var(--text3);
  font-weight: 400;
  margin-left: 4px;
  font-size: 12px;
}

.prod-meta {
  color: var(--text2);
  font-size: 13px;
  white-space: nowrap;
}

/* ========== 8. Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--t-base);
  white-space: nowrap;
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
}

.btn-red {
  background: var(--red);
  color: #fff;
  box-shadow: 0 1px 2px rgba(226, 35, 26, .15);
}
.btn-red:hover {
  background: var(--red-deep);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(226, 35, 26, .25);
}
.btn-red:active { transform: scale(.98); }

.btn-outline {
  background: #fff;
  border-color: var(--red);
  color: var(--red);
}
.btn-outline:hover {
  background: var(--red-bg);
  color: var(--red-deep);
  border-color: var(--red-deep);
  text-decoration: none;
}

.btn-ghost {
  background: var(--bg-2);
  color: var(--text2);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: var(--bg);
  color: var(--text);
  text-decoration: none;
}

.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-lg {
  padding: 12px 32px;
  font-size: 15px;
  border-radius: 8px;
}

/* ========== 9. TOP List ========== */
.top-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.top-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  padding: 14px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--text);
  transition: transform var(--t-base), box-shadow var(--t-base),
    border-color var(--t-base);
}
.top-item:hover {
  transform: translateX(2px);
  box-shadow: var(--shadow-hover);
  border-color: var(--red);
  text-decoration: none;
}

.top-rank {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--text3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
  font-feature-settings: "tnum";
}
.top-rank.r1 { background: linear-gradient(135deg, #ffd700, #ffa500); color: #fff; }
.top-rank.r2 { background: linear-gradient(135deg, #c0c0c0, #909090); color: #fff; }
.top-rank.r3 { background: linear-gradient(135deg, #cd7f32, #a05a2c); color: #fff; }

.top-info {
  flex: 1;
  min-width: 0;
}

.top-name {
  font-weight: 500;
  font-size: 14px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.top-meta {
  font-size: 12px;
  color: var(--text3);
  margin-top: 4px;
}

.top-price {
  font-weight: 700;
  color: var(--red);
  white-space: nowrap;
  font-size: 15px;
  font-feature-settings: "tnum";
}
.top-price s {
  color: var(--text3);
  font-weight: 400;
  font-size: 12px;
  margin-left: 4px;
}

/* ========== 10. Product Detail ========== */
.detail-header {
  background: var(--card);
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.detail-breadcrumb {
  font-size: 12px;
  color: var(--text3);
  margin-bottom: 12px;
}
.detail-breadcrumb a { color: var(--text2); }
.detail-breadcrumb a:hover { color: var(--red); }
.detail-breadcrumb .sep { margin: 0 6px; color: var(--border-strong); }

.detail-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
  letter-spacing: -.2px;
}

.detail-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.detail-tag {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  background: var(--bg);
  color: var(--text2);
}
.detail-tag.hot {
  background: var(--red-bg);
  color: var(--red);
}

.detail-price-box {
  background: linear-gradient(135deg, #fafbfd 0%, #eef3fa 100%);
  padding: 20px 24px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.detail-price-label {
  font-size: 12px;
  color: var(--text3);
  margin-bottom: 4px;
}

.detail-price-current {
  font-size: 30px;
  font-weight: 700;
  color: var(--red);
  font-feature-settings: "tnum";
  letter-spacing: -.5px;
  line-height: 1.1;
}

.detail-price-original {
  font-size: 14px;
  color: var(--text3);
  text-decoration: line-through;
  margin-left: 10px;
  font-feature-settings: "tnum";
}

.detail-discount-badge {
  display: inline-block;
  margin-left: 10px;
  padding: 3px 10px;
  background: var(--red);
  color: #fff;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  vertical-align: middle;
}

.detail-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}

.detail-meta-item {
  background: var(--bg);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: border var(--t-base);
}
.detail-meta-item:hover { border-color: var(--border); }

.detail-meta-value {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  font-feature-settings: "tnum";
  letter-spacing: -.2px;
}

.detail-meta-label {
  font-size: 11px;
  color: var(--text3);
  margin-top: 2px;
}

.detail-highlights {
  margin-top: 24px;
  padding: 20px 22px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.detail-highlights h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 8px;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text);
  transition: background var(--t-base);
}
.highlight-item:hover { background: var(--red-bg); }

.highlight-icon { font-size: 16px; line-height: 1; }
.highlight-text { font-weight: 500; }

/* ========== 11. Article ========== */
.article-header {
  text-align: center;
  padding: 36px 16px 22px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}

.article-header h1 {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.4;
  max-width: 760px;
  margin: 0 auto 8px;
  letter-spacing: -.3px;
}

.article-meta {
  font-size: 12px;
  color: var(--text3);
}

.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 16px 48px;
  font-size: 16px;
  line-height: 1.9;
  color: #2b2b2b;
}

.article-body h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 32px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--red);
  color: var(--text);
  letter-spacing: -.2px;
}

.article-body h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 24px 0 10px;
  color: var(--text);
}

.article-body p { margin-bottom: 14px; }
.article-body ul,
.article-body ol { margin: 8px 0 16px 24px; }
.article-body li { margin-bottom: 6px; }
.article-body strong { color: var(--red); font-weight: 600; }
.article-body img {
  border-radius: var(--radius);
  margin: 16px 0;
  box-shadow: var(--shadow);
}
.article-body blockquote {
  margin: 16px 0;
  padding: 12px 16px;
  background: var(--bg-2);
  border-left: 3px solid var(--border-strong);
  color: var(--text2);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.article-body code {
  background: var(--bg-2);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: .9em;
  color: var(--red-deep);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

.product-reco {
  background: linear-gradient(135deg, #fafbfd 0%, #f0f4fa 100%);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 24px 0;
  box-shadow: var(--shadow);
}

.product-reco-name {
  font-weight: 600;
  font-size: 15px;
  line-height: 1.5;
}

.product-reco-price {
  color: var(--red);
  font-weight: 700;
  margin-top: 6px;
  font-feature-settings: "tnum";
  font-size: 15px;
}

.product-reco-link { margin-top: 12px; display: inline-block; }

.related-articles {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 16px 48px;
  border-top: 1px solid var(--border);
}

.related-articles h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.related-articles h3::before {
  content: '';
  width: 3px;
  height: 14px;
  background: var(--red);
  border-radius: 2px;
}

.related-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.related-item {
  font-size: 14px;
  padding: 10px 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all var(--t-base);
  display: block;
  color: var(--text);
}
.related-item:hover {
  border-color: var(--red);
  background: var(--red-bg);
  text-decoration: none;
  transform: translateX(2px);
}

/* ========== 12. FAQ ========== */
.detail-faq {
  margin-top: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
}

.detail-faq h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.faq-item {
  border-bottom: 1px dashed var(--border);
  padding: 12px 0;
}
.faq-item:last-child { border-bottom: none; padding-bottom: 0; }
.faq-item:first-child { padding-top: 0; }

.faq-q {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 6px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.faq-q::before {
  content: 'Q';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.faq-a {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.8;
  padding-left: 28px;
  position: relative;
}
.faq-a::before {
  content: 'A';
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: var(--bg);
  color: var(--text2);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ========== 13. Article Cards (homepage) ========== */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.article-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
  color: var(--text);
  transition: transform var(--t-base), box-shadow var(--t-base),
    border-color var(--t-base);
}
.article-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: var(--red);
  text-decoration: none;
}

.article-card-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-meta {
  font-size: 11px;
  color: var(--text3);
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ========== 14. Footer ========== */
.site-footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 28px 16px;
  text-align: center;
  font-size: 12px;
  color: var(--text3);
  margin-top: 40px;
  line-height: 1.8;
}

.site-footer p { margin-bottom: 4px; }
.site-footer a { color: var(--text2); }
.site-footer a:hover { color: var(--red); }

/* ========== 15. 滚动条美化（Webkit） ========== */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--text3); }

/* ========== 16. 选区颜色 ========== */
::selection {
  background: var(--red);
  color: #fff;
}

/* ========== 17. 焦点可见性（键盘可达） ========== */
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ========== 17.5 Detail FAQ + Compare ========== */
.detail-faq {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-top: 16px;
}
.detail-faq h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
}
.faq-item {
  padding: 14px 0;
  border-bottom: 1px dashed var(--border);
}
.faq-item:last-child { border-bottom: none; padding-bottom: 0; }
.faq-q {
  font-size: 14px;
  font-weight: 600;
  color: var(--red);
  margin-bottom: 6px;
}
.faq-a {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.75;
}
.faq-a a { color: var(--red); }

.detail-compare {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.detail-compare h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
}
.compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.compare-item {
  display: block;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  transition: all var(--t-base);
}
.compare-item:hover {
  border-color: var(--red);
  background: var(--red-bg);
  text-decoration: none;
}
.compare-name {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}
.compare-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 12px;
}
.compare-price {
  font-weight: 700;
  color: var(--red);
  font-feature-settings: "tnum";
  font-size: 14px;
}
.compare-sales { color: var(--text3); }

/* ========== 18. Responsive ========== */

/* 平板及以下 (<= 1024px) */
@media (max-width: 1024px) {
  .header-inner { gap: 12px; }
  .header-nav a { padding: 6px 12px; font-size: 13px; }
  .container { padding: 0 14px; }
}

/* 平板 (<= 768px) */
@media (max-width: 768px) {
  body { font-size: 14px; }
  .container { padding: 0 12px; }

  /* Header */
  .header-inner { padding: 10px 12px; gap: 10px; flex-wrap: wrap; }
  .logo { font-size: 16px; }
  .header-nav { order: 3; width: 100%; gap: 0; }
  .header-nav a { padding: 6px 10px; font-size: 13px; }
  .header-search input { width: 100px; font-size: 12px; }

  /* Hero */
  .hero { padding: 40px 16px 32px; }
  .hero h1 { font-size: 24px; }
  .hero p { font-size: 14px; margin-bottom: 20px; }
  .hero-stats { gap: 24px; }
  .hero-stat-value { font-size: 22px; }

  /* Section */
  .section { padding: 24px 0; }
  .section-title { font-size: 16px; }

  /* Category */
  .cat-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .cat-card { padding: 12px 6px; }
  .cat-card-icon { font-size: 22px; }
  .cat-card-label { font-size: 12px; }

  /* Product table */
  .product-table { font-size: 13px; }
  .product-table th,
  .product-table td { padding: 10px 8px; }
  .prod-name { max-width: 200px; }
  .prod-price { font-size: 14px; }

  /* Top list */
  .top-item { padding: 12px 14px; gap: 12px; }
  .top-rank { width: 28px; height: 28px; font-size: 13px; }
  .top-name { font-size: 13px; }
  .top-price { font-size: 14px; }

  /* Article cards */
  .article-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .article-card { padding: 14px 16px; }

  /* Detail */
  .detail-header { padding: 20px 0; }
  .detail-title { font-size: 19px; }
  .detail-price-current { font-size: 26px; }
  .detail-price-box { padding: 16px 18px; }
  .highlights-grid { grid-template-columns: repeat(auto-fill, minmax(95px, 1fr)); }

  /* Article body */
  .article-header { padding: 28px 14px 18px; }
  .article-header h1 { font-size: 21px; }
  .article-body { font-size: 15px; padding: 24px 14px 40px; line-height: 1.85; }
  .article-body h2 { font-size: 18px; }
  .article-body h3 { font-size: 16px; }
}

/* 手机 (<= 480px) */
@media (max-width: 480px) {
  body { font-size: 14px; }

  /* Header 简化 */
  .header-search { display: none; }
  .header-nav a { padding: 5px 8px; font-size: 12px; }

  /* Hero 紧凑 */
  .hero { padding: 32px 14px 26px; }
  .hero h1 { font-size: 21px; letter-spacing: -.3px; }
  .hero p { font-size: 13px; margin-bottom: 18px; }
  .hero-stats { gap: 18px; }
  .hero-stat-value { font-size: 20px; }
  .hero-stat-label { font-size: 11px; }

  /* Category 3列 */
  .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .cat-card { padding: 10px 4px; }
  .cat-card-icon { font-size: 20px; margin-bottom: 4px; }
  .cat-card-label { font-size: 11px; }
  .cat-card-count { font-size: 10px; }

  /* Product table 转卡片式 */
  .product-table thead { display: none; }
  .product-table,
  .product-table tbody,
  .product-table tr,
  .product-table td { display: block; width: 100%; }
  .product-table tr {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 10px;
    padding: 12px 14px;
    box-shadow: var(--shadow);
  }
  .product-table tr:last-child { margin-bottom: 0; }
  .product-table td {
    padding: 4px 0;
    border: none;
  }
  .product-table td + td { margin-top: 6px; }
  .prod-name { max-width: 100%; font-size: 14px; }
  .prod-price { font-size: 16px; }
  .prod-meta { font-size: 12px; }

  /* Top list 换行 */
  .top-item { flex-wrap: wrap; padding: 12px; }
  .top-rank { order: 0; }
  .top-info { width: 100%; order: 2; margin-top: 6px; }
  .top-price {
    order: 1;
    margin-left: auto;
    align-self: center;
    font-size: 15px;
  }

  /* Article cards 单列 */
  .article-grid { grid-template-columns: 1fr; }

  /* Detail 按钮全宽 */
  .detail-price-box {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
  }
  .detail-actions { width: 100%; }
  .detail-actions .btn { flex: 1; justify-content: center; }
  .detail-meta { grid-template-columns: repeat(2, 1fr); }
  .detail-highlights { padding: 16px; }
  .highlights-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-faq { padding: 16px; }
  .faq-a { font-size: 13px; }

  /* Article body 紧凑 */
  .article-header { padding: 22px 14px 14px; }
  .article-header h1 { font-size: 18px; }
  .article-body {
    font-size: 15px;
    padding: 20px 14px 36px;
    line-height: 1.85;
  }
  .article-body h2 { font-size: 17px; margin: 24px 0 10px; }
  .article-body h3 { font-size: 15px; }

  /* Section */
  .section { padding: 20px 0; }

  /* Footer */
  .site-footer { padding: 22px 14px; font-size: 11px; margin-top: 28px; }
}
