/**
 * GUANGFU 官网增量样式 — 叠在伴学 site.css 之上
 * 背景层不动；悬浮模块做成更精致的奢华毛玻璃
 * 字体：科技感 — Orbitron / Space Grotesk / Noto Sans SC
 */

:root {
  /* 科技感：Orbitron 品牌 / Space Grotesk UI / Noto Sans SC 中文 */
  --font-display: "Orbitron", "Space Grotesk", "Noto Sans SC", sans-serif;
  --font-ui: "Space Grotesk", "Noto Sans SC", "PingFang SC", sans-serif;
  --font-cn: "Noto Sans SC", "Space Grotesk", "PingFang SC", "Microsoft YaHei", sans-serif;
}

html,
body,
button,
input,
textarea {
  font-family: var(--font-cn) !important;
  font-weight: 400;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}

.nav-logo-text,
.nav-links a,
.btn,
.footer-brand,
.footer-links a,
.role-tab,
.card-link,
.arch-item strong,
.arch-tag,
.stat-num,
.mp-links-title,
.mp-qr-tip,
.mp-app-id,
.check-list li,
.flow-steps li,
.product-chrome em,
.product-side i,
.product-pill,
.hero-badge,
.mp-link-row {
  font-family: var(--font-ui) !important;
  font-weight: 500 !important;
  letter-spacing: 0.06em;
}

.nav-logo-text {
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-links a,
.btn,
.role-tab {
  letter-spacing: 0.08em;
  font-weight: 600 !important;
}

.btn {
  font-family: var(--font-ui) !important;
  text-transform: none;
}

.hero-lead,
.section-head p,
.glass-card p,
.cta-card > p,
.cta-tip,
.mp-link-note,
.certify-head .sub,
.certify-desc,
.arch-item span:last-child,
.footer-copy {
  font-family: var(--font-cn) !important;
  letter-spacing: 0.03em;
  line-height: 1.75;
  font-weight: 400 !important;
}

.hero-title {
  font-family: var(--font-display) !important;
}

.hero-brand-en {
  font-family: var(--font-display) !important;
  font-weight: 800 !important;
  letter-spacing: 0.22em;
  font-size: 0.9em;
  text-transform: uppercase;
}

/* 中文主标题：现代无衬线 + 宽字距，偏未来感 */
.hero-brand-cn,
.hero-title .text-gradient {
  font-family: var(--font-cn) !important;
  font-weight: 700 !important;
  letter-spacing: 0.18em;
  line-height: 1.25;
  -webkit-text-fill-color: transparent;
}

.section-head h2,
.cta-card h2 {
  font-family: var(--font-cn) !important;
  letter-spacing: 0.12em;
  font-weight: 700 !important;
}

.glass-card h3,
.mp-panel h3,
.flow-panel h4,
.certify-head h3 {
  font-family: var(--font-cn) !important;
  letter-spacing: 0.08em;
  font-weight: 600 !important;
}

.footer-copy {
  font-family: var(--font-ui) !important;
  letter-spacing: 0.06em;
  font-size: 13px !important;
  font-weight: 500 !important;
}

.arch-tag,
.product-pill,
.hero-badge {
  font-family: var(--font-ui) !important;
  font-weight: 600 !important;
  letter-spacing: 0.1em;
  text-transform: none;
}

.gf-logo {
  background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 45%, #8b5cf6 100%) !important;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.18) inset,
    0 8px 20px -6px rgba(59, 130, 246, 0.55);
}

/* ——— 奢华玻璃底座 ——— */
.glass,
.glass-card,
.nav-glass,
.arch-strip.glass,
.hero-badge.glass,
.product-stage.glass {
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(
      155deg,
      rgba(255, 255, 255, 0.14) 0%,
      rgba(255, 255, 255, 0.04) 28%,
      rgba(255, 255, 255, 0) 52%
    ),
    linear-gradient(
      180deg,
      rgba(30, 41, 70, 0.55) 0%,
      rgba(12, 18, 36, 0.62) 100%
    ) !important;
  backdrop-filter: blur(32px) saturate(1.55) !important;
  -webkit-backdrop-filter: blur(32px) saturate(1.55) !important;
  border: 1px solid transparent !important;
  background-clip: padding-box !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.14) inset,
    0 -1px 0 rgba(0, 0, 0, 0.35) inset,
    0 0 0 1px rgba(148, 163, 255, 0.14),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 10px 40px -12px rgba(0, 0, 0, 0.65),
    0 28px 64px -28px rgba(15, 23, 42, 0.9),
    0 0 80px -40px rgba(99, 102, 241, 0.35);
}

