/* ============================================================
   MuHome官网主题
   白底 + 绿色强调 + 虚线分栏 + mono 点缀。
   全部样式自包含，只作用于 .yi-home。
   ============================================================ */

body {
  margin: 0;
}

.yi-home {
  --g: #22c55e;  --g-strong: #16a34a;
  --g-bar: #4ade80;
  --g-soft: #86efac;
  --mint: #dcfce7;
  --mint-2: #f0fdf4;
  --panel: #f5faf6;
  --ink: #0a0a0a;
  --ink-2: #27272a;
  --body: #52525b;
  --mute: #71717a;
  --line: #d4d4d8;
  --line-2: #e4e4e7;
  --pink: #f9a8d4;
  --bg: #ffffff;
  --card: #ffffff;
  --panel: #f5faf6;
  --chip-ink: #14532d;
  --btn-fg: #ffffff;
  --btn-dark-hover: #27272a;
  --accent-hover: #052e16;
  --link: #15803d;
  --code-ink: #18181b;
  --code-mute: #a1a1aa;
  --code-num: #d4d4d8;
  --code-str: #15803d;
  --sans: "Inter", "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", "Cascadia Mono", Menlo, Consolas, "Liberation Mono", "PingFang SC", "Microsoft YaHei", monospace;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  text-align: left;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.yi-home *,
.yi-home *::before,
.yi-home *::after { box-sizing: border-box; }

.yi-home a { color: inherit; text-decoration: none; }

.yi-home h1, .yi-home h2, .yi-home h3, .yi-home p,
.yi-home ol, .yi-home pre { margin: 0; padding: 0; font-size: inherit; font-weight: inherit; }

.yi-home ol { list-style: none; }
.yi-home svg { display: block; }

.yi-home .yh-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  font-family: var(--mono);
  font-size: 13px;
}
.yi-home .yh-skip:focus { left: 12px; top: 12px; }

.yi-home .yh-wrap {
  max-width: 1312px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

.yi-home .yh-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--mint) center/cover no-repeat;
  color: var(--chip-ink);
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--g);
}

/* ---------- 公告条 ---------- */
.yi-home .yh-bar {
  background: var(--g-bar);
  color: #052e16;
  font-size: 15px;
  line-height: 1.4;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  text-align: center;
}
.yi-home .yh-bar-tag {
  font-family: var(--mono);
  font-size: 12px;
  background: #052e16;
  color: var(--g-bar);
  padding: 2px 8px;
  letter-spacing: .08em;
}
.yi-home .yh-bar a {
  font-family: var(--mono);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  white-space: nowrap;
}
.yi-home .yh-bar a:hover { color: #000; }

/* ---------- 导航 ---------- */
.yi-home .yh-nav { border-bottom: 1px dashed var(--line); background: var(--bg); }
.yi-home .yh-nav-in { height: 84px; display: flex; align-items: center; gap: 40px; }
.yi-home .yh-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: .02em;
  white-space: nowrap;
  color: var(--ink);
}
.yi-home .yh-links { display: flex; gap: 30px; font-size: 17px; color: var(--ink-2); }
.yi-home .yh-links a:hover { color: var(--link); }
.yi-home .yh-nav-cta { margin-left: auto; display: flex; gap: 14px; }

/* ---------- 按钮 ---------- */
.yi-home .yh-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .03em;
  line-height: 1.2;
  padding: 15px 20px;
  border: 1px solid var(--ink);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s;
  white-space: nowrap;
  cursor: pointer;
}
.yi-home .yh-btn b { font-weight: 400; font-size: 20px; line-height: 1; transition: transform .16s ease; }
.yi-home .yh-btn:hover { transform: translate(-4px, -4px); box-shadow: 4px 4px 0 var(--g-bar); }
.yi-home .yh-btn:hover b { transform: translateX(3px); }
.yi-home .yh-btn:active { transform: translate(0, 0); box-shadow: 0 0 0 var(--g-bar); transition-duration: .06s; }
.yi-home .yh-btn-dark { background: var(--ink); color: var(--btn-fg); }
.yi-home .yh-btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
.yi-home .yh-btn-ghost:hover { border-color: var(--ink); }
.yi-home .yh-btn-sm { font-size: 14px; padding: 10px 16px; }
.yi-home .yh-btn-sm:hover { transform: translate(-3px, -3px); box-shadow: 3px 3px 0 var(--g-bar); }
.yi-home .yh-btn-light { background: var(--card); color: var(--ink); border-color: #052e16; }
.yi-home .yh-btn.is-disabled { opacity: .4; pointer-events: none; }

.yi-home .yh-cta .yh-btn { transition: background .15s, border-color .15s; }
.yi-home .yh-cta .yh-btn:hover,
.yi-home .yh-cta .yh-btn:active { transform: none; box-shadow: none; }
.yi-home .yh-cta .yh-btn:hover b { transform: none; }
.yi-home .yh-cta .yh-btn-dark:hover { background: var(--btn-dark-hover); border-color: var(--btn-dark-hover); }
.yi-home .yh-cta .yh-btn-light:hover { background: var(--mint-2); }

@media (prefers-reduced-motion: reduce) {
  .yi-home .yh-btn,
  .yi-home .yh-btn b { transition: none; }
  .yi-home .yh-btn:hover { transform: none; }
}

/* ---------- Hero ---------- */
.yi-home .yh-hero-in {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  padding-top: 52px;
  padding-bottom: 60px;
}
.yi-home .yh-hero-text { position: relative; }
.yi-home .yh-hero h1 {
  font-size: clamp(36px, 4.1vw, 56px);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -.005em;
  position: relative;
  display: inline-block;
  max-width: 100%;
}
.yi-home .yh-mark {
  background: var(--g-bar);
  color: #052e16;
  padding: 0 .14em;
  white-space: nowrap;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.yi-home .yh-sq {
  position: absolute;
  right: -30px;
  top: 14px;
  width: 12px;
  height: 12px;
  background: var(--pink);
}
.yi-home .yh-lead {
  margin-top: 28px;
  font-size: 21px;
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 620px;
}
.yi-home .yh-actions { margin-top: 38px; display: flex; gap: 14px; flex-wrap: wrap; }
.yi-home .yh-mini {
  margin-top: 30px;
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--mute);
}
.yi-home .yh-mini span { display: inline-flex; align-items: center; gap: 8px; }
.yi-home .yh-mini i { width: 8px; height: 8px; background: var(--g); display: inline-block; }
.yi-home .yh-hero-art { position: relative; }
.yi-home .yh-hero-art svg { width: 100%; height: auto; }

/* ---------- SVG 插画 ---------- */
.yi-home .yh-art .ln { fill: none; stroke: var(--g); stroke-width: 1.3; }
.yi-home .yh-art .dl { fill: none; stroke: var(--g); stroke-width: 1.2; stroke-dasharray: 4 4; }
.yi-home .yh-art .lb rect { fill: var(--mint-2); stroke: var(--g); stroke-width: 1.2; }
.yi-home .yh-art .lb text {
  font-family: var(--mono);
  font-size: 12.5px;
  fill: var(--chip-ink);
  letter-spacing: .04em;
}
.yi-home .yh-art .dot { fill: var(--g); }
.yi-home .yh-art .dot-pink { fill: var(--pink); }
.yi-home .yh-art .ground { fill: var(--mint-2); }

/* ---------- 技术栈条 ---------- */
.yi-home .yh-logos { border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }
.yi-home .yh-grid5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-left: 1px dashed var(--line);
  border-right: 1px dashed var(--line);
}
.yi-home .yh-logo {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 21px;
  font-weight: 700;
  color: var(--ink);
  border-right: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
  transition: background .15s, color .15s;
}
.yi-home .yh-logo:nth-child(5n) { border-right: 0; }
.yi-home .yh-logo:nth-last-child(-n+5) { border-bottom: 0; }
.yi-home .yh-logo:hover { background: var(--mint-2); color: var(--link); }
.yi-home .yh-logo-sq { width: 14px; height: 14px; background: var(--g); flex: none; }
.yi-home .yh-logo:hover .yh-logo-sq { background: var(--g-strong); }

