/* ===== XyZ 使用说明书 · 首页设计语言 ===== */
/* 调色板与首页一致：深海军蓝 ink / 玫瑰 / 蜜桃 / 雾蓝 / 暗蓝 */
html { scroll-behavior: smooth; }
html[data-page="xyz"] { overflow-x: hidden; }
html[data-page="xyz"] {
  --nx-ink: #10294b;
  --nx-ink-2: #1d3d64;
  --nx-rose-fill: #f09b9c;
  --nx-rose-text: #c0575a;
  --nx-peach: #f8d5d5;
  --nx-pale: #dfe8f3;
  --nx-dim: #889cc5;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
}
html[data-page="xyz"] body { padding: 0; }
html[data-page="xyz"] main { width: 100%; min-width: 0; }

/* 水平内边距与首页 .nx-inner 一致（clamp 桌面 48 / 平板 5vw / 移动 20） */
.xyz-shell { width: 100%; max-width: var(--curated-home-max-width); margin: 0 auto; padding: 0 clamp(20px, 5vw, 48px) 42px; }

/* ============================================================
   Hero · 全宽深海军蓝
   ============================================================ */
.xyz-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  /* global.css 的裸 header { text-align:center } 会居中 hero 文字，参照 index 全部左对齐 */
  text-align: left;
  /* 每侧多出 10px：50% 以父宽为基准、50vw 以视口为基准，滚动条会让两者差几像素，
     多出的宽度被 body 的 overflow-x:hidden 裁掉，保证全出血无缝隙 */
  width: calc(100vw + 20px);
  margin-left: calc(50% - 50vw - 10px);
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--nx-ink);
  /* 防选中：避免轻点/拖拽掷星时选中标题文字或触发 Edge 拖拽搜索 */
  user-select: none;
  -webkit-user-select: none;
  /* 探测器形状的系统光标（菱形尖端在左上角=热点，碟面/探测杆向右下展开） */
  cursor: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'32'%20height%3D'32'%20viewBox%3D'0%200%2032%2032'%3E%3Cpath%20transform%3D'matrix(0.031%200%200%200.031%202.68%2030.80)'%20d%3D'M560-32v-80q117%200%20198.5-81.5T840-392h80q0%2075-28.5%20140.5t-77%20114q-48.5%2048.5-114%2077T560-32Zm0-160v-80q50%200%2085-35t35-85h80q0%2083-58.5%20141.5T560-192ZM222-57q-15%200-30-6t-27-17L23-222q-11-12-17-27t-6-30q0-16%206-30.5T23-335l127-127q23-23%2057-23.5t57%2022.5l50%2050%2028-28-50-50q-23-23-23-56t23-56l57-57q23-23%2056.5-23t56.5%2023l50%2050%2028-28-50-50q-23-23-23-56.5t23-56.5l127-127q12-12%2027-18t30-6q15%200%2029.5%206t26.5%2018l142%20142q12%2011%2017.5%2025.5T895-730q0%2015-5.5%2030T872-673L745-546q-23%2023-56.5%2023T632-546l-50-50-28%2028%2050%2050q23%2023%2022.5%2056.5T603-405l-56%2056q-23%2023-56.5%2023T434-349l-50-50-28%2028%2050%2050q23%2023%2022.5%2057T405-207L278-80q-11%2011-25.5%2017T222-57Zm0-79%2042-42-142-142-42%2042%20142%20142Zm85-85%2042-42-142-142-42%2042%20142%20142Zm184-184%2056-56-142-142-56%2056%20142%20142Zm198-198%2042-42-142-142-42%2042%20142%20142Zm85-85%2042-42-142-142-42%2042%20142%20142ZM448-504Z'%20fill%3D'%23f09b9c'%20fill-opacity%3D'0.95'%2F%3E%3C%2Fsvg%3E") 7 2, auto;
}
.xyz-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(16, 41, 75, 0.95) 0%, rgba(16, 41, 75, 0.78) 44%, rgba(16, 41, 75, 0.28) 70%, rgba(16, 41, 75, 0.06) 100%);
}

/* 夜空画布：星野微闪 + 流星（由 xyz-sky.js 绘制） */
#xyz-sky {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
/* 交互提示（左下角，样式复用 global 的 .nx-hero-hint-ico）：
   轻点掷星全端可用，触摸设备也显示（global 对 coarse pointer 默认隐藏） */
