/* ==========================================================================
   Aurora Glass · 极光玻璃主题 v3
   IDC 云服务商主题 —— 默认浅色（白）/ 超通透玻璃 / 右下角一键切换深色
   设计原则：非字体组件一律中性玻璃（反光光感、非常通透、支持背景图），
            仅文字可保留少量色彩强调。
   主题机制：html[data-theme="light"(默认) | "dark"]
   ========================================================================== */

/* --------------------------------------------------------------------------
   主题变量 · 浅色（默认）
   -------------------------------------------------------------------------- */
:root {
  /* 页面底色 —— 近白的清透底色 */
  --bg-0: #f5f8fe;
  --bg-1: #ecf2fd;
  --bg-2: #e2ebfb;

  /* 文本 */
  --ink: #16203c;
  --ink-2: rgba(22, 32, 60, 0.66);
  --ink-3: rgba(22, 32, 60, 0.48);

  /* 玻璃材质 —— 超通透 */
  --glass-bg: rgba(255, 255, 255, 0.34);
  --glass-bg-strong: rgba(255, 255, 255, 0.52);
  --glass-brd: rgba(255, 255, 255, 0.62);
  --glass-hl: rgba(255, 255, 255, 0.95);
  --glass-blur: 26px;
  --glass-saturate: 170%;

  /* 文字强调色（仅用于文字） */
  --accent-ink: #2f4fc0;
  --grad-text: linear-gradient(120deg, #24365f 0%, #2f4fc0 55%, #1e6f9e 100%);

  /* 形状与阴影（浅色阴影柔和低透明） */
  --r-xl: 28px;
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;
  --shadow-lg: 0 30px 70px -24px rgba(35, 56, 130, 0.22);
  --shadow-md: 0 16px 40px -14px rgba(35, 56, 130, 0.16);

  /* 极光光斑（浅色：淡彩水彩） */
  --orb-1: radial-gradient(circle at 30% 30%, #7d9bff, transparent 65%);
  --orb-2: radial-gradient(circle at 60% 40%, #b78bff, transparent 65%);
  --orb-3: radial-gradient(circle at 50% 50%, #63cbf2, transparent 65%);
  --orb-opacity: 0.62;
  --grid-line: rgba(61, 91, 255, 0.06);
  --nav-bg: rgba(255, 255, 255, 0.46);
  --nav-bg-scrolled: rgba(255, 255, 255, 0.72);
  --drop-bg: rgba(255, 255, 255, 0.82);
  --footer-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(238, 243, 252, 0.85));
  --footer-brd: rgba(61, 91, 255, 0.12);
  --divider: rgba(61, 91, 255, 0.13);

  /* 布局 */
  --nav-h: 74px;
  --container: 1200px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --------------------------------------------------------------------------
   主题变量 · 深色
   -------------------------------------------------------------------------- */
[data-theme="dark"] {
  --bg-0: #04071b;
  --bg-1: #0a1030;
  --bg-2: #10173e;

  --ink: #f3f6ff;
  --ink-2: rgba(226, 232, 255, 0.74);
  --ink-3: rgba(226, 232, 255, 0.48);

  --glass-bg: rgba(146, 162, 255, 0.07);
  --glass-bg-strong: rgba(146, 162, 255, 0.12);
  --glass-brd: rgba(146, 162, 255, 0.18);
  --glass-hl: rgba(255, 255, 255, 0.22);
  --glass-blur: 22px;
  --glass-saturate: 150%;

  --accent-ink: #9db4ff;
  --grad-text: linear-gradient(120deg, #dfe7ff 0%, #a9c6ff 55%, #8fd8f5 100%);

  --shadow-lg: 0 32px 80px -24px rgba(2, 5, 24, 0.85);
  --shadow-md: 0 18px 44px -16px rgba(2, 5, 24, 0.7);

  --orb-1: radial-gradient(circle at 30% 30%, #3b5bff, transparent 65%);
  --orb-2: radial-gradient(circle at 60% 40%, #8b3dff, transparent 65%);
  --orb-3: radial-gradient(circle at 50% 50%, #0e9fd8, transparent 65%);
  --orb-opacity: 0.55;
  --grid-line: rgba(146, 162, 255, 0.055);
  --nav-bg: rgba(10, 15, 44, 0.42);
  --nav-bg-scrolled: rgba(8, 12, 36, 0.72);
  --drop-bg: rgba(13, 18, 48, 0.85);
  --footer-bg: linear-gradient(180deg, rgba(8, 12, 36, 0.55), rgba(4, 7, 27, 0.9));
  --footer-brd: rgba(146, 162, 255, 0.14);
  --divider: rgba(146, 162, 255, 0.14);
}

/* --------------------------------------------------------------------------
   基础
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg-0);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.6s var(--ease-out), color 0.6s var(--ease-out);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }

::selection {
  background: rgba(47, 79, 192, 0.22);
  color: inherit;
}
[data-theme="dark"] ::selection {
  background: rgba(157, 180, 255, 0.4);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.icon {
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* --------------------------------------------------------------------------
   极光背景
   -------------------------------------------------------------------------- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 70% -10%, var(--bg-2) 0%, transparent 55%),
    radial-gradient(100% 70% at -10% 110%, var(--bg-1) 0%, transparent 55%),
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 46%, var(--bg-0) 100%);
  transition: background 0.6s var(--ease-out);
}

.aurora-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: var(--orb-opacity);
  will-change: transform;
}

.orb-1 {
  width: 46vw; height: 46vw;
  min-width: 420px; min-height: 420px;
  top: -12%; left: -8%;
  background: var(--orb-1);
  animation: orb-drift-1 26s ease-in-out infinite alternate;
}
.orb-2 {
  width: 38vw; height: 38vw;
  min-width: 340px; min-height: 340px;
  top: 22%; right: -12%;
  background: var(--orb-2);
  animation: orb-drift-2 32s ease-in-out infinite alternate;
}
.orb-3 {
  width: 34vw; height: 34vw;
  min-width: 300px; min-height: 300px;
  bottom: -14%; left: 32%;
  background: var(--orb-3);
  opacity: calc(var(--orb-opacity) * 0.75);
  animation: orb-drift-3 38s ease-in-out infinite alternate;
}

/* 细网格 + 渐隐，增加质感与纵深 */
.aurora-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(80% 60% at 50% 0%, #000 0%, transparent 75%);
  mask-image: radial-gradient(80% 60% at 50% 0%, #000 0%, transparent 75%);
}

@keyframes orb-drift-1 {
  to { transform: translate(9vw, 7vh) scale(1.12); }
}
@keyframes orb-drift-2 {
  to { transform: translate(-7vw, 10vh) scale(0.92); }
}
@keyframes orb-drift-3 {
  to { transform: translate(6vw, -8vh) scale(1.08); }
}

/* --------------------------------------------------------------------------
   玻璃材质基类 —— 超通透 + 反光光感
   -------------------------------------------------------------------------- */
.glass {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-brd);
  border-radius: var(--r-lg);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  box-shadow: var(--shadow-md), inset 0 1px 0 var(--glass-hl);
  transition: background 0.6s var(--ease-out), border-color 0.6s var(--ease-out),
    box-shadow 0.6s var(--ease-out);
}

/* 顶部高光细线（反光） */
.glass::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, var(--glass-hl), transparent);
  pointer-events: none;
  z-index: 2;
}

/* 不支持 backdrop-filter 时退化为实色 */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .glass { background: var(--glass-bg-strong); }
}

/* --------------------------------------------------------------------------
   按钮 —— 一律中性玻璃（非必要不彩色）
   -------------------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 26px;
  border: 1px solid var(--glass-brd);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  color: var(--ink);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  box-shadow: inset 0 1px 0 var(--glass-hl), 0 6px 16px -8px rgba(35, 56, 130, 0.2);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out),
    background 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
}

/* 液面高光：顶部一道斜向反光 */
.btn::after {
  content: "";
  position: absolute;
  inset: 1px 1px auto 1px;
  height: 46%;
  border-radius: 999px 999px 60% 60% / 999px 999px 100% 100%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
  pointer-events: none;
}
[data-theme="dark"] .btn::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0));
}

.btn:hover {
  transform: translateY(-2px);
  background: var(--glass-bg-strong);
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow: inset 0 1px 0 var(--glass-hl), 0 12px 26px -10px rgba(35, 56, 130, 0.28);
}
[data-theme="dark"] .btn:hover {
  border-color: rgba(146, 162, 255, 0.45);
}

.btn:active { transform: scale(0.97); }

/* 主按钮：同色系但更"厚"的玻璃，与次按钮拉开层级 */
.btn-primary {
  background: var(--glass-bg-strong);
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 1px 0 var(--glass-hl), inset 0 -1px 0 rgba(35, 56, 130, 0.06),
    0 8px 20px -8px rgba(35, 56, 130, 0.26);
}
[data-theme="dark"] .btn-primary {
  background: rgba(146, 162, 255, 0.16);
  border-color: rgba(146, 162, 255, 0.38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 8px 20px -8px rgba(2, 5, 24, 0.6);
}
.btn-primary:hover {
  background: rgba(255, 255, 255, 0.66);
  box-shadow: inset 0 1px 0 var(--glass-hl), 0 14px 30px -10px rgba(35, 56, 130, 0.32);
}
[data-theme="dark"] .btn-primary:hover {
  background: rgba(146, 162, 255, 0.24);
}

.btn-ghost {
  background: var(--glass-bg);
  color: var(--ink-2);
}
.btn-ghost:hover { color: var(--ink); }

.btn-lg { min-height: 52px; padding: 14px 34px; font-size: 16px; }
.btn-sm { min-height: 36px; padding: 7px 18px; font-size: 13px; }
.btn-block { width: 100%; }

/* --------------------------------------------------------------------------
   导航
   -------------------------------------------------------------------------- */
.glass-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 14px 24px;
  transition: padding 0.4s var(--ease-out);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  width: min(var(--container), 100%);
  margin-inline: auto;
  padding: 10px 12px 10px 20px;
  border-radius: 999px;
  background: var(--nav-bg);
  border: 1px solid var(--glass-brd);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
  box-shadow: 0 14px 40px -18px rgba(35, 56, 130, 0.22), inset 0 1px 0 var(--glass-hl);
  transition: background 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}

.glass-nav.scrolled .nav-inner {
  background: var(--nav-bg-scrolled);
  box-shadow: 0 18px 48px -16px rgba(35, 56, 130, 0.28), inset 0 1px 0 var(--glass-hl);
}

.brand {
  display: flex;
  align-items: center;
  flex: none;
}
.brand img { height: 34px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline: auto;
}

.nav-item { position: relative; }

.nav-item > a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 15px;
  color: var(--ink-2);
  transition: color 0.3s, background 0.3s;
}
.nav-item > a:hover,
.nav-item.open > a { color: var(--ink); background: var(--glass-bg-strong); }

.nav-item > a .caret {
  width: 0; height: 0;
  border: 4px solid transparent;
  border-top-color: currentColor;
  margin-top: 3px;
  transition: transform 0.3s;
}
.nav-item.open > a .caret { transform: rotate(180deg); }

/* 玻璃下拉面板 */
.nav-drop {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translate(-50%, 10px);
  min-width: 180px;
  padding: 10px;
  border-radius: var(--r-md);
  background: var(--drop-bg);
  border: 1px solid var(--glass-brd);
  -webkit-backdrop-filter: blur(26px) saturate(170%);
  backdrop-filter: blur(26px) saturate(170%);
  box-shadow: var(--shadow-lg), inset 0 1px 0 var(--glass-hl);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.32s var(--ease-out), transform 0.32s var(--ease-out), visibility 0.32s;
}
.nav-item:hover .nav-drop,
.nav-item.open .nav-drop {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.nav-drop a {
  display: block;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--ink-2);
  transition: background 0.25s, color 0.25s;
}
.nav-drop a:hover { background: var(--glass-bg-strong); color: var(--ink); }
.nav-drop .drop-title {
  padding: 6px 14px 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  text-transform: uppercase;
}

.nav-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.nav-actions .btn { min-height: 40px; padding: 8px 20px; font-size: 14px; }

/* 抽屉内登录/注册（仅移动端显示） */
.mobile-auth { display: none; }

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  padding: 0;
  border: 1px solid var(--glass-brd);
  border-radius: 12px;
  background: var(--glass-bg);
  color: var(--ink);
  cursor: pointer;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.nav-toggle svg { width: 22px; height: 22px; }

/* --------------------------------------------------------------------------
   Hero 首屏
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 56px) 0 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 56px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-2);
  background: var(--glass-bg);
  border: 1px solid var(--glass-brd);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.hero-badge .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ok, #0bb07b);
  box-shadow: 0 0 0 0 var(--ok-shadow, rgba(11, 176, 123, 0.5));
  animation: pulse-dot 2.2s infinite;
}
@keyframes pulse-dot {
  70% { box-shadow: 0 0 0 9px rgba(0, 0, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); }
}
:root { --ok: #0bb07b; --ok-shadow: rgba(11, 176, 123, 0.5); }
[data-theme="dark"] { --ok: #34f5c5; --ok-shadow: rgba(52, 245, 197, 0.6); }

.hero h1 {
  margin: 26px 0 20px;
  font-size: clamp(2.1rem, 5.2vw, 3.9rem);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: 0.01em;
}
.hero h1 .grad {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-sub {
  max-width: 34em;
  font-size: clamp(1rem, 1.4vw, 1.13rem);
  color: var(--ink-2);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 36px;
  margin-top: 48px;
  padding-top: 30px;
  border-top: 1px solid var(--divider);
}
.hero-stats .stat b {
  display: block;
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-stats .stat span { font-size: 13px; color: var(--ink-3); }

/* Hero 视觉：全球网络玻璃卡（支持背景图替换） */
.hero-visual {
  position: relative;
  perspective: 1200px;
}

.visual-card {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  background:
    radial-gradient(90% 90% at 20% 10%, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.05) 55%),
    var(--glass-bg);
  border: 1px solid var(--glass-brd);
  -webkit-backdrop-filter: blur(30px) saturate(170%);
  backdrop-filter: blur(30px) saturate(170%);
  box-shadow: var(--shadow-lg), inset 0 1px 0 var(--glass-hl);
  transition: transform 0.5s var(--ease-out), background 0.6s var(--ease-out);
  animation: float-y 7s ease-in-out infinite;
}
/* 若配置了背景图（--img），自动叠加为卡片底图 */
.visual-card[style*="--img"] {
  background-image: var(--img), linear-gradient(180deg, rgba(10, 16, 40, 0.15), rgba(10, 16, 40, 0.45));
  background-size: cover;
  background-position: center;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 12% 6% 4%;
  z-index: -1;
  border-radius: 50%;
  background: conic-gradient(from 120deg, #3d5bff, #7c4dff, #0ba5e8, #3d5bff);
  filter: blur(70px);
  opacity: 0.3;
  animation: orb-drift-2 24s ease-in-out infinite alternate;
}
[data-theme="dark"] .hero-visual::after { opacity: 0.4; }

@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.visual-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px 0;
}
.visual-head .vh-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.visual-head .vh-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--glass-bg);
  border: 1px solid var(--glass-brd);
}
.visual-head .vh-live i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ok);
  animation: pulse-dot 2.2s infinite;
}

