/* ============================================================
   湾特电气 — 3D 科技感增强层 (tech3d.css)
   说明：叠加在 site.css 之后加载，只改“外观与动效”，不改任何文字内容。
   主色取自 LOGO：电气蓝 + 线圈红；深海军蓝作为科技底色。
   ============================================================ */

/* ── 本地字体：Rajdhani（数字/英文标题，科技感），中文走系统黑体 ── */
@font-face {
  font-family: "Rajdhani";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/rajdhani-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Rajdhani";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/rajdhani-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Rajdhani";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/rajdhani-latin-700-normal.woff2") format("woff2");
}

@property --t-ang {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

/* ── 设计令牌 ── */
:root {
  --t-ink-950: #040a15;
  --t-ink-900: #071226;
  --t-ink-800: #0c1b34;
  --t-ink-700: #132848;
  --t-blue: #0a6ec1;
  --t-blue-2: #1788ea;
  --t-cyan: #2fb4ff;
  --t-ice: #a6e4ff;
  --t-red: #e8112d;
  --t-red-soft: #ff5a4d;

  --font-display: "Rajdhani", "HarmonyOS Sans SC", "MiSans", "Alibaba PuHuiTi 2.0",
    "PingFang SC", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei UI",
    "Microsoft YaHei", "Heiti SC", sans-serif;
  --font-body: "HarmonyOS Sans SC", "MiSans", "PingFang SC", "Source Han Sans SC",
    "Noto Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;

  /* 覆盖原强调色，让全站蓝色更“电”一些 */
  --gold-500: #1788ea;
  --gold-400: #2fa3ff;
  --gold-300: #8fd8ff;
  --gold-glow: rgba(47, 180, 255, 0.28);
  --shadow-gold: 0 12px 30px rgba(10, 110, 193, 0.38);

  /* 实体“挤出”阴影：给卡片一个可见的厚度，形成 3D 板块感 */
  --slab-light:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 2px 0 #dbe6f3, 0 3px 0 #d0ddee, 0 4px 0 #c6d5e8,
    0 26px 38px -14px rgba(8, 40, 90, 0.34);
  --slab-dark:
    0 1px 0 rgba(255, 255, 255, 0.16) inset,
    0 2px 0 #0b2243, 0 3px 0 #0a1e3b, 0 4px 0 #081832,
    0 30px 46px -14px rgba(0, 0, 0, 0.72);
}

/* ── 基础：字体 + 蓝图网格底纹 ── */
body {
  font-family: var(--font-body);
  background:
    linear-gradient(rgba(10, 110, 193, 0.045) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, rgba(10, 110, 193, 0.045) 1px, transparent 1px) 0 0 / 64px 64px,
    var(--bg-base);
}

::selection { background: rgba(47, 180, 255, 0.28); color: var(--t-ink-900); }

.section-alt {
  background: linear-gradient(180deg, rgba(240, 245, 251, 0.86), rgba(228, 236, 246, 0.92));
}

/* ── 标题：统一为科技黑体 ── */
.section-title,
.product-detail-title,
.card h3,
.process-step h4,
.news-item h4,
.footer-grid h4,
.case-title {
  font-family: var(--font-display);
}

.section-title {
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: clamp(28px, 3.2vw, 44px);
  color: var(--t-ink-900);
}

.section-lead { color: #3b4a60; }

/* ── 顶部导航：新拟物 3D 动态（凸起托盘 / 高光 / 磁吸滑块 / 点击凹陷） ── */
.site-header {
  --neu-light: #ffffff;
  --neu-mid: #e7eef6;
  --neu-dark: #c5d3e4;
  --neu-ink: #17324f;
}

.site-header::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(231, 239, 247, 0.9) 100%);
  backdrop-filter: blur(22px) saturate(190%);
  -webkit-backdrop-filter: blur(22px) saturate(190%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(120, 160, 200, 0.18),
    0 10px 28px -12px rgba(16, 48, 88, 0.28);
}
.site-header.scrolled::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(232, 240, 248, 0.96) 100%);
}
.site-header.scrolled { box-shadow: none; }

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  z-index: 2;
  background: linear-gradient(90deg, var(--t-blue), var(--t-cyan) 60%, var(--t-red));
  box-shadow: 0 0 12px rgba(47, 180, 255, 0.8);
  transform-origin: left center;
  transform: scaleX(var(--sp, 0));
  pointer-events: none;
}

