/* =====================================================================
   内容型淘客系统 · 种草社区风主题（community / v1）
   视觉语言：暖白底色 / 珊瑚粉主色 / 大圆角柔光卡 / 双列瀑布流笔记
   - 商品卡服务端直出，Product / Offer / Review 结构化数据不受影响
   - 关键：.pd 网格竖卡；.pd-grid--inline 文章内横向条（已正确适配，不挤压）
   - 保留深色模式、响应式、无障碍 focus 与打印样式
   ===================================================================== */

:root {
  --bg: #fdf8f7;
  --paper: #ffffff;
  --paper-2: #fdf0f0;
  --paper-3: #f7e9e9;
  --ink: #2b2430;
  --ink-2: #6b5f6d;
  --ink-3: #a99aa8;
  --line: #f3e7e8;
  --line-2: #ecdadd;
  --accent: #ff5a7a;
  --accent-2: #ff8a5c;
  --accent-ink: #c92d4f;
  --accent-solid: #d63658;
  --accent-warm: #c95338;
  --grad: linear-gradient(135deg, var(--accent-solid), var(--accent-warm));
  --accent-soft: #fff0f3;
  --article: 860px;
  --price: #f0335c;
  --price-soft: #fff0f4;
  --coral: #ff8a5c;
  --tmall: #f0335c;
  --taobao: #ff8f3c;
  --warn: #f5a623;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 8px 28px rgba(214, 92, 118, .09);
  --shadow-hover: 0 18px 44px rgba(214, 92, 118, .18);
  --max: 1220px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17131a;
    --paper: #201a24;
    --paper-2: #2a202c;
    --paper-3: #342736;
    --ink: #f6eef4;
    --ink-2: #c3b2c1;
    --ink-3: #8c7d8c;
    --line: #332838;
    --line-2: #402f43;
    --accent-ink: #ff92a8;
    --accent-soft: #3a2430;
    --price-soft: #40232f;
    --shadow: 0 8px 28px rgba(0, 0, 0, .3);
    --shadow-hover: 0 18px 44px rgba(0, 0, 0, .45);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font);
  font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button, input { font-family: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.cm-wrap { max-width: var(--max); margin: 0 auto; padding-left: 22px; padding-right: 22px; }
.cm-main { padding-top: 30px; padding-bottom: 84px; }
.cm-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cm-skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--accent-solid); color: #fff; padding: 10px 18px; border-radius: 0 0 14px 0; }
.cm-skip:focus { left: 0; color: #fff; }

/* ---------- 矢量图标（不依赖 emoji / 特殊字体） ---------- */
.cm-icons { position: absolute; width: 0; height: 0; overflow: hidden; }
.cm-ico {
  display: inline-block; width: 1em; height: 1em; flex: none; vertical-align: -.15em;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.cm-ico--lg { width: 1.35em; height: 1.35em; }
.cm-ico--xl { width: 2.2em; height: 2.2em; }
.cm-ico--fill { fill: currentColor; stroke: none; }

/* ---------- 头图品牌栏 ---------- */
.cm-head { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.cm-head__inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.cm-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.cm-brand__ico {
  width: 38px; height: 38px; display: grid; place-items: center; color: #fff;
  background: var(--grad);
  border-radius: 12px; box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 40%, transparent);
}
.cm-brand__txt { display: flex; flex-direction: column; line-height: 1.2; }
.cm-brand__txt b { font-size: 18px; font-weight: 800; letter-spacing: -.4px; }
.cm-brand__txt small { font-size: 10.5px; color: var(--ink-3); letter-spacing: .5px; margin-top: 2px; }

.cm-nav { display: flex; gap: 22px; align-items: center; margin-left: 8px; }
.cm-nav a { font-size: 14.5px; color: var(--ink-2); white-space: nowrap; padding: 8px 0; font-weight: 600; position: relative; }
.cm-nav a:hover { color: var(--accent-ink); }
.cm-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 2px; height: 2px; background: var(--accent-solid); border-radius: 2px; transition: right .2s ease; }
.cm-nav a:hover::after { right: 0; }

.cm-search { margin-left: auto; display: flex; align-items: center; min-width: 0; width: min(300px, 32vw); background: var(--paper-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 5px 4px 16px; }
.cm-search:focus-within { border-color: var(--accent-ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.cm-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 13px; }
.cm-search input::placeholder { color: var(--ink-3); }
.cm-search button { flex: none; width: 34px; height: 34px; border: 0; border-radius: 50%; color: #fff; background: var(--grad); cursor: pointer; display: grid; place-items: center; }
.cm-search button:hover { transform: scale(1.06); }

.cm-menu-btn { display: none; margin-left: auto; width: 42px; height: 38px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--paper); cursor: pointer; }
.cm-menu-btn span { display: block; width: 19px; height: 2px; background: var(--ink-2); margin: 4px auto; border-radius: 2px; }
.cm-nav-mobile { display: none; flex-direction: column; padding: 8px 22px 18px; border-top: 1px solid var(--line); background: var(--paper); }
.cm-nav-mobile a { padding: 11px 4px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.cm-nav-mobile a:hover { color: var(--accent-ink); }
.cm-nav-mobile__hr { height: 1px; background: var(--line); margin: 10px 0 4px; }
.cm-nav-mobile__label { font-size: 11px; color: var(--ink-3); letter-spacing: 1px; padding: 6px 4px; }

/* 话题条 */
.cm-topics { background: var(--paper); border-bottom: 1px solid var(--line); }
.cm-topics__inner { display: flex; align-items: center; gap: 9px; min-height: 52px; overflow-x: auto; scrollbar-width: none; }
.cm-topics__inner::-webkit-scrollbar { display: none; }
.cm-topics__label { font-size: 12px; color: var(--ink-3); font-weight: 600; white-space: nowrap; margin-right: 2px; }
.cm-topics a { font-size: 12.5px; color: var(--ink-2); background: var(--paper-2); border-radius: 999px; padding: 5px 13px; white-space: nowrap; font-weight: 600; }
.cm-topics a:hover, .cm-topics a.is-all { background: var(--grad); color: #fff; }

/* ---------- 头图 ---------- */
.cm-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: center; padding: 44px 0 20px; }
.cm-hero__chip, .cm-listhero__chip {
  display: inline-block; font-size: 12px; font-weight: 700; color: var(--accent-ink); background: var(--accent-soft);
  padding: 5px 14px; border-radius: 999px; margin-bottom: 16px;
}
.cm-hero h1 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 800; line-height: 1.22; letter-spacing: -1.8px; margin: 0 0 16px; }
.cm-hero h1 span { position: relative; color: var(--accent-ink); }
.cm-hero h1 span::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 8px; background: var(--accent-soft); border-radius: 4px; z-index: -1; }
.cm-hero__desc { font-size: 15.5px; color: var(--ink-2); max-width: 480px; margin: 0 0 22px; }
.cm-hero__search { display: flex; gap: 8px; max-width: 440px; background: var(--paper); border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 5px 5px 20px; box-shadow: var(--shadow); }
.cm-hero__search:focus-within { border-color: var(--accent-ink); }
.cm-hero__search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 14px; }
.cm-hero__search button { flex: none; border: 0; border-radius: 999px; padding: 10px 22px; color: #fff; font-weight: 700; cursor: pointer; background: var(--grad); }
.cm-hero__search button:hover { box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 40%, transparent); }
.cm-hero__stats { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 13px; color: var(--ink-3); }
.cm-hero__stats b { color: var(--ink); font-size: 16px; }
.cm-hero__dot { color: var(--line-2); }
.cm-hero__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cm-hero__cards .pd { border-radius: 18px; box-shadow: var(--shadow-hover); }
.cm-hero__cards .pd__body { padding: 11px 12px 12px; }
.cm-hero__cards .pd__title { font-size: 12.5px; min-height: 36px; }
.cm-hero__cards .pd__meta, .cm-hero__cards .pd__reason, .cm-hero__cards .pd__tags, .cm-hero__cards .pd__badge { display: none; }
.cm-hero__cards .pd__price { font-size: 19px; }
.cm-hero__cards .pd__cta { padding: 5px 10px; font-size: 11.5px; }
.cm-hero__ph { grid-column: 1/-1; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 180px; border: 1.5px dashed var(--line-2); border-radius: 20px; color: var(--ink-3); font-size: 14px; }
.cm-hero__ph .cm-ico { color: var(--accent-ink); }

/* ---------- 区块通用 ---------- */
.cm-block { margin-top: 54px; }
.cm-block__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.cm-block__head h2 { font-size: 25px; font-weight: 800; letter-spacing: -.8px; margin: 0; line-height: 1.3; display: inline; }
.cm-block__emoji { display: inline-flex; width: 1em; height: 1em; margin-right: 6px; vertical-align: -.18em; color: var(--accent-ink); font-size: 22px; }
.cm-block__head p { margin: 6px 0 0; color: var(--ink-3); font-size: 13px; }
.cm-block__more { font-size: 13.5px; color: var(--accent-ink); font-weight: 700; white-space: nowrap; }
.cm-block__count { font-size: 12.5px; color: var(--ink-3); background: var(--paper); border: 1px solid var(--line); padding: 5px 12px; border-radius: 999px; white-space: nowrap; }
.cm-block--inpost { margin-top: 40px; }
.cm-fine { font-size: 12px; color: var(--ink-3); margin: 16px 0 0; }

/* ---------- 商品卡：网格竖卡 ---------- */
.pd-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.pd-grid--rec { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.pd {
  display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); transition: transform .22s cubic-bezier(.2,.7,.3,1), box-shadow .22s ease, border-color .22s;
}
.pd:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: color-mix(in srgb, var(--accent) 28%, transparent); }
.pd__media { position: relative; aspect-ratio: 1 / 1; background: var(--paper-2); overflow: hidden; }
.pd__media a { display: block; width: 100%; height: 100%; }
.pd__media img { width: 100%; height: 100%; object-fit: contain; display: block; padding: 14px; }
.pd__nopic { display: grid; place-items: center; height: 100%; font-size: 12px; color: var(--ink-3); }
.pd__rank, .pd__coupontag { position: absolute; top: 11px; font-size: 11px; font-weight: 700; line-height: 1; padding: 7px 11px; border-radius: 999px; }
.pd__rank { left: 11px; background: rgba(43, 36, 48, .8); color: #fff; }
.pd__coupontag { right: 11px; background: var(--grad); color: #fff; }
.pd__body { display: flex; flex-direction: column; gap: 8px; padding: 15px 16px 16px; flex: 1; min-width: 0; }
.pd__title { font-size: 14.5px; font-weight: 650; line-height: 1.5; margin: 0; min-height: 43px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pd__title a:hover { color: var(--accent-ink); }
.pd__meta { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 11.5px; color: var(--ink-3); }
.pd__flag { color: #fff; padding: 2px 9px; border-radius: 999px; font-size: 10.5px; font-weight: 700; flex-shrink: 0; }
.pd__flag.is-tmall { background: var(--tmall); }
.pd__flag.is-taobao { background: var(--taobao); }
.pd__flag.is-other { background: var(--ink-3); }
.pd__shop, .pd__sales { max-width: 110px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pd__sales { margin-left: auto; }
.pd__badge { margin: 0; font-size: 11.5px; color: var(--accent-ink); font-weight: 700; }
.pd__reason { margin: 0; font-size: 12px; color: var(--ink-2); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pd__tags { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; flex-wrap: wrap; }
.pd__tags li { font-size: 10.5px; color: var(--ink-3); background: var(--paper-2); border-radius: 999px; padding: 2px 9px; }
.pd__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 12px; }
.pd__priceline { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; min-width: 0; }
.pd__pricelabel { font-size: 11px; color: var(--ink-3); }
.pd__price { color: var(--price); font-size: 25px; font-weight: 800; line-height: 1.1; letter-spacing: -.8px; font-variant-numeric: tabular-nums; }
.pd__price i { font-size: 13px; font-style: normal; font-weight: 700; }
.pd__priceline del { font-size: 11.5px; color: var(--ink-3); }
.pd__cta { flex-shrink: 0; background: var(--grad); color: #fff; font-size: 12.5px; font-weight: 700; padding: 9px 16px; border-radius: 999px; white-space: nowrap; box-shadow: 0 4px 12px color-mix(in srgb, var(--accent-solid) 22%, transparent); transition: filter .18s ease, transform .18s ease; }
.pd__cta:hover { filter: brightness(.94); color: #fff; transform: translateY(-1px); }

/* ---------- 文章内内联商品卡：横向条（关键修复） ---------- */
.gd-inline { margin: 30px 0; }
.gd-inline__label { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; color: var(--accent-ink); background: var(--accent-soft); padding: 5px 14px; border-radius: 999px; margin: 0 0 12px; }
.gd-inline__label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pd-grid.pd-grid--inline { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.pd-grid--inline .pd { width: 100%; }
.pd-grid--inline .pd { flex-direction: row; align-items: stretch; border-radius: 18px; }
.pd-grid--inline .pd__media { width: 118px; flex: none; align-self: stretch; aspect-ratio: auto; min-height: 118px; }
.pd-grid--inline .pd__media img { padding: 10px; }
.pd-grid--inline .pd__rank { display: none; }
.pd-grid--inline .pd__coupontag { top: 8px; right: 8px; padding: 5px 9px; font-size: 10px; }
.pd-grid--inline .pd__body { padding: 13px 16px 14px; gap: 7px; }
.pd-grid--inline .pd__title { min-height: 0; font-size: 14.5px; line-height: 1.45; -webkit-line-clamp: 2; }
.pd-grid--inline .pd__meta { font-size: 10.5px; gap: 6px; }
.pd-grid--inline .pd__flag { padding: 1.5px 7px; font-size: 9.5px; }
.pd-grid--inline .pd__shop, .pd-grid--inline .pd__sales { max-width: 96px; }
.pd-grid--inline .pd__badge { margin: 0; align-self: flex-start; font-size: 10.5px; color: var(--accent-ink); background: var(--accent-soft); padding: 2px 9px; border-radius: 999px; }
.pd-grid--inline .pd__reason { font-size: 12px; -webkit-line-clamp: 1; }
.pd-grid--inline .pd__tags { display: none; }
.pd-grid--inline .pd__foot { padding-top: 8px; }
.pd-grid--inline .pd__price { font-size: 20px; }
.pd-grid--inline .pd__cta { padding: 7px 15px; font-size: 12px; background: var(--grad); }

@media (max-width: 480px) {
  .pd-grid--inline .pd__media { width: 92px; min-height: 92px; }
  .pd-grid--inline .pd__body { padding: 10px 12px 11px; }
  .pd-grid--inline .pd__reason, .pd-grid--inline .pd__badge { display: none; }
  .pd-grid--inline .pd__price { font-size: 17px; }
  .pd-grid--inline .pd__cta { padding: 6px 11px; font-size: 11px; }
}
@media (max-width: 360px) {
  .pd-grid--inline .pd__media { width: 78px; min-height: 78px; }
  .pd-grid--inline .pd__body { padding: 9px 10px 10px; gap: 5px; }
  .pd-grid--inline .pd__price { font-size: 16px; }
  .pd-grid--inline .pd__cta { padding: 5px 9px; font-size: 10.5px; }
}

/* ---------- 种草笔记瀑布流 ---------- */
.cm-notes { columns: 2; column-gap: 18px; }
.cm-note { break-inside: avoid; display: inline-block; width: 100%; margin: 0 0 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .22s cubic-bezier(.2,.7,.3,1), box-shadow .22s ease; }
.cm-note:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.cm-note__cover { display: block; position: relative; width: 100%; aspect-ratio: 16 / 10; background: var(--paper-2); overflow: hidden; }
.cm-note__cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.cm-note:hover .cm-note__cover img { transform: scale(1.05); }
.cm-note__coverph { display: grid; place-items: center; height: 100%; font-size: 46px; color: var(--accent-ink); background: linear-gradient(135deg, var(--accent-soft), var(--paper-2)); }
.cm-note__coverph .cm-ico { width: 1.6em; height: 1.6em; }
.cm-note__badge { position: absolute; left: 12px; bottom: 12px; font-size: 10.5px; font-weight: 700; color: #fff; background: rgba(255, 90, 122, .92); padding: 4px 11px; border-radius: 999px; backdrop-filter: blur(6px); }
.cm-note__body { padding: 15px 17px 16px; }
.cm-note__meta { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.cm-note__topic { font-size: 11.5px; font-weight: 700; color: var(--accent-ink); }
.cm-note__meta time { font-size: 11px; color: var(--ink-3); }
.cm-note__title { font-size: 17px; font-weight: 750; line-height: 1.45; margin: 0 0 8px; letter-spacing: -.3px; }
.cm-note__title a:hover { color: var(--accent-ink); }
.cm-note__lede { font-size: 12.5px; color: var(--ink-2); line-height: 1.65; margin: 0 0 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cm-note__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 11px; border-top: 1px solid var(--line); }
.cm-note__author { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink-3); }
.cm-note__avatar { width: 22px; height: 22px; display: inline-grid; place-items: center; border-radius: 50%; color: #fff; font-size: 10px; font-weight: 700; background: var(--grad); }
.cm-note__acts { display: inline-flex; align-items: center; gap: 10px; font-size: 11px; color: var(--ink-3); }
.cm-note__acts .cm-ico { font-size: 13px; color: var(--accent-ink); margin-right: 2px; }

/* 分页 */
.cm-pager { margin-top: 30px; display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.cm-pager a, .cm-pager span { display: inline-grid; place-items: center; min-width: 36px; height: 36px; padding: 0 10px; border-radius: 11px; font-size: 13px; background: var(--paper); border: 1px solid var(--line-2); color: var(--ink-2); }
.cm-pager a:hover { border-color: var(--accent-ink); color: var(--accent-ink); }
.cm-pager .current, .cm-pager .active { background: var(--accent-solid); color: #fff; border-color: var(--accent-ink); }

/* 空状态 */
.cm-empty { text-align: center; padding: 64px 20px; background: var(--paper); border: 1px dashed var(--line-2); border-radius: var(--radius); }
.cm-empty > span { font-size: 44px; }
.cm-empty > .cm-ico { width: 1em; height: 1em; font-size: 44px; color: var(--accent-ink); }
.cm-empty h3 { font-size: 18px; margin: 12px 0 6px; }
.cm-empty p { color: var(--ink-3); font-size: 13.5px; margin: 0; }
.cm-empty--sm { padding: 32px 20px; }

/* ---------- 面包屑 ---------- */
.cm-crumb { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-3); width: 100%; max-width: var(--article); margin: 0 auto 20px; flex-wrap: wrap; }
.cm-crumb a:hover { color: var(--accent-ink); }
.cm-crumb [aria-current] { color: var(--ink-2); }

/* ---------- 文章页：所有模块统一到 --article 宽度 ---------- */
.cm-post { width: 100%; max-width: var(--article); margin: 0 auto; }
.cm-posthead { text-align: center; margin: 0 0 30px; }
.cm-posthead__author { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 18px; }
.cm-posthead__avatar { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: #fff; font-weight: 700; background: var(--grad); }
.cm-posthead__who { display: flex; flex-direction: column; text-align: left; line-height: 1.35; }
.cm-posthead__who b { font-size: 13.5px; }
.cm-posthead__who small { font-size: 11px; color: var(--ink-3); }
.cm-posthead__follow { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: var(--accent-ink); background: var(--paper); border: 1px solid var(--accent-ink); border-radius: 999px; padding: 4px 13px; font-weight: 700; transition: background .18s ease, color .18s ease; }
.cm-posthead__follow:hover { background: var(--accent-solid); border-color: var(--accent-solid); color: #fff; }
.cm-posthead__topic a { font-size: 12.5px; font-weight: 700; color: var(--accent-ink); }
.cm-posthead h1 { font-size: clamp(27px, 3.6vw, 40px); font-weight: 800; line-height: 1.3; letter-spacing: -1px; margin: 12px 0 8px; }
.cm-posthead__sub { font-size: 15px; color: var(--ink-2); margin: 0 0 14px; }
.cm-posthead__facts { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-3); }
.cm-posthead__facts .cm-ico { color: var(--accent-ink); margin-right: 3px; }
.cm-conclusion__tag .cm-ico, .cm-conclusion__facts dt .cm-ico, .cm-faq h2 .cm-ico { margin-right: 3px; }

/* 一句话结论卡 */
.cm-conclusion { margin: 0 0 30px; background: linear-gradient(135deg, var(--accent-soft), var(--paper)); border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent); border-radius: var(--radius); padding: 22px 26px; box-shadow: var(--shadow); }
.cm-conclusion__tag { display: inline-block; font-size: 12px; font-weight: 800; color: #fff; background: var(--grad); padding: 4px 14px; border-radius: 999px; margin-bottom: 12px; }
.cm-conclusion__text { font-size: 16px; font-weight: 650; line-height: 1.7; margin: 0 0 14px; }
.cm-conclusion__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; margin: 0 0 12px; }
.cm-conclusion__facts > div { display: flex; gap: 8px; font-size: 13px; }
.cm-conclusion__facts dt { font-weight: 700; color: var(--accent-ink); flex-shrink: 0; }
.cm-conclusion__facts dd { margin: 0; color: var(--ink-2); }
.cm-conclusion__points { margin: 8px 0 0; padding-left: 20px; color: var(--ink-2); font-size: 13.5px; line-height: 1.9; }

/* 正文：单栏宽阅读 + 正文排版 */
.cm-content { margin: 0; font-size: 16px; line-height: 1.95; color: var(--ink); }
.cm-content h2 { font-size: 22px; font-weight: 800; margin: 38px 0 14px; padding-left: 14px; border-left: 4px solid var(--accent); line-height: 1.4; }
.cm-content h3 { font-size: 18px; font-weight: 750; margin: 28px 0 10px; }
.cm-content p { margin: 0 0 18px; }
.cm-content ul, .cm-content ol { padding-left: 24px; margin: 0 0 18px; }
.cm-content li { margin: 6px 0; }
.cm-content strong { color: var(--price); }
.cm-content img { border-radius: 12px; height: auto; }
.cm-content a { color: var(--accent-ink); text-decoration: underline; }

/* 标签 + 点赞栏 */
.cm-tags { margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 9px; }
.cm-tags a { font-size: 12.5px; color: var(--accent-ink); background: var(--accent-soft); padding: 5px 14px; border-radius: 999px; }
.cm-tags a:hover { background: var(--accent-solid); color: #fff; }
.cm-likebar { margin: 24px 0 0; display: flex; gap: 12px; }
.cm-like { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line-2); background: var(--paper); border-radius: 14px; padding: 12px; font-size: 14px; color: var(--ink-2); cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
.cm-like .cm-ico { color: var(--accent-ink); font-size: 17px; }
.cm-like:hover { border-color: var(--accent-ink); background: var(--accent-soft); transform: translateY(-2px); }
.cm-like:hover .cm-ico { fill: color-mix(in srgb, var(--accent-ink) 18%, transparent); }
.cm-like span { font-size: 12.5px; }

/* 问答 */
.cm-faq { margin: 42px 0 0; }
.cm-faq h2 { font-size: 22px; font-weight: 800; margin: 0 0 16px; }
.cm-faq__list { display: grid; gap: 10px; }
.cm-faq details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.cm-faq summary { padding: 14px 18px; font-size: 14.5px; font-weight: 650; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.cm-faq summary::-webkit-details-marker { display: none; }
.cm-faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  background: linear-gradient(var(--accent-ink), var(--accent-ink)) center / 12px 1.6px no-repeat,
              linear-gradient(var(--accent-ink), var(--accent-ink)) center / 1.6px 12px no-repeat;
}
.cm-faq details[open] summary::after {
  background: linear-gradient(var(--accent-ink), var(--accent-ink)) center / 12px 1.6px no-repeat;
}
.cm-faq details p { margin: 0; padding: 0 18px 16px; color: var(--ink-2); font-size: 13.5px; line-height: 1.8; }

/* 评价 */
.cm-reviews { margin: 42px 0 0; }
.cm-reviewlist { display: grid; gap: 12px; }
.cm-review { display: flex; gap: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 15px 17px; }
.cm-review__avatar { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--paper-3); color: var(--accent-ink); font-size: 12px; font-weight: 700; }
.cm-review__main { min-width: 0; flex: 1; }
.cm-review__top { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.cm-review__top b { font-size: 13.5px; }
.cm-review__stars {
  --star-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.6l2.9 6 6.6 1-4.8 4.7 1.2 6.6L12 17.8l-5.9 3.1 1.2-6.6L2.5 9.6l6.6-1z' fill='%23000'/%3E%3C/svg%3E");
  position: relative; display: inline-block; width: 84px; height: 16px; flex: none;
}
.cm-review__stars::before, .cm-review__stars::after {
  content: ""; position: absolute; left: 0; top: 0; height: 16px;
  -webkit-mask: var(--star-svg) repeat-x left center / 16.8px 16px;
  mask: var(--star-svg) repeat-x left center / 16.8px 16px;
}
.cm-review__stars::before { right: 0; background: var(--line-2); }
.cm-review__stars::after { right: auto; width: calc(var(--rating, 5) * 16.8px); background: var(--warn); }
.cm-review__top time { font-size: 11px; color: var(--ink-3); margin-left: auto; }
.cm-review__spec { display: inline-block; font-size: 11px; color: var(--ink-3); background: var(--paper-2); padding: 2px 9px; border-radius: 999px; margin-top: 6px; }
.cm-review__main > p { font-size: 13.5px; color: var(--ink-2); margin: 8px 0 0; line-height: 1.75; }
.cm-review__imgs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.cm-review__imgs img { width: 74px; height: 74px; object-fit: cover; border-radius: 9px; }
.cm-review__reply { background: var(--paper-2); border-radius: 9px; padding: 8px 11px; font-size: 12.5px; color: var(--ink-2); margin-top: 10px; }
.cm-review__reply b { color: var(--accent-ink); }

/* 上下篇 */
.cm-prevnext { width: 100%; max-width: 100%; margin: 40px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cm-prevnext__item { min-width: 0; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; display: flex; flex-direction: column; gap: 5px; }
.cm-prevnext__item span { font-size: 11.5px; color: var(--accent-ink); }
.cm-prevnext__item b { min-width: 0; font-size: 13.5px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cm-prevnext__item.is-next { text-align: right; }
.cm-prevnext__item:hover { border-color: var(--accent-ink); }

/* ---------- 列表头（分类/搜索） ---------- */
.cm-listhero { background: linear-gradient(135deg, var(--accent-soft), var(--paper)); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 30px; margin-bottom: 8px; }
.cm-listhero h1 { font-size: 30px; font-weight: 800; margin: 0 0 6px; letter-spacing: -.6px; }
.cm-listhero p { color: var(--ink-2); font-size: 14px; margin: 0; }
.cm-listhero__stats { display: flex; gap: 10px; color: var(--ink-3); font-size: 12.5px; margin-top: 12px; }

/* ---------- 内容页 ---------- */
.cm-page--narrow { max-width: 820px; margin: 0 auto; }
.cm-page__head { text-align: center; margin-bottom: 34px; }
.cm-page__emoji { display: inline-flex; color: var(--accent-ink); font-size: 44px; }
.cm-page__emoji .cm-ico { width: 1em; height: 1em; }
.cm-page__head h1 { font-size: 32px; font-weight: 800; margin: 8px 0 12px; }
.cm-page__lead { font-size: 15px; color: var(--ink-2); }
.cm-page__section { margin-bottom: 34px; }
.cm-page__section h2 { font-size: 21px; font-weight: 800; margin: 0 0 18px; padding-left: 13px; border-left: 4px solid var(--accent); }
.cm-page__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cm-page__grid > div { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; }
.cm-page__ico { display: inline-flex; color: var(--accent-ink); font-size: 24px; }
.cm-page__grid b { display: block; font-size: 15px; margin: 8px 0 5px; }
.cm-page__grid p { font-size: 13px; color: var(--ink-2); margin: 0; line-height: 1.7; }
.cm-page__list { padding-left: 20px; color: var(--ink-2); line-height: 2; }
.cm-page__p { color: var(--ink-2); line-height: 1.9; }
.cm-page__p a, .cm-page__note a { color: var(--accent-ink); text-decoration: underline; }
.cm-page__note { background: var(--paper-2); border-radius: var(--radius-sm); padding: 15px 18px; font-size: 13px; color: var(--ink-2); line-height: 1.8; }
.cm-steps { display: grid; gap: 14px; }
.cm-step { display: flex; gap: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; }
.cm-step__n { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: #fff; font-weight: 800; background: var(--grad); }
.cm-step b { font-size: 14.5px; }
.cm-step p { margin: 4px 0 0; font-size: 13px; color: var(--ink-2); }

/* ---------- 状态页 ---------- */
.cm-state { display: grid; place-items: center; min-height: 50vh; }
.cm-state__box { text-align: center; max-width: 460px; }
.cm-state__code { font-size: 76px; font-weight: 800; line-height: 1; margin: 0 0 8px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cm-state__code .cm-ico { color: var(--accent-solid); }
.cm-state__code .cm-ico--xl { width: 1.2em; height: 1.2em; }
.cm-state__box h1 { font-size: 26px; margin: 0 0 10px; }
.cm-state__box p { color: var(--ink-2); font-size: 14px; margin: 0 0 22px; }
.cm-state__acts { display: flex; justify-content: center; gap: 12px; }
.cm-btn { display: inline-block; padding: 10px 22px; border-radius: 999px; font-size: 13.5px; font-weight: 700; color: #fff; background: var(--grad); }
.cm-btn--ghost { color: var(--ink-2); background: var(--paper); border: 1px solid var(--line-2); }
.cm-btn--ghost:hover { color: var(--accent-ink); border-color: var(--accent-ink); }

/* ---------- 页脚：品牌 / 单次分类 / 关于，三段式 ---------- */
.cm-footer { background: var(--paper); border-top: 1px solid var(--line); margin-top: 40px; }
.cm-footer__inner { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(130px, .8fr) minmax(130px, .8fr); gap: 44px; padding-top: 46px; padding-bottom: 34px; }
.cm-footer__brand { display: inline-flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 800; }
.cm-footer__brand .cm-ico { font-size: 17px; color: var(--accent-solid); }
.cm-footer__about > p { font-size: 13px; color: var(--ink-2); margin: 12px 0 0; max-width: 340px; }
.cm-footer__about > .cm-footer__meta { margin-top: 6px; font-size: 11.5px; color: var(--ink-3); }
.cm-footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.cm-footer__col h3 { position: relative; font-size: 12px; color: var(--ink); letter-spacing: .6px; margin: 2px 0 9px; padding-bottom: 8px; }
.cm-footer__col h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 20px; height: 2px; border-radius: 2px; background: var(--accent-solid); }
.cm-footer__col a { font-size: 12.5px; color: var(--ink-2); transition: color .18s ease, transform .18s ease; }
.cm-footer__col a:hover { color: var(--accent-ink); transform: translateX(2px); }
.cm-footer__note { text-align: center; font-size: 12px; line-height: 1.7; color: var(--ink-2); background: var(--paper-2); border-top: 1px solid var(--line); padding: 14px 22px; }
.cm-footer__bar { border-top: 1px solid var(--line); }
.cm-footer__bar > div { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; padding-top: 13px; padding-bottom: 13px; font-size: 11.5px; color: var(--ink-3); }
.cm-top { position: fixed; right: 22px; bottom: 22px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; color: #fff; font-size: 20px; cursor: pointer; background: var(--grad); box-shadow: var(--shadow-hover); z-index: 40; transition: transform .2s ease; }
.cm-top:hover { transform: translateY(-3px); }
.cm-top[hidden] { display: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .cm-nav { display: none; }
  .cm-menu-btn { display: block; }
  .cm-search { margin-left: 12px; width: min(280px, 52vw); }
  .pd-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pd-grid--rec { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .cm-wrap { padding-left: 15px; padding-right: 15px; }
  .cm-hero { grid-template-columns: 1fr; gap: 24px; padding-top: 28px; }
  .cm-hero__cards { grid-template-columns: repeat(2, 1fr); }
  .cm-notes { columns: 1; }
  .pd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .pd-grid--rec { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cm-conclusion__facts { grid-template-columns: 1fr; }
  .cm-footer__inner { grid-template-columns: 1fr 1fr; gap: 28px; }
  .cm-footer__about { grid-column: 1/-1; }
}
@media (max-width: 480px) {
  .cm-brand__txt small { display: none; }
  .cm-search { width: 46vw; }
  .cm-hero h1 { font-size: 29px; }
  .cm-block__head { align-items: flex-start; }
  .cm-block__head h2 { font-size: 21px; }
  .cm-page__grid, .cm-prevnext { grid-template-columns: minmax(0, 1fr); }
  .cm-footer__inner { grid-template-columns: 1fr; }
  .cm-likebar { flex-direction: column; }
}

/* ---------- 打印 ---------- */
@media print {
  .cm-head, .cm-topics, .cm-footer, .cm-top, .cm-likebar, .cm-nav-mobile, .cm-pager { display: none !important; }
  body { background: #fff; color: #000; }
  .cm-wrap { max-width: none; padding: 0; }
  .cm-note, .pd, .cm-conclusion { box-shadow: none; border: 1px solid #ccc; }
}