.net-map { display: block; width: 100%; height: auto; }
.net-map .node { fill: var(--ink); }
.net-map .pulse {
  animation: node-pulse 2.8s ease-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}
.net-map .pulse:nth-of-type(2n) { animation-delay: 0.9s; }
.net-map .pulse:nth-of-type(3n) { animation-delay: 1.8s; }
@keyframes node-pulse {
  0% { opacity: 0.5; transform: scale(0.6); }
  70% { opacity: 0; transform: scale(2.6); }
  100% { opacity: 0; transform: scale(2.6); }
}
.net-map .arc {
  stroke-dasharray: 5 7;
  animation: arc-flow 2.4s linear infinite;
}
@keyframes arc-flow {
  to { stroke-dashoffset: -24; }
}

.visual-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding: 6px 22px 20px;
}
.visual-foot .vf-item { font-size: 12px; color: var(--ink-3); }
.visual-foot .vf-item b { display: block; font-size: 16px; color: var(--ink); font-weight: 700; }

/* --------------------------------------------------------------------------
   通用 Section
   -------------------------------------------------------------------------- */
.section { padding: 96px 0; }

.section-head {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-eyebrow {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: var(--glass-bg);
  border: 1px solid var(--glass-brd);
}
.section-head h2 {
  margin: 18px 0 14px;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  font-weight: 800;
  line-height: 1.25;
}
.section-head p { color: var(--ink-3); font-size: 15px; }

/* 入场动画 */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   通用玻璃媒体卡片（支持背景图）
   用法：<div class="glass-card media-card" style="--img:url('...')">
         <div class="card-media"></div><div class="card-body">...</div></div>
   或不传 --img，在 card-media 内放 <img>
   -------------------------------------------------------------------------- */
.glass-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--glass-bg);
  border: 1px solid var(--glass-brd);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  box-shadow: var(--shadow-md), inset 0 1px 0 var(--glass-hl);
  transition: transform 0.45s var(--ease-out), border-color 0.45s, box-shadow 0.45s,
    background 0.6s var(--ease-out);
}
.glass-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, var(--glass-hl), transparent);
  pointer-events: none;
  z-index: 2;
}
.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-lg), inset 0 1px 0 var(--glass-hl);
}
[data-theme="dark"] .glass-card:hover { border-color: rgba(146, 162, 255, 0.42); }

