/* =============================================================
 * 企业官网（单页精简版）· 样式
 * 基调：白底 + 蓝色点缀，细边框卡片，大量留白，不做多余装饰
 * ============================================================= */

:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-soft: #eff6ff;
  --ink: #111827;
  --text: #4b5563;
  --muted: #6b7280;
  --line: #e5e7eb;
  --gray: #f9fafb;
  --white: #fff;

  --radius: 12px;
  --radius-lg: 16px;
  --wrap: 1120px;
  --hd-h: 64px;

  --shadow-sm: 0 1px 3px rgba(17, 24, 39, 0.06);
  --shadow: 0 8px 24px rgba(17, 24, 39, 0.08);

  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Hiragino Sans GB",
    system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

body.nav-open { overflow: hidden; }

h1, h2, h3 { margin: 0; color: var(--ink); line-height: 1.35; font-weight: 700; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

:focus-visible { outline: 3px solid rgba(59, 130, 246, 0.35); outline-offset: 2px; border-radius: 6px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 通用 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); transform: translateY(-1px); }

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

.btn--lg { padding: 13px 30px; font-size: 16px; }
.btn--sm { padding: 9px 18px; font-size: 14px; }
.btn:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }

.badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 20px;
}

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
}

/* ---------- 顶部导航 ---------- */
.hd {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hd.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 2px 12px rgba(17, 24, 39, 0.05);
}

/* 三栏网格：左 Logo / 中 导航（整页居中）/ 右 按钮 */
.hd__in {
  height: var(--hd-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

/* 顶部品牌 LOGO（透明 PNG，等比缩放） */
.logo {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-width: 0;
}

.logo__img {
  display: block;
  height: 32px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  justify-self: center;
}

.nav a {
  position: relative;
  font-size: 15px;
  color: var(--text);
  padding: 4px 0;
  transition: color 0.18s ease;
}

.nav a:hover { color: var(--blue); }

.nav a.is-active { color: var(--blue); font-weight: 600; }
.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--blue);
}

.hd__cta { justify-self: end; }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 12px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  flex-direction: column;
  justify-content: space-between;
}

.burger span { display: block; height: 2px; border-radius: 2px; background: var(--ink); transition: transform 0.22s ease, opacity 0.18s ease; }
.burger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- 首屏（整屏高，内容垂直居中） ---------- */
.hero {
  padding: 84px 0 0;
  min-height: calc(100dvh - var(--hd-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(180deg, var(--blue-soft) 0%, #ffffff 82%);
  text-align: center;
}

.hero__in { max-width: 760px; }

.hero__title {
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero__line { display: block; }
.hero__line:last-child { color: var(--blue); }
/* 主标题只剩一行时适当放大，避免单行居中显得单薄 */
.hero__line:only-child { font-size: 1.14em; }

.hero__sub {
  font-size: 17px;
  line-height: 1.85;
  color: var(--text);
  max-width: 34em;
  margin: 0 auto 32px;
}

.hero__cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 64px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: -40px;
  position: relative;
  z-index: 2;
}

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

.stat:last-child { border-right: 0; }

.stat b {
  display: block;
  font-size: 26px;
  font-weight: 800;
  color: var(--blue);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.stat span { font-size: 14px; color: var(--muted); }

/* ---------- 区块通用 ---------- */
.sec { padding: 96px 0; }
/* 紧跟首屏的区块：首屏数据条下探 40px，这里留出空间 */
.hero + .sec { padding-top: 120px; }

section[id] { scroll-margin-top: calc(var(--hd-h) + 8px); }

.head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 48px;
}

.head h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 12px; }
.head p { font-size: 16px; color: var(--muted); }

/* ---------- 联系我们 ---------- */
/* 电话 / 地址两张卡，居中双列 */
.contact-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 720px;
  margin: 0 auto;
}

.info {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.info__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--blue-soft);
  color: var(--blue);
  flex: none;
}

