:root {
  --bg: #0a0e1a;
  --bg-alt: #0c1120;
  --card: #121829;
  --card-2: #161d31;
  --line: rgba(255, 255, 255, 0.08);
  --primary: #2dd4ff;
  --secondary: #7c5cff;
  --text: #e6edf6;
  --muted: #9aa7bd;
  --radius: 16px;
  --maxw: 1160px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

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

/* ===== 顶部导航 ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(10, 14, 26, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s;
}
.site-header.scrolled {
  background: rgba(10, 14, 26, 0.9);
  border-bottom-color: var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand-logo { height: 30px; display: block; }
.nav { display: flex; gap: 30px; }
.nav a {
  font-size: 15px; color: var(--muted); position: relative; padding: 6px 0;
  transition: color .25s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width .25s;
}
.nav a:hover, .nav a.active { color: var(--text); }
.nav a.active::after, .nav a:hover::after { width: 100%; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }
.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;
  padding: 120px 0 80px; overflow: hidden;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(124, 92, 255, 0.18), transparent 60%),
    radial-gradient(1000px 500px at 0% 20%, rgba(45, 212, 255, 0.14), transparent 55%),
    var(--bg);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 30%, transparent 80%);
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; pointer-events: none; }
.hero-glow-1 { width: 420px; height: 420px; background: var(--primary); top: -80px; right: 6%; animation: float 9s ease-in-out infinite; }
.hero-glow-2 { width: 360px; height: 360px; background: var(--secondary); bottom: -60px; left: 2%; animation: float 11s ease-in-out infinite reverse; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-26px); } }

.hero-inner { position: relative; z-index: 2; text-align: center; }
.hero-eyebrow { letter-spacing: 4px; font-size: 12px; color: var(--primary); margin-bottom: 18px; font-weight: 600; }
.hero-title { font-size: clamp(36px, 7vw, 68px); font-weight: 800; line-height: 1.15; letter-spacing: 1px; }
.hero-title .dot { color: var(--primary); }
.hero-sub { max-width: 720px; margin: 22px auto 0; color: var(--muted); font-size: clamp(15px, 2.3vw, 18px); }
.hero-cta { margin-top: 34px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 30px; border-radius: 999px; font-size: 15px; font-weight: 600;
  transition: transform .2s, box-shadow .2s, background .2s; cursor: pointer;
}
.btn-primary {
  color: #04121a; background: linear-gradient(90deg, var(--primary), #6fe3ff);
  box-shadow: 0 10px 30px rgba(45, 212, 255, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(45, 212, 255, 0.45); }
.btn-ghost { color: var(--text); border: 1px solid var(--line); background: rgba(255,255,255,0.03); }
.btn-ghost:hover { border-color: var(--primary); transform: translateY(-2px); }

.hero-stats { margin-top: 56px; display: flex; gap: 40px; justify-content: center; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num { font-size: 22px; font-weight: 700; background: linear-gradient(90deg, var(--primary), var(--secondary)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-lab { font-size: 13px; color: var(--muted); }

/* ===== 通用 section ===== */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-tag {
  display: inline-block; font-size: 13px; letter-spacing: 2px; color: var(--primary);
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 16px; margin-bottom: 18px;
}
.section-title { font-size: clamp(24px, 4vw, 36px); font-weight: 700; line-height: 1.3; }

/* ===== 关于我们 ===== */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.about-text p { color: var(--muted); margin-bottom: 16px; }
.about-cards { display: flex; flex-direction: column; gap: 16px; }
.mini-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; transition: transform .25s, border-color .25s;
}
.mini-card:hover { transform: translateY(-4px); border-color: rgba(45,212,255,0.4); }
.mini-card h3 { font-size: 17px; margin-bottom: 6px; }
.mini-card p { color: var(--muted); font-size: 14px; }

/* ===== 卡片网格 ===== */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.card {
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px;
  transition: transform .28s, border-color .28s, box-shadow .28s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(45,212,255,0.45); box-shadow: var(--shadow); }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  font-size: 22px; margin-bottom: 18px; color: var(--primary);
  background: rgba(45, 212, 255, 0.1); border: 1px solid rgba(45,212,255,0.25);
}
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 14.5px; }

/* ===== 产品作品 ===== */
.product-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; transition: transform .28s, border-color .28s;
}
.product-card:hover { transform: translateY(-6px); border-color: rgba(124,92,255,0.5); }
.product-thumb {
  height: 150px; border-radius: 12px; margin-bottom: 18px; display: grid; place-items: center;
  background:
    radial-gradient(circle at 30% 30%, rgba(45,212,255,0.25), transparent 60%),
    radial-gradient(circle at 75% 70%, rgba(124,92,255,0.3), transparent 60%),
    #0e1426;
  border: 1px solid var(--line);
}
.product-thumb span { font-size: 30px; font-weight: 800; letter-spacing: 3px; color: rgba(255,255,255,0.85); }
.product-card h3 { font-size: 18px; margin-bottom: 8px; }
.product-card p { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.badge {
  display: inline-block; font-size: 12px; padding: 4px 12px; border-radius: 999px;
  color: var(--primary); background: rgba(45,212,255,0.1); border: 1px solid rgba(45,212,255,0.25);
}

/* ===== 联系我们 ===== */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.contact-item {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 8px;
}
.contact-lab { font-size: 13px; color: var(--primary); letter-spacing: 1px; }
.contact-val { font-size: 16px; color: var(--text); word-break: break-all; }

/* ===== 页脚 ===== */
.site-footer { background: #070a13; border-top: 1px solid var(--line); padding: 36px 0; }
.footer-inner { text-align: center; }
.footer-brand { font-size: 15px; color: var(--text); margin-bottom: 10px; }
.footer-meta { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.footer-meta a { color: var(--muted); transition: color .25s; }
.footer-meta a:hover { color: var(--primary); }

/* ===== 回到顶部 ===== */
.to-top {
  position: fixed; right: 22px; bottom: 22px; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; font-size: 20px; z-index: 40;
  color: #04121a; background: linear-gradient(90deg, var(--primary), #6fe3ff);
  box-shadow: 0 10px 26px rgba(45,212,255,0.35);
  opacity: 0; pointer-events: none; transform: translateY(12px); transition: .3s;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* ===== 滚动渐入 ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== 响应式 ===== */
@media (max-width: 820px) {
  .nav {
    position: fixed; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: rgba(10,14,26,0.97); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .35s ease;
  }
  .nav.open { max-height: 320px; }
  .nav a { padding: 16px 22px; border-top: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav-toggle { display: flex; }
  .about-grid { grid-template-columns: 1fr; gap: 26px; }
  .hero-stats { gap: 26px; }
  .section { padding: 72px 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