/* 顶部媒体区：优先使用 --img 背景图（注意：CSS 变量中的相对 URL 按样式表路径
   解析，生产环境请用绝对路径），也可直接放 <img>（按文档路径解析，推荐） */
.card-media {
  position: relative;
  height: 180px;
  background-color: var(--bg-2);
  background-image: var(--img, none);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.card-media img {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* 媒体区底部与玻璃身体的柔和过渡 */
.card-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 56px;
  z-index: 1;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.28));
  pointer-events: none;
}
[data-theme="dark"] .card-media::after {
  background: linear-gradient(180deg, rgba(10, 16, 40, 0), rgba(10, 16, 40, 0.35));
}

.card-body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 26px 26px;
  flex: 1;
}

.card-body h3 { font-size: 18px; font-weight: 700; line-height: 1.4; }
.card-body p { font-size: 14px; color: var(--ink-3); }

/* 中性玻璃小标签 */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tags .tag {
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--glass-bg);
  border: 1px solid var(--glass-brd);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* 卡片内的中性玻璃图标台 */
.icon-tile {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: var(--r-md);
  color: var(--ink-2);
  background: var(--glass-bg);
  border: 1px solid var(--glass-brd);
  box-shadow: inset 0 1px 0 var(--glass-hl);
}
.icon-tile .icon { width: 25px; height: 25px; }