.nav-links {
  --t3d-rx: 0deg;
  --t3d-ry: 0deg;
  --mx: 50%;
  --my: 40%;
  position: relative;
  isolation: isolate;
  flex-wrap: nowrap;
  flex-shrink: 1;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.05em;
  gap: 2px;
  padding: 5px;
  border-radius: 999px;
  background:
    radial-gradient(140% 90% at var(--mx) var(--my), rgba(255, 255, 255, 0.72), transparent 42%),
    linear-gradient(180deg, #f5f9fd 0%, #e4edf6 58%, #d7e3ef 100%);
  box-shadow:
    inset 5px 5px 12px rgba(150, 176, 204, 0.42),
    inset -4px -4px 10px rgba(255, 255, 255, 0.92),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 1px 0 rgba(255, 255, 255, 0.8),
    0 8px 18px -8px rgba(20, 52, 92, 0.32);
  transform: perspective(920px) rotateX(var(--t3d-rx)) rotateY(var(--t3d-ry));
  transform-style: preserve-3d;
  will-change: transform;
}

.nav-links::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 4;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, 0.55) 50%, transparent 62%);
  background-size: 240% 100%;
  animation: t3d-nav-sheen 6.4s ease-in-out infinite;
  mix-blend-mode: overlay;
  opacity: 0.7;
}

.nav-links a {
  z-index: 2;
  flex-shrink: 0;
  white-space: nowrap;
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--neu-ink);
  background: transparent;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
  transform: translateZ(1px);
  transition: color 0.22s, transform 0.28s var(--ease-out), text-shadow 0.22s;
}

.nav-links a::after { display: none; }

.nav-links a:hover,
.nav-links a.active {
  color: #074a8a;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
}
.nav-links a.active {
  background: linear-gradient(180deg, #ffffff 0%, #e8f3fc 100%);
  box-shadow:
    3px 4px 8px rgba(150, 176, 204, 0.32),
    -2px -2px 6px rgba(255, 255, 255, 0.92);
}
.nav-links.t3d-nav-ready a.active {
  background: transparent;
  box-shadow: none;
}
.nav-links a:hover { background: transparent; }

.nav-links a:hover { transform: translate3d(0, -1px, 8px); }
.nav-links a.is-pressed,
.nav-links a:active { transform: translate3d(0, 1px, 0); }

.t3d-nav-slider {
  position: absolute;
  top: 5px;
  left: 0;
  height: calc(100% - 10px);
  width: 72px;
  border-radius: 999px;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, #ffffff 0%, #eef6fd 46%, #d4e8f8 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -2px 4px rgba(10, 110, 193, 0.12),
    4px 6px 10px rgba(140, 168, 198, 0.38),
    -3px -3px 8px rgba(255, 255, 255, 0.95),
    0 6px 0 rgba(186, 206, 226, 0.55);
  transform: translate3d(var(--sx, 0px), 0, 0);
  transition:
    transform 0.52s cubic-bezier(0.22, 1.18, 0.36, 1),
    width 0.52s cubic-bezier(0.22, 1.18, 0.36, 1),
    box-shadow 0.22s ease;
}

.t3d-nav-slider.is-pressed {
  box-shadow:
    inset 4px 5px 10px rgba(120, 154, 186, 0.42),
    inset -2px -2px 6px rgba(255, 255, 255, 0.85);
  filter: brightness(0.97);
}

.t3d-nav-glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 3;
  background: radial-gradient(160px 70px at var(--mx, 50%) var(--my, 30%), rgba(255, 255, 255, 0.78), transparent 68%);
  mix-blend-mode: soft-light;
  opacity: 0;
  transition: opacity 0.28s;
}
.nav-links.is-lit .t3d-nav-glare { opacity: 1; }

