:root {
  --primary: #2455c3; --primary-2: #3977f6; --navy: #081a3a;
  --ink: #17233c; --muted: #667085; --line: #dfe6f2; --bg: #f3f6fb;
  --card: #ffffff; --warning: #b54708; --shadow: 0 12px 36px rgba(22,45,90,.08);
  --sidebar: 264px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; color: var(--ink); background: var(--bg); font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif; line-height: 1.75; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; width: var(--sidebar); display: flex; flex-direction: column; color: #d9e7ff; background: linear-gradient(180deg,#071a38 0%,#0b2248 60%,#081a38 100%); border-right: 1px solid rgba(127,167,235,.18); overflow-y: auto; }
.brand { display: flex; gap: 12px; align-items: center; padding: 28px 24px 24px; border-bottom: 1px solid rgba(255,255,255,.09); }
.brand-logo { width: 46px; height: 46px; flex: none; object-fit: contain; filter: drop-shadow(0 0 12px rgba(72,130,255,.32)); }
.brand strong { display: block; color: #fff; font-size: 18px; letter-spacing: .8px; line-height: 1.3; }
.brand span { display: block; margin-top: 4px; color: #8ca9d7; font-size: 12px; }
.nav-label { padding: 22px 24px 8px; color: #6f8dbb; font-size: 11px; letter-spacing: 2px; }
.nav { padding: 0 14px 24px; }
.nav a { display: flex; align-items: center; gap: 12px; margin: 3px 0; padding: 10px 12px; border: 1px solid transparent; border-radius: 9px; color: #b9cbe8; font-size: 14px; transition: .2s ease; }
.nav a:hover { color: #fff; background: rgba(72,119,211,.14); }
.nav a.active { color: #fff; border-color: rgba(105,155,247,.35); background: linear-gradient(90deg,rgba(48,102,214,.58),rgba(48,102,214,.14)); box-shadow: inset 3px 0 #70a1ff; }
.nav-no { width: 22px; color: #6f93cb; font: 11px Consolas,monospace; }
.nav a.active .nav-no { color: #cfe0ff; }
.sidebar-foot { margin-top: auto; padding: 18px 24px 26px; border-top: 1px solid rgba(255,255,255,.08); color: #6f8dbb; font-size: 11px; }
.sidebar-foot b { display: block; margin-bottom: 4px; color: #b9cbe8; font-size: 12px; }
.main { margin-left: var(--sidebar); min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 20; height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 40px; border-bottom: 1px solid rgba(208,220,238,.85); background: rgba(255,255,255,.88); backdrop-filter: blur(14px); }
.crumb { color: var(--muted); font-size: 13px; }
.crumb b { color: var(--ink); }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: #19b884; box-shadow: 0 0 0 4px rgba(25,184,132,.12); }
.print-btn,.menu-btn,.home-btn { border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--primary); padding: 7px 14px; font-size: 13px; }
.print-btn:hover,.home-btn:hover { border-color: var(--primary); background: #f5f8ff; }
.home-btn { display: inline-block; margin-right: 12px; }
.menu-btn { display: none; margin-right: 12px; padding: 5px 11px; }
.hero { position: relative; overflow: hidden; min-height: 400px; padding: 64px 56px; color: #fff; background: radial-gradient(circle at 82% 30%,rgba(37,106,236,.38),transparent 35%),radial-gradient(circle at 18% 90%,rgba(30,89,198,.25),transparent 30%),linear-gradient(125deg,#071a38,#0c2852 65%,#0b2145); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .13; background-image: linear-gradient(rgba(132,170,239,.6) 1px,transparent 1px),linear-gradient(90deg,rgba(132,170,239,.6) 1px,transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(90deg,transparent,#000); }
.hero::after { content: "SOP"; position: absolute; right: 4%; bottom: -70px; color: rgba(255,255,255,.035); font: 900 260px/1 Arial; letter-spacing: -18px; }
.hero-content { position: relative; z-index: 2; max-width: 860px; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: #8fb8ff; font: 12px Consolas,monospace; letter-spacing: 3px; }
.eyebrow::before { content: ""; width: 34px; height: 2px; background: #5d95ff; box-shadow: 0 0 10px #5d95ff; }
.hero h1 { margin: 22px 0 14px; font-size: clamp(34px,4.2vw,58px); line-height: 1.2; letter-spacing: 1px; }
.hero h1 span { color: #7fabff; }
.hero-sub { max-width: 680px; margin: 0; color: #b7cbe9; font-size: 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.tag { padding: 5px 13px; border: 1px solid rgba(141,177,240,.28); border-radius: 99px; color: #c8dbfa; background: rgba(57,105,189,.16); font-size: 12px; }
.hero-metrics { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3,minmax(120px,180px)); gap: 14px; margin-top: 40px; }
.hero-metric { padding: 15px 18px; border: 1px solid rgba(133,171,238,.18); border-radius: 10px; background: rgba(6,24,54,.38); backdrop-filter: blur(6px); }
.hero-metric strong { display: block; color: #fff; font-size: 22px; line-height: 1.4; }
.hero-metric span { color: #89a8d5; font-size: 12px; }
.content { max-width: 1320px; margin: 0 auto; padding: 34px 40px 80px; }
.notice { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 30px; padding: 16px 20px; border: 1px solid #d8e5fb; border-left: 4px solid var(--primary); border-radius: 10px; background: #eef4ff; color: #38547f; font-size: 13px; }
.notice b { flex: none; color: var(--primary); }
.doc-section { margin: 0 0 28px; padding: 34px; border: 1px solid #e2e9f3; border-radius: 14px; background: var(--card); box-shadow: var(--shadow); }
.section-head { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 26px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.section-no { flex: none; min-width: 46px; color: #d4e1f8; font: 700 34px/1.2 Consolas,monospace; letter-spacing: -2px; }
.section-head h2 { margin: 0 0 4px; color: var(--ink); font-size: 25px; line-height: 1.4; }
.section-head p { margin: 0; color: var(--muted); font-size: 13px; }
h3 { margin: 30px 0 12px; color: var(--ink); font-size: 19px; line-height: 1.5; }
h3:first-child { margin-top: 0; }
h4 { margin: 22px 0 10px; color: var(--primary); font-size: 15px; }
p { margin: 8px 0 14px; }
.lead { color: #475467; }
.grid-2 { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.info-card { padding: 18px 20px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcff; }
.info-card h4 { margin: 0 0 7px; color: var(--ink); }
.info-card p { margin: 0; color: var(--muted); font-size: 13px; }
.info-card .card-code { display: block; margin-bottom: 10px; color: var(--primary); font: 12px Consolas,monospace; }
.steps { margin: 16px 0 22px; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; min-height: 36px; margin: 0 0 14px; padding-left: 46px; counter-increment: step; }
.steps li::before { content: counter(step,decimal-leading-zero); position: absolute; left: 0; top: 1px; width: 30px; height: 30px; border: 1px solid #cddcf7; border-radius: 8px; color: var(--primary); background: #f1f5ff; text-align: center; font: 12px/28px Consolas,monospace; }
.steps b { color: var(--ink); }
.steps span { color: #4c5d76; }
.callout { margin: 18px 0; padding: 14px 18px; border-radius: 9px; background: #f2f6ff; color: #405676; font-size: 13px; }
.callout b { color: var(--primary); }
.callout.warning { border-left: 3px solid #e99a32; background: #fff7e9; color: #78501c; }
.callout.warning b { color: var(--warning); }
.table-wrap { margin: 16px 0 24px; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 13px; }
th { padding: 12px 15px; color: #fff; background: linear-gradient(90deg,#214fae,#2e64ca); text-align: left; font-weight: 600; white-space: nowrap; }
td { padding: 12px 15px; border-top: 1px solid #e7edf6; color: #465873; vertical-align: top; }
tbody tr:nth-child(even) { background: #f8faff; }
tbody tr:hover { background: #f0f5ff; }
.check { color: var(--primary); font-size: 17px; }
figure { margin: 24px 0 8px; }
.screenshot { display: block; width: 100%; padding: 7px; border: 1px solid #d9e3f2; border-radius: 12px; background: #fff; box-shadow: 0 8px 24px rgba(29,58,109,.07); cursor: zoom-in; transition: .2s; }
.screenshot:hover { border-color: #8fb0e9; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(29,58,109,.12); }
.screenshot.modal-shot { display: block; max-width: 430px; margin: auto; }
figcaption { margin-top: 10px; color: #7b889c; text-align: center; font-size: 12px; }
.flow { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 10px; margin: 18px 0 24px; }
.flow-item { position: relative; padding: 18px 14px; border: 1px solid #dce6f6; border-radius: 10px; background: linear-gradient(145deg,#fbfdff,#f3f7ff); }
.flow-item:not(:last-child)::after { content: ""; position: absolute; top: 27px; right: -8px; z-index: 2; width: 6px; height: 6px; border-top: 2px solid #8ca9db; border-right: 2px solid #8ca9db; transform: rotate(45deg); }
.flow-item b { display: block; margin: 8px 0 5px; font-size: 14px; }
.flow-item span { color: var(--muted); font-size: 12px; line-height: 1.6; }
.flow-no { color: var(--primary); font: 11px Consolas,monospace; }
.code { padding: 2px 6px; border-radius: 4px; color: #2455a8; background: #eef3fb; font-family: Consolas,monospace; font-size: .92em; }
.footer { padding: 28px 40px; color: #7d8ba1; text-align: center; font-size: 12px; }
.lightbox { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 32px; background: rgba(2,10,25,.9); }
.lightbox.open { display: flex; }
.lightbox img { max-width: 96%; max-height: 90vh; border-radius: 8px; box-shadow: 0 20px 80px #000; }
.lightbox-close { position: absolute; top: 18px; right: 24px; border: 0; color: #fff; background: transparent; font-size: 32px; }
.back-top { position: fixed; right: 24px; bottom: 24px; z-index: 15; width: 42px; height: 42px; border: 1px solid #d4e0f2; border-radius: 10px; color: var(--primary); background: rgba(255,255,255,.94); box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: .2s; }
.back-top.show { opacity: 1; pointer-events: auto; }
@media (max-width:1100px) { .flow { grid-template-columns: repeat(3,1fr); } .flow-item::after { display: none; } .grid-3 { grid-template-columns: 1fr 1fr; } .hero { padding: 52px 40px; } }
@media (max-width:820px) {
  .sidebar { transform: translateX(-100%); transition: transform .25s; } .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; } .menu-btn { display: inline-block; } .topbar { padding: 0 18px; }
  .hero { padding: 44px 24px; } .content { padding: 24px 18px 60px; } .doc-section { padding: 24px 20px; }
  .grid-2,.grid-3 { grid-template-columns: 1fr; } .hero-metrics { grid-template-columns: repeat(3,1fr); }
  .section-head { gap: 12px; } .section-no { min-width: 34px; font-size: 27px; } .section-head h2 { font-size: 21px; }
}
@media (max-width:520px) { .flow { grid-template-columns: 1fr 1fr; } .hero-metrics { grid-template-columns: 1fr; } .hero h1 { font-size: 32px; } .crumb span { display: none; } .print-btn { padding: 6px 9px; } .home-btn { padding: 6px 9px; margin-right: 6px; } }
@media print {
  .sidebar,.topbar,.back-top,.lightbox { display: none !important; } .main { margin: 0; }
  .hero { min-height: auto; padding: 28px; print-color-adjust: exact; } .content { max-width: none; padding: 20px 0; }
  .doc-section { box-shadow: none; break-inside: auto; } .screenshot { max-height: 620px; object-fit: contain; }
  h2,h3,h4 { break-after: avoid; } figure,table { break-inside: avoid; }
}