/* 卡片底部操作 */
.card-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.card-action .icon { width: 16px; height: 16px; transition: transform 0.35s var(--ease-out); }
.glass-card:hover .card-action .icon,
a:hover > .card-action .icon { transform: translateX(5px); }

/* --------------------------------------------------------------------------
   全球数据中心（地区标签页 + 背景图大卡）
   -------------------------------------------------------------------------- */
.dc-tabs {
  display: flex;
  justify-content: center;
  gap: 6px;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 40px;
  padding: 6px;
  border-radius: 999px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-brd);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  box-shadow: inset 0 1px 0 var(--glass-hl);
}
.dc-tabs button {
  padding: 9px 24px;
  border: 0;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  background: transparent;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
  white-space: nowrap;
}
.dc-tabs button:hover { color: var(--ink); }
.dc-tabs button.active {
  color: var(--ink);
  background: var(--glass-bg-strong);
  box-shadow: inset 0 1px 0 var(--glass-hl), 0 4px 12px -6px rgba(35, 56, 130, 0.22);
}

.dc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* 数据中心大卡：整卡背景图（img 层）+ 底部玻璃信息条 */
.dc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 320px;
  padding: 22px;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--glass-brd);
  background-color: #101a33;
  background-image: var(--img, none);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-md);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s, border-color 0.45s;
}
.dc-card > img.dc-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* 图上压一层暗渐变，保证文字可读 */
.dc-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(8, 13, 32, 0.08) 0%, rgba(8, 13, 32, 0.55) 62%, rgba(8, 13, 32, 0.82) 100%);
  transition: opacity 0.45s;
}
.dc-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-lg);
}
.dc-card:hover::before { opacity: 0.82; }

