/* ===== 变量与基础 ===== */
:root {
  --blue: #4facfe;
  --cyan: #00f2fe;
  --purple: #667eea;
  --violet: #764ba2;
  --grad-primary: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --grad-secondary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --ink: #1a2130;
  --muted: #5b6472;
  --line: #e6eaf0;
  --bg-soft: #f5f8fc;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 12px 32px rgba(31, 55, 120, 0.10);
  --maxw: 1140px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  line-height: 1.7;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }

/* 区块标题 */
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-tag {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--blue);
  background: rgba(79, 172, 254, 0.10);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.section-title { font-size: 34px; font-weight: 700; margin-bottom: 16px; }
.section-desc { color: var(--muted); font-size: 16px; }
.section-head.light .section-title { color: var(--white); }
.section-head.light .section-desc { color: rgba(255, 255, 255, 0.82); }
.section-head.light .section-tag { background: rgba(255, 255, 255, 0.14); color: var(--white); }

/* 按钮 */
.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary { background: var(--grad-primary); color: var(--white); box-shadow: 0 8px 20px rgba(0, 200, 255, 0.28); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0, 200, 255, 0.36); }
.btn-ghost { border: 1.5px solid rgba(26, 33, 48, 0.32); color: var(--ink); background: rgba(255, 255, 255, 0.45); }
.btn-ghost:hover { background: var(--white); border-color: var(--ink); }
.btn-block { width: 100%; }

/* ===== 导航栏 ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.0);
  transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(31, 55, 120, 0.08);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 42px; height: 42px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 20px; font-weight: 800; background: var(--grad-secondary); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-text small { font-size: 9px; letter-spacing: 1.5px; color: var(--muted); }
.nav-links { display: flex; gap: 6px; }
.nav-links a {
  position: relative;
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  border-radius: 8px;
  transition: color .2s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }

/* ===== 首屏 ===== */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(1200px 600px at 15% 10%, rgba(79, 172, 254, 0.16), transparent 60%),
              radial-gradient(1000px 600px at 85% 85%, rgba(118, 75, 162, 0.14), transparent 60%),
              linear-gradient(160deg, #f7fbff 0%, #eef5fd 100%);
}
.hero-bg::before, .hero-bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .5;
}
.hero-bg::before { width: 420px; height: 420px; top: -120px; right: -80px; background: var(--grad-primary); animation: drift1 18s ease-in-out infinite; }
.hero-bg::after { width: 360px; height: 360px; bottom: -140px; left: -60px; background: var(--grad-secondary); animation: drift2 22s ease-in-out infinite; }
@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-60px,40px) scale(1.15); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(50px,-50px) scale(1.1); } }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
/* 低配/移动端：停掉高耗的 blur 光斑动画，并降低模糊半径 */
body.perf-low .hero-bg::before,
body.perf-low .hero-bg::after { animation: none; filter: blur(24px); }
@media (prefers-reduced-motion: reduce) {
  .hero-bg::before, .hero-bg::after { animation: none; }
  .hero-art, .hero-logo, .hero-scroll span { animation: none; }
}
.hero-rain { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; opacity: .85; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding-top: 120px; padding-bottom: 80px; }
.hero-eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--purple);
  margin-bottom: 20px;
}
.hero-title { font-size: 54px; line-height: 1.2; font-weight: 800; letter-spacing: 1px; margin-bottom: 24px; }
.hero-sub { font-size: 18px; color: var(--muted); max-width: 480px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-art { display: flex; align-items: center; justify-content: center; animation: float 6s ease-in-out infinite; }
.hero-logo {
  width: 300px; height: 300px;
  filter: drop-shadow(0 18px 40px rgba(31, 55, 120, 0.22));
  animation: spin 24s linear infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-scroll {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  width: 24px; height: 40px;
  border: 2px solid rgba(31, 55, 120, 0.35);
  border-radius: 14px;
}
.hero-scroll span { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 4px; height: 8px; border-radius: 4px; background: var(--purple); animation: scrollDot 1.8s ease-in-out infinite; }
@keyframes scrollDot { 0% { opacity: 0; top: 8px; } 30% { opacity: 1; } 100% { opacity: 0; top: 20px; } }

/* ===== 关于我们 ===== */
.about { background: var(--white); }
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.about-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.about-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.about-card h3 { font-size: 20px; margin-bottom: 12px; }
.about-card h3::before { content: ""; display: inline-block; width: 8px; height: 20px; border-radius: 4px; background: var(--grad-primary); margin-right: 10px; vertical-align: -3px; }
.about-card p { color: var(--muted); }

/* ===== 产品与服务 ===== */
.product { background: var(--bg-soft); }
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 30px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  border-radius: 14px;
  margin-bottom: 20px;
  background: var(--grad-primary);
}
.product-card h3 { font-size: 20px; margin-bottom: 12px; }
.product-card p { color: var(--muted); }

/* ===== 本地部署 ===== */
.deploy { background: var(--white); }
.deploy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.deploy-col {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 30px;
}
.deploy-col-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.deploy-col-icon {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  border-radius: 12px;
  background: var(--grad-secondary);
}
.deploy-col-head h3 { font-size: 20px; }
.deploy-col-desc { color: var(--muted); margin-bottom: 22px; }
.deploy-list { display: flex; flex-direction: column; gap: 14px; }
.deploy-list li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.deploy-list li:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(79, 172, 254, 0.45); }
.deploy-list strong { font-size: 15px; }
.deploy-list span { font-size: 14px; color: var(--muted); }

