/* Lockheed-Martin-ish skin: dark hero, white body, one blue. */
:root {
  --bg: #ffffff;
  --bg-soft: #f4f5f7;
  --panel: #ffffff;
  --panel-solid: #ffffff;
  --line: #e2e4e8;
  --line-strong: #0033a0;
  --text: #111418;
  --muted: #5b6470;
  --dim: #8b93a0;
  --accent: #0033a0;
  --accent-soft: rgba(0, 51, 160, .08);
  --amber: #b26b00;
  --red: #b3261e;
  --mono: "DejaVu Sans Mono", ui-monospace, Menlo, Consolas, monospace;
  --sans: "Helvetica Neue", Inter, "Noto Sans SC", "PingFang SC", sans-serif;
  --max: 1200px;
}
html { background: #fff; }
body {
  color: var(--text);
  background: #fff;
  font-size: 16.5px;
  line-height: 1.6;
}
body::before { display: none; }
::selection { background: #0033a0; color: #fff; }
a { color: var(--accent); }
a:hover { color: #00227a; }
code { color: #0033a0; background: #f1f4fa; border-color: #dde5f5; }

/* audit strip */
.audit-banner {
  background: #0b0d10;
  color: #ffcf70;
  border: 0;
  font-size: .78rem;
  letter-spacing: .02em;
  padding: .55rem 0;
}
.audit-banner strong { color: #fff; }

/* nav */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: #0b0d10;
  border-bottom: 1px solid rgba(255,255,255,.1);
  padding: .9rem 0;
}
.brand-text strong { color: #fff; letter-spacing: .16em; }
.brand-text em { color: #8b93a0; letter-spacing: .3em; font-style: normal; font-size: .68rem; }
.site-nav a { color: #e9ecf1; font-size: .82rem; letter-spacing: .04em; }
.site-nav a:hover { color: #fff; }
.site-nav .lang-switch { border: 1px solid rgba(255,255,255,.25); padding: .25rem .5rem; }
.nav-cta {
  background: #0033a0 !important; color: #fff !important;
  border-radius: 2px; padding: .45rem .85rem;
}
.nav-cta:hover { background: #0040c8 !important; }

/* hero */
.hero {
  background:
    linear-gradient(90deg, rgba(8,10,13,.96) 0%, rgba(8,10,13,.82) 46%, rgba(8,10,13,.55) 100%),
    url("./assets/cbap-structure-zh.png") right center / 62% auto no-repeat,
    #0a0c0f;
  color: #fff;
  padding: 92px 0 76px;
  border-bottom: 1px solid #1d222b;
}
.eyebrow { color: #9fb6ff; letter-spacing: .16em; font-size: .7rem; }
.signal { background: #4d7cff; box-shadow: 0 0 0 0 rgba(77,124,255,.45); }
.unofficial-tag { color: #8b93a0; border-color: rgba(255,255,255,.18); }
.hero h1 {
  color: #fff; font-weight: 600; letter-spacing: -.035em; line-height: .98;
  font-size: clamp(46px, 6.4vw, 88px); margin: .35em 0 .18em;
}
.hero h1 span { color: #6f8fd6; }
.hero-cn { color: #c7cedb; letter-spacing: .08em; }
.hero .lede { color: #b9c1cf; max-width: 34em; }
.hero-actions .btn-primary { background: #0033a0; border-color: #0033a0; color: #fff; border-radius: 2px; }
.hero-actions .btn-primary:hover { background: #0040c8; }
.hero-actions .btn-ghost { color: #fff; border-color: rgba(255,255,255,.32); border-radius: 2px; }
.hero-actions .text-link { color: #9fb6ff; }
.stats { border-top-color: rgba(255,255,255,.16); }
.stats dt { color: #fff; font-weight: 500; }
.stats dd { color: #98a2b3; font-size: .72rem; letter-spacing: .06em; }
.hero-panel {
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: none;
}
.panel-head, .panel-foot { color: #98a2b3; border-color: rgba(255,255,255,.12); }
.layer { border-color: rgba(255,255,255,.12); }
.layer-copy strong { color: #fff; }
.layer-copy small, .layer-tag, .layer-id { color: #98a2b3; }
.layer-hot { background: rgba(0,51,160,.22); border-color: #4d7cff; }
.panel-live { color: #9fb6ff; }

/* sections */
.section { background: #fff; padding: 84px 0; }
.section-arch { background: #f4f5f7; border-top: 1px solid #e2e4e8; border-bottom: 1px solid #e2e4e8; }
.kicker { color: #0033a0; letter-spacing: .16em; }
.section h2 { color: #0b0d10; letter-spacing: -.025em; font-weight: 600; }
.section-lede { color: #5b6470; }
.cards { gap: 1px; background: #e2e4e8; border: 1px solid #e2e4e8; }
.card { background: #fff; border: 0; border-radius: 0; box-shadow: none; padding: 30px 28px; }
.card:hover { background: #f8f9fb; }
.card-num { color: #0033a0; letter-spacing: .12em; }
.card h3 { color: #0b0d10; font-weight: 600; }
.card p { color: #5b6470; }
.card-accent { background: #f2f5fb; }
.arch-image { border: 1px solid #dfe2e7; background: #fff; }
.principles { border-top: 1px solid #e2e4e8; }
.principles li { border-bottom: 1px solid #e2e4e8; }
.principle-num { color: #0033a0; }
.principles h3 { color: #0b0d10; }
.principles p { color: #5b6470; }
.status-label { color: #0033a0; }

/* cta + footer */
.cta { background: #0b0d10; color: #fff; }
.cta h2 { color: #fff; }
.cta .btn-primary { background: #0033a0; border-color: #0033a0; border-radius: 2px; }
.site-footer { background: #0b0d10; color: #98a2b3; border-top: 1px solid #1d222b; }
.footer-brand { color: #fff; letter-spacing: .18em; }
.site-footer a { color: #c7cedb; }

/* ── full-bleed layout (LM 那种整屏宽) ── */
.audit-banner { width: 100%; padding: .5rem max(24px, calc((100% - 1200px) / 2)); }
.site-header { width: 100%; margin: 0; padding: .95rem max(24px, calc((100% - 1200px) / 2)); }
main { width: 100%; max-width: none; margin: 0; }
.site-footer { width: 100%; margin: 0; padding: 2.6rem max(24px, calc((100% - 1200px) / 2)); }
.hero {
  position: relative;
  padding: clamp(3.5rem, 7vw, 6.5rem) max(24px, calc((100% - 1200px) / 2));
  background: #0a0c0f;
  min-height: 0;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, #0a0c0f 0%, rgba(10,12,15,.92) 42%, rgba(10,12,15,.55) 100%),
    url("./assets-lm/hero-lm.png") right center / cover no-repeat;
  opacity: .85; filter: grayscale(1) contrast(.9);
}
.hero > * { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(3.2rem, 6vw, 5.6rem); line-height: .95; letter-spacing: -.03em; }
.hero h1 span { color: #7ea0e8; -webkit-text-stroke: 0; }
.hero-panel {
  background: rgba(10, 13, 18, .78);
  backdrop-filter: blur(6px);
  border-color: rgba(255,255,255,.18);
}
.stats { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.4rem; border-top-color: rgba(255,255,255,.2); }
.stats dt { font-size: clamp(1rem, 1.5vw, 1.3rem); letter-spacing: .02em; }
.stats dd { font-size: .7rem; letter-spacing: .08em; color: #9aa4b2; }
.section { padding-top: 84px; padding-bottom: 84px; padding-left: max(24px, calc((100% - 1200px) / 2)); padding-right: max(24px, calc((100% - 1200px) / 2)); }
.cta { padding-left: max(24px, calc((100% - 1200px) / 2)); padding-right: max(24px, calc((100% - 1200px) / 2)); }
.site-nav { gap: 1.05rem; font-size: .78rem; white-space: nowrap; }
.site-nav a { color: #dfe4ec; }

/* wordmark only (像素图标跟 LM 风不搭) */
.brand-mark { display: none; }
.brand-text strong { font-size: .95rem; letter-spacing: .22em; color: #fff; }
.brand-text em { font-size: .6rem; letter-spacing: .34em; color: #9aa4b2; }
.site-nav .nav-cta { border-radius: 0; }
.card, .btn, .nav-cta, .arch-image, .hero-panel { border-radius: 0; }
/* OS 两张截图：两列，别留第三格空位 */
.cards-img { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 860px) { .cards-img { grid-template-columns: 1fr; } }

/* ── 动效（LM 风：慢、短、少） ── */
.site-header { transition: background .25s ease, box-shadow .25s ease; }
.site-header.lm-scrolled { background: #07090c; box-shadow: 0 2px 18px rgba(0,0,0,.38); }

.site-nav a { position: relative; }
.site-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -7px; width: 100%; height: 1px;
  background: #fff; transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.site-nav a:hover::after { transform: scaleX(1); }
.site-nav .nav-cta::after { display: none; }

.btn span { display: inline-block; transition: transform .25s ease; }
.btn:hover span { transform: translateX(3px); }

@keyframes lm-up { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.hero .eyebrow { animation: lm-up .8s .05s both; }
.hero h1 { animation: lm-up .9s .14s both; }
.hero-cn { animation: lm-up .8s .24s both; }
.hero .lede { animation: lm-up .8s .32s both; }
.hero-actions { animation: lm-up .8s .42s both; }
.stats { animation: lm-up .8s .54s both; }
.hero-panel { animation: lm-up .9s .30s both; }

@keyframes lm-zoom { from { transform: scale(1.07); } to { transform: scale(1); } }
.hero::before { animation: lm-zoom 26s cubic-bezier(.2,.6,.2,1) both; }

.lm-reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s cubic-bezier(.22,.61,.36,1), transform .65s cubic-bezier(.22,.61,.36,1); transition-delay: var(--d, 0ms); }
.lm-reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .hero .eyebrow, .hero h1, .hero-cn, .hero .lede, .hero-actions, .stats, .hero-panel, .hero::before { animation: none !important; }
  .lm-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}
@media print {
  .lm-reveal { opacity: 1 !important; transform: none !important; }
  .hero::before, .hero .eyebrow, .hero h1, .hero-cn, .hero .lede, .hero-actions, .stats, .hero-panel { animation: none !important; }
}

/* ── 进站：一次上电 ── */
html.lm-boot { overflow: hidden; }
.lm-boot-overlay { display: none; }
html.lm-boot .lm-boot-overlay {
  display: grid; place-items: center;
  position: fixed; inset: 0; z-index: 200;
  background: #07090c;
  animation: lm-boot-out .55s cubic-bezier(.65,0,.35,1) 1.55s forwards;
}
.lm-boot-inner { width: min(640px, 78vw); text-align: left; }
.lm-boot-word {
  margin: 0 0 1.1rem; color: #fff; font-family: var(--mono);
  font-size: .82rem; letter-spacing: .38em;
  opacity: 0; animation: lm-boot-fade .5s .05s forwards;
}
.lm-boot-word em { font-style: normal; color: #8b93a0; }
.lm-boot-line { position: relative; height: 2px; background: rgba(255,255,255,.12); overflow: hidden; }
.lm-boot-line::after {
  content: ""; position: absolute; inset: 0; background: #0033a0;
  transform: scaleX(0); transform-origin: left;
  animation: lm-boot-line 1.25s .12s cubic-bezier(.2,.7,.2,1) forwards;
}
.lm-boot-meta {
  display: flex; justify-content: space-between; margin-top: .7rem;
  color: #7f8794; font-family: var(--mono); font-size: .62rem; letter-spacing: .16em;
}
.lm-boot-meta b { color: #c7cedb; font-weight: 500; }
.lm-boot-steps { margin-top: 1.4rem; color: #7f8794; font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; height: 1em; }
.lm-boot-steps span { display: none; }
.lm-boot-steps span:nth-child(1) { display: block; animation: lm-boot-step 1.55s steps(1) forwards; }
.lm-boot-steps span:nth-child(2) { animation: lm-boot-step2 1.55s steps(1) forwards; }
.lm-boot-steps span:nth-child(3) { animation: lm-boot-step3 1.55s steps(1) forwards; }
.lm-boot-foot {
  position: absolute; left: max(24px, 4vw); right: max(24px, 4vw); bottom: 28px;
  display: flex; justify-content: space-between;
  color: #565d68; font-family: var(--mono); font-size: .58rem; letter-spacing: .18em;
}

@keyframes lm-boot-fade { to { opacity: 1; } }
@keyframes lm-boot-line { to { transform: scaleX(1); } }
@keyframes lm-boot-out { to { transform: translateY(-100%); } }
@keyframes lm-boot-step { 0%, 33% { display: block; opacity: 1; } 34%, 100% { display: none; } }
@keyframes lm-boot-step2 { 0%, 33% { display: none; } 34%, 66% { display: block; opacity: 1; } 67%, 100% { display: none; } }
@keyframes lm-boot-step3 { 0%, 66% { display: none; } 67%, 100% { display: block; opacity: 1; } }

html.lm-boot .hero .eyebrow,
html.lm-boot .hero h1,
html.lm-boot .hero-cn,
html.lm-boot .hero .lede,
html.lm-boot .hero-actions,
html.lm-boot .stats,
html.lm-boot .hero-panel,
html.lm-boot .hero::before { animation-play-state: paused; }

html.lm-static .lm-boot-overlay { animation: none; transform: none; }
html.lm-static .lm-boot-line::after { animation: none; transform: scaleX(1); }
html.lm-static .lm-boot-word { animation: none; opacity: 1; }
html.lm-static .lm-boot-steps span { display: none; animation: none; }
html.lm-static .lm-boot-steps span:nth-child(3) { display: block; }

@media (prefers-reduced-motion: reduce) {
  html.lm-boot .lm-boot-overlay { animation: none; }
  .lm-boot-line::after { animation: none; transform: scaleX(1); }
}

/* ── 进站 B：火控锁定 ── */
.lm-lock-overlay { display: none; }
html.lm-lock .lm-lock-overlay {
  display: block; position: fixed; inset: 0; z-index: 200; background: #07090c;
  animation: lm-lock-out .5s cubic-bezier(.4,0,.2,1) 1.0s forwards;
}
html.lm-lock .lm-lock-overlay::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(0,51,160,.22), transparent 46%);
  animation: lm-lock-glow 1.1s ease-out forwards;
}
.lm-lock-ring {
  position: absolute; left: 50%; top: 50%; width: 220px; height: 220px; margin: -110px 0 0 -110px;
  border: 1px dashed rgba(126,160,232,.55); border-radius: 50%;
  animation: lm-lock-spin 6s linear infinite, lm-lock-shut .5s .9s forwards;
}
.lm-lock-cross::before, .lm-lock-cross::after {
  content: ""; position: absolute; left: 50%; top: 50%; background: rgba(255,255,255,.35);
}
.lm-lock-cross::before { width: 1px; height: 300px; margin: -150px 0 0 0; }
.lm-lock-cross::after { width: 300px; height: 1px; margin: 0 0 0 -150px; }
.lm-lock-b {
  position: absolute; left: 50%; top: 50%; width: 34px; height: 34px;
  border: 2px solid #0033a0; opacity: 0;
  animation: lm-lock-in .5s .1s cubic-bezier(.2,.7,.2,1) forwards;
}
.lm-lock-b.b1 { margin: -150px 0 0 -150px; border-right: 0; border-bottom: 0; }
.lm-lock-b.b2 { margin: -150px 0 0 116px;  border-left: 0;  border-bottom: 0; }
.lm-lock-b.b3 { margin: 116px 0 0 -150px;  border-right: 0; border-top: 0; }
.lm-lock-b.b4 { margin: 116px 0 0 116px;   border-left: 0;  border-top: 0; }
.lm-lock-meta {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, 178px);
  display: flex; gap: 2.4rem; color: #7f8794; font-family: var(--mono);
  font-size: .62rem; letter-spacing: .2em;
  animation: lm-lock-meta .4s .55s both;
}
.lm-lock-word {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -190px);
  color: #fff; font-family: var(--mono); font-size: .78rem; letter-spacing: .38em;
  opacity: 0; animation: lm-boot-fade .5s .2s forwards;
}
@keyframes lm-lock-spin { to { transform: rotate(360deg); } }
@keyframes lm-lock-in {
  from { opacity: 0; transform: scale(1.6); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes lm-lock-shut { to { transform: scale(.82); border-color: #7ea0e8; } }
@keyframes lm-lock-meta { from { opacity: 0; } to { opacity: 1; } }
@keyframes lm-lock-glow { 0% { opacity: 0; } 70% { opacity: 1; } 100% { opacity: .2; } }
@keyframes lm-lock-out { to { opacity: 0; visibility: hidden; } }
html.lm-lock .hero .eyebrow,
html.lm-lock .hero h1,
html.lm-lock .hero-cn,
html.lm-lock .hero .lede,
html.lm-lock .hero-actions,
html.lm-lock .stats,
html.lm-lock .hero-panel,
html.lm-lock .hero::before { animation-play-state: paused; }
html.lm-static .lm-lock-overlay { animation: none; opacity: 1; visibility: visible; }
html.lm-static .lm-lock-b { animation: none; opacity: 1; }
html.lm-static .lm-lock-meta, html.lm-static .lm-lock-word { animation: none; opacity: 1; }

/* 顶部进度 + 分节蓝线 */
.lm-progress {
  position: fixed; top: 0; left: 0; width: 100%; height: 2px;
  background: #0033a0; transform: scaleX(0); transform-origin: left;
  z-index: 150; pointer-events: none;
  transition: transform .12s linear;
}
.kicker { position: relative; }
.kicker::after {
  content: ""; display: block; width: 0; height: 1px; margin-top: .7rem;
  background: #0033a0; transition: width .8s cubic-bezier(.2,.7,.2,1) .1s;
}
.kicker.in::after { width: 56px; }

/* 架构图扫描线 + 蓝色小字加粗 */
.arch-frame { position: relative; display: block; overflow: hidden; }
.arch-frame::after {
  content: ""; position: absolute; left: 0; right: 0; top: -4%; height: 2px;
  background: linear-gradient(90deg, rgba(0,51,160,0), #0033a0 22%, #4d7cff 50%, #0033a0 78%, rgba(0,51,160,0));
  opacity: 0; pointer-events: none;
}
.arch-frame.scan::after { animation: lm-scan 1.35s cubic-bezier(.3,.6,.2,1) forwards; }
@keyframes lm-scan {
  0% { top: -4%; opacity: 0; }
  12% { opacity: .9; }
  85% { opacity: .9; }
  100% { top: 102%; opacity: 0; }
}
.kicker { font-size: .8rem !important; font-weight: 600 !important; letter-spacing: .14em !important; color: #0033a0 !important; }
.card-num { font-size: .72rem; font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .arch-frame.scan::after { animation: none; } }
@media print { .arch-frame.scan::after { display: none; } }

@media print {
  html.lm-boot, html.lm-lock { overflow: visible !important; }
  .lm-boot-overlay, .lm-lock-overlay { display: none !important; }
}

/* 底部 CTA / 页脚对比度修正 */
.cta .btn-ghost { color: #eef2f8 !important; border-color: rgba(255,255,255,.5) !important; background: transparent !important; }
.cta .btn-ghost:hover { background: #fff !important; color: #0b0d10 !important; border-color: #fff !important; }
.cta p { color: #c3cbd8; }
.cta .kicker { color: #8fb0ff !important; }
.site-footer { color: #b6bfcc; }
.site-footer a { color: #e6eaf2; }
.footer-meta { color: #aeb7c4; }
.status-label { font-size: .74rem; font-weight: 600; letter-spacing: .08em; }
.card-num { font-size: .74rem; }

/* 语言选择 */
.lang-wrap { display: inline-flex; align-items: center; }
.lang-select {
  appearance: none; -webkit-appearance: none;
  background: transparent; color: #e9ecf1;
  border: 1px solid rgba(255,255,255,.3); border-radius: 0;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .08em;
  padding: .3rem 1.5rem .3rem .55rem; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, #9aa4b2 50%), linear-gradient(135deg, #9aa4b2 50%, transparent 50%);
  background-position: right 10px center, right 6px center;
  background-size: 4px 4px, 4px 4px; background-repeat: no-repeat;
}
.lang-select:hover { border-color: #fff; }
.lang-select option { background: #0b0d10; color: #fff; }
.i18n-note {
  background: #f2f5fb; color: #3d4654; border-bottom: 1px solid #dde5f5;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .04em;
  padding: .5rem max(24px, calc((100% - 1200px) / 2));
}

/* 英文统计标签会挤在一起：允许换行 */
.stats dd { white-space: normal; line-height: 1.35; padding-right: .5rem; font-size: .66rem; }
.stats dt { white-space: nowrap; }

/* 语言名用各自文字，宽度别跳 */
.lang-select { min-width: 104px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* RTL（阿拉伯语） */
html[dir="rtl"] body { font-family: "Noto Sans Arabic", "Noto Sans SC", "Segoe UI", sans-serif; }
html[dir="rtl"] .hero::before { background-position: left center; }
html[dir="rtl"] .kicker::after,
html[dir="rtl"] .site-nav a::after,
html[dir="rtl"] .lm-progress { transform-origin: right; }
html[dir="rtl"] .lang-select {
  background-position: left 10px center, left 6px center;
  padding: .3rem 1.5rem .3rem .55rem;
}
html[dir="rtl"] .lm-boot-inner { text-align: right; }

@media (max-width: 980px) {
  .site-header { flex-wrap: wrap; }
  .site-nav { justify-content: flex-end; }
  .site-footer { flex-wrap: wrap; }
  .footer-meta { text-align: left; }
}

/* CPNC triangle mark in the dark header */
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: #0033a0;
  box-shadow: none;
}
.brand-mark img { width: 28px; height: 28px; image-rendering: auto; }

/* Fixed monochrome watermark: gray on light sections, white on dark sections. */
.cpnc-watermark {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.cpnc-watermark img {
  grid-area: 1 / 1;
  width: clamp(280px, 38vw, 560px);
  height: auto;
  user-select: none;
  pointer-events: none;
}
.cpnc-watermark .wm-light {
  mix-blend-mode: multiply;
  opacity: .25;
}
.cpnc-watermark .wm-dark {
  mix-blend-mode: screen;
  opacity: .25;
  filter: brightness(0) invert(1);
}
.site-footer { position: relative; z-index: 30; }
@media (max-width: 760px) {
  .cpnc-watermark img { width: 78vw; }
}
@media print {
  .cpnc-watermark { display: none; }
}