/* 卡内玻璃信息面板 */
.dc-panel {
  position: relative;
  z-index: 2;
  padding: 18px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
  color: #f3f6ff;
}
.dc-panel h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}
.dc-panel h3 .tier {
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.dc-panel p {
  margin: 8px 0 12px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
}
.dc-panel .tags .tag {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
}
.dc-panel .btn {
  margin-top: 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.dc-panel .btn:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.55);
}
.dc-panel .btn::after { background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0)); }

/* --------------------------------------------------------------------------
   产品矩阵
   -------------------------------------------------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.product-grid .glass-card {
  display: flex;
  flex-direction: column;
}
.product-grid .glass-card:hover { transform: translateY(-7px); }
.product-grid .card-media { height: 160px; }

/* --------------------------------------------------------------------------
   资质认证
   -------------------------------------------------------------------------- */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.cert-grid .card-media { height: 150px; }
.cert-grid .card-body { padding: 20px 22px 22px; }
.cert-grid h3 { font-size: 16px; }
.cert-grid p { font-size: 13px; }

/* --------------------------------------------------------------------------
   服务优势
   -------------------------------------------------------------------------- */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.adv-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 26px;
}
.adv-card:hover { transform: translateY(-6px); }
.adv-card h3 { font-size: 17px; font-weight: 700; }
.adv-card p { font-size: 14px; color: var(--ink-3); }