/* ---------- 区块骨架 ---------- */
.yi-home .yh-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--ink-2);
  border: 1px solid var(--mute);
  background: var(--card);
  padding: 3px 10px;
  line-height: 1.5;
}
.yi-home .yh-sec { border-bottom: 1px dashed var(--line); }
.yi-home .yh-frame { border-left: 1px dashed var(--line); border-right: 1px dashed var(--line); }
.yi-home .yh-sec-head { text-align: center; padding: 100px 24px 60px; }
.yi-home .yh-h2 {
  margin-top: 22px;
  font-size: 54px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -.005em;
}
.yi-home .yh-sec-more {
  display: inline-block;
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--link);
  border-bottom: 1px solid var(--g-soft);
}
.yi-home .yh-sec-more:hover { color: var(--accent-hover); border-color: var(--g); }

/* ---------- 特性四栏 ---------- */
.yi-home .yh-grid4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px dashed var(--line);
}
.yi-home .yh-feat {
  padding: 36px 30px 44px;
  border-right: 1px dashed var(--line);
  transition: background .2s;
}
.yi-home .yh-feat:last-child { border-right: 0; }
.yi-home .yh-feat:hover { background: var(--mint-2); }
.yi-home .yh-feat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}
.yi-home .yh-feat-ic { width: 56px; height: 56px; color: var(--g-strong); flex: none; }
.yi-home .yh-feat-ic svg { width: 100%; height: 100%; }
.yi-home .yh-feat h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.yi-home .yh-feat p { font-size: 15.5px; color: var(--body); line-height: 1.8; }

.yi-home .yh-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--chip-ink);
  background: var(--mint);
  padding: 4px 10px;
  white-space: nowrap;
}
.yi-home .yh-pill i { width: 7px; height: 7px; background: var(--g); display: inline-block; }

