/* ============================================================
   common.css — 5 个页面的共用样式：磨砂玻璃导航、渐变背景、光晕
   ============================================================ */
:root {
  --ink: #16315f;
  --ink-soft: #47608f;
  --blue: #4f86ff;
  --violet: #a580ff;
  --nav-h: 64px;
  --grad-top: #dfe8ff;
  --grad-mid: #d4dcff;
  --grad-bottom: #cdd3fb;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; }

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
               "Noto Sans SC", "Source Han Sans SC", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  color: var(--ink);
  overflow: hidden;
  background:
    radial-gradient(1100px 680px at 12% 6%, rgba(96, 150, 255, .55), transparent 60%),
    radial-gradient(900px 620px at 90% 12%, rgba(168, 130, 255, .5), transparent 62%),
    radial-gradient(760px 560px at 50% 110%, rgba(130, 150, 255, .45), transparent 66%),
    linear-gradient(180deg, var(--grad-top) 0%, var(--grad-mid) 52%, var(--grad-bottom) 100%);
}

/* 画布层：每个页面在 .stage 内放一个全屏 canvas */
#scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
}

/* ===== 磨砂玻璃导航 ===== */
.nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: var(--nav-h);
  z-index: 60;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  background: rgba(255, 255, 255, .42);
  border-bottom: 1px solid rgba(255, 255, 255, .55);
  box-shadow: 0 1px 0 rgba(120, 140, 200, .08), 0 10px 30px rgba(120, 140, 200, .10);
}
.nav-inner {
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 32px);
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 48px);
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: .04em;
  white-space: nowrap;
}
.logo img {
  height: 40px;
  width: auto;
  display: block;
  background: #fff;
  padding: 0px 9px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(23, 49, 95, .12);
}
.logo b { color: var(--blue); font-weight: 700; }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.6vw, 30px);
  list-style: none;
}
.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14.5px;
  letter-spacing: .02em;
  padding: 6px 4px;
  border-radius: 8px;
  transition: color .25s, background .25s;
}
.nav-links a:hover, .nav-links a.on {
  color: var(--ink);
  background: rgba(255, 255, 255, .6);
}
.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.seg {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, .65);
  border: 1px solid rgba(120, 140, 200, .25);
  border-radius: 999px;
  padding: 4px;
}
.seg button {
  border: none;
  background: transparent;
  color: var(--ink-soft);
  font-size: 12.5px;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
}
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(90,140,255,.22); }
.btn-primary {
  background: linear-gradient(135deg, #6b8bff, #9b7bff);
  color: #fff;
  border: none;
  font-size: 13.5px;
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(120, 110, 255, .35);
  transition: transform .2s, box-shadow .2s;
  font-family: inherit;
  letter-spacing: .03em;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(120,110,255,.45); }

/* ===== 画布内 3D 场景 ===== */
.stage {
  position: relative;
  width: 100vw;
  height: 100svh;
  overflow: hidden;
  z-index: 1;
}

/* ===== 中央文案 ===== */
.hero {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
  padding-top: var(--nav-h);
}
.hero .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-soft);
  letter-spacing: .12em;
  background: rgba(255,255,255,.45);
  border: 1px solid rgba(255,255,255,.6);
  padding: 6px 14px;
  border-radius: 999px;
  backdrop-filter: blur(10px);
  margin-bottom: 22px;
  opacity: 0;
  animation: fade-up .9s .15s cubic-bezier(.22,.61,.36,1) forwards;
}
.hero .badge::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  box-shadow: 0 0 10px rgba(122,140,255,.8);
}
.hero h1 {
  font-size: clamp(40px, 7.4vw, 90px);
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1.05;
  color: var(--ink);
  opacity: 0;
  animation: fade-up 1.1s .25s cubic-bezier(.22,.61,.36,1) forwards;
}
.hero .tagline {
  margin-top: 18px;
  font-size: clamp(17px, 2.2vw, 24px);
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--ink-soft);
  opacity: 0;
  animation: fade-up 1.1s .5s cubic-bezier(.22,.61,.36,1) forwards;
}
.hero .desc {
  margin-top: 16px;
  max-width: 720px;
  font-size: clamp(13px, 1.4vw, 15.5px);
  line-height: 1.9;
  color: var(--ink-soft);
  letter-spacing: .02em;
  opacity: 0;
  animation: fade-up 1.1s .8s cubic-bezier(.22,.61,.36,1) forwards;
}
.hero .cta {
  margin-top: 32px;
  pointer-events: auto;
  opacity: 0;
  animation: fade-up 1.1s 1.05s cubic-bezier(.22,.61,.36,1) forwards;
}
.hero .cta .btn-primary { font-size: 15px; padding: 13px 30px; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== 光晕：蓝紫交融 + 高斯模糊 + 渐隐渐显/融合分离 ===== */
.glow {
  position: absolute;
  z-index: 2;
  filter: blur(60px);
  border-radius: 50%;
  pointer-events: none;
}

/* 融合-分离：两个光晕互相靠近又拉开 */
@keyframes blend-separate {
  0%, 100% { transform: translateX(-70px) scale(1); opacity: .85; }
  50% { transform: translateX(90px) scale(1.18); opacity: 1; }
}
/* 渐隐渐显 */
@keyframes fade-cycle {
  0%, 100% { opacity: .12; transform: translate(var(--dx, 0), var(--dy, 0)) scale(.92); }
  50% { opacity: .9; transform: translate(var(--dx2, 0), var(--dy2, 0)) scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
  .hero .badge, .hero h1, .hero .tagline, .hero .desc, .hero .cta,
  .glow { animation: none !important; opacity: 1 !important; }
}

/* 截图验证辅助：body.static 时冻结所有入场动画到最终态 */
body.static *, body.static *::before, body.static *::after {
  animation: none !important;
  transition: none !important;
}
body.static .hero .badge, body.static .hero h1, body.static .hero .tagline,
body.static .hero .desc, body.static .hero .cta,
body.static .col-text h2, body.static .col-text p, body.static .col-text .link,
body.static .steps, body.static .numbered,
body.static .cta-panel .small-tag, body.static .cta-panel h2, body.static .cta-panel p,
body.static .cta-panel .cta, body.static .footer {
  opacity: 1 !important; transform: none !important;
}
body.static .glow, body.static .hero-glow, body.static .orbit-glow { opacity: 1 !important; }

/* ===== 底部磨砂玻璃页脚 ===== */
.footer {
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  z-index: 12;
  background: rgba(255,255,255,.38);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-top: 1px solid rgba(255,255,255,.6);
  padding: 14px clamp(20px, 4vw, 48px);
  opacity: 0;
  animation: fade-up .8s 1.05s cubic-bezier(.22,.61,.36,1) forwards;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-soft);
}
.footer-bottom .left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-bottom .mini-logo { height: 18px; width: auto; }
.footer-bottom .right {
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-bottom .right span { color: var(--ink-soft); font-size: 12px; }
.footer-bottom .redbook-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: 1px solid rgba(120,140,200,.25);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
}
.footer-bottom .redbook-btn:hover {
  background: rgba(255,255,255,.6);
  color: var(--ink);
  border-color: rgba(120,140,200,.45);
}

/* ===== 弹窗遮罩 ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal-box {
  position: relative;
  max-width: 420px;
  width: 88vw;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 24px 60px rgba(0,0,0,.25);
}
.modal-box img {
  width: 100%;
  height: auto;
  display: block;
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,.45);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: grid;
  place-items: center;
  line-height: 1;
  transition: background .2s;
}
.modal-close:hover { background: rgba(0,0,0,.7); }

/* ===== 电话弹窗 ===== */
.phone-modal .modal-box {
  padding: 40px 32px;
  text-align: center;
}
.phone-modal .modal-box h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}
.phone-modal .modal-box p {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 24px;
}
.phone-modal .phone-number {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 26px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: .04em;
  margin-bottom: 28px;
}
.phone-modal .phone-number .icon {
  font-size: 28px;
}
.phone-modal .modal-box .phone-call-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #6b8bff, #9b7bff);
  color: #fff;
  border: none;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 36px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(120, 110, 255, .35);
  transition: transform .2s, box-shadow .2s;
  font-family: inherit;
  text-decoration: none;
}
.phone-modal .modal-box .phone-call-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(120,110,255,.45);
}

