:root {
  --paper: #fbfafc;
  --paper-warm: #f5f0f8;
  --ink: #17131c;
  --muted: #6f6674;
  --line: rgba(52, 31, 61, .14);
  --purple: #6b238e;
  --purple-bright: #8d35ba;
  --purple-soft: #f1e8f6;
  --lime: #c9f35a;
  --white: #fff;
  --radius: 30px;
  --shadow: 0 26px 80px rgba(53, 27, 65, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 84% 7%, rgba(178, 116, 210, .18), transparent 24rem),
    radial-gradient(circle at 8% 42%, rgba(201, 243, 90, .12), transparent 19rem),
    var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 1000; padding: 10px 14px; color: white; border-radius: 9px; background: var(--ink); transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.shell { width: min(1160px, calc(100% - 48px)); margin: 0 auto; }

.guide-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 10px max(24px, calc((100vw - 1160px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(251, 250, 252, .88);
  backdrop-filter: blur(20px) saturate(140%);
}
.guide-identity { display: flex; align-items: center; min-width: 0; gap: 12px; }
.guide-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 42px;
  height: 42px;
  overflow: hidden;
  color: white;
  border-radius: 13px;
  background: linear-gradient(145deg, var(--purple-bright), var(--purple));
  box-shadow: 0 10px 24px rgba(107, 35, 142, .18);
  font-size: 17px;
  font-weight: 900;
}
.guide-icon.caps { color: var(--ink); background: var(--lime); font-size: 11px; }
.guide-identity span { display: grid; gap: 2px; min-width: 0; }
.guide-identity strong { overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.guide-identity small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.return-anchor {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  color: white;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  box-shadow: 0 12px 28px rgba(23, 19, 28, .14);
  font-size: 13px;
  font-weight: 820;
  text-decoration: none;
}
.return-anchor:hover { border-color: var(--purple); background: var(--purple); }

.guide-hero { min-height: 720px; padding: 96px 0 88px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr); align-items: center; gap: clamp(48px, 8vw, 110px); }
.hero-grid.real-hero-grid { grid-template-columns: minmax(330px, .72fr) minmax(560px, 1.28fr); gap: clamp(34px, 5vw, 72px); }
.eyebrow { margin: 0 0 18px; color: var(--purple); font-size: 11px; font-weight: 880; letter-spacing: .13em; text-transform: uppercase; }
.guide-hero h1, .guide-section h2, .closing h2 {
  margin: 0;
  font-family: "Songti SC", STSong, serif;
  font-weight: 760;
  letter-spacing: -.055em;
}
.guide-hero h1 { max-width: 680px; font-size: clamp(58px, 7.2vw, 100px); line-height: .97; }
.guide-hero h1 em { color: var(--purple); font-style: normal; }
.hero-lead { max-width: 620px; margin: 30px 0 0; color: #514953; font-size: clamp(18px, 2vw, 22px); line-height: 1.8; }
.hero-outcome { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.hero-outcome span { padding: 8px 12px; color: var(--purple); border: 1px solid rgba(107,35,142,.15); border-radius: 999px; background: var(--purple-soft); font-size: 11px; font-weight: 760; }
.hero-stage {
  position: relative;
  min-height: 470px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid rgba(107, 35, 142, .13);
  border-radius: 38px;
  background: rgba(255,255,255,.82);
  box-shadow: var(--shadow);
}
.hero-stage::before { position: absolute; top: -120px; right: -90px; width: 310px; height: 310px; border-radius: 50%; background: rgba(107,35,142,.10); content: ""; }
.product-shot-stage { display: grid; min-height: 0; margin: 0; padding: 16px; gap: 12px; }
.product-shot-stage::before { top: -150px; right: -120px; }
.product-shot-stage img { position: relative; z-index: 1; display: block; width: 100%; height: auto; border: 1px solid rgba(52,31,61,.12); border-radius: 23px; background: white; box-shadow: 0 16px 36px rgba(41,25,48,.08); }
.product-shot-stage figcaption { position: relative; z-index: 1; display: grid; gap: 4px; padding: 3px 7px 1px; }
.product-shot-stage figcaption strong { color: var(--purple); font-size: 11px; }
.product-shot-stage figcaption span { color: var(--muted); font-size: 10px; line-height: 1.6; }
.demo-window { position: relative; z-index: 1; display: grid; min-height: 414px; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: white; box-shadow: 0 18px 44px rgba(41,25,48,.08); }
.demo-titlebar { display: flex; align-items: center; justify-content: space-between; min-height: 54px; padding: 0 18px; border-bottom: 1px solid var(--line); background: #fbf9fc; }
.demo-titlebar span { color: var(--muted); font-size: 11px; font-weight: 760; }
.demo-dots { letter-spacing: 4px; }
.demo-body { display: grid; align-content: center; gap: 14px; padding: 28px; }
.demo-card { padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(145deg, white, #faf7fc); }
.demo-card.active { color: white; border-color: var(--purple); background: var(--purple); }
.demo-label { display: block; margin-bottom: 7px; color: var(--muted); font-size: 10px; font-weight: 820; letter-spacing: .08em; }
.demo-card.active .demo-label { color: rgba(255,255,255,.64); }
.demo-card strong { display: block; font-size: clamp(18px, 2.1vw, 25px); line-height: 1.28; }
.demo-card p { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.demo-card.active p { color: rgba(255,255,255,.72); }
.demo-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.demo-arrow { color: var(--purple); font-size: 20px; font-weight: 900; }
.demo-search { display: flex; align-items: center; min-height: 58px; padding: 0 18px; border: 2px solid rgba(107,35,142,.28); border-radius: 16px; box-shadow: 0 0 0 5px rgba(107,35,142,.05); font-size: 15px; font-weight: 720; }
.demo-search::before { margin-right: 10px; color: var(--purple); content: "⌕"; }
.demo-result { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 15px; background: var(--paper-warm); }
.demo-result span { color: var(--muted); font-size: 11px; }
.key { display: inline-flex; align-items: center; justify-content: center; min-width: 52px; min-height: 42px; padding: 0 13px; color: var(--ink); border: 1px solid rgba(23,19,28,.18); border-bottom-width: 4px; border-radius: 12px; background: white; font-size: 12px; font-weight: 850; }
.key.caps { border-color: #99bc34; background: var(--lime); }
.meter { height: 9px; overflow: hidden; border-radius: 999px; background: #e9e3ed; }
.meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--purple), var(--purple-bright)); }
.status-chip { display: inline-flex; align-items: center; gap: 7px; width: max-content; padding: 7px 10px; color: #34520a; border-radius: 999px; background: rgba(201,243,90,.72); font-size: 10px; font-weight: 850; }
.status-chip::before { width: 7px; height: 7px; border-radius: 50%; background: #5e8b15; content: ""; }

.guide-section { padding: 104px 0; border-top: 1px solid var(--line); }
.guide-section.alt { background: rgba(244, 239, 247, .56); }
.section-heading { display: grid; grid-template-columns: minmax(0, .82fr) minmax(320px, 1fr); gap: 70px; align-items: end; margin-bottom: 48px; }
.guide-section h2, .closing h2 { font-size: clamp(45px, 5.5vw, 76px); line-height: 1.04; }
.section-intro { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.85; }
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.problem-card { min-height: 224px; padding: 27px; border: 1px solid var(--line); border-radius: 24px; background: rgba(255,255,255,.76); }
.problem-card span { color: var(--purple); font-size: 11px; font-weight: 880; }
.problem-card h3 { margin: 50px 0 10px; font-size: 22px; letter-spacing: -.03em; }
.problem-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.problem-card.result { color: white; border-color: var(--ink); background: var(--ink); }
.problem-card.result span { color: var(--lime); }
.problem-card.result p { color: rgba(255,255,255,.68); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; counter-reset: guide-step; }
.step { position: relative; min-height: 240px; padding: 27px; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: white; counter-increment: guide-step; }
.step::before { display: grid; place-items: center; width: 35px; height: 35px; color: white; border-radius: 50%; background: var(--purple); content: counter(guide-step, decimal-leading-zero); font-size: 10px; font-weight: 850; }
.step h3 { margin: 45px 0 10px; font-size: 19px; }
.step p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.72; }
.step:first-child { background: var(--lime); }
.step:first-child::before { color: var(--ink); background: white; }
.value-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 16px; }
.value-main, .boundary-card { padding: clamp(30px, 5vw, 58px); border-radius: var(--radius); }
.value-main { color: white; background: linear-gradient(145deg, #211824, var(--ink)); box-shadow: var(--shadow); }
.value-main .eyebrow { color: var(--lime); }
.value-main h3 { max-width: 720px; margin: 0; font-family: "Songti SC", STSong, serif; font-size: clamp(38px, 5vw, 64px); line-height: 1.08; letter-spacing: -.05em; }
.value-main p { max-width: 700px; margin: 26px 0 0; color: rgba(255,255,255,.7); font-size: 16px; line-height: 1.85; }
.boundary-card { border: 1px solid var(--line); background: white; }
.boundary-card h3 { margin: 0 0 24px; font-size: 23px; }
.boundary-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.boundary-list li { position: relative; padding-left: 24px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.boundary-list li::before { position: absolute; top: .55em; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(201,243,90,.22); content: ""; }
.shortcut-strip { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-top: 18px; padding: 24px 28px; border: 1px solid rgba(107,35,142,.14); border-radius: 21px; background: var(--purple-soft); }
.shortcut-strip strong { font-size: 16px; }
.shortcut-strip p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.shortcut-keys { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 7px; }
.shortcut-keys i { color: var(--purple); font-style: normal; font-weight: 900; }
.shortcut-keys .caps-keymark { display: inline-flex; flex: 0 0 auto; width: 62px; height: 42px; filter: drop-shadow(0 5px 8px rgba(52, 81, 10, .16)); }
.shortcut-keys .caps-keymark img { display: block; width: 100%; height: 100%; object-fit: contain; }

.more-guides { padding: 86px 0 94px; border-top: 1px solid var(--line); }
.more-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.more-heading h2 { margin: 0; font-family: "Songti SC", STSong, serif; font-size: clamp(36px, 4vw, 54px); letter-spacing: -.045em; }
.more-heading p { max-width: 420px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.guide-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.guide-links a { display: grid; min-height: 148px; align-content: end; padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: white; text-decoration: none; transition: transform .18s ease, border-color .18s ease; }
.guide-links a:hover { border-color: var(--purple); transform: translateY(-3px); }
.guide-links strong { font-size: 18px; }
.guide-links span { margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.55; }

.closing { padding: 100px 0; color: white; background: var(--purple); }
.closing .shell { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 40px; }
.closing .eyebrow { color: var(--lime); }
.closing p:not(.eyebrow) { max-width: 660px; margin: 24px 0 0; color: rgba(255,255,255,.68); line-height: 1.8; }
.closing .return-anchor { color: var(--ink); border-color: var(--lime); background: var(--lime); box-shadow: none; }

@media (prefers-reduced-motion: no-preference) {
  .hero-stage { animation: rise .75s cubic-bezier(.2,.72,.2,1) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(22px); } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

@media (max-width: 860px) {
  .hero-grid, .hero-grid.real-hero-grid, .section-heading, .value-grid { grid-template-columns: 1fr; }
  .guide-hero { min-height: auto; padding-top: 72px; }
  .hero-grid { gap: 46px; }
  .hero-stage { min-height: 0; }
  .problem-grid { grid-template-columns: 1fr 1fr; }
  .problem-card.result { grid-column: 1 / -1; }
  .steps { grid-template-columns: 1fr 1fr; }
  .guide-links { grid-template-columns: 1fr; }
  .guide-links a { min-height: 112px; }
  .closing .shell { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 560px) {
  .shell { width: min(100% - 30px, 1160px); }
  .guide-header { min-height: 64px; padding: 7px 10px 7px 15px; }
  .guide-identity small { max-width: 130px; }
  .guide-icon { width: 40px; height: 40px; }
  .return-anchor { min-height: 46px; padding-inline: 14px; font-size: 12px; }
  .guide-hero { padding: 58px 0 66px; }
  .guide-hero h1 { font-size: clamp(51px, 16vw, 72px); }
  .hero-lead { font-size: 16px; }
  .hero-stage { padding: 12px; border-radius: 26px; }
  .demo-window { min-height: 370px; border-radius: 19px; }
  .demo-body { padding: 18px; }
  .demo-row { grid-template-columns: 1fr; }
  .demo-arrow { transform: rotate(90deg); text-align: center; }
  .guide-section { padding: 74px 0; }
  .section-heading { gap: 22px; margin-bottom: 30px; }
  .guide-section h2, .closing h2 { font-size: 44px; }
  .problem-grid, .steps { grid-template-columns: 1fr; }
  .problem-card.result { grid-column: auto; }
  .problem-card { min-height: 190px; }
  .step { min-height: 205px; }
  .shortcut-strip { align-items: flex-start; flex-direction: column; }
  .shortcut-keys { justify-content: flex-start; }
  .more-heading { align-items: flex-start; flex-direction: column; }
  .closing { padding: 76px 0; }
}
