:root {
  --blue: #1e5eff;
  --blue-dark: #1642c4;
  --orange: #ff7a18;
  --ink: #0f172a;
  --ink-soft: #475569;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f6f9ff;
  --bg-deep: #0b1f4d;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(15, 23, 42, .08);
  --shadow-hover: 0 16px 40px rgba(30, 94, 255, .18);
  --container: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--blue); text-decoration: none; }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--blue);
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--ink);
  font-size: 18px;
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(135deg, var(--blue), var(--orange));
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu a {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 15px;
  transition: color .2s;
}
.nav-menu a:hover { color: var(--blue); }
.nav-cta {
  background: var(--blue);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 999px;
  transition: background .2s, transform .2s;
}
.nav-cta:hover { background: var(--blue-dark); transform: translateY(-1px); }
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 24px;
  cursor: pointer;
  color: var(--ink);
}

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 72px;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(30, 94, 255, .12), transparent 60%),
    radial-gradient(700px 380px at 0% 10%, rgba(255, 122, 24, .10), transparent 55%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  color: var(--blue);
  font-weight: 700;
  letter-spacing: .08em;
  font-size: 13px;
  margin: 0 0 14px;
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(28px, 4.4vw, 46px);
  line-height: 1.18;
  margin: 0 0 18px;
  letter-spacing: -.01em;
}
.hero-sub {
  font-size: 17px;
  color: var(--ink-soft);
  margin: 0 0 28px;
  max-width: 560px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-2px); }
.btn-ghost { background: #fff; color: var(--blue); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); transform: translateY(-2px); }
.hero-stats {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 38px 0 0;
  padding: 0;
}
.hero-stats strong { display: block; font-size: 26px; color: var(--ink); }
.hero-stats span { font-size: 13px; color: var(--ink-soft); }
.hero-art {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #eef3ff;
  aspect-ratio: 3 / 2; /* 锁定 1536x1024 原始比例，避免被拉伸 */
}
.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Sections ---------- */
.section { padding: 76px 0; }
.section-alt { background: var(--bg-alt); }
.section-eyebrow {
  color: var(--orange);
  font-weight: 700;
  letter-spacing: .08em;
  font-size: 13px;
  margin: 0 0 10px;
  text-transform: uppercase;
}
.section-eyebrow.light { color: #ffd2a8; }
.section-title {
  font-size: clamp(24px, 3vw, 34px);
  margin: 0 0 14px;
  letter-spacing: -.01em;
}
.section-title.light { color: #fff; }
.section-lead {
  color: var(--ink-soft);
  margin: 0 0 36px;
  max-width: 680px;
}
.section-lead.light { color: rgba(255, 255, 255, .82); }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: start;
}
.about-text p { margin: 0 0 16px; color: var(--ink-soft); }
.about-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.about-points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
}
.about-points .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--orange));
  margin-top: 9px; flex: none;
}

/* ---------- Cards (services) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(30, 94, 255, .35);
}
.card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid; place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--orange));
  margin-bottom: 16px;
}
.card-icon svg { width: 28px; height: 28px; }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 14.5px; }
.card-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0 0;
  padding: 0;
}
.card-tags li {
  font-size: 12px;
  color: var(--blue);
  background: #eef3ff;
  border: 1px solid #dbe6ff;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 500;
}

/* ---------- Feature (tech images) ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.feature img { width: 100%; height: 220px; object-fit: cover; }
.feature figcaption { padding: 18px 20px 22px; }
.feature h3 { margin: 0 0 6px; font-size: 17px; }
.feature p { margin: 0; color: var(--ink-soft); font-size: 14.5px; }

.tech-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 36px 0 0;
  padding: 0;
}
.tech-tags li {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
}

/* ---------- Why ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.why-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
  box-shadow: var(--shadow);
}
.why-item h3 { margin: 0 0 8px; font-size: 18px; }
.why-item p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* ---------- Process ---------- */
.process-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: var(--shadow);
}
.step-no {
  display: inline-grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue), var(--orange));
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 14px;
}
.step h3 { margin: 0 0 6px; font-size: 16px; }
.step p { margin: 0; color: var(--ink-soft); font-size: 14px; }
@media (max-width: 900px) { .process-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process-list { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 14px; max-width: 860px; }
.faq {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px 20px;
  box-shadow: var(--shadow);
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 16px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue); font-size: 22px; font-weight: 700; }
.faq[open] summary::after { content: "−"; }
.faq-body { padding: 0 0 18px; color: var(--ink-soft); }

/* ---------- Contact ---------- */
.section-contact {
  background:
    radial-gradient(800px 400px at 80% 0%, rgba(30, 94, 255, .35), transparent 60%),
    var(--bg-deep);
  color: #fff;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  max-width: 720px;
  margin: 0 auto;
}
.contact-card {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius);
  padding: 28px 26px;
  text-align: center;
  backdrop-filter: blur(4px);
}
.contact-card h3 { margin: 0 0 4px; font-size: 22px; }
.contact-role { margin: 0 0 14px; color: rgba(255, 255, 255, .7); font-size: 14px; }
.contact-phone {
  display: inline-block;
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .02em;
}
.contact-wechat { margin: 8px 0 16px; color: rgba(255, 255, 255, .82); }
.btn-copy {
  background: #fff;
  color: var(--blue);
  border: 0;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}
