/* ============================================================
   小胖毛 — Article / reading page
   ============================================================ */

/* per-article category accent (override --cat inline if needed) */
.article-page { --cat: var(--sage); --cat-wash: #E7EEDF; --cat-ink: #46552F; }

/* reading progress bar */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--accent); z-index: 600; transition: width .1s linear; }

/* ---- ARTICLE HERO ---- */
.a-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.a-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 90% at 50% -10%, color-mix(in srgb, var(--cat) 16%, transparent) 0%, transparent 60%);
  pointer-events: none;
}
.a-hero-inner { max-width: 760px; margin: 0 auto; padding: clamp(40px, 6vw, 76px) clamp(20px, 4vw, 32px) clamp(34px, 4vw, 48px); position: relative; }
.breadcrumb { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--ink-mute); margin-bottom: 22px; }
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-deep); }
.a-cat {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--cat-ink); background: var(--cat-wash);
  border: 1px solid color-mix(in srgb, var(--cat) 36%, transparent);
  padding: 5px 13px; border-radius: 999px; margin-bottom: 20px;
}
.a-cat .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cat); }
.a-title { font-family: var(--serif); font-style: italic; font-size: clamp(2.1rem, 4.8vw, 3.3rem); color: var(--ink); line-height: 1.14; letter-spacing: -0.01em; margin-bottom: 24px; }
.a-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.a-byline { display: flex; align-items: center; gap: 10px; }
.a-byline img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 1.5px solid var(--line); }
.a-byline b { font-size: 13.5px; font-weight: 800; color: var(--ink); display: block; line-height: 1.2; }
.a-byline span { font-family: var(--mono); font-size: 10.5px; color: var(--ink-mute); letter-spacing: 0.04em; }
.a-meta .info { font-family: var(--mono); font-size: 11.5px; color: var(--ink-mute); letter-spacing: 0.04em; display: flex; align-items: center; gap: 10px; }
.a-meta .info .d { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-mute); }

/* ---- ARTICLE BODY ---- */
.article { max-width: 680px; margin: 0 auto; padding: clamp(40px, 5vw, 60px) clamp(20px, 4vw, 32px) 40px; }
.lede { font-size: 18px; line-height: 1.85; color: var(--ink); font-weight: 700; margin-bottom: 36px; }
.lede::first-letter {
  font-family: var(--serif); font-style: italic; font-size: 3.1em;
  float: left; line-height: 0.74; margin: 9px 14px 0 0; color: var(--accent); font-weight: 400;
}
.article h2 {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.55rem, 3vw, 2.05rem); color: var(--ink);
  line-height: 1.24; margin: 50px 0 18px;
  display: flex; align-items: baseline; gap: 14px;
}
.article h2::before {
  content: ''; flex: 0 0 28px; height: 2px; background: var(--accent);
  transform: translateY(-8px);
}
.article h3 { font-size: 1.2rem; font-weight: 800; color: var(--ink); margin: 34px 0 12px; }
.article p { font-size: 16.5px; line-height: 1.95; color: var(--ink-soft); margin-bottom: 18px; }
.article ul, .article ol { margin: 0 0 20px; padding-left: 4px; list-style: none; }
.article li { font-size: 16.5px; line-height: 1.9; color: var(--ink-soft); margin-bottom: 12px; padding-left: 26px; position: relative; }
.article ul li::before { content: ''; position: absolute; left: 4px; top: 13px; width: 7px; height: 7px; background: var(--accent); transform: rotate(45deg); }
.article ol { counter-reset: li; }
.article ol li { counter-increment: li; }
.article ol li::before { content: counter(li); position: absolute; left: 0; top: 1px; font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--accent-deep); }
.article strong { color: var(--ink); font-weight: 800; }
.article a.inline { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }

/* comparison tables */
.article table, .dim-table { width: 100%; border-collapse: collapse; margin: 10px 0 26px; font-size: 15px; overflow: hidden; border-radius: 12px; }
.article th, .article td, .dim-table th, .dim-table td {
  text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line);
  color: var(--ink-soft); line-height: 1.65; vertical-align: top;
}
.article th, .dim-table th { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; color: var(--ink); background: var(--accent-wash); }
.article td:first-child, .dim-table td:first-child { font-weight: 800; color: var(--ink); white-space: nowrap; }
.article tr:last-child td { border-bottom: none; }

.callout, .danger {
  margin: 28px 0; padding: 20px 24px; border-radius: 0 14px 14px 0;
  position: relative;
}
.callout { background: var(--accent-wash); border-left: 3px solid var(--accent); }
.callout p { margin: 0; font-size: 15.5px; line-height: 1.8; color: var(--accent-ink); }
.callout strong { color: var(--accent-deep); }
.danger { background: #F6E0DA; border-left: 3px solid #C0432F; }
.danger p { margin: 0; font-size: 15.5px; line-height: 1.8; color: #7A2A1C; }
.danger strong { color: #B33A26; }
.kicker {
  font-family: var(--mono); font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 8px; display: block;
}
.callout .kicker { color: var(--accent-deep); }
.danger .kicker { color: #B33A26; }

/* ---- TOOL CTA ---- */
.tool-cta { max-width: 680px; margin: 8px auto 0; padding: 0 clamp(20px, 4vw, 32px); }
.tool-cta-card {
  background: var(--ink); border-radius: var(--r-lg); padding: 32px 32px;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.tool-cta-card::before {
  content: ''; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px;
  border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--cat) 40%, transparent), transparent 70%);
  pointer-events: none;
}
.tool-cta-ico {
  width: 56px; height: 56px; border-radius: 15px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; color: #fff; position: relative;
  background: linear-gradient(150deg, color-mix(in srgb, var(--cat) 75%, white), var(--cat));
}
.tool-cta-ico svg { width: 26px; height: 26px; }
.tool-cta-text { flex: 1; min-width: 200px; position: relative; }
.tool-cta-text h3 { font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--paper-3); margin-bottom: 6px; }
.tool-cta-text p { font-size: 14px; color: rgba(247,232,210,0.6); line-height: 1.7; margin: 0; }

/* ---- MORE ---- */
.more { max-width: 680px; margin: 56px auto 0; padding: 0 clamp(20px, 4vw, 32px) 90px; }
.more-title { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 18px; }
.more-links { display: grid; gap: 12px; }
.more-link {
  display: flex; align-items: center; gap: 14px;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r);
  padding: 16px 20px; text-decoration: none; color: var(--ink);
  font-weight: 700; font-size: 14.5px; box-shadow: var(--shadow-sm);
  transition: box-shadow .25s, transform .25s, border-color .2s;
}
.more-link:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--accent); }
.more-link .ml-ico { width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #fff; background: var(--ink-soft); }
.more-link .ml-ico svg { width: 19px; height: 19px; }
.more-link .ml-go { margin-left: auto; color: var(--ink-mute); }
.more-link .ml-go svg { width: 18px; height: 18px; }

@media (max-width: 560px) {
  .nav-link { display: none; }
  .article h2::before { display: none; }
}
