/* ==========================================================================
   VOLCANIC · DARK BEAM HERO — 主页专属样式（不影响其它页面）
   纯黑底 / 双色背景光束 / 白→灰渐变标题 / 蓝→青渐变主按钮 / Dashboard Mockup
   依次淡入上位移进场 · 光束延迟亮起 · Mockup 3D Tilt（JS 在 index.html）
   仅被 index.html 引用；不依赖全局 style.css / theme.js。
   ========================================================================== */

:root {
  --bg: #000000;
  --ink: #f2f5fa;
  --muted: #8b93a3;
  --muted-2: #6c7484;
  --line: rgba(255, 255, 255, .09);
  --blue: #4687eb;
  --cyan: #22d3ee;
  --beam-a: #a0cdff;
  --beam-b: #4687eb;
  --violet: #8b5cf6;
  --mint: #2fd6a3;
  --panel: rgba(255, 255, 255, .028);
  --radius: 26px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body.home-body {
  margin: 0; min-height: 100vh;
  background: var(--bg); color: var(--ink);
  font-family: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font-family: inherit; }
::selection { background: rgba(34, 211, 238, .28); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }

/* ----------------------------- 背景光束（核心氛围） ----------------------------- */
.hero-beams { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.beam {
  position: absolute; top: 0; width: 60vw; height: 80vh; opacity: 1;
  filter: blur(60px); -webkit-filter: blur(60px);
  background: radial-gradient(ellipse at 35% 25%, rgba(160, 205, 255, .75) 0%, rgba(70, 135, 235, .40) 48%, transparent 85%);
  animation: beamIn 1.4s ease-out 1.5s backwards; /* 内容进场（约1s）后延迟 0.5s 淡入亮起 */
}
.beam-left { left: 0; transform-origin: 0 0; transform: rotate(20deg); }
.beam-right { right: 0; transform-origin: 100% 0; transform: rotate(-20deg); }

/* 内容层级高于光束，且背景透明保证光效完整透出 */
.home-main, .home-contact, .home-footer { position: relative; z-index: 1; }

/* ----------------------------- 导航（深色玻璃胶囊） ----------------------------- */
.navbar.home-nav {
  position: sticky; top: 16px; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1140px; width: calc(100% - 36px);
  margin: 16px auto 0; padding: 10px 12px 10px 18px;
  border: 1px solid var(--line); border-radius: 20px;
  background: rgba(10, 12, 18, .55);
  backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4);
  transition: background .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.navbar.home-nav.scrolled { background: rgba(10, 12, 18, .82); box-shadow: 0 14px 40px rgba(0, 0, 0, .45); }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 36px; height: 36px; border-radius: 11px; object-fit: cover; box-shadow: 0 4px 14px rgba(0, 0, 0, .5); }
.brand-text { display: flex; flex-direction: column; line-height: 1.28; }
.brand-name { font-size: 16px; font-weight: 700; letter-spacing: .02em; color: #fff; }
.brand-sub { font-size: 9px; font-weight: 500; letter-spacing: .22em; color: var(--muted-2); text-transform: uppercase; }

.nav-right { display: flex; align-items: center; gap: 8px; }
.home-lang-wrap { position: relative; }
.home-lang-btn {
  display: grid; place-items: center; width: 36px; height: 36px;
  border: 1px solid var(--line); border-radius: 12px;
  background: rgba(255, 255, 255, .03); color: #c6cedb; cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.home-lang-btn:hover { background: rgba(255, 255, 255, .08); color: #fff; }

.lang-menu {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 120;
  min-width: 136px; padding: 6px;
  border: 1px solid var(--line); border-radius: 16px;
  background: rgba(14, 17, 24, .96);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
}
.lang-menu[hidden] { display: none; }
.lang-menu button {
  display: block; width: 100%; text-align: left; padding: 10px 13px;
  border: 0; border-radius: 11px; background: transparent;
  color: #c6cedb; font-size: 13px; cursor: pointer; transition: background .18s ease, color .18s ease;
}
.lang-menu button:hover { background: rgba(255, 255, 255, .07); }
.lang-menu button.active { background: rgba(34, 211, 238, .14); color: var(--cyan); font-weight: 600; }

.home-register {
  padding: 9px 14px; border-radius: 12px; font-size: 13px; font-weight: 500;
  color: #c6cedb; text-decoration: none; transition: background .2s ease, color .2s ease;
}
.home-register:hover { background: rgba(255, 255, 255, .07); color: #fff; }

.home-login {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 16px; border-radius: 12px;
  background: #f4f7fc; color: #0a0d14; text-decoration: none;
  font-size: 13px; font-weight: 600; white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease;
}
.home-login:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(160, 205, 255, .18); }
.home-login svg { flex: none; }
.home-login-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 3px rgba(47, 214, 163, .2); }

/* ----------------------------- Hero 内容布局（居中） ----------------------------- */
.home-main { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.home-hero { padding: 74px 0 0; text-align: center; }
.hero-inner { max-width: 880px; margin: 0 auto; }

/* 顶部胶囊标签 */
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 16px 8px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .04);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font-size: 12px; letter-spacing: .14em; color: #c3cbd8; text-transform: uppercase;
  animation: riseIn .64s cubic-bezier(.2, .8, .25, 1) backwards;
}
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px rgba(34, 211, 238, .9), 0 0 22px rgba(34, 211, 238, .5); }

