/* ==========================================================================
   蔚蓝探索 —— 专题文章页（Apple 式编辑排版）
   --------------------------------------------------------------------------
   只作用于正文含 <header class="wx-hero"> 的文章（模板加 .wl-post--story）。
   结构：hero → 数据条 → 章节（标签+正文）→ 三栏事实 → 参数表 → 认证语
   ========================================================================== */

/* ---------- 页面骨架：去侧栏、去卡片、全宽 ---------- */
.wl-post--story {
  display: block !important;
  max-width: none !important;
  margin-top: 0 !important;
  gap: 0 !important;
  padding: 0 !important;
}

.wl-post--story .wl-post__col {
  width: 100%;
}

.wl-post--story .wl-post__meta {
  display: flex;
  flex-direction: column;
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

/* 作者行沉到正文之后，作为一行署名 */
.wl-post--story .wl-post__meta > * {
  order: 3;
}

.wl-post--story .wl-post__meta > div:first-child {
  order: 2;
  margin-top: 76px;
  padding: 22px 24px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.09);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  box-sizing: border-box;
}

/* 标题由 hero 承担，默认标题与标签不再重复 */
.wl-post--story .wl-post__h1,
.wl-post--story .wl-post__meta > .my-3 {
  display: none !important;
}

.wl-post--story .wl-post__body {
  order: 1;
  padding: 0 !important;
  font-size: 17px;
}

/* 上下篇导航与正文对齐 */
.wl-post--story .wl-post__meta > div.mt-10 {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  width: 100%;
  box-sizing: border-box;
  margin-top: 36px !important;
}

/* 正文内所有区块共用同一条左基线（1080 - 24），段落再单独收窄行宽 */
.wl-post__body .wx-block,
.wl-post__body .wx-facts,
.wl-post__body .wx-note,
.wl-post__body .wx-meta,
.wl-post__body .wx-quote {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}

/* ---------- Hero ---------- */
.wl-post__body .wx-hero {
  max-width: 720px;
  margin: 0 auto;
  padding: 88px 24px 0;
  box-sizing: border-box;
}

.wx-hero__kicker {
  margin: 0 0 20px !important;
  font-size: 12px !important;
  line-height: 1 !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase;
  color: var(--wl-primary) !important;
  font-weight: 500 !important;
}

.wl-post__body .wx-hero__title {
  margin: 0 !important;
  font-size: clamp(42px, 7.6vw, 82px) !important;
  line-height: 1.02 !important;
  font-weight: 600 !important;
  letter-spacing: -0.035em !important;
  color: #061520 !important;
  border: 0 !important;
  padding: 0 !important;
}

.wx-hero__latin {
  margin: 18px 0 0 !important;
  font-size: 13px !important;
  letter-spacing: 0.09em !important;
  color: #8a939b !important;
  font-variant-numeric: tabular-nums;
}

.wl-post__body .wx-hero__lede {
  margin: 40px 0 0 !important;
  font-size: clamp(21px, 2.7vw, 30px) !important;
  line-height: 1.5 !important;
  font-weight: 500 !important;
  letter-spacing: -0.01em !important;
  color: #0d1f2b !important;
  max-width: 22em;
}

.wl-post__body .wx-hero__sub {
  margin: 24px 0 0 !important;
  font-size: 16px !important;
  line-height: 1.85 !important;
  color: #5d6b75 !important;
  max-width: 34em;
}

/* ---------- 数据条 ---------- */
.wl-post__body .wx-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0;
  max-width: 720px;
  margin: 64px auto 0;
  padding: 0 24px;
  box-sizing: border-box;
  border-top: 1px solid rgba(0, 0, 0, 0.11);
  padding-top: 30px;
}

.wx-stat {
  padding-right: 16px;
  /* 数字和单位之间只差一两像素就能放下，一旦换行整个单元格会掉下去。
     「40000 吨」正好卡在这个边界上，所以锁成不换行，溢出的一两像素
     落进右侧 16px 的内边距里，看不见。 */
  white-space: nowrap;
}

.wx-stat b {
  display: inline;
  font-size: clamp(34px, 3.8vw, 48px);
  line-height: 1;
  font-weight: 200;
  letter-spacing: -0.04em;
  color: #061520;
  font-variant-numeric: tabular-nums;
}

.wx-stat i {
  font-style: normal;
  font-size: 15px;
  font-weight: 400;
  color: #6b7883;
  margin-left: 2px;
}

