/* 布局层：导航、首屏、产品界面模拟、指标条、页脚 */

/* ---------- 导航 ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: 66px;
  display: flex;
  align-items: center;
  transition: background .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.stuck {
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--line);
}

.nav-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17.5px;
  font-weight: 750;
  letter-spacing: -.01em;
  color: var(--d-ink);
  transition: color .3s var(--ease);
}

.nav.stuck .brand { color: var(--ink); }

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(145deg, #4d84ff, #1c4ad6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 4px 12px rgba(46, 107, 255, .4);
  position: relative;
  flex: none;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 8px 7px;
  border-left: 2px solid rgba(255, 255, 255, .95);
  border-bottom: 2px solid rgba(255, 255, 255, .95);
}

.nav-links { display: flex; align-items: center; gap: 30px; }

.nav-links a {
  font-size: 14.5px;
  color: rgba(238, 242, 248, .72);
  transition: color .2s var(--ease);
}

.nav-links a:hover { color: #fff; }

.nav.stuck .nav-links a { color: var(--ink-2); }

.nav.stuck .nav-links a:hover { color: var(--blue); }

/* ---------- 首屏 ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--d-bg);
  color: var(--d-ink);
  padding: 148px 0 clamp(70px, 8vw, 104px);
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(ellipse 90% 62% at 50% 32%, #000 42%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 62% at 50% 32%, #000 42%, transparent 100%);
}

.hero-glow {
  position: absolute;
  width: 900px;
  height: 620px;
  left: 50%;
  top: -260px;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 32% 46%, rgba(46, 107, 255, .5), transparent 58%),
    radial-gradient(circle at 68% 40%, rgba(34, 211, 238, .28), transparent 56%);
  filter: blur(56px);
  animation: glow 9s ease-in-out infinite;
  pointer-events: none;
}

.hero-in {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(34px, 4vw, 62px);
  align-items: center;
}

.hero h1 { margin: 20px 0 22px; }

.hero .lead { margin: 0 0 32px; max-width: 520px; color: var(--d-ink-2); }

.hero-cta { display: flex; gap: 13px; flex-wrap: wrap; margin-bottom: 30px; }

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 13.8px;
  color: var(--d-ink-3);
}

.hero-notes li { display: flex; align-items: center; gap: 8px; }

.tick {
  width: 15px;
  height: 15px;
  flex: none;
  border-radius: 50%;
  background: rgba(21, 163, 74, .16);
  position: relative;
}

.tick::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 3.5px;
  width: 4px;
  height: 7px;
  border-right: 1.6px solid #2fd07a;
  border-bottom: 1.6px solid #2fd07a;
  transform: rotate(42deg);
}

/* ---------- 产品界面模拟 ---------- */

.app {
  border-radius: 14px;
  background: linear-gradient(168deg, #101a30, #0a1020);
  border: 1px solid rgba(255, 255, 255, .11);
  box-shadow: var(--sh-4), inset 0 1px 0 rgba(255, 255, 255, .07);
  overflow: hidden;
  animation: floaty 7.5s ease-in-out infinite;
}

.app-top {
  height: 36px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 13px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  background: rgba(255, 255, 255, .025);
}

.lights { display: flex; gap: 6px; }

.lights i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .17);
}

.url {
  flex: 1;
  height: 20px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .05);
  font-size: 10.5px;
  color: var(--d-ink-3);
  display: flex;
  align-items: center;
  padding: 0 9px;
  letter-spacing: .02em;
}

.app-body { display: grid; grid-template-columns: 116px minmax(0, 1fr); }

.app-side {
  border-right: 1px solid rgba(255, 255, 255, .06);
  padding: 12px 9px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.app-side b {
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--d-ink-3);
  text-transform: uppercase;
  padding: 0 7px 7px;
  font-weight: 700;
}

.app-side span {
  font-size: 11.5px;
  color: var(--d-ink-2);
  padding: 5px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.app-side span.on {
  background: rgba(46, 107, 255, .16);
  color: #a9c6ff;
  box-shadow: inset 0 0 0 1px rgba(46, 107, 255, .28);
}

.app-main { padding: 14px; display: grid; gap: 12px; }

.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }

.kpi {
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 9px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, .028);
}

.kpi u {
  display: block;
  font-size: 9.8px;
  color: var(--d-ink-3);
  text-decoration: none;
  letter-spacing: .02em;
  margin-bottom: 3px;
}

.kpi b {
  display: block;
  font-size: 15px;
  letter-spacing: -.02em;
  color: #f2f6fc;
  line-height: 1.25;
}

.kpi i { font-style: normal; font-size: 9.6px; color: #2fd07a; }

.kpi.warn b { color: var(--amber); }

.panel {
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 10px;
  padding: 11px 12px 9px;
  background: rgba(255, 255, 255, .022);
}

.panel-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10.5px;
  color: var(--d-ink-3);
  margin-bottom: 10px;
}

.bars { display: flex; align-items: flex-end; gap: 7px; height: 66px; }

.bars i {
  flex: 1;
  border-radius: 3px 3px 1px 1px;
  background: linear-gradient(180deg, #4d84ff, rgba(46, 107, 255, .3));
  transform-origin: bottom;
  animation: grow .9s var(--ease) backwards;
}

.rows { display: grid; gap: 7px; }

.row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 62px;
  align-items: center;
  gap: 9px;
  font-size: 10.5px;
  color: var(--d-ink-2);
}

.row em {
  font-style: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track {
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .07);
  overflow: hidden;
}

.track i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #22d3ee, #2e6bff);
}

.row s { text-decoration: none; text-align: right; color: #dfe6f2; }

/* ---------- 指标条 ---------- */

.stats {
  border-top: 1px solid rgba(255, 255, 255, .08);
  background: var(--d-bg-2);
  padding: 30px 0;
}

.stats-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }

.stat b {
  display: block;
  font-size: clamp(1.42rem, 2.2vw, 1.85rem);
  letter-spacing: -.02em;
  color: #fff;
  line-height: 1.2;
}

.stat span { font-size: 13.5px; color: var(--d-ink-3); }

/* ---------- 页脚 ---------- */

footer {
  padding: 52px 0 30px;
  border-top: 1px solid var(--d-line);
  background: var(--d-bg);
  color: var(--d-ink-3);
  font-size: 14px;
}

.foot-top {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 36px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--d-line);
}

.foot-brand .brand { margin-bottom: 12px; }

.foot-brand p { margin: 0; max-width: 400px; line-height: 1.7; }

.foot-col h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--d-ink-2);
  margin-bottom: 14px;
}

.foot-col li { padding: 5px 0; }

.foot-col a { transition: color .2s var(--ease); }

.foot-col a:hover { color: var(--d-ink); }

.foot-col .wx-inline {
  color: var(--d-ink);
  font-weight: 650;
  letter-spacing: .03em;
}

.foot-bot {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  padding-top: 22px;
  font-size: 13px;
}

.foot-note { max-width: 640px; line-height: 1.65; }

@media (max-width: 760px) {
  .foot-top { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- 响应式 ---------- */

@media (max-width: 1040px) {
  .hero-in { grid-template-columns: 1fr; }
  .app { max-width: 620px; }
  .stats-in { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .hero { padding-top: 116px; }
  .app-body { grid-template-columns: 92px minmax(0, 1fr); }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpis .kpi:last-child { display: none; }
}
