@charset "utf-8";
/* ==========================================================================
   情感课堂（PC 文章频道 · 列表页 / 详情页）样式
   文件：upload/tpl/templets/x/css/brand-article.css
   说明：列表页 pre_article_list.tpl、详情页 pre_article_detail.tpl、频道首页
        pre_article_index.tpl（当前停用）三个模板共用这一份样式。
   设计：2026.11.26 @cc 视觉重构（编辑式版面）——
        暖象牙底 + 香槟金品牌色 + 玫瑰点缀，发丝线代替重阴影，
        首条文章做「封面文章」，正文按中文长文阅读节奏排版。
   规则约定：颜色 / 字号 / 圆角 / 间距一律取自下面 :root 的变量，不写魔法数字。
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 设计变量
   -------------------------------------------------------------------------- */
:root {
  /* 品牌色（与站点首页 pre_index.tpl 同一套香槟金） */
  --article-accent: #c6a15b;          /* 品牌金：描边、图形、分页当前项底 */
  --article-accent-deep: #9a7230;     /* 深金：用于需要对比度的小字与链接 */
  --article-accent-soft: #f4ebd8;     /* 金色浅底 */
  /* 辅助色：婚恋主题的玫瑰 + 两个沉稳点缀（分类标签按 catkey 轮换） */
  --article-rose: #a8546b;
  --article-rose-soft: #f8edf0;
  --article-sage: #5b7a63;
  --article-sage-soft: #edf3ee;
  --article-slate: #4c6072;
  --article-slate-soft: #edf1f5;
  /* 标签/小字用的加深版：在各自浅底上都要 ≥4.5:1 对比度 2026.11.26 @cc */
  --article-accent-ink: #7d5a1c;
  --article-rose-ink: #8f4256;
  --article-sage-ink: #46634e;
  --article-slate-ink: #3b4d5f;
  /* 中性色：暖灰系（带一点主色色相，不用纯灰） */
  --article-bg: #fbf8f4;
  --article-bg-warm: #f5eee4;
  --article-card: #ffffff;
  --article-ink: #211b17;             /* 标题 */
  --article-text: #3b332d;            /* 正文 */
  --article-muted: #6e645b;           /* 次要文字（白底 5.9:1） */
  --article-line: rgba(33, 27, 23, .09);
  --article-line-strong: rgba(33, 27, 23, .16);
  /* 阴影：低透明度、大扩散、略带暖色 */
  --article-shadow-xs: 0 1px 2px rgba(33, 27, 23, .04);
  --article-shadow: 0 12px 32px -14px rgba(33, 27, 23, .20);
  --article-shadow-lg: 0 26px 60px -26px rgba(33, 27, 23, .30);
  /* 形状 */
  --article-radius-sm: 8px;
  --article-radius: 14px;
  --article-radius-lg: 20px;
  --article-radius-pill: 999px;
  /* 版心 */
  --article-max: 1080px;
  --article-read: 720px;
  /* 字体 */
  --article-font: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei",
    system-ui, -apple-system, "Segoe UI", "Hiragino Sans GB", sans-serif;
  --article-num-font: "SF Mono", "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  /* 婚恋主题装饰：心形图标（内联 SVG，玫瑰 / 金色两版，用于小标题、选中态与空封面占位）2026.11.26 @cc */
  --article-heart-rose: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23a8546b' d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E");
  --article-heart-gold: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23c6a15b' d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   2. 基础
   -------------------------------------------------------------------------- */
* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

[hidden] { display: none !important; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--article-bg);
  color: var(--article-text);
  font-family: var(--article-font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; }

a {
  color: inherit;
  text-decoration: none;
  transition: color .18s cubic-bezier(.2, .8, .2, 1), border-color .18s, background-color .18s, opacity .18s;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
  display: block;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}

::selection {
  background: var(--article-accent-soft);
  color: var(--article-ink);
}

:focus-visible {
  outline: 2px solid var(--article-accent-deep);
  outline-offset: 2px;
  border-radius: 4px;
}

/* 线性图标：统一 1.7 线宽、圆角端点，24 网格 */
.art-i {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 数字用等宽字体，金额 / 日期 / 阅读数对齐更好看 */
.article-num { font-family: var(--article-num-font); font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   3. 站点头部 —— 移动端顶栏（PC 头部见 min-width:768px 段）
   -------------------------------------------------------------------------- */
/* PC 头部在手机上隐藏（手机只用下面的顶栏）2026.11.26 @cc */
.article-site-header { display: none; }

.article-topbar {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 40;
  height: 56px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--article-line);
  backdrop-filter: saturate(1.4) blur(6px);
}

.article-topbar-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--article-ink);
  max-width: 46vw;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.article-topbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 36px;
  padding: 0 10px;
  border-radius: var(--article-radius-pill);
  color: var(--article-ink);
  font-size: 13px;
}