.info__icon svg { width: 20px; height: 20px; }
.info__label { display: block; font-size: 13px; color: var(--muted); }
.info__value {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  word-break: break-all;
}
/* 可拨号的电话是页面上主要的转化动作，加大触摸热区（手机上更好点） */
a.info__value { padding: 4px 0; }
a.info__value:hover { color: var(--blue); }

/* ---------- 页脚 ---------- */
.ft {
  background: #0e1116;
  color: rgba(255, 255, 255, 0.62);
  padding: 34px 0 0;
}

.ft__in {
  display: flex;
  /* LOGO 只有一行、右侧是栏目标题+多行链接，
     居中对齐让 LOGO 相对右侧内容垂直居中，不会顶在左上角留一块空白 */
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
  padding-bottom: 28px;
}

/* 左：品牌 LOGO */
.ft__brand { padding-top: 2px; }

.ft__logo { display: inline-block; }

/* 深色页脚上改用白色单色版：
   LOGO 本身是单色字标，brightness(0) 压成黑 + invert(1) 反成白，
   透明通道不受影响，边缘抗锯齿依然平滑。
   这样避免高饱和品红在近黑背景上过于刺眼、与蓝色主色系打架。 */
.ft__logo img {
  display: block;
  height: 32px;   /* 与顶部导航 LOGO 同高，同一个品牌标在全站保持同尺寸 */
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.ft__desc {
  max-width: 360px;
  font-size: 14px;
  line-height: 1.85;
  margin-top: 20px;
}

/* 右：链接分组 */
.ft__cols { display: flex; gap: 76px; }

.ft__col h4 {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 14px;
}

.ft__col nav { display: grid; gap: 9px; justify-items: start; }

.ft__col a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.62);
  transition: color 0.18s ease;
}

.ft__col a:hover { color: #fff; }

/* 底部：版权 + 备案号 */
.ft__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 15px;
  padding-bottom: 17px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 13.5px;
}

/* ---------- 404 ---------- */
.err {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 24px;
  background: var(--gray);
}

.err__code { font-size: 76px; font-weight: 800; color: var(--blue); line-height: 1; }
.err h1 { font-size: 24px; margin: 16px 0 10px; }
.err p { color: var(--muted); margin-bottom: 26px; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .contact-info { grid-template-columns: 1fr; max-width: 460px; }
}

@media (max-width: 820px) {
  /* 移动端回到 flex：导航变成下拉面板，不再占位 */
  .hd__in { display: flex; gap: 14px; }

  .nav {
    position: fixed;
    inset: var(--hd-h) 0 auto 0;
    /* 必须抵消基础样式里的 justify-self: center。
       CSS 盒对齐规范中 justify-self 对 fixed/absolute 元素同样生效，
       会把本应铺满的固定面板收缩成「内容宽 + 居中」，看起来就是一小块浮在中间。 */
    justify-self: stretch;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 10px 20px 18px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }

  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 13px 0; font-size: 16px; border-bottom: 1px solid var(--gray); }
  .nav a:last-child { border-bottom: 0; }
  .nav a.is-active::after { display: none; }

  .burger { display: flex; margin-left: auto; }
  .hd__cta { display: none; }

  .hero { padding-top: 56px; }
  .hero__cta { margin-bottom: 48px; }
  .stats { grid-template-columns: repeat(2, 1fr); margin-bottom: -30px; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }

  .sec { padding: 68px 0; }
  .hero + .sec { padding-top: 86px; }
  .head { margin-bottom: 36px; }

  .ft__in { padding-bottom: 24px; }
  .ft__cols { gap: 44px; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .hero { min-height: auto; padding-bottom: 8px; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .logo__img { height: 28px; }

  .ft { padding-top: 26px; }
  /* 移动端改成纵向排列，靠左对齐（否则 flex 的 align-items:center 会把 LOGO 水平居中） */
  .ft__in { flex-direction: column; align-items: flex-start; gap: 22px; padding-bottom: 22px; }
  .ft__cols { width: 100%; justify-content: space-between; gap: 26px; }
  .ft__logo img { height: 26px; }
  .ft__bottom { justify-content: flex-start; }
}
