/* ============================================================
   共生之间 Between Symbiosis — 沉浸式叙事网页 v2
   ============================================================ */

@font-face {
  font-family: 'Pangmen';
  src: url('assets/fonts/title.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'QiuHongKai';
  src: url('assets/fonts/body.woff2') format('woff2');
  font-display: swap;
}

:root {
  --orange: #ef6b1f;
  --orange-deep: #d6560c;
  --orange-soft: #f8d9c2;
  --ink: #1c1b1a;
  --ink-2: #45403b;
  --paper: #f4f1ea;
  --paper-2: #ece6da;
  --mint: #9dc6b4;
  --line: rgba(28, 27, 26, .16);
  --font-title: 'Pangmen', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'QiuHongKai', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --maxw: 1320px;
  /* 浅色小像素背景：细小的方块像素网格 */
  --px-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Crect x='1' y='1' width='2.4' height='2.4' fill='%23ded7c9'/%3E%3Crect x='11' y='11' width='1.6' height='1.6' fill='%23e6e0d4'/%3E%3C/svg%3E");
  --px-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Crect x='1' y='1' width='2.2' height='2.2' fill='rgba(244,241,234,.07)'/%3E%3Crect x='11' y='11' width='1.6' height='1.6' fill='rgba(244,241,234,.045)'/%3E%3C/svg%3E");
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--paper);
  background-image: var(--px-light);
  background-size: 20px 20px;
  line-height: 1.75;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--orange); color: #fff; }

img { display: block; width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
.mono { font-family: var(--font-body); letter-spacing: .06em; }

h1, h2, h3, .brand-text, .display, .chapter-title, .tl-year { font-family: var(--font-title); font-weight: 400; letter-spacing: 0; }

/* ---------- 自定义光标 ---------- */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; pointer-events: none;
  z-index: 9999; border-radius: 50%; transform: translate(-50%, -50%);
  opacity: 0; transition: opacity .3s;
}
.cursor-dot { width: 8px; height: 8px; background: var(--orange); }
.cursor-ring { width: 38px; height: 38px; border: 1px solid var(--orange); transition: opacity .3s, width .25s, height .25s, background .25s; }
body.cursor-ready .cursor-dot, body.cursor-ready .cursor-ring { opacity: 1; }
body.cursor-hover .cursor-ring { width: 62px; height: 62px; background: rgba(239,107,31,.12); }
@media (hover: none), (pointer: coarse) { .cursor-dot, .cursor-ring { display: none; } }

/* ---------- 滚动进度条 ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1001; }
.scroll-progress span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--orange-deep), var(--orange));
  transition: width .08s linear;
}

/* ---------- 顶部导航：悬浮胶囊条（参考 108.supply） ---------- */
.topbar {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 1000;
  display: flex; align-items: center; gap: clamp(18px, 3vw, 46px);
  width: max-content; max-width: calc(100% - 28px);
  padding: 8px 10px 8px 13px;
  border-radius: 999px;
  background: rgba(28, 27, 26, .52);
  backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid rgba(255,255,255,.16);
  color: #fff;
  box-shadow: 0 8px 30px rgba(20,18,16,.18);
  transition: background .4s, top .4s, box-shadow .4s;
}
.topbar.scrolled {
  background: rgba(24, 23, 22, .88);
  top: 10px;
  box-shadow: 0 12px 36px rgba(20,18,16,.28);
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.brand-mark {
  width: 34px; height: 34px; display: grid; place-items: center;
  background: var(--orange); color: #fff; border-radius: 50%;
  font-family: var(--font-title); font-size: 18px; flex: none;
}
.brand-text { color: #fff; font-size: 15px; line-height: 1.1; letter-spacing: .05em; }
.brand-text small { display: block; font-family: var(--font-body); font-size: 8px; letter-spacing: .12em; color: #fff; opacity: .55; font-weight: 400; }
.topnav { display: flex; align-items: center; gap: 4px; }
.topnav a { font-size: 14px; letter-spacing: .03em; position: relative; padding: 7px 13px; border-radius: 999px; opacity: .7; transition: opacity .25s, background .25s; white-space: nowrap; }
.topnav a::after { content: ""; position: absolute; left: 13px; bottom: 3px; width: 0; height: 1.5px; background: var(--orange); transition: width .3s; }
.topnav a:hover, .topnav a.active { opacity: 1; background: rgba(255,255,255,.1); }
.topnav a.active::after, .topnav a:hover::after { width: calc(100% - 26px); }
.topbar-meta { font-size: 11px; letter-spacing: .08em; display: flex; align-items: center; gap: 8px; opacity: .75; white-space: nowrap; }
.topbar-meta .dot { width: 7px; height: 7px; background: var(--orange); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(239,107,31,.5);} 50% { box-shadow: 0 0 0 6px rgba(239,107,31,0);} }

/* ---------- 侧边章节指示 ---------- */
.chapter-rail { position: fixed; right: 22px; top: 50%; transform: translateY(-50%); z-index: 900; display: flex; flex-direction: column; gap: 14px; }
.chapter-rail a { display: flex; align-items: center; gap: 8px; justify-content: flex-end; opacity: .35; transition: opacity .3s; }
.chapter-rail a i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); transition: all .3s; order: 2; }
.chapter-rail a span { font-size: 11px; order: 1; }
.chapter-rail a.active { opacity: 1; }
.chapter-rail a.active i { background: var(--orange); width: 9px; height: 9px; box-shadow: 0 0 0 4px rgba(239,107,31,.18); }
@media (max-width: 900px) { .chapter-rail { display: none; } }

