/* ===== 变量 & 重置 ===== */
:root {
  --blue: #2563EB;
  --blue-light: #EBF5FF;
  --blue-dark: #1D4ED8;
  --green: #16A34A;
  --green-light: #F0FDF4;
  --orange: #EA580C;
  --orange-light: #FFF7ED;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1E293B;
  --gray-900: #0F172A;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow: 0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -2px rgba(0,0,0,.05);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.05);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: .25s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  color: var(--gray-800);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ===== 容器 ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 100px 0; }

/* ===== 导航 ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.header.scrolled { border-bottom-color: var(--gray-200); }

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
}

.logo-icon {
  font-size: 24px;
  line-height: 1;
}

.nav-list {
  display: flex;
  gap: 4px;
}

.nav-link {
  display: block;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--gray-600);
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--blue);
  background: var(--blue-light);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gray-800);
  position: relative;
  transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gray-800);
  position: absolute;
  transition: var(--transition);
}

.hamburger::before { top: -7px; }
.hamburger::after  { top: 7px; }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #1E3A5F 0%, #2563EB 40%, #3B82F6 70%, #60A5FA 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255,255,255,.05) 0%, transparent 60%);
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 680px;
  padding: 140px 0 80px;
}

.hero-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 24px;
  letter-spacing: 2px;
}

.hero-title {
  font-size: clamp(36px, 5.5vw, 56px);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-title .highlight {
  color: #FCD34D;
  position: relative;
}

.hero-desc {
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(255,255,255,.85);
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  z-index: 1;
  line-height: 0;
}

.hero-wave svg { width: 100%; height: 80px; }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  transition: var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: #fff;
  color: var(--blue);
  border-color: #fff;
}

.btn-primary:hover {
  background: var(--gray-50);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.45);
}

.btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.7);
}

.btn-white {
  background: #fff;
  color: var(--blue);
  border-color: #fff;
}

.btn-white:hover {
  background: var(--gray-50);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

/* ===== 区块头 ===== */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-label {
  display: inline-block;
  padding: 5px 14px;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  border-radius: 50px;
  margin-bottom: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(28px, 3.5vw, 38px);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 12px;
}

.section-desc {
  font-size: 17px;
  color: var(--gray-500);
  max-width: 480px;
  margin: 0 auto;
}

/* ===== 服务卡片 ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 40px 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), #60A5FA);
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gray-300);
}

.service-card:hover::before { opacity: 1; }

.service-icon { margin-bottom: 24px; }

.service-name {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--gray-900);
}

.service-desc {
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 20px;
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-features li {
  font-size: 14px;
  color: var(--gray-600);
  padding-left: 20px;
  position: relative;
}

.service-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  opacity: .25;
}

/* ===== 关于 ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.about-desc {
  font-size: 16px;
  color: var(--gray-600);
  line-height: 1.85;
  margin-bottom: 16px;
}

.about-stats {
  display: flex;
  gap: 40px;
  margin-top: 36px;
}

.stat { text-align: center; }

.stat-number {
  display: block;
  font-size: 32px;
  font-weight: 800;
  color: var(--blue);
  line-height: 1.2;
}

.stat-label {
  font-size: 14px;
  color: var(--gray-400);
  margin-top: 4px;
}

.about-visual {
  display: flex;
  justify-content: center;
}

.about-card {
  background: linear-gradient(135deg, #2563EB, #3B82F6);
  border-radius: 20px;
  padding: 4px;
  box-shadow: 0 25px 50px -12px rgba(37,99,235,.35);
  transform: rotate(-2deg);
}

.about-card-inner {
  background: linear-gradient(135deg, var(--gray-900), #1E3A5F);
  border-radius: 18px;
  padding: 56px 48px;
  text-align: center;
  color: #fff;
}

.about-card-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 16px;
}

.about-card-name {
  font-size: 28px;
  font-weight: 700;
  display: block;
  margin-bottom: 12px;
}

.about-card-slogan {
  font-size: 15px;
  color: rgba(255,255,255,.65);
  line-height: 1.7;
}

/* ===== 优势 ===== */
.advantages {
  background: var(--gray-50);
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.advantage-item {
  background: #fff;
  border-radius: var(--radius);
  padding: 36px 28px;
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

.advantage-item:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow);
}

.advantage-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: #fff;
}