/* ---------- 流程 + 联系卡 ---------- */
.yi-home .yh-split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.yi-home .yh-start-l { padding: 84px 56px 84px 48px; border-right: 1px dashed var(--line); }
.yi-home .yh-start-r {
  padding: 72px 48px 72px 44px;
  background-color: var(--panel);
  background-image: radial-gradient(#bbf7d0 1.2px, transparent 1.3px);
  background-size: 20px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.yi-home .yh-start .yh-h2 { font-size: 48px; }
.yi-home .yh-start-lead { margin-top: 14px; font-size: 17px; color: var(--body); }

.yi-home .yh-steps { margin-top: 40px; }
.yi-home .yh-steps li {
  position: relative;
  display: flex;
  gap: 22px;
  padding-bottom: 30px;
}
.yi-home .yh-steps li:last-child { padding-bottom: 0; }
.yi-home .yh-steps li::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 50px;
  bottom: 6px;
  border-left: 1px dashed var(--g);
}
.yi-home .yh-steps li:last-child::before { display: none; }
.yi-home .yh-steps b {
  flex: none;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--chip-ink);
  background: var(--card);
  border: 1px solid var(--g);
}
.yi-home .yh-steps li:first-child b { background: var(--g-bar); border-color: var(--g-bar); color: #052e16; }
.yi-home .yh-steps h3 { font-size: 19px; font-weight: 700; line-height: 1.4; padding-top: 9px; }
.yi-home .yh-steps p { font-size: 15px; color: var(--body); margin-top: 4px; }

/* ---------- 联系卡片（代码窗样式） ---------- */
.yi-home .yh-code {
  position: relative;
  width: 100%;
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--ink);
  box-shadow: 12px 12px 0 var(--g-bar);
}
.yi-home .yh-code-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line-2);
}
.yi-home .yh-dots { display: flex; gap: 6px; flex: none; }
.yi-home .yh-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.yi-home .yh-dots i:last-child { background: var(--g-bar); }
.yi-home .yh-code-title {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--chip-ink);
  background: var(--mint);
  border: 1px solid var(--g-soft);
  padding: 5px 12px;
}
.yi-home .yh-pane { padding: 24px 24px 28px; }
.yi-home .yh-pane-lead { font-size: 15px; line-height: 1.8; color: var(--body); }
.yi-home .yh-channels { margin-top: 16px; }
.yi-home .yh-channel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px dashed var(--line-2);
}
.yi-home .yh-channel:last-child { border-bottom: 0; }
.yi-home .yh-channel-label {
  flex: none;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--mute);
  min-width: 4.5em;
}
.yi-home .yh-channel-value {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  word-break: break-all;
}
.yi-home .yh-channel-value:hover { color: var(--link); }
.yi-home .yh-copy-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-2);
  background: var(--card);
  border: 1px solid var(--line);
  padding: 6px 12px;
  cursor: pointer;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s;
}
.yi-home .yh-copy-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 2px 2px 0 var(--g-bar);
  border-color: var(--ink);
}
.yi-home .yh-copy-btn:active { transform: none; box-shadow: none; }
.yi-home .yh-code-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 11px 16px;
  border-top: 1px dashed var(--line-2);
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--mute);
}
.yi-home .yh-code-foot span { display: inline-flex; align-items: center; gap: 8px; }
.yi-home .yh-code-foot i { width: 7px; height: 7px; background: var(--g); display: inline-block; }
.yi-home .yh-code-foot a { color: var(--link); font-weight: 600; }
.yi-home .yh-code-foot a:hover { color: var(--accent-hover); }

/* ---------- 精选案例 ---------- */
.yi-home .yh-sec-head-cases {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 20px 32px;
  text-align: left;
  padding: 96px 48px 44px;
}
.yi-home .yh-sec-head-cases .yh-h2 { margin-top: 16px; }
.yi-home .yh-sec-head-cases .yh-sec-more { margin-top: 0; padding-bottom: 6px; }
.yi-home .yh-grid2 { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px dashed var(--line); }
.yi-home .yh-case {
  display: flex;
  flex-direction: column;
  padding: 44px 48px 50px;
  border-right: 1px dashed var(--line);
  transition: background .2s;
}
.yi-home .yh-case:last-child { border-right: 0; }
/* 四张卡（两行）时：右列去右边线，第二行加横线 */
.yi-home .yh-grid2 .yh-case:nth-child(2n) { border-right: 0; }
.yi-home .yh-grid2 .yh-case:nth-child(n + 3) { border-top: 1px dashed var(--line); }
.yi-home .yh-case:hover { background: var(--mint-2); }
.yi-home .yh-case-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--mute);
}
.yi-home .yh-case h3 { margin-top: 22px; font-size: 28px; font-weight: 700; line-height: 1.35; transition: color .15s; text-wrap: balance; }
.yi-home .yh-case:hover h3 { color: var(--link); }
.yi-home .yh-case > p { margin-top: 12px; color: var(--body); font-size: 15.5px; line-height: 1.8; }
.yi-home .yh-case-metrics { margin-top: 20px; display: flex; gap: 28px; flex-wrap: wrap; }
.yi-home .yh-metric-v { font-family: var(--mono); font-size: 21px; font-weight: 700; color: var(--chip-ink); }
.yi-home .yh-metric-l { margin-top: 2px; font-size: 12.5px; color: var(--mute); }
.yi-home .yh-case-tags { margin-top: 20px; display: flex; gap: 8px; flex-wrap: wrap; }
.yi-home .yh-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--chip-ink);
  background: var(--mint-2);
  border: 1px solid var(--g-soft);
  padding: 3px 10px;
}
.yi-home .yh-case-more { margin-top: auto; padding-top: 24px; font-family: var(--mono); font-size: 13.5px; font-weight: 600; color: var(--link); }
.yi-home .yh-case:hover .yh-case-more { color: var(--accent-hover); }

