:root {
  --ink: #1d1d1f;
  --ink-2: #3a3a3c;
  --muted: #6e6e73;
  --muted-2: #86868b;
  --line: #e8e8ed;
  --bg: #ffffff;
  --surface: #f5f5f7;
  --brand: #0a6cff;
  --brand-dark: #0049b7;
  --brand-soft: #eef4ff;
  --radius: 14px;
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 20px;
  height: 62px; display: flex; align-items: center; gap: 26px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: -.2px; white-space: nowrap; }
.logo-mark {
  width: 30px; height: 30px; border-radius: 9px; background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700;
}
.logo small { display: block; font-size: 11px; font-weight: 400; color: var(--muted-2); letter-spacing: .3px; }
.nav { display: flex; align-items: center; gap: 22px; margin-left: 6px; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { font-size: 14px; color: var(--ink-2); white-space: nowrap; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--brand); }
.nav a.active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 500; }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.search-mini { position: relative; }
.search-mini input {
  width: 190px; height: 36px; border-radius: 18px; border: 1px solid var(--line);
  background: var(--surface); padding: 0 14px 0 34px; font-size: 13px; color: var(--ink);
  outline: none; font-family: var(--font); transition: .2s;
}
.search-mini input:focus { width: 220px; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(10,108,255,.1); }
.search-mini .ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 13px; color: var(--muted-2); }
.menu-toggle { display: none; border: none; background: none; font-size: 20px; cursor: pointer; color: var(--ink); padding: 4px 6px; }

/* ===== Hero ===== */
.hero { padding: 54px 0 34px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg,#fbfbfd 0%,#fff 100%); }
.hero h1 { font-size: 38px; line-height: 1.25; letter-spacing: -1px; margin: 0 0 14px; font-weight: 600; }
.hero h1 .nw { white-space: nowrap; }
.hero p { font-size: 17px; color: var(--muted); margin: 0 0 24px; max-width: 720px; }
.hero-search { display: flex; max-width: 520px; gap: 10px; }
.hero-search input {
  flex: 1; height: 48px; border-radius: 12px; border: 1px solid var(--line);
  padding: 0 16px; font-size: 15px; font-family: var(--font); outline: none;
}
.hero-search input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(10,108,255,.1); }
.hero-search button {
  height: 48px; padding: 0 22px; border: none; border-radius: 12px; background: var(--brand);
  color: #fff; font-size: 15px; font-family: var(--font); cursor: pointer; font-weight: 500;
}
.hero-search button:hover { background: var(--brand-dark); }
.hero-tags { margin-top: 16px; font-size: 13px; color: var(--muted-2); display: flex; flex-wrap: wrap; gap: 8px; }
.hero-tags a { padding: 4px 10px; background: var(--surface); border-radius: 20px; }
.hero-tags a:hover { background: var(--brand-soft); color: var(--brand); }

/* ===== Sections ===== */
.section { padding: 40px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 22px; gap: 14px; }
.section-head h2 { font-size: 22px; margin: 0; letter-spacing: -.4px; font-weight: 600; }
.section-head .more { font-size: 13px; color: var(--brand); }
.section-head p { margin: 6px 0 0; font-size: 14px; color: var(--muted); }