/* 高光描边环（伪边框，比单色 border 更「贵」） */
.glass::before,
.glass-card::before,
.nav-glass::before,
.arch-strip.glass::before,
.hero-badge.glass::before,
.product-stage.glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.42) 0%,
    rgba(147, 197, 253, 0.28) 22%,
    rgba(129, 140, 248, 0.12) 48%,
    rgba(255, 255, 255, 0.04) 68%,
    rgba(34, 211, 238, 0.22) 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}

/* 顶部一道细腻折射高光 */
.glass::after,
.glass-card::after,
.nav-glass::after,
.arch-strip.glass::after,
.product-stage.glass::after {
  content: '';
  position: absolute;
  left: 10%;
  right: 10%;
  top: 0;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.55) 35%,
    rgba(165, 180, 252, 0.65) 50%,
    rgba(255, 255, 255, 0.4) 65%,
    transparent 100%
  );
  opacity: 0.85;
  pointer-events: none;
  z-index: 3;
}

.glass-card {
  border-radius: 26px !important;
  overflow: hidden;
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.45s ease !important;
}

.glass-card > * {
  position: relative;
  z-index: 1;
}

.glass-card:hover {
  transform: translateY(-6px) scale(1.012) !important;
  background:
    linear-gradient(
      155deg,
      rgba(255, 255, 255, 0.2) 0%,
      rgba(255, 255, 255, 0.06) 30%,
      rgba(255, 255, 255, 0) 55%
    ),
    linear-gradient(
      180deg,
      rgba(36, 48, 82, 0.68) 0%,
      rgba(15, 23, 42, 0.72) 100%
    ) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22) inset,
    0 -1px 0 rgba(0, 0, 0, 0.3) inset,
    0 0 0 1px rgba(165, 180, 252, 0.28),
    0 18px 48px -16px rgba(59, 130, 246, 0.35),
    0 40px 80px -36px rgba(0, 0, 0, 0.75),
    0 0 100px -30px rgba(99, 102, 241, 0.45) !important;
}

.nav-glass {
  border-radius: 18px !important;
  overflow: hidden;
}

.nav-glass > * {
  position: relative;
  z-index: 1;
}

.site-nav.scrolled .nav-glass {
  background:
    linear-gradient(
      155deg,
      rgba(255, 255, 255, 0.12) 0%,
      rgba(255, 255, 255, 0.03) 40%,
      transparent 70%
    ),
    rgba(10, 15, 28, 0.78) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 0 0 1px rgba(148, 163, 255, 0.16),
    0 16px 48px -12px rgba(0, 0, 0, 0.7),
    0 0 60px -28px rgba(99, 102, 241, 0.4) !important;
}

.hero-badge.glass {
  border-radius: 999px !important;
  overflow: hidden;
  padding: 9px 18px !important;
  letter-spacing: 0.02em;
}

.hero-badge.glass::after {
  left: 18%;
  right: 18%;
}

.arch-strip.glass {
  border-radius: 22px !important;
  overflow: hidden;
  padding: 22px 26px !important;
}

.arch-strip.glass > * {
  position: relative;
  z-index: 1;
}

.arch-item {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(8, 12, 24, 0.45) !important;
  border: 1px solid rgba(165, 180, 252, 0.12) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 8px 24px -12px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.arch-item.highlight {
  border-color: rgba(129, 140, 248, 0.45) !important;
  background:
    linear-gradient(160deg, rgba(99, 102, 241, 0.22), rgba(14, 165, 233, 0.08)),
    rgba(15, 23, 42, 0.5) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.14) inset,
    0 0 0 1px rgba(165, 180, 252, 0.15),
    0 12px 32px -10px rgba(99, 102, 241, 0.4),
    0 0 40px -16px rgba(59, 130, 246, 0.35);
}

.btn-primary {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.28) inset,
    0 8px 28px -6px rgba(99, 102, 241, 0.55),
    0 0 40px -12px rgba(59, 130, 246, 0.45) !important;
}

.btn-primary:hover {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 14px 40px -8px rgba(99, 102, 241, 0.7),
    0 0 56px -10px rgba(139, 92, 246, 0.5) !important;
}

