/* ==========================================================================
   亚文网主站 · 共享 Site Kit
   海风专题研究板：深海蓝框架 / 暖纸阅读 / 珊瑚橙行动签
   ========================================================================== */

/* ---------- 1. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 108px;
}

body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, li, figure, figcaption, blockquote, dl, dd {
  margin: 0;
}

ul, ol { padding: 0; list-style: none; }

img, svg, video { max-width: 100%; display: block; }

button, input, select, textarea { font: inherit; color: inherit; }

button { background: none; border: 0; cursor: pointer; }

a { color: inherit; }

/* ---------- 2. 变量 ---------- */
:root {
  --yw-deep: #0B3D5C;
  --yw-ink: #061E2D;
  --yw-paper: #F4EDE0;
  --yw-foam: #F8FBFA;
  --yw-coral: #FF6B4A;
  --yw-green: #2F7A5E;
  --yw-yellow: #E8B23A;
  --yw-mist: #8AA6B2;
  --yw-sand: #E3D5C0;

  --yw-font-sans: system-ui, -apple-system, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  --yw-font-mono: ui-monospace, "SFMono-Regular", "Menlo", "Consolas",
    "Liberation Mono", "Courier New", monospace;

  --yw-max: 1240px;
  --yw-gutter: clamp(18px, 4vw, 48px);
  --yw-line: 1px solid var(--yw-sand);

  --yw-shadow-paper: 0 1px 0 var(--yw-sand), 0 14px 26px -22px rgba(6, 30, 45, 0.65);
  --yw-ease: cubic-bezier(0.22, 0.75, 0.3, 1);
}

/* ---------- 3. 基础排版 ---------- */
body {
  font-family: var(--yw-font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--yw-ink);
  background-color: var(--yw-paper);
  background-image:
    radial-gradient(120% 55% at 100% 0%, rgba(11, 61, 92, 0.07), transparent 62%),
    radial-gradient(90% 40% at 0% 100%, rgba(47, 122, 94, 0.06), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.16;
  color: var(--yw-deep);
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 6vw, 5.6rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
h4 { font-size: clamp(1.05rem, 1.4vw, 1.2rem); }

p { max-width: 38ch; }
p + p { margin-top: 0.9em; }

::selection {
  background: var(--yw-coral);
  color: var(--yw-ink);
}

/* 页面四周细框架线（桌面） */
@media (min-width: 1120px) {
  body::before,
  body::after {
    content: "";
    position: fixed;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(11, 61, 92, 0.2);
    pointer-events: none;
    z-index: 60;
  }
  body::before { left: 18px; }
  body::after { right: 18px; }
}

/* ---------- 4. 焦点与可达性 ---------- */
:focus-visible {
  outline: 3px solid var(--yw-coral);
  outline-offset: 3px;
  border-radius: 2px;
}

.yw-skip {
  position: absolute;
  left: 16px;
  top: 8px;
  z-index: 220;
  display: inline-block;
  padding: 0.7em 1.1em;
  background: var(--yw-ink);
  color: var(--yw-foam);
  font-weight: 700;
  text-decoration: none;
  border-radius: 2px;
  border: 1px solid var(--yw-coral);
  transform: translateY(-260%);
  transition: transform 0.22s var(--yw-ease);
}
.yw-skip:focus {
  transform: translateY(0);
}

/* ---------- 5. 头部框架 ---------- */
.yw-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--yw-foam);
  border-bottom: 1px solid var(--yw-deep);
  color: var(--yw-deep);
  transition: box-shadow 0.28s var(--yw-ease);
}
.yw-header[data-compact="true"] {
  box-shadow: 0 18px 30px -26px rgba(6, 30, 45, 0.95);
}

.yw-topbar {
  background: var(--yw-deep);
  color: var(--yw-foam);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  max-height: 3rem;
  overflow: hidden;
  transition: max-height 0.3s var(--yw-ease);
}
.yw-header[data-compact="true"] .yw-topbar {
  max-height: 0;
}