/* 主标题：大字号 / 粗体 / 紧凑字距 / 白→中灰自上而下渐变 */
.home-title {
  margin: 28px 0 0; min-height: 1.1em;
  font-size: clamp(40px, 7vw, 78px); font-weight: 800;
  letter-spacing: -.03em; line-height: 1.08;
  background: linear-gradient(180deg, #ffffff 0%, #9aa3b2 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  animation: riseIn .64s .08s cubic-bezier(.2, .8, .25, 1) backwards;
}
/* .home-accent 不单独设色，继承标题整体渐变 */
.typing-caret {
  display: inline-block; width: 4px; height: .9em; margin-left: 4px;
  vertical-align: -.1em; border-radius: 2px;
  background: linear-gradient(180deg, var(--beam-a), var(--cyan));
  -webkit-text-fill-color: initial;
  animation: caretBlink 1s steps(1) infinite;
}

/* 副标题：中等偏大字号 / 正常粗细 / 灰色 */
.home-sub {
  margin: 24px auto 0; max-width: 660px;
  font-size: clamp(15px, 1.6vw, 18px); font-weight: 400; line-height: 1.85; color: var(--muted);
  animation: riseIn .64s .16s cubic-bezier(.2, .8, .25, 1) backwards;
}

/* 按钮组：左主按钮（蓝→青渐变），右次要按钮 */
.hero-actions {
  margin-top: 36px; display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap;
  animation: riseIn .64s .24s cubic-bezier(.2, .8, .25, 1) backwards;
}
.home-cta {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 15px 26px; border-radius: 999px; text-decoration: none;
  font-size: 15px; font-weight: 700; letter-spacing: .01em; color: #04222c;
  background: linear-gradient(120deg, #4f8dff 0%, #2fd8ef 100%);
  box-shadow: 0 14px 34px rgba(70, 135, 235, .32), 0 0 0 1px rgba(160, 205, 255, .25) inset;
  transition: transform .25s cubic-bezier(.2, .8, .25, 1), box-shadow .25s ease;
}
.home-cta:hover { transform: translateY(-3px); box-shadow: 0 22px 46px rgba(70, 135, 235, .42), 0 0 0 1px rgba(160, 205, 255, .35) inset; }
.home-cta svg { transition: transform .25s ease; }
.home-cta:hover svg { transform: translateX(3px); }
.home-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 26px; border-radius: 999px; text-decoration: none;
  font-size: 15px; font-weight: 500; color: #dbe2ec;
  border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .03);
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}
.home-secondary:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .28); transform: translateY(-3px); }

.home-note { margin: 18px 0 0; font-size: 12px; letter-spacing: .06em; color: var(--muted-2); animation: riseIn .64s .3s cubic-bezier(.2, .8, .25, 1) backwards; }

/* ----------------------------- Dashboard 产品 Mockup（1150×750） ----------------------------- */
.mockup-wrap {
  max-width: 1150px; margin: 76px auto 0; perspective: 1600px;
  animation: riseIn .7s .36s cubic-bezier(.2, .8, .25, 1) backwards;
}
.mockup {
  position: relative; display: flex; flex-direction: column;
  width: 100%; aspect-ratio: 1150 / 750; overflow: hidden;
  border-radius: 20px; border: 1px solid rgba(255, 255, 255, .1);
  background: linear-gradient(180deg, #0b0e15 0%, #07090e 100%);
  box-shadow: 0 50px 120px rgba(0, 0, 0, .65), 0 0 90px rgba(70, 135, 235, .1);
  transform-style: preserve-3d; transition: transform .25s ease-out; will-change: transform;
}
.mockup::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(160, 205, 255, .55), transparent); }

.mk-top { display: flex; align-items: center; gap: 14px; height: 48px; padding: 0 16px; border-bottom: 1px solid rgba(255, 255, 255, .06); flex: none; }
.mk-dots { display: flex; gap: 6px; }
.mk-dots i { width: 10px; height: 10px; border-radius: 50%; background: #2a2f3a; }
.mk-dots i:nth-child(1) { background: #ff5f57; } .mk-dots i:nth-child(2) { background: #febc2e; } .mk-dots i:nth-child(3) { background: #28c840; }
.mk-search { flex: 1; max-width: 340px; height: 22px; margin: 0 auto; border-radius: 7px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .05); }
.mk-avatar { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--cyan)); flex: none; }