/* ---------- 行动区 ---------- */
.yi-home .yh-cta {
  background-color: var(--g-bar);
  background-image: linear-gradient(rgba(5, 46, 22, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(5, 46, 22, .07) 1px, transparent 1px);
  background-size: 44px 44px;
}
.yi-home .yh-cta-in {
  padding-top: 88px;
  padding-bottom: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.yi-home .yh-cta h2 { font-size: 46px; line-height: 1.25; font-weight: 700; color: #052e16; }
.yi-home .yh-cta .yh-actions { margin-top: 0; }

/* ---------- 页脚 ---------- */
.yi-home .yh-foot { padding: 40px 0 48px; font-size: 14.5px; color: var(--mute); }
.yi-home .yh-brand-text { display: inline-flex; flex-direction: column; line-height: 1.25; }
.yi-home .yh-brand-sub { margin-top: 3px; font-size: 11.5px; font-weight: 400; color: var(--mute); letter-spacing: 0; }
.yi-home .yh-foot-in { display: flex; align-items: center; gap: 36px; flex-wrap: wrap; }
.yi-home .yh-foot .yh-brand { font-size: 18px; }
.yi-home .yh-foot .yh-avatar { width: 28px; height: 28px; }
.yi-home .yh-foot nav { display: flex; gap: 24px; flex-wrap: wrap; }
.yi-home .yh-foot a:hover { color: var(--link); }
.yi-home .yh-copy { margin-left: auto; font-family: var(--mono); font-size: 13px; }

/* ---------- 文章 / 页面正文 ---------- */
.yi-home .yh-article { padding-top: 64px; padding-bottom: 96px; }
.yi-home .yh-page-head { text-align: center; padding-bottom: 56px; }
.yi-home .yh-page-title {
  margin-top: 18px;
  font-size: clamp(34px, 4vw, 44px);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -.005em;
}
.yi-home .yh-page-head .yh-case-meta { justify-content: center; margin-top: 16px; }
.yi-home .yh-page-head .yh-case-tags { justify-content: center; }

.yi-home .yh-cover {
  display: block;
  width: 100%;
  max-width: 720px;
  max-height: 380px;
  object-fit: cover;
  margin: 0 auto 48px;
  border: 1px solid var(--line);
  box-shadow: 8px 8px 0 var(--g-bar);
}

.yi-home .yh-prose { max-width: 760px; margin: 0 auto; font-size: 16.5px; color: var(--body); }
.yi-home .yh-prose h1,
.yi-home .yh-prose h2,
.yi-home .yh-prose h3,
.yi-home .yh-prose h4 { color: var(--ink); font-weight: 700; line-height: 1.4; margin: 2.2em 0 .8em; }
.yi-home .yh-prose h1 { font-size: 30px; }
.yi-home .yh-prose h2 { font-size: 25px; }
.yi-home .yh-prose h3 { font-size: 20px; }
.yi-home .yh-prose h4 { font-size: 17px; }
.yi-home .yh-prose h1:first-child,
.yi-home .yh-prose h2:first-child,
.yi-home .yh-prose h3:first-child { margin-top: 0; }
.yi-home .yh-prose p { margin: 1.1em 0; line-height: 1.9; }
.yi-home .yh-prose a { color: var(--link); border-bottom: 1px solid var(--g-soft); }
.yi-home .yh-prose a:hover { color: var(--accent-hover); border-color: var(--g); }
.yi-home .yh-prose strong { color: var(--ink); }
.yi-home .yh-prose ul,
.yi-home .yh-prose ol { list-style: none; margin: 1.1em 0; padding-left: 1.4em; }
.yi-home .yh-prose ul li { position: relative; margin: .5em 0; }
.yi-home .yh-prose ul li::before {
  content: "";
  position: absolute;
  left: -1.1em;
  top: .62em;
  width: 7px;
  height: 7px;
  background: var(--g);
}
.yi-home .yh-prose ol { counter-reset: yh; }
.yi-home .yh-prose ol li { position: relative; counter-increment: yh; margin: .5em 0; }
.yi-home .yh-prose ol li::before {
  content: counter(yh, decimal-leading-zero);
  position: absolute;
  left: -2.1em;
  font-family: var(--mono);
  font-size: .85em;
  font-weight: 700;
  color: var(--link);
}
.yi-home .yh-prose blockquote {
  margin: 1.6em 0;
  padding: 4px 20px;
  border-left: 3px solid var(--g-bar);
  background: var(--mint-2);
  color: var(--ink-2);
}
.yi-home .yh-prose code {
  font-family: var(--mono);
  font-size: .88em;
  background: var(--mint);
  color: var(--chip-ink);
  padding: .15em .4em;
  border: 1px solid var(--g-soft);
}
.yi-home .yh-prose pre {
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.7;
  background: #0a0a0a;
  color: #e4e4e7;
  padding: 20px 22px;
  margin: 1.6em 0;
  overflow-x: auto;
  border: 1px solid var(--ink);
}
.yi-home .yh-prose pre code { background: none; border: 0; color: inherit; padding: 0; }
.yi-home .yh-prose hr { border: 0; border-top: 1px dashed var(--line); margin: 2.6em 0; }
.yi-home .yh-prose img { max-width: 100%; height: auto; border: 1px solid var(--line); }
.yi-home .yh-prose table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 15px; }
.yi-home .yh-prose th, .yi-home .yh-prose td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.yi-home .yh-prose th { background: var(--mint-2); color: var(--ink); }

.yi-home .yh-article-foot { margin-top: 64px; text-align: center; }

/* ---------- 评论扩展点（halo:comment，仅插件存在时渲染） ---------- */
.yi-home .yh-comments {
  max-width: 760px;
  margin: 64px auto 0;
  padding-top: 40px;
  border-top: 1px dashed var(--line);
}

/* ---------- 键盘焦点可见 ---------- */
.yi-home a:focus-visible,
.yi-home button:focus-visible,
.yi-home input:focus-visible,
.yi-home label:focus-visible,
.yi-home [tabindex]:focus-visible {
  outline: 2px solid var(--g-strong);
  outline-offset: 3px;
}
html[data-yh-theme="dark"] .yi-home a:focus-visible,
html[data-yh-theme="dark"] .yi-home button:focus-visible {
  outline-color: var(--g-bar);
}

/* ---------- 相邻文章 ---------- */
.yi-home .yh-postnav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 64px;
  border: 1px dashed var(--line);
}
.yi-home .yh-postnav a {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 28px;
  transition: background .15s;
}
.yi-home .yh-postnav a:hover { background: var(--mint-2); }
.yi-home .yh-postnav a + a { border-left: 1px dashed var(--line); }
.yi-home .yh-postnav small {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--mute);
}
.yi-home .yh-postnav span { font-size: 16.5px; font-weight: 600; color: var(--ink); line-height: 1.5; }
.yi-home .yh-postnav a:hover span { color: var(--link); }
.yi-home .yh-postnav .yh-postnav-next { text-align: right; }
@media (max-width: 560px) {
  .yi-home .yh-postnav { grid-template-columns: 1fr; margin-top: 48px; }
  .yi-home .yh-postnav a + a { border-left: 0; border-top: 1px dashed var(--line); }
  .yi-home .yh-postnav .yh-postnav-next { text-align: left; }
}

