/* ===== 变量与基础 ===== */
:root {
  --purple-950: #0E0820;
  --purple-900: #150D2A;
  --purple-800: #1A1033;
  --purple-700: #241548;
  --purple-600: #2E1B5C;
  --gold: #E5C07B;
  --gold-light: #F0D7A8;
  --gold-dark: #C89B5A;
  --gold-pale: rgba(229, 192, 123, 0.12);
  --violet: #8B5CF6;
  --ink: #F5F1E8;
  --muted: rgba(240, 234, 220, 0.62);
  --bg: #150D2A;
  --surface: #1A1033;
  --line: rgba(229, 192, 123, 0.14);
  --card: rgba(255, 255, 255, 0.03);
  --card-hover: rgba(255, 255, 255, 0.06);
  --shadow-md: 0 20px 60px rgba(0, 0, 0, 0.45);
  --radius: 16px;
  --container: 1200px;
  --header-h: 72px;
  --font: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

section {
  scroll-margin-top: calc(var(--header-h) - 10px);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== 通用按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 55%, var(--gold-dark));
  color: #1a1206;
  box-shadow: 0 8px 24px rgba(229, 192, 123, 0.3);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(229, 192, 123, 0.42);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
}

.btn-ghost:hover {
  border-color: var(--gold-light);
  color: var(--gold-light);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 16px;
}

/* ===== 顶部导航 ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  transition: background 0.35s ease, box-shadow 0.35s ease, height 0.35s ease;
  background: transparent;
}

.site-header.scrolled {
  background: rgba(21, 13, 42, 0.85);
  backdrop-filter: saturate(180%) blur(16px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid rgba(229, 192, 123, 0.12);
  height: 62px;
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  line-height: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 2px;
}

.brand-sub {
  font-size: 9px;
  letter-spacing: 2.6px;
  color: var(--gold-light);
  text-transform: uppercase;
  margin-top: 3px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-link {
  position: relative;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.78);
  padding: 6px 0;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
}

.nav-link.active::after,
.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 10px 22px;
  font-size: 14px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== Hero：数字星轨 ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, var(--purple-950), var(--purple-800) 55%, var(--purple-900));
  color: #fff;
  overflow: hidden;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 28%, rgba(255, 255, 255, 0.9), transparent 50%),
    radial-gradient(1px 1px at 22% 70%, rgba(240, 215, 168, 0.8), transparent 50%),
    radial-gradient(1.5px 1.5px at 34% 18%, rgba(255, 255, 255, 0.7), transparent 50%),
    radial-gradient(1px 1px at 48% 55%, rgba(229, 192, 123, 0.8), transparent 50%),
    radial-gradient(1.5px 1.5px at 62% 25%, rgba(255, 255, 255, 0.9), transparent 50%),
    radial-gradient(1px 1px at 72% 62%, rgba(240, 215, 168, 0.7), transparent 50%),
    radial-gradient(1.5px 1.5px at 84% 32%, rgba(255, 255, 255, 0.8), transparent 50%),
    radial-gradient(1px 1px at 92% 74%, rgba(229, 192, 123, 0.7), transparent 50%),
    radial-gradient(1.5px 1.5px at 55% 82%, rgba(255, 255, 255, 0.6), transparent 50%),
    radial-gradient(1px 1px at 8% 84%, rgba(240, 215, 168, 0.7), transparent 50%);
  animation: twinkle 4s ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}

.glow-a {
  top: -15%;
  right: -10%;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.45), transparent 65%);
}

.glow-b {
  bottom: -25%;
  left: -12%;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(229, 192, 123, 0.3), transparent 65%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding-top: 100px;
  padding-bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  letter-spacing: 4px;
  color: var(--gold-light);
  margin-bottom: 22px;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--gold);
}

.hero-title {
  font-size: clamp(46px, 8vw, 84px);
  font-weight: 700;
  letter-spacing: 8px;
  line-height: 1.1;
  margin-bottom: 24px;
  background: linear-gradient(180deg, #fff 30%, var(--gold-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  max-width: 640px;
  font-size: clamp(16px, 2.2vw, 18px);
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.9;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 52px;
}

/* 数字星轨 */
.number-strip {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

.num-chip {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 600;
  color: var(--gold-light);
  border: 1px solid rgba(229, 192, 123, 0.35);
  background: rgba(229, 192, 123, 0.06);
  transition: transform 0.25s ease, color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.num-chip:hover {
  transform: scale(1.18);
  color: #fff;
  border-color: var(--gold);
  background: rgba(229, 192, 123, 0.16);
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
  z-index: 2;
}

.hero-scroll span {
  width: 2px;
  height: 8px;
  background: var(--gold-light);
  border-radius: 2px;
  animation: scroll-dot 1.6s ease-in-out infinite;
}

@keyframes scroll-dot {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ===== 通用 Section ===== */
.section {
  padding: 104px 0;
}

.section-about,
.section-scenes {
  background: var(--bg);
}

.section-services {
  background: var(--surface);
}

.section-head {
  max-width: 720px;
  margin: 0 auto 60px;
  text-align: center;
}

.section-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 3px;
  color: var(--gold-dark);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(28px, 4.4vw, 40px);
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.section-desc {
  font-size: 16px;
  color: var(--muted);
}

/* ===== 生命数字：1-9 数字墙 ===== */
.number-wall {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 840px;
  margin: 0 auto;
}

.number-card {
  position: relative;
  text-align: center;
  padding: 36px 20px 30px;
  background: radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.14), transparent 70%), var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.number-card:hover {
  transform: translateY(-6px);
  border-color: rgba(229, 192, 123, 0.5);
  background: radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.22), transparent 70%), var(--card-hover);
}

