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

: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;
}

/* 入场动画：初始隐藏态只在 <html class="js"> 下生效（该 class 由服务端直接输出）。
   注意用 :not(.in) 而不是 .in 覆盖 —— 否则 .reveal.in 里的 transform:none
   会以更高优先级压掉 .card:hover 的上浮效果。 */
.js .reveal {
  transition: opacity 0.6s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.js .reveal:not(.in) {
  opacity: 0;
  transform: translateY(20px);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { transition: none; }
  .js .reveal:not(.in) { opacity: 1; transform: 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); }

/* ---------- 首屏（整屏高，内容垂直居中） ---------- */
/* 【当前版】实拍照片背景：Pixabay「Clouds Landscape Sky」by lobozunino（免费商用，无需署名）。
   照片整体偏暗（平均亮度 67/255），所以首屏文字统一改成白色 + 加一层深色压膜保证可读。
   👉 想换回 CSS 手绘海岸：① 把下面的 background 换成文末注释里的渐变
      ② 删掉 .hero::before 压膜 ③ 删掉 .hero__scene{display:none} ④ 文字色改回深色 */
.hero {
  position: relative;
  padding: 84px 0 0;
  min-height: calc(100dvh - var(--hd-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  background: #dfeaf7 url('/assets/img/hero-bg.jpg') center 45% / cover no-repeat;
}

/* ── 蒙层 · 浅色版（默认）──
   这张海景本身是浅色（平均亮度 178/255），蒙层只需要轻轻提亮，
   保证蓝色标题的对比度够（约 0.45 的白色叠加后标题对比度 ≈3.5:1、副标题 ≈5:1，
   同时海平线和水面纹理依然看得见）。 */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.38) 0%,
    rgba(255, 255, 255, 0.48) 34%,
    rgba(255, 255, 255, 0.5) 64%,
    rgba(255, 255, 255, 0.4) 100%
  );
}

/* ── 蒙层 · 深色版（想用就把上面那条 .hero::before 注释掉，把本段放开） ──
.hero { color: #fff; }
.hero::before {
  background: linear-gradient(180deg, rgba(5, 20, 42, 0.55) 0%, rgba(5, 20, 42, 0.32) 38%, rgba(5, 20, 42, 0.7) 100%);
}
.hero__title { color: #fff; text-shadow: 0 2px 24px rgba(3, 15, 32, 0.5); }
.hero__line:last-child { color: #9ecbff; }
.hero__sub { color: rgba(255, 255, 255, 0.93); text-shadow: 0 1px 14px rgba(3, 15, 32, 0.45); }
.hero__cta .btn--primary { box-shadow: 0 8px 24px rgba(3, 15, 32, 0.35); }
*/

/* 实拍照片版：CSS 手绘风景层不显示 —— 切回手绘时把这一行删掉即可 */
.hero__scene { display: none; }

/* 风景层：绝对定位不参与布局、不吃鼠标事件；装饰溢出只在这里裁掉 */
.hero__scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

/* 右上柔光 */
.hero__sun {
  position: absolute;
  top: -16%;
  right: 4%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.5) 36%, rgba(255, 255, 255, 0) 68%);
}

/* 阳光在海面的倒影光带 */
.hero__glint {
  position: absolute;
  left: 62%;
  top: 61.5%;
  width: 360px;
  height: 38%;
  background: radial-gradient(ellipse 46% 100% at 50% 0%, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0) 72%);
}

/* 极淡的云 */
.hero__cloud {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  filter: blur(24px);
}

.hero__cloud--a { width: 260px; height: 46px; top: 13%; left: 8%; opacity: 0.9; }
.hero__cloud--b { width: 330px; height: 54px; top: 25%; right: 11%; opacity: 0.7; }

/* 浪线：贴着海平线；非等比拉伸时线宽保持一致 */
.hero__waves {
  position: absolute;
  left: 0;
  right: 0;
  top: 58%;
  width: 100%;
  height: 24%;
}

.hero__waves path {
  fill: none;
  stroke: #ffffff;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.hero__waves path:nth-child(1) { stroke-width: 2; opacity: 0.8; }
.hero__waves path:nth-child(2) { stroke-width: 1.6; opacity: 0.55; }
.hero__waves path:nth-child(3) { stroke-width: 1.4; opacity: 0.38; }

/* 内容压在风景之上 */
.hero__in,
.hero > .wrap { position: relative; z-index: 1; }

.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__sub { color: #3b5573; }
.hero__cta .btn--primary { box-shadow: 0 8px 22px rgba(20, 46, 82, 0.22); }

.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: 0 14px 36px rgba(20, 46, 82, 0.18);
  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); }

/* ---------- 核心服务 ---------- */
.grid { display: grid; gap: 22px; }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: #cfe0fb;
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--blue-soft);
  color: var(--blue);
  margin-bottom: 18px;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

/* 悬停时图标变实心蓝 + 白描边，并轻微放大（对齐参考站 group-hover:bg-blue-600 / text-white / scale） */
.card:hover .card__icon {
  background: var(--blue);
  color: #fff;
  transform: scale(1.08);
}

.card__icon svg { width: 23px; height: 23px; }

.card h3 { font-size: 18px; margin-bottom: 10px; }
.card > p { font-size: 14.5px; line-height: 1.8; 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; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@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; }
  /* 手机端换竖向裁切的图（1200×1500），省流量也避免横图裁得太狠 */
  .hero { min-height: auto; padding-bottom: 8px; background-image: url('/assets/img/hero-bg-m.jpg'); background-position: center 38%; }
  .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; }

  .grid--4 { grid-template-columns: 1fr; gap: 16px; }
  .card { padding: 24px 20px; }

  /* 手机端风景：光晕移出画面一点，云更小，浪线上移 */
  .hero__sun { width: 320px; height: 320px; top: -12%; right: -18%; }
  .hero__glint { left: 46%; width: 240px; }
  .hero__cloud--a { width: 180px; height: 34px; left: 2%; }
  .hero__cloud--b { width: 220px; height: 38px; right: 4%; }
  .hero__waves { top: 60%; height: 22%; }
}