/* ---------- 通用 ---------- */
.section-pad { max-width: var(--maxw); margin: 0 auto; padding-left: clamp(22px, 5vw, 72px); padding-right: clamp(22px, 5vw, 72px); }
.section-head { display: flex; align-items: center; gap: 18px; margin-bottom: clamp(36px, 6vw, 68px); }
.sec-index { font-size: 13px; color: var(--orange); }
.sec-label { font-size: 11px; letter-spacing: .18em; color: var(--ink-2); opacity: .5; }
.section-head::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity .85s cubic-bezier(.2,.7,.2,1), transform .85s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--d, 0) * .1s); }
.reveal.in { opacity: 1; transform: none; }

/* 打字机 */
.typed { position: relative; }
.typed.typing::after {
  content: ""; display: inline-block; width: .5em; height: 1.05em;
  background: var(--orange); margin-left: 4px; vertical-align: -.14em;
  animation: caret .7s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 100px clamp(22px, 5vw, 72px) 40px;
  background: var(--px-dark) repeat, var(--ink); color: #fff;
}
.hero-media { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; transform: scale(1.06); }
.hero-media-wash { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,17,16,.66) 0%, rgba(18,17,16,.3) 42%, rgba(18,17,16,.62) 100%), linear-gradient(90deg, rgba(18,17,16,.5), transparent 60%); }
.hero-lines { position: absolute; inset: 0; opacity: .1; background-image: linear-gradient(rgba(255,255,255,.4) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.4) 1px, transparent 1px); background-size: 80px 80px; mask-image: linear-gradient(180deg, #000, transparent 70%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%); }
.hero-top { position: relative; z-index: 2; display: flex; justify-content: space-between; font-size: 12px; opacity: .8; }

.hero-center { position: relative; z-index: 2; margin-top: auto; margin-bottom: auto; }
.hero-kicker { display: flex; align-items: center; gap: 12px; font-size: clamp(13px, 1.5vw, 17px); letter-spacing: .06em; margin-bottom: clamp(18px, 3vw, 30px); }
.kicker-line { width: 42px; height: 2px; background: var(--orange); flex: none; }
.hero-title { line-height: .96; }
.ht-line { display: flex; align-items: baseline; gap: .06em; flex-wrap: wrap; }
.ht-cn { font-size: clamp(76px, 15vw, 210px); letter-spacing: -.02em; }
.ht-outline { color: transparent; -webkit-text-stroke: clamp(1.5px, .28vw, 3px) #fff; }
.ht-en { display: block; font-size: clamp(26px, 6vw, 82px); letter-spacing: -.01em; margin-top: .06em; }
.ht-en em { font-style: normal; color: var(--orange); }
.hero-lede { margin-top: clamp(24px, 3.5vw, 40px); font-size: clamp(17px, 2vw, 26px); line-height: 1.6; max-width: 620px; opacity: .95; }

.hero-stickers { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.sticker { position: absolute; }
.sticker-a { top: 19%; right: 6%; display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.sticker-num { font-family: var(--font-title); font-size: clamp(44px, 6vw, 88px); line-height: 1; color: var(--orange); }
.sticker-cap { font-size: 12px; letter-spacing: .06em; opacity: .8; }
.sticker-b { top: 43%; right: 5%; width: 112px; height: 112px; border: 1.5px solid var(--orange); border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; transform: rotate(12deg); color: var(--orange); text-align: center; background: rgba(18,17,16,.28); }
.sticker-b .sticker-cap { color: #fff; margin-bottom: 4px; }
.sticker-big { font-family: var(--font-title); font-size: 22px; line-height: 1.1; }
.sticker-c { bottom: 22%; right: 5%; font-size: 10px; opacity: .55; writing-mode: vertical-rl; }

.hero-bottom { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: flex-end; }
.scroll-cue { display: flex; align-items: center; gap: 12px; font-size: 13px; letter-spacing: .05em; }
.scroll-mouse { width: 24px; height: 38px; border: 1.5px solid rgba(255,255,255,.6); border-radius: 14px; display: flex; justify-content: center; padding-top: 7px; }
.scroll-mouse i { width: 3px; height: 8px; background: var(--orange); border-radius: 3px; animation: scrollDot 1.6s infinite; }
@keyframes scrollDot { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }
.hero-credit { font-size: 11px; opacity: .55; }
.hero-credit span { color: var(--orange); margin-left: 6px; }

/* ============================================================
   序章
   ============================================================ */
.intro { padding-top: clamp(90px, 12vw, 160px); padding-bottom: clamp(90px, 12vw, 160px); }
.intro-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.intro-left .display { font-size: clamp(52px, 7.4vw, 108px); line-height: 1.12; }
.accent-rule { width: 90px; height: 6px; background: var(--orange); margin-top: 32px; border-radius: 3px; }
.intro-right p { font-size: clamp(16px, 1.5vw, 19px); line-height: 1.95; color: var(--ink-2); margin-bottom: 18px; }
.intro-right p.lead { font-size: clamp(18px, 1.8vw, 23px); color: var(--ink); }
.intro-right b { color: var(--orange-deep); }
.intro-right p.highlight { border-left: 3px solid var(--orange); padding-left: 18px; color: var(--ink); }
.keywords { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: clamp(50px, 7vw, 84px); font-size: clamp(16px, 1.7vw, 21px); }
.keywords span:not(.kw-dot) { padding: 8px 22px; border: 1px solid var(--line); border-radius: 100px; }
.kw-dot { width: 5px; height: 5px; background: var(--orange); border-radius: 50%; }

/* 技术框架 */
.framework { margin-top: clamp(90px, 12vw, 150px); }
.framework-title { display: flex; align-items: baseline; gap: 18px; margin-bottom: 36px; }
.framework-title .mono { font-size: 12px; color: var(--orange); }
.framework-title h3 { font-size: clamp(28px, 3.4vw, 44px); }
.framework-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; gap: 14px; align-items: stretch; }
.flow-col { background: #fff; border: 1px solid var(--line); padding: 26px 22px; border-radius: 14px; position: relative; overflow: hidden; transition: transform .35s, box-shadow .35s; }
.flow-col::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .4s; }
.flow-col:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(28,27,26,.08); }
.flow-col:hover::before { transform: scaleX(1); }
.flow-num { font-size: 13px; color: var(--orange); }
.flow-col h4 { font-size: clamp(19px, 1.9vw, 24px); margin: 8px 0 12px; }
.flow-col p { font-size: 14px; line-height: 1.7; color: var(--ink-2); }
.flow-arrow { align-self: center; color: var(--orange); font-size: 26px; }
.framework-outcome { text-align: center; margin-top: 30px; font-size: 15px; color: var(--ink-2); }
.framework-outcome b { color: var(--orange-deep); }
@media (max-width: 900px) { .intro-grid { grid-template-columns: 1fr; } .framework-flow { grid-template-columns: 1fr 1fr; } .flow-arrow { display: none; } }

/* ============================================================
   CHAPTER 通用
   ============================================================ */
.chapter { position: relative; padding: clamp(90px, 12vw, 160px) 0; overflow: hidden; }
.chapter-watermark { position: absolute; top: -20px; right: -10px; font-family: var(--font-title); font-size: clamp(240px, 34vw, 520px); line-height: 1; color: rgba(239,107,31,.08); pointer-events: none; z-index: 0; }
.chapter .section-pad, .chapter > .gallery { position: relative; z-index: 1; }
.chapter-title { font-size: clamp(46px, 6.8vw, 92px); line-height: 1.2; margin-bottom: clamp(32px, 5vw, 56px); }
.chapter-title em { font-style: normal; color: var(--orange); }

/* ---------- 第一章 百年苏纶 ---------- */
.chapter-history { background: var(--px-light) repeat, var(--paper-2); }
.history-intro { max-width: 780px; font-size: clamp(16px, 1.55vw, 19px); line-height: 1.95; color: var(--ink-2); margin-bottom: clamp(56px, 8vw, 96px); }
.history-intro b { color: var(--ink); }
.timeline { position: relative; max-width: 980px; margin: 0 auto; }
.timeline::before { content: ""; position: absolute; left: 118px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--orange), rgba(239,107,31,.15)); }
.timeline-item { position: relative; display: grid; grid-template-columns: 118px 1fr; gap: 36px; padding-bottom: clamp(40px, 6vw, 64px); }
.timeline-item::before { content: ""; position: absolute; left: 112px; top: 8px; width: 14px; height: 14px; border-radius: 50%; background: var(--paper-2); border: 3px solid var(--orange); z-index: 2; }
.tl-year { font-size: clamp(28px, 3vw, 42px); line-height: 1.1; text-align: right; letter-spacing: -.01em; }
.tl-year span { font-family: var(--font-body); font-size: 15px; }
.tl-body { padding-top: 2px; }
.tl-tag { font-size: 11px; letter-spacing: .1em; color: var(--orange); }
.tl-body h3 { font-size: clamp(22px, 2.4vw, 30px); margin: 6px 0 10px; }
.tl-body p { font-size: 16px; line-height: 1.8; color: var(--ink-2); max-width: 620px; }
.history-quote { text-align: center; margin-top: clamp(40px, 6vw, 70px); padding: clamp(44px, 6vw, 68px); background: var(--ink); color: #fff; border-radius: 18px; position: relative; }
.quote-mark { position: absolute; top: 4px; left: 32px; font-family: var(--font-body); font-size: 100px; color: var(--orange); line-height: 1; opacity: .6; }
.history-quote p { font-size: clamp(26px, 3.6vw, 48px); }
.history-quote p b { color: var(--orange); }
.quote-sub { display: block; margin-top: 16px; font-size: 11px; opacity: .45; }
@media (max-width: 640px) {
  .timeline::before { left: 8px; }
  .timeline-item { grid-template-columns: 1fr; padding-left: 34px; gap: 8px; }
  .timeline-item::before { left: 1px; }
  .tl-year { text-align: left; }
}

/* ---------- 第二章 老厂难题 ---------- */
.chapter-problems { background: var(--px-dark) repeat, var(--ink); color: #f4f1ea; }
.chapter-problems .chapter-watermark { color: rgba(239,107,31,.1); }
.chapter-problems .sec-index { color: var(--orange); }
.chapter-problems .sec-label { color: #f4f1ea; }
.chapter-problems .section-head::after { background: rgba(244,241,234,.18); }
.problem-lead { max-width: 820px; font-size: clamp(19px, 2.1vw, 28px); line-height: 1.7; margin-bottom: 32px; }
/* 刻宋字体笔画偏细，深色底上提亮以增强可读性 */
.chapter-problems p, .chapter-problems figcaption { opacity: .95 !important; }
.ai-method { display: flex; gap: 20px; align-items: flex-start; max-width: 820px; padding: 24px 28px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; margin-bottom: clamp(50px, 7vw, 76px); }
.ai-icon { width: 46px; height: 46px; flex: none; display: grid; place-items: center; background: var(--orange); color: #fff; border-radius: 12px; font-size: 24px; }
.ai-method h4 { font-family: var(--font-body); font-size: 19px; font-weight: 700; margin-bottom: 6px; }
.ai-method p { font-size: 15px; line-height: 1.7; opacity: .92; }
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.problem-card { background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 28px 26px 24px; transition: transform .35s, border-color .35s, background .35s; position: relative; overflow: hidden; }
.problem-card:hover { transform: translateY(-6px); border-color: var(--orange); background: rgba(239,107,31,.08); }
.pc-code { position: absolute; top: 22px; right: 24px; font-size: 40px; color: rgba(239,107,31,.22); line-height: 1; }
.pc-en { font-size: 11px; color: var(--orange); }
.problem-card h4 { font-size: clamp(22px, 2.2vw, 28px); margin: 8px 0 12px; }
.problem-card p { font-size: 15px; line-height: 1.7; opacity: .92; min-height: 52px; }
.pc-fix { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1); font-size: 14px; line-height: 1.6; opacity: .88; }
.pc-fix span { display: inline-block; font-size: 11px; color: var(--orange); margin-right: 8px; }
.problem-visuals { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: clamp(50px, 7vw, 76px); }
.pv-figure { background: var(--paper); border-radius: 12px; overflow: hidden; }
.pv-figure img { aspect-ratio: 16/9; object-fit: cover; }
.pv-figure figcaption { padding: 12px 16px; font-size: 11px; color: var(--ink-2); background: #fff; }
.problem-summary { max-width: 900px; margin: clamp(50px, 7vw, 76px) auto 0; text-align: center; font-size: clamp(16px, 1.7vw, 21px); line-height: 1.8; opacity: .9; }
@media (max-width: 900px) { .problem-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .problem-grid { grid-template-columns: 1fr; } .problem-visuals { grid-template-columns: 1fr; } }

/* ---------- 第三章 空间系统 ---------- */
.chapter-system { background: var(--px-light) repeat, var(--paper); }
.subhead { display: flex; align-items: baseline; gap: 16px; margin-bottom: 28px; }
.subhead .mono { color: var(--orange); font-size: 14px; }
.subhead h3 { font-size: clamp(28px, 3vw, 38px); }
.system-intro { max-width: 820px; font-size: clamp(17px, 1.7vw, 22px); line-height: 1.85; color: var(--ink-2); margin-bottom: clamp(60px, 8vw, 96px); }
.system-intro b { color: var(--orange-deep); }
.robot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: clamp(70px, 9vw, 110px); }
.robot-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 30px 24px 28px; transition: transform .35s, box-shadow .35s; }
.robot-card:hover { transform: translateY(-8px); box-shadow: 0 20px 45px rgba(28,27,26,.1); }
.robot-glyph { width: 54px; height: 54px; display: grid; place-items: center; background: var(--orange); color: #fff; font-size: 26px; border-radius: 14px; margin-bottom: 22px; }
.robot-card .mono { font-size: 11px; color: var(--orange); }
.robot-card h4 { font-size: clamp(22px, 2.2vw, 28px); margin: 8px 0 12px; line-height: 1.3; }
.robot-card p { font-size: 15px; line-height: 1.65; color: var(--ink-2); }
.system-two-col { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 80px); align-items: center; margin-bottom: clamp(70px, 9vw, 110px); }
.sys-text p { font-size: 16px; line-height: 1.85; color: var(--ink-2); margin-bottom: 18px; }
.sys-text p b { color: var(--orange-deep); }
.legend { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 26px; }
.legend span { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.lg { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 12px; }
.lg-p { background: var(--orange); } .lg-s { background: var(--ink); } .lg-c { background: var(--mint); color: var(--ink); }
.sys-figure img { border-radius: 14px; background: #fff; }
.sys-figure figcaption { margin-top: 12px; font-size: 11px; color: var(--ink-2); opacity: .6; }
.flow-banner { border-radius: 16px; overflow: hidden; margin-bottom: 30px; }
.flow-banner img { aspect-ratio: 4.5/1; object-fit: cover; }
.flow-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ff { padding-top: 18px; border-top: 2px solid var(--orange); }
.ff .mono { font-size: 13px; color: var(--orange); }
.ff h4 { font-family: var(--font-body); font-size: 19px; font-weight: 700; margin: 8px 0; }
.ff p { font-size: 14px; line-height: 1.6; color: var(--ink-2); }
@media (max-width: 900px) { .robot-grid, .flow-features { grid-template-columns: 1fr 1fr; } .system-two-col { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .robot-grid, .flow-features { grid-template-columns: 1fr; } }

/* ---------- 第四章 未来场景 ---------- */
.chapter-future { background: var(--px-light) repeat, var(--paper-2); padding-bottom: 0; }
.future-intro { max-width: 880px; font-size: clamp(18px, 1.8vw, 23px); line-height: 1.85; color: var(--ink-2); }
.future-intro b { color: var(--orange-deep); }
.gallery { margin-top: clamp(56px, 8vw, 96px); }
.gallery-item { position: relative; overflow: hidden; cursor: pointer; }
.gallery-item img { display: block; width: 100%; aspect-ratio: 16/8.6; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 42%, rgba(18,17,16,.82)); }
.gallery-item figcaption { position: absolute; left: clamp(24px, 5vw, 72px); right: clamp(24px, 5vw, 72px); bottom: clamp(24px, 4vw, 48px); z-index: 2; color: #fff; }
.gallery-item figcaption .mono { font-size: 12px; color: var(--orange-soft); letter-spacing: .1em; }
.gallery-item figcaption h3 { font-size: clamp(24px, 3.4vw, 46px); margin-top: 8px; line-height: 1.2; }
.gallery-item .scene-line { margin-top: 12px; font-size: clamp(14px, 1.5vw, 18px); line-height: 1.7; color: rgba(255,255,255,.9); max-width: 720px; min-height: 1.7em; }
.future-outro { text-align: center; padding-top: clamp(70px, 9vw, 110px); padding-bottom: clamp(90px, 12vw, 150px); }
.future-outro p { max-width: 820px; margin: 0 auto; font-size: clamp(24px, 3.2vw, 44px); }
.four-scenes { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.four-scenes span { padding: 10px 26px; background: var(--orange); color: #fff; border-radius: 100px; font-size: 15px; }

/* ---------- 尾声 ---------- */
.outro { position: relative; min-height: 92svh; display: grid; place-items: center; overflow: hidden; background: var(--px-dark) repeat, var(--ink); color: #fff; text-align: center; padding: 100px 24px; }
.outro-media { position: absolute; inset: 0; opacity: .16; }
.outro-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.5); }
.outro-content { position: relative; z-index: 2; max-width: 1180px; }
.outro-kicker { font-size: 12px; color: var(--orange); margin-bottom: 28px; }
.outro h2 { font-size: clamp(30px, 6.8vw, 96px); line-height: 1.18; }
.outro h2 span { display: block; }
.outro h2 em { font-style: normal; color: var(--orange); }
.outro-line { width: 80px; height: 3px; background: var(--orange); margin: 36px auto; }
.outro-meta { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; font-size: 12px; opacity: .5; }
.back-top { display: inline-flex; align-items: center; gap: 10px; margin-top: 46px; padding: 12px 28px; border: 1px solid rgba(255,255,255,.35); border-radius: 100px; font-size: 15px; transition: background .3s, border-color .3s; }
.back-top:hover { background: var(--orange); border-color: var(--orange); }
.back-top span { font-size: 18px; }

/* ---------- FOOTER ---------- */
.footer { background: var(--ink); color: #fff; border-top: 1px solid rgba(255,255,255,.1); padding: 24px clamp(22px, 5vw, 72px); }
.footer-inner { max-width: var(--maxw); margin: 0 auto; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13px; opacity: .55; }
.footer-inner .mono { font-size: 11px; }

/* ============================================================
   下滑切换动效：Hero 定格 + 地平线辉光转场 + glitch 文字
   ============================================================ */
.hwrap { position: relative; }
/* sticky 模式：hwrap 拉高，hero 钉在顶部，为辉光转场预留滚动距离 */
html.sticky .hwrap { height: 165vh; }
html.sticky .hero { position: fixed; top: 0; left: 0; right: 0; height: 100vh; min-height: 0; }

/* 首页下滑转场层：实线弧线 + 米白封面，浮在 hero 之上、正文之下 */
.hz {
  position: fixed; inset: 0; z-index: 2; pointer-events: none;
  display: none; will-change: opacity;
}
.hz-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hz-cover { fill: #f4f1ea; }                 /* 纯色封面，无渐变 */
.hz-arc {
  fill: none; stroke: var(--orange); stroke-width: 3.5;
  stroke-linecap: round; vector-effect: non-scaling-stroke;
}
/* 正文章节在辉光之上，文字不被洗白 */
.intro, .chapter, .outro, .footer { position: relative; z-index: 3; }

/* hero 内容在辉光升起时整体上移淡出 */
.hero-center, .hero-stickers { will-change: opacity, transform; }
.ht-line, .ht-en { will-change: transform, clip-path, text-shadow; }

/* glitch 双重曝光揭示（进入视口时播放一次） */
@keyframes glitchIn {
  0%   { opacity: 0; clip-path: inset(0 100% 0 0); transform: translateX(-.05em); text-shadow: -.12em 0 0 rgba(239,107,31,.8), .07em 0 0 rgba(28,27,26,.25); }
  30%  { opacity: 1; clip-path: inset(0 38% 0 0);  transform: translateX(.035em); text-shadow: .09em 0 0 rgba(239,107,31,.65), -.05em 0 0 rgba(28,27,26,.3); }
  55%  { opacity: .8; clip-path: inset(0 0 0 0);    transform: translateX(-.018em); text-shadow: -.045em 0 0 rgba(239,107,31,.55), .025em 0 0 rgba(28,27,26,.2); }
  78%  { opacity: 1; clip-path: inset(0 0 0 0);    transform: translateX(.008em); text-shadow: .015em 0 0 rgba(239,107,31,.35), none; }
  100% { opacity: 1; clip-path: inset(0 0 0 0);    transform: none; text-shadow: none; }
}
.glitch-in { animation: glitchIn .9s steps(14, end) both; }

/* ============================================================
   导览机器人：贯穿全页，随滚动游走
   ============================================================ */
.guide-bot {
  position: fixed; left: 0; top: 0; z-index: 940;
  width: 80px; height: 80px; pointer-events: none;
  transform: translate3d(0, 0, 0); opacity: 0;
  will-change: transform, opacity;
  filter: drop-shadow(0 8px 12px rgba(28,27,26,.22));
}
.guide-bot.is-on { opacity: 1; }
.bot-body { stroke: rgba(18,50,47,.18); stroke-width: 1.5; }
.bot-float { transform-origin: 50px 86px; animation: botBob 2.6s ease-in-out infinite; }
@keyframes botBob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-6px) rotate(1.5deg); }
}
/* 眼睛跟随鼠标：JS 写入 #botLook 的 transform，平滑过渡 */
.bot-look { transition: transform .18s cubic-bezier(.2,.7,.2,1); }
.bot-eyes { transform-origin: 50px 41px; animation: botBlink 4.6s infinite; }
@keyframes botBlink {
  0%, 93%, 100% { transform: scaleY(1); }
  96%           { transform: scaleY(.1); }
}
.bot-tip {
  position: absolute; left: calc(100% + 8px); top: 14px; white-space: nowrap;
  background: #12322f; color: #fff; padding: 9px 15px; border-radius: 12px 12px 12px 3px;
  font-family: var(--font-body); font-size: 13px; letter-spacing: .03em; line-height: 1.4;
  opacity: 0; transform: translateY(4px); transition: opacity .4s ease, transform .4s ease;
  box-shadow: 0 8px 24px rgba(18,50,47,.3);
  border: 1px solid rgba(95,206,197,.5);
}
.guide-bot.show-tip .bot-tip { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
@media (max-width: 760px) {
  .topnav { display: none; }
  .topbar-meta { display: none; }
  .topbar { padding: 7px 16px 7px 10px; gap: 0; }
  .sticker-a, .sticker-c { display: none; }
  .sticker-b { width: 88px; height: 88px; top: 38%; right: 6%; }
  .guide-bot { width: 60px; height: 60px; z-index: 940; }
  .bot-tip { font-size: 11px; max-width: 150px; white-space: normal; left: auto; right: calc(100% + 6px); }
}
/* 移动端不做 sticky 定格，辉光转场关闭 */
@media (max-width: 900px) {
  html.sticky .hwrap { height: auto; }
  html.sticky .hero { position: relative; height: auto; min-height: 100svh; }
}