@media (pointer: coarse) {
  .xyz-hero .nx-hero-hint-ico { display: flex; }
}

.xyz-hero-watermark {
  top: 50%;
  right: clamp(0px, 2vw, 48px);
  transform: translateY(-54%);
  font-size: clamp(9rem, 30vw, 19rem);
  color: rgba(136, 156, 197, 0.08);
}
.xyz-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding: calc(var(--nav-height) + clamp(44px, 9vh, 90px)) clamp(20px, 5vw, 48px) clamp(64px, 11vh, 120px);
}

.xyz-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--nx-rose-text);
  text-transform: uppercase;
}
.xyz-eyebrow > span {
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}
.xyz-hero .xyz-eyebrow { margin-bottom: 24px; color: var(--nx-rose-fill); }

.xyz-hero h1 {
  margin: 0;
  max-width: 12em;
  color: #ffffff;
  text-shadow: none;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6.4vw, 5.4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-align: left;
}
.xyz-hero h1 .xyz-accent {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--nx-rose-fill);
}
.xyz-hero-sub {
  margin: 26px 0 0;
  max-width: 560px;
  color: var(--nx-pale);
  font-size: clamp(0.98rem, 1.5vw, 1.12rem);
  line-height: 1.85;
}
.xyz-hero-sub em { font-style: normal; color: var(--nx-peach); }

