@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --bg: #f8fafc;
  --bg2: rgba(255, 255, 255, 0.8);
  --bg3: rgba(255, 255, 255, 0.6);
  --ink: #0f172a;
  --muted: #64748b;
  --rule: rgba(148, 163, 184, 0.2);
  --rule-strong: rgba(148, 163, 184, 0.35);
  --accent: #6366f1;
  --accent2: #06b6d4;
  --accent3: #8b5cf6;
  --accent4: #f43f5e;
  --accent5: #f59e0b;
  --accent6: #10b981;
  --accent7: #3b82f6;
  --accent8: #ec4899;
  --font: 'Microsoft YaHei', '微软雅黑', 'Outfit', sans-serif;
  --font-en: 'Outfit', 'Microsoft YaHei', sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, Monaco, monospace;
  --max: 1200px;
  --radius: 16px;
  --radius-sm: 8px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Ambient gradient background */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse 60% 50% at 10% 0%, rgba(99, 102, 241, 0.08), transparent 70%),
    radial-gradient(ellipse 50% 40% at 90% 10%, rgba(6, 182, 212, 0.08), transparent 70%),
    radial-gradient(ellipse 40% 30% at 50% 100%, rgba(139, 92, 246, 0.06), transparent 70%);
  z-index: -1;
  pointer-events: none;
}

/* === Navigation（通辐式，全站统一） === */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(248, 250, 252, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  max-width: 1680px; margin: 0 auto; padding: 0 clamp(1.5rem, 4vw, 4rem);
  height: 76px; display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 40px; height: 40px;
  object-fit: contain;
}
.brand-name { font-family: 'Segoe Script', 'Brush Script MT', cursive; font-weight: 600; font-size: 1.05rem; }
.nav-links { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 34px); }
.nav-links a {
  text-decoration: none; color: var(--muted); font-size: 0.92rem; font-weight: 500;
  letter-spacing: 0.02em; transition: color 0.2s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 1px; transition: width 0.25s;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  background: linear-gradient(135deg, #6366f1, #06b6d4);
  color: #fff !important; font-size: 0.88rem; font-weight: 600;
  padding: 10px 24px; border-radius: 999px; transition: all 0.2s;
  box-shadow: 0 4px 24px rgba(99, 102, 241, 0.35);
}
.nav-cta::after { display: none; }
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(99, 102, 241, 0.35); }
@media (max-width: 1100px) { .nav-links a:not(.nav-cta):not(.nav-cta-business) { display: none; } }

/* === Layout（通辐式宽屏） === */
.wrap { max-width: 1680px; margin: 0 auto; padding: 0 clamp(1.5rem, 4vw, 4rem); }

/* === Hero === */
.hero { padding: 3.5rem 0 2.5rem; }
.hero-badge {
  display: inline-block; padding: 0.4rem 1.2rem;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; border-radius: 999px; font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.05em; margin-bottom: 1.2rem;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.25);
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; line-height: 1.2;
  background: linear-gradient(135deg, var(--ink) 0%, var(--accent) 50%, var(--accent2) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero p { color: var(--muted); margin-top: 0.8rem; max-width: 640px; font-size: 1rem; }

/* === Kicker / Section Head === */
.kicker {
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent); font-weight: 600;
  display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
}
.kicker::before { content: ''; width: 28px; height: 2px; background: linear-gradient(90deg, var(--accent), var(--accent2)); border-radius: 1px; }
.section-title { font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 700; line-height: 1.25; }
.section-title .accent { color: var(--accent); }
.section-sub { color: var(--muted); margin-top: 0.6rem; max-width: 680px; font-size: 0.95rem; }

/* === Cards (glassmorphism) === */
.card {
  background: var(--bg2); backdrop-filter: blur(10px);
  border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 1.5rem; transition: all 0.3s ease; position: relative; overflow: hidden;
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  opacity: 0; transition: opacity 0.3s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.2);
}
.card:hover::before { opacity: 1; }

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  padding: 0.7rem 1.6rem; border-radius: var(--radius-sm); font-size: 0.9rem;
  font-weight: 600; transition: all 0.25s; border: 1px solid transparent; cursor: pointer;
  font-family: var(--font);
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; box-shadow: 0 4px 20px rgba(99, 102, 241, 0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(99, 102, 241, 0.35); }
.btn-ghost { border-color: var(--rule-strong); color: var(--ink); background: var(--bg2); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* === Badges / Tags === */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.75rem; font-weight: 600; padding: 0.25rem 0.7rem;
  border-radius: 6px; font-family: var(--font);
}
.badge-accent { background: rgba(99, 102, 241, 0.1); color: var(--accent); }
.badge-cyan { background: rgba(6, 182, 212, 0.1); color: var(--accent2); }
.badge-amber { background: rgba(245, 158, 11, 0.1); color: var(--accent5); }
.badge-rose { background: rgba(244, 63, 94, 0.1); color: var(--accent4); }
.badge-green { background: rgba(16, 185, 129, 0.1); color: var(--accent6); }