/* ===== Cards ===== */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  background: #fff; transition: .2s; display: flex; flex-direction: column; height: 100%;
}
.card:hover { border-color: #d4d4dc; transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,.06); }
.card .cat { font-size: 12px; color: var(--brand); font-weight: 500; margin-bottom: 10px; letter-spacing: .2px; }
.card h3 { font-size: 17px; line-height: 1.45; margin: 0 0 10px; letter-spacing: -.2px; font-weight: 600; }
.card p { font-size: 14px; color: var(--muted); margin: 0 0 16px; line-height: 1.65; flex: 1; }
.card .meta { font-size: 12px; color: var(--muted-2); display: flex; gap: 12px; align-items: center; }

.card-feature { grid-column: span 2; background: var(--surface); border-color: transparent; }
.card-feature h3 { font-size: 24px; }
.card-feature p { font-size: 15px; }

/* ===== Category tiles ===== */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cat-tile {
  border: 1px solid var(--line); border-radius: 12px; padding: 18px; background: #fff; transition: .2s;
}
.cat-tile:hover { border-color: var(--brand); background: var(--brand-soft); }
.cat-tile .ico { font-size: 22px; margin-bottom: 10px; }
.cat-tile h3 { font-size: 15px; margin: 0 0 6px; font-weight: 600; }
.cat-tile p { font-size: 12.5px; color: var(--muted); margin: 0; line-height: 1.55; }

/* ===== Article ===== */
.article-wrap { display: grid; grid-template-columns: minmax(0,1fr) 280px; gap: 48px; padding: 36px 0 60px; }
.breadcrumb { font-size: 12.5px; color: var(--muted-2); margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb a:hover { color: var(--brand); }
.article-head h1 { font-size: 34px; line-height: 1.3; letter-spacing: -.8px; margin: 0 0 16px; font-weight: 600; }
.article-meta { font-size: 13px; color: var(--muted-2); display: flex; flex-wrap: wrap; gap: 14px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.article-meta .tag { color: var(--brand); }

.prose { font-size: 16.5px; line-height: 1.85; color: var(--ink-2); padding: 26px 0 10px; }
.prose h2 { font-size: 22px; margin: 38px 0 14px; color: var(--ink); letter-spacing: -.3px; font-weight: 600; padding-left: 12px; border-left: 4px solid var(--brand); line-height: 1.4; }
.prose h3 { font-size: 18px; margin: 28px 0 10px; color: var(--ink); font-weight: 600; }
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose code { background: var(--surface); padding: 2px 6px; border-radius: 5px; font-size: 14px; font-family: ui-monospace, Menlo, Consolas, monospace; }
.prose blockquote { margin: 22px 0; padding: 14px 18px; background: var(--brand-soft); border-left: 4px solid var(--brand); border-radius: 0 10px 10px 0; color: var(--ink-2); }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose hr { border: none; border-top: 1px solid var(--line); margin: 34px 0; }
.prose a { color: var(--brand); border-bottom: 1px solid rgba(10,108,255,.3); }
.prose a:hover { border-bottom-color: var(--brand); }

/* 表格 */
.table-wrap { overflow-x: auto; margin: 22px 0; -webkit-overflow-scrolling: touch; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 460px; }
.prose thead th {
  background: var(--surface); text-align: left; font-weight: 600; color: var(--ink);
  padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.prose tbody td { padding: 11px 14px; border-bottom: 1px solid var(--line); color: var(--ink-2); vertical-align: top; }
.prose tbody tr:last-child td { border-bottom: none; }
.prose tbody tr:hover { background: #fafafa; }

/* 代码块 */
.prose pre {
  background: #1d1d1f; color: #f2f2f7; padding: 18px 20px; border-radius: 12px;
  overflow-x: auto; margin: 22px 0; font-size: 13.5px; line-height: 1.7;
}
.prose pre code { background: none; color: inherit; padding: 0; font-size: inherit; }

.article-foot { margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--line); }
.notice { background: var(--surface); border-radius: 12px; padding: 16px 18px; font-size: 13.5px; color: var(--muted); line-height: 1.7; }
.notice strong { color: var(--ink-2); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; }
.pager a { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-size: 13.5px; transition: .2s; }
.pager a:hover { border-color: var(--brand); background: var(--brand-soft); }
.pager .lbl { display: block; font-size: 12px; color: var(--muted-2); margin-bottom: 4px; }
.pager .next { text-align: right; }

.sidebar { position: sticky; top: 84px; align-self: start; }
.side-box { border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin-bottom: 18px; }
.side-box h4 { font-size: 14px; margin: 0 0 14px; font-weight: 600; letter-spacing: .2px; }
.side-box ul { list-style: none; margin: 0; padding: 0; }
.side-box li { padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; line-height: 1.55; }
.side-box li:last-child { border-bottom: none; padding-bottom: 0; }
.side-box li a:hover { color: var(--brand); }
.side-box .num { color: var(--muted-2); font-size: 12px; margin-right: 6px; }

/* ===== List page ===== */
.page-head { padding: 44px 0 26px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: 30px; margin: 0 0 10px; letter-spacing: -.6px; font-weight: 600; }
.page-head p { font-size: 15px; color: var(--muted); margin: 0; max-width: 780px; }
.list-wrap { padding: 32px 0 60px; display: grid; grid-template-columns: minmax(0,1fr) 280px; gap: 48px; }
.post-item { display: block; padding: 22px 0; border-bottom: 1px solid var(--line); }
.post-item:hover h3 { color: var(--brand); }
.post-item h3 { font-size: 19px; margin: 0 0 8px; letter-spacing: -.3px; transition: .15s; font-weight: 600; }
.post-item p { font-size: 14px; color: var(--muted); margin: 0 0 10px; }
.post-item .meta { font-size: 12px; color: var(--muted-2); display: flex; gap: 12px; flex-wrap: wrap; }
.empty { padding: 60px 0; text-align: center; color: var(--muted-2); }
.empty .big { font-size: 40px; margin-bottom: 12px; }

/* ===== 产品栏目 ===== */
.filter-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.chip { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 13.5px; color: var(--ink-2); background: #fff; transition: .15s; }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }

.product-list { padding: 32px 0 8px; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pcard {
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  overflow: hidden; display: flex; flex-direction: column; transition: .2s;
}
.pcard:hover { border-color: #d4d4dc; transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,.07); }
.p-media {
  aspect-ratio: 4 / 3; background: var(--surface); display: flex; align-items: center;
  justify-content: center; overflow: hidden; border-bottom: 1px solid var(--line);
}
.p-media img { width: 100%; height: 100%; object-fit: cover; }
.p-media-icon { font-size: 58px; }
.pcard-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.pcard-cat { font-size: 12px; color: var(--brand); font-weight: 500; margin-bottom: 8px; letter-spacing: .2px; }
.pcard h3 { font-size: 16.5px; margin: 0 0 8px; font-weight: 600; line-height: 1.45; letter-spacing: -.2px; }
.pcard p { font-size: 13.5px; color: var(--muted); margin: 0 0 14px; line-height: 1.6; flex: 1; }
.pcard-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pcard-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.p-price { font-size: 20px; font-weight: 700; color: #e02020; letter-spacing: -.3px; }
.p-price i { font-style: normal; font-size: 13.5px; margin-right: 1px; }
.p-price-old { font-size: 13px; color: var(--muted-2); text-decoration: line-through; }
.p-price-none { font-size: 14.5px; font-weight: 500; color: var(--muted); }
.p-stock { font-size: 12.5px; color: var(--muted-2); }
.pcard-featured { border-color: #ffd9b0; background: linear-gradient(180deg, #fffaf3 0%, #fff 60%); }

/* 产品详情 */
.product-wrap { padding: 32px 0 60px; }
.product-hero { display: grid; grid-template-columns: 340px minmax(0,1fr); gap: 36px; padding: 8px 0 28px; }
.p-hero-media {
  width: 100%; aspect-ratio: 1 / 1; border: 1px solid var(--line); border-radius: 16px;
  background: var(--surface); display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.p-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.p-hero-media.p-media-icon { font-size: 108px; }
.p-hero-info h1 { font-size: 30px; margin: 0 0 10px; letter-spacing: -.6px; font-weight: 600; line-height: 1.3; }
.p-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; }
.p-tag { font-size: 12.5px; color: var(--muted); background: var(--surface); border-radius: 6px; padding: 3px 9px; }
.p-summary { font-size: 15px; color: var(--muted); margin: 0; line-height: 1.7; }
.p-price-row { display: flex; align-items: baseline; gap: 14px; margin: 16px 0 18px; flex-wrap: wrap; }
.p-price-row .p-price { font-size: 32px; }
.p-price-row .p-price-old { font-size: 15px; }
.p-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 22px; }
.buy-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 30px; border-radius: 999px;
  background: linear-gradient(135deg, #ff9f1a 0%, #ff5e3a 55%, #f5222d 100%);
  color: #fff; font-size: 16px; font-weight: 700; letter-spacing: .3px;
  box-shadow: 0 8px 20px rgba(245,61,45,.32); transition: .16s;
}
.buy-btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(245,61,45,.42); }
.buy-btn .buy-arrow { transition: transform .16s; }
.buy-btn:hover .buy-arrow { transform: translateX(4px); }
.btn-line {
  display: inline-flex; align-items: center; height: 48px; padding: 0 22px;
  border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); font-size: 14.5px;
}
.btn-line:hover { border-color: var(--brand); color: var(--brand); }
.p-spec { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.p-spec > div { background: #fff; padding: 11px 14px; font-size: 13.5px; display: flex; gap: 10px; }
.p-spec span { color: var(--muted-2); flex: 0 0 68px; }
.p-spec b { font-weight: 500; }
.p-spec b.is-out { color: #c62828; }
.pay-note-row b.is-out { color: #c62828; }

/* 缺货时按钮不可点：不假装能买，也避免白收一笔钱 */
.buy-btn.disabled {
  background: #d8d8dd; color: #fff; cursor: not-allowed; pointer-events: none;
  box-shadow: none; border-color: transparent;
}
.p-related { margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line); }
.p-related h2 { font-size: 20px; margin: 0 0 18px; font-weight: 600; letter-spacing: -.3px; }
.search-sub { font-size: 16px; margin: 24px 0 12px; font-weight: 600; }

/* ===== 订单确认页 / 收银台跳转页 ===== */
.pay-wrap { max-width: 720px; margin: 0 auto; padding: 44px 0 60px; }
.pay-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 28px 24px; box-shadow: 0 6px 24px rgba(0, 0, 0, .04);
}
.pay-head { margin-bottom: 22px; }
.pay-head h1 { font-size: 26px; margin: 0 0 8px; font-weight: 600; letter-spacing: -.5px; }
.pay-head p { margin: 0; font-size: 14px; color: var(--muted); }

.pay-item {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 16px; align-items: center;
  padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  margin-bottom: 18px;
}
.pay-item-media { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: #fff; }
.pay-item-media img { width: 100%; height: 100%; object-fit: cover; }
.pay-item-icon { display: flex; align-items: center; justify-content: center; font-size: 30px; }
.pay-item-cat { font-size: 12.5px; color: var(--muted-2); margin-bottom: 2px; }
.pay-item-info h2 { font-size: 16.5px; margin: 0 0 4px; font-weight: 600; letter-spacing: -.2px; }
.pay-item-info p { margin: 0; font-size: 13.5px; color: var(--muted); }
.pay-item-price { font-size: 24px; font-weight: 700; color: #f5222d; letter-spacing: -.5px; white-space: nowrap; }
.pay-item-price span { display: block; font-size: 12px; font-weight: 400; color: var(--muted-2); text-align: right; }

.pay-alert {
  background: #fff4f2; border: 1px solid #ffd9d2; color: #c62828;
  border-radius: 10px; padding: 11px 14px; font-size: 13.5px; margin-bottom: 16px;
}
.pay-form { margin: 0; }
.pay-form label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; }
.pay-form label b { color: #f5222d; }
.pay-form input {
  width: 100%; height: 46px; padding: 0 14px; font-size: 15px; font-family: inherit;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
.pay-form input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.pay-form input:disabled { background: var(--surface); color: var(--muted-2); }
.pay-hint { font-size: 12.5px; color: var(--muted-2); margin: 8px 0 16px; }
.pay-submit {
  display: block; width: 100%; height: 50px; border: none; cursor: pointer;
  border-radius: 12px; background: var(--brand); color: #fff;
  font-size: 16.5px; font-weight: 700; letter-spacing: .3px; font-family: inherit;
  box-shadow: 0 8px 20px rgba(10, 108, 255, .28); transition: .16s;
}
.pay-submit:hover { background: var(--brand-dark); transform: translateY(-1px); }
.pay-submit:disabled { background: #c7c7cc; box-shadow: none; cursor: not-allowed; transform: none; }

.pay-note { margin-top: 20px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.pay-note-row { display: flex; gap: 14px; padding: 11px 14px; font-size: 13.5px; border-bottom: 1px solid var(--line); }
.pay-note-row:last-child { border-bottom: none; }
.pay-note-row span { flex: 0 0 76px; color: var(--muted-2); }
.pay-note-row b { font-weight: 500; }

.pay-offline { margin-top: 18px; background: var(--surface); border-radius: 12px; padding: 18px; }
.pay-offline p { margin: 0 0 10px; font-size: 14px; color: var(--ink-2); }
.pay-offline strong { color: var(--ink); }
.pay-offline .btn-line { background: #fff; margin-top: 4px; }

.pay-tips { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); line-height: 1.75; }
.pay-tips strong { color: var(--ink-2); }
.pay-tips a { color: var(--brand); }
.pay-back { margin-top: 18px; text-align: center; }
.pay-back .btn-line { background: #fff; }

/* 跳转收银台 */
.go-card { text-align: center; }
.go-head { padding: 6px 0 18px; }
.go-head h1 { font-size: 22px; margin: 14px 0 6px; font-weight: 600; }
.go-head p { margin: 0; font-size: 13.5px; color: var(--muted); }
.go-spin {
  width: 38px; height: 38px; margin: 0 auto; border-radius: 50%;
  border: 3px solid var(--brand-soft); border-top-color: var(--brand);
  animation: go-spin .8s linear infinite;
}
@keyframes go-spin { to { transform: rotate(360deg); } }
.go-card .pay-item { text-align: left; }
.go-card .pay-submit { margin-top: 8px; }

/* 支付结果 */
.pay-result { text-align: center; padding: 10px 0 22px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.pay-result-ico { font-size: 46px; line-height: 1; }
.pay-result h1 { font-size: 24px; margin: 12px 0 6px; font-weight: 600; letter-spacing: -.4px; }
.pay-result p { margin: 0; font-size: 14px; color: var(--muted); }
.pay-result.ok h1 { color: #16a34a; }
.pay-result.wait h1 { color: #d97706; }

@media (max-width: 640px) {
  .pay-wrap { padding: 26px 0 40px; }
  .pay-card { padding: 20px 18px; }
  .pay-item { grid-template-columns: 52px minmax(0, 1fr); }
  .pay-item-media { width: 52px; height: 52px; }
  .pay-item-price { grid-column: 1 / -1; text-align: right; }
  .pay-item-price span { display: inline; margin-left: 6px; }
}

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--line); background: #fafafa; padding: 40px 0 30px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; margin-bottom: 28px; }
.footer-grid h5 { font-size: 13px; margin: 0 0 12px; color: var(--ink); font-weight: 600; }
.footer-grid a { display: block; font-size: 13px; color: var(--muted); padding: 4px 0; }
.footer-grid a:hover { color: var(--brand); }
.footer-about p { font-size: 13px; color: var(--muted); margin: 10px 0 0; line-height: 1.7; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; font-size: 12.5px; color: var(--muted-2); }
.footer-bottom a:hover { color: var(--brand); }

/* ===== Responsive ===== */
@media (max-width: 1023px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .article-wrap, .list-wrap { grid-template-columns: minmax(0,1fr); gap: 30px; }
  .sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product-hero { grid-template-columns: 260px minmax(0,1fr); gap: 26px; }
  .card-feature { grid-column: span 2; }
}
@media (max-width: 767px) {
  .header-inner { height: 56px; gap: 12px; }
  .nav { display: none; }
  .menu-toggle { display: block; }
  .search-mini input { width: 132px; }
  .search-mini input:focus { width: 150px; }
  .hero { padding: 34px 0 26px; }
  .hero h1 { font-size: 24px; letter-spacing: -.5px; }
  /* 窄屏取消标题里的人工换行，交给浏览器自然折行；断点只落在标点处，不把词拆开 */
  .hero h1 .hero-br { display: none; }
  .hero p { font-size: 15px; }
  .hero-search { flex-direction: column; }
  .hero-search button { width: 100%; }
  .grid, .grid-2, .cat-grid, .product-grid { grid-template-columns: 1fr; }
  .product-hero { grid-template-columns: 1fr; }
  .p-hero-media { max-width: 320px; }
  .p-hero-info h1 { font-size: 24px; }
  .p-price-row .p-price { font-size: 27px; }
  .p-spec { grid-template-columns: 1fr; }
  .buy-btn, .btn-line { flex: 1 1 100%; }
  .card-feature { grid-column: span 1; }
  .card-feature h3 { font-size: 20px; }
  .article-head h1 { font-size: 25px; }
  .prose { font-size: 16px; }
  .prose h2 { font-size: 19px; }
  .sidebar { grid-template-columns: 1fr; }
  .pager { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .section { padding: 30px 0; }
  .page-head h1 { font-size: 24px; }
}

/* ===== 图片展示（文章封面 / 列表缩略图 / 正文插图） ===== */
.card-cover {
  margin: -22px -22px 16px;
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
  overflow: hidden; background: var(--surface); aspect-ratio: 16 / 9;
}
.card-cover img { width: 100%; height: 100%; object-fit: cover; }
.card-feature .card-cover { margin: -22px -22px 18px; }

.post-item.has-thumb { display: flex; gap: 18px; align-items: flex-start; }
.post-item.has-thumb .post-item-main { flex: 1; min-width: 0; }
.post-thumb {
  flex: none; width: 148px; height: 100px; object-fit: cover;
  border-radius: 10px; border: 1px solid var(--line); background: var(--surface);
}

.article-cover { margin: 0 0 26px; border-radius: 14px; overflow: hidden; background: var(--surface); }
.article-cover img { width: 100%; height: auto; max-height: 470px; object-fit: cover; }

.prose img { border-radius: 12px; margin: 22px 0; }

@media (max-width: 767px) {
  .post-thumb { width: 96px; height: 72px; border-radius: 8px; }
  .post-item.has-thumb { gap: 12px; }
  .article-cover { margin-bottom: 18px; border-radius: 10px; }
}

/* ===== 全站购买渠道大按钮（页头下方） ===== */
.buy-cta { padding: 20px 0 22px; background: var(--surface); border-bottom: 1px solid var(--line); }
.buy-cta__inner { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.buy-cta__btn {
  display: inline-block;
  padding: 20px 56px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 2px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(10, 108, 255, .32);
  transition: transform .15s ease, box-shadow .15s ease;
}
.buy-cta__btn:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(10, 108, 255, .42); color: #fff; }
.buy-cta__hint { font-size: 13px; color: var(--muted); }
@media (max-width: 767px) {
  .buy-cta { padding: 14px 0 16px; }
  .buy-cta__btn { padding: 16px 30px; font-size: 17px; letter-spacing: 1px; width: 100%; max-width: 340px; box-sizing: border-box; }
}