.wx-stat span {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #7c8892;
}

/* ---------- 章节：左标签 + 右正文 ---------- */
.wl-post__body .wx-block {
  margin-top: clamp(72px, 9vw, 108px);
}

.wx-block__label {
  margin: 0 0 14px !important;
  font-size: 12px !important;
  line-height: 1 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase;
  color: var(--wl-primary) !important;
  font-weight: 500 !important;
}

.wl-post__body .wx-block h2 {
  margin: 0 0 26px !important;
  font-size: clamp(26px, 3.2vw, 36px) !important;
  line-height: 1.25 !important;
  font-weight: 600 !important;
  letter-spacing: -0.025em !important;
  color: #061520 !important;
  padding: 0 !important;
  border: 0 !important;
}

.wl-post__body .wx-block p,
.wl-post__body .wx-note p,
.wl-post__body .wx-quote p {
  margin: 0 0 20px !important;
  font-size: 17px !important;
  line-height: 1.9 !important;
  color: #3c4a54 !important;
  letter-spacing: 0.005em !important;
}

.wl-post__body .wx-block p:last-child {
  margin-bottom: 0 !important;
}

/* ---------- 三栏事实 ---------- */
.wl-post__body .wx-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 28px;
  margin-top: clamp(64px, 8vw, 92px);
}

.wx-fact {
  border-top: 1px solid rgba(0, 0, 0, 0.11);
  padding-top: 20px;
}

.wx-fact h3 {
  margin: 0 0 10px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  letter-spacing: -0.005em !important;
  color: #061520 !important;
}

.wx-fact p {
  margin: 0 !important;
  font-size: 14px !important;
  line-height: 1.75 !important;
  color: #6b7883 !important;
}

/* ---------- 参数表 ---------- */
.wl-post__body .wx-meta {
  margin-top: clamp(64px, 8vw, 92px);
}

.wx-meta dl {
  margin: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.11);
}

.wx-meta__row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 20px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.wx-meta__row dt {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: #87919a;
}

.wx-meta__row dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: #22323d;
}

/* ---------- 认证语 ---------- */
.wl-post__body .wx-note {
  margin-top: clamp(56px, 7vw, 80px);
}

.wl-post__body .wx-note p {
  font-size: 14px !important;
  line-height: 1.8 !important;
  color: #6b7883 !important;
  padding-left: 18px;
  border-left: 2px solid var(--wl-bright);
}

/* ---------- 引言块 ---------- */
.wl-post__body .wx-quote {
  margin-top: clamp(72px, 9vw, 104px);
  text-align: center;
}

.wl-post__body .wx-quote p {
  font-size: clamp(19px, 2.2vw, 24px) !important;
  line-height: 1.65 !important;
  font-weight: 500 !important;
  color: #0d1f2b !important;
  max-width: 26em;
  margin: 0 auto !important;
  letter-spacing: -0.01em !important;
}

/* ==========================================================================
   深色模式
   ========================================================================== */
.dark .wl-post__body .wx-hero__title,
.dark .wl-post__body .wx-hero__lede,
.dark .wl-post__body .wx-block h2,
.dark .wx-fact h3,
.dark .wl-post__body .wx-quote p,
.dark .wx-stat b {
  color: #f2f6f9 !important;
}

.dark .wl-post__body .wx-block p,
.dark .wx-meta__row dd {
  color: #aab6c0 !important;
}

.dark .wl-post__body .wx-hero__sub,
.dark .wx-fact p,
.dark .wl-post__body .wx-note p {
  color: #8a97a2 !important;
}

.dark .wl-post__body .wx-stats,
.dark .wx-fact,
.dark .wx-meta dl,
.dark .wx-meta__row {
  border-color: rgba(255, 255, 255, 0.14) !important;
}

.dark .wl-post--story .wl-post__meta > div:first-child {
  border-top-color: rgba(255, 255, 255, 0.14);
}

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 860px) {
  .wl-post__body .wx-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 0;
    margin-top: 52px;
  }

  .wl-post__body .wx-facts {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .wl-post__body .wx-hero {
    padding-top: 40px;
  }

  .wl-post__body .wx-hero__lede {
    margin-top: 28px !important;
  }

  .wl-post__body .wx-block {
    margin-top: 60px;
  }
}

@media (max-width: 560px) {
  .wx-meta__row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 13px 0;
  }

  .wx-stat b {
    font-size: 34px;
  }
}
