
html, body { margin: 0; padding: 0; overflow-x: hidden; }
body {
  background: #06070b;
  color: #eef0f6;
  font-family: var(--body-base-font-family);
  -webkit-font-smoothing: antialiased;
}

/* ============ 顶部导航（暗色玻璃） ============ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; padding: 0 var(--spacer-24);
  background: rgba(8, 10, 15, 0.55);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
}
.navbar__brand { display: inline-flex; align-items: center; gap: var(--spacer-8); font-weight: 700; font-size: 16px; color: #fff; }
.navbar__brand-icon { width: 34px; height: 34px; object-fit: contain; }
.navbar__nav { display: inline-flex; align-items: center; gap: var(--spacer-4); }
.navbar__link {
  display: inline-flex; align-items: center; gap: var(--spacer-6);
  height: 34px; padding: 0 var(--spacer-12); border-radius: var(--radius-8);
  font-size: 14px; color: rgba(238,240,246,0.62); text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.navbar__link img { filter: brightness(0) invert(1); opacity: .62; transition: opacity .15s ease; }
.navbar__link:hover { background: rgba(255,255,255,0.07); color: #fff; }
.navbar__link:hover img { opacity: 1; }
.navbar__link.is-active { background: rgba(255,255,255,0.1); color: #fff; font-weight: 600; }
.navbar__link.is-active img { opacity: 1; }
.navbar__divider { width: 1px; height: 20px; background: rgba(255,255,255,0.12); margin: 0 var(--spacer-8); }
.navbar__user { display: inline-flex; align-items: center; gap: var(--spacer-8); font-size: 13px; color: rgba(238,240,246,0.7); }

/* 暗色主题下导航组件校正（覆盖 navbar.js 注入与自身反白） */
/* indicator 高亮块用半透明浅白，不用浅色 token 实心白 */
.navbar__nav__indicator { background: rgba(255,255,255,0.1) !important; box-shadow: none !important; }
/* 用户头像图标保持暗色原样，不要反白成白块 */
#navbarUserAvatar, .navbar__user--trigger > img { filter: none !important; opacity: .8; }
/* 真实头像图片（圆形）不反白 */
.navbar__user img[src*="avatar"], .navbar__user img[src*="app_logos"] { filter: none !important; }
/* 菜单/下拉图标在暗底下反白 */
.navbar__user-menu .ds-menu__item img { filter: brightness(0) invert(1); opacity: .7; }

/* ============ WebGL 全屏背景 ============ */
#gl-stage {
  position: fixed; inset: 0; z-index: 0; display: block;
}
.bg-vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse at 50% 42%, transparent 40%, rgba(3,4,7,0.55) 100%);
}
.bg-grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============ 内容层 ============ */
.page-wrap { position: relative; z-index: 2; }