/* 按钮（与首页 nx-btn 同款） */
.xyz-hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.xyz-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border: none;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.xyz-btn-primary { background: var(--nx-rose-fill); color: #10294b; }
.xyz-btn-primary:hover { background: var(--nx-peach); transform: translateY(-2px); }
.xyz-btn-ghost { background: rgba(223, 232, 243, 0.08); color: var(--nx-pale); }
.xyz-btn-ghost:hover { background: rgba(223, 232, 243, 0.2); color: #ffffff; transform: translateY(-2px); }
.xyz-hero-hint {
  margin-top: 26px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--nx-dim);
}

/* 浅色主题：hero 换浅蓝底，文字翻转为 ink 系（镜像深色 ink hero / body 的关系） */
html[data-theme="light"] .xyz-hero {
  --nx-ink: #dfe8f3;
  --nx-ink-2: #c9d7ea;
  --nx-rose-fill: #c0575a;
  --nx-rose-text: #c0575a;
  --nx-peach: #a34548;
  --nx-pale: #46608f;
  --nx-dim: #7c93bd;
  cursor: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'32'%20height%3D'32'%20viewBox%3D'0%200%2032%2032'%3E%3Cpath%20transform%3D'matrix(0.031%200%200%200.031%202.68%2030.80)'%20d%3D'M560-32v-80q117%200%20198.5-81.5T840-392h80q0%2075-28.5%20140.5t-77%20114q-48.5%2048.5-114%2077T560-32Zm0-160v-80q50%200%2085-35t35-85h80q0%2083-58.5%20141.5T560-192ZM222-57q-15%200-30-6t-27-17L23-222q-11-12-17-27t-6-30q0-16%206-30.5T23-335l127-127q23-23%2057-23.5t57%2022.5l50%2050%2028-28-50-50q-23-23-23-56t23-56l57-57q23-23%2056.5-23t56.5%2023l50%2050%2028-28-50-50q-23-23-23-56.5t23-56.5l127-127q12-12%2027-18t30-6q15%200%2029.5%206t26.5%2018l142%20142q12%2011%2017.5%2025.5T895-730q0%2015-5.5%2030T872-673L745-546q-23%2023-56.5%2023T632-546l-50-50-28%2028%2050%2050q23%2023%2022.5%2056.5T603-405l-56%2056q-23%2023-56.5%2023T434-349l-50-50-28%2028%2050%2050q23%2023%2022.5%2057T405-207L278-80q-11%2011-25.5%2017T222-57Zm0-79%2042-42-142-142-42%2042%20142%20142Zm85-85%2042-42-142-142-42%2042%20142%20142Zm184-184%2056-56-142-142-56%2056%20142%20142Zm198-198%2042-42-142-142-42%2042%20142%20142Zm85-85%2042-42-142-142-42%2042%20142%20142ZM448-504Z'%20fill%3D'%23c0575a'%20fill-opacity%3D'0.95'%2F%3E%3C%2Fsvg%3E") 7 2, auto;
}
/* 浅色 hero 全平色（#dfe8f3）：移除深色渐变 */
html[data-theme="light"] .xyz-hero::before {
  background: transparent;
}
html[data-theme="light"] .xyz-hero h1 { color: #10294b; }
html[data-theme="light"] .xyz-hero-watermark { color: rgba(23, 56, 95, 0.055); }
html[data-theme="light"] .xyz-btn-primary { color: #ffffff; }
html[data-theme="light"] .xyz-btn-ghost { background: rgba(23, 56, 95, 0.06); color: #46608f; }
html[data-theme="light"] .xyz-btn-ghost:hover { background: rgba(23, 56, 95, 0.1); color: #10294b; }

/* 读数 / 滚动提示：已上移到 global.css 共享（.nx-readout / .nx-scrollcue） */
.xyz-hero { touch-action: pan-y; }

/* ============================================================
   小节 · 首页式标题 + 水印
   ============================================================ */
.xyz-section { position: relative; margin-top: clamp(76px, 10vh, 120px); scroll-margin-top: calc(var(--nav-height) + 24px); }
.xyz-section > *:not(.xyz-watermark) { position: relative; z-index: 1; }
.xyz-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(26px, 4vh, 40px);
}
.xyz-section-heading .xyz-eyebrow { margin-bottom: 14px; }
.xyz-section-heading h2 {
  margin: 0;
  color: var(--text-body);
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-align: left;
}
.xyz-section-heading > p {
  max-width: 400px;
  margin: 0 0 4px;
  color: var(--text-dim);
  font-size: 0.94rem;
  line-height: 1.7;
  text-align: right;
}

.xyz-watermark {
  position: absolute;
  z-index: 0;
  top: -0.06em;
  right: clamp(0px, 2vw, 28px);
  font-family: var(--font-deco);
  font-size: clamp(6rem, 17vw, 12.5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: rgba(136, 156, 197, 0.07);
  pointer-events: none;
  user-select: none;
}
html[data-theme="light"] .xyz-watermark { color: rgba(23, 56, 95, 0.055); }

/* mono 标签 */
.card-label, .demo-intro > span {
  display: block;
  margin-bottom: 5px;
  color: var(--nx-dim);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
}

/* ============================================================
   核心功能
   ============================================================ */
.xyz-function-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.xyz-function {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 16px;
  min-height: 112px;
  padding: 20px 22px;
  border-radius: 21px;
  color: var(--nx-ink);
  text-decoration: none;
  transition: transform 0.25s ease, background 0.25s ease;
}
.xyz-function:nth-child(odd) { background: var(--nx-pale); }
.xyz-function:nth-child(even) { background: var(--nx-peach); }
.xyz-function:hover { transform: translateX(5px); background: #ffffff; }
.function-number { color: var(--nx-dim); font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.08em; }
.xyz-function strong { display: block; color: var(--nx-ink); font-family: var(--font-display); font-size: 1.05rem; }
.xyz-function small { display: block; margin-top: 4px; color: var(--nx-ink); font-size: 0.8rem; line-height: 1.5; opacity: 0.72; }
.xyz-function > i { color: var(--nx-dim); transition: transform 0.25s ease, color 0.25s ease; }
.xyz-function:hover > i { transform: translateX(4px); color: var(--nx-rose-fill); }

.xyz-mini-program {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  margin-top: 16px;
  padding: 22px 28px;
  border-radius: 25px;
  background: var(--nx-ink-2);
  color: #ffffff;
  cursor: pointer;
}
.mini-qr { display: grid; width: 82px; height: 82px; place-items: center; overflow: hidden; border-radius: 17px; background: #ffffff; }
.mini-qr img { width: 100%; height: 100%; object-fit: contain; }
.mini-copy small { display: block; color: var(--nx-peach); font-family: var(--font-mono); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.14em; }
.mini-copy strong { display: block; margin: 3px 0; color: #ffffff; font-family: var(--font-display); font-size: 1.18rem; }
.mini-copy em { display: block; color: #ffffff; font-size: 0.8rem; font-style: normal; opacity: 0.82; }
.mp-click-hint { display: block; margin-top: 4px; color: rgba(255, 255, 255, 0.5); font-size: 0.72rem; font-style: normal; transition: color 0.25s ease; }
.xyz-mini-program:hover .mp-click-hint { color: rgba(255, 255, 255, 0.85); }
.xyz-mini-program > i { color: var(--nx-rose-fill); transition: transform 0.25s ease; }
.xyz-mini-program:hover > i { transform: translateX(5px); }
.xyz-mini-program::after {
  content: "已复制到剪贴板，可粘贴到微信中打开";
  position: absolute;
  top: -42px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 18px;
  border-radius: 99px;
  background: var(--nx-ink);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  z-index: 10;
}
.xyz-mini-program.copied::after { opacity: 1; }

/* ============================================================
   能力与边界
   ============================================================ */
.xyz-capability-grid { display: grid; grid-template-columns: var(--curated-home-feature-columns); gap: var(--curated-home-feature-gap); }
.xyz-chart-card, .xyz-spec-card { min-width: 0; min-height: 390px; padding: 30px; border-radius: 25px; }
.xyz-chart-card { background: var(--nx-ink-2); }
.chart-container { position: relative; width: 100%; height: 320px; }
.xyz-spec-card { display: flex; flex-direction: column; background: var(--nx-peach); color: var(--nx-ink); }
.xyz-spec-card h3 { margin: auto 0 22px; color: var(--nx-ink); font-family: var(--font-display); font-size: clamp(1.45rem, 2.4vw, 2rem); line-height: 1.15; }
.xyz-spec-card dl { margin: 0; }
.xyz-spec-card dl div { margin-top: 14px; }
.xyz-spec-card dt { color: var(--nx-rose-text); font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.08em; }
.xyz-spec-card dd { margin: 3px 0 0; color: var(--nx-ink); font-size: 0.84rem; line-height: 1.5; opacity: 0.75; }

.xyz-demo { display: grid; grid-template-columns: minmax(240px, 0.6fr) minmax(0, 1.4fr); gap: 16px; margin-top: 16px; }
.demo-intro, .demo-panel { padding: 28px; border-radius: 25px; }
.demo-intro { background: var(--nx-ink-2); color: #ffffff; }
.demo-intro > span { color: var(--nx-peach); }
.demo-intro h3 { margin: 30px 0 10px; color: #ffffff; font-family: var(--font-display); font-size: 1.4rem; }
.demo-intro p { margin: 0; color: #ffffff; font-size: 0.86rem; line-height: 1.6; opacity: 0.78; }
.demo-panel { background: var(--nx-pale); }
.demo-buttons { display: flex; flex-wrap: wrap; gap: 9px; }
.demo-btn {
  padding: 9px 13px;
  border: 0;
  border-radius: 12px;
  background: #ffffff;
  color: var(--nx-ink);
  cursor: pointer;
  font-size: 0.8rem;
  transition: background 0.2s ease;
}
.demo-btn:hover, .demo-btn.active { background: var(--nx-peach); }
.demo-output {
  min-height: 96px;
  margin-top: 18px;
  padding: 18px;
  border-radius: 16px;
  background: var(--nx-ink);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.65;
}
.demo-placeholder { padding-top: 18px; color: var(--nx-dim); text-align: center; }
.demo-cmd { color: var(--nx-peach); }
.demo-ok { color: var(--nx-pale); }
.demo-fail { color: var(--nx-rose-fill); }
.demo-bar { display: inline-block; height: 8px; margin-right: 6px; border-radius: 99px; vertical-align: middle; }

/* ============================================================
   如何合作
   ============================================================ */
.xyz-boundary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.boundary-card { min-height: 280px; padding: 30px; border-radius: 25px; color: var(--nx-ink); }
.boundary-do { background: var(--nx-pale); }
.boundary-dont { background: var(--nx-peach); }
.boundary-index { color: var(--nx-rose-text); font-family: var(--font-mono); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.16em; }
.boundary-card h3 { margin: 42px 0 18px; color: var(--nx-ink); font-family: var(--font-display); font-size: 1.4rem; }
.boundary-card ul { margin: 0; padding-left: 18px; }
.boundary-card li { margin-top: 10px; color: var(--nx-ink); font-size: 0.88rem; line-height: 1.55; opacity: 0.78; }

/* ============================================================
   FAQ
   ============================================================ */
.xyz-faq-list { display: grid; gap: 12px; }
.xyz-faq-list details { border-radius: 20px; background: var(--nx-pale); color: var(--nx-ink); }
.xyz-faq-list details:nth-child(even) { background: var(--nx-peach); }
.xyz-faq-list summary { display: flex; align-items: center; gap: 18px; padding: 21px 24px; color: var(--nx-ink); font-weight: 700; cursor: pointer; list-style: none; }
.xyz-faq-list summary::-webkit-details-marker { display: none; }
.xyz-faq-list summary::after { content: "+"; margin-left: auto; color: var(--nx-rose-text); font-size: 1.2rem; }
.xyz-faq-list details[open] summary::after { content: "−"; }
.xyz-faq-list summary span { color: var(--nx-rose-text); font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.08em; }
.xyz-faq-list details p { margin: 0; padding: 0 24px 22px 60px; color: var(--nx-ink); font-size: 0.88rem; line-height: 1.65; opacity: 0.8; }

/* ============================================================
   设计原则
   ============================================================ */
.xyz-principle-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.xyz-principle-grid > div { display: flex; min-height: 160px; flex-direction: column; padding: 22px; border-radius: 21px; background: var(--nx-pale); color: var(--nx-ink); }
.xyz-principle-grid > div:nth-child(even) { background: var(--nx-peach); }
.xyz-principle-grid span { color: var(--nx-rose-text); font-family: var(--font-mono); font-size: 0.74rem; font-weight: 500; }
.xyz-principle-grid strong { margin-top: auto; color: var(--nx-ink); font-family: var(--font-display); font-size: 1.08rem; }
.xyz-principle-grid small { color: var(--nx-ink); font-size: 0.72rem; opacity: 0.6; }
.xyz-principle-note { margin: 16px 4px 0; color: var(--text-dim); font-size: 0.82rem; }

/* ============================================================
   联系与许可
   ============================================================ */
.xyz-contact-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr); gap: 16px; }
.xyz-contact-copy, .xyz-qr { min-width: 0; margin: 0; border-radius: 25px; }
.xyz-contact-copy { display: flex; flex-direction: column; padding: 32px; background: var(--nx-ink-2); color: #ffffff; }
.xyz-contact-copy h3 { margin: 32px 0 12px; color: #ffffff; font-family: var(--font-display); font-size: 1.5rem; }
.xyz-contact-copy p { margin: 0; color: #ffffff; font-size: 0.88rem; line-height: 1.7; opacity: 0.8; }
.contact-links { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; margin-top: auto; padding-top: 28px; }
.contact-links a { color: #ffffff; font-size: 0.82rem; font-weight: 700; text-decoration: none; transition: color 0.2s ease; }
.contact-links a:hover { color: var(--nx-peach); }
.contact-links i { margin-left: 5px; color: var(--nx-rose-fill); }
.xyz-qr { display: grid; grid-template-rows: minmax(0, 1fr) auto; overflow: hidden; background: var(--nx-pale); }
.xyz-qr img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: center; }
.xyz-qr figcaption { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0; padding: 13px 18px; background: var(--nx-ink); color: #ffffff; font-size: 0.74rem; text-align: right; }
.xyz-qr figcaption span:first-child { color: var(--nx-rose-fill); font-family: var(--font-mono); font-size: 0.62rem; font-weight: 500; letter-spacing: 0.16em; }

/* ============================================================
   终端
   ============================================================ */
.xyz-terminal { margin-top: clamp(76px, 10vh, 120px); padding: 26px 30px; border-radius: 25px; background: var(--nx-ink-2); color: #ffffff; }
.terminal-heading { display: flex; justify-content: space-between; gap: 20px; color: var(--nx-peach); font-family: var(--font-mono); }
.terminal-heading small { color: var(--nx-dim); }
.egg-body {
  min-height: 180px;
  max-height: 340px;
  overflow-y: auto;
  padding: 24px 0;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  line-height: 1.7;
  scrollbar-color: var(--nx-dim) transparent;
}
.egg-body::-webkit-scrollbar-thumb { background: var(--nx-dim); }
.egg-body::-webkit-scrollbar-thumb:hover { background: var(--nx-pale); }
.egg-line { color: #ffffff; }
.egg-dim { color: var(--nx-dim); }
.egg-code { padding: 0; border: 0; background: transparent; color: var(--nx-peach); font: inherit; font-weight: 700; cursor: pointer; }
.egg-ok { color: var(--nx-pale); }
.egg-warn { color: var(--nx-rose-fill); }
.egg-input-line { display: flex; align-items: center; gap: 10px; padding: 12px 15px; border-radius: 14px; background: rgba(255, 255, 255, 0.08); }
.egg-prompt { color: var(--nx-rose-fill); font-family: var(--font-mono); }
.egg-input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: #ffffff; font-family: var(--font-mono); font-size: 0.88rem; }
.egg-input::placeholder { color: var(--nx-dim); }

.xyz-footnote { display: flex; justify-content: space-between; gap: 24px; margin-top: 40px; padding: 16px 4px 0; color: var(--text-subtle); font-size: 0.78rem; }
.xyz-footnote a { color: var(--color-link); text-decoration: none; white-space: nowrap; }
html[data-page="xyz"] footer { max-width: var(--curated-home-max-width); border-top: 0; }

/* ============================================================
   滚动揭示（与首页同款）
   ============================================================ */
html.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0s),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0s);
}
html.js .reveal.in { opacity: 1; transform: none; }

/* 交错入场 */
.xyz-function-grid > :nth-child(2) { --d: 0.1s; }
.xyz-function-grid > :nth-child(3) { --d: 0.2s; }
.xyz-function-grid > :nth-child(4) { --d: 0.3s; }
.xyz-function-grid > :nth-child(5) { --d: 0.4s; }
.xyz-capability-grid > :nth-child(2),
.xyz-demo > :nth-child(2),
.xyz-boundary-grid > :nth-child(2) { --d: 0.12s; }
.xyz-faq-list details:nth-child(2) { --d: 0.1s; }
.xyz-faq-list details:nth-child(3) { --d: 0.2s; }
.xyz-principle-grid > :nth-child(2) { --d: 0.1s; }
.xyz-principle-grid > :nth-child(3) { --d: 0.2s; }
.xyz-principle-grid > :nth-child(4) { --d: 0.3s; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 800px) {
  .xyz-shell { padding-bottom: 6px; }
  .xyz-hero-inner { padding-top: calc(var(--nav-height) + 28px); }
  .xyz-section-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .xyz-section-heading > p { text-align: left; }
  .xyz-capability-grid, .xyz-demo, .xyz-contact-grid { grid-template-columns: 1fr; }
  .xyz-chart-card, .xyz-spec-card { min-height: 0; }
  .xyz-spec-card h3 { margin-top: 48px; }
  .xyz-principle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .xyz-watermark { display: none; }
  .nx-readout, .nx-scrollcue { display: none; }
}

@media (max-width: 600px) {
  .xyz-hero-inner { padding: calc(var(--nav-height) + 22px) 24px 48px; }
  .xyz-eyebrow { font-size: 0.62rem; letter-spacing: 0.12em; }
  .xyz-hero h1 { font-size: clamp(2rem, 8.5vw, 2.8rem); letter-spacing: -0.035em; }
  .xyz-hero-sub { font-size: 0.94rem; }
  .xyz-hero-cta { flex-direction: column; margin-top: 34px; }
  .xyz-hero-cta .xyz-btn { width: 100%; }
  .xyz-section { margin-top: 56px; }
  .xyz-function-grid, .xyz-boundary-grid, .xyz-principle-grid { grid-template-columns: 1fr; }
  .xyz-function { grid-template-columns: 34px 1fr; padding: 18px; }
  .xyz-function > i { grid-column: 2; }
  .xyz-mini-program { grid-template-columns: auto 1fr; padding: 19px; }
  .xyz-mini-program > i { grid-column: 2; }
  .mini-qr { width: 66px; height: 66px; }
  .xyz-chart-card, .xyz-spec-card, .demo-intro, .demo-panel, .boundary-card, .xyz-contact-copy { padding: 23px; border-radius: 20px; }
  .chart-container { height: 270px; }
  .xyz-qr, .xyz-terminal { border-radius: 20px; }
  .xyz-qr { grid-template-rows: auto auto; }
  .xyz-qr img { height: auto; aspect-ratio: 900 / 383; object-fit: contain; }
  .xyz-qr figcaption { align-items: flex-start; flex-direction: column; gap: 4px; padding: 12px 16px; text-align: left; }
  .xyz-faq-list details p { padding-left: 24px; }
  .terminal-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .xyz-footnote { align-items: flex-start; flex-direction: column; gap: 8px; margin-top: 30px; padding-top: 10px; }
  html[data-page="xyz"] footer { margin-top: 12px; padding-top: 18px; }
}