.article-topbar-btn.is-quiet {
  justify-self: end;
  border: 1px solid var(--article-line-strong);
}

.article-topbar-btn:hover { background: rgba(33, 27, 23, .05); }

.article-shell {
  padding-top: 56px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.article-main {
  flex: 1;
  width: 100%;
  max-width: var(--article-max);
  margin: 0 auto;
  padding: 0 16px 56px;
}

/* --------------------------------------------------------------------------
   4. 登录 / 注册弹窗（与首页 pre_index.tpl 的 #pvLoginModal 结构一致）
   -------------------------------------------------------------------------- */
.pv-c-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pv-c-modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(28, 22, 18, .58);
  backdrop-filter: blur(2px);
}

.pv-c-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(520px, 92vw);
  padding: 40px 36px 28px;
  border-radius: var(--article-radius-lg);
  background: var(--article-card);
  text-align: center;
  box-shadow: var(--article-shadow-lg);
}

.pv-c-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f4f1ec;
  color: #7b7168;
  font-size: 22px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pv-c-modal-close:hover { background: #eae4db; color: var(--article-ink); }

.pv-c-modal-title {
  margin: 0;
  color: var(--article-ink);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -.01em;
}

.pv-c-modal-sub {
  margin: 10px 0 0;
  color: var(--article-muted);
  font-size: 13px;
  line-height: 1.75;
}

.pv-c-modal-qrs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.pv-c-modal-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.pv-c-modal-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--article-radius-pill);
  background: var(--article-accent-soft);
  color: var(--article-accent-deep);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .04em;
}

.pv-c-modal-qr img {
  width: 128px;
  height: 128px;
  border-radius: var(--article-radius);
  object-fit: cover;
  border: 1px solid var(--article-line);
}

.pv-c-modal-qr strong { color: var(--article-ink); font-size: 14px; font-weight: 600; }
.pv-c-modal-hint { color: var(--article-muted); font-size: 12px; }

.pv-c-modal-foot {
  margin: 20px 0 0;
  color: var(--article-muted);
  font-size: 12px;
  line-height: 1.75;
}

/* --------------------------------------------------------------------------
   5. 通用按钮
   -------------------------------------------------------------------------- */
.article-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--article-radius-sm);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.article-btn.is-primary {
  background: var(--article-accent);
  border-color: var(--article-accent);
  color: #241c12;
}

.article-btn.is-primary:hover { background: #bd9145; border-color: #bd9145; }

.article-btn.is-ghost {
  border-color: var(--article-line-strong);
  color: var(--article-ink);
  background: var(--article-card);
}

.article-btn.is-ghost:hover {
  border-color: var(--article-accent-deep);
  color: var(--article-accent-deep);
}

/* --------------------------------------------------------------------------
   6. 频道首页 / 列表页
   -------------------------------------------------------------------------- */
/* hero：做成一张有内边距的圆角面板（原来文字贴着容器左边缘，用户反馈「太靠左边」）2026.11.26 @cc */
.article-hero {
  position: relative;
  margin: 20px 0 6px;
  padding: 26px 24px 24px;
  border: 1px solid var(--article-line);
  border-radius: var(--article-radius-lg);
  background:
    radial-gradient(120% 100% at 12% 0%, rgba(198, 161, 91, .18) 0%, rgba(251, 248, 244, 0) 62%),
    radial-gradient(90% 90% at 100% 8%, rgba(168, 84, 107, .12) 0%, rgba(251, 248, 244, 0) 58%),
    linear-gradient(180deg, #fdfaf6 0%, #fbf8f4 100%);
  box-shadow: var(--article-shadow-xs);
}

.article-hero-copy { min-width: 0; }

.article-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--article-accent-ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
}

/* 眉题前一颗小金心（婚恋主题元素，原来是一道 26px 金线）2026.11.26 @cc */
.article-hero-eyebrow::before {
  content: '';
  width: 13px;
  height: 13px;
  background: var(--article-heart-gold) center / contain no-repeat;
}

.article-hero h1 {
  margin-top: 12px;
  color: var(--article-ink);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.24;
  letter-spacing: -.015em;
  text-wrap: balance;
}

.article-hero-catintro {
  margin-top: 10px;
  max-width: 34em;
  color: var(--article-muted);
  font-size: 13px;
  line-height: 1.75;
}

.article-hero-catintro strong {
  color: var(--article-accent-deep);
  font-weight: 600;
}

/* 首页 hero 右侧的照片墙：桌面显示，手机隐藏（模板里只取前 3 张有封面的文章） */
.article-hero-collage {
  display: none;
}

.article-hero-photo {
  display: block;
  border-radius: var(--article-radius);
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: var(--article-shadow);
  background: var(--article-bg-warm);
}

.article-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s cubic-bezier(.2, .8, .2, 1);
}