.yw-topbar-inner {
  max-width: var(--yw-max);
  margin: 0 auto;
  padding: 0.4rem var(--yw-gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 1.2rem;
}

.yw-brandline {
  max-width: none;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.yw-meta {
  max-width: none;
  font-family: var(--yw-font-mono);
  font-size: 0.7rem;
  color: rgba(248, 251, 250, 0.72);
}

.yw-bar {
  position: relative;
  border-top: 1px solid rgba(11, 61, 92, 0.08);
}

.yw-bar-inner {
  max-width: var(--yw-max);
  margin: 0 auto;
  padding: 0.55rem var(--yw-gutter);
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

/* 品牌 */
.yw-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--yw-deep);
}

.yw-brand-mark {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  background: var(--yw-deep);
  color: var(--yw-foam);
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1;
  border-radius: 2px;
  box-shadow: 3px 3px 0 var(--yw-coral);
}

.yw-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.yw-brand-name {
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}

.yw-brand-sub {
  font-family: var(--yw-font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.05em;
  color: var(--yw-mist);
}

/* 导航 */
.yw-nav {
  margin-left: auto;
}

.yw-nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem;
}

.yw-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.5rem 0.78rem 0.62rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--yw-deep);
  font-size: 0.94rem;
  font-weight: 600;
  transition: background 0.18s var(--yw-ease), color 0.18s var(--yw-ease);
}

.yw-nav-link:hover {
  background: var(--yw-paper);
  color: var(--yw-ink);
}

.yw-nav-link[aria-current="page"] {
  background: var(--yw-paper);
  color: var(--yw-ink);
  font-weight: 800;
}

.yw-nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0.78rem;
  right: 0.78rem;
  bottom: 0.24rem;
  height: 3px;
  border-radius: 2px;
  background: var(--yw-coral);
}

/* 行动区 */
.yw-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.4rem;
}

/* 移动导航按钮 */
.yw-navtoggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--yw-deep);
  border-radius: 999px;
  background: var(--yw-foam);
  color: var(--yw-deep);
  font-size: 0.82rem;
  font-weight: 700;
  flex: 0 0 auto;
  transition: background 0.2s var(--yw-ease), color 0.2s var(--yw-ease);
}

.yw-navtoggle-lines {
  display: inline-grid;
  gap: 3px;
  width: 16px;
}

.yw-navtoggle-lines span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.22s var(--yw-ease), opacity 0.18s linear;
}

.yw-navtoggle[aria-expanded="true"] {
  background: var(--yw-deep);
  color: var(--yw-foam);
}

.yw-navtoggle[aria-expanded="true"] .yw-navtoggle-lines span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}
.yw-navtoggle[aria-expanded="true"] .yw-navtoggle-lines span:nth-child(2) {
  opacity: 0;
}
.yw-navtoggle[aria-expanded="true"] .yw-navtoggle-lines span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

/* 滚动进度 */
.yw-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--yw-coral), var(--yw-yellow));
  transition: width 0.1s linear;
}

/* ---------- 6. 按钮 ---------- */
.yw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45em;
  padding: 0.82em 1.2em;
  border: 1px solid var(--yw-deep);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s var(--yw-ease), background 0.2s var(--yw-ease),
    color 0.2s var(--yw-ease), box-shadow 0.2s var(--yw-ease), border-color 0.2s var(--yw-ease);
}

.yw-btn--primary {
  background: var(--yw-coral);
  border-color: var(--yw-coral);
  color: var(--yw-ink);
  box-shadow: 0 6px 0 -4px rgba(6, 30, 45, 0.32);
}
.yw-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 20px -14px rgba(11, 61, 92, 0.8);
}

.yw-btn--ghost {
  background: transparent;
  color: var(--yw-deep);
}
.yw-btn--ghost:hover {
  background: var(--yw-deep);
  border-color: var(--yw-deep);
  color: var(--yw-foam);
  transform: translateY(-2px);
}

.yw-btn:active {
  transform: translateY(0);
}

/* ---------- 7. 通用版式组件 ---------- */
.yw-container {
  width: 100%;
  max-width: var(--yw-max);
  margin: 0 auto;
  padding-inline: var(--yw-gutter);
}

.yw-section {
  padding-block: clamp(26px, 5vw, 64px);
}

.yw-divider {
  height: 1px;
  border: 0;
  background: var(--yw-sand);
}

.yw-grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
}

.yw-grid--split {
  display: grid;
  gap: clamp(20px, 3vw, 44px);
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.6fr);
  align-items: start;
}

.yw-display {
  font-size: clamp(2.6rem, 6vw, 5.6rem);
  letter-spacing: -0.03em;
}

