/* ===== 基础变量与重置 ===== */
:root {
  --primary: #0b5bd3;
  --primary-dark: #083f96;
  --accent: #00c2a8;
  --ink: #10233f;
  --ink-2: #4a5b74;
  --bg: #ffffff;
  --bg-alt: #f4f7fc;
  --dark: #0a1a33;
  --dark-2: #10264a;
  --line: #e3eaf5;
  --radius: 14px;
  --shadow: 0 12px 40px rgba(11, 91, 211, .10);
  --font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
h1, h2, h3 { line-height: 1.3; }

/* ===== 按钮 ===== */
.btn {
  display: inline-block; padding: 13px 32px; border-radius: 999px;
  font-size: 15px; font-weight: 600; cursor: pointer; border: none;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), #2f7ef7);
  color: #fff; box-shadow: 0 8px 24px rgba(11, 91, 211, .35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(11, 91, 211, .45); }
.btn-ghost {
  background: rgba(255, 255, 255, .08); color: #fff;
  border: 1px solid rgba(255, 255, 255, .4); backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .18); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ===== 导航栏 ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 0; transition: all .3s ease;
}
.navbar.scrolled {
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px);
  box-shadow: 0 2px 16px rgba(16, 35, 63, .08); padding: 12px 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-img { height: 42px; width: auto; display: block; }
.logo-text { font-size: 18px; font-weight: 700; color: #fff; line-height: 1.1; transition: color .3s; }
.logo-text small { display: block; font-size: 9px; font-weight: 500; letter-spacing: 2px; opacity: .75; }
.navbar.scrolled .logo-text { color: var(--ink); }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-size: 15px; font-weight: 500; color: rgba(255, 255, 255, .85);
  position: relative; transition: color .3s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: var(--accent); transition: width .3s;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.navbar.scrolled .nav-links a { color: var(--ink-2); }
.navbar.scrolled .nav-links a:hover, .navbar.scrolled .nav-links a.active { color: var(--primary); }
.nav-links .nav-cta {
  padding: 8px 20px; border-radius: 999px; background: var(--accent);
  color: #fff !important; font-weight: 600;
}
.nav-links .nav-cta::after { display: none; }
.nav-links .nav-cta:hover { background: #00ab94; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2px; background: #fff; transition: all .3s; }
.navbar.scrolled .nav-toggle span { background: var(--ink); }

/* ===== 首页 Banner ===== */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  background: linear-gradient(160deg, var(--dark) 0%, var(--dark-2) 55%, #0b3d7a 100%);
  color: #fff; overflow: hidden; padding: 140px 0 90px;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.glow-1 { width: 480px; height: 480px; background: #1565e0; top: -120px; right: -80px; }
.glow-2 { width: 380px; height: 380px; background: var(--accent); bottom: -140px; left: -100px; opacity: .3; }
.hero-content { position: relative; z-index: 2; }
.hero-tag {
  display: inline-block; padding: 7px 18px; border-radius: 999px; font-size: 13px;
  background: rgba(0, 194, 168, .14); color: var(--accent);
  border: 1px solid rgba(0, 194, 168, .35); letter-spacing: 1px; margin-bottom: 26px;
}
.hero h1 { font-size: clamp(38px, 6vw, 62px); font-weight: 800; letter-spacing: 1px; margin-bottom: 22px; }
.hero-sub { font-size: clamp(15px, 2vw, 18px); color: rgba(255, 255, 255, .72); margin-bottom: 40px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 64px; }
.hero-stats { display: flex; gap: 56px; flex-wrap: wrap; }
.stat b { display: block; font-size: 30px; font-weight: 800; color: var(--accent); }
.stat span { font-size: 14px; color: rgba(255, 255, 255, .65); }

/* ===== 通用区块 ===== */
.section { padding: 110px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 64px; }
.section-label {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 3px;
  color: var(--primary); margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(28px, 4vw, 38px); font-weight: 800; margin-bottom: 14px; }
.section-desc { color: var(--ink-2); font-size: 16px; }
.section-dark { background: linear-gradient(160deg, var(--dark), var(--dark-2)); color: #fff; }
.section-dark .section-label { color: var(--accent); }

/* ===== 关于我们 ===== */
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: start; }
.about-text p { color: var(--ink-2); margin-bottom: 18px; font-size: 16px; }
.about-text b { color: var(--primary); }
.about-points { margin-top: 28px; display: grid; gap: 14px; }
.about-points li {
  padding: 16px 20px; background: var(--bg-alt); border-radius: var(--radius);
  border-left: 4px solid var(--accent); font-size: 15px; color: var(--ink-2);
}
.about-points b { display: block; color: var(--ink); margin-bottom: 2px; }
.about-card { display: grid; gap: 20px; }
.card-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 28px; box-shadow: var(--shadow); position: relative;
  transition: transform .3s ease, box-shadow .3s ease;
}
.card-item:hover { transform: translateY(-4px); box-shadow: 0 18px 48px rgba(11, 91, 211, .16); }
.card-num {
  position: absolute; top: 18px; right: 24px; font-size: 34px; font-weight: 800;
  color: rgba(11, 91, 211, .10);
}
.card-item h3 { font-size: 18px; margin-bottom: 8px; color: var(--primary-dark); }
.card-item p { font-size: 14px; color: var(--ink-2); }

/* ===== 核心业务 ===== */
.biz-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.biz-card {
  background: #fff; border-radius: var(--radius); padding: 36px 32px;
  border: 1px solid var(--line); position: relative; overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}
.biz-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0); transform-origin: left; transition: transform .4s ease;
}
.biz-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.biz-card:hover::before { transform: scaleX(1); }
.biz-icon { font-size: 38px; margin-bottom: 18px; }
.biz-card h3 { font-size: 20px; margin-bottom: 12px; color: var(--primary-dark); }
.biz-card > p { font-size: 15px; color: var(--ink-2); margin-bottom: 18px; }
.biz-card ul { display: flex; flex-wrap: wrap; gap: 8px; }
.biz-card ul li {
  font-size: 13px; color: var(--primary); background: rgba(11, 91, 211, .08);
  padding: 5px 12px; border-radius: 999px;
}

