/* ===== 基础 ===== */
:root {
  --primary: #7C5CFF;
  --primary-dark: #5B3EE0;
  --grad: linear-gradient(135deg, #7C5CFF 0%, #5B3EE0 100%);
  --text: #1f2330;
  --text-sub: #5c6270;
  --bg: #ffffff;
  --bg-alt: #f6f7fb;
  --border: #e8eaf1;
  --radius: 16px;
  --shadow: 0 12px 40px rgba(91, 62, 224, .10);
  --font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.7; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
.container { width: min(1120px, 92%); margin: 0 auto; }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== 按钮 ===== */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: transform .2s, box-shadow .2s, background .2s;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 24px rgba(124, 92, 255, .35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(124, 92, 255, .45); }
.btn-outline {
  border: 1.5px solid var(--primary);
  color: var(--primary);
  background: transparent;
}
.btn-outline:hover { background: rgba(124, 92, 255, .08); transform: translateY(-2px); }
.btn-lg { padding: 15px 44px; font-size: 17px; }

/* ===== 导航 ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.nav.scrolled { border-color: var(--border); box-shadow: 0 4px 20px rgba(0,0,0,.05); }
.nav-inner { display: flex; align-items: center; gap: 32px; height: 68px; }
.logo-slot { display: flex; align-items: center; margin-right: auto; }
.logo-slot img { height: 40px; display: block; }
.logo-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 120px; height: 42px;
  border: 2px dashed #b9b3d9;
  border-radius: 10px;
  color: #8f88b8;
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 14px;
}
.logo-placeholder.small { width: 90px; height: 32px; font-size: 12px; }
.nav-menu { display: flex; gap: 28px; }
.nav-menu a {
  font-size: 15px;
  color: var(--text-sub);
  position: relative;
  padding: 6px 0;
  transition: color .2s;
}
.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--grad);
  border-radius: 2px;
  transition: width .25s;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--text); }
.nav-menu a:hover::after, .nav-menu a.active::after { width: 100%; }
.nav-cta { padding: 9px 22px; font-size: 14px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; transition: .3s; }

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #f8f7ff 0%, #ffffff 100%);
  text-align: center;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; }
.orb-1 { width: 420px; height: 420px; background: rgba(124,92,255,.28); top: -120px; left: -100px; animation: float 9s ease-in-out infinite; }
.orb-2 { width: 340px; height: 340px; background: rgba(91,62,224,.20); bottom: -100px; right: -80px; animation: float 11s ease-in-out infinite reverse; }
.orb-3 { width: 200px; height: 200px; background: rgba(180,160,255,.30); top: 40%; right: 18%; animation: float 13s ease-in-out infinite; }
@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.06); }
}
.hero-inner { position: relative; z-index: 1; }
.hero-title { font-size: clamp(32px, 5.2vw, 58px); font-weight: 800; line-height: 1.25; letter-spacing: 1px; }
.hero-sub { margin-top: 22px; font-size: clamp(15px, 2vw, 20px); color: var(--text-sub); letter-spacing: 2px; }
.hero-actions { margin-top: 44px; display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.scroll-hint {
  position: absolute;
  left: 50%; bottom: 28px;
  transform: translateX(-50%);
  width: 24px; height: 40px;
  border: 2px solid #b9b3d9;
  border-radius: 14px;
  display: flex; justify-content: center;
}
.scroll-hint span {
  width: 4px; height: 8px;
  background: var(--primary);
  border-radius: 2px;
  margin-top: 7px;
  animation: scrollHint 1.6s ease-in-out infinite;
}
@keyframes scrollHint {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ===== 通用 Section ===== */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; position: relative; display: inline-block; padding-bottom: 16px; }
.section-head h2::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 48px; height: 4px;
  background: var(--grad);
  border-radius: 2px;
}
.section-head p { margin-top: 14px; color: var(--text-sub); font-size: 16px; letter-spacing: 1px; }