.article-hero-photo:hover img { transform: scale(1.05); }

/* 筛选条：吸顶 + 发丝线，不用半透明模糊，避免滚动时和卡片糊在一起 */
.article-filter {
  position: sticky;
  top: 56px;
  z-index: 20;
  margin: 4px -16px 0;
  padding: 12px 16px 10px;
  background: var(--article-bg);
  border-bottom: 1px solid var(--article-line);
}

.article-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.article-chips::-webkit-scrollbar { display: none; }

.article-chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border: 1px solid var(--article-line);
  border-radius: var(--article-radius-pill);
  background: var(--article-card);
  color: var(--article-text);
  font-size: 13px;
  white-space: nowrap;
}

.article-chip:hover {
  border-color: var(--article-accent);
  color: var(--article-accent-deep);
}

/* 选中态：不再用深色文字压在金底上（用户反馈不好看），改成金浅底 + 深金字 + 一颗玫瑰心 2026.11.26 @cc */
.article-chip.is-active {
  background: var(--article-accent-soft);
  border-color: var(--article-accent);
  color: var(--article-accent-ink);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(198, 161, 91, .35);
}

.article-chip.is-active::before {
  content: '';
  width: 11px;
  height: 11px;
  margin-right: 6px;
  background: var(--article-heart-rose) center / contain no-repeat;
}

.article-sort {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
  color: var(--article-muted);
  font-size: 13px;
}

.article-sort > span {
  color: var(--article-muted);
  letter-spacing: .04em;
}

/* 排序项做成 ≥24px 的点击区（原来只有 22px 高）2026.11.26 @cc */
.article-sort a {
  display: inline-block;
  padding: 4px 0;
  color: var(--article-muted);
}

.article-sort a:hover { color: var(--article-accent-deep); }

.article-sort a.is-active {
  color: var(--article-ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--article-accent);
  text-underline-offset: 5px;
  text-decoration-thickness: 2px;
}

.article-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 30px 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--article-line);
}

.article-section-head h2 {
  margin: 0;
  color: var(--article-ink);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.01em;
}

.article-section-head a {
  color: var(--article-muted);
  font-size: 13px;
  white-space: nowrap;
}

.article-section-head a:hover { color: var(--article-accent-deep); }

/* 文章列表：单列；PC 两列，且有封面的第一条做「封面文章」整行铺开 */
.article-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 18px;
}

.article-card {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  background: var(--article-card);
  border: 1px solid var(--article-line);
  border-radius: var(--article-radius);
  box-shadow: var(--article-shadow-xs);
  overflow: hidden;
  transition: transform .2s cubic-bezier(.2, .8, .2, 1), box-shadow .2s, border-color .2s;
}

.article-card:hover {
  transform: translateY(-2px);
  border-color: rgba(198, 161, 91, .55);
  box-shadow: var(--article-shadow);
}

/* 封面「满栏出血」：图片框与卡片同高、撑满图片列，不留白也不与右侧文字错位。
   站点封面源图基本都是 200×133（≈3:2），所以把图片列固定 224 宽（见 PC 段），
   并把正文收紧到 ≈151 高 → 图片框实际就是 224×151 ≈ 3:2，与源图比例吻合：
   既不会把横图裁成正方形，也不会在图片上下留白（2026.11.26 @cc 按用户反馈重做） */
.article-card-media {
  position: relative;
  overflow: hidden;
  background: var(--article-bg-warm);
}

.article-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}

.article-card:hover .article-card-media img { transform: scale(1.04); }

.article-card.is-no-cover { grid-template-columns: minmax(0, 1fr); }

.article-card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 16px 16px 14px;
  min-width: 0;
}

/* 卡片内容一律不许被压缩：否则日期/阅读会被挤到摘要上（flex 收缩导致重叠）2026.11.26 @cc */
.article-card-body > * { flex: 0 0 auto; }