.yw-lede {
  max-width: 38ch;
  font-size: clamp(1.02rem, 1.4vw, 1.2rem);
  line-height: 1.7;
  color: var(--yw-deep);
}

.yw-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  max-width: none;
  font-family: var(--yw-font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--yw-green);
}
.yw-eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--yw-yellow);
  flex: 0 0 auto;
}

.yw-chapter-no {
  font-family: var(--yw-font-mono);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--yw-yellow);
}

.yw-mono {
  font-family: var(--yw-font-mono);
  letter-spacing: 0.02em;
}

.yw-note {
  font-family: var(--yw-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  color: var(--yw-mist);
  writing-mode: vertical-rl;
  max-width: none;
}

/* 卡片与纸张叠层 */
.yw-card {
  position: relative;
  padding: clamp(16px, 2vw, 26px);
  background: var(--yw-foam);
  border: 1px solid var(--yw-sand);
  border-radius: 2px;
  box-shadow: var(--yw-shadow-paper);
}

.yw-card--paper {
  background: var(--yw-paper);
}

.yw-card--stack {
  box-shadow: 6px 6px 0 var(--yw-sand), 12px 12px 0 rgba(11, 61, 92, 0.1);
}

.yw-paper {
  background: var(--yw-paper);
  border: 1px solid var(--yw-sand);
  border-radius: 2px;
  padding: clamp(14px, 2vw, 24px);
}

/* 标签 */
.yw-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.24em 0.62em;
  border: 1px solid var(--yw-sand);
  border-radius: 999px;
  background: var(--yw-paper);
  color: var(--yw-deep);
  font-family: var(--yw-font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  max-width: none;
}

.yw-tag--coral {
  border-color: var(--yw-coral);
  background: rgba(255, 107, 74, 0.12);
  color: #8f2f18;
}

.yw-tag--green {
  border-color: var(--yw-green);
  background: rgba(47, 122, 94, 0.1);
  color: var(--yw-green);
}

/* 面包屑 */
.yw-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4em;
  padding-block: 0.9rem;
  font-family: var(--yw-font-mono);
  font-size: 0.76rem;
  color: var(--yw-mist);
}

.yw-breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}

.yw-breadcrumb li + li::before {
  content: "/";
  color: var(--yw-mist);
}

.yw-breadcrumb a {
  color: var(--yw-deep);
  text-decoration: none;
  border-bottom: 1px solid var(--yw-sand);
}
.yw-breadcrumb a:hover {
  border-color: var(--yw-coral);
}

/* 目录 */
.yw-toc {
  position: sticky;
  top: 104px;
  padding-left: 1rem;
  border-left: 2px solid var(--yw-sand);
  font-size: 0.88rem;
}

.yw-toc-title {
  max-width: none;
  margin-bottom: 0.6rem;
  font-family: var(--yw-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--yw-mist);
}

.yw-toc-list {
  display: grid;
  gap: 0.15rem;
}

.yw-toc-link {
  display: block;
  margin-left: -1.1rem;
  padding: 0.34rem 0.5rem 0.34rem 1rem;
  border-left: 2px solid transparent;
  border-radius: 2px;
  color: var(--yw-deep);
  text-decoration: none;
  transition: background 0.18s var(--yw-ease), border-color 0.18s var(--yw-ease);
}

.yw-toc-link:hover {
  background: rgba(227, 213, 192, 0.5);
}

.yw-toc-link[aria-current="true"] {
  background: rgba(255, 107, 74, 0.14);
  border-left-color: var(--yw-coral);
  color: var(--yw-ink);
  font-weight: 700;
}

/* 研究板 */
.yw-board {
  display: grid;
  gap: clamp(14px, 2vw, 24px);
  padding: clamp(16px, 2.4vw, 28px);
  background: var(--yw-foam);
  border: 1px solid var(--yw-deep);
  border-radius: 2px;
  box-shadow: 8px 8px 0 var(--yw-sand);
}

/* 图片容器 */
.yw-media {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--yw-sand);
  border-radius: 2px;
  background: var(--yw-sand);
}

.yw-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yw-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    100deg,
    rgba(248, 251, 250, 0.14) 0 1px,
    transparent 1px 14px
  );
  mix-blend-mode: soft-light;
}