/* ---------- 文章列表 ---------- */
.yi-home .yh-postlist { max-width: 860px; margin: 0 auto; border-top: 1px dashed var(--line); }
.yi-home .yh-postlist li { border-bottom: 1px dashed var(--line); }
.yi-home .yh-postrow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 20px;
  padding: 18px 8px;
  transition: background .15s, padding-left .15s;
}
.yi-home .yh-postrow:hover { background: var(--mint-2); padding-left: 16px; }
.yi-home .yh-postrow-date {
  grid-column: 1;
  grid-row: 1;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--mute);
}
.yi-home .yh-postrow-title { grid-column: 1; grid-row: 2; font-size: 18px; font-weight: 600; color: var(--ink); }
.yi-home .yh-postrow:hover .yh-postrow-title { color: var(--link); }
.yi-home .yh-postrow-more { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-family: var(--mono); color: var(--mute); }

/* ---------- 归档 ---------- */
.yi-home .yh-yearblock { max-width: 860px; margin: 0 auto 48px; }
.yi-home .yh-year {
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 700;
  color: var(--chip-ink);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--g-bar);
}
.yi-home .yh-monthblock { margin-top: 24px; }
.yi-home .yh-month {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--mute);
  margin-bottom: 4px;
}

/* ---------- 分类 / 标签卡片 ---------- */
.yi-home .yh-taxgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0;
  border-top: 1px dashed var(--line);
  border-left: 1px dashed var(--line);
}
.yi-home .yh-taxcard {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 20px;
  border-right: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
  font-size: 17px;
  font-weight: 600;
  transition: background .15s;
}
.yi-home .yh-taxcard:hover { background: var(--mint-2); color: var(--link); }
.yi-home .yh-taxcard-count {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 400;
  color: var(--mute);
}

/* ---------- 分页 / 空状态 ---------- */
.yi-home .yh-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 48px;
}
.yi-home .yh-pager-info { font-family: var(--mono); font-size: 13.5px; color: var(--mute); }
.yi-home .yh-pager-info b { color: var(--ink); }
.yi-home .yh-empty { text-align: center; padding: 64px 0; color: var(--mute); }
.yi-home .yh-empty-mark { font-family: var(--mono); font-size: 22px; color: var(--g-bar); margin-bottom: 10px; }

