/* ==========================================================================
   公众号样例 · 微信文章排版
   仅供 /wechat/samples/sample-*.html 三篇独立文档使用。
   不进站点页面，不引用 tokens/base/components；字号与灰度按微信文章真实规格：
   标题 22/1.4 · 正文 17/1.75 · #333 · 段距 1em · 图片通栏。
   ========================================================================== */

:root {
  --wq-pad: 20px;
  --wq-ink: #1a1a1a;
  --wq-text: #333;
  --wq-soft: #5a5f65;
  --wq-mute: #6f757b;
  --wq-line: #ececec;
  --wq-line-2: #e2e4df;
  --wq-surface: #f7f8f6;
  --wq-blue: #576b95;
  --wq-accent: #2b45ff;
  --wq-accent-ink: #c23c00;
  --wq-dark: #14171a;
  --wq-font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --wq-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

@media (max-width: 419px) {
  :root { --wq-pad: 16px; }
}

* { box-sizing: border-box; }

html {
  background: #ededed;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #ededed;
  color: var(--wq-text);
  font-family: var(--wq-font);
  font-size: 17px;
  line-height: 1.75;
  overflow-x: hidden;
}

img { max-width: 100%; }

::selection {
  background: rgba(255, 90, 31, .18);
}

/* ---------- 文档壳 ---------- */

.wq-article {
  position: relative;
  max-width: 677px;
  min-height: 100vh;
  margin: 0 auto;
  background: #fff;
  overflow-x: clip;
}

@media (min-width: 720px) {
  body { padding: 32px 0 48px; }
  .wq-article {
    min-height: 0;
    box-shadow: 0 1px 2px rgba(14, 16, 18, .05), 0 24px 64px -28px rgba(14, 16, 18, .25);
  }
}

/* 顶部演示标注 */
.wq-note {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 9px var(--wq-pad);
  border-bottom: 1px solid var(--wq-line);
  background: #f5f6f3;
  color: #666c72;
  font-size: 11px;
  line-height: 1;
  letter-spacing: .08em;
}

.wq-note::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: none;
  background: var(--wq-accent);
}

/* ---------- 头图 2.35:1 ---------- */

.wq-banner {
  position: relative;
  margin: 0;
  aspect-ratio: 2.35 / 1;
  overflow: hidden;
  background: #15181b;
}

.wq-banner__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.wq-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 12, 14, 0) 32%,
    rgba(10, 12, 14, .58) 70%,
    rgba(10, 12, 14, .88) 100%
  );
  pointer-events: none;
}

.wq-banner__text {
  position: absolute;
  left: var(--wq-pad);
  right: var(--wq-pad);
  bottom: 13px;
  z-index: 1;
  color: #fff;
}

/* 画面左下自带字幕时，文字改放右下 */
.wq-banner--right .wq-banner__text {
  left: auto;
  max-width: 74%;
  text-align: right;
}

.wq-banner__kicker {
  margin: 0 0 5px;
  color: #ff8a5c;
  font-family: var(--wq-mono);
  font-size: 9.5px;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.wq-banner__title {
  margin: 0;
  font-size: clamp(15px, 4.6vw, 20px);
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -.01em;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .35);
  text-wrap: balance;
}

/* 封面规格小标（演示用） */
.wq-coverspec {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin: 11px 0 0;
  color: #6f757b;
  font-size: 10.5px;
  line-height: 1.5;
  letter-spacing: .02em;
}

.wq-coverspec__label {
  font-family: var(--wq-mono);
  font-size: 10px;
  color: #6f757b;
  letter-spacing: .12em;
}

.wq-coverspec__item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.wq-coverspec__box {
  display: inline-block;
  border: 1px dashed #c9ccc7;
  background: #f6f7f4;
}

.wq-coverspec__box--wide { width: 32px; height: 14px; }
.wq-coverspec__box--square { width: 14px; height: 14px; }

/* ---------- 正文容器 ---------- */

.wq-pad { padding: 0 var(--wq-pad); }

.wq-title {
  margin: 16px 0 10px;
  color: var(--wq-ink);
  font-size: 22px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: -.01em;
  text-wrap: balance;
}

.wq-byline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
  font-size: 13px;
  line-height: 1.5;
}

.wq-account {
  color: var(--wq-blue);
  font-weight: 500;
}

.wq-date {
  color: var(--wq-mute);
}

.wq-date::before {
  content: "·";
  margin-right: 8px;
  color: #c9ccc7;
}

.wq-content { padding-bottom: 8px; }

.wq-p {
  margin: 1.05em 0;
  color: var(--wq-text);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: .02em;
  text-align: justify;
  text-justify: inter-ideograph;
  overflow-wrap: break-word;
}

.wq-p:first-child { margin-top: 0; }

.wq-p--left { text-align: left; }

.wq-p strong {
  font-weight: 600;
  color: var(--wq-ink);
}

.wq-p a {
  color: var(--wq-blue);
  text-decoration: none;
  border-bottom: 1px solid rgba(87, 107, 149, .28);
}