/* ===== 运营模式流程 ===== */
.flow {
  display: flex; align-items: stretch; justify-content: center;
  gap: 12px; flex-wrap: wrap;
}
.flow-step {
  flex: 1 1 200px; max-width: 250px; text-align: center;
  background: var(--bg-alt); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 20px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.flow-step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.flow-no {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; font-size: 18px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent)); margin-bottom: 14px;
}
.flow-step h3 { font-size: 17px; margin-bottom: 8px; color: var(--primary-dark); }
.flow-step p { font-size: 13px; color: var(--ink-2); }
.flow-arrow {
  align-self: center; font-size: 26px; color: var(--accent); font-weight: 700;
}

/* ===== 企业优势 ===== */
.adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.adv-item {
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius); padding: 30px 26px; backdrop-filter: blur(4px);
  transition: background .3s ease, transform .3s ease;
}
.adv-item:hover { background: rgba(255, 255, 255, .12); transform: translateY(-4px); }
.adv-item b { display: block; font-size: 18px; margin-bottom: 10px; color: var(--accent); }
.adv-item p { font-size: 14px; color: rgba(255, 255, 255, .72); }

/* ===== 联系我们 ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.contact-info { display: grid; gap: 22px; }
.info-row { display: flex; gap: 16px; align-items: flex-start; }
.info-ic {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px; display: grid;
  place-items: center; font-size: 20px; background: rgba(11, 91, 211, .08);
}
.info-row b { font-size: 15px; }
.info-row p { font-size: 14px; color: var(--ink-2); }
.contact-form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 32px; box-shadow: var(--shadow); display: grid; gap: 16px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 13px 16px; font-size: 14px; font-family: inherit;
  border: 1px solid var(--line); border-radius: 10px; background: var(--bg-alt);
  color: var(--ink); transition: border-color .25s, background .25s; resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--primary); background: #fff;
}
.contact-form input.error, .contact-form textarea.error { border-color: #e5484d; background: #fff5f5; }
.form-tip { font-size: 13px; min-height: 18px; text-align: center; }
.form-tip.ok { color: #18a058; }
.form-tip.err { color: #e5484d; }

/* ===== 页脚 ===== */
.footer { background: var(--dark); color: rgba(255, 255, 255, .7); padding: 56px 0 0; }
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; flex-wrap: wrap; padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand b { color: #fff; font-size: 16px; }
.footer-brand p { font-size: 13px; }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-links a { font-size: 14px; transition: color .25s; }
.footer-links a:hover { color: var(--accent); }
.footer-copy { text-align: center; padding: 22px 24px; font-size: 13px; }

/* ===== 滚动出现动效 ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== 响应式：平板 ===== */
@media (max-width: 900px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .biz-grid { grid-template-columns: 1fr; }
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .flow { flex-direction: column; align-items: center; }
  .flow-step { max-width: 420px; width: 100%; }
  .flow-arrow { transform: rotate(90deg); line-height: 1; }
  .section { padding: 80px 0; }
}

/* ===== 响应式：手机 ===== */
@media (max-width: 640px) {
  /* --- 全局防横向溢出 + 触控目标 --- */
  html, body { overflow-x: hidden; }
  .container { padding: 0 18px; }
  .nav-links a, .btn { min-height: 44px; }
  .btn { display: inline-flex; align-items: center; justify-content: center; }

  /* --- 抽屉菜单 --- */
  .nav-links {
    position: fixed; top: 0; right: -100%; width: min(78vw, 320px); height: 100dvh;
    flex-direction: column; justify-content: center; gap: 26px;
    background: rgba(10, 26, 51, .97); backdrop-filter: blur(14px);
    transition: right .35s ease; z-index: 99;
    padding-top: env(safe-area-inset-top);
  }
  .nav-links.open { right: 0; }
  .nav-links a {
    color: #fff !important; font-size: 17px;
    display: inline-flex; align-items: center; padding: 6px 12px;
  }
  .nav-toggle {
    display: flex; z-index: 100; padding: 10px;
    position: relative; right: -10px;
  }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: #fff; }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: #fff; }
  .logo-img { height: 34px; }
  .logo-text { font-size: 16px; }

  /* --- Banner：真实视口高度 + 安全区 --- */
  .hero {
    min-height: 100svh;
    padding: calc(96px + env(safe-area-inset-top)) 0 calc(48px + env(safe-area-inset-bottom));
    text-align: center;
  }
  .hero h1 { font-size: clamp(30px, 9vw, 40px); }
  .hero-sub { font-size: 15px; }
  .hero-actions { justify-content: center; gap: 12px; margin-bottom: 48px; }
  .hero-actions .btn { flex: 1 1 auto; max-width: 220px; padding: 13px 20px; }
  .hero-stats {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--radius); padding: 18px 8px;
  }
  .stat b { font-size: 20px; }
  .stat span { font-size: 12px; }
  .pc-br { display: none; }

  /* --- 区块收紧 --- */
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 40px; }
  .section-head h2 { font-size: 26px; }
  .section-desc { font-size: 14px; }

  /* --- 关于我们 --- */
  .about-points li { padding: 14px 16px; font-size: 14px; }
  .card-item { padding: 22px 20px; }

  /* --- 业务卡片 --- */
  .biz-card { padding: 26px 22px; }
  .biz-card h3 { font-size: 18px; }

  /* --- 流程：竖排时间线 --- */
  .flow { position: relative; gap: 0; }
  .flow::before {
    content: ""; position: absolute; left: 50%; top: 40px; bottom: 40px;
    width: 2px; transform: translateX(-50%);
    background: linear-gradient(180deg, var(--primary), var(--accent));
    opacity: .25;
  }
  .flow-step { position: relative; margin: 10px 0; box-shadow: 0 4px 18px rgba(11, 91, 211, .08); }
  .flow-arrow { display: none; }

  /* --- 优势 / 表单 / 页脚 --- */
  .adv-grid { grid-template-columns: 1fr; gap: 14px; }
  .adv-item { padding: 22px 20px; }
  .contact-form { padding: 24px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; gap: 20px; }

  /* --- 移动端减少动效干扰 --- */
  .reveal { transform: translateY(16px); }
}

/* ===== 响应式：小屏手机 ===== */
@media (max-width: 380px) {
  .stat b { font-size: 17px; }
  .stat span { font-size: 11px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { max-width: none; }
}

/* ===== 无障碍：减弱动效偏好 ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