.mk-body { flex: 1; display: grid; grid-template-columns: 19% minmax(0, 1fr) 24%; gap: 12px; padding: 12px; min-height: 0; }
.mk-side, .mk-config, .mk-panel { border-radius: 14px; background: var(--panel); border: 1px solid rgba(255, 255, 255, .055); }
.mk-side { display: flex; flex-direction: column; gap: 12px; padding: 14px 12px; min-height: 0; }
.mk-brand { display: flex; align-items: center; gap: 8px; }
.mk-brand i { width: 20px; height: 20px; border-radius: 6px; background: linear-gradient(135deg, var(--blue), var(--cyan)); flex: none; }
.mk-brand b { width: 58%; height: 9px; border-radius: 4px; background: rgba(255, 255, 255, .14); }
.mk-nav { display: flex; flex-direction: column; gap: 3px; margin-top: 4px; }
.mk-nav span { position: relative; padding: 8px 10px; border-radius: 8px; font-size: clamp(8px, 1.05vw, 12px); color: #7f8898; white-space: nowrap; }
.mk-nav span.on { color: #dff3ff; background: rgba(70, 135, 235, .16); }
.mk-nav span.on::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 2px; border-radius: 2px; background: var(--cyan); }
.mk-side-foot { margin-top: auto; display: flex; align-items: center; gap: 8px; }
.mk-side-foot i { width: 18px; height: 18px; border-radius: 50%; background: rgba(255, 255, 255, .1); flex: none; }
.mk-side-foot b { width: 52%; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .08); }

.mk-center { display: grid; grid-template-rows: 1.2fr 1fr; gap: 12px; min-height: 0; }
.mk-panel { padding: 14px; display: flex; flex-direction: column; min-height: 0; }
.mk-panel-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; flex: none; }
.mk-panel-h b { width: 34%; height: 10px; border-radius: 4px; background: rgba(255, 255, 255, .14); }
.mk-panel-h span { width: 16%; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .07); }
.mk-bars { flex: 1; display: flex; align-items: flex-end; gap: 6px; min-height: 0; }
.mk-bars i { flex: 1; border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, rgba(34, 211, 238, .9), rgba(70, 135, 235, .3)); }
.mk-bars i:nth-child(3n) { background: linear-gradient(180deg, rgba(160, 205, 255, .9), rgba(70, 135, 235, .3)); }
.mk-logs .mk-log { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid rgba(255, 255, 255, .045); }
.mk-logs .mk-log:first-of-type { border-top: 0; }
.mk-log i { width: 7px; height: 7px; border-radius: 50%; background: #3a4252; flex: none; }
.mk-log i.g { background: var(--cyan); box-shadow: 0 0 8px rgba(34, 211, 238, .6); }
.mk-log i.p { background: var(--violet); }
.mk-log i.m { background: var(--mint); }
.mk-log b { flex: 1; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .08); }
.mk-log em { width: 14%; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .05); }

.mk-config { padding: 14px; display: flex; flex-direction: column; gap: 15px; min-height: 0; }
.mk-set { display: flex; align-items: center; justify-content: space-between; }
.mk-set span { width: 46%; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .1); }
.toggle { width: 30px; height: 17px; border-radius: 999px; background: #2a303c; position: relative; flex: none; }
.toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: 50%; background: #8b93a3; }
.toggle.on { background: rgba(34, 211, 238, .32); }
.toggle.on::after { left: 15px; background: var(--cyan); }
.mk-slider span { display: block; width: 40%; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .1); }
.mk-slider .track { margin-top: 9px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .08); }
.mk-slider .track i { display: block; width: 62%; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--blue), var(--cyan)); }
.mk-colors { display: flex; gap: 8px; margin-top: auto; }
.mk-colors i { width: 16px; height: 16px; border-radius: 50%; }
.mk-colors i:nth-child(1) { background: var(--violet); }
.mk-colors i:nth-child(2) { background: var(--cyan); }
.mk-colors i:nth-child(3) { background: var(--mint); }