.nav-platform,
.nav-cta { font-family: var(--font-display); letter-spacing: 0.05em; }

.nav-platform {
  color: #fff;
  background: linear-gradient(180deg, #3aa4f4 0%, #1578d8 52%, #0a5fb8 100%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -2px 0 rgba(0, 40, 90, 0.22),
    5px 8px 14px rgba(10, 90, 170, 0.32),
    -2px -2px 6px rgba(255, 255, 255, 0.35);
  transition: transform 0.22s var(--ease-out), box-shadow 0.22s;
}
.nav-platform:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    6px 12px 18px rgba(10, 90, 170, 0.38),
    -2px -2px 6px rgba(255, 255, 255, 0.4);
}
.nav-platform:active { transform: translateY(1px); }

.lang-toggle {
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  background: linear-gradient(180deg, #f7fbff 0%, #e4edf6 100%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    inset 0 1px 0 #fff,
    4px 5px 10px rgba(150, 176, 204, 0.38),
    -3px -3px 8px rgba(255, 255, 255, 0.9);
}
.lang-toggle:hover {
  background: linear-gradient(180deg, #ffffff 0%, #eaf3fb 100%);
  border-color: rgba(47, 180, 255, 0.28);
}

.lang-menu {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(232, 240, 248, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow:
    inset 0 1px 0 #fff,
    8px 16px 32px rgba(16, 48, 88, 0.18),
    -4px -4px 12px rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
}

.nav-cta {
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f4f8fd, #e5eef6);
  box-shadow:
    inset 3px 3px 7px rgba(160, 182, 206, 0.35),
    inset -2px -2px 6px rgba(255, 255, 255, 0.9);
}

.nav-toggle {
  background: linear-gradient(180deg, #f7fbff, #e4edf6);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    4px 5px 10px rgba(150, 176, 204, 0.4),
    -3px -3px 8px rgba(255, 255, 255, 0.9);
}

@keyframes t3d-nav-sheen {
  0%, 18% { background-position: 130% 0; }
  82%, 100% { background-position: -30% 0; }
}

@media (max-width: 1240px) {
  .nav-cta { display: none; }
}
@media (max-width: 1100px) {
  .nav { gap: 12px; }
  .nav-links { font-size: 13.5px; letter-spacing: 0.03em; }
  .nav-links a { padding: 8px 10px; }
}

/* ── 按钮：立体斜面 + 扫光 ── */
.btn {
  position: relative;
  overflow: hidden;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  font-size: 16px;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #1b92f2 0%, #0f6fd0 55%, #0a58ad 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.45) inset,
    0 -3px 0 rgba(0, 0, 0, 0.2) inset,
    0 3px 0 #08428a,
    0 16px 32px rgba(10, 110, 193, 0.46);
}
.btn-primary::after,
.btn-outline::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 36%, rgba(255, 255, 255, 0.5) 50%, transparent 64%);
  transform: translateX(-130%);
  transition: transform 0.75s var(--ease-out);
  pointer-events: none;
}
.btn-primary:hover::after,
.btn-outline:hover::after { transform: translateX(130%); }
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.5) inset,
    0 -3px 0 rgba(0, 0, 0, 0.2) inset,
    0 6px 0 #08428a,
    0 22px 38px rgba(10, 110, 193, 0.56);
}
.btn-primary:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 1px 0 #08428a, 0 8px 16px rgba(10,110,193,.4); }

.btn-outline {
  border-color: rgba(166, 228, 255, 0.55);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset;
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.22); border-color: var(--t-ice); }

/* ── Hero：深海军蓝 + 3D 场景画布 ── */
.hero {
  isolation: isolate;
  min-height: calc(100vh - 82px);
  min-height: calc(100svh - 82px);
  background: var(--t-ink-950);
  box-shadow: inset 0 -2px 0 rgba(47, 180, 255, 0.6);
}

