/* =====================================================
   深圳星连星科技有限公司官网 - 设计系统
   主题：深空科技 · 青绿蓝渐变光效
   ===================================================== */

/* ---- 字体引入 ---- */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=Noto+Sans+SC:wght@300;400;500;600;700&display=swap');
@import url('https://chinese-font.netlify.app/packages/dyh/dist/SmileySans-Oblique/result.css');

/* ---- CSS 变量 ---- */
:root {
  --deep-0: #030712;
  --deep-1: #0b1120;
  --deep-2: #0f172a;
  --deep-3: #1e293b;
  --deep-4: #334155;

  --cyan-400: #22d3ee;
  --cyan-500: #06b6d4;
  --green-400: #4ade80;
  --green-500: #22c55e;
  --blue-400: #60a5fa;
  --blue-500: #3b82f6;
  --teal-400: #2dd4bf;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border-subtle: rgba(148, 163, 184, 0.12);
  --border-glow: rgba(34, 211, 238, 0.25);

  --gradient-primary: linear-gradient(135deg, var(--cyan-500), var(--green-500), var(--blue-500));
  --gradient-soft: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(34, 197, 94, 0.12), rgba(59, 130, 246, 0.15));
  --gradient-text: linear-gradient(135deg, var(--cyan-400), var(--green-400), var(--blue-400));

  --font-display: 'SmileySans-Oblique', 'Syne', 'Noto Sans SC', sans-serif;
  --font-heading: 'Syne', 'Noto Sans SC', sans-serif;
  --font-body: 'Noto Sans SC', 'Syne', system-ui, sans-serif;

  --container: 1280px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-glow: 0 0 40px rgba(6, 182, 212, 0.12);

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background-color: var(--deep-0);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
::selection { background: rgba(34, 211, 238, 0.3); color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }
@media (min-width: 1280px) { .container { padding: 0 48px; } }

