/* ============================================================
   ARCLIGHT — 部署可观测平台
   极简商务 · 蓝灰 · 数据密度
   ============================================================ */
:root {
  --bg: #0b1018;
  --bg-2: #0f1620;
  --bg-3: #141d29;
  --panel: #111a25;
  --line: rgba(151, 180, 214, .12);
  --line-2: rgba(151, 180, 214, .22);

  --ink: #e8eef7;
  --ink-2: rgba(232, 238, 247, .66);
  --ink-3: rgba(232, 238, 247, .42);

  --blue: #4d7cfe;
  --blue-2: #6f9cff;
  --green: #3ddc97;
  --amber: #ffb648;
  --red: #ff6b6b;

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, Consolas, monospace;

  --max: 1160px;
  --ease: cubic-bezier(.2, .7, .3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.02em; font-weight: 650; }
p { margin: 0; }
svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

.shell { width: min(var(--max), 100% - 48px); margin-inline: auto; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 44px; padding: 0 20px; border-radius: 8px;
  font-size: 14px; font-weight: 550;
  border: 1px solid transparent; transition: all .2s var(--ease);
}
.btn-sm { height: 36px; padding: 0 15px; font-size: 13px; border-radius: 7px; }
.btn-lg { height: 50px; padding: 0 26px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-primary {
  background: var(--blue); color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 8px 20px -12px rgba(77,124,254,.9);
}
.btn-primary:hover { background: #3f6bea; transform: translateY(-1px); }
.btn-ghost {
  color: var(--ink); background: rgba(255,255,255,.04);
  border-color: var(--line-2);
}
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(151,180,214,.36); }

/* ---------- 头部 ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
}
.header.scrolled {
  background: rgba(11, 16, 24, .85);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}
.header-inner { height: 68px; display: flex; align-items: center; gap: 36px; }

.brand { display: flex; align-items: center; gap: 9px; }
.brand-mark {
  width: 26px; height: 26px; display: grid; place-items: center;
  border-radius: 7px; background: rgba(77,124,254,.16);
  border: 1px solid rgba(77,124,254,.4); color: var(--blue-2);
}
.brand-mark svg { width: 16px; height: 16px; }
.brand-name { font-size: 15px; font-weight: 700; letter-spacing: .04em; }

.nav { display: flex; gap: 28px; margin-left: 14px; }
.nav a { font-size: 13.5px; color: var(--ink-2); transition: color .2s ease; }
.nav a:hover { color: var(--ink); }

.header-right { display: flex; align-items: center; gap: 9px; margin-left: auto; }

.lang-btn {
  display: inline-flex; align-items: center; gap: 4px;
  height: 32px; padding: 0 10px; border-radius: 7px;
  background: rgba(255,255,255,.04); border: 1px solid var(--line-2);
  color: var(--ink-3); font-size: 11.5px; font-weight: 600;
  transition: all .2s ease;
}
.lang-btn:hover { border-color: var(--blue); color: var(--ink); }
.lang-cur { color: var(--blue-2); }
.lang-sep { opacity: .35; font-size: 11px; }
.lang-alt { opacity: .55; }

.burger { display: none; width: 36px; height: 32px; background: none; border: 0; padding: 7px; }
.burger span { display: block; height: 1.6px; background: var(--ink); margin-bottom: 6px; transition: .25s; }
.burger span:last-child { margin-bottom: 0; }

.mobile-nav {
  display: none; flex-direction: column;
  background: rgba(11,16,24,.98); border-bottom: 1px solid var(--line);
  max-height: 0; overflow: hidden; transition: max-height .35s var(--ease);
}
.mobile-nav.open { max-height: 340px; }
.mobile-nav a { padding: 16px 24px; font-size: 14.5px; color: var(--ink-2); border-bottom: 1px solid var(--line); }

/* ---------- HERO ---------- */
.hero { position: relative; padding: 128px 0 80px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hb-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(151,180,214,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(151,180,214,.055) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 10%, transparent 70%);
}
.hb-glow {
  position: absolute; width: 800px; height: 420px; top: -180px; left: 50%;
  transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(ellipse, rgba(77,124,254,.22), transparent 68%);
  filter: blur(70px);
}
.hero-inner { position: relative; z-index: 1; text-align: center; }

.announce {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 5px 6px 5px 5px; border-radius: 999px;
  background: rgba(255,255,255,.04); border: 1px solid var(--line-2);
  font-size: 12.5px; color: var(--ink-2);
  transition: all .25s ease; margin-bottom: 28px;
}
.announce:hover { border-color: rgba(77,124,254,.5); background: rgba(77,124,254,.08); }
.an-tag {
  padding: 3px 9px; border-radius: 999px;
  background: rgba(77,124,254,.2); color: var(--blue-2);
  font-size: 11px; font-weight: 600;
}
.an-arrow { padding-right: 6px; color: var(--ink-3); transition: transform .25s ease; }
.announce:hover .an-arrow { transform: translateX(3px); }

.hero h1 { font-size: clamp(34px, 5vw, 58px); line-height: 1.12; }
.grad {
  background: linear-gradient(100deg, #9db9ff, #6f9cff 45%, #5eead4);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-sub {
  margin: 22px auto 0; max-width: 620px;
  font-size: 16px; line-height: 1.8; color: var(--ink-2);
}
.hero-actions { display: flex; gap: 11px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 12.5px; color: var(--ink-3); }

/* ---------- 控制台模拟 ---------- */
.console {
  margin-top: 56px; text-align: left;
  border-radius: 12px; overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 90px -40px rgba(0,0,0,.9), 0 0 0 1px rgba(77,124,254,.12);
}
.console-bar {
  display: flex; align-items: center; gap: 7px; padding: 11px 16px;
  border-bottom: 1px solid var(--line); background: rgba(255,255,255,.02);
}
.tl { width: 10px; height: 10px; border-radius: 50%; }
.t1 { background: #ff5f57; } .t2 { background: #febc2e; } .t3 { background: #28c840; }
.console-url {
  margin-left: 10px; font-family: var(--mono); font-size: 11.5px; color: var(--ink-3);
  padding: 3px 10px; border-radius: 5px; background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
}
.console-live {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--green); letter-spacing: .06em;
}
.console-live i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--green);
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

.console-body { display: flex; }
.console-side {
  width: 46px; padding: 14px 0; display: flex; flex-direction: column;
  align-items: center; gap: 10px; border-right: 1px solid var(--line);
}
.cs-item { width: 18px; height: 18px; border-radius: 5px; background: rgba(255,255,255,.07); display: block; }
.cs-item.on { background: rgba(77,124,254,.55); }

.console-main { flex: 1; padding: 20px; min-width: 0; }
.cm-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.cm-title { display: flex; align-items: center; gap: 10px; }
.cm-label { font-family: var(--mono); font-size: 13px; color: var(--ink-2); }
.cm-status {
  font-size: 10.5px; font-weight: 700; letter-spacing: .08em;
  padding: 3px 8px; border-radius: 4px;
}
.cm-status.ok { color: var(--green); background: rgba(61,220,151,.12); border: 1px solid rgba(61,220,151,.3); }
.cm-time { font-size: 12px; color: var(--ink-3); }

.metrics {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: 8px; overflow: hidden; margin-bottom: 18px;
}
.metric {
  background: var(--bg-2); padding: 14px 16px;
  display: flex; flex-direction: column; gap: 7px;
}
.m-label { font-size: 11.5px; color: var(--ink-3); }
.m-val { font-family: var(--mono); font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.m-delta { font-size: 11.5px; font-family: var(--mono); color: var(--ink-3); }
.m-delta.up { color: var(--green); }
.m-delta.good { color: var(--green); }
.m-delta.down { color: var(--blue-2); }

.chart { margin-bottom: 18px; }
.chart svg { width: 100%; height: 120px; }
.chart-line { stroke-dasharray: 700; stroke-dashoffset: 700; }
.chart-line.play { animation: draw 1.8s var(--ease) forwards .3s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.deploys { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.dep {
  display: grid; grid-template-columns: 14px 88px 1fr auto;
  align-items: center; gap: 12px;
  padding: 11px 2px; border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.dep:last-child { border-bottom: 0; }
.dep-dot { width: 7px; height: 7px; border-radius: 50%; }
.dep-dot.ok { background: var(--green); }
.dep-dot.warn { background: var(--amber); }
.dep-sha { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.dep-msg { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dep-time { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); }

/* ---------- Logo 条 ---------- */
.logostrip { padding: 40px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ls-label { text-align: center; font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 22px; }
.ls-row { display: flex; justify-content: center; gap: 52px; flex-wrap: wrap; }
.ls-row span {
  font-size: 15px; font-weight: 650; letter-spacing: .12em; color: rgba(232,238,247,.26);
  transition: color .3s ease;
}
.ls-row span:hover { color: var(--ink-2); }

/* ---------- 区块 ---------- */
.section { padding: 100px 0; }
.sec-head { max-width: 640px; margin-bottom: 52px; }
.eyebrow {
  display: inline-block; font-size: 11.5px; font-weight: 650; letter-spacing: .18em;
  text-transform: uppercase; color: var(--blue-2); margin-bottom: 16px;
}
.sec-head h2 { font-size: clamp(26px, 3.6vw, 40px); }
.sec-sub { margin-top: 18px; font-size: 15px; line-height: 1.8; color: var(--ink-2); }

/* 功能 */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.feat {
  background: var(--bg); padding: 30px 26px;
  transition: background .25s ease;
}
.feat:hover { background: var(--bg-3); }
.feat-icon {
  width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center;
  background: rgba(77,124,254,.12); border: 1px solid rgba(77,124,254,.28);
  color: var(--blue-2); margin-bottom: 18px;
}
.feat-icon svg { width: 19px; height: 19px; }
.feat h3 { font-size: 16px; margin-bottom: 10px; }
.feat p { font-size: 13.5px; line-height: 1.8; color: var(--ink-2); }

/* 怎么用 */
.how { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 54px; }
.how-step { position: relative; padding-top: 26px; border-top: 2px solid rgba(77,124,254,.35); }
.hs-n { font-family: var(--mono); font-size: 12px; color: var(--blue-2); letter-spacing: .1em; }
.how-step h3 { font-size: 17px; margin: 14px 0 10px; }
.how-step p { font-size: 13.5px; line-height: 1.8; color: var(--ink-2); }

.codebox { border-radius: 10px; overflow: hidden; border: 1px solid var(--line-2); background: var(--bg); }
.code-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 16px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.02);
}
.code-file { font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.code-tag { font-size: 11px; color: var(--ink-3); border: 1px solid var(--line-2); padding: 2px 8px; border-radius: 4px; }
.code-body {
  margin: 0; padding: 20px 18px; overflow-x: auto;
  font-family: var(--mono); font-size: 12.8px; line-height: 1.9; color: var(--ink-2);
}
.code-body .k { color: #8ab4ff; }
.code-body .s { color: #7fe0c4; }
.code-body .n { color: #ffc978; }
.code-body .c { color: var(--ink-3); }

/* 数据条 */
.glass { background: rgba(255,255,255,.02); }
.stats-row {
  display: flex; align-items: center; justify-content: center;
  padding: 32px 8px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--bg-2);
}
.stat { display: flex; flex-direction: column; gap: 6px; padding: 0 42px; text-align: center; }
.stat b { font-family: var(--mono); font-size: 27px; font-weight: 600; letter-spacing: -.02em; color: var(--blue-2); }
.stat span { font-size: 12.5px; color: var(--ink-3); }
.stat-sep { width: 1px; height: 38px; background: var(--line); }

/* CTA */
.cta-sec { padding: 90px 0 110px; }
.cta-box {
  text-align: center; padding: 66px 34px; border-radius: 16px;
  border: 1px solid var(--line-2);
  background:
    radial-gradient(ellipse 70% 100% at 50% 0%, rgba(77,124,254,.16), transparent 70%),
    var(--bg-2);
}
.cta-box h2 { font-size: clamp(26px, 3.6vw, 42px); line-height: 1.25; }
.cta-box p { margin-top: 18px; font-size: 15px; color: var(--ink-2); }
.cta-actions { display: flex; gap: 11px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }

/* 页脚 */
.footer-left { }
.footer { border-top: 1px solid var(--line); padding: 44px 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-desc { margin-top: 12px; font-size: 12.5px; color: var(--ink-3); }
.footer-cols { display: flex; gap: 52px; }
.footer-cols h4 { font-size: 12px; color: var(--ink); margin-bottom: 14px; letter-spacing: .06em; }
.footer-cols a { display: block; font-size: 12.5px; color: var(--ink-3); margin-bottom: 9px; transition: color .2s ease; }
.footer-cols a:hover { color: var(--ink); }

/* 动效 */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .8s var(--ease) var(--d, 0s), transform .8s var(--ease) var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }
[data-i18n] { transition: opacity .2s ease; }
body.lang-switching [data-i18n] { opacity: .3; transition: opacity .15s ease; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .nav { display: none; }
  .burger { display: block; }
  .mobile-nav { display: flex; }
  .header-right .btn-ghost { display: none; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .how-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 640px) {
  .shell { width: calc(100% - 32px); }
  .header-inner { height: 60px; }
  .hero { padding: 104px 0 56px; }
  .section { padding: 68px 0; }
  .feat-grid { grid-template-columns: 1fr; }
  .console-side { display: none; }
  .console-main { padding: 14px; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .dep { grid-template-columns: 12px 74px 1fr; row-gap: 4px; }
  .dep-time { grid-column: 2 / -1; }
  .stats-row { flex-direction: column; gap: 20px; padding: 26px 18px; }
  .stat-sep { width: 60%; height: 1px; }
  .stat { padding: 0; }
  .cta-box { padding: 44px 20px; }
  .footer-cols { gap: 34px; }
  .hero-actions .btn, .cta-actions .btn { flex: 1; min-width: 150px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .chart-line { stroke-dashoffset: 0; }
  html { scroll-behavior: auto; }
}
