:root {
  --primary: #6d4bd1;
  --primary-dark: #5a3bb8;
  --blue: #1d5bea;
  --text: #1e293b;
  --text-2: #64748b;
  --border: #e2e8f0;
  --bg-soft: #f8fafc;
  --header-h: 72px;
  --container: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  background: var(--primary);
  transition: box-shadow .25s;
}
.header.scrolled { box-shadow: 0 4px 20px rgba(60, 30, 140, .25); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 22px; font-weight: 700; color: #fff; letter-spacing: 1px; }
.nav { display: flex; gap: 40px; }
.nav a { color: rgba(255,255,255,.75); font-size: 17px; position: relative; padding: 6px 0; transition: color .2s; }
.nav a:hover, .nav a.active { color: #fff; }
.nav a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: #fff; border-radius: 2px;
}
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; transition: .25s; }

/* ---------- Hero ---------- */
.hero {
  margin-top: var(--header-h);
  min-height: min(760px, calc(100vh - var(--header-h)));
  display: flex; align-items: center;
  color: #fff;
  /* 将 Banner 图放置于 assets/hero.jpg；图片缺失时显示渐变背景 */
  background:
    linear-gradient(rgba(40, 30, 80, .35), rgba(40, 30, 80, .35)),
    url("../assets/hero.jpg") center / cover no-repeat,
    radial-gradient(ellipse at 70% 30%, #8b6cf0 0%, transparent 55%),
    radial-gradient(ellipse at 20% 80%, #e05a8a 0%, transparent 50%),
    linear-gradient(135deg, #2b1f63 0%, #4a2f9e 50%, #1c2a5e 100%);
}
.hero-inner { padding-left: clamp(24px, 6vw, 120px); }
.hero-title {
  font-size: clamp(36px, 6vw, 76px); font-weight: 800; line-height: 1.2; letter-spacing: 2px;
  text-shadow: 0 4px 24px rgba(0,0,0,.25);
  animation: fadeUp .8s ease both;
}
.hero-sub { margin-top: 32px; font-size: clamp(15px, 1.4vw, 18px); opacity: .92; animation: fadeUp .8s .15s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- Intro ---------- */
.intro { text-align: center; padding: 56px 0 24px; }
.intro-title { font-size: clamp(26px, 3.6vw, 50px); font-weight: 800; line-height: 1.3; }
.intro-desc { margin-top: 20px; color: var(--text-2); font-size: clamp(14px, 1.3vw, 18px); }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-tight { padding-top: 20px; }
.section-title { font-size: clamp(30px, 3.4vw, 52px); font-weight: 800; line-height: 1.25; margin-bottom: 56px; }
.eyebrow { color: var(--text-2); font-size: 17px; font-weight: 600; margin-bottom: 40px; }

.grid { display: grid; gap: 40px 36px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.feature h3, .biz h3, .service h3 { font-size: 24px; font-weight: 700; margin-bottom: 14px; }
.feature p, .biz p, .service p { color: var(--text-2); font-size: 17px; }

.biz-icon {
  position: relative; width: 140px; height: 140px; margin-bottom: 24px; color: var(--blue);
}
.biz-icon::before {
  content: ""; position: absolute; left: 0; top: 0; width: 72%; height: 82%;
  background: #cfdcfb; border-radius: 2px;
}
.biz-icon svg { position: relative; width: 100%; height: 100%; padding: 8px; }
.biz { transition: transform .25s; }
.biz:hover { transform: translateY(-4px); }

/* ---------- Services ---------- */
.service-img {
  aspect-ratio: 4 / 3; border-radius: 16px; margin-bottom: 32px;
  display: flex; align-items: center; justify-content: center;
  transition: transform .3s, box-shadow .3s;
}
.service-img svg { width: 62%; height: auto; }
.service:hover .service-img { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(30, 60, 140, .12); }
.tone-blue   { background: radial-gradient(circle at 50% 45%, #e3ebfd 0%, #f6f8fe 60%, #fff 100%); }
.tone-purple { background: radial-gradient(circle at 50% 45%, #efe9fd 0%, #f8f6fe 60%, #fff 100%); }
.tone-orange { background: radial-gradient(circle at 50% 45%, #feeadb 0%, #fff7f1 60%, #fff 100%); }

/* ---------- Mission ---------- */
.mission { padding: 120px 0; }
.mission-inner { display: grid; grid-template-columns: 1fr 1.5fr; gap: 80px; align-items: center; }
.mission-text .section-title { margin-bottom: 32px; }
.mission-text p { color: var(--text-2); font-size: 17px; line-height: 2; }
.mission-text p + p { margin-top: 28px; }
.mission-img {
  aspect-ratio: 3 / 2; border-radius: 4px;
  /* 将图片放置于 assets/mission.jpg；图片缺失时显示渐变背景 */
  background:
    url("../assets/mission.jpg") center / cover no-repeat,
    linear-gradient(180deg, #9fb0c8 0%, #c9d3df 45%, #6f8d6a 75%, #4c6b4a 100%);
}

/* ---------- Footer ---------- */
.footer { background: #1b1640; color: rgba(255,255,255,.7); padding-top: 64px; font-size: 15px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 40px; padding-bottom: 48px; }
.footer-brand p { margin-top: 12px; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer-col a, .footer-col p { display: block; margin-bottom: 8px; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 20px 0 24px;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 24px;
  font-size: 13px; color: rgba(255,255,255,.55);
}
.footer-bottom a:hover { color: #fff; }
.beian-psb { display: inline-flex; align-items: center; gap: 4px; }

/* ---------- Back to top ---------- */
.back-top {
  position: fixed; right: 40px; bottom: 40px; z-index: 90;
  width: 44px; height: 44px; border: 0; border-radius: 4px; cursor: pointer;
  background: #1a2bb8; color: #fff;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: .25s;
}
.back-top svg { width: 22px; height: 22px; }
.back-top.show { opacity: 1; visibility: visible; transform: none; }
.back-top:hover { background: var(--primary); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .mission-inner { gap: 48px; }
}
@media (max-width: 768px) {
  :root { --header-h: 60px; }
  .container { padding: 0 16px; }
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--primary-dark);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav.open { max-height: 240px; }
  .nav a { padding: 14px 16px; border-top: 1px solid rgba(255,255,255,.08); }
  .nav a.active::after { display: none; }
  .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 { min-height: 420px; }
  .hero-inner { padding-left: 0; }
  .section { padding: 56px 0; }
  .section-title { margin-bottom: 32px; }
  .grid { gap: 32px 20px; }
  .grid-3 { grid-template-columns: 1fr; }
  .feature h3, .biz h3, .service h3 { font-size: 20px; }
  .feature p, .biz p, .service p, .mission-text p { font-size: 15px; }
  .biz-icon { width: 96px; height: 96px; }
  .mission { padding: 56px 0; }
  .mission-inner { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .back-top { right: 16px; bottom: 16px; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