.yw-media figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  padding: 0.6em 0.9em;
  background: linear-gradient(0deg, rgba(6, 30, 45, 0.82), rgba(6, 30, 45, 0));
  color: var(--yw-foam);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  max-width: none;
}

.yw-media--coast { background: linear-gradient(155deg, #0B3D5C, #2F7A5E 58%, #8AA6B2); }
.yw-media--city { background: linear-gradient(200deg, #0B3D5C, #061E2D 68%, #E8B23A); }
.yw-media--device { background: linear-gradient(140deg, #F4EDE0, #E3D5C0 58%, #FF6B4A); }
.yw-media--tall { aspect-ratio: 3 / 4; }
.yw-media--wide { aspect-ratio: 21 / 9; }

/* 入场动效 */
[data-reveal] {
  transition: opacity 0.34s var(--yw-ease), transform 0.34s var(--yw-ease);
}
.yw-js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
}
.yw-js [data-reveal][data-revealed="true"] {
  opacity: 1;
  transform: none;
}

/* ---------- 8. 页脚 ---------- */
.yw-footer {
  position: relative;
  margin-top: clamp(32px, 6vw, 80px);
  background: var(--yw-deep);
  color: var(--yw-foam);
  border-top: 4px solid var(--yw-coral);
  background-image: radial-gradient(120% 70% at 0% 0%, rgba(47, 122, 94, 0.28), transparent 58%);
}

.yw-footer-top {
  max-width: var(--yw-max);
  margin: 0 auto;
  padding: clamp(34px, 5vw, 64px) var(--yw-gutter) clamp(20px, 3vw, 32px);
  display: grid;
  gap: clamp(26px, 3.2vw, 48px);
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.55fr) minmax(0, 1fr);
}

.yw-footer-brand .yw-brand--footer {
  color: var(--yw-foam);
}

.yw-brand--footer .yw-brand-mark {
  background: var(--yw-coral);
  color: var(--yw-ink);
  box-shadow: 3px 3px 0 rgba(248, 251, 250, 0.22);
}

.yw-brand--footer .yw-brand-sub {
  color: rgba(248, 251, 250, 0.6);
}

.yw-footer-tagline {
  margin-top: 1rem;
  max-width: 26ch;
  color: rgba(248, 251, 250, 0.82);
  font-size: 0.98rem;
}

.yw-footer-note {
  margin-top: 0.55rem;
  max-width: 32ch;
  font-family: var(--yw-font-mono);
  font-size: 0.74rem;
  line-height: 1.7;
  letter-spacing: 0.03em;
  color: rgba(248, 251, 250, 0.55);
}

.yw-footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.yw-footer-title {
  max-width: none;
  margin-bottom: 0.85rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--yw-yellow);
}

.yw-footer-list li + li {
  margin-top: 0.3rem;
}

.yw-footer-link {
  display: inline-block;
  padding: 0.16rem 0;
  color: rgba(248, 251, 250, 0.82);
  font-size: 0.92rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--yw-ease), border-color 0.18s var(--yw-ease);
}

.yw-footer-link:hover {
  color: var(--yw-foam);
  border-bottom-color: var(--yw-coral);
}

.yw-contact-list {
  display: grid;
  gap: 0.85rem;
}

.yw-contact-item {
  display: grid;
  gap: 0.1rem;
}

.yw-contact-label {
  font-family: var(--yw-font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: rgba(248, 251, 250, 0.5);
}

.yw-contact-value {
  font-family: var(--yw-font-mono);
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--yw-foam);
  overflow-wrap: anywhere;
}

.yw-copybtn {
  justify-self: start;
  margin-top: 0.4rem;
  padding: 0.4em 0.8em;
  border: 1px solid rgba(248, 251, 250, 0.4);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--yw-foam);
  transition: background 0.18s var(--yw-ease), border-color 0.18s var(--yw-ease),
    color 0.18s var(--yw-ease);
}

.yw-copybtn:hover {
  border-color: var(--yw-coral);
  color: var(--yw-coral);
}

.yw-copybtn[data-copied="true"] {
  background: var(--yw-coral);
  border-color: var(--yw-coral);
  color: var(--yw-ink);
}

.yw-footer-bottom {
  max-width: var(--yw-max);
  margin: 0 auto;
  padding: 1rem var(--yw-gutter) clamp(1.6rem, 3vw, 2.4rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.4rem;
  border-top: 1px solid rgba(248, 251, 250, 0.16);
  font-size: 0.78rem;
  color: rgba(248, 251, 250, 0.62);
}

.yw-legal,
.yw-service,
.yw-copyright {
  max-width: none;
  font-family: var(--yw-font-mono);
  letter-spacing: 0.04em;
}

.yw-service {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
}

.yw-service::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--yw-green);
  flex: 0 0 auto;
}