/* ----------------------------- 能力入口（深色模块化卡片） ----------------------------- */
.home-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; max-width: 1080px; margin: 96px auto 0; text-align: left; }
.home-item {
  display: block; padding: 24px 22px; text-decoration: none;
  border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line);
  transition: transform .3s cubic-bezier(.2, .8, .25, 1), border-color .3s ease, background .3s ease;
  animation: riseIn .7s cubic-bezier(.2, .8, .25, 1) backwards;
}
.home-item:nth-child(1) { animation-delay: .05s; } .home-item:nth-child(2) { animation-delay: .12s; }
.home-item:nth-child(3) { animation-delay: .19s; } .home-item:nth-child(4) { animation-delay: .26s; }
.home-item:hover { transform: translateY(-6px); border-color: rgba(34, 211, 238, .35); background: rgba(255, 255, 255, .05); }
.home-item-icon {
  display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 18px;
  border-radius: 14px; color: var(--cyan);
  background: rgba(34, 211, 238, .1); border: 1px solid rgba(34, 211, 238, .16);
}
.home-item-title { font-size: 16px; font-weight: 700; color: #e9edf4; }
.home-item-sub { margin-top: 7px; font-size: 12.5px; line-height: 1.7; color: var(--muted); }
.home-item.placeholder-item { cursor: default; }
.home-item.placeholder-item:hover { transform: none; border-color: var(--line); background: var(--panel); }
.home-item.placeholder-item .home-item-icon { color: #59616f; background: rgba(255, 255, 255, .04); border-color: var(--line); }
.home-item.placeholder-item .home-item-sub { letter-spacing: 1px; }

/* ----------------------------- DSE 倒计时 ----------------------------- */
.home-dse { max-width: 1080px; margin: 26px auto 0; animation: riseIn .7s .3s cubic-bezier(.2, .8, .25, 1) backwards; }
.dse-countdown { padding: 40px 30px; text-align: center; border-radius: 28px; background: var(--panel); border: 1px solid var(--line); }
.dse-title { font-size: 19px; font-weight: 700; color: #e9edf4; }
.dse-sub { margin-top: 8px; font-size: 13px; color: var(--muted); }
.dse-grid { display: flex; justify-content: center; gap: 40px; margin-top: 26px; }
.dse-unit { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 56px; }
.dse-unit b { font-size: 40px; font-weight: 800; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: #fff; }
.dse-unit span { font-size: 12px; color: var(--muted); letter-spacing: .1em; }
.dse-note { margin-top: 22px; font-size: 12px; color: var(--muted-2); letter-spacing: .06em; }

/* ----------------------------- 联系 / 页脚 ----------------------------- */
.home-contact { max-width: 1080px; margin: 76px auto 0; text-align: center; animation: riseIn .7s .36s cubic-bezier(.2, .8, .25, 1) backwards; }
.contact-title { font-size: 16px; font-weight: 700; margin-bottom: 20px; color: #e9edf4; }
.contact-buttons { display: flex; justify-content: center; gap: 14px; }
.contact-btn {
  display: grid; place-items: center; width: 46px; height: 46px;
  border-radius: 15px; color: #c6cedb; background: var(--panel); border: 1px solid var(--line);
  transition: transform .25s ease, color .25s ease, border-color .25s ease;
}
.contact-btn:hover { transform: translateY(-4px); color: var(--cyan); border-color: rgba(34, 211, 238, .35); }
.home-footer { padding: 56px 20px 44px; text-align: center; font-size: 12px; color: var(--muted-2); letter-spacing: .06em; }

/* ----------------------------- 动效 ----------------------------- */
@keyframes riseIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes beamIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes caretBlink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

/* ----------------------------- 响应式 ----------------------------- */
@media (max-width: 1024px) {
  .home-grid { grid-template-columns: repeat(2, 1fr); }
  .dse-grid { gap: 30px; }
}
@media (max-width: 760px) {
  .brand-sub { display: none; }
  .home-hero { padding-top: 52px; }
  .hero-badge { letter-spacing: .08em; }
  .mockup-wrap { margin-top: 54px; }
  .mk-body { gap: 8px; padding: 8px; }
  .mk-side, .mk-config, .mk-panel { padding: 10px; }
  .home-grid { margin-top: 72px; }
  .dse-grid { gap: 20px; }
  .dse-unit b { font-size: 32px; }
}
@media (max-width: 520px) {
  .home-main { padding: 0 16px; }
  .home-grid { grid-template-columns: 1fr; gap: 14px; }
  .home-register { display: none; }
  .home-cta, .home-secondary { padding: 13px 22px; font-size: 14px; }
  .mk-config { display: none; }              /* 小屏隐藏配置栏，保证可读 */
  .mk-body { grid-template-columns: 24% minmax(0, 1fr); }
  .dse-countdown { padding: 30px 20px; }
  .dse-grid { gap: 14px; }
  .dse-unit { min-width: 48px; }
  .dse-unit b { font-size: 28px; }
}

/* ----------------------------- 降低动效 ----------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .beam { opacity: 1; }
  .mockup { transform: none !important; }
}
