:root {
  --bg: #f6f7f9;
  --card: #ffffff;
  --text: #1f2329;
  --muted: #8a919c;
  --line: #e8eaee;
  --brand: #e1251b;
  --brand-dark: #c01b12;
  --brand-soft: #fff1f0;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 4px 16px rgba(16, 24, 40, 0.04);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.65;
  font-size: 15px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.35; margin: 0 0 8px; }
h1 { font-size: 26px; }
h2 { font-size: 19px; }
h3 { font-size: 16px; }

.container { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.logo { font-weight: 700; font-size: 17px; color: var(--brand); letter-spacing: 0.5px; }
.nav { display: flex; gap: 18px; font-size: 14px; }
.nav a { color: #4a5058; padding: 6px 0; }
.nav a.active { color: var(--brand); font-weight: 600; }

main { padding: 18px 16px 48px; }

.hero {
  background: linear-gradient(135deg, #fff5f4 0%, #ffffff 70%);
  border: 1px solid #ffe3e0;
  border-radius: var(--radius);
  padding: 26px 22px;
  margin-bottom: 26px;
}
.hero h1 { font-size: 24px; margin-bottom: 6px; }
.hero p { color: #5b626b; margin: 0 0 18px; }

.resolve-form { display: flex; gap: 8px; }
.resolve-form.vertical { flex-direction: column; }
.resolve-form input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  outline: none;
}
.resolve-form input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }

button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}
button:hover, .btn:hover { background: var(--brand-dark); }
.btn.primary { width: 100%; margin: 14px 0 6px; }

.result { margin-top: 14px; }
.result p { margin: 6px 0; }
.result-title { font-weight: 600; }
.error { color: var(--brand); }

.section { margin-bottom: 30px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.section-head a { color: var(--brand); font-size: 13px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(16, 24, 40, 0.08); }
.thumb { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #f1f2f5; }
.thumb.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  font-weight: 700;
  color: #c9ced6;
  background: linear-gradient(135deg, #f4f5f7, #e9ebef);
}
.thumb.placeholder.large { aspect-ratio: 1 / 1; font-size: 64px; border-radius: var(--radius); }
.card-body { padding: 10px 12px 12px; }
.card-title {
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 44px;
}
.price-row { display: flex; align-items: baseline; gap: 6px; }
.price { color: var(--brand); font-weight: 700; font-size: 18px; }
.price-link { color: var(--brand); font-weight: 600; font-size: 14px; }
.price.big { font-size: 30px; }
.origin { color: var(--muted); text-decoration: line-through; font-size: 12px; }
.badge {
  display: inline-block;
  margin-top: 6px;
  padding: 1px 8px;
  border-radius: 6px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
}

.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 10px; margin-bottom: 8px; }
.chip {
  flex: none;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  color: #4a5058;
}
.chip.active { background: var(--brand); border-color: var(--brand); color: #fff; }

.pager { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 20px; font-size: 14px; }
.pager a { color: var(--brand); }

.empty { text-align: center; padding: 48px 0; color: var(--muted); }
.empty .btn { margin-top: 12px; width: auto; }

.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); }

.detail { display: grid; grid-template-columns: 1fr 1.2fr; gap: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.detail-media img { border-radius: 10px; width: 100%; }
.detail-info h1 { font-size: 20px; }
.detail-price { margin: 12px 0 4px; display: flex; align-items: baseline; gap: 8px; }
.coupon-line { color: var(--brand); background: var(--brand-soft); padding: 6px 10px; border-radius: 8px; font-size: 14px; }

.article-list { display: flex; flex-direction: column; gap: 10px; }
.article-item { display: block; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.article-item time { font-size: 12px; color: var(--muted); }
.article-item h3 { margin: 4px 0 4px; }
.article-item p { margin: 0; color: #5b626b; font-size: 13px; }
.tags { margin-top: 6px; font-size: 12px; color: var(--brand); display: flex; gap: 8px; }

.article { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.article h1 { margin-bottom: 4px; }
.prose h2 { margin-top: 26px; font-size: 18px; }
.prose h3 { margin-top: 20px; }
.prose p { margin: 10px 0; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose blockquote { margin: 14px 0; padding: 8px 14px; border-left: 3px solid var(--brand); background: #fafafa; color: #5b626b; }
.prose code { background: #f1f2f5; padding: 1px 5px; border-radius: 4px; font-size: 13px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 14px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }

.disclaimer { margin-top: 24px; padding-top: 12px; border-top: 1px dashed var(--line); }

.note { margin-top: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.note h2 { font-size: 16px; }
.note ul { padding-left: 20px; color: #5b626b; font-size: 14px; }

.cta { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.cta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cta-grid strong { display: block; margin-bottom: 4px; }
.cta-grid p { margin: 0; color: var(--muted); font-size: 13px; }

.site-footer { border-top: 1px solid var(--line); background: #fff; padding: 22px 0 30px; margin-top: 10px; }
.site-footer p { margin: 4px 0; font-size: 12px; }
.footer-links { display: flex; gap: 8px; color: var(--muted); margin-bottom: 8px; }

@media (max-width: 560px) {
  .detail { grid-template-columns: 1fr; }
  .cta-grid { grid-template-columns: 1fr; }
  .hero { padding: 20px 16px; }
  h1 { font-size: 22px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .nav { gap: 14px; font-size: 13px; }
}

/* v2: 导航、专题、羊毛列表、短链 */
.nav { overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { white-space: nowrap; }

.page-subtitle { color: var(--muted); font-size: 13px; margin: -6px 0 14px; }

.campaign-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  margin: 0 0 24px;
  border-radius: var(--radius);
  background: linear-gradient(120deg, #e1251b, #ff7a45);
  color: #fff;
  box-shadow: 0 8px 20px rgba(225, 37, 27, 0.18);
}
.campaign-banner .campaign-tag { background: rgba(255, 255, 255, 0.2); }
.campaign-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  flex: none;
}
.campaign-title { font-weight: 700; }
.campaign-sub { font-size: 12px; opacity: 0.85; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.campaign-arrow { font-weight: 700; }

.campaign-hero {
  background: linear-gradient(135deg, #fff2ef, #ffffff);
  border: 1px solid #ffe0da;
  border-radius: var(--radius);
  padding: 24px 22px;
  margin-bottom: 24px;
}
.campaign-hero h1 { margin: 8px 0 4px; }
.campaign-hero p { color: #5b626b; margin: 0 0 12px; }
.countdown { font-size: 14px; }
.countdown strong { color: var(--brand); font-size: 20px; margin-left: 6px; }

.platform-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.platform-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.platform-card span { color: var(--brand); font-size: 13px; }
.platform-card.disabled { color: var(--muted); background: #fafbfc; box-shadow: none; }
.platform-card.disabled span { color: var(--muted); }

.campaign-blocks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.campaign-block { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.campaign-block p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }

.offer-list { display: flex; flex-direction: column; gap: 10px; }
.offer-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.offer-kind {
  flex: none;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
}
.offer-main { flex: 1; min-width: 0; }
.offer-main h3 { font-size: 15px; margin: 0 0 2px; }
.offer-main p { margin: 0; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.offer-arrow { color: var(--muted); }
.offer-ph { font-size: 20px; font-weight: 600; color: #c9ced6; }
.offer-extra { margin: 12px 0; padding-left: 20px; color: #5b626b; font-size: 14px; }
.offer-extra li { margin: 4px 0; }

.short-link { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.short-link code { background: #f1f2f5; padding: 4px 8px; border-radius: 6px; font-size: 13px; word-break: break-all; }
.copy-btn {
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: #4a5058;
  font-size: 12px;
  cursor: pointer;
}

@media (max-width: 560px) {
  .platform-grid { grid-template-columns: 1fr; }
  .campaign-blocks { grid-template-columns: 1fr; }
  .campaign-sub { display: none; }
}

/* 卡片决策信息 */
.card .save, .detail-price .save {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 11px;
  font-weight: 600;
}
.unit-line { margin: 4px 0 2px; color: var(--muted); font-size: 13px; }
.card .unit {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}
.card .card-meta {
  display: block;
  margin-top: 6px;
  color: #9aa0a8;
  font-size: 11px;
}

/* 今日领券 / 明日会场 */
.coupon-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.coupon-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.coupon-thumb { width: 100%; height: 120px; object-fit: cover; object-position: 50% 22%; display: block; background: #f5f6f8; }
.coupon-ph {
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ff7a45, #e1251b);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}
.coupon-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.coupon-body h3 { margin: 0; font-size: 15px; line-height: 1.35; }
.coupon-body p { margin: 0; color: var(--muted); font-size: 12px; }
.coupon-btn { margin-top: auto; padding-top: 6px; color: var(--brand); font-size: 13px; font-weight: 600; }

.preview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.preview-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 110px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.preview-card h3 { margin: 0; font-size: 14px; line-height: 1.35; }
.preview-arrow { margin-top: auto; color: var(--brand); font-size: 12px; font-weight: 600; }
.preview-all { margin-top: 14px; padding: 12px 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.preview-all summary { cursor: pointer; font-weight: 600; color: #4a5058; }
.preview-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px 18px; margin-top: 12px; }
.preview-list a { display: block; padding: 5px 0; border-bottom: 1px dashed var(--line); color: #4a5058; font-size: 12px; }
.preview-list a span { color: var(--brand); margin-right: 6px; }

@media (max-width: 560px) {
  .coupon-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .coupon-thumb { height: 96px; }
  .coupon-body { padding: 8px 9px 10px; }
  .coupon-body h3 { font-size: 13px; }
  .coupon-body p { font-size: 11px; }
  .coupon-btn { font-size: 12px; }
  .preview-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .preview-card { min-height: 86px; padding: 10px; }
  .preview-card h3 { font-size: 12px; }
  .preview-list { grid-template-columns: 1fr; }
}

/* 首页小工具 / 小领券框 / 双11 分组 */
.tool-card { padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.tool-card .section-head { margin-bottom: 8px; }
.resolve-form.compact { display: flex; gap: 8px; }
.resolve-form.compact input { flex: 1; min-width: 0; }
.resolve-form.compact button { flex: none; }

.quick-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.quick-link {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  min-width: 0;
}
.quick-link strong { font-size: 13px; line-height: 1.3; }
.quick-link > span:not(.offer-kind) { color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quick-link em { margin-top: 4px; color: var(--brand); font-size: 12px; font-style: normal; font-weight: 600; }

.link-list { display: flex; flex-direction: column; gap: 8px; }
.link-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.link-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.link-main strong { font-size: 14px; line-height: 1.35; }
.link-main span { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-go { flex: none; color: var(--brand); font-size: 12px; font-weight: 600; }
.sub-head { margin-top: 24px; }

@media (max-width: 560px) {
  .quick-links { grid-template-columns: 1fr; }
  .link-row { padding: 9px 10px; }
  .link-main strong { font-size: 13px; }
}

/* 搜商品 / 查优惠券 */
.hidden { display: none !important; }
.search-panel { padding: 4px 0 14px; }
.search-tabs { display: flex; gap: 4px; margin-bottom: 10px; }
.search-tab {
  border: 0;
  background: transparent;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
}
.search-tab.active { background: var(--brand); color: #fff; font-weight: 600; }
.search-hint { margin: 6px 0 0; }
.search-hot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; font-size: 12px; color: var(--muted); }
.search-hot a { color: var(--brand); }

.platform-picker { display: flex; flex-wrap: wrap; gap: 6px; }
.platform-btn {
  flex: none;
  padding: 5px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #4a5058;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.platform-btn.active { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }

.search-input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  outline: none;
}
.search-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.search-actions { display: flex; gap: 8px; margin-top: 10px; }
.search-action {
  flex: 1;
  min-width: 0;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: #4a5058;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.search-action:hover { background: var(--brand-soft); }
.search-action.primary { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.search-action.primary:hover { background: var(--brand-dark); }
.platform-links { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; font-size: 12px; color: var(--muted); }
.platform-links a { color: var(--brand); }

.resolve-row { display: flex; gap: 8px; }
.resolve-row input { flex: 1; min-width: 0; }

.tools-panel { margin-top: 2px; }
.tool-block { padding: 14px 0; border-top: 1px solid var(--line); }
.tool-block:first-child { border-top: 0; padding-top: 0; }
.tool-title { font-size: 14px; font-weight: 600; margin: 0 0 10px; color: var(--text); }
.tool-block .result { margin-top: 10px; }
.tool-notes {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  font-size: 13px;
  color: var(--text);
}
.tool-notes h3 { font-size: 14px; margin: 0 0 8px; }
.tool-notes h3:not(:first-child) { margin-top: 14px; }
.tool-notes ul { margin: 0; padding-left: 18px; }
.tool-notes li { margin: 4px 0; line-height: 1.6; }

.coupon-strip-wrap { padding: 0 0 10px; }
.strip-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; font-size: 12px; color: var(--muted); }
.strip-head span { color: #4a5058; font-weight: 600; }
.coupon-strip { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 1px 0 3px; scrollbar-width: none; }
.coupon-strip::-webkit-scrollbar { display: none; }
.strip-card {
  flex: 0 0 148px;
  height: 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2px;
  padding: 6px 9px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  scroll-snap-align: start;
  min-width: 0;
  overflow: hidden;
}
.strip-kind { display: none; }
.strip-card strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.25;
  white-space: normal;
}
.strip-card em { margin-top: auto; color: var(--brand); font-size: 11px; font-style: normal; font-weight: 600; }
.strip-all { justify-content: center; align-items: flex-start; background: #fafbfc; }






/* 首页 hero：旧版卡片的布局，装新版内容 */
.hero {
  background: linear-gradient(135deg, #fff5f4 0%, #ffffff 70%);
  border: 1px solid #ffe3e0;
  border-radius: var(--radius);
  padding: 18px 18px 14px;
  margin-bottom: 18px;
}
.hero h1 { font-size: 22px; margin: 0 0 4px; }
.hero p { margin: 0 0 10px; font-size: 12px; color: #5b626b; }
.hero .search-tabs { margin-top: 6px; }

.campaign-countdown { margin-left: auto; color: #fff; font-size: 12px; white-space: nowrap; }
.campaign-countdown strong { font-size: 16px; }

.coupon-quick { margin: 0 0 18px; }
.quick-head { margin-bottom: 4px; color: var(--muted); font-size: 12px; }
.quick-head span { color: #4a5058; font-weight: 600; }
.quick-row { display: flex; gap: 14px; align-items: center; overflow-x: auto; white-space: nowrap; padding: 2px 0 3px; scrollbar-width: none; }
.quick-row::-webkit-scrollbar { display: none; }
.quick-item { display: inline-flex; align-items: center; gap: 6px; flex: none; color: #4a5058; font-size: 13px; }
.quick-item span { border-bottom: 1px dashed #d9dde3; }
.quick-thumb { width: 30px; height: 30px; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); }

@media (max-width: 560px) {
  .platform-grid { grid-template-columns: repeat(2, 1fr); }
  .campaign-countdown { font-size: 11px; }
  .campaign-countdown strong { font-size: 14px; }
}

@media (max-width: 560px) {
  .header-inner { flex-wrap: wrap; height: auto; padding: 8px 0 6px; row-gap: 2px; }
  .logo { flex: 0 0 100%; font-size: 18px; }
  .nav { width: 100%; gap: 16px; font-size: 13px; }
}
.quick-row { height: 34px; align-items: center; }

/* 双11 领券：让它看起来就是可点的 */
.quick-row { height: 40px; min-height: 40px; align-items: center; gap: 8px; }
.quick-item {
  padding: 5px 10px;
  border: 1px solid #ffd6d1;
  border-radius: 999px;
  background: #fff8f7;
  color: #c82318;
  font-size: 12px;
  gap: 5px;
}
.quick-item span { border-bottom: 0; }
.quick-go { color: #e1251b; font-style: normal; font-weight: 700; }
.quick-thumb { width: 24px; height: 24px; }

/* 购物页：平台会场 + 锚点导航 + 回到顶部 */
html { scroll-behavior: smooth; }
.shopping-layout { display: grid; grid-template-columns: 92px 1fr; gap: 18px; }
.anchor-nav { position: sticky; top: 78px; align-self: start; display: flex; flex-direction: column; gap: 4px; }
.anchor-nav a { padding: 6px 8px; border-left: 2px solid var(--line); color: var(--muted); font-size: 12px; }
.anchor-nav a:hover { color: var(--brand); border-left-color: var(--brand); }
.shopping-main .section { margin-top: 0; }
#preview { scroll-margin-top: 90px; }

.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--brand);
  font-size: 18px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.back-top.show { opacity: 1; pointer-events: auto; }

.preview-hero { padding: 8px 0 4px; }
.preview-date { display: inline-block; margin-bottom: 2px; color: var(--brand); font-size: 26px; font-weight: 700; }
.preview-hero h1 { margin: 0 0 4px; font-size: 24px; }
.preview-hero p { margin: 0 0 8px; }
.back-link { color: var(--muted); font-size: 12px; }

@media (max-width: 560px) {
  .shopping-layout { grid-template-columns: 1fr; gap: 10px; }
  .anchor-nav { position: static; flex-direction: row; gap: 12px; padding-bottom: 4px; }
  .anchor-nav a { border-left: 0; border-bottom: 2px solid var(--line); padding: 4px 2px; }
  .back-top { right: 14px; bottom: 16px; }
}

.quick-head .quick-title { color: var(--brand); font-size: 17px; font-weight: 700; letter-spacing: 1px; }

/* 购物页：京东 2 列，外卖/团购 3 列，带小图 */
#jd .platform-grid { grid-template-columns: repeat(2, 1fr); }
#life .platform-grid { grid-template-columns: repeat(3, 1fr); }
#jd, #life, #products { scroll-margin-top: 90px; }
.platform-card.with-thumb { flex-direction: row; align-items: center; gap: 10px; padding: 10px; }
.platform-thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; flex: none; background: #f5f6f8; }
.platform-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.platform-body strong { font-size: 14px; line-height: 1.3; }
.platform-body span { font-size: 12px; }

@media (max-width: 560px) {
  #jd .platform-grid, #life .platform-grid { grid-template-columns: 1fr; }
}

a.campaign-banner { text-decoration: none; color: #fff; }
.campaign-go {
  margin-left: 10px;
  padding: 3px 9px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.platform-thumb-btn { flex: none; width: 56px; height: 56px; padding: 0; border: 0; background: none; cursor: zoom-in; }
.platform-thumb-btn .platform-thumb { display: block; }
.platform-body { flex: 1; min-width: 0; color: inherit; text-decoration: none; display: flex; flex-direction: column; gap: 2px; }
.platform-body em { color: var(--brand); font-size: 12px; font-style: normal; font-weight: 600; margin-top: 2px; }
.platform-body:hover strong { color: var(--brand); }

.image-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, .72);
}
.image-modal[hidden] { display: none !important; }
.image-modal img { max-width: 92vw; max-height: 86vh; border-radius: 10px; background: #fff; }
.image-modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: #222;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.shopping-layout { grid-template-columns: 112px 1fr; }
.anchor-nav a { white-space: nowrap; font-size: 11px; }
@media (max-width: 560px) {
  .shopping-layout { grid-template-columns: 1fr; }
  .anchor-nav a { white-space: normal; font-size: 12px; }
}

.shopping-layout { grid-template-columns: 140px 1fr; }
.anchor-nav a { white-space: nowrap; font-size: 12px; }
@media (max-width: 560px) {
  .shopping-layout { grid-template-columns: 1fr; }
  .anchor-nav a { white-space: normal; }
}

/* 比价结果卡 */
.compare-card { margin-top: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.compare-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid #f0f1f3;
}
.compare-row:last-child { border-bottom: 0; }
.compare-label { flex: none; min-width: 72px; color: #4a5058; font-size: 13px; font-weight: 600; }
.compare-shop { flex: 1; min-width: 0; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.compare-price { flex: none; color: var(--brand); font-size: 14px; font-weight: 700; white-space: nowrap; }
.compare-go { flex: none; padding: 5px 10px; font-size: 12px; }
.compare-note { flex: 1; min-width: 0; color: var(--muted); font-size: 12px; text-align: right; }
.compare-row.best { background: #fff8ee; }
@media (max-width: 560px) {
  .compare-label { min-width: 60px; }
  .compare-shop { display: none; }
}

.article-search { margin: 0 0 14px; }

/* 文章阅读页 V2 */
.article-page { max-width: 720px; margin: 0 auto; padding: 34px 44px 42px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.article-page h1 { font-size: 28px; line-height: 1.35; font-weight: 700; margin: 10px 0 14px; letter-spacing: -.2px; }
.article-meta { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 13px; line-height: 20px; color: var(--muted); margin-bottom: 18px; }
.article-meta .author { color: #4a5058; font-weight: 600; }
.article-meta .dot { color: #c9ced6; }
.avatar { width: 36px; height: 36px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 15px; line-height: 1; }
.avatar-sm { width: 24px; height: 24px; font-size: 12px; }
.article-lede { margin: 0 0 24px; padding: 2px 0 2px 14px; border-left: 3px solid var(--brand); font-size: 18px; line-height: 1.75; color: #4a5058; }
.article-toc { margin: 0 0 22px; background: #fafbfc; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; font-size: 13px; }
.article-toc summary { cursor: pointer; color: #4a5058; font-weight: 600; }
.article-toc-list { display: flex; flex-direction: column; gap: 5px; margin-top: 8px; }
.article-toc-list a { color: var(--muted); }
.article-page .prose { font-size: 17px; line-height: 1.9; color: #26282c; max-width: 100%; overflow-wrap: anywhere; word-break: break-word; }
.article-page .prose p { margin: 0 0 1.1em; }
.article-page .prose h2 { font-size: 21px; line-height: 1.5; font-weight: 700; color: #111827; margin: 40px 0 14px; padding-left: 12px; border-left: 4px solid var(--brand); scroll-margin-top: 72px; }
.article-page .prose h3 { font-size: 17.5px; line-height: 1.6; font-weight: 700; margin: 28px 0 10px; }
.article-page .prose h4 { font-size: 16px; font-weight: 700; margin: 22px 0 8px; color: #374151; }
.article-page .prose ul, .article-page .prose ol { margin: 0 0 1.1em; padding-left: 24px; }
.article-page .prose li { margin: 6px 0; }
.article-page .prose blockquote { margin: 22px 0; padding: 14px 18px; background: #fafafa; border-left: 3px solid var(--brand); border-radius: 0 8px 8px 0; color: #4a5058; font-size: 16px; line-height: 1.8; }
.article-page .prose img { max-width: 100% !important; height: auto !important; display: block; margin: 22px auto; border-radius: 8px; }
.article-page .prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.article-page .prose strong { font-weight: 700; color: #111827; }
.article-page .prose hr { border: 0; border-top: 1px dashed var(--line); margin: 30px 0; }
.article-page .prose code { background: #f3f4f6; padding: 1px 6px; border-radius: 4px; font-size: .9em; }
.article-page .prose pre { background: #f6f7f9; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; overflow-x: auto; margin: 18px 0; }
.article-page .prose pre code { background: none; padding: 0; }
.article-page .prose table { display: block; width: 100% !important; border-collapse: collapse; font-size: 14px; line-height: 1.6; overflow-x: auto; }
.article-page .prose th, .article-page .prose td { border: 1px solid var(--line) !important; padding: 9px 12px !important; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.article-page .prose th { background: #fafbfc; font-weight: 700; color: #111827; }
.article-page .prose td { color: #3f4650; }
.article-page .prose [class*="blk-"] { font-size: 15px; line-height: 1.8; border-radius: 10px; padding: 12px 14px; margin: 16px 0; }
.article-page .prose .blk-tip { background: #f0fdf4; border: 1px solid #bbf7d0; }
.article-page .prose .blk-warn { background: #fff7ed; border: 1px solid #fed7aa; }
.article-page .prose .blk-steps { padding-left: 0; list-style: none; }
.article-page .prose .blk-steps li { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; }
.article-page .prose .step-n { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--brand); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.article-page .disclaimer { margin-top: 28px; padding-top: 14px; border-top: 1px dashed var(--line); }
.post-actions { display: flex; gap: 10px; margin: 18px 0 22px; }
.post-actions .action { height: 38px; padding: 0 16px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: #4a5058; font-size: 13px; cursor: pointer; }
.post-actions .action:active { background: #f6f7f9; }
.author-card { display: flex; gap: 14px; align-items: flex-start; margin: 30px 0 0; padding: 18px; background: #fafbfc; border: 1px solid var(--line); border-radius: 12px; }
.author-card strong { font-size: 15px; }
.author-card p { margin: 4px 0 6px; font-size: 13px; line-height: 1.7; color: #5b626b; }
.author-main .muted { font-size: 12px; }
.related { max-width: 720px; margin: 28px auto 0; }
.related h2 { font-size: 17px; margin: 0 0 12px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.related-item { display: block; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.related-item time { font-size: 11px; color: var(--muted); }
.related-item strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 4px; font-size: 14px; line-height: 1.4; color: #26282c; }
@media (max-width: 760px) {
  .article-page { margin: 0 -16px; padding: 18px 16px 28px; border: 0; border-radius: 0; }
  .article-page h1 { font-size: 24px; }
  .article-page .prose { font-size: 16px; line-height: 1.85; }
  .article-page .prose h2 { font-size: 19px; margin: 32px 0 12px; }
  .article-page .prose h3 { font-size: 16.5px; margin: 24px 0 8px; }
  .article-page .prose th, .article-page .prose td { padding: 7px 8px !important; font-size: 13px; }
  .related { margin: 24px 0 0; }
  .related-grid { grid-template-columns: 1fr; }
}

.author-card .author-main { flex: 1; min-width: 0; }
.author-qr { width: 104px; height: 104px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); flex: none; }
@media (max-width: 560px) {
  .author-qr { width: 82px; height: 82px; }
}

/* 文章目录：直接展开，不要求用户先点 */
.article-toc { margin: 0 0 22px; background: #fafbfc; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: 13px; }
.article-toc-title { display: block; margin-bottom: 8px; color: #4a5058; font-size: 13px; }
.article-toc-list { display: flex; flex-direction: column; gap: 6px; }
.article-toc-list a { color: #5b626b; }
.article-toc-list a:hover { color: var(--brand); }

/* 作者卡内的复制/分享 */
.author-actions { display: flex; gap: 8px; margin-top: 10px; }
.author-actions .action { height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: #4a5058; font-size: 12px; cursor: pointer; }
.author-actions .action:active { background: #f6f7f9; }

/* 顶部导航居中（桌面） */
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.header-inner .logo { justify-self: start; }
.header-inner .nav { justify-self: center; }
@media (max-width: 560px) {
  .header-inner { display: flex; flex-wrap: wrap; }
  .header-inner .logo { flex: 0 0 100%; }
  .header-inner .nav { width: 100%; justify-self: auto; }
}

/* 目录：默认折叠，展开后是编号目录 */
.article-toc { margin: 0 0 24px; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.article-toc summary {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px; cursor: pointer; list-style: none;
  color: #4a5058; font-size: 14px; font-weight: 600;
}
.article-toc summary::-webkit-details-marker { display: none; }
.article-toc summary::before { content: "▸"; color: var(--brand); font-size: 12px; transition: transform .15s; }
.article-toc[open] summary::before { transform: rotate(90deg); }
.article-toc-count { margin-left: auto; color: var(--muted); font-size: 12px; font-weight: 400; }
.article-toc-list { display: block; counter-reset: toc; padding: 0 14px 10px; border-top: 1px dashed var(--line); }
.article-toc-list a {
  display: flex; align-items: baseline; gap: 10px;
  padding: 8px 0; border-bottom: 1px dashed #f0f1f3;
  color: #5b626b; font-size: 13px; line-height: 1.5;
}
.article-toc-list a:last-child { border-bottom: 0; }
.article-toc-list a::before {
  counter-increment: toc;
  content: counter(toc, decimal-leading-zero);
  flex: none; width: 22px; color: var(--brand); font-size: 11px; font-weight: 700;
}
.article-toc-list a:hover { color: var(--brand); }

/* 移动端恢复一行的导航布局，并修复文章页横向溢出 */
@media (max-width: 560px) {
  .header-inner { display: flex; flex-wrap: nowrap; height: 56px; padding: 0; justify-content: space-between; }
  .header-inner .logo { flex: none; font-size: 17px; }
  .header-inner .nav { width: auto; gap: 8px; font-size: 12px; overflow-x: auto; justify-content: flex-end; }
  .article-page { width: 100%; max-width: 100%; margin: 0; padding: 18px 16px 28px; overflow-wrap: anywhere; }
  .article-page .prose { max-width: 100%; overflow-x: hidden; }
  .article-page .prose table { max-width: 100%; }
}

.author-actions .action.liked { color: var(--brand); border-color: #ffd6d1; background: #fff8f7; }

@media (max-width: 760px) {
  .container { max-width: 100vw; padding-left: 12px; padding-right: 12px; }
  .header-inner { display: flex; flex-wrap: nowrap; height: 56px; padding: 0; justify-content: space-between; }
  .header-inner .logo { flex: none; font-size: 17px; }
  .header-inner .nav { flex: 1; min-width: 0; width: auto; justify-content: flex-end; gap: 8px; font-size: 12px; overflow-x: auto; }
  .article-page { width: auto; max-width: 100%; margin: 0; padding: 18px 14px 28px; overflow-wrap: anywhere; }
  .article-page h1 { overflow-wrap: anywhere; }
  .article-page .prose { max-width: 100%; overflow-wrap: anywhere; word-break: break-word; }
}

/* 手机端最终版：Logo 一行，菜单一行，不溢出 */
@media (max-width: 760px) {
  body { overflow-x: hidden; }
  .container { max-width: 100vw; padding-left: 12px; padding-right: 12px; }
  .header-inner { display: flex; flex-wrap: wrap; height: auto; padding: 8px 0 6px; row-gap: 3px; }
  .header-inner .logo { flex: 0 0 100%; font-size: 17px; }
  .header-inner .nav { flex: 1 0 100%; width: 100%; justify-content: space-between; gap: 0; font-size: 13px; overflow: visible; }
  .header-inner .nav a { white-space: nowrap; }
}

.footer-share {
  margin: 8px 0 4px;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #4a5058;
  font-size: 12px;
  cursor: pointer;
}
.footer-share:active { background: #f6f7f9; }

.footer-share {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--brand);
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

/* 页脚分享：文字链接大小，覆盖全局 button 样式 */
.footer-share {
  display: inline;
  width: auto;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--brand);
  font: inherit;
  font-size: 12px;
  font-weight: 400;
  line-height: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  vertical-align: baseline;
}
.footer-share:hover { background: transparent; color: var(--brand-dark); }
.footer-links { flex-wrap: wrap; align-items: center; }

/* 手机菜单：第二行居中，不贴边 */
@media (max-width: 760px) {
  .header-inner .nav {
    justify-content: center;
    gap: 20px;
    padding: 2px 4px 0;
    font-size: 13px;
  }
}

.article-page .prose .blk-card { background: #fff8f7; border: 1px solid #ffd6d1; padding: 12px 14px; }

/* 价格走势图（商品详情页） */
.price-lowest { margin: 8px 0 0; font-size: 13px; color: var(--text); }
.price-lowest strong { color: var(--brand); font-weight: 700; }
.price-chart { margin-top: 16px; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; background: var(--card); }
.price-chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.price-chart-title { font-size: 13px; font-weight: 600; color: var(--text); }
.price-chart svg { display: block; width: 100%; height: auto; }
.price-chart .chart-label { font-size: 11px; fill: var(--muted); }