.number-big {
  display: block;
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 10px;
  background: linear-gradient(180deg, var(--gold-light), var(--gold-dark));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.number-name {
  display: block;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: 2px;
}

.number-card p {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 1px;
}

/* ===== B端应用：罗盘辐射 ===== */
.compass {
  position: relative;
  width: 760px;
  max-width: 100%;
  aspect-ratio: 1;
  margin: 0 auto;
}

.compass::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 62%;
  height: 62%;
  border: 1px dashed rgba(229, 192, 123, 0.22);
  border-radius: 50%;
}

.compass::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 42%;
  height: 42%;
  border: 1px solid rgba(139, 92, 246, 0.18);
  border-radius: 50%;
}

.compass-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.3), rgba(26, 16, 51, 0.9));
  border: 1px solid rgba(229, 192, 123, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  z-index: 2;
  box-shadow: 0 0 70px rgba(139, 92, 246, 0.35);
}

.compass-core-sub {
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--gold-dark);
}

.compass-core-title {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 3px;
}

.compass-core-desc {
  font-size: 13px;
  color: var(--gold-light);
  letter-spacing: 2px;
}

.compass-item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 168px;
  padding: 20px 14px;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.compass-item:hover {
  border-color: rgba(229, 192, 123, 0.55);
  background: var(--card-hover);
}

.item-1 { transform: translate(-50%, -50%) rotate(-90deg) translateY(-300px) rotate(90deg); }
.item-2 { transform: translate(-50%, -50%) rotate(-30deg) translateY(-300px) rotate(30deg); }
.item-3 { transform: translate(-50%, -50%) rotate(30deg) translateY(-300px) rotate(-30deg); }
.item-4 { transform: translate(-50%, -50%) rotate(90deg) translateY(-300px) rotate(-90deg); }
.item-5 { transform: translate(-50%, -50%) rotate(150deg) translateY(-300px) rotate(-150deg); }
.item-6 { transform: translate(-50%, -50%) rotate(210deg) translateY(-300px) rotate(-210deg); }

.compass-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: 0 auto 12px;
  border-radius: 50%;
  color: var(--gold-light);
  background: radial-gradient(circle, rgba(139, 92, 246, 0.28), transparent);
  border: 1px solid rgba(229, 192, 123, 0.3);
}