.btn-copy:hover { background: #eef3ff; }
.contact-company {
  text-align: center;
  margin: 32px 0 0;
  color: rgba(255, 255, 255, .65);
  font-size: 14px;
  letter-spacing: .04em;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #071536;
  color: rgba(255, 255, 255, .72);
  padding: 36px 0;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.footer-inner { display: flex; flex-direction: column; gap: 16px; align-items: center; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 17px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }
.footer-nav a { color: rgba(255, 255, 255, .72); font-size: 14px; }
.footer-nav a:hover { color: #fff; }
.footer-copy { margin: 0; font-size: 13px; color: rgba(255, 255, 255, .5); }
.footer-beian {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 18px;
  margin: 4px 0 0;
  font-size: 12px;
  color: rgba(255, 255, 255, .45);
}
.footer-beian a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: rgba(255, 255, 255, .55);
  transition: color .2s;
}
.footer-beian a:hover { color: #fff; }
.beian-icon { width: 14px; height: 14px; display: inline-block; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .about-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .nav-menu {
    position: absolute;
    top: 66px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 16px;
    display: none;
    box-shadow: var(--shadow);
  }
  .nav-menu.open { display: flex; }
  .nav-menu li { width: 100%; }
  .nav-menu a { display: block; padding: 12px 0; }
  .nav-cta { text-align: center; margin-top: 6px; }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 22px; }
  .section { padding: 56px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ============================================================
   高端视觉与动效层（不影响 SEO 结构与语义）
   ============================================================ */

/* 鼠标星芒画布：覆盖全屏、不拦截点击 */
.starlight-canvas {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
}

/* 滚动渐显（仅 JS 启用时隐藏，避免无脚本时内容不可见） */
.js .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1);
  will-change: opacity, transform;
}
.js .reveal.in { opacity: 1; transform: none; }

/* 首屏：深色星空主题（CSS 星空粒子常驻可见，无需 JS） */
.hero {
  position: relative;
  overflow: hidden;
  color: #e9f0ff;
  background: radial-gradient(120% 120% at 50% -10%, #173a78 0%, #0c2150 50%, #07142f 100%);
}
/* 极光流动光晕 */
.hero::before {
  content: "";
  position: absolute;
  inset: -25%;
  z-index: 0;
  background:
    radial-gradient(38% 38% at 18% 22%, rgba(80, 140, 255, .45), transparent 60%),
    radial-gradient(42% 42% at 82% 28%, rgba(255, 140, 60, .35), transparent 60%),
    radial-gradient(46% 46% at 62% 82%, rgba(150, 110, 255, .42), transparent 60%);
  filter: blur(10px);
  mix-blend-mode: screen;
  animation: aurora 18s ease-in-out infinite alternate;
  pointer-events: none;
}
/* 星空粒子背景（纯 CSS，常驻可见） */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1.6px 1.6px at 12% 18%, #ffffff, transparent),
    radial-gradient(1.3px 1.3px at 28% 62%, #cfe0ff, transparent),
    radial-gradient(1.9px 1.9px at 45% 30%, #ffffff, transparent),
    radial-gradient(1.2px 1.2px at 63% 72%, #bcd2ff, transparent),
    radial-gradient(1.7px 1.7px at 78% 22%, #ffffff, transparent),
    radial-gradient(1.4px 1.4px at 88% 58%, #ffffff, transparent),
    radial-gradient(1.5px 1.5px at 35% 85%, #d6e4ff, transparent),
    radial-gradient(1.3px 1.3px at 55% 12%, #ffffff, transparent),
    radial-gradient(1.8px 1.8px at 70% 45%, #ffffff, transparent),
    radial-gradient(1.4px 1.4px at 18% 80%, #cfe0ff, transparent),
    radial-gradient(1.3px 1.3px at 92% 30%, #ffffff, transparent),
    radial-gradient(1.6px 1.6px at 8% 50%, #ffffff, transparent);
  background-repeat: no-repeat;
  animation: twinkle 5s ease-in-out infinite alternate, drift 60s linear infinite;
  opacity: .9;
}
@keyframes twinkle { 0% { opacity: .45; } 100% { opacity: 1; } }
@keyframes drift { from { transform: translateY(0); } to { transform: translateY(-26px); } }
.hero > .container { position: relative; z-index: 1; }
@keyframes aurora {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(2.5%, -2%, 0) scale(1.08); }
  100% { transform: translate3d(-2%, 2%, 0) scale(1.04); }
}

/* 首屏文字在深底上的配色 */
.hero .eyebrow { color: #9fc0ff; }
.hero h1 {
  background: linear-gradient(100deg, #8fc0ff 8%, #c2a6ff 48%, #ffb070 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub { color: rgba(233, 240, 255, .82); }
.hero-stats strong { color: #fff; }
.hero-stats span { color: rgba(233, 240, 255, .7); }
.btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .05);
}
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .12); }
.hero-art {
  background: transparent;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 24px 70px rgba(80, 140, 255, .35);
}

/* 首屏插画浮动 */
.hero-art { animation: floaty 6.5s ease-in-out infinite; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

/* 卡片悬浮渐变描边光晕 */
.card { position: relative; }
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(30, 94, 255, .55), rgba(255, 122, 24, .55));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
.card:hover::after { opacity: 1; }

/* 按钮流光 */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0; left: -130%;
  width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: skewX(-20deg);
  animation: sheen 3.8s infinite;
}
@keyframes sheen {
  0%        { left: -130%; }
  55%, 100% { left: 150%; }
}

/* 数字滚动 */
.count { font-variant-numeric: tabular-nums; }

/* 减少动效偏好：关闭所有新增动效 */
@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .hero::after,
  .hero-art,
  .btn-primary::after { animation: none !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .card::after { display: none; }
}