body[class] .hero::before {
  background:
    radial-gradient(60% 90% at 76% 52%, rgba(10, 110, 193, 0.34), transparent 72%),
    linear-gradient(100deg, rgba(4, 10, 21, 0.94) 0%, rgba(6, 16, 34, 0.78) 46%, rgba(6, 18, 38, 0.52) 100%);
}

body[class] .hero::after {
  background-image:
    linear-gradient(rgba(79, 181, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 181, 255, 0.07) 1px, transparent 1px);
  background-size: 56px 56px, 56px 56px;
  background-position: 0 0, 0 0;
  opacity: 1;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 28%, #000 72%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 28%, #000 72%, transparent 100%);
}

.hero-slide img { filter: saturate(1.08) contrast(1.04); }

.t3d-hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: screen;
}

.hero-content {
  perspective: 1100px;
  transform-style: preserve-3d;
}
.hero-content > * { transform-origin: 0 50%; }

/* 首屏入场：全页唯一一次编排动画 */
@keyframes t3dRise {
  from { opacity: 0; transform: translate3d(0, 34px, -80px) rotateX(12deg); filter: blur(8px); }
  to   { opacity: 1; transform: none; filter: none; }
}
.hero-content > * { animation: t3dRise 1.1s var(--ease-out) both; }
.hero-content > *:nth-child(2) { animation-delay: 0.12s; }
.hero-content > *:nth-child(3) { animation-delay: 0.26s; }
.hero-content > *:nth-child(4) { animation-delay: 0.4s; }
.hero-content > *:nth-child(5) { animation-delay: 0.52s; }

body[class] .hero-content .tag {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(120, 205, 255, 0.4);
  color: #d4eeff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.16) inset;
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  font-size: 14px;
}
.hero-content .tag::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--t-red-soft);
  box-shadow: 0 0 0 0 rgba(255, 90, 77, 0.7);
  animation: t3dPulse 2.2s infinite;
}
@keyframes t3dPulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 90, 77, 0.65); }
  70%  { box-shadow: 0 0 0 10px rgba(255, 90, 77, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 90, 77, 0); }
}

body[class] .hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 4.2vw, 58px);
  letter-spacing: 0.04em;
  line-height: 1.2;
  background: linear-gradient(180deg, #ffffff 15%, #d6edff 58%, #86cdff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 10px 26px rgba(0, 0, 0, 0.5));
}
body[class] .hero-subtitle { color: rgba(226, 240, 255, 0.84); }

body[class] .hero-pill {
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  font-size: 15px;
  color: #e6f4ff;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(140, 210, 255, 0.3);
  border-left: 3px solid var(--t-red-soft);
  border-radius: 10px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 12px 24px -10px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s var(--ease-out), border-color 0.3s, box-shadow 0.3s;
}
body[class] .hero-pill:hover {
  transform: translateY(-4px) translateZ(20px);
  border-color: var(--t-cyan);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.22) inset, 0 18px 30px -10px rgba(47, 180, 255, 0.45);
  background: rgba(255, 255, 255, 0.16);
}

