/* ISIP 产品站 · Apple 风格 */
:root {
  --bg: #fff;
  --bg-light: #f5f5f7;
  --bg-dark: #000;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-inv: #f5f5f7;
  --ink-inv-2: #a1a1a6;
  --line: #d2d2d7;
  --blue: #0071e3;
  --blue-link: #0066cc;
  --blue-dark: #2997ff;
  --orange: #ff9f0a;
  --copper: #c8662e;
  --green: #30d158;
  --purple: #bf5af2;
  --radius: 22px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  --ease: cubic-bezier(.25, .1, .25, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 52px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, .lede, .hero-sub { text-wrap: balance; }
p { text-wrap: pretty; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
[hidden] { display: none !important; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }
.center { text-align: center; }

/* ---------- 导航 ---------- */
.gnav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: 48px;
  background: rgba(22, 22, 23, .72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  color: var(--ink-inv);
  transition: background .3s var(--ease);
}
.gnav-inner { max-width: 1080px; height: 100%; margin: 0 auto; padding: 0 22px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 19px; letter-spacing: .02em; }
.brand-mark {
  width: 18px; height: 18px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff 0 12%, var(--orange) 13% 45%, transparent 46%),
              conic-gradient(from 200deg, var(--blue-dark), var(--purple), var(--orange), var(--blue-dark));
}
.gnav-links { display: flex; gap: 26px; margin-left: auto; font-size: 13px; }
.gnav-links a { opacity: .82; transition: opacity .2s; }
.gnav-links a:hover, .gnav-links a.is-current { opacity: 1; }
.gnav-toggle { display: none; width: 32px; height: 32px; position: relative; }
.gnav-toggle span { position: absolute; left: 8px; right: 8px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease); }
.gnav-toggle span:first-child { top: 12px; }
.gnav-toggle span:last-child { top: 19px; }
.gnav.is-open .gnav-toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
.gnav.is-open .gnav-toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- 通用排版 ---------- */
.section { padding: 130px 0; background: var(--bg); }
.section.light { background: var(--bg-light); }
.section.dark { background: var(--bg-dark); color: var(--ink-inv); }
.eyebrow { font-size: 17px; font-weight: 600; color: var(--copper); margin-bottom: 10px; letter-spacing: .02em; }
.dark .eyebrow { color: var(--orange); }
.headline { font-size: clamp(36px, 6vw, 64px); line-height: 1.08; font-weight: 700; letter-spacing: -.02em; }
.lede { font-size: clamp(19px, 2.2vw, 24px); line-height: 1.4; color: var(--ink-2); font-weight: 500; max-width: 720px; margin: 20px auto 0; }
.dark .lede { color: var(--ink-inv-2); }
.note { font-size: 14px; color: var(--ink-2); margin-top: 28px; }
.dark .note { color: var(--ink-inv-2); }

.btn {
  display: inline-block; background: var(--blue); color: #fff; font-size: 17px;
  padding: 12px 24px; border-radius: 980px; transition: background .2s;
}
.btn:hover { background: #0077ed; }
.link { color: var(--blue-link); font-size: 17px; }
.dark .link, .tile-dark .link { color: var(--blue-dark); }
.link::after { content: " ›"; }
.link:hover { text-decoration: underline; }
.cta-row { display: flex; gap: 28px; align-items: center; justify-content: center; margin-top: 32px; flex-wrap: wrap; }

/* 滚动渐显 */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center;
  text-align: center; overflow: hidden; background: #000; color: var(--ink-inv);
}
#heroNet { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 50% at 50% 55%, rgba(0,0,0,.65), transparent 70%),
              linear-gradient(to bottom, transparent 70%, #000);
}
.hero-content { position: relative; z-index: 2; padding: 120px 22px 80px; }
.hero .eyebrow { color: var(--ink-inv-2); font-weight: 500; font-size: 15px; letter-spacing: .06em; }
.hero-title {
  font-size: clamp(44px, 8.4vw, 96px); line-height: 1.05; font-weight: 700; letter-spacing: -.03em;
  background: linear-gradient(180deg, #fff 30%, #c9c9ce);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: clamp(19px, 2.4vw, 26px); color: var(--ink-inv-2); margin: 22px auto 0; max-width: 680px; font-weight: 500; }
.hero .link { color: var(--blue-dark); }
.hero .reveal:nth-child(2) { transition-delay: .1s; }
.hero .reveal:nth-child(3) { transition-delay: .25s; }
.hero .reveal:nth-child(4) { transition-delay: .4s; }
.scroll-hint {
  position: absolute; bottom: 28px; left: 50%; z-index: 2; width: 22px; height: 34px; margin-left: -11px;
  border: 1.5px solid rgba(255,255,255,.4); border-radius: 12px;
}
.scroll-hint::after {
  content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px;
  background: rgba(255,255,255,.7); border-radius: 2px; animation: hint 1.8s infinite var(--ease);
}
@keyframes hint { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }

/* ---------- 架构图 ---------- */
.arch {
  position: relative; margin-top: 72px; display: grid;
  grid-template-columns: 1fr 1.25fr 1fr; gap: 0 72px; align-items: center;
}
.arch-wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.arch-wires path { fill: none; stroke: #c7c7cc; stroke-width: 1.4; }
.arch-wires path.out { stroke-width: 1.6; }
.arch-wires .pulse { stroke-width: 2.2; stroke-dasharray: 6 220; stroke-linecap: round; animation: flow 3.2s linear infinite; }
@keyframes flow { from { stroke-dashoffset: 226; } to { stroke-dashoffset: 0; } }
.arch-col { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; }
.arch-cap { font-size: 14px; color: var(--ink-2); font-weight: 600; margin-bottom: 4px; }
.arch-right .arch-cap { text-align: right; }
.sys { background: #fff; border-radius: 14px; padding: 10px 16px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.sys b { display: block; font-size: 17px; }
.sys span { font-size: 13px; color: var(--ink-2); }
.eng {
  display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 14px;
  padding: 15px 18px; font-weight: 600; font-size: 17px; box-shadow: 0 1px 2px rgba(0,0,0,.04);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.eng:hover { transform: translateX(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.eng i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 18%, transparent); flex: none; }

.arch-core {
  position: relative; z-index: 1; background: #111113; color: var(--ink-inv);
  border-radius: 32px; padding: 30px 22px 22px; display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.35);
}
.core-head { text-align: center; margin-bottom: 6px; }
.core-head h3 { font-size: 30px; letter-spacing: -.01em; }
.core-head p { font-size: 13px; color: var(--ink-inv-2); }
.core-layer { background: #1d1d1f; border-radius: 16px; padding: 14px 16px; text-align: center; }
.core-layer b { display: block; font-size: 17px; }
.core-layer span { font-size: 13px; color: var(--ink-inv-2); }
.core-brain { background: radial-gradient(ellipse at 50% 40%, #12305a, #0f1a2c 70%); border: 1px solid #1f3a66; padding-bottom: 12px; }
.core-onto { background: linear-gradient(135deg, #3a2414, #22170f); border: 1px solid #5a3519; }
.brain-net { width: 100%; height: 110px; display: block; margin: 4px 0; }
.brain-net line { stroke: #3d7be0; stroke-opacity: .5; stroke-width: .8; }
.brain-net circle { fill: #2997ff; }
.brain-net circle.w { fill: #fff; }
.brain-net circle.blink { animation: blink 2.4s infinite var(--ease); }
@keyframes blink { 50% { opacity: .25; } }

/* ---------- 工程师卡片 ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 72px; }
.tile {
  background: var(--bg-light); border-radius: var(--radius); padding: 30px 26px 28px; min-height: 260px;
  display: flex; flex-direction: column; transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.tile:hover { transform: scale(1.02); box-shadow: 0 18px 40px -18px rgba(0,0,0,.18); }
.tile h3 { font-size: 24px; line-height: 1.2; margin: 6px 0 12px; letter-spacing: -.01em; }
.tile p { font-size: 15px; color: var(--ink-2); }
.tile .tile-num { margin-top: auto; padding-top: 18px; font-size: 14px; }
.tile .tile-num b { display: block; font-size: 34px; color: var(--ink); letter-spacing: -.02em; }
.tag { font-size: 12px !important; font-weight: 600; letter-spacing: .04em; }
.tag.blue { color: var(--blue) !important; }
.tag.orange { color: #c46a00 !important; }
.tag.green { color: #1a8f3c !important; }
.tag.purple { color: #8e3ec2 !important; }
.tile-dark { background: #1d1d1f; color: var(--ink-inv); }
.tile-dark p { color: var(--ink-inv-2); }
.tile-dark .tag { color: var(--orange) !important; }
.tile-dark .link { margin-top: auto; padding-top: 18px; font-size: 15px; }
.tiles .reveal:nth-child(4n+2) { transition-delay: .08s; }
.tiles .reveal:nth-child(4n+3) { transition-delay: .16s; }
.tiles .reveal:nth-child(4n+4) { transition-delay: .24s; }

/* ---------- 象限图 ---------- */
.quad { margin: 64px auto 0; max-width: 820px; background: #0d0d0f; border: 1px solid #222; border-radius: 28px; padding: 28px 24px 16px; }
.quad svg { width: 100%; height: auto; display: block; }
.q-frame { fill: none; stroke: #3a3a3c; }
.q-grid { stroke: #3a3a3c; stroke-dasharray: 3 5; }
.q-zone { fill: var(--orange); font-size: 17px; font-weight: 600; }
.q-label { fill: #f5f5f7; font-size: 17px; font-weight: 600; }
.q-sub { fill: #8e8e93; font-size: 14px; }
.q-axis { fill: #8e8e93; font-size: 14px; }
.q-dot-blue { fill: var(--blue-dark); }
.q-dot-orange { fill: var(--copper); }
.q-path { fill: none; stroke: var(--orange); stroke-width: 2; stroke-dasharray: 6 6; opacity: 0; transition: opacity .6s .2s; }
.q-dot-isip { fill: var(--orange); }
.q-halo { fill: none; stroke: var(--orange); stroke-opacity: .5; animation: halo 2s infinite var(--ease); transform-box: fill-box; transform-origin: center; }
@keyframes halo { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.q-isip { opacity: 0; }
.q-isip-label { opacity: 0; transition: opacity .6s 2.2s; fill: var(--orange); }
.quad.in .q-path { opacity: .9; }
.quad.in .q-isip { opacity: 1; offset-path: path("M150 95 C 300 70, 440 70, 560 110"); animation: travel 2.2s .5s var(--ease) both; }
.quad.in .q-isip-label { opacity: 1; }
@keyframes travel { from { offset-distance: 0%; } to { offset-distance: 100%; } }

.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin-top: 80px; }
.trio-k { font-size: 14px; color: var(--orange); font-weight: 600; margin-bottom: 8px; }
.trio h3 { font-size: 24px; line-height: 1.25; margin-bottom: 10px; }
.trio p { color: var(--ink-inv-2); font-size: 16px; }
.trio .reveal:nth-child(2) { transition-delay: .1s; }
.trio .reveal:nth-child(3) { transition-delay: .2s; }

/* ---------- 本体堆栈 ---------- */
.stack { max-width: 900px; margin: 64px auto 0; background: #fff; border-radius: 32px; padding: 48px 56px; }
.stack-layer { display: flex; align-items: center; justify-content: space-between; border-radius: 18px; padding: 22px 26px; border: 1.5px solid; }
.stack-layer b { display: block; font-size: 24px; letter-spacing: -.01em; }
.stack-layer span { font-size: 15px; color: var(--ink-2); }
.s-ai { background: #eef4ee; border-color: #6a9a6a; }
.s-onto { background: #f7ebe3; border-color: var(--copper); }
.s-sys { background: #eaf0f5; border-color: #5b84a6; }
.s-sys .sys-wrap { width: 100%; }
.sys-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 10px; }
.sys-tags li { font-size: 13px; font-weight: 600; color: #34536e; background: #fff; border: 1px solid #c9d7e3; border-radius: 980px; padding: 3px 11px; }
/* 本体动画：对象 → 关系 → 规则 → 动作，按 data-stage 逐步叠加 */
.s-onto { display: grid; grid-template-columns: minmax(210px, .8fr) 1.6fr; gap: 20px; align-items: center; }
.onto-steps { margin-top: 12px; display: grid; gap: 4px; }
.onto-steps li { font-size: 13px; color: var(--ink-2); padding: 5px 10px; border-radius: 10px; cursor: pointer; transition: background .4s, color .4s; }
.onto-steps em { font-style: normal; font-weight: 700; margin-right: 8px; color: #8a5a3a; }
.onto-steps li.on { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(200,102,46,.15); }
.onto-steps li.on em { color: var(--copper); }
.onto-graph { width: 100%; height: auto; display: block; overflow: visible; }
.onto-graph text { font-family: var(--font); }

.o-node { opacity: 0; transform: scale(.6); transform-box: fill-box; transform-origin: center; transition: opacity .5s var(--d) var(--ease), transform .5s var(--d) cubic-bezier(.3,1.5,.5,1); }
.o-node rect { fill: #fff; stroke: var(--copper); stroke-width: 1.5; transition: fill .4s, stroke .4s; }
.o-node text { font-size: 13px; font-weight: 600; fill: var(--ink); text-anchor: middle; }
.o-edge { stroke: var(--copper); stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .7s var(--ease); }
.o-edge:nth-child(2) { transition-delay: .15s; } .o-edge:nth-child(3) { transition-delay: .3s; } .o-edge:nth-child(4) { transition-delay: .45s; }
.o-elabel { font-size: 11px; fill: #8a5a3a; opacity: 0; transition: opacity .5s .5s; }
.o-rule, .o-badge, .o-action { opacity: 0; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.o-rule { transform: translateX(-6px); }
.o-rule rect { fill: #fff8f2; stroke: #e0a77f; stroke-dasharray: 3 3; }
.o-rule text { font-size: 11px; fill: var(--ink-2); }
.o-rule .o-rule-k { font-weight: 700; fill: var(--copper); }
.o-rule line { stroke: #e0a77f; stroke-dasharray: 2 3; }
.o-badge rect { fill: #ff453a; }
.o-badge text { font-size: 10.5px; font-weight: 700; fill: #fff; }
.o-action { transform: translateY(-6px); }
.o-action line { stroke: #3a7d44; stroke-width: 1.5; stroke-dasharray: 3 3; }
.o-action rect { fill: #3a7d44; }
.o-action text { font-size: 11.5px; fill: #fff; font-weight: 500; }
.o-action .o-action-k { font-weight: 700; }
.o-ping { fill: #3a7d44; }

.onto-graph[data-stage="1"] .o-node, .onto-graph[data-stage="2"] .o-node, .onto-graph[data-stage="3"] .o-node, .onto-graph[data-stage="4"] .o-node { opacity: 1; transform: none; }
.onto-graph[data-stage="2"] .o-edge, .onto-graph[data-stage="3"] .o-edge, .onto-graph[data-stage="4"] .o-edge { stroke-dashoffset: 0; }
.onto-graph[data-stage="2"] .o-elabel, .onto-graph[data-stage="3"] .o-elabel, .onto-graph[data-stage="4"] .o-elabel { opacity: 1; }
.onto-graph[data-stage="3"] .o-rule, .onto-graph[data-stage="4"] .o-rule,
.onto-graph[data-stage="3"] .o-badge, .onto-graph[data-stage="4"] .o-badge { opacity: 1; transform: none; }
.onto-graph[data-stage="3"] .o-line rect, .onto-graph[data-stage="4"] .o-line rect { fill: #ffe9e6; stroke: #ff453a; }
.onto-graph[data-stage="3"] .o-line { animation: warn 1s 2 var(--ease); }
@keyframes warn { 50% { transform: scale(1.08); } }
.onto-graph[data-stage="4"] .o-action { opacity: 1; transform: none; }
.onto-graph[data-stage="4"] .o-ping { animation: ping 1.4s infinite var(--ease); transform-box: fill-box; transform-origin: center; }
@keyframes ping { from { transform: scale(1); opacity: 1; } to { transform: scale(4); opacity: 0; } }
.stack-wire { height: 46px; display: flex; justify-content: space-around; padding: 0 20%; }
.stack-wire i { width: 1.5px; height: 100%; background: repeating-linear-gradient(to bottom, #b0b0b5 0 4px, transparent 4px 8px); position: relative; }
.stack-wire i::after {
  content: ""; position: absolute; left: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--copper);
  animation: drop 2.4s infinite var(--ease);
}
.stack-wire i:nth-child(2)::after { animation-delay: .8s; background: #6a9a6a; }
.stack-wire i:nth-child(3)::after { animation-delay: 1.6s; background: #5b84a6; }
@keyframes drop { 0% { top: 100%; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: 0; opacity: 0; } }

.spec-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.spec { background: #fff; border-radius: var(--radius); padding: 28px; text-align: center; }
.spec b { display: block; font-size: 40px; letter-spacing: -.02em; margin-bottom: 6px; }
.spec span { font-size: 14px; color: var(--ink-2); }

/* ---------- 分段控件 & 场景 ---------- */
.seg {
  display: flex; width: max-content; max-width: 100%; margin: 48px auto 0; padding: 4px;
  background: #e8e8ed; border-radius: 980px; overflow-x: auto; scrollbar-width: none;
}
.seg::-webkit-scrollbar { display: none; }
.seg button { padding: 8px 22px; border-radius: 980px; font-size: 15px; color: var(--ink-2); white-space: nowrap; transition: background .3s, color .3s, box-shadow .3s; }
.seg button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.1); }

.scene {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center;
  margin-top: 48px; background: var(--bg-light); border-radius: 32px; padding: 56px;
}
.scene.is-active { animation: fadein .6s var(--ease); }
@keyframes fadein { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.scene h3 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.12; letter-spacing: -.02em; }
.scene-copy > p { color: var(--ink-2); margin-top: 16px; font-size: 17px; }
.cases { margin-top: 28px; display: grid; gap: 10px; }
.cases a {
  display: flex; flex-direction: column; background: #fff; border-radius: 14px; padding: 13px 44px 13px 18px;
  position: relative; transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.cases a::after { content: "↗"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--blue-link); font-size: 17px; }
.cases a:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(0,0,0,.2); }
.cases b { font-size: 16px; }
.cases span { font-size: 13px; color: var(--ink-2); }

.mock { background: #fff; border-radius: 20px; box-shadow: 0 30px 60px -24px rgba(0,0,0,.25); overflow: hidden; font-size: 13px; }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; border-bottom: 1px solid #ececf0; }
.mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: #e3e3e8; }
.mock-bar em { font-style: normal; margin-left: 8px; color: var(--ink-2); font-size: 12px; }
.gantt { padding: 18px 16px 6px; display: grid; gap: 12px; }
.g-row { display: grid; grid-template-columns: 70px 1fr; align-items: center; gap: 10px; }
.g-row label { font-size: 12px; color: var(--ink-2); }
.g-track { position: relative; height: 22px; background: #f5f5f7; border-radius: 6px; }
.g-track i { position: absolute; top: 3px; bottom: 3px; left: var(--x); width: 0; border-radius: 4px; background: #9fc3f5; transition: width 1s var(--ease); }
.scene.is-active .g-track i { width: var(--w); }
.g-track i.warn { background: #ffb4a8; }
.g-track i.new { background: var(--orange); box-shadow: 0 0 0 3px rgba(255,159,10,.22); }
.advice { margin: 14px; padding: 14px; border-radius: 14px; background: #fff7eb; border: 1px solid #ffe0b0; }
.advice p { line-height: 1.5; }
.advice b { color: #c46a00; margin-right: 6px; }
.advice-btns { display: flex; gap: 8px; margin-top: 10px; }
.advice-btns span { padding: 5px 14px; border-radius: 980px; border: 1px solid var(--line); font-size: 12px; }
.advice-btns .ok { background: var(--blue); border-color: var(--blue); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chips span { font-size: 11px; padding: 3px 9px; border-radius: 980px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); }

.inv { display: block; width: 100%; height: auto; padding: 14px 14px 0; }
.inv-band { fill: #e7f6ea; }
.inv-t { fill: #8e8e93; font-size: 11px; }
.inv-hist { fill: none; stroke: #5b84a6; stroke-width: 2.4; }
.inv-plan { fill: none; stroke: var(--orange); stroke-width: 2.4; stroke-dasharray: 6 5; }
.inv-risk { fill: none; stroke: #ff6961; stroke-width: 1.6; stroke-dasharray: 3 4; }
.inv-t-o { fill: #c46a00; }
.inv-now { stroke: #c7c7cc; stroke-dasharray: 3 4; }

.chat { padding: 18px; display: grid; gap: 12px; }
.chat .q { justify-self: end; background: var(--blue); color: #fff; padding: 9px 14px; border-radius: 16px 16px 4px 16px; font-size: 14px; }
.chat .a { background: #f5f5f7; padding: 14px 16px; border-radius: 16px 16px 16px 4px; font-size: 14px; }
.chat ol { margin: 8px 0; padding-left: 20px; list-style: decimal; }
.chat ol li { margin: 3px 0; }
.chat ol b { color: #d70015; font-weight: 600; }
.chat .next { color: var(--blue-link); }
.chat .chips span { background: #fff; }

/* ---------- ERP 流程 ---------- */
.flow { display: grid; grid-template-columns: 1fr 60px 1fr 60px 1fr; align-items: stretch; margin-top: 72px; }
.flow-step { background: #1d1d1f; border-radius: var(--radius); padding: 30px 26px; }
.flow-n { font-size: 13px; color: var(--blue-dark); font-weight: 600; }
.flow-step h3 { font-size: 24px; margin: 6px 0 10px; }
.flow-step p { color: var(--ink-inv-2); font-size: 15px; }
.flow-arrow { position: relative; }
.flow-arrow::before { content: ""; position: absolute; left: 10px; right: 14px; top: 50%; height: 1.5px; background: linear-gradient(90deg, #333, var(--blue-dark)); }
.flow-arrow::after { content: ""; position: absolute; right: 12px; top: 50%; width: 8px; height: 8px; border-top: 1.5px solid var(--blue-dark); border-right: 1.5px solid var(--blue-dark); transform: translateY(-50%) rotate(45deg); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 64px; text-align: center; }
.stat b {
  display: block; font-size: clamp(48px, 7vw, 80px); letter-spacing: -.03em; line-height: 1;
  background: linear-gradient(90deg, #2997ff, #bf5af2); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat span { display: block; margin-top: 12px; color: var(--ink-inv-2); font-size: 15px; }

/* ---------- 成熟度 ---------- */
.proof { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 64px; text-align: center; }
.proof b { display: block; font-size: clamp(40px, 5.4vw, 64px); letter-spacing: -.03em; line-height: 1.05; }
.proof span { display: block; margin-top: 8px; color: var(--ink-2); font-size: 15px; }
.principles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; margin-top: 96px; background: var(--line); border-radius: var(--radius); overflow: hidden; }
.principles > div { background: var(--bg-light); padding: 26px 20px; }
.principles h4 { font-size: 17px; margin-bottom: 6px; }
.principles p { font-size: 14px; color: var(--ink-2); }

/* ---------- 行业 ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; text-align: center; }
.kpis b { display: block; font-size: clamp(36px, 4.6vw, 52px); letter-spacing: -.03em; line-height: 1.1; }
.kpis span { font-size: 14px; color: var(--ink-2); }
#industries .seg { background: #e3e3e8; }
.ind { margin-top: 36px; }
.ind.is-active { animation: fadein .6s var(--ease); }
.ind-lede { text-align: center; color: var(--ink-2); margin-bottom: 28px; }
.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.logos li {
  background: #fff; border-radius: 14px; padding: 18px 14px; text-align: center;
  font-size: 15px; font-weight: 600; color: #3a3a3c; letter-spacing: .01em;
}
.logos.sm { grid-template-columns: repeat(2, 1fr); gap: 8px; }
.logos.sm li { padding: 12px 8px; font-size: 14px; }
.life-groups { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.life-groups h4 { font-size: 14px; color: var(--copper); margin-bottom: 10px; text-align: center; }

/* ---------- 联系 & 页脚 ---------- */
.contact { padding: 160px 0; background: radial-gradient(ellipse 70% 60% at 50% 100%, #2a1a0c, #000 70%); }
.footer { background: var(--bg-light); color: var(--ink-2); font-size: 12px; padding: 40px 0 30px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.footer .brand { color: var(--ink); font-size: 17px; margin-bottom: 8px; }
.footer h5 { color: var(--ink); font-size: 12px; margin-bottom: 8px; }
.footer a { display: block; margin-bottom: 6px; }
.footer a:hover { text-decoration: underline; }
.footer p { line-height: 1.6; margin-bottom: 8px; }
.copy { margin-top: 18px; }

/* ---------- 响应式 ---------- */
.nowrap { white-space: nowrap; }
.dots { display: none; }
.onto-cap { display: none; }
@media (max-width: 1068px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .arch { gap: 0 48px; }
  .principles { grid-template-columns: repeat(3, 1fr); }
  .life-groups { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 833px) {
  .section { padding: 96px 0; }
  .gnav-toggle { display: block; margin-left: auto; }
  .gnav-links {
    position: fixed; top: 48px; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0;
    background: rgba(22,22,23,.96); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    padding: 8px 22px 22px; font-size: 22px; font-weight: 600;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .3s var(--ease);
  }
  .gnav-links a { padding: 12px 0; border-bottom: 1px solid #333; }
  .gnav.is-open .gnav-links { transform: none; opacity: 1; visibility: visible; }
  .gnav-inner { gap: 14px; }

  .arch { grid-template-columns: 1fr; gap: 28px; }
  .arch-wires { display: none; }
  .arch-left { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .arch-left .arch-cap, .arch-right .arch-cap { grid-column: 1 / -1; text-align: center; }
  .arch-right { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .arch-core { order: 0; }
  .eng { font-size: 15px; padding: 13px 14px; }

  .scene { grid-template-columns: 1fr; padding: 32px 22px; gap: 32px; }
  .trio, .spec-row { grid-template-columns: 1fr; gap: 28px; }
  .stack { padding: 24px 18px; }
  .stack-layer { flex-direction: column; align-items: flex-start; gap: 6px; }
  .s-onto { grid-template-columns: 1fr; gap: 14px; }
  .onto-steps { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .onto-steps li { padding: 6px 0; text-align: center; background: rgba(255,255,255,.45); }
  .onto-steps li span { display: none; }
  .onto-steps em { margin: 0; }
  .onto-cap { display: block; min-height: 20px; margin-top: 10px; font-size: 13px; color: var(--ink-2); text-align: center; }
  .flow { grid-template-columns: 1fr; gap: 0; }
  .flow-arrow { height: 40px; }
  .flow-arrow::before { left: 50%; right: auto; top: 6px; bottom: 10px; width: 1.5px; height: auto; background: linear-gradient(180deg, #333, var(--blue-dark)); }
  .flow-arrow::after { left: 50%; right: auto; top: auto; bottom: 10px; margin-left: -4px; transform: rotate(135deg); }
  .proof, .kpis { grid-template-columns: repeat(2, 1fr); gap: 36px 16px; }
  .principles { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .tiles { grid-template-columns: 1fr; }
  .tile { min-height: 0; }
  .stats { grid-template-columns: 1fr; gap: 36px; }
  .logos { grid-template-columns: repeat(2, 1fr); }
  .logos li { font-size: 14px; padding: 14px 8px; }
  .life-groups { grid-template-columns: 1fr; }
  .seg button { padding: 8px 14px; font-size: 14px; }
  .quad { padding: 14px 8px 6px; border-radius: 20px; }
  .q-label { font-size: 24px; } .q-sub, .q-axis { font-size: 20px; } .q-sub { transform: translateY(10px); } .q-zone { font-size: 22px; }
  .foot-grid { grid-template-columns: 1fr; }
}

/* ---------- 手机精调 ---------- */
@media (max-width: 833px) {
  .gnav { height: calc(48px + env(safe-area-inset-top)); padding-top: env(safe-area-inset-top); }
  .gnav-links { top: calc(48px + env(safe-area-inset-top)); max-height: calc(100vh - 48px); overflow-y: auto; }
  body.menu-open { overflow: hidden; }
  /* .gnav 有 backdrop-filter，会成为 fixed 子元素的包含块，故用显式高度而非 bottom:0 */
  .gnav-links { height: calc(100vh - 48px - env(safe-area-inset-top)); height: calc(100dvh - 48px - env(safe-area-inset-top)); max-height: none; }

  /* 架构图：系统压缩为标签，组间用箭头示意数据流 */
  .arch-left { grid-template-columns: repeat(4, 1fr); }
  .sys { padding: 10px 4px; text-align: center; border-radius: 12px; }
  .sys b { font-size: 14px; }
  .sys span { display: none; }
  .arch-left, .arch-core { position: relative; }
  .arch-left::after, .arch-core::after {
    content: ""; position: absolute; left: 50%; bottom: -24px; width: 1.5px; height: 20px; margin-left: -.75px;
    background: linear-gradient(var(--line), var(--blue));
  }
  .eng:last-child { grid-column: 1 / -1; justify-content: center; }
  .eng:hover { transform: none; }
  .core-head h3 { font-size: 26px; }

  .stack-layer b { font-size: 20px; }
  .flow-step { padding: 22px 22px; }
  .flow-step h3 { font-size: 21px; }
  .flow-arrow { height: 32px; }
}
@media (max-width: 560px) {
  .section { padding: 76px 0; }
  .contact { padding: 110px 0; }
  .hide-sm { display: none; }
  .hero-title { font-size: clamp(36px, 11vw, 48px); }
  .hero-sub { font-size: 18px; }
  .lede { font-size: 18px; }
  .headline { font-size: clamp(30px, 9vw, 40px); }
  .tiles, .arch, .quad, .stack, .flow, .scene { margin-top: 44px; }
  .trio { margin-top: 52px; }

  /* 工程师卡片：横向滑动 */
  .tiles {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-left: -16px; margin-right: -16px; padding: 4px 16px 12px; scroll-padding: 0 16px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .tiles::-webkit-scrollbar { display: none; }
  .tile { flex: 0 0 80%; scroll-snap-align: start; min-height: 250px; }
  .tiles .reveal { opacity: 1; transform: none; transition: none; }
  .dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
  .dots i { width: 7px; height: 7px; border-radius: 50%; background: #d2d2d7; transition: background .3s, transform .3s; }
  .dots i.on { background: var(--ink); transform: scale(1.15); }

  .scene { padding: 26px 18px; border-radius: 24px; }
  .mock { font-size: 12px; }
  .g-row { grid-template-columns: 62px 1fr; }
  .spec b { font-size: 34px; }
  .spec { padding: 22px; }
  .stat span, .proof span { font-size: 14px; }
  .principles { margin-top: 64px; }
  .principles > div { padding: 18px 18px; }

  /* 客户名单：流式胶囊，紧凑 */
  .logos, .logos.sm { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
  .logos li, .logos.sm li { padding: 8px 14px; font-size: 13px; border-radius: 980px; font-weight: 500; }
  .life-groups { gap: 26px; }
  .ind-lede { font-size: 15px; }
  .kpis span { font-size: 13px; }

  /* 页脚 */
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 22px 16px; }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
  .footer { padding-bottom: calc(30px + env(safe-area-inset-bottom)); }
}
@media (hover: none) {
  .tile:hover, .cases a:hover { transform: none; box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .quad .q-isip { opacity: 1; transform: translate(560px, 110px); }
  .quad .q-path, .quad .q-isip-label { opacity: 1; }
  .g-track i { width: var(--w); }
  .onto-graph .o-node, .onto-graph .o-rule, .onto-graph .o-badge, .onto-graph .o-action, .onto-graph .o-elabel { opacity: 1; transform: none; }
  .onto-graph .o-edge { stroke-dashoffset: 0; }
}