/* Hero */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px 6vw 80px;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: var(--spacer-8); align-self: flex-start;
  padding: 6px 14px; margin-bottom: 3vh;
  border: 1px solid rgba(120,150,255,0.35); border-radius: 999px;
  background: rgba(80,110,255,0.08);
  color: #9db4ff; font-size: 13px; font-weight: 600; letter-spacing: .04em;
}
.hero__eyebrow img { width: 14px; height: 14px; filter: brightness(0) invert(1); opacity: .8; }
.hero__title {
  margin: 0; font-weight: 700; letter-spacing: -0.03em;
  font-size: clamp(52px, 7.2vw, 116px); line-height: 1.02;
  color: #f4f6fc;
}
.hero__title .line { display: block; overflow: hidden; padding-right: 0.12em; }
.hero__title .word { display: inline-block; will-change: transform; }
.hero__title .accent {
  font-style: italic; font-weight: 600;
  padding-right: 0.12em;
  background: linear-gradient(115deg, #7b9bff 0%, #4f6ef7 45%, #9b7bff 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero__sub {
  margin: 3.4vh 0 0; max-width: 560px;
  font-size: clamp(15px, 1.3vw, 18px); line-height: 1.75; color: rgba(238,240,246,0.66);
}
.hero__cta { display: inline-flex; gap: 14px; margin-top: 4.2vh; flex-wrap: wrap; }
.btn-hero {
  display: inline-flex; align-items: center; gap: 9px;
  height: 52px; padding: 0 30px; border-radius: 12px;
  font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .18s ease, box-shadow .25s ease, background .18s ease;
}
.btn-hero img { width: 17px; height: 17px; }
.btn-hero--primary {
  background: linear-gradient(135deg, #4f6ef7, #6b8cff); color: #fff;
  box-shadow: 0 10px 30px -8px rgba(80,110,255,0.6);
}
.btn-hero--primary:hover { transform: translateY(-3px); box-shadow: 0 16px 40px -8px rgba(80,110,255,0.75); }
.btn-hero--primary img { filter: brightness(0) invert(1); }
.btn-hero--ghost {
  background: rgba(255,255,255,0.05); color: #eef0f6;
  border-color: rgba(255,255,255,0.14); backdrop-filter: blur(8px);
}
.btn-hero--ghost:hover { transform: translateY(-3px); background: rgba(255,255,255,0.1); }
.btn-hero--ghost img { filter: brightness(0) invert(1); opacity: .8; }

/* Hero 底部滚动提示 */
.hero__hint {
  position: absolute; bottom: 34px; left: 6vw;
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: .22em; color: rgba(238,240,246,0.4); text-transform: uppercase;
}
.hero__hint .bar { width: 46px; height: 1px; background: rgba(238,240,246,0.3); position: relative; overflow: hidden; }
.hero__hint .bar::after { content:''; position:absolute; left:-50%; top:0; width:50%; height:100%; background:#7b9bff; animation: hintSlide 1.8s ease-in-out infinite; }
@keyframes hintSlide { 0%{left:-50%} 100%{left:110%} }

/* ============ 玻璃分区（KPI + 功能） ============ */
.panel-zone {
  position: relative; z-index: 2;
  background: linear-gradient(180deg, rgba(6,7,11,0) 0%, rgba(6,7,11,0.82) 12%, #07080d 26%);
  padding: 8vh 6vw 10vh;
}
.section-head { margin-bottom: 4.5vh; }
.section-head h2 { font-size: clamp(26px, 2.6vw, 36px); font-weight: 700; letter-spacing: -0.02em; margin: 0 0 10px; color: #f4f6fc; }
.section-head p { color: rgba(238,240,246,0.55); margin: 0; font-size: 15px; }

/* KPI */
.kpi-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 9vh; }
.kpi-card {
  display: flex; align-items: center; gap: 16px; padding: 22px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px; backdrop-filter: blur(12px);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.kpi-card:hover { transform: translateY(-4px); border-color: rgba(123,155,255,0.4); background: rgba(123,155,255,0.07); }
.kpi-card__icon {
  width: 48px; height: 48px; border-radius: 13px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(79,110,247,0.25), rgba(155,123,255,0.2));
  border: 1px solid rgba(123,155,255,0.3);
}
.kpi-card__icon img { width: 23px; height: 23px; filter: brightness(0) invert(1); }
.kpi-card__num { font-family: var(--font-family-metric, inherit); font-size: 32px; font-weight: 700; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.kpi-card__num .suffix { font-size: 15px; font-weight: 600; color: rgba(238,240,246,0.6); margin-left: 2px; }
.kpi-card__label { font-size: 13px; color: rgba(238,240,246,0.55); margin-top: 5px; }

/* 功能卡 */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card {
  position: relative; overflow: hidden; display: block; padding: 28px;
  background: rgba(255,255,255,0.035); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px; text-decoration: none; color: inherit;
  transition: transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .25s ease;
}
.feature-card::before {
  content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity .3s ease; pointer-events: none;
  background: radial-gradient(400px 200px at var(--mx,50%) var(--my,0%), rgba(123,155,255,0.14), transparent 70%);
}
.feature-card:hover { transform: translateY(-6px); border-color: rgba(123,155,255,0.45); box-shadow: 0 24px 50px -18px rgba(0,0,0,0.6); }
.feature-card:hover::before { opacity: 1; }
.feature-card__icon {
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 20px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(79,110,247,0.28), rgba(155,123,255,0.22));
  border: 1px solid rgba(123,155,255,0.32);
  transition: transform .25s ease;
}
.feature-card:hover .feature-card__icon { transform: scale(1.08) rotate(-5deg); }
.feature-card__icon img { width: 25px; height: 25px; filter: brightness(0) invert(1); }
.feature-card__title { font-size: 18px; font-weight: 600; margin: 0 0 9px; color: #f4f6fc; }
.feature-card__desc { font-size: 13.5px; line-height: 1.65; color: rgba(238,240,246,0.58); margin: 0 0 18px; min-height: 44px; }
.feature-card__go { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; color: #8fa8ff; }
.feature-card__go img { width: 15px; height: 15px; filter: brightness(0) invert(1); opacity: .7; transition: transform .2s ease; }
.feature-card:hover .feature-card__go img { transform: translateX(5px); opacity: 1; }

/* ============ 响应式 ============ */
@media (max-width: 900px) {
  .kpi-band { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .feature-grid, .kpi-band { grid-template-columns: 1fr; }
  .hero { padding: 110px 6vw 70px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ===== 移动端适配 (html.is-mobile / ≤768px) ===== */
/* 触屏设备：悬停位移/阴影改为静态，避免"点击才有反馈"的错位感；地球背景不受影响 */
html.is-mobile .kpi-card:hover,
html.is-mobile .feature-card:hover,
html.is-mobile .btn-hero--primary:hover,
html.is-mobile .btn-hero--ghost:hover { transform: none; }
html.is-mobile .kpi-card:hover { border-color: rgba(255,255,255,0.08); background: rgba(255,255,255,0.04); }

@media (max-width: 768px) {
  /* Hero：保留地球为主视觉，内容层单列、抬高可读性 */
  .hero {
    min-height: 100vh;
    min-height: 100svh;
    padding: 100px 20px 64px;
  }
  .hero__eyebrow { font-size: 12px; padding: 5px 12px; margin-bottom: 2.4vh; }
  .hero__title { font-size: clamp(38px, 11.5vw, 56px); }
  .hero__sub { font-size: 15px; line-height: 1.7; margin-top: 2.4vh; max-width: 100%; }
  .hero__cta { display: flex; width: 100%; gap: 12px; margin-top: 3.2vh; }
  .btn-hero { flex: 1 1 auto; justify-content: center; height: 48px; padding: 0 18px; font-size: 14px; border-radius: 10px; }
  .hero__hint { left: 20px; bottom: 20px; }

  /* 玻璃分区：加深层底色保证文字可读，收窄留白 */
  .panel-zone {
    padding: 7vh 20px 9vh;
    background: linear-gradient(180deg, rgba(6,7,11,0) 0%, rgba(6,7,11,0.9) 10%, #07080d 24%);
  }
  .section-head { margin-bottom: 3.2vh; }
  .section-head h2 { font-size: 24px; }
  .section-head p { font-size: 14px; }

  /* KPI 两列，卡片紧凑 */
  .kpi-band { grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 6vh; }
  .kpi-card { padding: 16px; gap: 12px; border-radius: 14px; }
  .kpi-card__icon { width: 40px; height: 40px; border-radius: 11px; }
  .kpi-card__icon img { width: 20px; height: 20px; }
  .kpi-card__num { font-size: 24px; }
  .kpi-card__label { font-size: 12px; margin-top: 4px; }

  /* 功能卡单列 */
  .feature-grid { grid-template-columns: 1fr; gap: 14px; }
  .feature-card { padding: 20px; border-radius: 16px; }
  .feature-card__icon { width: 44px; height: 44px; border-radius: 12px; margin-bottom: 14px; }
  .feature-card__desc { min-height: 0; margin-bottom: 14px; }
}
@media (max-width: 480px) {
  .hero { padding: 92px 16px 60px; }
  .hero__cta { gap: 10px; }
  .btn-hero { height: 46px; padding: 0 12px; font-size: 13.5px; gap: 7px; }
  .panel-zone { padding: 6vh 16px 8vh; }
  .kpi-band { gap: 10px; }
  .kpi-card { padding: 13px 12px; gap: 10px; }
  .kpi-card__num { font-size: 20px; }
  .kpi-card__label { font-size: 11.5px; }
  .feature-card { padding: 16px; }
}

/* ============ 四大引擎 pill 卡 ============ */
.section-head--gap { margin-top: 9vh; }
.pill-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pill-card {
  display: flex; flex-direction: column; padding: 24px 22px;
  background: rgba(255,255,255,0.035); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px; text-decoration: none; color: inherit;
  transition: transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .25s ease;
}
.pill-card:hover { transform: translateY(-6px); border-color: rgba(123,155,255,0.45); background: rgba(123,155,255,0.06); box-shadow: 0 24px 50px -18px rgba(0,0,0,0.6); }
.pill-card__head { display: flex; align-items: center; gap: 13px; margin-bottom: 14px; }
.pill-card__icon {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(79,110,247,0.28), rgba(155,123,255,0.22));
  border: 1px solid rgba(123,155,255,0.32);
  transition: transform .25s ease;
}
.pill-card:hover .pill-card__icon { transform: scale(1.08) rotate(-5deg); }
.pill-card__icon img { width: 22px; height: 22px; filter: brightness(0) invert(1); }
.pill-card__title { font-size: 16.5px; font-weight: 600; margin: 0; color: #f4f6fc; }
.pill-card__desc { font-size: 13px; line-height: 1.7; color: rgba(238,240,246,0.56); margin: 0 0 16px; flex: 1; }
.pill-card__tags { display: flex; flex-wrap: wrap; gap: 7px; }
.pill-card__tags span {
  font-size: 11.5px; padding: 3px 10px; border-radius: 999px;
  color: rgba(157,180,255,0.85); background: rgba(80,110,255,0.1);
  border: 1px solid rgba(120,150,255,0.22);
}

/* ============ 开放平台卡（复用 feature-card 基底 + 徽标） ============ */
.open-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.open-card .feature-card__desc { min-height: 88px; }
.open-card__badge {
  position: absolute; top: 20px; right: 20px;
  font-family: var(--code-editor-font-family, monospace);
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  padding: 3px 10px; border-radius: 7px;
  color: #9db4ff; background: rgba(80,110,255,0.12);
  border: 1px solid rgba(120,150,255,0.28);
}

/* ============ 页脚 ============ */
.home-footer {
  position: relative; z-index: 2;
  border-top: 1px solid rgba(255,255,255,0.07);
  background: rgba(5,6,10,0.72);
  backdrop-filter: blur(12px);
}
.home-footer__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; padding: 30px 6vw;
}
.home-footer__brand { display: flex; align-items: center; gap: 13px; }
.home-footer__brand img { width: 34px; height: 34px; object-fit: contain; }
.home-footer__name { font-size: 14.5px; font-weight: 600; color: #f4f6fc; }
.home-footer__slogan { font-size: 12px; color: rgba(238,240,246,0.45); margin-top: 2px; }
.home-footer__links { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.home-footer__links a {
  font-size: 13px; color: rgba(238,240,246,0.55); text-decoration: none;
  transition: color .15s ease;
}
.home-footer__links a:hover { color: #9db4ff; }

/* ============ 新板块响应式 ============ */
@media (max-width: 1080px) {
  .pill-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .open-grid { grid-template-columns: 1fr; }
  .open-card .feature-card__desc { min-height: 0; }
}
@media (max-width: 560px) {
  .pill-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .section-head--gap { margin-top: 6vh; }
  .pill-grid { gap: 12px; }
  .pill-card { padding: 18px; border-radius: 16px; }
  .pill-card__icon { width: 38px; height: 38px; border-radius: 10px; }
  .pill-card__icon img { width: 19px; height: 19px; }
  .pill-card__title { font-size: 15px; }
  .pill-card__desc { font-size: 12.5px; margin-bottom: 12px; }
  .home-footer__inner { flex-direction: column; align-items: flex-start; padding: 24px 20px; }
}