.compass-item h3 {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
}

.compass-item p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

/* ===== 服务体系：星轨路径 ===== */
.orbit-path {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.orbit-step {
  flex: 1;
  min-width: 200px;
  max-width: 260px;
  text-align: center;
  padding: 34px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.orbit-step:hover {
  transform: translateY(-5px);
  border-color: rgba(229, 192, 123, 0.5);
  background: var(--card-hover);
}

.orbit-num {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  border-radius: 50%;
  font-size: 18px;
  font-weight: 700;
  color: var(--gold-light);
  background: radial-gradient(circle, rgba(139, 92, 246, 0.3), transparent);
  border: 1px solid rgba(229, 192, 123, 0.4);
}

.orbit-step h3 {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.orbit-step p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

/* ===== 核心优势 ===== */
.section-advantage {
  position: relative;
  background: linear-gradient(180deg, var(--purple-800), var(--purple-950));
  overflow: hidden;
}

.section-advantage::before {
  content: "";
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(139, 92, 246, 0.22), transparent 65%);
}

.advantage-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.advantage-item {
  padding: 32px 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.advantage-item:hover {
  transform: translateY(-5px);
  border-color: rgba(229, 192, 123, 0.6);
  background: var(--card-hover);
}

.advantage-num {
  display: block;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 12px;
  background: linear-gradient(180deg, var(--gold-light), var(--gold-dark));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.advantage-item h3 {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.advantage-item p {
  font-size: 14px;
  color: var(--muted);
}

/* ===== 联系我们 ===== */
.contact-card {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 56px 60px;
  background: linear-gradient(160deg, var(--purple-700), var(--purple-900));
  border: 1px solid var(--line);
  border-radius: 20px;
  color: #fff;
  box-shadow: var(--shadow-md);
}

.contact-card .section-eyebrow {
  color: var(--gold-light);
}

.contact-desc {
  color: var(--muted);
  margin-bottom: 30px;
}

.contact-person {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.contact-person-label {
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--gold-light);
  border: 1px solid rgba(229, 192, 123, 0.5);
  padding: 4px 12px;
  border-radius: 999px;
}

.contact-person-name {
  font-size: 20px;
  font-weight: 600;
}

.contact-phone {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 26px;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 1px;
  transition: color 0.25s ease;
}

.contact-phone:hover {
  color: #fff;
}

.contact-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.contact-note {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* ===== 页脚 ===== */
.site-footer {
  background: var(--purple-950);
  color: rgba(255, 255, 255, 0.6);
  padding: 40px 0;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.footer-copy {
  font-size: 14px;
}

/* ===== 滚动淡入动画 ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .compass {
    width: 100%;
    aspect-ratio: auto;
    height: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .compass::before,
  .compass::after {
    display: none;
  }
  .compass-core {
    position: static;
    transform: none;
    grid-column: 1 / -1;
    justify-self: center;
    margin-bottom: 16px;
  }
  .compass-item {
    position: static;
    transform: none;
    width: auto;
  }
  .number-wall {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(320px, 82vw);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 26px;
    padding: 0 40px;
    background: rgba(21, 13, 42, 0.98);
    backdrop-filter: blur(16px);
    transform: translateX(100%);
    transition: transform 0.35s ease;
  }
  .site-nav.open {
    transform: translateX(0);
  }
  .nav-link {
    font-size: 18px;
  }
  .nav-cta {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }

  .advantage-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-card {
    grid-template-columns: 1fr;
    padding: 40px 28px;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 72px 0;
  }
  .section-head {
    margin-bottom: 42px;
  }
  .hero-inner {
    padding-top: 80px;
  }
  .number-wall {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .compass {
    grid-template-columns: repeat(2, 1fr);
  }
  .advantage-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .contact-phone {
    font-size: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-scroll span {
    animation: none;
  }
  .stars {
    animation: none;
  }
}