/* ---------- 错误页 ---------- */
.yi-home .yh-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  min-height: 62vh;
  padding-top: 96px;
  padding-bottom: 96px;
}
.yi-home .yh-error-code {
  font-family: var(--mono);
  font-size: 96px;
  font-weight: 700;
  line-height: 1;
  color: #052e16;
  letter-spacing: .02em;
}
.yi-home .yh-error-title { margin-top: 18px; font-size: 34px; font-weight: 700; color: #052e16; }
.yi-home .yh-error-text { margin-top: 12px; font-size: 16px; color: #052e16; }
.yi-home .yh-error .yh-actions { margin-top: 36px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
  /* 顶栏收成两行：品牌 + 按钮一行，导航链接一行可横向滚动 */
  .yi-home .yh-nav-in { height: auto; flex-wrap: wrap; padding: 14px 0 0; gap: 10px 16px; }
  .yi-home .yh-links {
    order: 3;
    width: 100%;
    gap: 22px;
    padding: 10px 0 12px;
    border-top: 1px dashed var(--line);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .yi-home .yh-links::-webkit-scrollbar { display: none; }
  .yi-home .yh-links a { flex: none; white-space: nowrap; }
  .yi-home .yh-nav-cta { margin-left: auto; }
  .yi-home .yh-grid4 { grid-template-columns: 1fr 1fr; }
  .yi-home .yh-feat:nth-child(2n) { border-right: 0; }
  .yi-home .yh-feat:nth-child(-n+2) { border-bottom: 1px dashed var(--line); }
}

@media (max-width: 900px) {
  .yi-home .yh-hero-in { grid-template-columns: minmax(0, 1fr); padding-top: 44px; gap: 36px; }
  .yi-home .yh-sec-head-cases { padding: 72px 24px 36px; }
  .yi-home .yh-grid5 { grid-template-columns: repeat(2, 1fr); }
  .yi-home .yh-logo:nth-child(5n) { border-right: 1px dashed var(--line); }
  .yi-home .yh-logo:nth-child(2n) { border-right: 0; }
  .yi-home .yh-logo:nth-last-child(-n+5) { border-bottom: 1px dashed var(--line); }
  .yi-home .yh-logo:nth-last-child(-n+2) { border-bottom: 0; }
  .yi-home .yh-split, .yi-home .yh-grid2 { grid-template-columns: minmax(0, 1fr); }
  .yi-home .yh-grid2 .yh-case { border-right: 0; }
  .yi-home .yh-grid2 .yh-case + .yh-case { border-top: 1px dashed var(--line); }
  .yi-home .yh-start-l { border-right: 0; border-bottom: 1px dashed var(--line); }
  .yi-home .yh-case { border-right: 0; border-bottom: 1px dashed var(--line); }
  .yi-home .yh-case:last-child { border-bottom: 0; }
  .yi-home .yh-h2, .yi-home .yh-start .yh-h2 { font-size: 38px; }
  .yi-home .yh-sec-head { padding-top: 72px; }
  .yi-home .yh-article { padding-top: 44px; padding-bottom: 64px; }
}

@media (max-width: 560px) {
  .yi-home .yh-wrap { padding-left: 16px; padding-right: 16px; }
  .yi-home .yh-sec-head-cases { grid-template-columns: minmax(0, 1fr); padding: 56px 20px 32px; gap: 14px; }
  .yi-home .yh-cta-in { padding-top: 64px; padding-bottom: 64px; }
  .yi-home .yh-cta h2 { font-size: 31px; }
  .yi-home .yh-bar { font-size: 13.5px; gap: 8px; }
  .yi-home .yh-nav-in { padding-top: 10px; gap: 8px 12px; }
  .yi-home .yh-links { font-size: 15px; gap: 18px; padding: 9px 0 11px; }
  .yi-home .yh-brand { font-size: 19px; }
  .yi-home .yh-nav-cta { gap: 8px; }
  .yi-home .yh-nav-cta .yh-btn-sm { padding: 8px 12px; font-size: 13px; }
  .yi-home .yh-hero h1 { font-size: 32px; }
  .yi-home .yh-sq { display: none; }
  .yi-home .yh-lead { font-size: 17px; }
  .yi-home .yh-logo { font-size: 17px; height: 76px; }
  .yi-home .yh-h2, .yi-home .yh-start .yh-h2 { font-size: 31px; }
  .yi-home .yh-grid4 { grid-template-columns: 1fr; }
  .yi-home .yh-feat { border-right: 0; border-bottom: 1px dashed var(--line); }
  .yi-home .yh-feat:last-child { border-bottom: 0; }
  .yi-home .yh-start-l, .yi-home .yh-start-r, .yi-home .yh-case { padding: 52px 20px; }
  .yi-home .yh-code { box-shadow: 8px 8px 0 var(--g-bar); }
  .yi-home .yh-pane { padding: 14px 14px 16px; }
  .yi-home .yh-dots { display: none; }
  .yi-home .yh-case h3 { font-size: 23px; }
  .yi-home .yh-postrow { flex-wrap: wrap; gap: 6px 16px; padding: 16px 8px; }
  .yi-home .yh-postrow-more { display: none; }
  .yi-home .yh-error-code { font-size: 64px; }
  .yi-home .yh-error-title { font-size: 26px; }
  .yi-home .yh-cover { box-shadow: 6px 6px 0 var(--g-bar); }
}

@media (max-width: 380px) {
  .yi-home .yh-hero h1 { font-size: 29px; }
}

/* ================================================================
   AI OPC 首页（忆のAI 版）：模型条 / 特性图标 / 代码窗 tabs / 线路卡
   ================================================================ */

/* ---------- 模型条 ---------- */
.yi-home .yh-logo svg { width: 28px; height: 28px; flex: none; }

/* ---------- 特性图标：56px 方块直接内联 ---------- */
.yi-home .yh-feat svg { width: 56px; height: 56px; margin-bottom: 28px; }

/* ---------- 双列标题（标题 + 插画） ---------- */
.yi-home .yh-sec-head-split {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: center;
  text-align: left;
  padding: 64px 48px 48px;
}
.yi-home .yh-lines-art svg { display: block; width: 100%; max-width: 560px; height: auto; margin-left: auto; }
.yi-home .yh-chips { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.yi-home .yh-chip i { width: 7px; height: 7px; background: var(--g); display: inline-block; flex: none; }

/* ---------- 代码窗：纯 CSS tab ---------- */
.yi-home .yh-code input { position: absolute; opacity: 0; pointer-events: none; }
.yi-home .yh-code-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.yi-home .yh-code-tabs label {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--mute);
  padding: 5px 12px;
  border: 1px solid transparent;
  cursor: pointer;
  user-select: none;
  transition: color .15s, background .15s;
}
.yi-home .yh-code-tabs label:hover { color: var(--ink); }
.yi-home #yh-t1:checked~.yh-code-head label[for="yh-t1"],
.yi-home #yh-t2:checked~.yh-code-head label[for="yh-t2"],
.yi-home #yh-t3:checked~.yh-code-head label[for="yh-t3"] {
  color: var(--chip-ink);
  background: var(--mint);
  border-color: var(--g-soft);
}
.yi-home .yh-pane {
  display: none;
  counter-reset: ln;
  padding: 24px 24px 28px 8px;
  font-family: var(--mono);
  font-size: 14.5px;
  line-height: 2;
  color: var(--code-ink);
  white-space: normal;
  overflow-x: auto;
}
.yi-home #yh-t1:checked~.yh-p1,
.yi-home #yh-t2:checked~.yh-p2,
.yi-home #yh-t3:checked~.yh-p3 { display: block; }
.yi-home .yh-pane .l { display: block; white-space: pre; min-height: 1.95em; }
.yi-home .yh-pane .l::before {
  counter-increment: ln;
  content: counter(ln);
  display: inline-block;
  width: 2em;
  margin-right: 1em;
  text-align: right;
  color: var(--code-num);
}
.yi-home .yh-pane .c { color: var(--code-mute); }
.yi-home .yh-pane .k { color: var(--link); font-weight: 700; }
.yi-home .yh-pane .s { color: var(--code-str); }
.yi-home .yh-pane .hl { background: var(--mint); box-shadow: inset 0 -2px 0 var(--g-bar); }
.yi-home .yh-note {
  display: inline-block;
  margin-left: 12px;
  padding: 0 8px;
  font-size: 11.5px;
  line-height: 1.8;
  font-weight: 600;
  color: #052e16;
  background: var(--g-bar);
  vertical-align: 1px;
}

/* ---------- 线路卡 ---------- */
.yi-home .yh-line { padding: 44px 48px 50px; border-right: 1px dashed var(--line); transition: background .2s; }
.yi-home .yh-line:last-child { border-right: 0; }
.yi-home .yh-line:hover { background: var(--mint-2); }
.yi-home .yh-url {
  display: block;
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 25px;
  font-weight: 600;
  color: var(--ink);
  word-break: break-all;
}
.yi-home .yh-line p { margin-top: 12px; color: var(--body); font-size: 15.5px; line-height: 1.8; }

/* ---------- 步骤内的跳转链接 ---------- */
.yi-home .yh-steps a {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--link);
  border-bottom: 1px solid var(--g-soft);
}
.yi-home .yh-steps a:hover { color: var(--accent-hover); border-color: var(--g); }

@media (max-width: 1180px) {
  .yi-home .yh-sec-head-split { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 56px 24px 40px; }
  .yi-home .yh-chips { justify-content: flex-start; }
}

@media (max-width: 900px) {
  .yi-home .yh-line { border-right: 0; border-bottom: 1px dashed var(--line); }
  .yi-home .yh-line:last-child { border-bottom: 0; }
}

@media (max-width: 560px) {
  .yi-home .yh-sec-head-split { padding: 48px 20px 36px; }
  .yi-home .yh-logo svg { width: 22px; height: 22px; }
  .yi-home .yh-start-l, .yi-home .yh-start-r, .yi-home .yh-line { padding: 52px 20px; }
  .yi-home .yh-note, .yi-home .yh-dots { display: none; }
  .yi-home .yh-url { font-size: 19px; }
  .yi-home .yh-code-tabs label { padding: 5px 9px; }
}

/* ================================================================
   整页骨架 / 页脚备案 / 子页通用版式
   ================================================================ */

/* 内容不够高时页脚也贴底 */
.yi-home #yh-main { flex: 1 0 auto; width: 100%; }

/* ---------- 页脚：备案信息 ---------- */
.yi-home .yh-foot-legal {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--mute);
}
.yi-home .yh-foot-legal a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
}
.yi-home .yh-foot-legal .yh-beian { gap: 5px; }
.yi-home .yh-foot-legal .yh-beian img { width: 14px; height: auto; flex: none; }
.yi-home .yh-foot-legal a:hover { color: var(--link); border-color: var(--g-soft); }
.yi-home .yh-foot-legal .yh-dot { width: 4px; height: 4px; background: var(--line); }