.article-tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  background: var(--article-accent-soft);
  color: var(--article-accent-ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  white-space: nowrap;
}

.article-tag[data-category="skills"] { background: var(--article-sage-soft); color: var(--article-sage-ink); }
.article-tag[data-category="marriage"] { background: var(--article-rose-soft); color: var(--article-rose-ink); }
.article-tag[data-category="news"] { background: var(--article-slate-soft); color: var(--article-slate-ink); }

.article-card-body h3 {
  margin: 0;
  color: var(--article-ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -.005em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.article-card-body > p:empty { display: none; }

.article-card:hover h3 { color: var(--article-accent-deep); }

.article-card-body > p {
  margin: 0;
  width: 100%;
  color: var(--article-muted);
  font-size: 13px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}

.article-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin-top: auto;
  padding-top: 10px;
  width: 100%;
  border-top: 1px solid var(--article-line);
  color: var(--article-muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.article-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.article-card-meta .art-i { font-size: 13px; opacity: .62; }

/* 空状态 */
.article-empty {
  margin-top: 22px;
  padding: 56px 24px;
  text-align: center;
  background: var(--article-card);
  border: 1px dashed var(--article-line-strong);
  border-radius: var(--article-radius);
}

.article-empty svg {
  width: 40px;
  height: 40px;
  color: var(--article-accent);
}

.article-empty strong {
  display: block;
  margin-top: 14px;
  color: var(--article-ink);
  font-size: 16px;
  font-weight: 600;
}

.article-empty p {
  margin: 8px 0 18px;
  color: var(--article-muted);
  font-size: 13px;
}

/* 分页：框架输出的是裸 a 标签，当前页是 <a class="_current"> */
.article-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 30px 0 6px;
}

.article-pagination a,
.article-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--article-line);
  border-radius: var(--article-radius-sm);
  background: var(--article-card);
  color: var(--article-text);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.article-pagination a:hover {
  border-color: var(--article-accent);
  color: var(--article-accent-deep);
}

.article-pagination a._current,
/* 当前页：加深金底 + 白字（`--article-accent-deep` 与白字只有 4.35:1，改用加深 inks 版达到 ≥4.5:1）2026.11.26 @cc */
.article-pagination span._current,
.article-pagination a._current {
  background: var(--article-accent-ink);
  border-color: var(--article-accent-ink);
  color: #fff;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   7. 详情页
   -------------------------------------------------------------------------- */
.article-progress {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 60;
  width: 100%;
  height: 3px;
  background: transparent;
  pointer-events: none;
}

.article-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--article-accent), var(--article-rose));
  transition: width .12s linear;
}

.article-detail-main {
  max-width: var(--article-read);
  padding-top: 18px;
}

.article-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--article-muted);
  font-size: 13px;
}

/* 面包屑链接补竖向内边距，点击区 ≥24px 2026.11.26 @cc */
.article-breadcrumb a { display: inline-block; padding: 3px 0; color: var(--article-muted); }
.article-breadcrumb a:hover { color: var(--article-accent-deep); }
.article-breadcrumb .art-i { font-size: 11px; opacity: .55; }

.article-detail-category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  height: 26px;
  padding: 0 11px;
  border-radius: var(--article-radius-pill);
  background: var(--article-rose-soft);
  color: var(--article-rose-ink);
  font-size: 13px;
  font-weight: 600;
}

