/* ==========================================================================
   晾贴 Hangli — 官网样式
   设计令牌取自 App 图标蓝色渐变：浅蓝 → 深蓝
   ========================================================================== */

:root {
  --brand-50:  #eef5ff;
  --brand-100: #dbe9ff;
  --brand-200: #bcd6ff;
  --brand-300: #8fbaff;
  --brand-400: #5b9cff;
  --brand-500: #2e7ff0;
  --brand-600: #1a63da;
  --brand-700: #144dae;
  --brand-800: #123c85;
  --brand-900: #0f2f66;

  --bg:        #ffffff;
  --bg-soft:   #f4f8fe;
  --bg-sink:   #eaf1fb;
  --surface:   #ffffff;
  --surface-2: #f8fbff;
  --border:    #e2eaf5;
  --border-strong: #cfdeef;
  --text:      #0d1a2b;
  --text-2:    #35455c;
  --muted:     #647791;
  --muted-2:   #8b9cb2;

  --ok:   #12a150;
  --warn: #d98b0b;
  --danger: #e5484d;

  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius:    18px;
  --radius-lg: 26px;
  --radius-xl: 34px;

  --shadow-xs: 0 1px 2px rgba(16, 44, 84, .06);
  --shadow-sm: 0 2px 6px rgba(16, 44, 84, .06), 0 1px 2px rgba(16, 44, 84, .04);
  --shadow:    0 10px 28px -12px rgba(16, 44, 84, .18), 0 2px 6px rgba(16, 44, 84, .05);
  --shadow-lg: 0 32px 70px -28px rgba(13, 50, 105, .30), 0 8px 20px -10px rgba(13, 50, 105, .12);
  --shadow-brand: 0 18px 40px -18px rgba(26, 99, 218, .55);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
          "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
          "Liberation Mono", "Courier New", monospace;

  --nav-h: 62px;
  --wrap: 1160px;
  --wrap-narrow: 860px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

[data-theme="dark"] {
  --brand-50:  #101d33;
  --brand-100: #14294a;
  --brand-200: #1b3d6b;
  --brand-300: #2a5a9e;
  --brand-400: #3d81d8;
  --brand-500: #5b9cff;
  --brand-600: #7ab3ff;
  --brand-700: #a3ccff;
  --brand-800: #c9e0ff;
  --brand-900: #e6f0ff;

  --bg:        #0a1120;
  --bg-soft:   #0e1728;
  --bg-sink:   #121d31;
  --surface:   #111b2d;
  --surface-2: #16223a;
  --border:    #223049;
  --border-strong: #2e405e;
  --text:      #e9f0fb;
  --text-2:    #c3d0e3;
  --muted:     #93a5bf;
  --muted-2:   #78899f;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .4);
  --shadow:    0 12px 30px -14px rgba(0, 0, 0, .7), 0 2px 8px rgba(0, 0, 0, .35);
  --shadow-lg: 0 36px 74px -30px rgba(0, 0, 0, .85), 0 8px 22px -12px rgba(0, 0, 0, .5);
  --shadow-brand: 0 18px 40px -18px rgba(46, 127, 240, .45);
}

/* --------------------------------------------------------------- base --- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -.022em;
  color: var(--text);
  text-wrap: balance;
}
h1 { font-size: clamp(2.35rem, 5.2vw, 3.9rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.75rem, 3.3vw, 2.55rem); letter-spacing: -.03em; }
h3 { font-size: 1.125rem; letter-spacing: -.015em; }
p  { margin: 0; text-wrap: pretty; }

a { color: var(--brand-600); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; }

:focus-visible {
  outline: 2.5px solid var(--brand-500);
  outline-offset: 2px;
  border-radius: 6px;
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 26px; }
.wrap-narrow { max-width: var(--wrap-narrow); }

section { position: relative; }
.section { padding: 96px 0; }
.section--tight { padding: 66px 0; }
.section--soft { background: var(--bg-soft); }
.section--sink { background: var(--bg-sink); }

/* ------------------------------------------------------------ buttons --- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: inherit; font-size: .945rem; font-weight: 600;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .16s var(--ease), box-shadow .2s var(--ease),
              background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-1.5px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: linear-gradient(180deg, var(--brand-500), var(--brand-600));
  color: #fff; box-shadow: var(--shadow-brand);
}
.btn--primary:hover { box-shadow: 0 22px 46px -18px rgba(26, 99, 218, .65); }

.btn--ghost {
  background: var(--surface); color: var(--text-2);
  border-color: var(--border-strong); box-shadow: var(--shadow-xs);
}
.btn--ghost:hover { color: var(--text); border-color: var(--brand-300); background: var(--surface-2); }

.btn--quiet { background: transparent; color: var(--text-2); }
.btn--quiet:hover { color: var(--brand-600); background: var(--brand-50); }

.btn--sm { padding: 9px 16px; font-size: .875rem; }
.btn--lg { padding: 15px 30px; font-size: 1.02rem; }

.btn svg { flex: none; }

/* ---------------------------------------------------------------- nav --- */

.nav {
  position: sticky; top: 0; z-index: 80;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.nav.is-stuck { border-bottom-color: var(--border); box-shadow: 0 4px 18px -12px rgba(16,44,84,.3); }

.nav__inner {
  height: var(--nav-h);
  display: flex; align-items: center; gap: 20px;
}
.nav__brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.09rem; letter-spacing: -.02em; color: var(--text);
  text-decoration: none; flex: none;
}
.nav__brand:hover { text-decoration: none; }
/* 图标本身自带圆角与透明留白，不再叠背景或圆角 */
.nav__brand img { width: 32px; height: 32px; }
.nav__links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__links a {
  font-size: .9rem; font-weight: 550; color: var(--muted);
  padding: 8px 13px; border-radius: 999px; white-space: nowrap;
  transition: color .18s var(--ease), background-color .18s var(--ease);
}
.nav__links a:hover { color: var(--text); background: var(--bg-sink); text-decoration: none; }
.nav__links a.is-active { color: var(--brand-600); background: var(--brand-50); }
.nav__actions { display: flex; align-items: center; gap: 8px; flex: none; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface); color: var(--muted);
  cursor: pointer; transition: color .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease);
}
.icon-btn:hover { color: var(--brand-600); border-color: var(--brand-200); background: var(--brand-50); }
.theme-sun { display: none; }
[data-theme="dark"] .theme-sun { display: block; }
[data-theme="dark"] .theme-moon { display: none; }

.nav__toggle { display: none; }

/* 导航 8 条「入口」在中文页 1040px 起可单行放下；英文页标签更长（What's different /
   Clothesline / Context menu + Download），1100px 仍差 2px，故两页统一把抽屉断点定在 1120。
   改导航项数量或英文标签时必须重测 1020–1240 这一段。 */
@media (max-width: 1120px) {
  .nav__links { display: none; }
  .nav__toggle { display: inline-flex; }
}

/* --------------------------------------------------------------- hero --- */

.hero {
  position: relative;
  padding: 78px 0 0;
  overflow: hidden;
  background:
    radial-gradient(1100px 520px at 50% -12%, var(--brand-50), transparent 72%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
}
[data-theme="dark"] .hero {
  background:
    radial-gradient(1100px 520px at 50% -12%, var(--brand-50), transparent 72%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
}
.hero::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.hero__copy { text-align: center; max-width: 800px; margin-inline: auto; }

.pill {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .82rem; font-weight: 600; color: var(--brand-700);
  background: var(--surface); border: 1px solid var(--brand-100);
  padding: 6px 15px 6px 11px; border-radius: 999px; box-shadow: var(--shadow-xs);
  margin-bottom: 26px;
}
.pill__dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 22%, transparent);
}
[data-theme="dark"] .pill { color: var(--brand-700); }

