:root {
  --bg: #fff;
  --surface: #f7f7f5;
  --ink: #141414;
  --muted: #6e6e69;
  --line: #e3e1da;
  --red: #a32f1f;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3 { overflow-wrap: break-word; }
.shell { width: min(1200px, calc(100% - 80px)); margin-inline: auto; }
.site-header { height: 76px; padding-inline: max(40px, calc((100% - 1200px) / 2)); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); }
.brand { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 19px; font-weight: 650; }
.brand small { color: var(--muted); font-size: 14px; font-weight: 400; }
.brand-mark { width: 9px; height: 9px; border-radius: 2px; background: var(--red); transform: rotate(45deg); }
.header-link { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; font-weight: 600; }
.header-link:hover { border-color: var(--ink); background: var(--surface); }
.eyebrow { margin: 0; color: var(--red); font-size: 11px; font-weight: 700; letter-spacing: .12em; }

.hero { min-height: 610px; padding-block: 112px 96px; display: grid; grid-template-columns: 1.25fr .75fr; gap: 86px; align-items: center; }
.hero h1, .admin-intro h1 { margin: 18px 0 24px; font-size: 58px; line-height: 1.18; letter-spacing: -.02em; font-weight: 650; }
.lede { max-width: 650px; margin: 0; color: var(--muted); font-size: 18px; line-height: 1.85; }
.status-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-top: 38px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.status-row strong { color: var(--ink); }
.status-dot, .environment-state span { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: pulse 2.4s ease-in-out infinite; }
.signal-card { min-height: 310px; padding: 28px; border: 1px solid var(--ink); display: flex; flex-direction: column; justify-content: space-between; }
.signal-head { display: flex; justify-content: space-between; font-size: 10px; letter-spacing: .14em; }
.signal-line { position: relative; display: flex; justify-content: space-between; align-items: center; margin-inline: 12px; }
.signal-line::before { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: var(--ink); }
.signal-line i { position: relative; z-index: 1; width: 13px; height: 13px; background: var(--red); border: 4px solid #fff; outline: 1px solid var(--red); transform: rotate(45deg); }
.signal-card p { margin: 0; font-size: 10px; letter-spacing: .14em; }

.flow-section { padding-block: 96px; background: var(--surface); border-block: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 40px; align-items: end; }
.section-heading .eyebrow { grid-column: 1 / -1; }
.section-heading h2, .notice h2 { margin: 0; font-size: 34px; line-height: 1.35; }
.section-heading > p:last-child { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.step-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 54px; border-top: 2px solid var(--ink); }
.step-grid article { position: relative; padding: 32px 30px 12px 0; }
.step-grid article::before { content: ""; position: absolute; top: -6px; left: 0; width: 10px; height: 10px; border: 1px solid var(--ink); background: var(--surface); }
.step-grid span, .module-index { color: var(--red); font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.step-grid h3 { margin: 22px 0 10px; font-size: 18px; }
.step-grid p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.notice { padding-block: 92px; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: end; }
.notice h2 { margin-top: 14px; }
.notice > p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.8; }

.site-footer { min-height: 92px; padding-inline: max(40px, calc((100% - 1200px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 20px; background: var(--ink); color: #bdbdb7; font-size: 12px; }

.admin-main { min-height: calc(100vh - 168px); padding-block: 82px 96px; }
.admin-intro { display: flex; justify-content: space-between; gap: 60px; align-items: end; }
.admin-intro h1 { margin-bottom: 12px; font-size: 48px; }
.admin-intro p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 16px; }
.environment-state { display: inline-flex; align-items: center; gap: 10px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; white-space: nowrap; }
.module-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 58px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.module-grid article { min-height: 270px; padding: 34px 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.module-grid h2 { margin: 34px 0 14px; font-size: 20px; }
.module-grid p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.module-state { margin-top: auto; padding-top: 28px; color: var(--muted); font-size: 12px; }
.module-state::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: #b7b5af; }
.system-panel { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 34px; background: var(--surface); border: 1px solid var(--line); }
.system-panel div { padding: 22px 24px; }
.system-panel div + div { border-left: 1px solid var(--line); }
.system-panel span, .system-panel strong { display: block; }
.system-panel span { margin-bottom: 9px; color: var(--muted); font-size: 11px; }
.system-panel strong { font-size: 14px; font-weight: 600; }
.admin-note { margin-top: 32px; padding: 24px 26px; border-left: 3px solid var(--red); background: var(--surface); }
.admin-note strong { font-size: 14px; }
.admin-note p { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; }

@keyframes pulse { 0%, 100% { opacity: .45; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.15); } }

@media (max-width: 900px) {
  .shell { width: auto; margin-inline: 40px; }
  .site-header, .site-footer { padding-inline: 40px; }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 54px; padding-block: 84px 74px; }
  .hero h1 { font-size: 48px; }
  .signal-card { min-height: 260px; }
  .step-grid { grid-template-columns: 1fr 1fr; }
  .notice { gap: 48px; }
  .module-grid { grid-template-columns: 1fr; }
  .module-grid article { min-height: 230px; }
  .system-panel { grid-template-columns: 1fr 1fr; }
  .system-panel div:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .system-panel div:nth-child(4) { border-top: 1px solid var(--line); }
}

@media (max-width: 600px) {
  .shell { margin-inline: 20px; }
  .site-header { height: 62px; padding-inline: 20px; }
  .brand small { display: none; }
  .header-link { padding-inline: 12px; }
  .hero { padding-block: 64px 54px; gap: 38px; }
  .hero h1, .admin-intro h1 { margin-block: 16px 18px; font-size: 36px; line-height: 1.25; }
  .lede { font-size: 16px; line-height: 1.75; }
  .status-row { align-items: flex-start; }
  .status-row span:last-child { width: 100%; padding-left: 20px; }
  .signal-card { min-height: 210px; padding: 22px; }
  .flow-section { padding-block: 62px; }
  .section-heading { grid-template-columns: 1fr; }
  .section-heading .eyebrow { grid-column: auto; }
  .section-heading h2, .notice h2 { font-size: 28px; }
  .step-grid { grid-template-columns: 1fr; margin-top: 38px; border-top: 0; }
  .step-grid article { padding: 25px 0; border-top: 1px solid var(--line); }
  .step-grid article::before { display: none; }
  .step-grid h3 { margin-top: 12px; }
  .notice { padding-block: 62px; grid-template-columns: 1fr; gap: 26px; }
  .site-footer { min-height: 108px; padding: 24px 20px; flex-direction: column; align-items: flex-start; justify-content: center; }
  .admin-main { padding-block: 58px 70px; }
  .admin-intro { display: block; }
  .admin-intro > div:first-child > p:last-child { line-height: 1.7; }
  .environment-state { margin-top: 28px; }
  .module-grid { margin-top: 40px; border-left: 0; }
  .module-grid article { min-height: 240px; padding-inline: 24px; border-left: 1px solid var(--line); }
  .system-panel { grid-template-columns: 1fr; }
  .system-panel div + div, .system-panel div:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; }
}