/* --------------------------------------------------------------------------
   客户案例
   -------------------------------------------------------------------------- */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.case-grid .glass-card { display: flex; flex-direction: column; }
.case-grid .glass-card:hover { transform: translateY(-6px); }
.case-grid .card-media { height: 170px; }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}
.faq-item {
  border-radius: var(--r-md);
  overflow: hidden;
}
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 19px 24px;
  border: 0;
  background: transparent;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: background 0.3s;
}
.faq-q:hover { background: var(--glass-bg); }
.faq-q .faq-plus {
  position: relative;
  flex: none;
  width: 22px; height: 22px;
}
.faq-q .faq-plus::before,
.faq-q .faq-plus::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 14px; height: 2px;
  border-radius: 2px;
  background: var(--ink-2);
  transform: translate(-50%, -50%);
  transition: transform 0.35s var(--ease-out);
}
.faq-q .faq-plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.open .faq-q .faq-plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-item.open .faq-q { background: var(--glass-bg); }

.faq-a {
  height: 0;
  overflow: hidden;
  transition: height 0.4s var(--ease-out);
}
.faq-a-inner {
  overflow: hidden;
}
.faq-a-inner p {
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--ink-3);
}

.faq-more {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}

/* --------------------------------------------------------------------------
   CTA 横幅（footer.html 首段）
   -------------------------------------------------------------------------- */
.foot-cta { padding: 40px 0 96px; }

.cta-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: clamp(48px, 7vw, 80px) 32px;
  border-radius: var(--r-xl);
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(90% 130% at 50% -20%, rgba(255, 255, 255, 0.5), transparent 60%),
    var(--glass-bg);
}
.cta-panel::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -55%;
  width: 70%; aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: conic-gradient(from 90deg, #3d5bff, #7c4dff, #0ba5e8, #3d5bff);
  filter: blur(90px);
  opacity: 0.22;
  pointer-events: none;
}
[data-theme="dark"] .cta-panel::after { opacity: 0.3; }
.cta-panel h2 { font-size: clamp(1.5rem, 3vw, 2.3rem); font-weight: 800; }
.cta-panel p { max-width: 36em; color: var(--ink-2); }
.cta-panel .btn { margin-top: 10px; position: relative; z-index: 1; }

/* --------------------------------------------------------------------------
   页脚
   -------------------------------------------------------------------------- */