.hero-btn {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(166, 228, 255, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 12px 24px -8px rgba(0,0,0,.6);
}
.hero-btn:hover { background: rgba(47, 180, 255, 0.35); }
.hero-indicator { background: rgba(255, 255, 255, 0.35); }
.hero-indicator.active {
  background: linear-gradient(90deg, var(--t-cyan), var(--t-red-soft));
  box-shadow: 0 0 14px rgba(47, 180, 255, 0.8);
}

/* 内页 Hero：略矮，内容更聚焦 */
.about-page .hero,
.products-page .hero,
.solutions-page .hero,
.honors-page .hero,
.news-page .hero,
.contact-page .hero { min-height: clamp(360px, 56vh, 540px); }

body[class] .hero-content { padding-top: clamp(80px, 12vh, 130px); padding-bottom: clamp(80px, 11vh, 120px); }

/* ── 深色段落（核心实力 / 制造流程）：深海军蓝 + 光晕 ── */
.section:has(.stat-grid),
.section:has(.process) {
  background:
    radial-gradient(900px 420px at 12% 0%, rgba(47, 180, 255, 0.22), transparent 62%),
    radial-gradient(800px 420px at 92% 100%, rgba(232, 17, 45, 0.14), transparent 62%),
    linear-gradient(rgba(79, 181, 255, 0.06) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(79, 181, 255, 0.06) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(165deg, var(--t-ink-950) 0%, var(--t-ink-800) 100%);
  color: #e6f1ff;
  overflow: hidden;
}
.section:has(.stat-grid) .section-title,
.section:has(.process) .section-title {
  color: #fff;
  text-shadow: 0 0 28px rgba(47, 180, 255, 0.45);
}
.section:has(.stat-grid) .section-lead,
.section:has(.process) .section-lead { color: rgba(214, 232, 255, 0.74); }

/* 核心实力：3D 玻璃板块 */
.stat-grid { perspective: 1400px; gap: 24px; }
.stat {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.025));
  border: 1px solid rgba(120, 200, 255, 0.24);
  border-radius: 18px;
  padding: 34px 26px 30px;
  box-shadow: var(--slab-dark);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.stat::before {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--t-cyan) 30%, var(--t-red-soft) 70%, transparent);
}
.stat strong {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.4vw, 46px);
  font-weight: 700;
  letter-spacing: 0.03em;
  background: linear-gradient(180deg, #ffffff 10%, #8fd4ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 18px rgba(47, 180, 255, 0.45));
}
.stat span { color: rgba(214, 232, 255, 0.76); font-size: 14px; }

/* ── 卡片：厚度 + 倾斜 + 高光 ── */
.card-grid { perspective: 1400px; gap: 26px; }
.card {
  background: linear-gradient(165deg, #ffffff 0%, #f1f6fc 100%);
  border: 1px solid rgba(10, 110, 193, 0.14);
  border-radius: 18px;
  padding: 32px 28px;
  box-shadow: var(--slab-light);
  transform-style: preserve-3d;
}
.card::before {
  width: 100%;
  height: 3px;
  top: 0;
  left: 0;
  background: linear-gradient(90deg, var(--t-blue), var(--t-cyan), var(--t-red));
  opacity: 1;
  transform: scaleX(0.18);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}
.card:hover::before { transform: scaleX(1); }
.card h3 { font-weight: 700; font-size: 21px; letter-spacing: 0.04em; color: var(--t-ink-800); transform: translateZ(26px); }
.card p { transform: translateZ(12px); color: #475569; }

/* 倾斜高光层（由 tech3d.js 注入的空元素） */
.t3d-glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.55), transparent 55%);
  mix-blend-mode: soft-light;
  transition: opacity 0.3s;
}
.t3d-tilting > .t3d-glare { opacity: 1; }
.section:has(.stat-grid) .t3d-glare,
.section:has(.process) .t3d-glare {
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(120, 210, 255, 0.4), transparent 58%);
  mix-blend-mode: screen;
}

/* ── 图文块：HUD 取景框 + 扫描线 ── */
.media-frame,
.product-detail-media {
  border-radius: 18px;
  border: 1px solid rgba(47, 180, 255, 0.4);
  box-shadow: var(--slab-light);
  transform-style: preserve-3d;
  position: relative;
  overflow: hidden;
}
.media-frame::before,
.product-detail-media::before {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: 4;
  pointer-events: none;
  --c: var(--t-cyan);
  background:
    linear-gradient(var(--c), var(--c)) top left / 26px 2px no-repeat,
    linear-gradient(var(--c), var(--c)) top left / 2px 26px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 26px 2px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 2px 26px no-repeat,
    linear-gradient(var(--t-red-soft), var(--t-red-soft)) bottom left / 26px 2px no-repeat,
    linear-gradient(var(--t-red-soft), var(--t-red-soft)) bottom left / 2px 26px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 26px 2px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 2px 26px no-repeat;
  filter: drop-shadow(0 0 6px rgba(47, 180, 255, 0.8));
}
.media-frame::after,
.product-detail-media::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 90px;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(47, 180, 255, 0.2) 55%, rgba(166, 228, 255, 0.5) 99%, transparent 100%);
  transform: translateY(-110%);
  animation: t3dScan 6.5s ease-in-out infinite;
  opacity: 0.8;
}
@keyframes t3dScan {
  0%, 12%  { transform: translateY(-110%); }
  62%, 100% { transform: translateY(420%); }
}
.media-frame img,
.product-detail-media img { transition: transform 0.8s var(--ease-out), filter 0.5s; }