.article-detail-category .art-i { font-size: 13px; }
.article-detail-category:hover { background: #f2dfe4; }

.article-detail h1 {
  margin-top: 14px;
  color: var(--article-ink);
  font-size: 25px;
  font-weight: 600;
  line-height: 1.36;
  letter-spacing: -.015em;
  text-wrap: balance;
}

/* 作者/时间/阅读这一行下面加一道发丝线，把「标题区」和「正文区」分开 2026.11.26 @cc */
.article-detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--article-line);
  color: var(--article-muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.article-detail-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.article-detail-meta .art-i { font-size: 14px; opacity: .6; }

/* 摘要做成「引文块」：左侧金色竖线 + 极浅暖底，往右淡出 2026.11.26 @cc */
.article-detail-summary {
  margin-top: 22px;
  padding: 14px 18px 14px 16px;
  border-left: 3px solid var(--article-accent);
  border-radius: 0 var(--article-radius-sm) var(--article-radius-sm) 0;
  background: linear-gradient(90deg, rgba(198, 161, 91, .09) 0%, rgba(198, 161, 91, 0) 88%);
  color: var(--article-text);
  font-size: 15px;
  line-height: 1.85;
}

.article-detail-cover {
  margin: 24px 0 0;
  border-radius: var(--article-radius);
  overflow: hidden;
  background: var(--article-bg-warm);
  box-shadow: var(--article-shadow);
}

.article-detail-cover img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* 正文：中文长文阅读节奏 */
.article-detail-body {
  margin-top: 26px;
  color: #332c27;
  font-size: 16px;
  line-height: 1.95;
  letter-spacing: .01em;
  overflow-wrap: break-word;
}

.article-detail-body > * + * { margin-top: 20px; }

.article-detail-body p { margin-top: 20px; }

/* 老文章正文是「一个 p 里塞 br」的写法：去掉块首空行与空的占位段，版面立刻干净 */
/* 老文章正文首段常是「空 <p><br /></p>」占位（历史编辑器遗留），
   去掉它和段内首个换行，避免正文顶部出现一大块空白 2026.11.26 @cc */
.article-detail-body > p:first-child > br:first-child { display: none; }
.article-detail-body > p:first-child { margin-top: 0; }
.article-detail-body p > br:first-child { display: none; }

.article-detail-body img {
  height: auto;
  border-radius: var(--article-radius);
  background: var(--article-bg-warm);
}

.article-detail-body h2 {
  position: relative;
  margin-top: 36px;
  padding-left: 14px;
  color: var(--article-ink);
  font-size: 19.5px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -.01em;
}

.article-detail-body h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: .34em;
  bottom: .34em;
  width: 3px;
  border-radius: 2px;
  background: var(--article-accent);
}

.article-detail-body h3 {
  margin-top: 26px;
  color: var(--article-ink);
  font-size: 17px;
  font-weight: 600;
}

.article-detail-body ul,
.article-detail-body ol {
  display: grid;
  gap: 10px;
  padding-left: 2px;
}

.article-detail-body ul li,
.article-detail-body ol li {
  position: relative;
  padding-left: 20px;
  list-style: none;
}

.article-detail-body ul li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: .78em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--article-accent);
}

.article-detail-body ol { counter-reset: art-ol; }

.article-detail-body ol li::before {
  counter-increment: art-ol;
  content: counter(art-ol);
  position: absolute;
  left: 0;
  top: .18em;
  color: var(--article-accent-deep);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--article-num-font);
}

.article-detail-body blockquote {
  margin: 24px 0;
  padding: 16px 20px;
  border-left: 3px solid var(--article-rose);
  border-radius: 0 var(--article-radius-sm) var(--article-radius-sm) 0;
  background: var(--article-rose-soft);
  color: #5a3742;
  font-size: 15px;
  line-height: 1.85;
}

.article-detail-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.article-detail-body table th,
.article-detail-body table td {
  padding: 10px 12px;
  border: 1px solid var(--article-line);
  text-align: left;
}

.article-detail-body table th {
  background: var(--article-accent-soft);
  color: var(--article-ink);
  font-weight: 600;
}

.article-block-image { margin: 26px 0; }

.article-block-image img { width: 100%; border-radius: var(--article-radius); }

.article-block-image figcaption {
  margin-top: 10px;
  color: var(--article-muted);
  font-size: 13px;
  text-align: center;
}

.article-block-tip {
  margin: 26px 0;
  padding: 16px 18px;
  border-radius: var(--article-radius);
  background: var(--article-accent-soft);
}

.article-block-tip strong {
  display: block;
  color: var(--article-accent-deep);
  font-size: 13px;
  font-weight: 600;
}

.article-block-tip p { margin-top: 6px; font-size: 14px; }

.article-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}

.article-detail-tag {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 12px;
  border-radius: var(--article-radius-pill);
  border: 1px solid var(--article-line);
  background: var(--article-card);
  color: var(--article-muted);
  font-size: 13px;
}

.article-detail-tag:hover {
  border-color: var(--article-accent);
  color: var(--article-accent-deep);
}

.article-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--article-line);
}

.article-siblings {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 30px;
}

.article-sibling {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid var(--article-line);
  border-radius: var(--article-radius);
  background: var(--article-card);
  min-width: 0;
}

.article-sibling:hover {
  border-color: rgba(198, 161, 91, .6);
  box-shadow: var(--article-shadow-xs);
}

.article-sibling span {
  color: var(--article-muted);
  font-size: 12px;
  letter-spacing: .06em;
}