.btn-secondary {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02)),
    rgba(15, 23, 42, 0.45) !important;
  border: 1px solid rgba(165, 180, 252, 0.28) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 8px 24px -10px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
}

.icon-box {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 8px 20px -10px rgba(0, 0, 0, 0.45);
}

.hero {
  min-height: auto;
  padding-bottom: 64px;
}

.hero-title {
  margin-bottom: 20px;
}

.product-stage {
  max-width: 720px;
  margin: 0 auto 40px;
  border-radius: 24px !important;
  overflow: hidden;
  text-align: left;
  animation: gf-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.15s;
}

.product-stage > * {
  position: relative;
  z-index: 1;
}

.product-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent),
    rgba(8, 12, 24, 0.45);
}

.product-chrome span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.35);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

.product-chrome span:nth-child(1) { background: #f87171; }
.product-chrome span:nth-child(2) { background: #fbbf24; }
.product-chrome span:nth-child(3) { background: #34d399; }

.product-chrome em {
  margin-left: 8px;
  font-style: normal;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.product-body {
  display: grid;
  grid-template-columns: 140px 1fr;
  min-height: 180px;
}

.product-side {
  padding: 16px 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(5, 8, 18, 0.4);
}

.product-side i {
  font-style: normal;
  font-size: 12px;
  color: var(--text-muted);
  padding: 8px 10px;
  border-radius: 10px;
}

.product-side i.on {
  background:
    linear-gradient(135deg, rgba(99, 102, 241, 0.35), rgba(14, 165, 233, 0.15));
  color: #e0e7ff;
  font-weight: 500;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 0 0 1px rgba(165, 180, 252, 0.2);
}

.product-main {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-pill {
  display: inline-flex;
  align-self: flex-start;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  color: #e2e8f0;
  background:
    linear-gradient(135deg, rgba(59, 130, 246, 0.28), rgba(99, 102, 241, 0.12));
  border: 1px solid rgba(147, 197, 253, 0.28);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 6px 16px -8px rgba(59, 130, 246, 0.4);
  animation: gf-fade-in 0.7s ease both;
}

.product-pill:nth-child(1) { animation-delay: 0.35s; }
.product-pill:nth-child(2) { animation-delay: 0.5s; }
.product-pill:nth-child(3) { animation-delay: 0.65s; }

.product-pill.muted {
  background: rgba(148, 163, 184, 0.1);
  border-color: rgba(148, 163, 184, 0.22);
  color: var(--text-secondary);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

.product-pill.accent {
  background:
    linear-gradient(135deg, rgba(16, 185, 129, 0.22), rgba(34, 211, 238, 0.1));
  border-color: rgba(52, 211, 153, 0.4);
  color: #a7f3d0;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 6px 16px -8px rgba(16, 185, 129, 0.35);
}

.product-bar {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.45), rgba(34, 211, 238, 0.2));
  margin-top: 8px;
  width: 88%;
  box-shadow: 0 0 16px -4px rgba(59, 130, 246, 0.5);
  animation: gf-bar 1.2s ease both;
  animation-delay: 0.8s;
}

.product-bar.short {
  width: 56%;
  opacity: 0.7;
  animation-delay: 0.95s;
}

.gf-entry {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.25), rgba(139, 92, 246, 0.2)) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.15) inset,
    0 12px 28px -14px rgba(59, 130, 246, 0.45) !important;
}

.cta-card.glass-card {
  padding: 68px 52px;
}

.cta-card.glass-card::after {
  left: 22%;
  right: 22%;
  opacity: 1;
}

.hero-badge,
.hero-title,
.hero-lead,
.hero-btns {
  animation: gf-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-lead { animation-delay: 0.08s; }
.hero-btns { animation-delay: 0.12s; }

@keyframes gf-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gf-fade-in {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes gf-bar {
  from { opacity: 0; transform: scaleX(0.4); transform-origin: left; }
  to { opacity: 1; transform: scaleX(1); transform-origin: left; }
}

@media (max-width: 640px) {
  .product-body {
    grid-template-columns: 1fr;
  }
  .product-side {
    flex-direction: row;
    flex-wrap: wrap;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  .cta-card.glass-card {
    padding: 40px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-stage,
  .hero-badge,
  .hero-title,
  .hero-lead,
  .hero-btns,
  .product-pill,
  .product-bar {
    animation: none !important;
  }
  .glass-card:hover {
    transform: none !important;
  }
}