.footer {
  position: relative;
  padding: 64px 0 0;
  border-top: 1px solid var(--footer-brd);
  background: var(--footer-bg);
  transition: background 0.6s var(--ease-out);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr) 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-brand img { height: 36px; width: auto; margin-bottom: 18px; }
.footer-brand p { font-size: 13px; color: var(--ink-3); }

.footer-col h4 {
  margin-bottom: 18px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.footer-col ul { display: grid; gap: 11px; }
.footer-col a { font-size: 13px; color: var(--ink-3); transition: color 0.3s; }
.footer-col a:hover { color: var(--ink); }

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-3);
}
.footer-contact .icon { width: 16px; height: 16px; margin-top: 4px; color: var(--ink-2); }

.friendly {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 18px;
  padding: 22px 0;
  border-top: 1px solid var(--footer-brd);
  font-size: 13px;
}
.friendly .friendly-title { font-weight: 700; color: var(--ink-2); }
.friendly a { color: var(--ink-3); transition: color 0.3s; }
.friendly a:hover { color: var(--ink); }

.beian {
  padding: 20px 0 28px;
  border-top: 1px solid var(--footer-brd);
  font-size: 12px;
  color: var(--ink-3);
  text-align: center;
}

/* --------------------------------------------------------------------------
   右下角主题切换悬浮按钮
   -------------------------------------------------------------------------- */
.theme-fab {
  position: fixed;
  right: max(24px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 200;
  width: 54px; height: 54px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--glass-brd);
  border-radius: 50%;
  background: var(--glass-bg-strong);
  color: var(--ink);
  cursor: pointer;
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
  box-shadow: var(--shadow-md), inset 0 1px 0 var(--glass-hl);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s, background 0.5s,
    opacity 0.3s, visibility 0.3s;
}
.theme-fab:hover {
  transform: translateY(-3px) scale(1.06);
  box-shadow: var(--shadow-lg), inset 0 1px 0 var(--glass-hl);
}
.theme-fab:active { transform: scale(0.95); }
.theme-fab .icon { width: 24px; height: 24px; }
.theme-fab .icon-sun { display: none; }
[data-theme="dark"] .theme-fab .icon-sun { display: block; }
[data-theme="dark"] .theme-fab .icon-moon { display: none; }

/* 抽屉打开时让位，避免遮挡抽屉底部按钮 */
body.nav-open .theme-fab {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* 切换提示气泡 */
.theme-fab::after {
  content: attr(data-tip);
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--ink-2);
  background: var(--drop-bg);
  border: 1px solid var(--glass-brd);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  pointer-events: none;
}
.theme-fab:hover::after { opacity: 1; visibility: visible; }

/* ==========================================================================
   响应式 · 完美手机适配
   ========================================================================== */

/* —— 小桌面 / 大平板：收紧导航 —— */
@media (max-width: 1024px) {
  .nav-inner { gap: 12px; }
  .nav-item > a { padding: 9px 11px; font-size: 14px; }
  .nav-actions .btn { padding: 8px 15px; }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
}

/* —— 平板 —— */
@media (max-width: 1080px) {
  .hero { padding-top: calc(var(--nav-h) + 36px); }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-sub { max-width: 40em; }
  .hero-visual { max-width: 560px; margin-inline: auto; width: 100%; }
  .dc-grid, .product-grid, .case-grid, .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}