.article-sibling strong {
  color: var(--article-ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.article-sibling:hover strong { color: var(--article-accent-deep); }
.article-sibling.is-next { text-align: right; }

.article-sibling.is-empty {
  background: transparent;
  border-style: dashed;
}

.article-sibling.is-empty strong {
  color: #a49a90;
  font-weight: 400;
}

.article-related { margin-top: 44px; }

.article-related > h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--article-ink);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.01em;
}

/* 「相关推荐」标题前一颗玫瑰心（原来是一道金色竖条）2026.11.26 @cc */
.article-related > h2::before {
  content: '';
  width: 14px;
  height: 14px;
  background: var(--article-heart-rose) center / contain no-repeat;
}

.article-related-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 16px;
}

.article-related-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  border: 1px solid var(--article-line);
  border-radius: var(--article-radius);
  background: var(--article-card);
  overflow: hidden;
  transition: transform .2s cubic-bezier(.2, .8, .2, 1), border-color .2s, box-shadow .2s;
}

.article-related-card:hover {
  transform: translateY(-2px);
  border-color: rgba(198, 161, 91, .55);
  box-shadow: var(--article-shadow-xs);
}

.article-related-card.is-no-cover { grid-template-columns: minmax(0, 1fr); }

.article-related-thumb {
  overflow: hidden;
  background: var(--article-bg-warm);
}

.article-related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 没有封面的相关推荐：文字块加点内边距，桌面端给一块带玫瑰心的浅金占位（见下方 PC 段）2026.11.26 @cc */
.article-related-card.is-no-cover .article-related-copy {
  padding: 18px 16px;
}

.article-related-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 12px 14px;
  min-width: 0;
}

/* 标题/说明都不许被压缩，否则两行标题会压到「分类 · N 分钟读完」上 2026.11.26 @cc */
.article-related-copy > * { flex: 0 0 auto; }