/* ---------- 子页：标题区与页脚动作 ---------- */
.yi-home .yh-page-lead {
  max-width: 720px;
  margin: 18px auto 0;
  font-size: 17px;
  line-height: 1.85;
  color: var(--body);
}
.yi-home .yh-page-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px dashed var(--line);
}
.yi-home .yh-page-foot .yh-sec-more { margin-top: 0; }

/* ---------- 服务页：能力与流程复排 ---------- */
.yi-home .yh-page-grid4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px dashed var(--line);
  margin-top: 8px;
}
.yi-home .yh-page-grid4 .yh-feat { border-bottom: 1px dashed var(--line); }
.yi-home .yh-page-grid4 .yh-feat:nth-child(2n) { border-right: 0; }
.yi-home .yh-page-grid4 .yh-feat:nth-last-child(-n+2) { border-bottom: 0; }

.yi-home .yh-page-steps { max-width: 860px; margin: 0 auto; }
.yi-home .yh-page-steps .yh-steps { margin-top: 32px; }

/* ---------- 案例列表 ---------- */
.yi-home .yh-caselist {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px dashed var(--line);
  border-left: 1px dashed var(--line);
  margin-top: 8px;
}
.yi-home .yh-caselist .yh-case {
  border-right: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
}

/* ---------- 联系页 ---------- */
.yi-home .yh-contact-card {
  max-width: 760px;
  margin: 0 auto;
  border: 1px solid var(--ink);
  box-shadow: 12px 12px 0 var(--g-bar);
  background: var(--card);
}
.yi-home .yh-contact-card .yh-channels { margin-top: 0; }
.yi-home .yh-contact-card .yh-channel { padding: 18px 24px; }
.yi-home .yh-contact-note {
  max-width: 760px;
  margin: 28px auto 0;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--mute);
  text-align: center;
}

@media (max-width: 900px) {
  .yi-home .yh-page-grid4,
  .yi-home .yh-caselist { grid-template-columns: minmax(0, 1fr); }
  .yi-home .yh-page-grid4 .yh-feat { border-right: 0; }
  .yi-home .yh-page-grid4 .yh-feat:nth-last-child(-n+2) { border-bottom: 1px dashed var(--line); }
  .yi-home .yh-page-grid4 .yh-feat:last-child { border-bottom: 0; }
}

@media (max-width: 560px) {
  .yi-home .yh-page-lead { font-size: 15.5px; }
  .yi-home .yh-contact-card { box-shadow: 8px 8px 0 var(--g-bar); }
  .yi-home .yh-contact-card .yh-channel { padding: 16px 18px; }
}

/* ---------- 子页小标题（服务/联系页复用首页数据） ---------- */
.yi-home .yh-page-sub {
  margin-top: 80px;
  padding-top: 48px;
  border-top: 1px dashed var(--line);
  text-align: center;
}
.yi-home .yh-page-sub .yh-h2 { font-size: 38px; margin-top: 20px; }
.yi-home .yh-page-steps { max-width: 820px; margin: 40px auto 0; text-align: left; }
.yi-home .yh-page-steps .yh-steps { margin-top: 0; }
.yi-home .yh-page-grid4 { margin-top: 0; }

@media (max-width: 560px) {
  .yi-home .yh-page-sub { margin-top: 56px; padding-top: 36px; }
  .yi-home .yh-page-sub .yh-h2 { font-size: 28px; }
}