/* ── 制造流程：能量线 + 玻璃步骤板 ── */
.process { position: relative; perspective: 1400px; gap: 24px; }
.process::before {
  content: "";
  position: absolute;
  left: 3%;
  right: 3%;
  top: 0;
  height: 3px;
  z-index: 2;
  background: linear-gradient(90deg, rgba(47, 180, 255, 0.0), rgba(47, 180, 255, 0.35) 12%, rgba(47, 180, 255, 0.35) 88%, rgba(47, 180, 255, 0));
  pointer-events: none;
}
.process::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  z-index: 3;
  pointer-events: none;
  width: 160px;
  height: 5px;
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, var(--t-red-soft), #fff);
  box-shadow: 0 0 16px 2px rgba(255, 90, 77, 0.8);
  animation: t3dFlow 4.2s linear infinite;
}
@keyframes t3dFlow {
  from { transform: translateX(0); opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  to   { transform: translateX(calc(min(1200px, 92vw) - 160px)); opacity: 0; }
}
.process-step {
  position: relative;
  z-index: 1;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(120, 200, 255, 0.26);
  border-top: 3px solid var(--t-cyan);
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: var(--slab-dark);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transform-style: preserve-3d;
}
.process-step span {
  width: auto;
  height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.12em;
  background: linear-gradient(135deg, #1b92f2, #0a58ad);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(47, 180, 255, 0.18), 0 8px 18px rgba(10, 110, 193, 0.5);
  transform: translateZ(30px);
}
.process-step h4 { color: #fff; font-size: 20px; letter-spacing: 0.05em; transform: translateZ(22px); }
.process-step p { color: rgba(214, 232, 255, 0.78); transform: translateZ(10px); }

/* ── 合作伙伴：玻璃瓷砖 ── */
.partner-logo {
  background: linear-gradient(165deg, #ffffff, #f0f5fb);
  border: 1px solid rgba(10, 110, 193, 0.14);
  border-radius: 14px;
  box-shadow: var(--slab-light);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}
.partner-logo img { filter: grayscale(0.35) contrast(1.05); transition: filter 0.4s, transform 0.4s var(--ease-out); }
.partner-logo:hover { transform: translateY(-6px) scale(1.03); }
.partner-logo:hover img { filter: none; transform: scale(1.05); }

/* ── 新闻条目 ── */
.news-item {
  background: linear-gradient(165deg, #ffffff, #f2f7fc);
  border-radius: 16px;
  border: 1px solid rgba(10, 110, 193, 0.14);
  border-left: 4px solid var(--t-blue);
  box-shadow: var(--slab-light);
}
.news-item:hover { border-left-color: var(--t-red); transform: translateX(6px) translateY(-2px); }
.news-item .section-lead { margin: 0; }
.news-item h4 { font-family: var(--font-display); font-size: 19px; letter-spacing: 0.03em; }
.news-item span { color: var(--t-blue); font-family: var(--font-display); letter-spacing: 0.08em; font-size: 13.5px; }

/* ── CTA：旋转流光边框 ── */
.cta-banner {
  position: relative;
  border-radius: 26px;
  background:
    radial-gradient(500px 240px at 90% 0%, rgba(47, 180, 255, 0.28), transparent 70%),
    radial-gradient(420px 220px at 0% 100%, rgba(232, 17, 45, 0.2), transparent 70%),
    linear-gradient(130deg, #061022 0%, #0b2145 55%, #0a3a73 100%);
  box-shadow: var(--slab-dark);
}
.cta-banner::before {
  content: "";
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: auto;
  height: auto;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(from var(--t-ang), transparent 0 62%, var(--t-cyan) 80%, #fff 88%, var(--t-red-soft) 94%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: t3dSpin 7s linear infinite;
  pointer-events: none;
}
.cta-banner::after { display: none; }
@keyframes t3dSpin { to { --t-ang: 360deg; } }
.cta-banner p { color: rgba(226, 240, 255, 0.82); }
.cta-banner .section-title { -webkit-text-fill-color: #fff; background: none; color: #fff; font-size: clamp(24px, 2.7vw, 36px); }

/* ── 荣誉 / 案例：3D 卡片 ── */
.gallery-item,
.case-card {
  border-radius: 16px;
  border: 1px solid rgba(10, 110, 193, 0.14);
  box-shadow: var(--slab-light);
  transform-style: preserve-3d;
  position: relative;
}
.gallery-item { background: linear-gradient(165deg, #fff, #eef4fb); }
.gallery-item:hover,
.case-card:hover { box-shadow: var(--slab-light); }
.case-title { font-weight: 700; letter-spacing: 0.03em; color: var(--t-ink-800); }
.case-media img { transition: transform 0.8s var(--ease-out); }

.cases-page-btn,
.cases-page-number { font-family: var(--font-display); letter-spacing: 0.04em; }
.cases-page-number.active {
  background: linear-gradient(135deg, #1b92f2, #0a58ad);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 18px rgba(10, 110, 193, 0.4);
}

/* ── 产品详情 ── */
.product-detail-title { font-weight: 800; letter-spacing: 0.04em; color: var(--t-ink-900); }
.product-detail-series { font-family: var(--font-display); letter-spacing: 0.08em; color: var(--t-blue); }
.badge {
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  border: 1px solid rgba(10, 110, 193, 0.28);
  background: linear-gradient(180deg, #fff, #eaf3fc);
  color: #0b4a86;
  box-shadow: 0 1px 0 #fff inset, 0 3px 0 #cfe0f3;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}
.badge:hover { transform: translateY(-2px); background: linear-gradient(180deg, #fff, #e0effd); box-shadow: 0 1px 0 #fff inset, 0 5px 0 #cfe0f3; }

/* ── 联系页：表单 / 地址卡 ── */
.form input,
.form textarea {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(10, 110, 193, 0.22);
  border-radius: 12px;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease-out);
}
.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--t-cyan);
  box-shadow: 0 0 0 4px rgba(47, 180, 255, 0.2), 0 12px 24px -10px rgba(10, 110, 193, 0.4);
  transform: translateY(-1px);
}
.contact-address-item {
  border-radius: 16px;
  box-shadow: var(--slab-light);
  border: 1px solid rgba(10, 110, 193, 0.14);
  background: linear-gradient(165deg, #fff, #f1f6fc);
}
.contact-address-label { font-family: var(--font-display); letter-spacing: 0.06em; }

/* ── 页脚 ── */
.site-footer {
  background:
    radial-gradient(900px 420px at 8% 0%, rgba(47, 180, 255, 0.2), transparent 62%),
    radial-gradient(700px 360px at 95% 100%, rgba(232, 17, 45, 0.08), transparent 62%),
    linear-gradient(rgba(10, 110, 193, 0.05) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(10, 110, 193, 0.05) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(180deg, #f4f8fd 0%, #e2ebf6 100%);
  border-top: 1px solid rgba(10, 110, 193, 0.2);
}
.footer-grid h4 { font-weight: 700; letter-spacing: 0.08em; color: var(--t-ink-900); }
.footer-grid h4::after { background: linear-gradient(90deg, var(--t-blue), var(--t-red)); }
.footer-grid a:hover { color: var(--t-blue); }

/* 页脚微信 / QQ：苹果 iOS App 图标（超椭圆圆角方） */
.footer-social-icons {
  gap: 18px;
  align-items: flex-end;
}
.footer-social-icon {
  width: 28px;
  height: 28px;
  cursor: pointer;
}
.footer-social-icon > img {
  width: 28px;
  height: 28px;
  object-fit: cover;
  opacity: 1;
  border-radius: 22.5%;
  background: #fff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.62) inset,
    0 5px 10px rgba(15, 23, 42, 0.16),
    0 1px 2px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s var(--ease-out), box-shadow 0.22s;
}
.footer-social-icon:first-child > img { background: #07c160; }
.footer-social-icon:last-child > img { background: #f3f5f8; }
.footer-social-icon:hover > img {
  opacity: 1;
  transform: translateY(-2px) scale(1.05);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 8px 14px rgba(15, 23, 42, 0.2);
}
.footer-social-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 22.5%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 40%);
  pointer-events: none;
}

/* ── 滚动入场：3D 翻转（替代普通淡入上移） ── */
.reveal {
  opacity: 0;
  transform: perspective(1000px) translate3d(0, 40px, -60px) rotateX(14deg);
  transform-origin: 50% 100%;
  transition: opacity 0.9s var(--ease-out), transform 1s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* 倾斜进行中：JS 以内联 transform 控制 */
.t3d-tilt { will-change: transform; }

/* ── 无障碍：键盘焦点 ── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--t-cyan);
  outline-offset: 3px;
}

/* ── 移动端：弱化 3D，保证性能与可读 ── */
@media (max-width: 980px) {
  .process::before,
  .process::after { display: none; }
  .card h3, .card p,
  .process-step h4, .process-step p, .process-step span { transform: none; }

  .nav-links,
  .nav-links.t3d-nav-ready {
    position: absolute;
    top: 82px;
    right: 0;
    flex-direction: column;
    gap: 4px;
    padding: 10px;
    min-width: 180px;
    border-radius: 18px;
    overflow: hidden;
    transform: translateY(-10px);
    will-change: auto;
  }
  .nav-links.open,
  .nav-links.t3d-nav-ready.open { transform: translateY(0); }
  .nav-links::before,
  .t3d-nav-slider,
  .t3d-nav-glare { display: none; }
  .nav-links a,
  .nav-links a:hover,
  .nav-links a.active,
  .nav-links a.is-pressed,
  .nav-links a:active {
    width: 100%;
    transform: none;
    text-align: left;
  }
  .nav-links a.active,
  .nav-links a:hover {
    background: linear-gradient(180deg, #ffffff, #e6f1fb);
    box-shadow:
      3px 4px 8px rgba(150, 176, 204, 0.32),
      -2px -2px 6px rgba(255, 255, 255, 0.9);
  }
}
@media (max-width: 720px) {
  .reveal { transform: translate3d(0, 28px, 0); }
  .media-frame::after,
  .product-detail-media::after { display: none; }
  .hero { min-height: auto; }
  body[class] .hero-content { padding-top: 72px; padding-bottom: 88px; }
}

/* ── 减少动态：尊重系统设置 ── */
@media (prefers-reduced-motion: reduce) {
  .hero-content > *,
  .media-frame::after,
  .product-detail-media::after,
  .cta-banner::before,
  .process::after,
  .hero-content .tag::before,
  .nav-links::before { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .t3d-hero-canvas { display: none; }
  .nav-links,
  .nav-links a,
  .t3d-nav-slider { transition: none !important; transform: none !important; }
}

/* RTL（阿拉伯语）：保持能量线方向 */
html[dir="rtl"] .process::after { animation-direction: reverse; }
html[dir="rtl"] .nav-links::before { animation-direction: reverse; }

/* ── 窄屏导航修复：原站在 <420px 宽度下，Logo + 登录按钮 + 语言切换 +
   汉堡菜单会超出视口造成横向滚动（原站既有问题）。这里只收紧间距，
   不隐藏任何入口、不改动任何文字。 ── */
@media (max-width: 420px) {
  .nav { gap: 8px; }
  .brand img { height: 38px; }
  .nav-platform { padding: 6px 8px; font-size: 11px; letter-spacing: 0.02em; }
  .lang-toggle { padding: 6px 8px; font-size: 12px; }
  .nav-toggle { width: 34px; height: 34px; }
  html, body { overflow-x: hidden; }
}