.wq-em {
  color: var(--wq-accent-ink);
  font-weight: 600;
}

.wq-note-soft {
  color: #6f757b;
  font-size: 13.5px;
  font-weight: 400;
}

.wq-nowrap { white-space: nowrap; }

.wq-lead {
  margin: 0 0 1.5em;
  padding: 2px 0 2px 12px;
  border-left: 3px solid var(--wq-accent);
  color: #45494e;
  font-size: 16px;
  line-height: 1.8;
  font-weight: 500;
  letter-spacing: .01em;
}

/* ---------- 小标题 ---------- */

.wq-h2 {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 1.95em 0 .7em;
  color: var(--wq-ink);
  font-size: 20px;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: -.005em;
}

.wq-h2__no {
  flex: none;
  color: var(--wq-accent-ink);
  font-family: var(--wq-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .06em;
}

.wq-h3 {
  margin: 1.6em 0 .5em;
  color: var(--wq-ink);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 600;
}

/* ---------- 图片（通栏） ---------- */

.wq-fig {
  margin: 1.75em calc(var(--wq-pad) * -1);
}

.wq-fig__img {
  display: block;
  width: 100%;
  height: auto;
  background: #f2f3f0;
}

.wq-fig__cap {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 8px 0 0;
  padding: 0 var(--wq-pad);
  color: var(--wq-mute);
  font-size: 12px;
  line-height: 1.65;
  letter-spacing: .01em;
}

.wq-fig__no {
  flex: none;
  color: var(--wq-accent-ink);
  font-family: var(--wq-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .07em;
  white-space: nowrap;
}

/* ---------- 引用 ---------- */

.wq-quote {
  margin: 1.8em 0;
  padding: 14px 16px;
  border-left: 3px solid var(--wq-accent);
  background: #faf9f7;
  color: #40454b;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: .01em;
}

.wq-quote p { margin: 0; }

.wq-quote cite {
  display: block;
  margin-top: 8px;
  color: var(--wq-mute);
  font-size: 12px;
  font-style: normal;
  letter-spacing: .02em;
}

/* ---------- 分割线 ---------- */

.wq-hr {
  height: 1px;
  margin: 2.2em 0;
  border: 0;
  background: var(--wq-line);
}

/* ---------- 参数卡 ---------- */

.wq-spec-card {
  margin: 1.8em 0;
  border: 1px solid var(--wq-line-2);
  background: var(--wq-surface);
  overflow: hidden;
}

.wq-spec-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 15px 12px;
  border-bottom: 1px solid var(--wq-line-2);
}

.wq-spec-card__title {
  margin: 0;
  color: var(--wq-ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.wq-spec-card__tag {
  flex: none;
  padding: 2px 6px;
  background: rgba(255, 90, 31, .1);
  color: var(--wq-accent-ink);
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: .06em;
}

.wq-spec-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.wq-spec-table th,
.wq-spec-table td {
  padding: 9px 15px;
  border-top: 1px solid #eaecE7;
  font-size: 14px;
  line-height: 1.6;
  text-align: left;
  vertical-align: top;
}

.wq-spec-table tr:first-child th,
.wq-spec-table tr:first-child td { border-top: 0; }

.wq-spec-table th {
  width: 46%;
  color: #6d7378;
  font-weight: 400;
  letter-spacing: .01em;
}

.wq-spec-table td {
  color: var(--wq-ink);
  font-weight: 600;
  letter-spacing: .01em;
}

.wq-spec-card__note {
  margin: 0;
  padding: 10px 15px 13px;
  border-top: 1px solid var(--wq-line-2);
  color: #6f757b;
  font-size: 11.5px;
  line-height: 1.65;
  letter-spacing: .01em;
}

/* ---------- 编号要点 ---------- */

.wq-points {
  margin: 1.2em 0 1.4em;
  padding: 0;
  list-style: none;
  counter-reset: wq-point;
}

.wq-point {
  position: relative;
  margin: 0 0 1.3em;
  padding-left: 34px;
  counter-increment: wq-point;
}

.wq-point:last-child { margin-bottom: .4em; }

.wq-point::before {
  content: counter(wq-point, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: .18em;
  color: var(--wq-accent-ink);
  font-family: var(--wq-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .04em;
}

.wq-point__t {
  margin: 0 0 .3em;
  color: var(--wq-ink);
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.6;
}

/* 变体：不用数字（避免与小标题编号撞号），改成方点 */
.wq-points--dot .wq-point {
  padding-left: 18px;
}

.wq-points--dot .wq-point::before {
  content: "";
  top: .72em;
  width: 6px;
  height: 6px;
  background: var(--wq-accent);
}

/* 变体：Q1 / Q2 / Q3（选型问题） */
.wq-points--q .wq-point::before {
  content: "Q" counter(wq-point);
  letter-spacing: 0;
}

.wq-point__d {
  margin: 0;
  color: var(--wq-soft);
  font-size: 15px;
  line-height: 1.78;
  letter-spacing: .01em;
  text-align: justify;
  text-justify: inter-ideograph;
}

/* ---------- 邀请卡 ---------- */

.wq-invite {
  margin: 1.7em 0;
  padding: 15px 15px 13px;
  border: 1px solid var(--wq-line-2);
  border-top: 3px solid var(--wq-accent);
  background: linear-gradient(180deg, #fbfbf9, #f5f6f3);
}

.wq-invite__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.wq-invite__title {
  margin: 0;
  color: var(--wq-ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

.wq-invite__meta {
  flex: none;
  color: #6f757b;
  font-family: var(--wq-mono);
  font-size: 9.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.wq-invite__rows {
  margin: 10px 0 0;
}

.wq-invite__row {
  display: flex;
  gap: 12px;
  padding: 7px 0;
  border-top: 1px dashed #e2e4df;
}

.wq-invite__row:first-child { border-top: 0; padding-top: 3px; }

.wq-invite__row dt {
  flex: none;
  width: 54px;
  padding-top: 2px;
  color: #6f757b;
  font-size: 12px;
  line-height: 1.55;
  letter-spacing: .02em;
}

.wq-invite__row dd {
  margin: 0;
  color: #1f2225;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: .01em;
}

.wq-invite__hl { color: var(--wq-accent-ink); }

/* ---------- 流程时间轴 ---------- */

.wq-timeline {
  margin: 1.2em 0 1.5em;
  padding: 0 0 0 20px;
  border-left: 2px solid #ededed;
  list-style: none;
}

.wq-timeline__item {
  position: relative;
  padding: 0 0 1.15em;
}

.wq-timeline__item:last-child { padding-bottom: .2em; }

.wq-timeline__item::before {
  content: "";
  position: absolute;
  left: -25px;
  top: .9em;
  width: 8px;
  height: 8px;
  border: 2px solid var(--wq-accent);
  border-radius: 50%;
  background: #fff;
}

.wq-timeline__time {
  display: block;
  margin-bottom: 1px;
  color: var(--wq-accent-ink);
  font-family: var(--wq-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .05em;
}

.wq-timeline__t {
  display: block;
  color: var(--wq-ink);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.6;
}

.wq-timeline__d {
  margin: 2px 0 0;
  color: #6a6f75;
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: .01em;
}

/* ---------- 报名 / 二维码占位 ---------- */

.wq-signup {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 1.4em 0;
}

.wq-qr {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 118px;
  aspect-ratio: 1;
  padding: 8px;
  border: 1px dashed #c7cbc5;
  background-color: #fbfbf9;
  background-image:
    repeating-linear-gradient(0deg, rgba(20, 23, 26, .07) 0 1px, transparent 1px 6px),
    repeating-linear-gradient(90deg, rgba(20, 23, 26, .07) 0 1px, transparent 1px 6px);
}

.wq-qr__label {
  padding: 4px 6px;
  background: #fff;
  color: #666c72;
  font-size: 10.5px;
  line-height: 1.5;
  text-align: center;
  letter-spacing: .02em;
}

.wq-signup__text {
  margin: 0;
  color: #5a5f65;
  font-size: 13px;
  line-height: 1.75;
  letter-spacing: .01em;
}

.wq-signup__text b {
  display: block;
  margin-bottom: 2px;
  color: var(--wq-ink);
  font-size: 14px;
  font-weight: 600;
}

.wq-signup__text span { color: #6f757b; font-size: 11.5px; }

/* ---------- 文末关注卡 ---------- */

.wq-follow {
  margin: 1.9em 0 0;
  padding: 20px var(--wq-pad) 22px;
  background: var(--wq-dark);
  color: #e9ebe7;
}

.wq-follow__head {
  display: flex;
  align-items: center;
  gap: 11px;
}

.wq-follow__mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  background: var(--wq-accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 0 100%);
}

.wq-follow__name {
  margin: 0;
  color: #f2f4f0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .02em;
}

.wq-follow__desc {
  margin: 2px 0 0;
  color: #969da4;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: .04em;
}

.wq-follow__line {
  margin: 13px 0 14px;
  color: #b7bdc3;
  font-size: 13px;
  line-height: 1.75;
  letter-spacing: .01em;
}

.wq-follow__actions {
  display: flex;
  gap: 10px;
}

.wq-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 44px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .02em;
  border-radius: 2px;
}

.wq-btn--primary {
  background: var(--wq-accent);
  color: #fff;
}

.wq-btn--ghost {
  border: 1px solid rgba(233, 235, 231, .34);
  color: #e9ebe7;
}

.wq-follow__meta {
  margin: 11px 0 0;
  color: #7f868e;
  font-size: 10.5px;
  line-height: 1.6;
  letter-spacing: .05em;
}

/* ---------- 键盘可达 ---------- */

.wq-article a:focus-visible,
.wq-article button:focus-visible {
  outline: 2px solid var(--wq-accent);
  outline-offset: 3px;
}

/* ---------- 动效降级 ---------- */

@media (hover: hover) {
  .wq-p a:hover { border-bottom-color: var(--wq-accent); }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