/* ---------- 关于页 ---------- */
.yi-home .yh-about-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--mute);
}
.yi-home .yh-about-meta b { color: var(--ink); font-weight: 700; }
.yi-home .yh-page-grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px dashed var(--line);
  margin-top: 8px;
  text-align: left;
}
.yi-home .yh-page-grid3 .yh-feat { border-bottom: 0; }
.yi-home .yh-page-grid3 .yh-feat:nth-child(3n) { border-right: 0; }
.yi-home .yh-about-note {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--mute);
  text-align: center;
}
@media (max-width: 900px) {
  .yi-home .yh-page-grid3 { grid-template-columns: minmax(0, 1fr); }
  .yi-home .yh-page-grid3 .yh-feat { border-right: 0; border-bottom: 1px dashed var(--line); }
  .yi-home .yh-page-grid3 .yh-feat:last-child { border-bottom: 0; }
}

/* 关于页里的栅格与卡片需要左对齐 */
.yi-home .yh-page-sub .yh-grid2,
.yi-home .yh-page-sub .yh-contact-card { text-align: left; }
.yi-home .yh-about-grid { border-left: 1px dashed var(--line); border-right: 1px dashed var(--line); margin-top: 36px; }
.yi-home .yh-about-card { margin-top: 36px; }

/* 页脚：窄屏下版权与备案左对齐换行 */
@media (max-width: 560px) {
  .yi-home .yh-foot-in { gap: 12px 20px; }
  .yi-home .yh-copy { margin-left: 0; }
  .yi-home .yh-foot { padding: 32px 0 40px; }
}

/* ================================================================
   公告条：窄屏跑马灯（纯 CSS，悬停暂停，尊重 reduced-motion）
   ================================================================ */
.yi-home .yh-bar-track {
  flex: 0 1 auto;
  min-width: 0;
  display: flex;
  justify-content: center;
  overflow: hidden;
}
.yi-home .yh-bar-move { display: flex; }
.yi-home .yh-bar-text { white-space: normal; }
.yi-home .yh-bar-text + .yh-bar-text { display: none; }

@keyframes yh-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 700px) {
  .yi-home .yh-bar {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 10px;
    text-align: left;
  }
  .yi-home .yh-bar-tag,
  .yi-home .yh-bar > a { flex: none; }
  .yi-home .yh-bar-track {
    flex: 1 1 auto;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10px, #000 calc(100% - 10px), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 10px, #000 calc(100% - 10px), transparent);
  }
  .yi-home .yh-bar-text + .yh-bar-text { display: block; }
  .yi-home .yh-bar-text { white-space: nowrap; padding-right: 72px; }
  .yi-home .yh-bar-move { animation: yh-marquee 18s linear infinite; }
  .yi-home .yh-bar:hover .yh-bar-move,
  .yi-home .yh-bar:focus-within .yh-bar-move { animation-play-state: paused; }
}

@media (max-width: 700px) and (prefers-reduced-motion: reduce) {
  .yi-home .yh-bar-move { animation: none; }
  .yi-home .yh-bar-text + .yh-bar-text { display: none; }
  .yi-home .yh-bar-track { overflow-x: auto; scrollbar-width: none; }
  .yi-home .yh-bar-track::-webkit-scrollbar { display: none; }
}


/* ================================================================
   深色模式：跟随系统 + 可手动切换（html[data-yh-theme]）
   ================================================================ */
html[data-yh-theme="dark"] .yi-home {
  --bg: #0b0f0c;
  --card: #121a15;
  --panel: #0f1712;
  --mint: #123524;
  --mint-2: #0e2a1a;
  --g-soft: #2f6b46;
  --line: #263129;
  --line-2: #223026;
  --ink: #eef4ef;
  --ink-2: #cdd9d0;
  --body: #9fb0a5;
  --mute: #78857d;
  --chip-ink: #86efac;
  --btn-fg: #0b0f0c;
  --btn-dark-hover: #ffffff;
  --accent-hover: #86efac;
  --link: #86efac;
  --code-ink: #d7e3da;
  --code-mute: #6f7d74;
  --code-num: #48544c;
  --code-str: #7fd18f;
}

@media (prefers-color-scheme: dark) {
  html:not([data-yh-theme="light"]) .yi-home {
    --bg: #0b0f0c;
    --card: #121a15;
    --panel: #0f1712;
    --mint: #123524;
    --mint-2: #0e2a1a;
    --g-soft: #2f6b46;
    --line: #263129;
    --line-2: #223026;
    --ink: #eef4ef;
    --ink-2: #cdd9d0;
    --body: #9fb0a5;
    --mute: #78857d;
    --chip-ink: #86efac;
    --btn-fg: #0b0f0c;
    --btn-dark-hover: #ffffff;
    --accent-hover: #86efac;
  --link: #86efac;
    --code-ink: #d7e3da;
    --code-mute: #6f7d74;
    --code-num: #48544c;
    --code-str: #7fd18f;
  }
}

/* 深浅色切换按钮（无 JS 时隐藏） */
.yi-home .yh-theme-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--ink-2);
  background: var(--card);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: color .15s, border-color .15s;
}
html.yh-js .yi-home .yh-theme-btn { display: inline-flex; }
.yi-home .yh-theme-btn svg { width: 16px; height: 16px; }
.yi-home .yh-theme-btn .ico-moon { display: none; }
html[data-yh-theme="dark"] .yi-home .yh-theme-btn .ico-sun { display: none; }
html[data-yh-theme="dark"] .yi-home .yh-theme-btn .ico-moon { display: block; }
.yi-home .yh-theme-btn:hover { color: var(--g-strong); border-color: var(--g); }
@media (prefers-reduced-motion: reduce) {
  .yi-home .yh-theme-btn { transition: none; }
}