/* ===== 汉堡菜单按钮 ===== */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 100;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: all .3s ease;
  border-radius: 2px;
}
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== 移动端导航抽屉 ===== */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  z-index: 200;
  padding: 80px 24px 24px;
  transition: right .35s cubic-bezier(.4, 0, .2, 1);
  box-shadow: -4px 0 30px rgba(0, 0, 0, .15);
  display: flex;
  flex-direction: column;
}
.mobile-nav.active {
  right: 0;
}
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .4);
  z-index: 199;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
}
.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}
.mobile-nav .close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--ink);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background .2s;
}
.mobile-nav .close-btn:hover {
  background: rgba(0, 0, 0, .05);
}
.mobile-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mobile-nav ul li a {
  display: block;
  padding: 14px 16px;
  color: var(--ink);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  border-radius: 12px;
  transition: all .2s;
}
.mobile-nav ul li a:hover,
.mobile-nav ul li a.on {
  background: rgba(79, 134, 255, .1);
  color: var(--blue);
}
.mobile-nav .mobile-nav-bottom {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(120, 140, 200, .15);
}
.mobile-nav .mobile-nav-lang {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.mobile-nav .mobile-nav-lang button {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(120, 140, 200, .25);
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
}
.mobile-nav .mobile-nav-lang button.on {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.mobile-nav .mobile-nav-cta {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #6b8bff, #9b7bff);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
}
.mobile-nav .mobile-nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(120, 110, 255, .35);
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .seg { display: none; }
  .nav-right .btn-primary { display: none; }
  .hamburger { display: block; }
}