/* —— 手机 —— */
@media (max-width: 880px) {
  :root { --nav-h: 64px; }

  body { font-size: 15px; }
  .section { padding: 68px 0; }

  /* 导航折叠为玻璃抽屉 */
  .nav-inner { padding: 8px 8px 8px 16px; }
  .nav-actions { display: none; }
  .nav-toggle { display: grid; place-items: center; margin-left: auto; }

  .nav-links {
    position: fixed;
    top: calc(var(--nav-h) + 18px);
    left: 16px; right: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    max-height: calc(100vh - var(--nav-h) - 48px);
    max-height: calc(100dvh - var(--nav-h) - 48px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 14px;
    border-radius: var(--r-lg);
    background: rgba(255, 255, 255, 0.93);
    border: 1px solid var(--glass-brd);
    -webkit-backdrop-filter: blur(28px) saturate(170%);
    backdrop-filter: blur(28px) saturate(170%);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out), visibility 0.35s;
  }
  [data-theme="dark"] .nav-links { background: rgba(13, 18, 48, 0.93); }
  .nav-links.open { opacity: 1; visibility: visible; transform: none; }

  /* 防止内容超高时 flex 项目被压缩（保持原始高度，改为容器内滚动） */
  .nav-links > * { flex: none; }

  .nav-item > a { padding: 13px 14px; font-size: 16px; border-radius: var(--r-sm); }
  .nav-item > a .caret { margin-left: auto; }

  .nav-drop {
    position: static;
    display: none;
    min-width: 0;
    padding: 4px 0 6px 14px;
    border: 0;
    border-left: 1px solid var(--divider);
    border-radius: 0;
    margin: 2px 0 6px 12px;
    background: none;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav-item.open .nav-drop { display: block; }

  /* 覆盖桌面端 hover/open 规则的位移（特异性对齐） */
  .nav-item:hover .nav-drop,
  .nav-item.open .nav-drop {
    transform: none;
  }

  /* 抽屉内登录/注册 */
  .mobile-auth {
    display: flex;
    gap: 12px;
    margin-top: 14px;
    padding-top: 16px;
    border-top: 1px solid var(--divider);
  }
  .mobile-auth .btn { flex: 1; }

  /* Hero */
  .hero { padding: calc(var(--nav-h) + 30px) 0 64px; }
  .hero-cta .btn { flex: 1 1 auto; }
  .hero-stats { gap: 12px 24px; margin-top: 36px; }
  .visual-card { animation: none; }     /* 移动端关闭漂浮，省电 */
  .hero-visual::after { animation: none; }

  /* 数据中心标签页横向滚动 */
  .dc-tabs {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .dc-tabs::-webkit-scrollbar { display: none; }

  /* 数据带两列 */
  .stats-strip { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; padding: 32px 20px; }
  .stats-strip .stat:nth-child(odd) { border-left: 0; }
  .stats-strip .stat:nth-child(n + 3) { border-top: 1px solid var(--divider); padding-top: 28px; }

  /* 悬浮按钮避让 */
  .theme-fab {
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    width: 50px; height: 50px;
  }
}

/* —— 小屏手机 —— */
@media (max-width: 640px) {
  .container { width: calc(100% - 36px); }
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 40px; }

  .dc-grid, .product-grid, .case-grid, .adv-grid, .cert-grid, .footer-grid { grid-template-columns: 1fr; }

  .dc-card { min-height: 280px; }

  .hero h1 { margin: 20px 0 16px; }
  .hero-cta { margin-top: 30px; }
  .hero-stats { padding-top: 24px; }
  .hero-stats .stat { flex: 1 1 40%; }

  .cta-panel { border-radius: var(--r-lg); }
  .cta-panel .btn { width: 100%; }

  .footer-grid { gap: 32px; }
  .friendly { gap: 8px 14px; }

  /* iPhone 刘海/圆角安全区 */
  .glass-nav { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  .footer { padding-bottom: env(safe-area-inset-bottom); }

  /* 页脚底部留出悬浮按钮空间，避免遮挡版权信息 */
  .beian { padding-bottom: 84px; }
}

/* —— 超小屏 —— */
@media (max-width: 380px) {
  .hero-stats .stat { flex: 1 1 100%; }
  .stats-strip { grid-template-columns: 1fr; }
  .stats-strip .stat { border-left: 0 !important; border-top: 0 !important; padding-top: 0 !important; }
  .stats-strip .stat + .stat { border-top: 1px solid var(--divider); padding-top: 24px; }
  .dc-tabs button { padding: 9px 16px; font-size: 13px; }
}

/* —— 横屏手机：压低首屏 —— */
@media (max-height: 620px) and (orientation: landscape) {
  .hero { padding-top: calc(var(--nav-h) + 20px); padding-bottom: 48px; }
  .visual-card { display: none; }
  .hero-visual::after { display: none; }
}

/* --------------------------------------------------------------------------
   动效偏好与打印
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
