/* QMAIGEO 官网首页深色主题（仅 index.html 引入）
   首屏严格按版本 A 设计稿还原：以去字底图作 16:9 舞台背景，文字与数据卡按设计稿坐标以 cqw 等比定位
   其余页面仍使用 style.css 的浅色体系，互不影响 */

html.dark-index, body.dark-index { background: #050914; }

body.dark-index {
  color: #eaf1ff;
  overflow-x: hidden;
  background:
    radial-gradient(1180px 700px at 76% -12%, rgba(46,120,255,.28), transparent 62%),
    radial-gradient(760px 520px at 4% 4%, rgba(0,190,220,.12), transparent 66%),
    linear-gradient(180deg, #050914 0%, #071026 30%, #0a1730 66%, #050b18 100%);
  background-attachment: fixed;
}

body.dark-index .container { max-width: 1160px; }

/* ---------- 导航（对齐设计稿：右侧只留一个描边胶囊） ---------- */
body.dark-index .nav {
  background: rgba(5,10,22,.82);
  border-bottom: 1px solid rgba(90,140,220,.14);
}
body.dark-index .nav::after {
  background: linear-gradient(90deg, transparent, rgba(94,231,255,.45) 30%, rgba(35,97,232,.5) 70%, transparent);
}
body.dark-index .nav-in { height: 72px; }
body.dark-index .brand { color: #ffffff; font-size: 21px; }
body.dark-index .brand em { color: #4fc3ff; }
body.dark-index .brand .brand-mark { height: 40px; filter: drop-shadow(0 0 14px rgba(79,195,255,.45)); }
body.dark-index .nav-links { gap: 0; color: #b9c8e2; font-size: 15px; margin-left: auto; }
body.dark-index .nav-links a { padding: 4px 18px; position: relative; }
body.dark-index .nav-links a + a::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 13px; background: rgba(140,175,235,.28);
}
body.dark-index .nav-links a:hover { color: #7dd3fc; }
body.dark-index .nav-cta { margin-left: 20px; flex-shrink: 0; }
body.dark-index .btn-sm { flex: 0 0 auto; white-space: nowrap; }
body.dark-index .btn-sm.ghost {
  background: rgba(255,255,255,.03);
  color: #dbe7fb;
  border: 1px solid rgba(150,185,245,.40);
  border-radius: 8px;
  padding: 8px 20px;
  font-size: 14px;
}
body.dark-index .btn-sm.ghost:hover {
  background: rgba(34,211,238,.10);
  border-color: rgba(34,211,238,.6);
  color: #9fe9ff;
}

/* ---------- 首屏舞台：与设计稿 2047×1152 同比例 ---------- */
body.dark-index .hero { padding: 0; background: #050914; position: relative; }
body.dark-index .hero-stage {
  position: relative;
  width: 100%;
  max-width: 2047px;
  margin: 0 auto;
  aspect-ratio: 2047 / 1152;
  container-type: inline-size;
  background: #050914 url(/assets/hero-bg.jpg) center center / cover no-repeat;
  overflow: hidden;
}

/* 文案区：设计稿中标题左起 7.6%、顶 21.4% */
body.dark-index .hero-copy {
  position: absolute;
  left: 7.4%;
  top: 20.6%;
  width: 48%;
  z-index: 3;
  text-align: left;
}
body.dark-index .hero h1 {
  font-size: 6.4vw;
  font-size: 7cqw;
  line-height: 1.06;
  letter-spacing: -0.1cqw;
  font-weight: 800;
  margin: 0;
  color: #ffffff;
  text-shadow: 0 0 3cqw rgba(120,180,255,.28);
}
body.dark-index .hero h1 em {
  font-style: normal;
  background: linear-gradient(92deg, #7ff0ff 0%, #43c8ff 40%, #5b8dff 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 0 1.4cqw rgba(70,190,255,.62));
}
body.dark-index .hero .sub {
  font-size: 1.3vw;
  font-size: 1.45cqw;
  color: #c7d7ef;
  margin: 1.7cqw 0 0;
  letter-spacing: .02cqw;
  max-width: none;
  white-space: nowrap;
  text-shadow: 0 0 1cqw rgba(4,10,22,.75);
}
/* 按钮：文案下方常规流布局，两个按钮统一高度/圆角/字号 */
body.dark-index .hero .cta {
  margin: 2.7cqw 0 0;
  display: flex;
  align-items: center;
  gap: 1.0cqw;
  flex-wrap: wrap;
}
body.dark-index .btn-primary,
body.dark-index .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  height: 3.25cqw;
  padding: 0 1.7cqw;
  border-radius: 0.6cqw;
  font-size: 1.42cqw;
  font-weight: 600;
  letter-spacing: .02cqw;
  line-height: 1;
  white-space: nowrap;
  box-sizing: border-box;
  transition: box-shadow .18s, transform .18s, border-color .18s, background .18s;
}
body.dark-index .btn-primary {
  min-width: 11.9cqw;
  background: #2f6bff;
  color: #ffffff;
  box-shadow: 0 0 1.8cqw rgba(47,107,255,.42), inset 0 1px 0 rgba(255,255,255,.18);
}
body.dark-index .btn-primary:hover {
  background: #3b78ff; transform: translateY(-1px);
  box-shadow: 0 0 2.6cqw rgba(47,107,255,.6), inset 0 1px 0 rgba(255,255,255,.22);
}
body.dark-index .btn-ghost {
  min-width: 11.1cqw;
  background: rgba(10,22,44,.38);
  border: 1px solid rgba(150,185,245,.38);
  color: #dfe9fb;
}
body.dark-index .btn-ghost:hover {
  border-color: rgba(34,211,238,.6); color: #9fe9ff; background: rgba(34,211,238,.08);
}

/* 数据卡：设计稿右下三张并排，覆盖底图卡框 */
body.dark-index .data-cards {
  position: absolute;
  right: 4.1%;
  bottom: 5.7%;
  z-index: 4;
  display: flex;
  gap: 1cqw;
}
body.dark-index .dcard {
  width: 11.7cqw;
  height: 9.05cqw;
  border-radius: 0.7cqw;
  padding: 1.15cqw 1.05cqw;
  display: flex; flex-direction: column; justify-content: flex-start; gap: 0.45cqw;
  background: linear-gradient(180deg, rgba(18,38,74,.62), rgba(8,18,38,.72));
  border: 1px solid rgba(120,180,255,.26);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 0 2cqw rgba(20,80,200,.26);
  backdrop-filter: blur(5px) saturate(140%);
  -webkit-backdrop-filter: blur(5px) saturate(140%);
}
body.dark-index .dcard .dk {
  font-size: 1.27cqw;
  font-weight: 600;
  color: #e8f1ff;
  letter-spacing: .02cqw;
}
body.dark-index .dcard .dv {
  font-size: 0.98cqw;
  color: #93b0d6;
  line-height: 1.5;
}

/* ---------- 区块统一深色 ---------- */
body.dark-index .section { padding: 76px 0; }
body.dark-index .section.soft {
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.008));
  border-top: 1px solid rgba(120,170,255,.12);
  border-bottom: 1px solid rgba(120,170,255,.12);
}
body.dark-index .sec-kicker {
  color: #7dd3fc;
  background: rgba(34,211,238,.09);
  border-color: rgba(34,211,238,.24);
}
body.dark-index .sec-head h2 { color: #f2f7ff; font-size: 31px; letter-spacing: -.7px; }
body.dark-index .sec-head p { color: #9eb0ce; }

body.dark-index .card,
body.dark-index .product {
  background: linear-gradient(180deg, rgba(20,38,74,.62), rgba(10,20,40,.72));
  border: 1px solid rgba(120,170,255,.20);
  box-shadow: 0 16px 38px rgba(2,6,16,.5), inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
body.dark-index .card:hover,
body.dark-index .product:hover {
  border-color: rgba(34,211,238,.42);
  box-shadow: 0 20px 50px rgba(2,6,16,.62), 0 0 34px rgba(34,211,238,.14);
}
body.dark-index .card h3,
body.dark-index .product h3 { color: #f2f7ff; }
body.dark-index .card p,
body.dark-index .product .desc { color: #9eb0ce; }
body.dark-index .product ul li { color: #b6c6e2; }
body.dark-index .step-num {
  background: rgba(34,211,238,.16);
  color: #7dd3fc;
  border-color: rgba(34,211,238,.34);
  box-shadow: 0 0 16px rgba(34,211,238,.2);
}

body.dark-index .news-item {
  background: linear-gradient(180deg, rgba(18,34,66,.55), rgba(9,18,36,.68));
  border: 1px solid rgba(120,170,255,.18);
  box-shadow: none;
}
body.dark-index .news-item:hover { border-color: rgba(34,211,238,.4); background: rgba(34,211,238,.07); }
body.dark-index .news-item h3 { color: #eaf1ff; }
body.dark-index .news-item p { color: #93a6c6; }
body.dark-index .news-item .cat { color: #7dd3fc; }
body.dark-index .news-item .date { color: #7d8fb0; }

body.dark-index .btn-mid {
  background: rgba(255,255,255,.055);
  border-color: rgba(120,170,255,.26);
  color: #d7e4fb;
}
body.dark-index .btn-mid:hover { border-color: rgba(34,211,238,.5); color: #9fe9ff; box-shadow: 0 8px 24px rgba(34,211,238,.18); }

/* ---------- 页脚 ---------- */
body.dark-index footer {
  background: #04070f;
  border-top: 1px solid rgba(120,170,255,.16);
  color: #8fa4c8;
}
body.dark-index footer h4 { color: #d7e4fb; }
body.dark-index footer a:hover { color: #7dd3fc; }
body.dark-index .foot-bottom { border-top-color: rgba(120,170,255,.14); color: #7d8fb0; }
body.dark-index .foot-bottom a { color: #93a6c6; }

/* ---------- 内页通用（产品中心 / 资讯 / 关于 / 联系 / FAQ / 说明页） ---------- */
body.dark-index .crumb { color: #8fa4c8; font-size: 13px; }
body.dark-index .crumb a:hover { color: #7dd3fc; }
body.dark-index .crumb span { color: #46587a; }

body.dark-index .page-head h1 { color: #f2f7ff; }
body.dark-index .page-head .lede { color: #a8bcd8; }

/* 覆盖内页里硬编码的浅色内联样式 */
body.dark-index [style*="#2361e8"] { color: #6fb3ff !important; }
body.dark-index [style*="#eef3ff"] {
  color: #7dd3fc !important;
  background: rgba(34,211,238,.10) !important;
  border: 1px solid rgba(34,211,238,.22);
}
body.dark-index .eyebrow {
  color: #7dd3fc;
  background: rgba(34,211,238,.10);
  border: 1px solid rgba(34,211,238,.22);
}

body.dark-index .tbl { color: #c7d7ef; }
body.dark-index .tbl th {
  background: rgba(46,107,255,.14);
  color: #e8f1ff;
  border-bottom: 1px solid rgba(120,170,255,.24);
}
body.dark-index .tbl td { color: #b6c6e2; border-bottom: 1px solid rgba(120,170,255,.14); }
body.dark-index .tbl tbody tr:hover { background: rgba(34,211,238,.06); }

body.dark-index .article { color: #c7d7ef; }
body.dark-index .article h1,
body.dark-index .article h2,
body.dark-index .article h3 { color: #f2f7ff; }
body.dark-index .article p,
body.dark-index .article li { color: #b9c9e4; }
body.dark-index .article .meta { color: #8698b8; border-bottom: 1px solid rgba(120,170,255,.18); }
body.dark-index .article .note { background: rgba(46,107,255,.10); border-left: 3px solid #2f6bff; }
body.dark-index .article .note p { color: #c7d7ef; }

body.dark-index .faq-item { border-bottom: 1px solid rgba(120,170,255,.16); }
body.dark-index .faq-item:first-child { border-top: 1px solid rgba(120,170,255,.16); }
body.dark-index .faq-item h3 { color: #f2f7ff; }
body.dark-index .faq-item p { color: #a8bcd8; }

body.dark-index .info-row { border-bottom: 1px solid rgba(120,170,255,.16); }
body.dark-index .info-row b { color: #e8f1ff; }
body.dark-index .info-row span { color: #a8bcd8; }

body.dark-index .disclaimer {
  background: rgba(34,211,238,.06);
  border: 1px solid rgba(34,211,238,.16);
  border-left: 3px solid #2f6bff;
  border-radius: 10px;
  color: #c7d7ef;
}

body.dark-index .news-item .cat { color: #7dd3fc; background: rgba(34,211,238,.12); }

body.dark-index .btn-sm { background: #2f6bff; color: #ffffff; border-radius: 8px; }
body.dark-index .btn-sm:hover { background: #3b78ff; box-shadow: 0 8px 20px rgba(47,107,255,.32); }

/* ---------- 响应式：窄屏改为横幅图 + 正常流文案 ---------- */
@media (max-width: 900px) {
  body.dark-index { background-attachment: scroll; }
  body.dark-index .nav-in { height: 60px; gap: 8px; }
  body.dark-index .brand { font-size: 17px; }
  body.dark-index .brand .brand-mark { height: 32px; }

  /* 窄屏保留导航：横向可滚动，隐藏滚动条 */
  body.dark-index .nav-links {
    display: flex;
    gap: 0;
    margin-left: 12px;
    padding-right: 4px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
  }
  body.dark-index .nav-links::-webkit-scrollbar { display: none; width: 0; height: 0; }
  body.dark-index .nav-links a { padding: 4px 9px; font-size: 13px; }
  body.dark-index .nav-links a + a::before { height: 10px; }

  body.dark-index .nav-cta { margin-left: auto; gap: 8px; }
  body.dark-index .nav-cta .btn-sm:not(.ghost) { display: none; }
  body.dark-index .btn-sm.ghost { padding: 7px 14px; font-size: 13px; }

  body.dark-index .hero-stage {
    aspect-ratio: auto;
    padding-top: 56.25%;
    background: #050914 url(/assets/hero-bg.jpg) center top / 100% auto no-repeat;
    overflow: visible;
  }
  body.dark-index .hero-copy {
    position: static;
    width: auto;
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
    padding: 20px 18px 0;
  }
  body.dark-index .hero h1 {
    font-size: clamp(25px, 8.4vw, 44px);
    line-height: 1.12;
    letter-spacing: -0.02em;
  }
  body.dark-index .hero .sub {
    font-size: clamp(13px, 3.7vw, 18px);
    max-width: none;
    white-space: normal;
    margin-top: 12px;
    color: #c7d7ef;
  }
  body.dark-index .hero .cta {
    position: static;
    margin: 20px auto 0;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
  }
  body.dark-index .btn-primary,
  body.dark-index .btn-ghost {
    width: auto;
    min-width: 0;
    height: auto;
    padding: 12px 18px;
    font-size: clamp(13px, 3.7vw, 17px);
    border-radius: 8px;
  }
  body.dark-index .data-cards {
    position: static;
    margin: 22px 14px 0;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
  }
  body.dark-index .dcard {
    width: calc(50% - 4px);
    min-width: 0;
    height: auto;
    padding: 12px 13px;
    border-radius: 10px;
    gap: 4px;
  }
  body.dark-index .dcard .dk { font-size: 13px; }
  body.dark-index .dcard .dv { font-size: 11px; }

  body.dark-index .section { padding: 54px 0; }
  body.dark-index .sec-head h2 { font-size: 24px; }
}