.adv-icon-1 { background: linear-gradient(135deg, #2563EB, #3B82F6); }
.adv-icon-2 { background: linear-gradient(135deg, #16A34A, #22C55E); }
.adv-icon-3 { background: linear-gradient(135deg, #EA580C, #F97316); }
.adv-icon-4 { background: linear-gradient(135deg, #7C3AED, #8B5CF6); }

.advantage-item h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--gray-900);
}

.advantage-item p {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.7;
}

/* ===== CTA ===== */
.cta-section { padding: 0 24px 100px; }

.cta-card {
  background: linear-gradient(135deg, #1E40AF, #2563EB);
  border-radius: var(--radius);
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,.08) 0%, transparent 60%);
}

.cta-card > * { position: relative; z-index: 1; }

.cta-card h2 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.cta-card p {
  font-size: 17px;
  color: rgba(255,255,255,.75);
  margin-bottom: 28px;
}

/* ===== 联系 ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-text h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 6px;
}

.contact-text p {
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.7;
}

.contact-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.qr-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 36px;
  text-align: center;
  box-shadow: var(--shadow);
}

.qr-image {
  width: 180px;
  height: 180px;
  margin: 0 auto 20px;
}

.qr-placeholder-box {
  width: 180px;
  height: 180px;
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--gray-50);
  cursor: pointer;
  transition: var(--transition);
}

.qr-placeholder-box:hover {
  border-color: var(--blue);
  background: var(--blue-light);
}

.qr-placeholder-box img {
  width: 180px;
  height: 180px;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

.qr-hint {
  font-size: 13px;
  color: var(--gray-400);
  text-align: center;
}

.qr-info { margin-top: 8px; }

.qr-label {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-900);
}

.qr-desc {
  font-size: 14px;
  color: var(--gray-400);
  margin-top: 4px;
}

.qr-note {
  font-size: 13px;
  color: var(--gray-400);
  margin-top: 16px;
  text-align: center;
}

/* ===== 页脚 ===== */
.footer {
  background: var(--gray-900);
  color: #fff;
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-logo {
  font-size: 20px;
  font-weight: 700;
  display: block;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--gray-400);
  line-height: 1.8;
}

.footer-links h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-300);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.footer-links ul { display: flex; flex-direction: column; gap: 10px; }

.footer-links a,
.footer-links li {
  font-size: 14px;
  color: var(--gray-400);
  transition: var(--transition);
}

.footer-links a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 13px;
  color: var(--gray-500);
}

.footer-bottom a {
  color: var(--gray-500);
  transition: var(--transition);
}

.footer-bottom a:hover { color: #fff; }

.footer-legal {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-legal a {
  font-size: 13px;
  color: var(--gray-500);
  transition: var(--transition);
}

.footer-legal a:hover { color: #fff; }

/* ===== 动画 ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== 响应式 ===== */
@media (max-width: 960px) {
  .section { padding: 72px 0; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .advantages-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .about-visual { order: -1; }
  .about-card-inner { padding: 40px 32px; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .section { padding: 56px 0; }

  /* 移动端导航 */
  .nav-list {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--gray-200);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }

  .nav-list.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-toggle { display: block; }

  .services-grid { grid-template-columns: 1fr; }
  .advantages-grid { grid-template-columns: 1fr; }
  .about-stats { gap: 20px; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { justify-content: center; }
  .cta-card { padding: 40px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* 打印样式 */
@media print {
  .header, .hero-wave, .cta-section, .nav-toggle { display: none; }
  .hero { min-height: auto; background: none; color: #000; padding: 40px 0; }
  .hero-title, .hero-desc, .hero-tag { color: #000; }
  .hero-title .highlight { color: var(--blue); }
  .hero-overlay { display: none; }
}

/* 无障碍：减少动画 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