.hero h1 { margin-bottom: 20px; }
.hero h1 .grad {
  background: linear-gradient(100deg, var(--brand-400) 8%, var(--brand-600) 52%, var(--brand-800) 96%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
[data-theme="dark"] .hero h1 .grad {
  background: linear-gradient(100deg, var(--brand-400) 8%, var(--brand-600) 60%, var(--brand-700) 100%);
  -webkit-background-clip: text; background-clip: text;
}

.hero__lede {
  font-size: clamp(1.03rem, 1.55vw, 1.2rem);
  color: var(--muted); max-width: 660px; margin-inline: auto; margin-bottom: 32px;
}
.hero__lede strong { color: var(--text-2); font-weight: 600; }

.hero__cta {
  display: flex; flex-wrap: wrap; gap: 13px; justify-content: center; align-items: center;
}
.hero__note {
  margin-top: 18px; font-size: .845rem; color: var(--muted-2);
  display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center;
}
.hero__note span { display: inline-flex; align-items: center; gap: 6px; }
.hero__note svg { color: var(--brand-400); }

.hero__stage { margin-top: 54px; position: relative; }

/* ------------------------------------------------------ mockup: screen --- */

.screen {
  position: relative;
  border-radius: var(--radius-lg) var(--radius-lg) var(--radius) var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.screen__bar {
  height: 30px; flex: none;
  display: flex; align-items: center; gap: 7px; padding-inline: 15px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border-bottom: 1px solid var(--border);
}
.screen__bar i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.screen__bar i:nth-child(1) { background: #ff5f57; }
.screen__bar i:nth-child(2) { background: #febc2e; }
.screen__bar i:nth-child(3) { background: #28c840; }
.screen__title {
  margin-left: 12px; font-size: .745rem; color: var(--muted-2); font-weight: 600; letter-spacing: .01em;
}

/* 桌面壁纸 + 顶部晾衣绳 */
.desktop {
  position: relative;
  background:
    radial-gradient(880px 400px at 20% 0%, rgba(255,255,255,.28), transparent 62%),
    linear-gradient(165deg, #2a7ff0 0%, #1c62d6 44%, #103f9c 100%);
  padding: 0 0 34px;
  min-height: 430px;
  overflow: hidden;
}
[data-theme="dark"] .desktop {
  background:
    radial-gradient(880px 400px at 20% 0%, rgba(120,175,255,.16), transparent 62%),
    linear-gradient(165deg, #16386e 0%, #102a55 46%, #0a1c3c 100%);
}
.desktop__glow {
  position: absolute; inset: -30% -10% auto; height: 340px;
  background: radial-gradient(closest-side, rgba(255,255,255,.30), transparent 78%);
  pointer-events: none;
}

.menubar {
  position: relative; z-index: 3;
  height: 26px; display: flex; align-items: center; gap: 16px;
  padding-inline: 16px;
  font-size: .715rem; font-weight: 600; color: rgba(255,255,255,.94);
  background: rgba(12, 30, 60, .26);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.13);
}
.menubar__right { margin-left: auto; display: flex; align-items: center; gap: 13px; }
.menubar__icon { opacity: .92; }

/* 晾衣绳本体 */
.shelf {
  position: relative; z-index: 4;
  margin: 0 auto; padding-top: 12px;
  width: min(880px, 94%);
}
.shelf__plate {
  position: relative;
  border-radius: 16px;
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.24);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  box-shadow: 0 26px 60px -26px rgba(0, 20, 55, .72), inset 0 1px 0 rgba(255,255,255,.28);
  padding: 12px 14px 15px;
}
.shelf__tape {
  position: absolute; left: 50%; top: -9px; transform: translateX(-50%);
  width: 46px; height: 9px; border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, rgba(255,255,255,.5), rgba(255,255,255,.22));
}

.shelf__head {
  display: flex; align-items: center; gap: 8px;
  padding: 0 3px 10px;
  color: rgba(255,255,255,.95);
}
.shelf__tabs { display: flex; gap: 5px; }
.shelf__tab {
  font-size: .695rem; font-weight: 650; letter-spacing: .01em;
  padding: 4px 11px; border-radius: 999px; color: rgba(255,255,255,.78);
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.14);
}
.shelf__tab.is-on { background: #fff; color: #14449b; border-color: #fff; }
.shelf__tools { margin-left: auto; display: flex; align-items: center; gap: 7px; }
.shelf__tools svg { opacity: .85; }

/* 绳线 + 卡片 */
.line {
  position: relative;
  height: 26px;
  margin: 0 6px 0;
}
.line svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

.hang {
  display: flex; justify-content: space-around; align-items: flex-start;
  margin-top: -18px; padding: 0 4px;
}
.hang__item { display: flex; flex-direction: column; align-items: center; width: 22%; }

.clip {
  width: 15px; height: 20px; border-radius: 4px;
  background: linear-gradient(180deg, #eaf4ff, #b9d5f7);
  border: 1px solid rgba(255,255,255,.85);
  box-shadow: 0 2px 5px rgba(6, 30, 70, .3);
  position: relative; z-index: 2;
}
.clip::after {
  content: ""; position: absolute; left: 50%; top: -3px; transform: translateX(-50%);
  width: 9px; height: 4px; border-radius: 2px; background: #fff; opacity: .9;
}

.card-m {
  width: 100%; margin-top: -2px;
  background: #fff; border-radius: 11px;
  border: 1px solid rgba(210, 226, 246, .9);
  box-shadow: 0 12px 26px -12px rgba(4, 24, 60, .55);
  padding: 10px 10px 11px;
  color: #16293f;
}
[data-theme="dark"] .card-m { background: #f7fbff; }
.card-m__head {
  display: flex; align-items: center; gap: 5px; margin-bottom: 7px;
}
.card-m__badge {
  font-size: .56rem; font-weight: 700; letter-spacing: .02em;
  padding: 2px 6px; border-radius: 5px;
  background: #e8f1ff; color: #1a63da;
}
.card-m__badge--img { background: #e9f8ee; color: #0f7c42; }
.card-m__badge--ai { background: #f2ecff; color: #6b3fd4; }
.card-m__badge--link { background: #fff3e0; color: #a86400; }
.card-m__src { margin-left: auto; font-size: .55rem; color: #8ba0ba; font-weight: 600; }
.card-m__key {
  font-size: .54rem; font-weight: 700; color: #9db0c6;
  border: 1px solid #e2ebf6; border-radius: 4px; padding: 0 3px;
}
.card-m__t { font-size: .55rem; font-weight: 700; color: #16293f; margin-bottom: 4px; }
.card-m__l {
  height: 4.5px; border-radius: 3px; background: #e4ecf7; margin-bottom: 4px;
}
.card-m__l:nth-child(3) { width: 88%; }
.card-m__l:nth-child(4) { width: 66%; }
.card-m__l:last-child { margin-bottom: 0; }
.card-m__thumb {
  height: 46px; border-radius: 7px; margin-bottom: 7px;
  background: linear-gradient(135deg, #4f9cf5, #1a63da);
}
.card-m__tbl {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px;
}
.card-m__tbl span { height: 7px; border-radius: 2px; background: #e4ecf7; }
.card-m__tbl span:nth-child(-n+3) { background: #cfe1fa; }

.hang__item--center .card-m { transform: translateY(-2px); }

/* 转换提示 */
.toast-m {
  position: absolute; right: 22px; bottom: 22px; z-index: 6;
  display: flex; align-items: center; gap: 10px;
  background: rgba(12, 30, 60, .82);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 13px; padding: 10px 15px;
  color: #fff; font-size: .795rem; font-weight: 600;
  box-shadow: 0 18px 40px -18px rgba(0, 20, 55, .8);
}
.toast-m__check {
  width: 20px; height: 20px; border-radius: 50%; flex: none;
  background: #12a150; display: grid; place-items: center; color: #fff;
}

/* Word 粘贴结果面板 */
.result {
  margin-top: 26px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 26px;
  align-items: stretch;
}
.pane {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden;
  display: flex; flex-direction: column;
}
.pane__head {
  display: flex; align-items: center; gap: 9px;
  padding: 11px 15px; border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  font-size: .795rem; font-weight: 650; color: var(--muted);
}
.pane__head .tag {
  margin-left: auto; font-size: .68rem; font-weight: 700;
  padding: 2px 8px; border-radius: 999px;
}
.tag--bad { background: #fdecec; color: #b02a2e; }
.tag--good { background: #e8f8ee; color: #0e7a3d; }
[data-theme="dark"] .tag--bad { background: #3a1d1f; color: #ff9497; }
[data-theme="dark"] .tag--good { background: #10301f; color: #6ee7a5; }
.pane__body { padding: 20px; flex: 1; }

/* 模拟 Word 文档 */
.doc { font-size: .82rem; line-height: 1.6; color: var(--text-2); }
.doc--flat { font-family: var(--mono); font-size: .74rem; color: var(--muted); white-space: pre-wrap; }
.doc h4 { font-size: 1.02rem; margin-bottom: 8px; }
.doc p { margin-bottom: 8px; }
.doc ol, .doc ul { padding-left: 19px; margin-bottom: 8px; }
.doc li { margin-bottom: 3px; }
.doc table { border-collapse: collapse; width: 100%; font-size: .74rem; }
.doc th, .doc td { border: 1px solid var(--border-strong); padding: 5px 8px; text-align: left; }
.doc th { background: var(--bg-sink); font-weight: 700; }
.doc code {
  font-family: var(--mono); font-size: .76em;
  background: var(--bg-sink); padding: 1.5px 5px; border-radius: 4px;
}

/* ------------------------------------------------------------- common --- */

.eyebrow {
  display: inline-block;
  font-size: .775rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--brand-600); margin-bottom: 13px;
}
.sec-head { max-width: 720px; margin-bottom: 48px; }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head h2 { margin-bottom: 15px; }
.sec-head p { color: var(--muted); font-size: 1.055rem; }
.sec-head--center p { max-width: 620px; margin-inline: auto; }

.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px 24px;
  box-shadow: var(--shadow-xs);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--brand-200);
}
.card__icon {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 15px;
  background: var(--brand-50); color: var(--brand-600);
  border: 1px solid var(--brand-100);
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .925rem; }

.card--plain:hover { transform: none; box-shadow: var(--shadow-xs); border-color: var(--border); }

/* 列表项样式 */
.ticks { display: flex; flex-direction: column; gap: 11px; }
.ticks li {
  display: flex; gap: 11px; align-items: flex-start;
  font-size: .93rem; color: var(--text-2); list-style: none;
}
.ticks svg { flex: none; margin-top: 4px; color: var(--brand-500); }
.ticks strong { color: var(--text); font-weight: 650; }

.note {
  display: flex; gap: 11px; align-items: flex-start;
  font-size: .875rem; color: var(--muted);
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 13px 16px;
}
.note svg { flex: none; margin-top: 2px; color: var(--brand-500); }
.note--warn svg { color: var(--warn); }
.note strong { color: var(--text-2); }

/* ---------------------------------------------------------- keycaps --- */

.kbd {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 27px; height: 27px; padding: 0 8px;
  font-family: var(--font); font-size: .8rem; font-weight: 650;
  color: var(--text-2);
  background: linear-gradient(180deg, var(--surface), var(--bg-soft));
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  border-radius: 7px;
  box-shadow: 0 1px 0 rgba(16,44,84,.05);
}
.kbd--wide { min-width: 44px; }
.kbd-group { display: inline-flex; align-items: center; gap: 4px; }

/* ------------------------------------------------------------- 对照 --- */

.compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: 22px; align-items: center; }
.compare__arrow {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--brand-600); box-shadow: var(--shadow-sm);
}

/* --------------------------------------------------------- tabs & demo --- */

.tabs {
  display: inline-flex; gap: 4px; padding: 4px;
  background: var(--bg-sink); border: 1px solid var(--border);
  border-radius: 999px; margin-bottom: 26px;
}
.tab {
  font-family: inherit; font-size: .875rem; font-weight: 620;
  padding: 8px 18px; border-radius: 999px; border: 0; cursor: pointer;
  background: transparent; color: var(--muted);
  transition: background .18s var(--ease), color .18s var(--ease), box-shadow .18s var(--ease);
}
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] {
  background: var(--surface); color: var(--brand-600); box-shadow: var(--shadow-xs);
}

.panel[hidden] { display: none; }

/* 快捷键演示 */
.hotkey-demo {
  display: grid; grid-template-columns: 380px 1fr; gap: 30px; align-items: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 34px;
  box-shadow: var(--shadow-sm);
}
.hotkey-demo__keys { display: flex; gap: 7px; justify-content: center; margin-bottom: 18px; }
.hotkey-demo__keys .kbd { min-width: 46px; height: 46px; font-size: 1rem; }
.hotkey-demo__keys .kbd.is-down {
  transform: translateY(1px);
  background: linear-gradient(180deg, var(--brand-500), var(--brand-600));
  color: #fff; border-color: var(--brand-700);
  border-bottom-width: 1px;
}
.hotkey-demo__hint { text-align: center; font-size: .845rem; color: var(--muted); }
.hotkey-demo__hint b { color: var(--brand-600); }

/* 转换流水线示意 */
.flow {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.flow__step {
  flex: 1 1 130px; min-width: 130px;
  border: 1px dashed var(--border-strong); border-radius: var(--radius-sm);
  padding: 13px 15px; background: var(--surface-2);
  transition: border-color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease);
}
.flow__step.is-on {
  border-style: solid; border-color: var(--brand-400);
  background: var(--brand-50); transform: translateY(-2px);
}
.flow__step b { display: block; font-size: .84rem; margin-bottom: 3px; }
.flow__step span { font-size: .74rem; color: var(--muted); }
.flow__sep { color: var(--muted-2); flex: none; }

/* --------------------------------------------------------- 晾衣绳主题 --- */

.themes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.theme-chip {
  border-radius: var(--radius-sm); overflow: hidden;
  border: 1px solid var(--border); background: var(--surface);
  box-shadow: var(--shadow-xs); cursor: default;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.theme-chip:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.theme-chip__art { height: 62px; position: relative; }
.theme-chip__art::after {
  content: ""; position: absolute; left: 50%; top: 16px; width: 60%;
  height: 0; transform: translateX(-50%);
  border-top: 2px solid rgba(255,255,255,.75);
  border-radius: 50%;
}
.theme-chip__art i {
  position: absolute; top: 22px; width: 16%; height: 26px; border-radius: 5px;
  background: rgba(255,255,255,.94); box-shadow: 0 4px 9px rgba(6,24,56,.28);
}
.theme-chip__art i:nth-child(1) { left: 20%; }
.theme-chip__art i:nth-child(2) { left: 43%; }
.theme-chip__art i:nth-child(3) { left: 66%; }
.theme-chip__label {
  padding: 9px 12px; font-size: .815rem; font-weight: 620; color: var(--text-2);
  border-top: 1px solid var(--border);
}
.t1 { background: linear-gradient(160deg, #4f9cf5, #1a63da); }
.t2 { background: linear-gradient(160deg, #2f8f5b, #0d5a33); }
.t3 { background: linear-gradient(160deg, #e0483f, #9d1d18); }
.t4 { background: linear-gradient(160deg, #2b3a67, #131c3d); }
.t5 { background: linear-gradient(140deg, #ff5fa2, #7a2ff0 48%, #22c7e8); }
.t6 { background: linear-gradient(160deg, #63c07a, #2f7d4a); }
.t7 { background: linear-gradient(160deg, #8fd4ff, #4a9fe0); }
.t8 { background: linear-gradient(160deg, #ffd479, #e8863f); }

/* --------------------------------------------------------- 快捷键表 --- */

.table-wrap {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); overflow: hidden; box-shadow: var(--shadow-xs);
}
table.data { width: 100%; border-collapse: collapse; font-size: .915rem; }
table.data th {
  text-align: left; font-size: .745rem; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--muted-2);
  padding: 14px 20px; background: var(--surface-2);
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
table.data td {
  padding: 14px 20px; border-bottom: 1px solid var(--border);
  color: var(--text-2); vertical-align: middle;
}
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: var(--surface-2); }
table.data td:last-child, table.data th:last-child { text-align: right; }
table.data .fn { font-weight: 620; color: var(--text); }

/* ------------------------------------------------------------- code --- */

.code {
  position: relative;
  background: var(--bg-sink); border: 1px solid var(--border);
  border-radius: var(--radius-sm); overflow: hidden;
}
.code__head {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px; border-bottom: 1px solid var(--border);
  font-size: .755rem; font-weight: 650; color: var(--muted);
  font-family: var(--mono); background: var(--surface-2);
}
.code__copy {
  margin-left: auto; font-family: var(--font); font-size: .72rem; font-weight: 650;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--muted);
  padding: 3px 10px; border-radius: 7px; cursor: pointer;
  transition: color .16s var(--ease), border-color .16s var(--ease);
}
.code__copy:hover { color: var(--brand-600); border-color: var(--brand-200); }
.code__copy.is-done { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.code pre {
  margin: 0; padding: 16px 18px; overflow-x: auto;
  font-family: var(--mono); font-size: .795rem; line-height: 1.7; color: var(--text-2);
}
.code pre .c { color: var(--muted-2); }
.code pre .k { color: var(--brand-600); font-weight: 600; }
.code pre .s { color: var(--ok); }

/* ------------------------------------------------------------- FAQ --- */

.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: center; gap: 14px;
  padding: 21px 4px; font-weight: 620; font-size: 1.015rem; color: var(--text);
  transition: color .18s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--brand-600); }
.faq summary .chev {
  margin-left: auto; flex: none; color: var(--muted-2);
  transition: transform .25s var(--ease), color .18s var(--ease);
}
.faq details[open] summary .chev { transform: rotate(180deg); color: var(--brand-600); }
.faq details[open] summary { color: var(--brand-600); }
.faq__body { padding: 0 4px 24px; color: var(--muted); font-size: .945rem; max-width: 78ch; }
.faq__body p + p { margin-top: 10px; }
.faq__body code {
  font-family: var(--mono); font-size: .85em;
  background: var(--bg-sink); padding: 2px 6px; border-radius: 5px; color: var(--text-2);
}
.faq__body ul { margin-top: 10px; padding-left: 20px; }
.faq__body li { margin-bottom: 6px; }

/* ------------------------------------------------------------ footer --- */

.footer {
  background: var(--bg); border-top: 1px solid var(--border);
  padding: 52px 0 34px; font-size: .875rem;
}
.footer__top { display: grid; grid-template-columns: 1.6fr repeat(2, 1fr); gap: 34px; margin-bottom: 40px; }
.footer__brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.footer__brand img { width: 30px; height: 30px; }
.footer__about { color: var(--muted); max-width: 34ch; }
.footer h4 { font-size: .785rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 14px; }
.footer ul { display: flex; flex-direction: column; gap: 9px; }
.footer li { list-style: none; }
.footer li a { color: var(--muted); text-decoration: none; }
.footer li a:hover { color: var(--brand-600); }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center;
  padding-top: 24px; border-top: 1px solid var(--border);
  color: var(--muted-2); font-size: .82rem;
}
.footer__bottom .spacer { margin-left: auto; }

/* ------------------------------------------------------- 滚动动效 --- */

/* 入场动效：仅在 JS 可用时隐藏初始状态，避免脚本失效导致内容不可见 */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(20px); }
.js .reveal.is-in { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* --------------------------------------------------------- responsive --- */

@media (max-width: 1080px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .themes { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .section { padding: 72px 0; }
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .result { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; }
  .compare__arrow { margin-inline: auto; transform: rotate(90deg); }
  .hotkey-demo { grid-template-columns: 1fr; gap: 24px; padding: 26px; }
  .table-wrap { overflow-x: auto; }
  table.data { min-width: 520px; }
}

@media (max-width: 720px) {
  .wrap { padding-inline: 18px; }
  .hero { padding-top: 54px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .themes { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr; gap: 26px; }
  .hang__item:nth-child(4) { display: none; }
  .hero__note { flex-direction: column; align-items: center; }
}

/* ======================================================================
   补充组件：视图示意、设置字段、分享长图、移动端抽屉
   ====================================================================== */

/* ---- 晾衣绳视图示意 ---- */

.shelfmock {
  border-radius: var(--radius-lg);
  background:
    radial-gradient(700px 300px at 30% 0%, rgba(255,255,255,.20), transparent 66%),
    linear-gradient(165deg, #2a7ff0 0%, #1c62d6 46%, #103f9c 100%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 14px 16px 20px;
  overflow: hidden;
}
[data-theme="dark"] .shelfmock {
  background:
    radial-gradient(700px 300px at 30% 0%, rgba(120,175,255,.14), transparent 66%),
    linear-gradient(165deg, #16386e 0%, #102a55 48%, #0a1c3c 100%);
}
.shelfmock--line { padding-bottom: 24px; }

.shelfmock__top {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  margin-bottom: 16px;
}
.shelfmock__group {
  font-size: .72rem; font-weight: 650;
  padding: 4px 12px; border-radius: 999px;
  color: rgba(255,255,255,.82);
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.16);
}
.shelfmock__group.is-on { background: #fff; color: #14449b; border-color: #fff; }
.shelfmock__filter {
  font-size: .7rem; font-weight: 600; color: rgba(255,255,255,.8);
  padding: 3px 10px; border-radius: 999px;
  border: 1px dashed rgba(255,255,255,.35);
}
.shelfmock__search {
  margin-left: auto; font-size: .72rem; color: rgba(255,255,255,.72);
  padding: 5px 14px; border-radius: 999px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.18);
}

/* 网格视图 */
.gridview {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 9px;
}
.gridcell {
  position: relative; aspect-ratio: 4 / 3;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(210, 226, 246, .9);
  box-shadow: 0 8px 18px -10px rgba(4, 24, 60, .5);
  display: block; overflow: hidden;
}
.gridcell i {
  position: absolute; left: 8px; bottom: 7px;
  font-style: normal; font-size: .58rem; font-weight: 700;
  color: #3f5a7d; letter-spacing: .02em;
}
.gridcell::before {
  content: ""; position: absolute; left: 8px; top: 9px; right: 26px; height: 5px;
  border-radius: 3px; background: #e4ecf7;
}
.gridcell--img { background: linear-gradient(135deg, #4f9cf5, #1a63da); }
.gridcell--img::before { background: rgba(255,255,255,.4); }
.gridcell--img i { color: #fff; }
.gridcell--link { background: #eef6ff; }
.gridcell--table::after {
  content: ""; position: absolute; inset: 22px 8px 8px;
  background-image: linear-gradient(#dbe6f4 1px, transparent 1px),
                    linear-gradient(90deg, #dbe6f4 1px, transparent 1px);
  background-size: 33% 33%;
  border-radius: 3px;
}
.gridcell--table::before { right: 8px; }
.gridcell--pdf { background: #fff1f0; }
.gridcell--video { background: #f3f0ff; }
.gridcell--files { background: #effaf3; }

/* 列表视图 */
.listview {
  display: flex; flex-direction: column; gap: 7px;
  background: rgba(255,255,255,.94);
  border-radius: 12px; padding: 9px;
}
[data-theme="dark"] .listview { background: rgba(248,252,255,.95); }
.listrow {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 11px; border-radius: 8px;
  background: #fff; border: 1px solid #e5eefa;
  font-size: .78rem; color: #16293f;
}
.listrow:hover { background: #f6faff; }
.listrow b {
  font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.listrow__dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.listrow__dot--text  { background: #2e7ff0; }
.listrow__dot--link  { background: #e8963f; }
.listrow__dot--img   { background: #12a150; }
.listrow__dot--table { background: #7a5cf0; }
.listrow__src {
  margin-left: auto; flex: none;
  font-size: .68rem; color: #8ba0ba; font-weight: 600;
}
.listrow .kbd {
  min-width: 21px; height: 20px; font-size: .64rem; flex: none;
  background: #f4f8fd; color: #6b819b; border-color: #e0eaf6;
}

/* ---- 设置字段 ---- */

.fieldset { display: flex; flex-direction: column; }
.field {
  display: flex; align-items: center; gap: 14px;
  padding: 11px 0; border-bottom: 1px solid var(--border);
  font-size: .9rem;
}
.field:last-child { border-bottom: 0; }
.field span { color: var(--muted); }
.field b { margin-left: auto; font-weight: 600; color: var(--text); }

/* ---- 分享长图示意 ---- */

.figure {
  display: flex; gap: 16px; justify-content: center; align-items: flex-start;
  padding: 22px; position: relative;
}
.figure__page {
  width: 190px; aspect-ratio: 440 / 586;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 22px 18px;
  display: flex; flex-direction: column; gap: 9px;
  position: relative;
}
.figure__page--2 { margin-top: 22px; }
.figure__cover {
  font-size: .98rem; font-weight: 800; line-height: 1.28; letter-spacing: -.02em;
  color: var(--text); margin-bottom: 8px;
}
.figure__line { height: 6px; border-radius: 3px; background: var(--bg-sink); }
.figure__line--long { width: 100%; }
.figure__line--mid  { width: 62%; }
.figure__pg {
  position: absolute; left: 18px; bottom: 14px;
  font-size: .62rem; color: var(--muted-2); font-weight: 600;
}

.themes--5 { grid-template-columns: repeat(5, 1fr); }
.themes--5 .theme-chip__art i { top: 12px; height: 20px; width: 15%; }
.themes--5 .theme-chip__art::after { top: 7px; }

/* ---- 页脚/内嵌代码块 ---- */

.code + .note { margin-top: 14px; }
.pane .code { margin-top: 12px; }

/* ---- 移动端抽屉 ---- */

.nav__drawer { display: none; }

@media (max-width: 1120px) {
  .nav__drawer {
    display: block;
    position: fixed; inset: var(--nav-h) 0 auto;
    max-height: 0; overflow: hidden;
    background: var(--bg);
    border-bottom: 1px solid transparent;
    transition: max-height .3s var(--ease), border-color .3s var(--ease);
    padding-inline: 18px;
    box-shadow: none;
  }
  .nav__drawer.is-open {
    max-height: 640px; border-bottom-color: var(--border);
    box-shadow: var(--shadow);
  }
  .nav__drawer a { display: block; padding: 13px 4px; font-size: .98rem; border-bottom: 1px solid var(--border); }
  .nav__drawer a:last-child { border-bottom: 0; }
}

@media (max-width: 1080px) {
  .themes--5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .gridview { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 720px) {
  .themes--5 { grid-template-columns: repeat(2, 1fr); }
  .gridview { grid-template-columns: repeat(3, 1fr); }
  .figure { padding: 8px 0; }
  .figure__page { width: 150px; padding: 16px 13px; }
  .shelfmock { padding: 12px 12px 16px; }
  .listrow__src { display: none; }
}

/* ======================================================================
   防御：栅格与弹性子项默认 min-width:auto，会被长内容撑破容器
   ====================================================================== */

.grid > *,
.result > *,
.themes > *,
.flow > * { min-width: 0; }

.ticks li > span,
.card > p,
.faq__body,
.note > span,
.pane__body { min-width: 0; overflow-wrap: break-word; }

/* 内联代码里常有长路径 / 长标识符，允许在任意处断行 */
.card code,
.note code,
.faq__body code,
.pane__body code,
.ticks code,
.hero__lede code { overflow-wrap: anywhere; }

/* 代码块自身横向滚动，不撑破栅格 */
.code { max-width: 100%; }
.code pre { max-width: 100%; }
.code__head { flex-wrap: wrap; row-gap: 6px; }
.code__head > span,
.code__head { min-width: 0; }

/* 表格容器在窄屏内滚 */
.table-wrap { max-width: 100%; }

/* 长 URL / 文件路径 */
.listrow b, .card-m__src, .card-m__t { min-width: 0; }

@media (max-width: 720px) {
  .field { flex-wrap: wrap; row-gap: 4px; }
  .field b { margin-left: 0; }
  .hotkey-demo__keys .kbd { min-width: 40px; height: 40px; }
}

/* ======================================================================
   收尾修正：快捷键演示行的分配、绳线垂坠、细节对齐
   ====================================================================== */

/* 宽屏：左侧按键区收窄，四个步骤共处一行、等比分配 */
@media (min-width: 901px) {
  .hotkey-demo { grid-template-columns: 340px 1fr; gap: 26px; }
  .flow { flex-wrap: nowrap; gap: 10px; }
  .flow__step { flex: 1 1 0; min-width: 0; }
  .flow__sep { flex: none; }
}

/* 窄屏：一行两个 */
@media (max-width: 900px) {
  .flow { flex-wrap: wrap; row-gap: 12px; }
  .flow__step { flex: 1 1 132px; min-width: 132px; }
}

/* 图片导出主题：避免浅色 / 海洋等色板重复 */
.t9  { background: linear-gradient(160deg, #fff8ea, #e0cba4); }
.t10 { background: linear-gradient(160deg, #c4b0ff, #7a5cf0); }
.t11 { background: linear-gradient(160deg, #2fb6e8, #0b6ba8); }
.t12 { background: linear-gradient(160deg, #fdeef4, #e9b7cd); }
.t9 .theme-chip__art i, .t12 .theme-chip__art i { background: #fff; }
.t13 { background: linear-gradient(160deg, #fdfaf3, #ded3bd); }

/* ======================================================================
   移动端收尾
   ====================================================================== */

@media (max-width: 720px) {
  /* 两个 CTA 等宽竖排 */
  .hero__cta { flex-direction: column; align-items: stretch; max-width: 320px; margin-inline: auto; }
  .hero__cta .btn { width: 100%; }

  /* 晾衣绳示意：保留三张卡片，各自变宽，卡片文字不再挤成竖排 */
  .hang__item { width: 30%; }
  .hang__item--center .card-m { transform: none; }
  .card-m { padding: 7px 7px 8px; border-radius: 9px; }
  .card-m__head { margin-bottom: 5px; gap: 3px; }
  .card-m__badge { font-size: .5rem; padding: 1px 4px; }
  .card-m__src { font-size: .48rem; }
  .card-m__key { font-size: .48rem; padding: 0 2px; }
  .card-m__t { font-size: .5rem; }
  .card-m__thumb { height: 34px; }

  /* 转换提示改为整行铺开 */
  .toast-m {
    left: 18px; right: 18px; bottom: 16px;
    justify-content: center;
    font-size: .735rem; padding: 9px 12px;
  }
  .desktop { padding-bottom: 76px; }

  /* 章节标题与正文的节奏 */
  .sec-head { margin-bottom: 34px; }
  .sec-head p { font-size: .98rem; }
  .hero__lede { font-size: 1rem; }
}

/* 卡片头部：标签不换行，来源可截断 */
.card-m__badge, .card-m__key, .card-m__src { white-space: nowrap; }
.card-m__src { overflow: hidden; text-overflow: ellipsis; }
.card-m__t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 520px) {
  .card-m__src { display: none; }
}

/* ======================================================================
   流水线示意：平板两列、手机单列（箭头改为向下）
   ====================================================================== */

@media (min-width: 721px) and (max-width: 900px) {
  .flow { flex-wrap: wrap; row-gap: 14px; }
  .flow__step { flex: 1 1 0; min-width: 0; }
  .flow__sep { flex: none; }
}

@media (max-width: 720px) {
  .flow { flex-direction: column; align-items: stretch; gap: 0; }
  .flow__sep { display: none; }
  .flow__step { flex: 0 0 auto; min-width: 0; position: relative; }
  .flow__step:not(:last-child) { margin-bottom: 22px; }
  .flow__step:not(:last-child)::after {
    content: "";
    position: absolute; left: 50%; bottom: -15px;
    width: 8px; height: 8px; margin-left: -4px;
    border-right: 2px solid var(--muted-2);
    border-bottom: 2px solid var(--muted-2);
    transform: rotate(45deg);
  }
}

/* ======================================================================
   导出体系：两个子区块（导出模板 / 表格与 Excel）
   ====================================================================== */

.sub-block {
  margin-top: 58px;
  padding-top: 42px;
  border-top: 1px solid var(--border);
}

.sub-block__head { max-width: 780px; margin-bottom: 30px; }
.sub-block__head h3 { font-size: clamp(1.3rem, 2.3vw, 1.62rem); margin: 12px 0 14px; }
.sub-block__head p { color: var(--muted); font-size: 1rem; }

/* 模板那一块用浅色底带，和上面的 Tab 区隔开 */
.sub-block--band {
  border: 1px solid var(--border);
  border-top: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  padding: 34px 30px 32px;
}
[data-theme="dark"] .sub-block--band { background: var(--surface-2); }

.sub-block code {
  font-family: var(--mono);
  font-size: .84em;
  background: var(--bg-sink);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 5px;
  overflow-wrap: anywhere;
}
.sub-block--band code { background: var(--surface); }

@media (max-width: 720px) {
  .sub-block { margin-top: 44px; padding-top: 32px; }
  .sub-block--band { padding: 24px 18px 22px; }
}

/* 章节头（.sec-head）已经没有的章节里，第一个子块不必再和上文拉开距离，
   那道上分隔线也没有上文可分了。 */
.wrap > .sub-block:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

/* ---- 标签组（MCP 接入工具） ---- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: .815rem; font-weight: 620; color: var(--brand-700);
  background: var(--brand-50); border: 1px solid var(--brand-100);
  padding: 5px 13px; border-radius: 999px; white-space: nowrap;
}

/* ======================================================================
   页脚改为「品牌 + 两列」后，窄屏让品牌独占一行
   ====================================================================== */

@media (max-width: 1080px) {
  .footer__top > div:first-child { grid-column: 1 / -1; }
}


/* ======================================================================
   品类换代：首屏三标签 + 传统对照 + 三层堆叠
   ====================================================================== */

/* ---- 首屏：分管 / 加工 / 连接 三个标签 ---- */

.hero__stacks {
  list-style: none; margin: 20px 0 26px; padding: 0;
  display: flex; flex-wrap: wrap; gap: 9px;
}
.hero__stacks li {
  display: flex; align-items: baseline; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: var(--brand-50); border: 1px solid var(--brand-100);
  font-size: .83rem; color: var(--muted); min-width: 0;
}
.hero__stacks b {
  font-weight: 700; color: var(--brand-700);
  font-size: .875rem; white-space: nowrap;
}
.hero__stacks span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- 对照图 ---- */

.stackcmp {
  display: grid;
  grid-template-columns: 236px 58px 1fr;
  align-items: stretch;
  gap: 0;
}

/* 左：传统那一层 */
.oldcard {
  display: flex; flex-direction: column;
  border-radius: var(--radius);
  background: var(--bg-sink);
  border: 1px dashed var(--border-strong);
  padding: 20px 18px 18px;
  color: var(--muted);
  min-width: 0;
}
.oldcard__eyebrow {
  font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  color: var(--muted-2); text-transform: none;
}
.oldcard__head h3 { font-size: 1.06rem; color: var(--text-2); margin-top: 3px; }
.oldcard__list { list-style: none; margin: 16px 0 0; padding: 0; flex: 1; }
.oldcard__list li {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 0; border-bottom: 1px solid var(--border);
  font-size: .875rem; min-width: 0;
}
.oldcard__list li:last-child { border-bottom: 0; }
.oldcard__ico { display: inline-flex; flex: none; color: var(--muted-2); }
.oldcard__stop {
  margin-top: 14px; padding-top: 13px;
  border-top: 1px solid var(--border-strong);
  font-size: .795rem; color: var(--muted-2); line-height: 1.5;
}
.oldcard__bar {
  display: block; width: 100%; height: 4px; border-radius: 2px;
  background: repeating-linear-gradient(90deg, var(--border-strong) 0 6px, transparent 6px 12px);
  margin-bottom: 9px;
}

/* 中间箭头 */
.stackcmp__arrow {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; color: var(--brand-400); min-width: 0;
}
.stackcmp__arrow span {
  font-size: .7rem; font-weight: 700; letter-spacing: .08em;
  color: var(--brand-600); white-space: nowrap;
}

/* 右：三层 */
.tiers { display: flex; flex-direction: column; gap: 12px; min-width: 0; }

.tier {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 17px 20px 16px;
  min-width: 0;
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}
.tier::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--brand-300);
}
.tier--3::before { background: linear-gradient(180deg, #5b9cff, #2e7ff0); }
.tier--2::before { background: linear-gradient(180deg, #8fbaff, #5b9cff); }
.tier--1::before { background: linear-gradient(180deg, #bcd6ff, #8fbaff); }

.tier--3 {
  background: linear-gradient(180deg, rgba(238, 245, 255, .92), var(--surface) 62%);
  border-color: var(--brand-200);
  box-shadow: 0 14px 34px -18px rgba(26, 99, 218, .35);
}
.tier--2 { background: var(--surface-2); }

.tier__head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 8px; }
.tier__head h3 { font-size: 1.03rem; letter-spacing: -.01em; width: 100%; }
.tier__lv {
  font-size: .7rem; font-weight: 700; letter-spacing: .05em;
  color: var(--brand-700); background: var(--brand-100);
  border: 1px solid var(--brand-200); border-radius: 6px;
  padding: 2px 8px; white-space: nowrap;
}
.tier__tag {
  font-size: .78rem; font-weight: 650; color: var(--brand-600); white-space: nowrap;
}
.tier__desc { color: var(--muted); font-size: .885rem; line-height: 1.62; margin-bottom: 12px; }
.tier__desc strong { color: var(--text-2); font-weight: 650; }

.tier__feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.tier__feats li {
  display: flex; align-items: baseline; gap: 9px;
  font-size: .845rem; min-width: 0;
}
.tier__ico { display: inline-flex; flex: none; color: var(--brand-500); transform: translateY(2px); }
.tier__feats b { font-weight: 650; color: var(--text-2); flex: none; white-space: nowrap; }
.tier__sub {
  color: var(--muted-2); font-size: .8rem; min-width: 0;
  overflow: hidden; text-overflow: ellipsis;
}

.tier__links {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--border);
}
.tier__links a {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: .78rem; font-weight: 600; color: var(--brand-600);
  background: var(--brand-50); border: 1px solid var(--brand-100);
  padding: 4px 10px; border-radius: 999px;
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.tier__links a svg { opacity: .6; }
.tier__links a:hover { background: var(--brand-100); color: var(--brand-700); }

@media (max-width: 1040px) {
  .stackcmp { grid-template-columns: 1fr; gap: 18px; }
  .stackcmp__arrow { flex-direction: row; gap: 9px; padding: 2px 0; }
  .stackcmp__arrow svg { transform: rotate(90deg); }
  .oldcard { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 10px 22px; padding: 16px 18px; }
  .oldcard__head { width: 100%; }
  .oldcard__list {
    display: flex; flex-wrap: wrap; gap: 4px 24px; margin: 0; flex: 1;
  }
  .oldcard__list li { border-bottom: 0; padding: 3px 0; }
  .oldcard__stop { margin-top: 0; padding-top: 0; border-top: 0; width: 100%; }
  .oldcard__bar { margin-bottom: 6px; }
}
@media (max-width: 560px) {
  .hero__stacks { flex-direction: column; align-items: stretch; }
  .hero__stacks li { justify-content: flex-start; }
  .tier { padding: 15px 15px 14px; }
  .tier__feats li { flex-wrap: wrap; gap: 3px 9px; }
  .tier__sub { white-space: normal; }
}

/* 左侧对照卡：跟随滚动，避免被右侧三层拉出大片空白 */
@media (min-width: 1041px) {
  .oldcard { position: sticky; top: calc(var(--nav-h) + 26px); align-self: start; }
  .stackcmp__arrow { align-self: start; margin-top: 34px; justify-content: flex-start; }
}

/* ======================================================================
   窄屏首屏标题：主副行都要一行放下，否则会拆出孤字
   ====================================================================== */

@media (max-width: 560px) {
  h1 { font-size: 1.95rem; letter-spacing: -.03em; }
  .hero h1 { margin-bottom: 16px; }
  .hero h1 .grad { font-size: .86em; }
}

/* 窄屏：特性行改两列网格，说明文字换行后与名称左对齐 */
@media (max-width: 560px) {
  .tier__feats li {
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr);
    gap: 1px 9px;
    align-items: baseline;
  }
  .tier__ico { grid-row: 1 / span 2; }
  .tier__feats b { white-space: normal; }
}

/* ======================================================================
   深色：第 3 层的浅色渐变在深色底上会变成一块灰白，改用品牌色叠加
   ====================================================================== */

[data-theme="dark"] .tier--3 {
  background: linear-gradient(180deg, rgba(46, 127, 240, .17), var(--surface) 66%);
  border-color: rgba(122, 179, 255, .30);
  box-shadow: 0 16px 38px -20px rgba(0, 0, 0, .75);
}
[data-theme="dark"] .tier--2 { background: var(--surface-2); }
[data-theme="dark"] .tier::before { opacity: .95; }

/* ======================================================================
   诞生记（#story）：三步叙事卡
   ====================================================================== */

.story {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
  gap: 18px;
}
.story > * { min-width: 0; }

.story__step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 22px 22px 20px;
}

.story__no {
  display: inline-block;
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--brand-600);
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  border-radius: 999px;
  padding: 3px 11px;
  margin-bottom: 13px;
}

.story__step h3 { font-size: 1.07rem; margin-bottom: 10px; }
.story__step p { color: var(--muted); font-size: .925rem; }

.story__step code {
  font-family: var(--mono);
  font-size: .84em;
  background: var(--bg-sink);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 5px;
  overflow-wrap: anywhere;
}

.story__step .story__so {
  margin-top: 13px;
  padding-top: 13px;
  border-top: 1px dashed var(--border-strong);
  color: var(--text-2);
  font-weight: 650;
}

[data-theme="dark"] .story__step { box-shadow: 0 2px 10px rgba(0, 0, 0, .35); }

/* ======================================================================
   信息架构：层级徽标（管得住 / 用得上 / 连得通）
   页面按三个层级分章，徽标标在章节眉标旁边；「用得上」这一章的六个
   子区块（导出体系 / Word 模板 / 表格与 Excel / 思维导图 / AI 与识别 /
   自定义提示词）都收纳在 #actions 章节内部，不单独占一级导航。
   #actions 自己的章节头（含跳转胶囊行）已删，锚点落在第一个子块上，
   导航与页脚里的「右键菜单」仍旧指向这里。
   ====================================================================== */

.eyebrow-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 13px; }
.eyebrow-row .eyebrow { margin-bottom: 0; }

.tierchip {
  display: inline-flex; align-items: center;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  padding: 3px 10px; border-radius: 999px; white-space: nowrap;
  border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text-2);
}
/* 用得上沿用品牌蓝变量，明暗色自动跟随 */
.tierchip--use { color: var(--brand-700); background: var(--brand-50); border-color: var(--brand-100); }
.tierchip--hold { color: #0e7a3d; background: #eefaf3; border-color: #b6e3c8; }
.tierchip--link { color: #6b3fc4; background: #f4efff; border-color: #d9c9f7; }
[data-theme="dark"] .tierchip--hold { color: #6ee7a5; background: rgba(16, 48, 31, .75); border-color: rgba(110, 231, 165, .30); }
[data-theme="dark"] .tierchip--link { color: #c9b0f5; background: rgba(122, 75, 208, .18); border-color: rgba(201, 176, 245, .28); }

a.chip { text-decoration: none; }
a.chip:hover { background: var(--brand-100); border-color: var(--brand-200); text-decoration: none; }

.footer__sub { margin-top: 3px; padding-left: 12px; border-left: 1px solid var(--border); gap: 7px; }
.footer__sub li a { font-size: .82rem; color: var(--muted-2); }
.footer__sub li a:hover { color: var(--brand-600); }

/* 「用得上」这一章（#actions）本身是浅底，章节内的浅色带要翻成白底才看得出层次；
   行内 code 也跟着换成 sink 底，否则会和白底连成一片。 */
.section--soft .sub-block--band { background: var(--surface); }
.section--soft .sub-block--band code { background: var(--bg-sink); }
[data-theme="dark"] .section--soft .sub-block--band { background: var(--surface-2); }
[data-theme="dark"] .section--soft .sub-block--band code { background: var(--bg-sink); }

/* =============================================== Excel 场景（#excel 内） === */
.scene { margin-top: 46px; }
.scene__title { font-size: 1.16rem; margin-bottom: 10px; }
.scene__lede { color: var(--muted); font-size: .95rem; max-width: 800px; margin-bottom: 22px; }

/* 模拟工作表：列头 + 行号 + 单元格 */
.sheet {
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  font-size: .74rem;
}
.sheet__cols,
.sheet__row { display: grid; grid-template-columns: 28px repeat(3, minmax(0, 1fr)); }
.sheet__cols {
  background: var(--bg-sink); color: var(--muted-2);
  font-size: .62rem; font-weight: 700; text-align: center;
}
.sheet__cols span { padding: 3px 0; border-right: 1px solid var(--border); }
.sheet__cols span:last-child { border-right: 0; }
.sheet__row { border-top: 1px solid var(--border); }
.sheet__no {
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-sink); color: var(--muted-2);
  font-size: .62rem; font-weight: 700;
  border-right: 1px solid var(--border);
}
.sheet__cell {
  padding: 6px 8px; min-height: 27px; min-width: 0;
  color: var(--text-2); border-right: 1px solid var(--border);
}
.sheet__cell:last-child { border-right: 0; }
.sheet__cell--head { background: var(--brand-50); font-weight: 700; }
.sheet__cell--dump {
  font-family: var(--mono); font-size: .68rem; line-height: 1.5;
  color: var(--muted); background: #fdf3f3; overflow-wrap: anywhere;
}
[data-theme="dark"] .sheet__cell--dump { background: #291a1c; }
.sheet__tabs { display: flex; gap: 5px; margin-top: 10px; }
.sheet__tabs span {
  font-size: .7rem; font-weight: 620; color: var(--muted);
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 6px; padding: 3px 11px;
}
.sheet__tabs span.is-on { color: var(--brand-700); background: var(--brand-50); border-color: var(--brand-200); }
.sheet__cap { margin-top: 12px; font-size: .8rem; color: var(--muted-2); }

@media (max-width: 560px) {
  .sheet__cols,
  .sheet__row { grid-template-columns: 22px repeat(3, minmax(0, 1fr)); }
  .sheet__cell { padding: 5px 6px; }
  .sheet__cell--dump { font-size: .62rem; }
  .scene__title { font-size: 1.06rem; }
}

/* ========================================================== 语言切换 === */
.lang-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 36px; min-width: 42px; padding: 0 11px;
  font-size: .74rem; font-weight: 700; letter-spacing: .05em;
  color: var(--muted); background: var(--surface);
  border: 1px solid var(--border); border-radius: 10px;
  text-decoration: none; white-space: nowrap;
  transition: color .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease);
}
.lang-btn:hover { color: var(--brand-600); border-color: var(--brand-200); background: var(--brand-50); text-decoration: none; }

.footer__lang a { color: var(--muted-2); }
.footer__lang a:hover { color: var(--brand-600); }

/* 窄屏导航：语言入口进来后，320/360 这类老机型放不下「下载」文字按钮，
   小屏把它收进抽屉（顶部只留 主题 / 语言 / 菜单）——首屏与下载区各有一个更大的入口。 */
@media (max-width: 420px) {
  .wrap { padding-inline: 18px; }
  .nav__inner { gap: 12px; }
  .nav__actions { gap: 6px; }
  .nav__actions .btn--primary { display: none; }
  .lang-btn { min-width: 34px; padding: 0 8px; }
}

/* 抽屉里的「下载」按钮（由 main.js 克隆顶部按钮得到） */
@media (max-width: 1120px) {
  .nav__drawer .drawer__cta {
    display: flex; width: 100%; justify-content: center;
    margin-top: 10px; border-bottom: 0;
  }
}

/* 英文文案比中文长得多，窄屏下首屏三个胶囊与 Tab 条会顶破视口：
   胶囊改成整行堆叠、标签允许折行（中文页同样受益）。 */
@media (max-width: 560px) {
  .hero__stacks { display: grid; grid-template-columns: minmax(0, 1fr); }
  .hero__stacks li { border-radius: 14px; padding: 8px 14px; }
  .hero__stacks b,
  .hero__stacks span { white-space: normal; overflow: visible; text-overflow: clip; }

  .tabs { display: flex; flex-wrap: wrap; border-radius: 20px; row-gap: 4px; }
  .tab { flex: 1 1 auto; padding: 8px 12px; }
}

/* ========================================================== 思维导图 === */
/* #xmind 场景里的导图示意：左根右枝，枝色取自 XMind 写入器的分支配色
   （#0A7AF5 / #0FB37A / #F08A2E）。根节点用品牌渐变，与首屏一致。 */
.mindmap { display: flex; gap: 14px; align-items: stretch; }
.mindmap__root {
  display: flex; align-items: center; justify-content: center;
  flex: none; max-width: 92px; padding: 10px 13px;
  font-size: .82rem; font-weight: 700; line-height: 1.35; color: #fff; text-align: center;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--brand-500), var(--brand-700));
  box-shadow: var(--shadow-sm);
}
.mindmap__tree {
  display: flex; flex-direction: column; justify-content: center;
  gap: 11px; flex: 1; min-width: 0;
}
.mindmap__branch { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.mindmap__stem { flex: none; width: 15px; height: 2px; border-radius: 2px; background: var(--border-strong); }
.mindmap__branch b { font-size: .82rem; font-weight: 650; color: var(--text); }
.mindmap__leaf {
  font-size: .72rem; color: var(--muted); background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 7px; padding: 2px 9px;
}
.mindmap__branch--1 .mindmap__stem { background: #2e7ff0; }
.mindmap__branch--2 .mindmap__stem { background: #0fb37a; }
.mindmap__branch--3 .mindmap__stem { background: #f08a2e; }
/* 第一枝用品牌变量，明暗自洽；另两枝是应用里的固定色，暗色另给一套。 */
.mindmap__branch--1 .mindmap__leaf { color: var(--brand-700); background: var(--brand-50); border-color: var(--brand-200); }
.mindmap__branch--2 .mindmap__leaf { color: #0a7a52; background: #eefaf4; border-color: #c2e8d6; }
.mindmap__branch--3 .mindmap__leaf { color: #9a5c10; background: #fdf6ea; border-color: #f2dcb4; }
[data-theme="dark"] .mindmap__branch--2 .mindmap__leaf { color: #7fd8b3; background: #10261e; border-color: #1e4a39; }
[data-theme="dark"] .mindmap__branch--3 .mindmap__leaf { color: #f0c078; background: #241c10; border-color: #4c3c1e; }

@media (max-width: 560px) {
  .mindmap { gap: 10px; }
  .mindmap__root { max-width: 74px; padding: 8px 10px; font-size: .76rem; }
  .mindmap__branch { gap: 6px; }
  .mindmap__branch b { font-size: .78rem; }
  .mindmap__leaf { font-size: .68rem; padding: 2px 7px; }
}

/* ==================================================== 更多功能（一张卡片） ===
   把够不上单开一节的动作收进一张长方形卡片，两列网格 Row。
   注意：本段自带 @media 且已闭合，后面再追加新规则时不会再被吞进媒体查询里。 */
.more-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  padding: 26px 28px 28px;
}
.more-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.more-card__ico {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--brand-50);
  color: var(--brand-600);
}
.more-card__title { flex: 1 1 auto; min-width: 0; }
.more-card__title > b { display: block; font-size: 1.02rem; letter-spacing: -.01em; }
.more-card__title > span { display: block; margin-top: 3px; font-size: .86rem; color: var(--muted); }
.more-card__count {
  flex: 0 0 auto;
  font-size: .8rem; font-weight: 600;
  color: var(--brand-700);
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  border-radius: 999px;
  padding: 5px 12px;
}
.more-card__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 30px;
}
.more-item { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.more-item__ico {
  flex: 0 0 auto;
  width: 32px; height: 32px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--brand-600);
}
.more-item__txt { min-width: 0; }
/* 用直接子选择器：说明里嵌套的 <span class="kbd"> 不能被 display:block 命中，
   否则 ⌘P 会被撑成占满整行的大白框。 */
.more-item__txt > b { display: block; font-size: .93rem; line-height: 1.45; }
.more-item__txt > span { display: block; margin-top: 3px; font-size: .83rem; line-height: 1.62; color: var(--muted); }
.more-item__txt code { font-size: .96em; }

[data-theme="dark"] .more-card__ico,
[data-theme="dark"] .more-item__ico { background: rgba(143, 186, 255, .14); border-color: rgba(143, 186, 255, .22); }
/* 暗色主题把品牌色梯度反了过来（低阶变深），所以药丸文字不能沿用 --brand-700，
   改用暗色下为亮蓝的 --brand-600。 */
[data-theme="dark"] .more-card__count { background: rgba(143, 186, 255, .14); border-color: rgba(143, 186, 255, .22); color: var(--brand-600); }

@media (max-width: 820px) {
  .more-card { padding: 22px 20px 24px; }
  .more-card__grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}
@media (max-width: 420px) {
  .more-card__count { margin-left: 58px; }
}
