:root {
  color-scheme: dark;
  --bg: #07080c;
  --bg2: #10131a;
  --panel: rgba(255, 255, 255, .075);
  --panel2: rgba(255, 255, 255, .11);
  --line: rgba(255, 113, 77, .38);
  --line2: rgba(143, 226, 255, .26);
  --text: #fff6ef;
  --muted: #b9b5b2;
  --ember: #ff3e2f;
  --ember2: #ff8a37;
  --amber: #ffd166;
  --cyan: #73e7ff;
  --shadow: 0 24px 90px rgba(0, 0, 0, .46);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(255, 62, 47, .08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(145deg, #08090e 0%, #111016 48%, #250b09 100%);
  background-size: 72px 72px, 72px 72px, auto;
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 70px;
  padding: 14px clamp(18px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  background: rgba(8, 9, 14, .78);
  border-bottom: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(16px);
}
.brand-mark { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: 0; }
.brand-mark span {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--ember), var(--amber));
  box-shadow: 0 0 24px rgba(255, 74, 48, .5);
}
.site-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.site-nav a,
.nav-toggle,
.primary-action,
.ghost-action,
.inline-link,
.fallback-link {
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  color: var(--text);
  padding: 10px 13px;
  border-radius: 8px;
  font-weight: 700;
}
.site-nav a:hover,
.inline-link:hover,
.ghost-action:hover { border-color: rgba(255, 138, 55, .65); color: #fff; }
.nav-toggle { display: none; cursor: pointer; }
main { overflow: hidden; }
.ember-stage {
  position: relative;
  min-height: calc(100vh - 70px);
  padding: clamp(40px, 6vw, 82px) clamp(18px, 4vw, 54px) 40px;
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(360px, 1fr);
  gap: clamp(24px, 4vw, 54px);
  align-items: center;
}
.ember-stage::before,
.inner-ember::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(110deg, rgba(255, 62, 47, .2), transparent 42%),
    linear-gradient(270deg, rgba(115, 231, 255, .11), transparent 30%);
}
.stage-copy,
.stage-visual,
.heat-strip,
.inner-ember,
.offer-ticket,
.ember-device,
.signal-lane,
.guide-card,
.answer-item,
.task-island,
.cycle-board article,
.contact-desk article,
.plain-prose,
.save-address-grid article,
.fallback-link,
.first-open,
.time-rail article,
.chapter-nav,
.article-body {
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255,255,255,.09), rgba(255,255,255,.04));
  box-shadow: var(--shadow);
}
.stage-copy {
  position: relative;
  z-index: 1;
  padding: clamp(26px, 4vw, 44px);
  border-left: 4px solid var(--ember);
}
.flare-label {
  margin: 0 0 12px;
  color: var(--amber);
  font-size: .82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 18px;
  font-size: clamp(2.35rem, 5.2vw, 5.85rem);
  line-height: .98;
  letter-spacing: 0;
}
h2 { font-size: clamp(1.55rem, 2.7vw, 3rem); line-height: 1.08; letter-spacing: 0; }
h3 { line-height: 1.18; letter-spacing: 0; }
.lead { color: #f0d8ce; font-size: clamp(1rem, 1.55vw, 1.23rem); max-width: 760px; }
.stage-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.primary-action {
  display: inline-flex;
  background: linear-gradient(135deg, var(--ember), var(--ember2));
  border-color: rgba(255, 188, 102, .7);
  color: #170504;
}
.primary-action.small { padding: 10px 14px; }
.ghost-action { display: inline-flex; }
.stage-visual {
  position: relative;
  z-index: 1;
  padding: 10px;
  overflow: hidden;
  transform: perspective(1200px) rotateY(-5deg);
}
.stage-visual img { width: 100%; border-radius: 6px; aspect-ratio: 16/9; object-fit: cover; }
.heat-strip {
  grid-column: 1 / -1;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  padding: 8px;
  background: rgba(255,255,255,.055);
}
.heat-strip span {
  padding: 16px 14px;
  border-left: 3px solid var(--ember);
  background: rgba(0,0,0,.32);
  color: #ffe4d8;
  font-weight: 800;
}
section { position: relative; }
.offer-deck,
.client-matrix,
.route-heat,
.guide-board,
.help-islands,
.cycle-board,
.task-islands,
.contact-desk,
.save-address-grid,
.first-open,
.time-rail,
.article-page {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto clamp(46px, 7vw, 88px);
}
.section-copy,
.section-title-row {
  margin-bottom: 22px;
}
.section-title-row { display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.section-copy p,
.section-title-row p,
.offer-ticket p,
.ember-device p,
.signal-lane p,
.guide-card p,
.answer-item p,
.task-island p,
.cycle-board p,
.contact-desk p,
.plain-prose p,
.save-address-grid p,
.article-body p { color: var(--muted); }
.inline-link { align-self: center; white-space: nowrap; }
.ticket-stack { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.offer-ticket {
  padding: 18px;
  min-height: 252px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 3px solid var(--ember);
}
.ticket-tag { color: var(--cyan); font-size: .9rem; font-weight: 900; }
.offer-ticket small { margin-top: auto; color: var(--amber); font-weight: 800; }
.device-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ember-device { padding: 18px; min-height: 230px; }
.ember-device div { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ember-device span {
  padding: 6px 9px;
  border-radius: 8px;
  background: rgba(255, 62, 47, .16);
  border: 1px solid rgba(255, 138, 55, .28);
  font-size: .85rem;
}
.signal-lanes { display: grid; gap: 10px; }
.signal-lane {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) minmax(260px, .85fr);
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-left: 4px solid var(--ember2);
}
.signal-lane strong { color: #fff; }
.signal-lane small { color: var(--cyan); }
.guide-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.guide-board.full .guide-list,
.guide-board.compact .guide-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.guide-card { padding: 18px; }
.guide-card time,
.guide-card span {
  display: inline-block;
  margin: 0 8px 12px 0;
  color: var(--amber);
  font-size: .86rem;
  font-weight: 800;
}
.guide-card a { color: #fff; }
.answer-rail { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.help-islands.solo .answer-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.answer-item { padding: 16px; }
.answer-item summary { cursor: pointer; font-weight: 900; color: #fff; }
.answer-item p { margin: 12px 0 0; }
.inner-ember {
  width: min(1180px, calc(100% - 36px));
  margin: 34px auto 34px;
  padding: clamp(28px, 5vw, 54px);
  overflow: hidden;
  border-left: 4px solid var(--ember);
}
.inner-ember > * { position: relative; z-index: 1; }
.inner-ember h1 { font-size: clamp(2.1rem, 4vw, 4.8rem); }
.cycle-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cycle-board article,
.contact-desk article,
.task-island,
.plain-prose,
.save-address-grid article { padding: 20px; }
.first-open { padding: 22px; }
.first-open-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.first-open-grid article { border-left: 3px solid var(--amber); padding: 10px 14px; background: rgba(0,0,0,.22); border-radius: 8px; }
.task-islands { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.contact-note {
  width: min(820px, calc(100% - 36px));
  margin: 0 auto 78px;
  border: 1px solid rgba(255,255,255,.14);
  border-left: 4px solid var(--ember);
  border-radius: 8px;
  padding: 22px;
  background: rgba(255,255,255,.07);
}
.time-rail { display: grid; gap: 12px; }
.time-rail article { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; padding: 16px; }
.time-rail time { color: var(--amber); font-weight: 900; }
.article-head {
  width: min(920px, calc(100% - 36px));
  margin: 34px auto;
  padding: 28px 0 10px;
}
.article-head h1 { font-size: clamp(2rem, 4.3vw, 4.7rem); }
.article-head time { color: var(--amber); font-weight: 800; }
.article-shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 18px; align-items: start; }
.chapter-nav { position: sticky; top: 92px; padding: 14px; display: grid; gap: 8px; }
.chapter-nav a { padding: 8px 10px; border-left: 2px solid var(--ember); color: var(--muted); }
.article-body { padding: clamp(22px, 4vw, 42px); }
.article-body section { margin-bottom: 28px; }
.related-links { display: flex; flex-wrap: wrap; gap: 10px; border-top: 1px solid rgba(255,255,255,.13); padding-top: 18px; }
.related-links span { color: var(--amber); font-weight: 900; }
.related-links a { border: 1px solid rgba(255,255,255,.16); padding: 8px 10px; border-radius: 8px; }
.plain-prose { width: min(920px, calc(100% - 36px)); margin: 0 auto 78px; }
.about-flow p:first-child { color: #f2d8cc; font-size: 1.08rem; }
.contact-desk { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.save-address-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.fallback-link { display: block; text-align: center; }
.site-footer {
  width: min(1180px, calc(100% - 36px));
  margin: 36px auto 24px;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.14);
  border-top: 3px solid var(--ember);
  border-radius: 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  background: rgba(0,0,0,.28);
}
.footer-brand p { max-width: 620px; color: var(--muted); margin: 6px 0 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.site-footer a { color: #ffd7c9; font-weight: 800; }
@media (max-width: 980px) {
  .ember-stage { grid-template-columns: 1fr; min-height: auto; }
  .stage-visual { transform: none; }
  .ticket-stack, .device-grid, .guide-list, .guide-board.full .guide-list, .guide-board.compact .guide-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .answer-rail, .help-islands.solo .answer-rail { grid-template-columns: 1fr; }
  .cycle-board, .contact-desk { grid-template-columns: 1fr; }
  .task-islands { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .signal-lane { grid-template-columns: 1fr; }
  .article-shell { grid-template-columns: 1fr; }
  .chapter-nav { position: static; }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer nav { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .site-header { align-items: flex-start; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    left: 18px;
    right: 18px;
    top: 66px;
    padding: 12px;
    background: rgba(9, 10, 15, .96);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 8px;
  }
  .site-nav.is-open { display: grid; grid-template-columns: 1fr; }
  .ember-stage { padding-top: 30px; }
  h1 { font-size: clamp(2.1rem, 13vw, 3.5rem); }
  .heat-strip, .ticket-stack, .device-grid, .guide-list, .guide-board.full .guide-list, .guide-board.compact .guide-list, .task-islands, .save-address-grid, .first-open-grid { grid-template-columns: 1fr; }
  .section-title-row { align-items: flex-start; flex-direction: column; }
  .time-rail article { grid-template-columns: 1fr; }
  .stage-copy, .inner-ember { padding: 22px; }
}
