/* ============================================================================
   运行原理独立页（/principle.html）
   与 style.css 共用设计 token；这里只放这一页专属的部分。
   组织顺序：页面骨架 → Hero 与实演装置 → 子导航 → 各区块 → 响应式 → 降级
   ============================================================================ */

.pp-body { background: var(--bg); }

/* 页头 72px、子导航约 56px —— 先给默认值，JS 起来后再按实测覆盖（换行/缩放会改变它们） */
:root {
  --header-h: 72px;
  --subnav-h: 56px;
  --anchor-offset: 152px;
}

/* 锚点要避开「页头 + 粘性子导航」两层，否则跳过去标题会被盖住。
   偏移量必须跟着实测走：小屏页头会换行变高，写死数值就会把标题压住。 */
#overview, #pipeline, #tiers, #matrix, #device, #boundary, #faq, #cta { scroll-margin-top: var(--anchor-offset); }

/* 首页以外的顶栏：当前页高亮 */
.nav a.is-current { background: var(--primary-soft); color: var(--primary-strong); }

/* ============================================================================
   区块节奏
   ============================================================================ */
.pp-sec { padding: 92px 0; position: relative; }
.pp-sec + .pp-sec { padding-top: 0; }

.pp-sec-head { display: flex; gap: 22px; align-items: flex-start; max-width: 760px; margin-bottom: 44px; }
.pp-sec-num {
  flex: none; font-family: var(--font-display); font-size: 13px; font-weight: 800;
  letter-spacing: .14em; color: var(--primary);
  padding: 7px 11px; border-radius: 999px;
  background: var(--primary-soft); border: 1px solid rgba(86, 92, 246, .18);
  position: relative; top: 6px;
}
.pp-sec-head h2 {
  font-family: var(--font-display); font-size: clamp(25px, 3.1vw, 34px);
  font-weight: 800; letter-spacing: -.7px; line-height: 1.24;
}
.pp-sec-head p { color: var(--muted); font-size: 16.5px; margin-top: 10px; }

.pp-foot-note {
  margin-top: 26px; font-size: 14.5px; color: var(--muted);
  padding-left: 16px; border-left: 2.5px solid var(--primary-soft);
}
.pp-hint-line { margin-top: 20px; font-size: 13.5px; color: var(--muted); text-align: center; }

/* ============================================================================
   Hero
   ============================================================================ */
.pp-hero { position: relative; padding: 62px 0 26px; overflow: hidden; }
.pp-hero-glow {
  position: absolute; inset: -180px -10% auto -10%; height: 760px; pointer-events: none;
  background:
    radial-gradient(48% 42% at 18% 8%, rgba(86, 92, 246, .17), transparent 70%),
    radial-gradient(42% 40% at 82% 0%, rgba(139, 92, 246, .16), transparent 70%);
}
.pp-hero-inner {
  position: relative;
  display: grid; grid-template-columns: 1.06fr .94fr; gap: 54px; align-items: start;
}

.pp-crumbs { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--muted); margin-bottom: 20px; }
.pp-crumbs a { font-weight: 600; }
.pp-crumbs a:hover { color: var(--primary-strong); }
.pp-crumb-current { color: var(--ink); font-weight: 700; }

.pp-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 15px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  font-size: 13px; font-weight: 700; font-family: var(--font-display); color: var(--primary-strong);
}
.pp-badge-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--teal);
  box-shadow: 0 0 0 3px rgba(18, 165, 148, .2);
}

.pp-title {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -1.6px;
  font-size: clamp(34px, 5vw, 56px); line-height: 1.08; margin: 20px 0 18px;
}
.pp-lede { font-size: 17px; color: var(--muted); max-width: 560px; }

.pp-hero-actions { display: flex; gap: 13px; flex-wrap: wrap; margin: 30px 0 38px; }