/* 返回顶部 */
.yw-totop {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.68em 1em;
  border: 1px solid var(--yw-coral);
  border-radius: 999px;
  background: var(--yw-ink);
  color: var(--yw-foam);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 12px 22px -16px rgba(6, 30, 45, 0.9);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s var(--yw-ease), transform 0.25s var(--yw-ease),
    background 0.2s var(--yw-ease);
}

.yw-totop[data-visible="true"] {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.yw-totop:hover {
  background: var(--yw-deep);
}

/* ---------- 9. 响应式 ---------- */
@media (max-width: 1080px) {
  .yw-navtoggle {
    display: inline-flex;
  }

  .yw-actions {
    margin-left: auto;
  }

  .yw-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    padding: 0.4rem var(--yw-gutter) 1.1rem;
    max-height: min(70vh, 520px);
    overflow: auto;
    display: none;
    background: var(--yw-foam);
    border-top: 1px solid var(--yw-sand);
    border-bottom: 1px solid var(--yw-deep);
    box-shadow: 0 26px 34px -30px rgba(6, 30, 45, 0.8);
    z-index: 120;
  }

  .yw-nav[data-open="true"] {
    display: block;
  }

  .yw-nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    counter-reset: ywnav;
  }

  .yw-nav-item {
    counter-increment: ywnav;
  }

  .yw-nav-item + .yw-nav-item {
    border-top: 1px dashed var(--yw-sand);
  }

  .yw-nav-link {
    justify-content: flex-start;
    padding: 0.85rem 0.2rem 0.9rem;
    border-radius: 0;
    font-size: 1rem;
  }

  .yw-nav-link::before {
    content: "0" counter(ywnav);
    font-family: var(--yw-font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    color: var(--yw-mist);
    flex: 0 0 auto;
  }

  .yw-nav-link:hover {
    background: transparent;
    color: var(--yw-ink);
  }

  .yw-nav-link[aria-current="page"] {
    background: rgba(255, 107, 74, 0.1);
  }

  .yw-nav-link[aria-current="page"]::after {
    left: 0;
    right: auto;
    bottom: 0.36rem;
    width: 22px;
  }

  .yw-footer-top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .yw-footer-brand {
    grid-column: 1 / -1;
  }

  .yw-footer-contact {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .yw-grid--split {
    grid-template-columns: 1fr;
  }

  .yw-toc {
    position: static;
    border-left: 0;
    border-top: 2px solid var(--yw-sand);
    padding-left: 0;
    padding-top: 0.8rem;
  }

  .yw-toc-link {
    margin-left: 0;
    padding-left: 0.6rem;
  }
}

@media (max-width: 720px) {
  .yw-topbar-inner {
    justify-content: flex-start;
  }

  .yw-meta {
    display: none;
  }

  .yw-footer-cols {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.6rem;
  }

  .yw-footer-bottom {
    padding-bottom: 4.2rem;
  }
}

@media (max-width: 560px) {
  .yw-bar-inner {
    gap: 0.5rem;
    padding-inline: var(--yw-gutter);
    min-height: 60px;
  }

  .yw-brand-sub {
    display: none;
  }

  .yw-brand-mark {
    width: 2rem;
    height: 2rem;
    font-size: 0.95rem;
  }

  .yw-brand-name {
    font-size: 0.94rem;
  }

  .yw-btn {
    padding: 0.6em 0.7em;
    font-size: 0.72rem;
  }

  .yw-actions {
    gap: 0.3rem;
  }

  .yw-navtoggle {
    padding: 0.45rem 0.6rem;
    font-size: 0.74rem;
  }

  .yw-footer-cols {
    grid-template-columns: 1fr;
  }

  .yw-footer-tagline {
    max-width: none;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .yw-js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .yw-btn--primary:hover,
  .yw-btn--ghost:hover {
    transform: none;
  }

  .yw-totop {
    transform: none;
  }
}