/* ===== 关于我们 ===== */
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.about-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: transform .25s, box-shadow .25s;
}
.about-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.about-card .icon {
  width: 64px; height: 64px;
  margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px;
  background: rgba(124, 92, 255, .1);
  border-radius: 50%;
}
.about-card h3 { font-size: 18px; margin-bottom: 12px; }
.about-card p { color: var(--text-sub); font-size: 14.5px; text-align: justify; }

/* ===== 业务板块 ===== */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.service-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 32px 24px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform .25s, box-shadow .25s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-num {
  font-size: 44px;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: .85;
  line-height: 1;
}
.service-card h3 { font-size: 17px; margin: 16px 0 10px; }
.service-card p { color: var(--text-sub); font-size: 14px; }

/* ===== APP 下载 ===== */
.app-panel {
  background: var(--grad);
  border-radius: 24px;
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  color: #fff;
  overflow: hidden;
  position: relative;
}
.app-panel::before {
  content: "";
  position: absolute;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  top: -120px; right: -80px;
}
.app-text { position: relative; z-index: 1; max-width: 560px; }
.app-text h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; }
.app-text p { margin: 16px 0 30px; font-size: 16px; opacity: .92; }
.app-text .btn { background: #fff; color: var(--primary-dark); box-shadow: 0 10px 28px rgba(0,0,0,.18); }
.app-text .btn:hover { transform: translateY(-2px); }
.app-visual { position: relative; z-index: 1; flex-shrink: 0; }
.phone {
  width: 200px; height: 400px;
  border: 8px solid rgba(255,255,255,.55);
  border-radius: 34px;
  background: rgba(255,255,255,.15);
  transform: rotate(6deg);
  box-shadow: 0 24px 60px rgba(0,0,0,.22);
}
.phone-screen {
  width: 100%; height: 100%;
  border-radius: 26px;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
}
.phone-logo {
  border: 2px dashed #b9b3d9;
  border-radius: 8px;
  color: #8f88b8;
  padding: 8px 18px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2px;
}

/* ===== 联系我们 ===== */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; max-width: 760px; margin: 0 auto; }
.contact-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: transform .25s, box-shadow .25s;
}
.contact-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.contact-card .icon {
  width: 60px; height: 60px;
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  background: rgba(124, 92, 255, .1);
  border-radius: 50%;
}
.contact-card h3 { font-size: 16px; margin-bottom: 8px; color: var(--text-sub); font-weight: 600; }
.contact-card p { font-size: 16px; font-weight: 600; }
.contact-card a { color: var(--primary-dark); }
.contact-card a:hover { text-decoration: underline; }

/* ===== 页脚 ===== */
.footer {
  background: #17141f;
  color: rgba(255,255,255,.75);
  padding: 48px 0 36px;
  text-align: center;
}
.footer-brand {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin-bottom: 18px;
  color: #fff; font-size: 16px;
}
.footer-contact { font-size: 14px; margin-bottom: 12px; }
.footer-copy { font-size: 13px; color: rgba(255,255,255,.45); }

/* ===== 悬浮下载 ===== */
.float-download {
  position: fixed;
  right: 24px; bottom: 32px;
  z-index: 90;
  background: var(--grad);
  color: #fff;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 14px; font-weight: 600;
  box-shadow: 0 10px 26px rgba(124, 92, 255, .45);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity .3s, transform .3s;
}
.float-download.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.float-download:hover { transform: translateY(-2px); }

/* ===== 入场动画 ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .12s; }
.delay-2 { transition-delay: .24s; }
.delay-3 { transition-delay: .36s; }

/* ===== 响应式 ===== */
@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .app-panel { flex-direction: column; text-align: center; padding: 48px 28px; }
  .app-text { max-width: 100%; }
  .phone { transform: rotate(0); }
}
@media (max-width: 720px) {
  .nav-menu {
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 30px rgba(0,0,0,.08);
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
  }
  .nav-menu.open { max-height: 320px; }
  .nav-menu a { padding: 14px 6%; border-top: 1px solid var(--border); }
  .nav-toggle { display: block; }
  .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); }
  .nav-cta { display: none; }
  .section { padding: 64px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .float-download { right: 16px; bottom: 20px; }
}