.article-related-copy strong {
  color: var(--article-ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.article-related-card:hover strong { color: var(--article-accent-deep); }

.article-related-copy span {
  color: var(--article-muted);
  font-size: 12px;
}

/* --------------------------------------------------------------------------
   8. 页脚 / 回到顶部 / 轻提示
   -------------------------------------------------------------------------- */
.article-footer {
  margin-top: auto;
  padding: 32px 16px 28px;
  background: #241c18;
  color: rgba(255, 255, 255, .62);
}

.article-footer-inner {
  max-width: var(--article-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.article-footer-brand strong {
  display: block;
  color: #f6f1ea;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .01em;
}

/* 页脚品牌名前一颗小金心（婚恋主题元素）2026.11.26 @cc */
.article-footer-brand strong::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 7px;
  vertical-align: -1px;
  background: var(--article-heart-gold) center / contain no-repeat;
}

.article-footer-brand span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, .5);
  font-size: 13px;
}

.article-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.article-footer-links a {
  display: inline-block;
  padding: 4px 0;
  color: rgba(255, 255, 255, .68);
  font-size: 13px;
}

.article-footer-links a:hover { color: var(--article-accent); }

.article-footer-legal {
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.article-footer-legal p { margin: 0; }

.article-backtop {
  position: fixed;
  right: 16px;
  bottom: 20px;
  z-index: 50;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--article-card);
  border: 1px solid var(--article-line);
  color: var(--article-ink);
  box-shadow: var(--article-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s, transform .2s, visibility .2s, border-color .2s, color .2s;
}

.article-backtop .art-i { font-size: 18px; }

.article-backtop.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.article-backtop:hover {
  border-color: var(--article-accent);
  color: var(--article-accent-deep);
}

.article-toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  z-index: 210;
  transform: translate(-50%, 12px);
  max-width: 82vw;
  padding: 11px 18px;
  border-radius: var(--article-radius-pill);
  background: rgba(33, 27, 23, .92);
  color: #fbf8f4;
  font-size: 13px;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s, transform .22s, visibility .22s;
}

.article-toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

/* --------------------------------------------------------------------------
   9. PC（≥768px）
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
  body { font-size: 16px; }

  .article-topbar { display: none; }

  .article-shell { padding-top: 72px; }

  /* PC 站点头部：白底固定 72px，三栏栅格（LOGO / 导航 / 登录） */
  .article-site-header {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 40;
    height: 72px;
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
    align-items: center;
    gap: 24px;
    padding: 0 clamp(20px, 4vw, 56px);
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--article-line);
    backdrop-filter: saturate(1.4) blur(8px);
  }

  .pv-c-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    justify-self: start;
    color: var(--article-ink);
  }

  .pv-c-logo-mark {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex: none;
  }

  .pv-c-logo-mark img { width: 100%; height: 100%; object-fit: contain; }

  .pv-c-logo-text {
    font-size: 18px;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: .01em;
  }

  .article-site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
  }

  .article-site-nav a {
    position: relative;
    color: var(--article-muted);
    font-size: 14px;
    padding: 6px 0;
    white-space: nowrap;
  }

  .article-site-nav a:hover { color: var(--article-accent-deep); }

  .article-site-nav a.is-active {
    color: var(--article-ink);
    font-weight: 600;
  }

  .article-site-nav a.is-active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    border-radius: 2px;
    background: var(--article-accent);
  }

  .pv-c-login-btn {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 16px;
    border: 1px solid var(--article-line-strong);
    border-radius: var(--article-radius-pill);
    color: var(--article-ink);
    font-size: 13px;
    white-space: nowrap;
  }

  .pv-c-login-btn .art-i { font-size: 15px; opacity: .7; }

  .pv-c-login-btn:hover {
    border-color: var(--article-accent-deep);
    color: var(--article-accent-deep);
    background: rgba(198, 161, 91, .07);
  }

  .article-main { padding: 0 24px 72px; }

  /* hero：左文案 + 右照片墙；面板内边距留够，文案不再贴边 2026.11.26 @cc */
  .article-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 40px;
    padding: 44px 40px 40px;
  }

  .article-hero h1 { font-size: 34px; margin-top: 14px; }

  .article-hero-catintro { font-size: 14px; margin-top: 12px; }

  .article-hero-collage {
    display: flex;
    align-items: flex-end;
    gap: 12px;
  }

  .article-hero-collage .article-hero-photo:nth-child(1) { width: 108px; height: 132px; }
  .article-hero-collage .article-hero-photo:nth-child(2) { width: 108px; height: 108px; }
  .article-hero-collage .article-hero-photo:nth-child(3) { width: 108px; height: 92px; }

  .article-filter {
    top: 72px;
    margin: 0 -24px;
    padding: 14px 24px 12px;
  }

  .article-chips { flex-wrap: wrap; overflow: visible; }

  .article-chip { height: 34px; padding: 0 16px; font-size: 13px; }

  .article-sort { margin-top: 12px; font-size: 13px; }

  .article-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 22px;
  }

  /* 图片列固定 224 宽：配合下面收紧的正文（≈151 高），图片框正好 ≈3:2，
     与站点 200×133 的封面源图一致——不裁两侧、不上下留白、与文字块上下对齐。2026.11.26 @cc */
  .article-card { grid-template-columns: 224px minmax(0, 1fr); }

  .article-card-body { padding: 16px 20px 14px; gap: 9px; }

  .article-card-body h3 { font-size: 17px; }

  /* PC 卡片不显示摘要：把卡片高度收到与 3:2 封面匹配（头条卡仍显示 3 行摘要）2026.11.26 @cc */
  .article-card-body > p { display: none; }

  .article-card-meta { padding-top: 12px; font-size: 13px; }

  /* 首条（模板打 is-lead、且要有封面）做「封面文章」：左右分栏，制造成杂志头条的版面节奏
     不用 has 选择器——个别内核不支持时整条规则会被丢弃 2026.11.26 @cc */
  .article-list > .article-card.is-lead {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
    min-height: 296px;
  }

  /* 图片列固定高度：否则宽列会按图片原始比例把头条卡撑得很高 2026.11.26 @cc
     头条卡封面满栏出血，所以这里就是简单的拉伸（基础段没有 aspect-ratio 限制） */
  .article-list > .article-card.is-lead .article-card-media {
    height: 290px;
    align-self: stretch;
  }

  .article-list > .article-card.is-lead .article-card-body {
    padding: 30px 32px 26px;
    gap: 12px;
    justify-content: center;
  }

  .article-list > .article-card.is-lead h3 {
    font-size: 24px;
    line-height: 1.44;
    -webkit-line-clamp: 3;
  }

  /* 头条卡保留摘要（PC 普通卡片已隐藏摘要，这里显式恢复）2026.11.26 @cc
     行数放到 4 行，把卡片下方留白填满一些 */
  .article-list > .article-card.is-lead > .article-card-body > p {
    display: -webkit-box;
    font-size: 14px;
    line-height: 1.85;
    -webkit-line-clamp: 4;
  }

  /* 详情：版心 720，封面 16:9，正文大 1px */
  .article-detail-main { padding-top: 26px; }

  .article-detail h1 { font-size: 32px; margin-top: 16px; line-height: 1.3; }

  .article-detail-meta { font-size: 13px; gap: 8px 20px; margin-top: 16px; }

  .article-detail-summary { font-size: 17px; margin-top: 26px; padding-left: 20px; }

  .article-detail-cover { margin-top: 28px; border-radius: var(--article-radius-lg); }
  .article-detail-cover img { aspect-ratio: 16 / 9; }

  .article-detail-body { margin-top: 30px; font-size: 17px; }
  .article-detail-body > * + *,
  .article-detail-body p { margin-top: 22px; }
  .article-detail-body h2 { font-size: 21px; margin-top: 42px; }

  .article-detail-tags { margin-top: 34px; }

  .article-detail-actions { margin-top: 34px; padding-top: 26px; }

  .article-siblings {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 34px;
  }

  .article-sibling { padding: 16px 18px; }

  .article-related-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
  }

  .article-related-card {
    grid-template-columns: minmax(0, 1fr);
  }

  /* 无封面的相关推荐：补一块带玫瑰心的浅金占位，避免卡片空半张 2026.11.26 @cc */
  .article-related-card.is-no-cover::before {
    content: '';
    height: 116px;
    border-bottom: 1px solid var(--article-line);
    background:
      var(--article-heart-rose) center / 26px no-repeat,
      linear-gradient(158deg, #f8ecd8 0%, #f8e8ee 58%, #f5eef1 100%);
  }

  .article-related-thumb { aspect-ratio: 16 / 9; }

  .article-related-copy { padding: 14px 16px 16px; gap: 8px; }

  .article-related-copy strong { font-size: 14px; }

  .article-footer { padding: 48px 24px 40px; }

  .article-footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 20px 40px;
  }

  .article-footer-brand strong { font-size: 17px; }

  .article-footer-links { justify-content: flex-end; gap: 10px 26px; padding-top: 4px; }

  .article-footer-legal { grid-column: 1 / -1; margin-top: 4px; padding-top: 20px; }

  .article-backtop { right: 28px; bottom: 28px; width: 46px; height: 46px; }
}