.pp-specs-title {
  font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 15px;
}
.pp-spec-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
}
.spec-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 15px 17px; box-shadow: var(--shadow-soft);
}
.spec-item dt {
  font-family: var(--font-display); font-size: 21px; font-weight: 800; letter-spacing: -.5px;
  background: linear-gradient(120deg, var(--primary), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.spec-item dd { font-size: 12.8px; color: var(--muted); margin-top: 3px; line-height: 1.5; }

/* ============================================================================
   实演装置（Hero 右侧）
   ============================================================================ */
.pp-rig { display: flex; flex-direction: column; align-items: center; gap: 16px; }

.rig-input {
  display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap;
  max-width: 420px; padding: 13px 17px;
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-soft);
}
.rig-input-mic { color: var(--primary); position: relative; top: 2px; flex: none; }
.rig-input-label { font-size: 11.5px; font-weight: 800; letter-spacing: .06em; color: var(--primary-strong); text-transform: uppercase; }
.rig-input-text { font-size: 14px; color: var(--ink); line-height: 1.6; }

.rig-frame {
  position: relative; width: min(360px, 100%);
  padding: 12px; border-radius: 42px;
  background: linear-gradient(158deg, #333964, #151830);
  box-shadow: 0 34px 74px -30px rgba(27, 30, 51, .6), inset 0 0 0 1px rgba(255, 255, 255, .09);
}
.rig-notch {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 21px; border-radius: 0 0 13px 13px; background: #151830; z-index: 3;
}
.rig-screen {
  position: relative; z-index: 2; border-radius: 31px; background: #fff;
  padding: 34px 13px 15px; min-height: 452px;
  display: flex; flex-direction: column; gap: 9px; overflow: hidden;
}
.rig-statusbar {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 10px; font-weight: 700; color: #9AA0B4; padding: 0 6px 4px;
}
.rig-signals { display: inline-flex; align-items: flex-end; gap: 2px; }
.rig-signals i { display: block; width: 3px; border-radius: 1px; background: currentColor; }
.rig-signals i:nth-child(1) { height: 4px; }
.rig-signals i:nth-child(2) { height: 7px; }
.rig-signals i:nth-child(3) { height: 10px; }

/* 屏幕里的四块：默认压暗，轮到它才亮起来 */
.rig-block {
  border-radius: 15px; padding: 11px 12px; background: var(--bg-soft);
  border: 1px solid transparent;
  opacity: .26; transform: translateY(6px) scale(.985);
  transition: opacity .45s ease, transform .45s ease, background .45s ease, border-color .45s ease;
}
.rig-block.is-active {
  opacity: 1; transform: none; background: #fff; border-color: rgba(86, 92, 246, .3);
  box-shadow: 0 12px 30px -16px rgba(86, 92, 246, .5);
}
.rig-block.is-done { opacity: .82; transform: none; background: #fff; border-color: var(--line); }

.rig-block-head { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 800; color: var(--primary-strong); letter-spacing: .04em; text-transform: uppercase; }
.rig-live { width: 7px; height: 7px; border-radius: 50%; background: #E4483C; box-shadow: 0 0 0 0 rgba(228, 72, 60, .5); }
.pp-rig[data-stage="0"] .rig-live { animation: rigPulse 1.5s ease-out infinite; }
.rig-chip-mono, .rig-chip {
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 10.5px;
  font-weight: 700; letter-spacing: .05em; color: var(--muted); text-transform: uppercase;
}
.rig-chip { font-family: var(--font-display); color: var(--primary-strong); }

.wave-bars { display: flex; align-items: center; gap: 3px; height: 42px; margin-top: 8px; }
.wave-bars i {
  flex: 1; min-width: 2px; border-radius: 2px; display: block; height: 100%;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  transform: scaleY(.16); transform-origin: center;
  opacity: .55;
}
.pp-rig[data-stage="0"] .wave-bars i { opacity: 1; animation: rigWave 1.15s ease-in-out infinite; }
.pp-rig[data-stage="0"] .wave-bars i:nth-child(3n) { animation-delay: .12s; }
.pp-rig[data-stage="0"] .wave-bars i:nth-child(3n+1) { animation-delay: .26s; }
.pp-rig[data-stage="0"] .wave-bars i:nth-child(4n) { animation-delay: .38s; }
.pp-rig[data-stage="0"] .wave-bars i:nth-child(5n) { animation-delay: .5s; }

.rig-raw-text {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11.5px; line-height: 1.85; color: var(--muted); margin-top: 7px;
  overflow-wrap: anywhere;
}
.pp-rig[data-stage="1"] .rig-raw-text { animation: rigWipe .85s steps(30) both; }

.rig-note-title { font-family: var(--font-display); font-size: 14.5px; font-weight: 800; letter-spacing: -.2px; margin-top: 7px; }
.rig-note-points { list-style: none; margin-top: 7px; display: grid; gap: 5px; }
.rig-note-points li {
  font-size: 12px; color: var(--muted); padding-left: 13px; position: relative; line-height: 1.6;
}
.rig-note-points li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
}

.rig-filed-row { display: flex; align-items: center; gap: 7px; }
.rig-cat {
  font-size: 11px; font-weight: 800; color: var(--primary-strong);
  background: var(--primary-soft); padding: 3px 9px; border-radius: 999px;
}
/* 「已归档」的勾与说明只在最后一步出现：第 3 步只该看到分类被选中，
   否则「归类」与「归档」两件事会糊成一件。 */
.rig-filed-check, .rig-filed-row strong, .rig-filed-sub { opacity: 0; transition: opacity .4s ease; }
.pp-rig[data-stage="4"] .rig-filed-check,
.pp-rig[data-stage="4"] .rig-filed-row strong,
.pp-rig[data-stage="4"] .rig-filed-sub { opacity: 1; }
.rig-filed-check { color: var(--teal); }
.rig-filed-row strong { font-family: var(--font-display); font-size: 12.5px; }
.rig-filed-sub { font-size: 11px; color: var(--muted); margin-top: 5px; line-height: 1.55; }

.rig-controls { display: flex; flex-direction: column; align-items: center; gap: 11px; }
.rig-play { min-width: 128px; }
.rig-play.is-playing .rig-play-icon { animation: rigSpin 1.1s linear infinite; }
.rig-stage-rail { display: flex; gap: 6px; }
.rig-stage-rail span {
  display: block; width: 22px; height: 3px; border-radius: 2px;
  background: var(--line); transition: background .3s ease, transform .3s ease;
}
.rig-stage-rail span.is-on { background: linear-gradient(90deg, var(--primary), var(--accent)); transform: scaleY(1.8); }
.rig-hint { font-size: 12px; color: var(--muted); text-align: center; }

@keyframes rigPulse {
  0% { box-shadow: 0 0 0 0 rgba(228, 72, 60, .5); }
  100% { box-shadow: 0 0 0 9px rgba(228, 72, 60, 0); }
}
@keyframes rigWave {
  0%, 100% { transform: scaleY(.16); }
  50% { transform: scaleY(.94); }
}
@keyframes rigWipe {
  from { clip-path: inset(0 100% 0 0); opacity: .2; }
  to { clip-path: inset(0 0 0 0); opacity: 1; }
}
@keyframes rigSpin { to { transform: rotate(360deg); } }

/* ============================================================================
   粘性子导航
   ============================================================================ */
.pp-subnav {
  position: sticky; top: var(--header-h, 64px); z-index: 60;
  background: rgba(247, 248, 252, .84);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.pp-subnav-track { position: relative; overflow-x: auto; scrollbar-width: none; }
.pp-subnav-track::-webkit-scrollbar { display: none; }
.pp-subnav-list { display: flex; gap: 4px; list-style: none; padding: 9px 0; }
.pp-subnav-list a {
  display: block; padding: 7px 14px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600; color: var(--muted); white-space: nowrap;
  transition: color .2s ease, background .2s ease;
}
.pp-subnav-list a:hover { color: var(--primary-strong); background: #fff; }
.pp-subnav-list a.is-active { color: var(--primary-strong); background: #fff; box-shadow: var(--shadow-soft); }
.pp-subnav-bar {
  position: absolute; left: 0; bottom: 3px; height: 2px; width: 0; border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: transform .32s cubic-bezier(.4, 0, .2, 1), width .32s cubic-bezier(.4, 0, .2, 1);
  opacity: .9;
}

/* ============================================================================
   01 两道工序
   ============================================================================ */
.pp-pipe { display: grid; grid-template-columns: 1fr 46px 1fr 46px 1fr; align-items: stretch; gap: 0; }
.pipe-node {
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  padding: 22px 20px; box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column; gap: 6px; position: relative;
  transition: transform .25s ease, box-shadow .25s ease;
}
.pipe-node:hover { transform: translateY(-3px); box-shadow: 0 20px 44px -20px rgba(86, 92, 246, .4); }
.pipe-node-num {
  position: absolute; top: 14px; right: 16px;
  font-family: var(--font-display); font-size: 11px; font-weight: 800; color: #C3C7D8;
}
.pipe-node-icon {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary-strong); margin-bottom: 4px;
}
.pipe-node-icon svg { width: 19px; height: 19px; }
.pipe-node strong { font-family: var(--font-display); font-size: 16.5px; font-weight: 800; }
.pipe-node-sub { font-size: 12.5px; color: var(--muted); }
.pipe-node-io { margin-top: 10px; padding-top: 11px; border-top: 1px dashed var(--line); display: grid; gap: 5px; }
.pipe-node-io span { font-size: 11.5px; color: var(--muted); display: flex; gap: 7px; align-items: baseline; }
.pipe-node-io b { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; min-width: 34px; }
.pipe-arrow { display: grid; place-items: center; color: #C3C7D8; }
.pipe-arrow svg { width: 18px; height: 18px; }

.pp-insight {
  display: flex; gap: 15px; align-items: flex-start;
  margin-top: 26px; padding: 21px 23px;
  border-radius: 20px; border: 1px solid rgba(86, 92, 246, .2);
  background: linear-gradient(135deg, rgba(86, 92, 246, .07), rgba(139, 92, 246, .05));
}
.pp-insight-icon {
  flex: none; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center;
  background: #fff; color: var(--primary-strong); box-shadow: var(--shadow-soft);
}
.pp-insight strong { font-family: var(--font-display); font-size: 15.5px; font-weight: 800; display: block; margin-bottom: 6px; }
.pp-insight p { font-size: 14.5px; color: var(--muted); }

/* ============================================================================
   02 五步流程（滚动驱动 + 粘性舞台）
   ============================================================================ */
.pp-flow { display: grid; grid-template-columns: 1.02fr .98fr; gap: 46px; align-items: start; }
.pp-flow-steps { display: flex; flex-direction: column; gap: 34px; }

.fstep {
  background: #fff; border: 1px solid var(--line); border-radius: 22px;
  padding: 24px 24px 22px; box-shadow: var(--shadow-soft);
  transition: border-color .35s ease, box-shadow .35s ease, transform .35s ease;
}
.fstep.is-active {
  border-color: transparent; transform: translateX(4px);
  box-shadow: 0 26px 56px -26px rgba(86, 92, 246, .5);
  background: linear-gradient(180deg, #fff, #FAFBFF);
}
.fstep-top { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.fstep-dot {
  flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-display); font-size: 12.5px; font-weight: 800;
  background: var(--bg-soft); color: var(--muted); transition: all .3s ease;
}
.fstep.is-active .fstep-dot { background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; }
.fstep.is-done .fstep-dot { background: var(--primary-soft); color: var(--primary-strong); }
.fstep-title { font-family: var(--font-display); font-size: 18px; font-weight: 800; letter-spacing: -.3px; }
.fstep-short {
  margin-left: auto; font-size: 11.5px; font-weight: 700; color: var(--muted);
  padding: 4px 10px; border-radius: 999px; background: var(--bg-soft);
}
.fstep-detail { font-size: 14.5px; color: var(--muted); line-height: 1.78; }
.fstep-points { list-style: none; display: grid; gap: 7px; margin-top: 14px; }
.fstep-points li { display: flex; gap: 9px; font-size: 13.5px; color: var(--ink); align-items: baseline; }
.fstep-points li::before {
  content: ""; flex: none; width: 6px; height: 6px; border-radius: 2px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  position: relative; top: -1px;
}

.pp-flow-sticky { position: sticky; top: 142px; }
.pp-stage {
  border-radius: 24px; border: 1px solid var(--line); background: #fff;
  box-shadow: var(--shadow-card); overflow: hidden;
}
.pp-stage-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 20px; border-bottom: 1px solid var(--line); background: var(--bg-soft);
}
.pp-stage-index { font-family: var(--font-display); font-size: 13px; font-weight: 800; letter-spacing: .1em; color: var(--primary-strong); }
.pp-stage-device { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; color: var(--muted); }

.pp-stage-canvas { position: relative; min-height: 286px; padding: 26px 22px; display: flex; align-items: center; }
.st {
  position: absolute; inset: 26px 22px; display: flex; flex-direction: column; justify-content: center;
  opacity: 0; transform: translateY(12px) scale(.99); pointer-events: none;
  transition: opacity .4s ease, transform .4s ease;
}
.pp-stage[data-stage="0"] .st-0,
.pp-stage[data-stage="1"] .st-1,
.pp-stage[data-stage="2"] .st-2,
.pp-stage[data-stage="3"] .st-3,
.pp-stage[data-stage="4"] .st-4 { opacity: 1; transform: none; pointer-events: auto; }

.st-wave { display: flex; align-items: center; gap: 3px; height: 84px; }
.st-wave i {
  flex: 1; display: block; height: 100%; border-radius: 3px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  transform: scaleY(.2); transform-origin: center; opacity: .8;
}
.pp-stage[data-stage="0"] .st-wave i { animation: rigWave 1.2s ease-in-out infinite; }
.pp-stage[data-stage="0"] .st-wave i:nth-child(3n) { animation-delay: .1s; }
.pp-stage[data-stage="0"] .st-wave i:nth-child(4n) { animation-delay: .24s; }
.pp-stage[data-stage="0"] .st-wave i:nth-child(5n) { animation-delay: .36s; }
.st-silence {
  margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line);
  display: flex; align-items: center; gap: 12px;
}
.st-silence-mark { font-family: ui-monospace, monospace; color: #C3C7D8; letter-spacing: .2em; font-size: 13px; }
.st-silence::after {
  content: ""; flex: 1; height: 6px; border-radius: 3px;
  background: repeating-linear-gradient(90deg, var(--bg-soft) 0 14px, transparent 14px 26px);
}

.st-1 { align-items: flex-start; }
.st-mono {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 13.5px; line-height: 2; color: var(--ink); overflow-wrap: anywhere;
}
.pp-stage[data-stage="1"] .st-mono { animation: rigWipe 1s steps(34) both; }
.st-caret { display: inline-block; width: 2px; height: 17px; background: var(--primary); margin-top: 6px; }
.pp-stage[data-stage="1"] .st-caret { animation: caret 1s step-end infinite; }
@keyframes caret { 50% { opacity: 0; } }

.st-2 { align-items: flex-start; }
.st-note-title { font-family: var(--font-display); font-size: 19px; font-weight: 800; letter-spacing: -.3px; }
.st-note-points { list-style: none; margin-top: 16px; display: grid; gap: 10px; }
.st-note-points li {
  font-size: 14px; color: var(--muted); padding-left: 18px; position: relative; line-height: 1.65;
}
.st-note-points li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 7px; height: 7px; border-radius: 2px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}
.pp-stage[data-stage="2"] .st-note-points li { animation: riseIn .5s ease both; }
.pp-stage[data-stage="2"] .st-note-points li:nth-child(2) { animation-delay: .16s; }
.pp-stage[data-stage="2"] .st-note-points li:nth-child(3) { animation-delay: .32s; }
@keyframes riseIn { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }

.st-3 { align-items: flex-start; gap: 18px; }
.st-cats { display: flex; flex-wrap: wrap; gap: 10px; }
.st-cat {
  font-size: 13px; font-weight: 700; padding: 8px 15px; border-radius: 999px;
  background: var(--bg-soft); color: #B9BDD0; border: 1px dashed var(--line);
  transition: all .35s ease;
}
.st-cat.is-picked {
  background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff;
  border-style: solid; border-color: transparent;
  box-shadow: 0 12px 26px -12px rgba(86, 92, 246, .6);
}
.pp-stage[data-stage="3"] .st-cat.is-picked { animation: popIn .45s cubic-bezier(.34, 1.56, .64, 1) both; }
@keyframes popIn { from { opacity: 0; transform: scale(.82); } to { opacity: 1; transform: none; } }
.st-cats-note { font-size: 13px; color: var(--muted); line-height: 1.72; }

.st-4 { align-items: stretch; gap: 12px; justify-content: center; }
.st-store { display: grid; gap: 9px; }
.st-store-row { display: flex; align-items: center; gap: 11px; }
.st-store-row em { font-size: 13px; color: var(--muted); font-style: normal; }
.st-store-bar {
  flex: 1; height: 9px; border-radius: 5px;
  background: linear-gradient(90deg, rgba(86, 92, 246, .5), rgba(139, 92, 246, .22));
}
.pp-stage[data-stage="4"] .st-store-row { animation: slideIn .5s ease both; }
.pp-stage[data-stage="4"] .st-store-row:nth-child(2) { animation-delay: .14s; }
.pp-stage[data-stage="4"] .st-store-row:nth-child(3) { animation-delay: .28s; }
@keyframes slideIn { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }
.st-store-done {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  font-family: var(--font-display); font-size: 13.5px; font-weight: 800; color: var(--teal);
  padding: 8px 15px; border-radius: 999px; background: rgba(18, 165, 148, .1);
}

.pp-stage-foot {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 15px 20px; border-top: 1px solid var(--line); background: var(--bg-soft);
}
.pp-stage-name { font-family: var(--font-display); font-size: 15px; font-weight: 800; }
.pp-stage-count { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ============================================================================
   03 三档引擎
   ============================================================================ */
.pp-tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 20px; }
.tier-card {
  position: relative; text-align: left; padding: 22px 20px;
  border-radius: 22px; border: 1.5px solid var(--line); background: #fff;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  display: flex; flex-direction: column; gap: 9px; overflow: hidden;
}
.tier-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0;
  background: linear-gradient(150deg, var(--primary), var(--accent));
  transition: opacity .3s ease; z-index: 0;
}
.tier-card > * { position: relative; z-index: 1; }
.tier-card:hover { transform: translateY(-4px); box-shadow: 0 22px 48px -24px rgba(86, 92, 246, .45); }
.tier-card[aria-selected="true"] { border-color: transparent; box-shadow: 0 26px 58px -26px rgba(86, 92, 246, .6); transform: translateY(-4px); }
.tier-card[aria-selected="true"]::after { opacity: 1; }
.tier-card[aria-selected="true"] .tier-name,
.tier-card[aria-selected="true"] .tier-level { color: #fff; }
.tier-card[aria-selected="true"] .tier-tagline,
.tier-card[aria-selected="true"] .tier-foot { color: rgba(255, 255, 255, .86); }
.tier-card[aria-selected="true"] .tier-icon { background: rgba(255, 255, 255, .2); color: #fff; }

.tier-icon {
  width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary-strong); transition: all .3s ease;
}
.tier-icon svg { width: 21px; height: 21px; }
.tier-level { font-family: var(--font-display); font-size: 11.5px; font-weight: 800; letter-spacing: .1em; color: var(--primary-strong); text-transform: uppercase; transition: color .3s ease; }
.tier-name { font-family: var(--font-display); font-size: 19px; font-weight: 800; letter-spacing: -.3px; transition: color .3s ease; }
.tier-tagline { font-size: 13.5px; color: var(--muted); line-height: 1.68; transition: color .3s ease; }
.tier-foot { font-size: 12px; font-weight: 700; color: var(--muted); margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); transition: color .3s ease, border-color .3s ease; }
.tier-card[aria-selected="true"] .tier-foot { border-top-color: rgba(255, 255, 255, .26); }

.pp-tier-panel {
  border-radius: 22px; border: 1px solid var(--line); background: #fff;
  padding: 26px 28px; box-shadow: var(--shadow-soft);
}
.tp-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.tp-badge {
  font-family: var(--font-display); font-size: 11.5px; font-weight: 800; letter-spacing: .08em;
  padding: 5px 12px; border-radius: 999px; text-transform: uppercase;
  background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff;
}
.tp-name { font-family: var(--font-display); font-size: 19px; font-weight: 800; letter-spacing: -.3px; }
.tp-foot { margin-left: auto; font-size: 12.5px; font-weight: 700; color: var(--muted); padding: 5px 12px; border-radius: 999px; background: var(--bg-soft); }
.tp-tagline { font-size: 15.5px; margin-bottom: 20px; }
.tp-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding-top: 19px; border-top: 1px solid var(--line); }
.tp-col h5 { font-family: var(--font-display); font-size: 11.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--primary-strong); margin-bottom: 7px; }
.tp-col p { font-size: 13.8px; color: var(--muted); line-height: 1.7; }
.tp-engine {
  margin-top: 18px; padding: 14px 16px; border-radius: 14px;
  background: var(--bg-soft); font-size: 13px; color: var(--ink);
  font-family: ui-monospace, "SF Mono", Menlo, monospace; line-height: 1.68;
}

.pp-honesty {
  display: flex; gap: 15px; align-items: flex-start; margin-top: 22px;
  padding: 21px 23px; border-radius: 20px;
  background: #FFF9EC; border: 1px solid rgba(214, 158, 46, .28);
}
.pp-honesty-icon { flex: none; color: #B7791F; }
.pp-honesty strong { font-family: var(--font-display); font-size: 15.5px; font-weight: 800; display: block; margin-bottom: 6px; color: #8A5A12; }
.pp-honesty p { font-size: 14.5px; color: #8A5A12; opacity: .9; }

/* ============================================================================
   04 对照矩阵
   ============================================================================ */
.pp-matrix-wrap { overflow-x: auto; border-radius: 22px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-soft); }
.pp-matrix { width: 100%; min-width: 660px; border-collapse: collapse; font-size: 14px; }
.pp-matrix th, .pp-matrix td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.pp-matrix tr:last-child td, .pp-matrix tr:last-child th { border-bottom: none; }
.pp-matrix thead th {
  font-family: var(--font-display); font-size: 13px; font-weight: 800;
  background: var(--bg-soft); position: sticky; top: 0; z-index: 2;
}
.pp-matrix thead th:not(:first-child) { text-align: center; }
.pp-matrix tbody th {
  font-family: var(--font-display); font-size: 13px; font-weight: 700;
  color: var(--muted); white-space: nowrap; background: #fff;
}
.pp-matrix td { text-align: center; color: var(--ink); transition: background .3s ease; }
/* 当前选中的那一档整列高亮 —— 与上面卡片的选择联动 */
.pp-matrix[data-active-col="1"] td:nth-child(2),
.pp-matrix[data-active-col="2"] td:nth-child(3),
.pp-matrix[data-active-col="3"] td:nth-child(4) { background: rgba(86, 92, 246, .07); font-weight: 600; }
.pp-matrix[data-active-col="1"] thead th:nth-child(2),
.pp-matrix[data-active-col="2"] thead th:nth-child(3),
.pp-matrix[data-active-col="3"] thead th:nth-child(4) { color: var(--primary-strong); }

/* ============================================================================
   05 这台设备
   ============================================================================ */
.pp-device { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
.pp-device-controls { display: grid; gap: 22px; }
.pp-device-desc { font-size: 14.5px; color: var(--muted); line-height: 1.78; }
.pp-pick { display: grid; gap: 10px; }
.pp-pick-label { font-family: var(--font-display); font-size: 12px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.pp-seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); flex-wrap: wrap; }
.pp-seg button {
  border: none; background: transparent; padding: 9px 16px; border-radius: 999px;
  font-size: 13.5px; font-weight: 700; font-family: var(--font-display); color: var(--muted);
  transition: all .22s ease;
}
.pp-seg button:hover { color: var(--primary-strong); }
.pp-seg button[aria-checked="true"] {
  background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff;
  box-shadow: 0 8px 20px -10px rgba(86, 92, 246, .7);
}

.pp-device-result {
  border-radius: 22px; border: 1px solid var(--line); background: #fff;
  padding: 22px 24px; box-shadow: var(--shadow-card);
}
.pp-result-head { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-size: 12px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.pp-result-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 3px rgba(86, 92, 246, .2); }

.res-row { padding: 14px 0; border-bottom: 1px solid var(--line); }
.res-row:last-child { border-bottom: none; padding-bottom: 4px; }
.res-top { display: flex; align-items: center; gap: 11px; }
.res-role-icon {
  width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary-strong); flex: none;
}
.res-role-icon svg { width: 16px; height: 16px; }
.res-role { font-family: var(--font-display); font-size: 14.5px; font-weight: 700; }
.res-badge {
  margin-left: auto; font-family: var(--font-display); font-size: 11.5px; font-weight: 800;
  padding: 6px 13px; border-radius: 999px; white-space: nowrap;
  background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff;
}
.res-badge.is-fallback { background: var(--bg-soft); color: var(--muted); }
.res-engine { font-size: 12.5px; color: var(--muted); margin-top: 7px; padding-left: 43px; }
.res-why { font-size: 12.5px; color: #B7791F; margin-top: 6px; padding-left: 43px; }
.res-why b { font-weight: 800; }
.res-hint {
  margin-top: 12px; padding: 11px 14px; border-radius: 13px;
  background: #FFF9EC; border: 1px solid rgba(214, 158, 46, .28);
  font-size: 12.5px; color: #8A5A12; line-height: 1.65;
}
.pp-result-note { font-size: 12.5px; color: var(--muted); margin-top: 16px; padding-top: 15px; border-top: 1px dashed var(--line); line-height: 1.7; }

.pp-callout {
  display: flex; gap: 13px; align-items: flex-start; margin-top: 26px;
  padding: 19px 22px; border-radius: 18px; background: var(--primary-soft);
}
.pp-callout-icon { flex: none; color: var(--primary-strong); position: relative; top: 2px; }
.pp-callout p { font-size: 14px; color: var(--primary-strong); line-height: 1.72; }

/* ============================================================================
   06 网络边界
   ============================================================================ */
.pp-boundary {
  display: grid; grid-template-columns: 1fr 190px 1fr; gap: 0; align-items: stretch;
  border-radius: 24px; border: 1px solid var(--line); background: #fff;
  padding: 26px; box-shadow: var(--shadow-soft);
}
.pp-bd-label {
  display: block; font-family: var(--font-display); font-size: 11.5px; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; text-align: center;
}
.pp-bd-steps { display: grid; gap: 8px; }
.pp-bd-steps span {
  display: block; padding: 10px 14px; border-radius: 12px; text-align: center;
  font-size: 13.5px; font-weight: 600; background: var(--bg-soft); color: var(--ink);
  border: 1px dashed rgba(86, 92, 246, .3);
}
.pp-bd-outside { opacity: .42; transition: opacity .35s ease; }
.pp-bd-targets { display: grid; gap: 8px; }
.pp-bd-targets span {
  display: block; padding: 10px 14px; border-radius: 12px; text-align: center;
  font-size: 13.5px; font-weight: 600; background: var(--bg-soft); color: var(--muted);
  border: 1px dashed var(--line); transition: all .35s ease;
}

.pp-bd-gate { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 13px; padding: 0 16px; }
.pp-bd-line { position: relative; width: 100%; height: 2px; background: var(--line); border-radius: 2px; }
.pp-bd-line::before, .pp-bd-line::after { content: ""; position: absolute; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--line); }
.pp-bd-line::before { left: -1px; }
.pp-bd-line::after { right: -1px; }
.pp-bd-packet {
  position: absolute; top: 50%; left: 0; width: 9px; height: 9px; margin-top: -4.5px;
  border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent));
  opacity: 0;
}
.pp-bd-cut {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-size: 19px; font-weight: 800; color: #E4483C; line-height: 1;
  background: #fff; padding: 0 6px;
}
/* 开 / 关两态：这是整块的核心信息，状态必须一眼可辨 */
.pp-boundary[data-net="off"] .pp-bd-line { background: repeating-linear-gradient(90deg, #E4483C 0 7px, transparent 7px 14px); }
.pp-boundary[data-net="off"] .pp-bd-line::before,
.pp-boundary[data-net="off"] .pp-bd-line::after { background: #E4483C; }
.pp-boundary[data-net="on"] .pp-bd-cut { display: none; }
.pp-boundary[data-net="on"] .pp-bd-line { background: linear-gradient(90deg, rgba(86, 92, 246, .3), var(--teal)); }
.pp-boundary[data-net="on"] .pp-bd-line::after { background: var(--teal); }
.pp-boundary[data-net="on"] .pp-bd-packet { opacity: 1; animation: packet 1.5s ease-in-out infinite; }
.pp-boundary[data-net="on"] .pp-bd-outside { opacity: 1; }
.pp-boundary[data-net="on"] .pp-bd-targets > div { border-style: solid; border-color: rgba(18, 165, 148, .4); background: #fff; }
.pp-boundary[data-net="on"] .pp-bd-targets dd { color: var(--ink); }
@keyframes packet {
  0% { left: 0; opacity: 0; }
  22% { opacity: 1; }
  78% { opacity: 1; }
  100% { left: calc(100% - 9px); opacity: 0; }
}

.pp-switch {
  position: relative; width: 58px; height: 32px; border-radius: 999px; border: none;
  background: var(--line); transition: background .28s ease; flex: none;
}
.pp-switch-knob {
  position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%;
  background: #fff; box-shadow: 0 3px 8px rgba(27, 30, 51, .25);
  transition: transform .28s cubic-bezier(.4, 0, .2, 1);
}
.pp-boundary[data-net="on"] .pp-switch { background: linear-gradient(135deg, var(--primary), var(--accent)); }
.pp-boundary[data-net="on"] .pp-switch-knob { transform: translateX(26px); }
.pp-switch-label { font-size: 12px; font-weight: 700; color: var(--muted); text-align: center; line-height: 1.45; }
.pp-switch-state {
  font-family: var(--font-display); font-size: 11.5px; font-weight: 800; letter-spacing: .06em;
  padding: 4px 11px; border-radius: 999px; background: var(--bg-soft); color: var(--muted);
}
.pp-boundary[data-net="on"] .pp-switch-state { background: rgba(18, 165, 148, .12); color: #0E8C7C; }
.pp-boundary[data-net="off"] .pp-switch-state { background: rgba(228, 72, 60, .1); color: #C0392B; }

.pp-bd-body {
  margin-top: 20px; font-size: 15px; color: var(--ink); padding: 16px 20px;
  border-radius: 16px; background: var(--bg-soft); border-left: 3px solid var(--primary);
  line-height: 1.75;
}
.pp-boundary[data-net="off"] + .pp-bd-body { border-left-color: #E4483C; }

/* ============================================================================
   07 常见问题
   ============================================================================ */
.pp-faq { display: grid; gap: 11px; }
.pp-faq details {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 0 22px; box-shadow: var(--shadow-soft);
  transition: border-color .25s ease, box-shadow .25s ease;
}
.pp-faq details[open] { border-color: rgba(86, 92, 246, .35); box-shadow: 0 18px 40px -24px rgba(86, 92, 246, .45); }
.pp-faq summary {
  list-style: none; cursor: pointer; padding: 19px 34px 19px 0; position: relative;
  font-family: var(--font-display); font-size: 16px; font-weight: 700; letter-spacing: -.2px;
  transition: color .2s ease;
}
.pp-faq summary::-webkit-details-marker { display: none; }
.pp-faq summary:hover { color: var(--primary-strong); }
.pp-faq summary::after {
  content: ""; position: absolute; right: 2px; top: 50%; width: 11px; height: 11px;
  margin-top: -7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform .28s ease;
}
.pp-faq details[open] summary::after { transform: rotate(-135deg); }
.pp-faq details[open] summary { color: var(--primary-strong); }
.pp-faq p { font-size: 14.5px; color: var(--muted); line-height: 1.8; padding: 0 30px 20px 0; }
.pp-faq details[open] p { animation: riseIn .35s ease both; }

/* ============================================================================
   CTA
   ============================================================================ */
.pp-cta { padding: 40px 0 100px; }
.pp-cta-card {
  position: relative; overflow: hidden; text-align: center;
  border-radius: 30px; padding: 66px 32px;
  background: linear-gradient(150deg, #2B2F5C, #14162E);
  box-shadow: 0 40px 80px -40px rgba(27, 30, 51, .7);
}
.pp-cta-glow {
  position: absolute; inset: -40% -10% auto -10%; height: 460px; pointer-events: none;
  background:
    radial-gradient(40% 50% at 22% 20%, rgba(86, 92, 246, .55), transparent 70%),
    radial-gradient(40% 50% at 78% 8%, rgba(139, 92, 246, .5), transparent 70%);
}
.pp-cta-card h2 {
  position: relative; font-family: var(--font-display); color: #fff;
  font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; letter-spacing: -.8px;
}
.pp-cta-card p { position: relative; color: rgba(255, 255, 255, .74); font-size: 16px; margin-top: 12px; }
.pp-cta-actions { position: relative; display: flex; gap: 13px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.pp-cta-card .btn-ghost { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .26); }
.pp-cta-card .btn-ghost:hover { background: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .5); color: #fff; }

/* ============================================================================
   响应式
   ============================================================================ */
@media (max-width: 1020px) {
  .pp-hero-inner { grid-template-columns: 1fr; gap: 46px; }
  .pp-rig { order: -1; }
  .pp-flow { grid-template-columns: 1fr; gap: 30px; }
  .pp-flow-sticky { position: static; }
  /* 单列时舞台在上、步骤在下，否则读者要先滚过五段文字才看得到舞台 */
  .pp-flow-sticky { order: -1; }
  .pp-device { grid-template-columns: 1fr; }
  .pp-boundary { grid-template-columns: 1fr; gap: 22px; }
  .pp-bd-gate { flex-direction: row; justify-content: flex-start; padding: 0; }
  .pp-bd-line { flex: 1; }
  .tp-cols { grid-template-columns: 1fr; gap: 14px; }
  .pp-ledger-rows { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .pp-pipe { grid-template-columns: 1fr; }
  .pipe-arrow { padding: 12px 0; }
  .pipe-arrow svg { transform: rotate(90deg); }
  .pp-tier-grid { grid-template-columns: 1fr; }
  .pp-sec { padding: 64px 0; }
}

@media (max-width: 640px) {
  .pp-hero { padding-top: 40px; }
  .pp-title { letter-spacing: -1px; }
  .pp-spec-grid { grid-template-columns: 1fr; }
  .pp-sec-head { gap: 14px; }
  .pp-sec-head h2 { font-size: 24px; }
  .pp-hero-actions .btn { flex: 1 1 100%; }
  .rig-screen { min-height: 430px; }
  .pp-stage-canvas { min-height: 250px; }
  .pp-tier-panel { padding: 20px 18px; }
  .pp-device-result { padding: 18px 16px; }
  .pp-boundary { padding: 18px; }
  .pp-cta-card { padding: 48px 20px; }
  .pp-faq details { padding: 0 16px; }
}

/* ============================================================================
   降级：尊重系统「减弱动态效果」
   所有循环动画与位移一律停住，但状态切换仍然可见（靠颜色与可见性，不靠运动）。
   ============================================================================ */
@media (prefers-reduced-motion: reduce) {
  .pp-hero-glow, .pp-cta-glow { display: none; }
  .rig-live, .wave-bars i, .st-wave i, .pp-bd-packet, .rig-play-icon, .st-caret { animation: none !important; }
  .pp-rig[data-stage="0"] .wave-bars i { transform: scaleY(.62); }
  .pp-stage[data-stage="0"] .st-wave i { transform: scaleY(.62); }
  .st-mono, .rig-raw-text { animation: none !important; }
  .pp-stage[data-stage="2"] .st-note-points li,
  .pp-stage[data-stage="4"] .st-store-row,
  .pp-faq details[open] p { animation: none !important; opacity: 1; transform: none; }
  .pp-boundary[data-net="on"] .pp-bd-packet { opacity: 1; left: 50%; }
  .fstep.is-active { transform: none; }
  .tier-card:hover, .pipe-node:hover, .btn:hover { transform: none; }
}