/* ===== 核心能力 ===== */
.capabilities {
  background: linear-gradient(135deg, #4facfe 0%, #667eea 50%, #764ba2 100%);
  padding: 96px 0;
}
.cap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cap-item {
  text-align: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  padding: 36px 16px;
  color: var(--white);
  backdrop-filter: blur(6px);
  transition: transform .25s ease, background .25s ease;
}
.cap-item:hover { transform: translateY(-6px); background: rgba(255, 255, 255, 0.18); }
.cap-item strong { display: block; font-size: 30px; font-weight: 800; margin-bottom: 8px; }
.cap-item span { font-size: 15px; opacity: .92; }

/* ===== 联系我们 ===== */
.contact { background: var(--white); }
.contact-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 56px;
}
.contact-title { font-size: 30px; font-weight: 700; margin: 8px 0 16px; }
.contact-info > p { color: var(--muted); margin-bottom: 28px; }
.contact-list { display: flex; flex-direction: column; gap: 16px; font-size: 16px; }
.contact-list a { color: var(--blue); font-weight: 600; }
.contact-list a:hover { text-decoration: underline; }
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label { font-size: 14px; font-weight: 600; }
.form-field input, .form-field textarea {
  font-family: inherit;
  font-size: 15px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
  resize: vertical;
}
.form-field input:focus, .form-field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.18);
}
.form-note { font-size: 14px; text-align: center; min-height: 20px; }
.form-note.success { color: #16a34a; }
.form-note.error { color: #dc2626; }

/* ===== 页脚 ===== */
.footer { background: #141a26; color: #c6ccd8; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; padding: 48px 24px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-logo { width: 40px; height: 40px; }
.footer-brand p { font-size: 15px; color: var(--white); font-weight: 600; }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-links a { font-size: 14px; color: #c6ccd8; transition: color .2s ease; }
.footer-links a:hover { color: var(--cyan); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); }
.footer-bottom p { font-size: 13px; text-align: center; padding: 18px 0; color: #8b93a3; }
.footer-bottom a { color: inherit; }

/* ===== 滚动显现动画 ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; padding-top: 140px; }
  .hero-sub { margin: 0 auto 36px; }
  .hero-actions { justify-content: center; }
  .hero-title { font-size: 42px; }
  .hero-logo { width: 220px; height: 220px; }
  .about-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .deploy-grid { grid-template-columns: 1fr; }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-box { grid-template-columns: 1fr; padding: 36px 24px; }

  .nav-links {
    position: absolute;
    top: 76px; left: 0; right: 0;
    flex-direction: column;
    background: var(--white);
    box-shadow: 0 12px 24px rgba(31, 55, 120, 0.10);
    padding: 12px 20px 20px;
    gap: 4px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-links a { display: block; padding: 12px 14px; }
  .nav-links a::after { display: none; }
  .nav-toggle { display: flex; }
  .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); }
}
@media (max-width: 520px) {
  .section { padding: 68px 0; }
  .hero-title { font-size: 34px; }
  .cap-grid { grid-template-columns: 1fr 1fr; }
  .section-title { font-size: 28px; }
}