/* ≥1080px：正文栏再宽一点，相关推荐三列留出更舒服的间距 */
@media (min-width: 1080px) {
  .article-detail-main { max-width: 760px; }
  .article-hero h1 { font-size: 36px; }
}

/* PC 窄屏（768–1079）：顶部菜单与首页同款后有 6 项，收紧间距与字号，避免和 LOGO / 登录按钮挤在一起
   2026.11.26 @cc */
@media (min-width: 768px) and (max-width: 1079px) {
  .article-site-header { gap: 16px; padding: 0 20px; }
  .article-site-nav { gap: 16px; }
  .article-site-nav a { font-size: 13px; }
  .pv-c-logo-mark { width: 34px; height: 34px; }
  .pv-c-logo-text { font-size: 16px; }
}

/* --------------------------------------------------------------------------
   10. 手机（≤767px）细调
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .article-list { gap: 12px; }

  /* hero 面板在小屏上收内边距 2026.11.26 @cc */
  .article-hero { margin-top: 14px; padding: 20px 18px 20px; }

  /* 手机端卡片改成「上图下文」：窄屏下左侧缩略图只有 116 宽，横图在高卡片里会上下留一大片白，
     改成整幅 16:9 的顶图更好看，也不会把横图压扁 2026.11.26 @cc */
  .article-card { grid-template-columns: minmax(0, 1fr); }

  .article-card-media {
    aspect-ratio: 16 / 9;
    align-self: stretch;
  }

  .article-card-body { padding: 14px 14px 12px; gap: 7px; }

  .article-card-body h3 { font-size: 15px; }

  .article-pagination { gap: 6px; margin-top: 24px; }

  .article-pagination a,
  .article-pagination span {
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    font-size: 13px;
  }

  .article-detail h1 { font-size: 23px; }

  .article-related-list { grid-template-columns: 1fr; }
}

/* 小屏：弹窗竖排、二维码缩一点 */
@media (max-width: 560px) {
  .pv-c-modal-dialog { padding: 32px 18px 24px; }
  .pv-c-modal-qrs { grid-template-columns: 1fr; gap: 16px; }
  .pv-c-modal-title { font-size: 19px; }
  .pv-c-modal-qr img { width: 118px; height: 118px; }
}

/* --------------------------------------------------------------------------
   11. 动效偏好
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }

  .article-card:hover,
  .article-related-card:hover { transform: none; }

  .article-card:hover .article-card-media img,
  .article-hero-photo:hover img { transform: none; }

  .article-progress span { transition: none; }
}