/* === Site Footer（通辐式深色大页脚，全站统一） === */
.site-footer {
  background:
    radial-gradient(ellipse 70% 90% at 15% 0%, rgba(99, 102, 241, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 80% at 85% 100%, rgba(6, 182, 212, 0.06), transparent 55%),
    linear-gradient(180deg, #0a0e1a 0%, #06080f 100%);
  border-top: 1px solid rgba(99, 102, 241, 0.15);
  padding: 0;
  margin-top: 0;
  color: #64748b;
}
.footer-main {
  max-width: 1680px; margin: 0 auto;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: clamp(2rem, 4vw, 4rem);
  padding: clamp(4rem, 7vw, 6rem) clamp(1.5rem, 4vw, 4rem) 3rem;
}
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.footer-logo {
  width: 140px; height: auto; border-radius: 16px; object-fit: cover;
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.footer-logo:hover { transform: scale(1.05); box-shadow: 0 12px 40px rgba(99, 102, 241, 0.35); }
.footer-cn { font-size: 0.9rem; font-weight: 600; color: #e2e8f0; line-height: 1.5; text-align: left; }
.footer-en { font-size: 0.72rem; font-family: var(--font-en); color: #64748b; line-height: 1.6; text-align: left; opacity: 0.85; max-width: 340px; }
.footer-brand .footer-desc { font-size: 0.82rem; color: #64748b; line-height: 1.8; max-width: 360px; }
.footer-col h4 {
  font-size: 0.85rem; font-weight: 700; color: #f1f5f9;
  margin-bottom: 1.2rem; letter-spacing: 0.12em;
  position: relative; padding-bottom: 0.6rem;
}
.footer-col h4::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 28px; height: 2px;
  background: linear-gradient(90deg, #6366f1, #06b6d4); border-radius: 1px;
}
.footer-col a {
  display: block; font-size: 0.88rem; color: #94a3b8;
  text-decoration: none; padding: 0.4rem 0; transition: color 0.2s, transform 0.2s;
}
.footer-col a:hover { color: #818cf8; transform: translateX(4px); }
.footer-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 1.2rem; }
.footer-slogan {
  font-size: 1.3rem; font-weight: 800; line-height: 1.4;
  background: linear-gradient(135deg, #818cf8, #22d3ee);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.footer-cta .footer-mail {
  font-size: 0.82rem; color: #64748b; text-decoration: none;
  transition: color 0.2s;
}
.footer-cta .footer-mail:hover { color: #22d3ee; }
.footer-wecom-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: 999px;
  background: linear-gradient(135deg, #6366f1, #06b6d4);
  color: #fff !important; font-size: 0.88rem; font-weight: 600;
  text-decoration: none; box-shadow: 0 4px 24px rgba(99, 102, 241, 0.35);
  transition: all 0.25s;
}
.footer-wecom-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(99, 102, 241, 0.5); text-decoration: none; }
.footer-legal {
  border-top: 1px solid rgba(99, 102, 241, 0.12);
  padding: 1.6rem clamp(1.5rem, 4vw, 4rem);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 0.8rem;
  max-width: 1680px; margin: 0 auto;
  font-size: 0.78rem; color: var(--muted);
}
.footer-legal a { color: #64748b; text-decoration: none; transition: color 0.2s; margin-left: 1.5rem; }
.footer-legal a:hover { color: #818cf8; }

/* === Reveal Animation === */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* === Responsive === */
@media (max-width: 900px) {
  .footer-main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .hero { padding: 2rem 0 1.5rem; }
  .wrap { padding: 0 1rem; }
}
@media (max-width: 560px) {
  .footer-main { grid-template-columns: 1fr; }
  .footer-legal { justify-content: center; text-align: center; }
}

@media print {
  body::before { display: none; }
  .reveal { opacity: 1; transform: none; }
}

/* === 突出商业接单按钮（全站统一：标签式 + 绿色脉冲点） === */
.nav-cta-business {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: 999px;
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #a5b4fc !important; font-size: 0.88rem; font-weight: 600;
  background: rgba(99, 102, 241, 0.08);
  transition: all 0.25s;
}
.nav-cta-business::after { display: none; }
.nav-cta-business:hover { background: rgba(99, 102, 241, 0.18); border-color: rgba(99, 102, 241, 0.6); }
.nav-cta-business .pulse-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #34d399; box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

/* === 业务咨询弹窗 === */
.consult-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 9999;
  background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; padding: 1rem;
}
.consult-overlay.show { display: flex; animation: fade-in 0.25s ease; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.consult-modal {
  background: #fff; border-radius: 16px; width: 100%; max-width: 480px;
  max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: slide-up 0.3s ease;
}
@keyframes slide-up { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }

.consult-header {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; padding: 1.5rem 1.5rem 1.2rem; border-radius: 16px 16px 0 0;
  text-align: center; position: relative;
}
.consult-header h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.3rem; }
.consult-header p { font-size: 0.82rem; opacity: 0.85; }
.consult-close {
  position: absolute; top: 0.8rem; right: 0.8rem; width: 30px; height: 30px;
  border: none; background: rgba(255,255,255,0.2); color: #fff; border-radius: 50%;
  font-size: 1.1rem; cursor: pointer; transition: background 0.2s; line-height: 1;
}
.consult-close:hover { background: rgba(255,255,255,0.35); }

.consult-body { padding: 1.5rem; }
.consult-field { margin-bottom: 1.1rem; }
.consult-field label {
  display: block; font-size: 0.82rem; font-weight: 600; color: var(--ink);
  margin-bottom: 0.4rem;
}
.consult-field label .req { color: var(--accent4); margin-left: 2px; }
.consult-field input,
.consult-field textarea {
  width: 100%; border: 1.5px solid var(--rule); border-radius: 8px;
  padding: 0.6rem 0.8rem; font-size: 0.88rem; font-family: inherit; color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s; background: #fff;
}
.consult-field input:focus,
.consult-field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}
.consult-field textarea { resize: vertical; min-height: 70px; }
.consult-field .field-err { font-size: 0.75rem; color: var(--accent4); margin-top: 0.3rem; display: none; }
.consult-field.has-err input, .consult-field.has-err textarea { border-color: var(--accent4); }
.consult-field.has-err .field-err { display: block; }

.captcha-row { display: flex; gap: 0.6rem; align-items: center; }
.captcha-row input { flex: 1; }
.captcha-canvas-wrap {
  flex-shrink: 0; width: 120px; height: 42px; border: 1.5px solid var(--rule);
  border-radius: 8px; overflow: hidden; cursor: pointer; position: relative;
  background: linear-gradient(135deg, #f0f4ff, #e0f7ff);
}
.captcha-canvas-wrap canvas { display: block; width: 100%; height: 100%; }
.captcha-canvas-wrap .refresh-hint {
  position: absolute; bottom: 0; right: 0; background: rgba(99,102,241,0.8);
  color: #fff; font-size: 0.6rem; padding: 1px 5px; border-radius: 3px 0 0 0;
}
.char-count { font-size: 0.72rem; color: var(--muted); text-align: right; margin-top: 0.2rem; }

.consult-agreement {
  display: flex; align-items: flex-start; gap: 0.5rem; margin: 1rem 0;
  font-size: 0.8rem; color: var(--muted); line-height: 1.5;
}
.consult-agreement input[type="checkbox"] {
  width: 16px; height: 16px; margin-top: 2px; flex-shrink: 0; cursor: pointer;
  accent-color: var(--accent);
}
.consult-agreement a { color: var(--accent); text-decoration: underline; }

.consult-submit {
  width: 100%; border: none; border-radius: 10px; padding: 0.8rem;
  font-size: 0.95rem; font-weight: 700; color: #fff; cursor: pointer;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}
.consult-submit:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(99,102,241,0.3); }
.consult-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.consult-success {
  text-align: center; padding: 2.5rem 1.5rem; display: none;
}
.consult-success.show { display: block; }
.consult-success .check-icon {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 1rem;
  background: linear-gradient(135deg, #10b981, #06b6d4);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; color: #fff;
}
.consult-success h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.4rem; color: var(--ink); }
.consult-success p { font-size: 0.85rem; color: var(--muted); }

@media (max-width: 768px) {
  .consult-modal { max-width: 100%; border-radius: 12px; }
  .consult-header { padding: 1.2rem 1rem 1rem; }
  .consult-body { padding: 1.2rem 1rem; }
  .captcha-canvas-wrap { width: 100px; }
}
