:root {
  --ink:#182439; --muted:#536274; --paper:#f6f7fa; --line:#dce3eb; --navy:#101827;
  --teal:#147465; --mint:#78f2ce; --indigo:#afadff; color-scheme:light;
  font-family:Inter,"Microsoft YaHei UI","PingFang SC","Noto Sans SC",sans-serif;
}
* {box-sizing:border-box}
html {scroll-behavior:smooth}
body {margin:0;background:var(--paper);color:var(--ink);font-size:15px;line-height:1.66}
a {color:var(--teal);text-decoration:none;font-weight:750}
a:hover {text-decoration:underline;text-underline-offset:.22em}
:focus-visible {outline:3px solid #30bba3;outline-offset:4px}
button,select,input {font:inherit}
button {border:1px solid #b2d6cf;background:#edf8f5;color:#105d50;padding:6px 11px;border-radius:7px;cursor:pointer;font-weight:720}
h1,h2,h3,h4,p,dl,dd {margin:0}
h1,h2,h3,h4 {line-height:1.25}
img {display:block;max-width:100%}
.wrap {width:min(1240px,calc(100% - 88px));margin-inline:auto}
.skip {position:fixed;left:1rem;top:-5rem;background:#fff;padding:8px;z-index:5}
.skip:focus {top:1rem}
.topbar {position:sticky;top:0;z-index:3;background:#101827f4;border-bottom:1px solid #ffffff19;backdrop-filter:blur(14px)}
.nav {min-height:67px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.brand {display:flex;gap:11px;align-items:center;color:#f2f5fb;font-weight:800;white-space:nowrap}
.brand-icon {display:grid;place-items:center;background:var(--mint);color:var(--navy);width:31px;height:31px;border-radius:9px;font-size:21px}
nav {display:flex;gap:29px}
nav a {color:#c6cfde;font-size:14px}
.pdf {color:#f3fff9;white-space:nowrap;border:1px solid #657487;border-radius:9px;padding:7px 13px;font-size:13px}
.intro {color:#f5f8ff;background:radial-gradient(ellipse at 69% 25%,#1a3041,transparent 54%),radial-gradient(ellipse at left bottom,#153037,transparent 37%),var(--navy);padding:72px 0 38px;position:relative;isolation:isolate}
.intro::before {position:absolute;content:"";inset:0;z-index:-1;opacity:.25;background-image:linear-gradient(#8397af24 1px,transparent 1px),linear-gradient(90deg,#8397af24 1px,transparent 1px);background-size:44px 44px;mask-image:linear-gradient(#000,transparent 90%)}
.hero-grid {display:grid;grid-template-columns:.9fr 1.15fr;gap:45px;align-items:center}
.kicker,.eyebrow,.route-label {display:flex;align-items:center;gap:9px;font-size:13px;letter-spacing:.09em;font-weight:800;color:var(--teal)}
.kicker {color:#b4c7d9;font-size:12px}
.kicker i,.dot {display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--mint);box-shadow:0 0 12px #78f2ce8a}
.kicker span {color:#597b87}
h1 {font-size:clamp(56px,6.25vw,97px);line-height:1.055;letter-spacing:-.075em;margin:20px 0 23px;font-weight:900}
h1 span {color:var(--mint);margin-left:.075em}
.lede {color:#c8d4e3;font-size:17px;max-width:425px;line-height:1.85}
.actions {display:flex;gap:12px;flex-wrap:wrap;margin-top:29px}
.button {display:inline-flex;align-items:center;justify-content:center;gap:16px;min-height:44px;padding:9px 16px;border:1px solid #67778a;border-radius:9px;color:#edf5ff;font-size:14px;white-space:nowrap}
.button.primary {background:var(--mint);border-color:var(--mint);color:#112e2c}
.button.primary:hover {background:#a3f9de;text-decoration:none}
.monitor {scroll-margin-top:94px;background:linear-gradient(155deg,#1d3044,#152131 62%);border:1px solid #425368;border-radius:20px;padding:23px 25px 20px;box-shadow:0 20px 55px #050d1870;min-width:0}
.monitor-head,.monitor-foot,.subheading {display:flex;align-items:center;justify-content:space-between;gap:18px}
.monitor-label {display:flex;align-items:center;gap:9px;color:#a4b8ca;font-size:12px;font-weight:700}
.monitor h2 {font-size:25px;margin-top:4px}
.market {font-size:12px;color:#c4d0e1;white-space:nowrap}
.market select {background:#172438;color:#e6effb;border:1px solid #52657c;border-radius:8px;padding:6px;margin-left:3px}
.print-market {display:none}
.metric-row {margin:19px 0 10px;display:grid;grid-template-columns:repeat(3,1fr);gap:7px}
.metric-row div {display:grid;gap:3px;background:#0d17285e;border:1px solid #35465c;padding:7px 10px;border-radius:8px}
.metric-row span {color:#bfcbdb;font-size:11px}
.metric-row strong {color:#eff8ff;font-size:clamp(13px,2.05vw,25px);font-variant-numeric:tabular-nums;line-height:1.3}
.metric-row div:first-child strong {color:var(--mint)}
.metric-row div:nth-child(2) strong {color:#cbc8ff}
.chart-area {height:170px}
canvas {width:100%;height:100%;display:block}
.legend {display:flex;align-items:center;gap:14px;font-size:11px;color:#ced9e6}
.legend span:last-child {margin-left:auto;color:#c1d3e6;white-space:nowrap}
.key {display:inline-block;width:14px;height:3px;border-radius:2px;vertical-align:middle;margin-right:5px;background:var(--mint)}
.key.rival {background:var(--indigo)}
.scrub {display:flex;align-items:center;gap:9px;color:#bdccdc;font-size:11px;margin-top:8px}
.scrub input {flex:1;min-width:0;accent-color:var(--mint)}
.monitor-foot {align-items:flex-start;margin-top:11px;border-top:1px solid #47566c;padding-top:11px;font-size:12px}
.monitor-foot p {color:#c9d5e3}
.monitor-foot a {white-space:nowrap;color:var(--mint)}
.benefits {display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:43px;border-top:1px solid #5e73845c;padding-top:25px}
.benefits div {padding:0 12px 0 16px;border-left:2px solid #78f2ce74}
.benefits h3 {font-size:17px}
.benefits p {color:#c2cedd;font-size:13px;margin-top:6px}
.section {padding:67px 0;border-bottom:1px solid var(--line);scroll-margin-top:55px}
.section-heading {margin-bottom:25px}
.section-heading h2 {font-size:clamp(31px,4vw,48px);margin:7px 0 10px;letter-spacing:-.055em}
.section-heading p,.step p,.lesson p,.use-steps p,.publish p,.pending p,.first-run p {color:var(--muted)}
.route-grid,.step-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}
.route,.step,.lesson,.pending {background:#fff;border:1px solid var(--line);border-radius:15px}
.route,.step {padding:21px}
.route.featured {border-color:#73cbb7;background:linear-gradient(145deg,#eafbf6,#fff 75%)}
.route h3,.step h3 {font-size:20px;margin:8px 0 9px}
.route p {color:var(--muted);margin-bottom:14px}
.route dl {border-top:1px solid var(--line);padding-top:10px;margin-bottom:15px}
.route dt {font-size:12px;font-weight:800;margin-top:5px}
.route dd {font-size:13px;color:var(--muted)}
.lesson {margin-top:23px;padding:24px}
.lesson h3,.first-run h3,.pending h3,.publish h3 {font-size:24px;margin:6px 0 11px}
.workflow {list-style:none;margin:16px 0;padding:0;display:grid;grid-template-columns:repeat(4,1fr);gap:10px;counter-reset:phase}
.workflow li {padding:12px;border-top:2px solid #7cbea9;background:#f4f8f8;counter-increment:phase}
.workflow li::before {content:"0" counter(phase);display:block;color:var(--teal);font-weight:800;font-size:11px}
.workflow strong,.workflow span {display:block}
.workflow span {color:var(--muted);font-size:13px}
.prompt {margin-top:17px;background:#edf2f8;border:1px solid #d9e3ee;border-radius:10px;padding:14px 16px}
.prompt div {display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:6px}
.prompt p {font-size:14px;color:#384a60}
.step {display:flex;flex-direction:column;align-items:flex-start}
.step-id {color:var(--teal);font-size:13px;font-weight:850;letter-spacing:.06em}
.step p {font-size:14px;margin-bottom:8px}
.shot {width:100%;height:126px;background:#f1f4f8;border:1px solid #e0e7ef;display:grid;place-items:center;overflow:hidden;border-radius:8px;margin-top:auto}
.shot img {width:100%;height:124px;object-fit:contain}
.step a:not(.shot),.step button {margin-bottom:10px}
.subheading {margin-top:23px;flex-wrap:wrap}
.subheading h3 {font-size:23px}
.use-steps {display:grid;gap:7px;margin:12px 0;padding-left:22px}
.use-steps li::marker {color:var(--teal);font-weight:800}
.links {display:flex;flex-wrap:wrap;gap:10px 20px;margin-top:13px;font-size:13px}
.docs {margin:-9px 0 17px}
.publish {border-left:3px solid #56a991;background:#edf6f3;border-radius:0 10px 10px 0;margin-top:18px;padding:13px 19px}
.config {display:block;padding:6px 0;overflow-wrap:anywhere}
.pending {padding:22px;margin-bottom:14px}
.flow {display:flex;gap:9px;align-items:center;flex-wrap:wrap;margin:14px 0 9px}
.flow span {background:#edf3f6;border-radius:6px;padding:7px 10px;font-size:13px;font-weight:750}
.flow b {color:var(--teal)}
.first-run {display:flex;justify-content:space-between;align-items:center;gap:20px;background:#172637;color:#f4f8ff;padding:23px;border-radius:14px;margin-top:20px}
.first-run .eyebrow {color:var(--mint)}
.first-run p {color:#c4d0df}
.footer {display:flex;justify-content:space-between;gap:12px;padding-block:24px;color:var(--muted);font-size:13px}
@media(max-width:980px) {
  .wrap {width:calc(100% - 48px)}
  .hero-grid {gap:24px}
  .monitor {padding:17px}
  .route,.step {padding:15px}
  nav {gap:15px}
}
@media(max-width:760px) {
  .wrap {width:calc(100% - 32px)}
  .topbar nav {display:none}
  .nav {min-height:56px}
  .intro {padding:39px 0 25px}
  .hero-grid,.route-grid,.step-grid {grid-template-columns:1fr}
  h1 {font-size:clamp(51px,10.9vw,74px)}
  .actions {margin-top:20px}
  .hero-grid {gap:26px}
  .monitor {scroll-margin-top:68px}
  .benefits {grid-template-columns:1fr;gap:14px;margin-top:23px}
  .section {padding:38px 0}
  .route,.step,.lesson,.pending {padding:15px}
  .workflow {grid-template-columns:repeat(2,1fr)}
  .first-run {align-items:flex-start;flex-direction:column}
  .shot,.shot img {height:155px}
}
@media(max-width:410px) {
  .monitor-foot {display:block}
  .monitor-foot a {display:inline-block;margin-top:5px}
  .metric-row div {padding:6px}
  .metric-row strong {font-size:16px}
  .flow {gap:5px}
}
@page {
  size:A4;margin:12mm;
  @bottom-left {content:"集团运营专题 · 用 Codex 做竞品追踪";font:9pt "Microsoft YaHei UI",sans-serif;color:#536274}
  @bottom-right {content:counter(page) " / " counter(pages);font:9pt Inter,sans-serif;color:#536274}
}
@media print {
  * {-webkit-print-color-adjust:exact;print-color-adjust:exact}
  html {scroll-behavior:auto}
  body {background:#fff;font-size:11pt}
  .wrap {width:100%;max-width:none}
  .topbar,.actions,.scrub,.skip,button,.footer {display:none!important}
  .intro {padding:20px;background:#101827;border-radius:14px}
  .hero-grid {grid-template-columns:1fr;gap:16px}
  h1 {font-size:52pt;margin:8px 0 10px}
  .lede {max-width:none;font-size:12pt}
  .monitor {box-shadow:none;padding:16px}
  .monitor .market {display:none}
  .print-market {display:block;color:#c4d0e1;font-size:11pt}
  .chart-area {height:190px}
  .benefits {grid-template-columns:repeat(3,1fr);margin-top:19px;padding-top:13px;gap:9px}
  .benefits h3 {font-size:12pt}
  .benefits p {font-size:9pt}
  .section {padding:4px 0 0;border:0}
  .section-heading {margin-bottom:15px}
  .section-heading h2 {font-size:25pt}
  .print-page {break-before:page}
  .route-grid,.step-grid {grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .route,.step,.lesson,.pending {padding:12px;break-inside:avoid}
  .route h3,.step h3 {font-size:12pt}
  .route p,.step p,.workflow span,.route dd,.prompt p,.use-steps p,.publish p,.pending p,.first-run p {font-size:10pt}
  .lesson,.prompt,.first-run,.publish {break-inside:avoid;margin-top:12px}
  .workflow {grid-template-columns:repeat(4,1fr);gap:6px}
  .workflow li {padding:7px}
  .shot,.shot img {height:91px}
  .subheading {margin-top:13px}
  .first-run {flex-direction:row}
  .monitor-foot {display:flex}
}