.page-bg {
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(circle at 15% 10%, rgba(6, 182, 212, 0.18), transparent 35%),
    radial-gradient(circle at 85% 25%, rgba(34, 197, 94, 0.12), transparent 30%),
    radial-gradient(circle at 50% 85%, rgba(59, 130, 246, 0.14), transparent 38%),
    var(--deep-0);
}
.page-grid {
  position: fixed; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 85%);
  pointer-events: none;
}

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  transition: background 0.4s var(--ease-out-expo), backdrop-filter 0.4s, box-shadow 0.4s;
}
.site-header.scrolled {
  background: rgba(11, 17, 32, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(148, 163, 184, 0.08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; letter-spacing: 0.02em; }
.logo-mark {
  width: 42px; height: 42px; border-radius: 12px; background: var(--gradient-primary);
  display: grid; place-items: center; box-shadow: 0 0 24px rgba(6, 182, 212, 0.35);
  position: relative; overflow: hidden;
}
.logo-mark::before { content: ''; position: absolute; inset: 2px; border-radius: 10px; background: var(--deep-1); }
.logo-mark i { position: relative; font-size: 1.1rem; background: var(--gradient-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo-text { background: var(--gradient-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

.main-nav { display: none; }
@media (min-width: 1024px) { .main-nav { display: flex; align-items: center; gap: 8px; } }
.nav-link {
  position: relative; padding: 10px 16px; font-size: 0.95rem; font-weight: 500;
  color: var(--text-secondary); border-radius: var(--radius-sm);
  transition: color 0.3s, background 0.3s;
}
.nav-link:hover, .nav-link.active { color: var(--text-primary); background: rgba(34, 211, 238, 0.08); }
.nav-link::after {
  content: ''; position: absolute; bottom: 4px; left: 16px; right: 16px; height: 2px;
  background: var(--gradient-primary); transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease-out-expo); border-radius: 2px;
}
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.header-cta { display: none; }
@media (min-width: 1024px) { .header-cta { display: inline-flex; } }
.menu-toggle {
  width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center;
  color: var(--text-primary); background: rgba(255,255,255,0.04); border: 1px solid var(--border-subtle); font-size: 1.25rem;
}
@media (min-width: 1024px) { .menu-toggle { display: none; } }

.mobile-menu {
  position: fixed; inset: 76px 16px auto 16px; background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(24px); border: 1px solid var(--border-subtle); border-radius: var(--radius-md);
  padding: 16px; z-index: 999; transform: translateY(-16px); opacity: 0; visibility: hidden;
  transition: all 0.35s var(--ease-out-expo);
}
.mobile-menu.open { transform: translateY(0); opacity: 1; visibility: visible; }
.mobile-menu .nav-link { display: block; padding: 14px 16px; font-size: 1.05rem; border-bottom: 1px solid var(--border-subtle); }
.mobile-menu .nav-link:last-of-type { border-bottom: none; }
.mobile-cta { margin-top: 12px; width: 100%; justify-content: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border-radius: 100px; font-weight: 600; font-size: 0.95rem;
  transition: transform 0.3s, box-shadow 0.3s, filter 0.3s; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gradient-primary); color: #fff; box-shadow: 0 8px 32px rgba(6, 182, 212, 0.28); }
.btn-primary:hover { box-shadow: 0 12px 40px rgba(6, 182, 212, 0.4); filter: brightness(1.08); }
.btn-outline { background: transparent; color: var(--text-primary); border: 1px solid var(--border-glow); box-shadow: inset 0 0 20px rgba(34, 211, 238, 0.06); }
.btn-outline:hover { border-color: rgba(34, 211, 238, 0.5); box-shadow: inset 0 0 28px rgba(34, 211, 238, 0.12), 0 0 20px rgba(34, 211, 238, 0.12); }
.btn-sm { padding: 10px 20px; font-size: 0.875rem; }

.section-label {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-heading);
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--cyan-400); margin-bottom: 16px;
}
.section-label::before { content: ''; width: 32px; height: 2px; background: var(--gradient-primary); border-radius: 2px; }
.section-title { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.15; font-weight: 700; margin-bottom: 20px; }
.section-title .gradient-text { background: var(--gradient-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-desc { color: var(--text-secondary); font-size: 1.05rem; max-width: 640px; line-height: 1.8; }

.section { padding: 100px 0; position: relative; }
@media (min-width: 1024px) { .section { padding: 140px 0; } }
.section-header { margin-bottom: 64px; }
.section-header.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-header.center .section-desc { margin-left: auto; margin-right: auto; }

.glass-card {
  background: rgba(30, 41, 59, 0.45); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg);
  padding: 32px; transition: transform 0.4s, border-color 0.4s, box-shadow 0.4s; position: relative; overflow: hidden;
}
.glass-card::before { content: ''; position: absolute; inset: 0; background: var(--gradient-soft); opacity: 0; transition: opacity 0.4s; pointer-events: none; }
.glass-card:hover { transform: translateY(-6px); border-color: var(--border-glow); box-shadow: var(--shadow-glow); }
.glass-card:hover::before { opacity: 1; }
.card-icon {
  width: 56px; height: 56px; border-radius: 14px; background: rgba(34, 211, 238, 0.1);
  border: 1px solid var(--border-glow); display: grid; place-items: center; margin-bottom: 24px; position: relative;
}
.card-icon i { font-size: 1.35rem; background: var(--gradient-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.card-title { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 12px; }
.card-text { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.75; }

@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
@keyframes pulse-glow { 0%,100%{opacity:.6;transform:scale(1)} 50%{opacity:1;transform:scale(1.05)} }
@keyframes gradient-flow { 0%{background-position:0% 50%} 50%{background-position:100% 50%} 100%{background-position:0% 50%} }
.animate-float { animation: float 6s ease-in-out infinite; }
.animate-pulse-glow { animation: pulse-glow 4s ease-in-out infinite; }
.gradient-animate { background-size: 200% 200%; animation: gradient-flow 8s ease infinite; }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo); }
.reveal.visible { opacity: 1; transform: translateY(0); }

.site-footer { border-top: 1px solid var(--border-subtle); background: rgba(3,7,18,0.7); position: relative; }
.footer-main { padding: 80px 0 48px; }
.footer-grid { display: grid; gap: 48px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.5fr repeat(2,1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.6fr repeat(3,1fr); } }
.footer-brand .logo { margin-bottom: 20px; }
.footer-desc { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.8; max-width: 320px; margin-bottom: 24px; }
.footer-social { display: flex; gap: 12px; }
.social-link {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border-subtle); color: var(--text-secondary);
  transition: all 0.3s var(--ease-out-expo);
}
.social-link:hover { color: var(--cyan-400); border-color: var(--border-glow); transform: translateY(-3px); box-shadow: 0 8px 20px rgba(6, 182, 212, 0.15); }
.footer-title { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 24px; color: var(--text-primary); }
.footer-links li { margin-bottom: 14px; }
.footer-links a { color: var(--text-secondary); font-size: 0.95rem; transition: color 0.3s, transform 0.3s; display: inline-block; }
.footer-links a:hover { color: var(--cyan-400); transform: translateX(4px); }
.footer-contact li { display: flex; gap: 12px; color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 16px; line-height: 1.6; }
.footer-contact i { color: var(--cyan-400); margin-top: 4px; flex-shrink: 0; }
.footer-bottom { border-top: 1px solid var(--border-subtle); padding: 24px 0; display: flex; flex-direction: column; gap: 12px; align-items: center; justify-content: space-between; color: var(--text-muted); font-size: 0.85rem; }
@media (min-width: 768px) { .footer-bottom { flex-direction: row; } }
.footer-bottom a { color: var(--text-muted); transition: color 0.3s; }
.footer-bottom a:hover { color: var(--cyan-400); }

.gradient-text { background: var(--gradient-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.text-secondary { color: var(--text-secondary); }
.mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; }
.flex { display: flex; } .items-center { align-items: center; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
