/* ===================== 基础与变量 ===================== */
:root {
  --primary: #0e3a5d;
  --primary-dark: #0a2a44;
  --accent: #1eb3a3;
  --accent-light: #2fd6c6;
  --bg: #f6f9fb;
  --bg-soft: #eef3f7;
  --text: #2b3a4a;
  --muted: #6b7a8c;
  --white: #ffffff;
  --line: #e3ebf1;
  --shadow: 0 10px 30px rgba(14, 58, 93, 0.08);
  --shadow-lg: 0 20px 50px rgba(14, 58, 93, 0.14);
  --radius: 14px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

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

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px rgba(14, 58, 93, 0.06);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), #16518a);
  color: var(--accent-light);
  font-size: 22px;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(14, 58, 93, 0.24);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-text strong {
  font-size: 18px;
  color: var(--primary-dark);
  letter-spacing: 1px;
}

.brand-text em {
  font-style: normal;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  position: relative;
  padding: 8px 16px;
  font-size: 15px;
  color: var(--text);
  border-radius: 8px;
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
  background: rgba(30, 179, 163, 0.08);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--primary-dark);
  border-radius: 2px;
  transition: var(--transition);
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===================== 主视觉 ===================== */
.hero {
  position: relative;
  padding: 150px 0 120px;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, #0a2a44 0%, #0e3a5d 45%, #14568a 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-bg::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -10%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 214, 198, 0.28), transparent 70%);
}

.hero-bg::after {
  content: "";
  position: absolute;
  bottom: -35%;
  left: -5%;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 179, 163, 0.22), transparent 70%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-eyebrow {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid rgba(47, 214, 198, 0.5);
  border-radius: 999px;
  font-size: 13px;
  color: var(--accent-light);
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 52px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.82);
  max-width: 560px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(30, 179, 163, 0.4);
}

.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(30, 179, 163, 0.5);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn-block {
  width: 100%;
}

/* ===================== 数据指标 ===================== */
.stats {
  position: relative;
  z-index: 2;
  margin-top: -52px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow-lg);
}

.stat-item {
  text-align: center;
  border-right: 1px solid var(--line);
}

.stat-item:last-child {
  border-right: none;
}

.stat-num {
  font-size: 40px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
}

.stat-num .counter {
  color: var(--accent);
}

.stat-label {
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted);
}

/* ===================== 通用 Section ===================== */
.section {
  padding: 96px 0;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-tag {
  display: inline-block;
  padding: 5px 16px;
  border-radius: 999px;
  background: rgba(30, 179, 163, 0.1);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.section-title {
  font-size: 34px;
  color: var(--primary-dark);
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.section-desc {
  font-size: 16px;
  color: var(--muted);
}

/* ===================== 关于我们 ===================== */
.about {
  background: var(--bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: start;
}

.about-text p {
  color: var(--text);
  font-size: 16px;
  margin-bottom: 18px;
}

.about-points {
  list-style: none;
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
}

.about-points li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  color: var(--text);
}

.about-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(30, 179, 163, 0.15);
}

.about-points li::after {
  content: "✓";
  position: absolute;
  left: 3px;
  top: 1px;
  font-size: 9px;
  color: var(--accent);
  font-weight: 700;
}

.about-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--accent);
}

.about-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.about-facts {
  list-style: none;
}

.about-facts li {
  display: flex;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}

.about-facts li:last-child {
  border-bottom: none;
}

.about-facts li span {
  width: 88px;
  flex-shrink: 0;
  color: var(--muted);
}

.about-facts li b {
  font-weight: 600;
  color: var(--text);
}

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

.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 30px;
  transition: var(--transition);
}

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

.service-icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(30, 179, 163, 0.12), rgba(14, 58, 93, 0.1));
  margin-bottom: 22px;
}

.service-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  font-size: 19px;
  color: var(--primary-dark);
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.service-card p {
  font-size: 15px;
  color: var(--muted);
}

/* ===================== 合作品牌 ===================== */
.brands {
  background: var(--bg-soft);
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.brand-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 88px;
  background: var(--white);
  border-radius: 12px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--muted);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.brand-item:hover {
  color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* ===================== 联系我们 ===================== */
.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: 18px;
  align-items: flex-start;
}

.contact-icon {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(30, 179, 163, 0.1);
}

.contact-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-item h4 {
  font-size: 16px;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.contact-item p {
  font-size: 15px;
  color: var(--muted);
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-lg);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  outline: none;
  transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(30, 179, 163, 0.12);
}

.contact-form textarea {
  resize: vertical;
  margin-bottom: 20px;
}

.form-tip {
  margin-top: 14px;
  font-size: 14px;
  color: var(--accent);
  text-align: center;
  min-height: 20px;
}

/* ===================== 页脚 ===================== */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 48px 0;
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand .brand-mark {
  background: linear-gradient(135deg, var(--primary), #16518a);
}

.footer-brand strong {
  display: block;
  color: var(--white);
  font-size: 16px;
  letter-spacing: 1px;
}

.footer-brand em {
  font-style: normal;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}

.footer-copy {
  text-align: right;
  font-size: 13px;
  line-height: 1.9;
}

.footer-copy a {
  color: rgba(255, 255, 255, 0.75);
}

.footer-copy a:hover {
  color: var(--accent-light);
}

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

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================== 响应式 ===================== */
@media (max-width: 960px) {
  .hero-title {
    font-size: 40px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
  }
  .stat-item {
    padding: 16px 0;
    border-right: none;
  }
  .stat-item:nth-child(odd) {
    border-right: 1px solid var(--line);
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .brands-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .about-points {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 120px 0 90px;
  }
  .hero-title {
    font-size: 32px;
  }
  .hero-sub {
    font-size: 15px;
  }
  .section {
    padding: 64px 0;
  }
  .section-title {
    font-size: 26px;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .brands-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer-wrap {
    flex-direction: column;
    text-align: center;
  }
  .footer-copy {
    text-align: center;
  }

  .menu-toggle {
    display: flex;
  }
  .main-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    padding: 12px 24px 20px;
    box-shadow: 0 16px 30px rgba(14, 58, 93, 0.1);
    transform: translateY(-140%);
    transition: var(--transition);
  }
  .main-nav.open {
    transform: translateY(0);
  }
  .nav-link {
    padding: 14px 12px;
    border-bottom: 1px solid var(--line);
  }
}
