/* ==========================================================================
   广州市石磐石科技有限公司 · 官方网站
   style.css — 全站样式（纯静态，无外部依赖）
   ========================================================================== */

/* ---------- 1. 设计变量 ---------- */
:root {
  /* 品牌色 */
  --navy-900: #061a2e;
  --navy-800: #0a2540;
  --navy-700: #103754;
  --navy-600: #17496b;
  --blue-500: #1e6fa8;
  --blue-400: #2f8fc4;
  --cyan-300: #6fc3e8;
  --green-600: #0e8f52;
  --green-500: #12a05c;
  --green-400: #35b87a;

  /* 中性色 */
  --ink: #16222e;
  --ink-2: #46586a;
  --ink-3: #7b8b9b;
  --line: #e2e9ef;
  --line-2: #eef3f7;
  --bg: #ffffff;
  --bg-soft: #f5f8fb;
  --bg-soft-2: #eef4f9;

  /* 排版 */
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans CN",
    "Noto Sans CJK SC", "WenQuanYi Micro Hei", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-en: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* 尺寸 */
  --wrap: 1200px;
  --wrap-narrow: 960px;
  --radius: 4px;
  --radius-lg: 10px;
  --header-h: 76px;

  --shadow-s: 0 1px 3px rgba(10, 37, 64, 0.06);
  --shadow-m: 0 6px 24px rgba(10, 37, 64, 0.08);
  --shadow-l: 0 16px 48px rgba(10, 37, 64, 0.12);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --grad: linear-gradient(120deg, var(--navy-700) 0%, var(--blue-500) 55%, var(--green-500) 130%);
}

/* ---------- 2. 基础重置 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; border: 0; }
a { color: inherit; text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--blue-500); }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 600; line-height: 1.35; letter-spacing: .01em; }
p { margin: 0 0 1em; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
:focus-visible { outline: 2px solid var(--blue-400); outline-offset: 3px; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* 语言切换：默认中文，data-lang 控制语言专属区块 */
body.lang-en [data-lang="zh"] { display: none !important; }
body:not(.lang-en) [data-lang="en"] { display: none !important; }

/* ---------- 3. 顶部信息条 ---------- */
.topbar {
  background: var(--navy-900);
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
  line-height: 38px;
  letter-spacing: .02em;
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar a { color: rgba(255, 255, 255, .78); }
.topbar a:hover { color: #fff; }
.topbar-left { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.topbar-left .tb-item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.topbar-left svg { width: 13px; height: 13px; fill: var(--cyan-300); flex: none; }
.lang-switch { display: flex; align-items: center; gap: 8px; font-family: var(--font-en); }
.lang-switch button {
  color: rgba(255, 255, 255, .6); font-size: 13px; letter-spacing: .04em;
  padding: 0 2px; transition: color .2s;
}
.lang-switch button.is-active { color: #fff; font-weight: 600; }
.lang-switch .sep { color: rgba(255, 255, 255, .28); }

/* ---------- 4. 站头 / 导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line-2);
  transition: box-shadow .3s var(--ease);
}
.site-header.is-stuck { box-shadow: 0 4px 20px rgba(10, 37, 64, .07); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; height: var(--header-h);
}

/* Logo */
.logo { display: flex; align-items: center; gap: 12px; flex: none; }
.logo-mark { width: 42px; height: 42px; flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-cn { font-size: 19px; font-weight: 700; color: var(--navy-800); letter-spacing: .06em; }
.logo-en {
  font-family: var(--font-en); font-size: 10px; letter-spacing: .17em;
  color: var(--ink-3); text-transform: uppercase;
}
/* 英文模式：隐藏中文名，英文名升为主名 */
body.lang-en .logo-cn { display: none; }
body.lang-en .logo-en {
  font-size: 17px; font-weight: 700; letter-spacing: .06em; color: var(--navy-800);
}
body.lang-en .footer-brand .logo-en { color: #fff; }

/* 主导航 */
.nav { display: flex; align-items: center; gap: 2px; }
.nav > li { position: relative; }
.nav > li > a {
  display: block; padding: 0 17px; height: var(--header-h); line-height: var(--header-h);
  font-size: 15.5px; color: var(--ink-2); position: relative; white-space: nowrap;
}
.nav > li > a::after {
  content: ""; position: absolute; left: 17px; right: 17px; bottom: 20px; height: 2px;
  background: var(--green-500); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav > li > a:hover { color: var(--navy-700); }
.nav > li > a:hover::after,
.nav > li.is-active > a::after { transform: scaleX(1); }
.nav > li.is-active > a { color: var(--navy-800); font-weight: 600; }

/* 下拉 */
.sub {
  position: absolute; top: 100%; left: 50%; transform: translate(-50%, 8px);
  min-width: 178px; background: #fff; border: 1px solid var(--line-2);
  border-radius: var(--radius); box-shadow: var(--shadow-m);
  padding: 8px 0; opacity: 0; visibility: hidden; transition: all .26s var(--ease);
  z-index: 5;
}
.nav > li:hover .sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.sub a {
  display: block; padding: 9px 20px; font-size: 14.5px; color: var(--ink-2);
  white-space: nowrap;
}
.sub a:hover { background: var(--bg-soft); color: var(--blue-500); }

/* 汉堡按钮 */
.nav-toggle {
  display: none; width: 44px; height: 44px; flex: none;
  align-items: center; justify-content: center;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--navy-700); position: relative;
  transition: background .2s;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 22px; height: 2px;
  background: var(--navy-700); transition: transform .3s var(--ease);
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 5. 通用区块 ---------- */
.section { padding: 92px 0; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding: 68px 0; }
.section--dark { background: var(--navy-900); color: rgba(255, 255, 255, .82); }

.sec-head { margin-bottom: 48px; }
.sec-head--center { text-align: center; max-width: 760px; margin-left: auto; margin-right: auto; }
.kicker {
  display: inline-block; font-family: var(--font-en); font-size: 12px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--green-600);
  margin-bottom: 14px; position: relative; padding-left: 30px;
}
.kicker::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 20px; height: 1px;
  background: var(--green-500);
}
.sec-head--center .kicker { padding-left: 0; }
.sec-head--center .kicker::before { display: none; }
.sec-title { font-size: 34px; color: var(--navy-800); letter-spacing: .02em; }
.sec-sub { margin-top: 16px; color: var(--ink-2); font-size: 16px; }
.section--dark .sec-title { color: #fff; }
.section--dark .sec-sub { color: rgba(255, 255, 255, .66); }

.sec-head--split {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  flex-wrap: wrap;
}

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 30px; font-size: 15px; border-radius: var(--radius);
  transition: all .28s var(--ease); white-space: nowrap;
}
.btn svg { width: 15px; height: 15px; fill: currentColor; flex: none; }
.btn-primary { background: var(--green-500); color: #fff; }
.btn-primary:hover { background: var(--green-600); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(14, 143, 82, .26); }
.btn-ghost { border: 1px solid rgba(255, 255, 255, .5); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; }
.btn-line { border: 1px solid var(--line); color: var(--navy-700); }
.btn-line:hover { border-color: var(--blue-500); color: var(--blue-500); background: #fff; }

/* 链接箭头 */
.more { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--blue-500); }
.more svg { width: 14px; height: 14px; fill: currentColor; transition: transform .28s var(--ease); }
.more:hover svg { transform: translateX(5px); }

/* ---------- 6. 首页 Hero ---------- */
.hero {
  position: relative; min-height: 620px; display: flex; align-items: center;
  background: var(--navy-900); overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .42; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(6, 26, 46, .95) 0%, rgba(10, 37, 64, .82) 45%, rgba(10, 37, 64, .42) 100%);
}
.hero .wrap { position: relative; z-index: 2; padding-top: 84px; padding-bottom: 84px; }
.hero-inner { max-width: 720px; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: .16em;
  color: var(--cyan-300); text-transform: uppercase; font-family: var(--font-en);
  margin-bottom: 22px;
}
.hero-tag::before { content: ""; width: 34px; height: 1px; background: var(--green-400); }
.hero h1 {
  font-size: 48px; line-height: 1.24; color: #fff; letter-spacing: .02em; margin-bottom: 22px;
}
.hero h1 em { font-style: normal; color: var(--green-400); }
.hero p { font-size: 17px; color: rgba(255, 255, 255, .76); max-width: 620px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero 数据条 */
.hero-stats {
  position: relative; z-index: 2;
  background: rgba(255, 255, 255, .05);
  border-top: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(6px);
}
.hero-stats .wrap {
  display: grid; grid-template-columns: repeat(4, 1fr); padding-top: 32px; padding-bottom: 32px;
}
.hero-stats .hs-item { text-align: center; padding: 0 12px; border-right: 1px solid rgba(255, 255, 255, .1); }
.hero-stats .hs-item:last-child { border-right: 0; }
.hero-stats .hs-num {
  font-family: var(--font-en); font-size: 38px; font-weight: 700; color: #fff; line-height: 1.1;
  letter-spacing: .01em;
}
.hero-stats .hs-num small { font-size: 17px; font-weight: 600; margin-left: 3px; color: var(--green-400); }
.hero-stats .hs-label { font-size: 13.5px; color: rgba(255, 255, 255, .62); margin-top: 6px; }

/* ---------- 7. 页面内页头 ---------- */
.page-hero {
  position: relative; background: var(--navy-800); color: #fff;
  padding: 72px 0 64px; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 380px; height: 380px;
  border-radius: 50%; background: radial-gradient(circle, rgba(53, 184, 122, .22), transparent 68%);
}
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 { font-size: 36px; color: #fff; margin-bottom: 12px; }
.page-hero p { color: rgba(255, 255, 255, .66); font-size: 16px; margin: 0; max-width: 760px; }
.crumb { font-size: 13px; color: rgba(255, 255, 255, .5); margin-top: 20px; }
.crumb a { color: rgba(255, 255, 255, .68); }
.crumb a:hover { color: #fff; }
.crumb span { margin: 0 8px; opacity: .5; }

/* ---------- 8. 关于我们（首页摘要） ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.about-body p { color: var(--ink-2); font-size: 16px; }
.about-body .lead { font-size: 17px; color: var(--ink); }
.about-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 30px; }
.fact {
  border-left: 3px solid var(--green-500); padding: 4px 0 4px 16px;
}
.fact b { display: block; font-family: var(--font-en); font-size: 26px; color: var(--navy-700); line-height: 1.2; }
.fact span { font-size: 13.5px; color: var(--ink-3); }
.about-media { position: relative; }
.about-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-l); width: 100%; }
.about-media .badge {
  position: absolute; left: -20px; bottom: 28px; background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-m); padding: 18px 24px; border-left: 4px solid var(--green-500);
}
.about-media .badge b { display: block; font-size: 15px; color: var(--navy-800); }
.about-media .badge span { font-size: 12.5px; color: var(--ink-3); }

/* ---------- 9. 卡片网格 ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius-lg);
  padding: 34px 30px; transition: all .32s var(--ease); position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: var(--grad); transform: scaleX(0); transform-origin: left;
  transition: transform .38s var(--ease);
}
.card:hover { box-shadow: var(--shadow-m); transform: translateY(-4px); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card-icon {
  width: 52px; height: 52px; border-radius: var(--radius); display: flex;
  align-items: center; justify-content: center; margin-bottom: 22px;
  background: var(--bg-soft-2);
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 20px; color: var(--navy-800); margin-bottom: 12px; }
.card p { color: var(--ink-2); font-size: 15px; margin-bottom: 0; }
.card .card-tags { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 12.5px; color: var(--blue-500); background: var(--bg-soft-2);
  padding: 4px 11px; border-radius: 100px;
  /* 标签必须整体换行，不能在标签内部断开：
     flex 项的 min-width:auto 对中文而言最小内容宽只有 1 个字，
     放不下时浏览器不把标签整体挪到下一行，而是把它压窄后从字缝里断行，
     出现「钙钛矿/薄膜」「AI 服务/器」这种半截换行。 */
  white-space: nowrap;
  flex: 0 0 auto;
}

/* 业务板块卡（带图） */
.biz-card {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line-2); transition: all .34s var(--ease); display: flex;
  flex-direction: column;
}
.biz-card:hover { box-shadow: var(--shadow-l); transform: translateY(-5px); }
.biz-card-img { height: 186px; overflow: hidden; position: relative; background: var(--navy-800); }
.biz-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.biz-card:hover .biz-card-img img { transform: scale(1.06); }
.biz-card-no {
  position: absolute; left: 18px; top: 16px; font-family: var(--font-en); font-size: 12px;
  letter-spacing: .14em; color: #fff; background: rgba(6, 26, 46, .55);
  padding: 3px 10px; border-radius: 100px; backdrop-filter: blur(4px);
}
.biz-card-body { padding: 26px 26px 30px; flex: 1; display: flex; flex-direction: column; }
/* 卡片的「公司名」绿色小字（<p class="ent">）已按需求整体移除，
   标题与描述之间的间距改由 h3 自己给足（原来是 h3 的 8px + 公司名的 12px）。 */
.biz-card-body h3 { font-size: 19px; color: var(--navy-800); margin-bottom: 14px; }
/* 只作用于「描述段落」。若写成 `.biz-card-body p`，会连辅助小段落（如原来的公司名）一起选中，
   两段都拿到 flex:1 去平分剩余高度 → 段落被撑高、卡片中部出现整块空洞（曾踩过这个坑）。
   这里用 :not() 兜住，避免以后再加回小段落时复发。 */
.biz-card-body p:not(.ent) { font-size: 14.5px; color: var(--ink-2); margin-bottom: 18px; flex: 0 0 auto; }

/* ---------- 10. 应用领域 ---------- */
.app-item {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  padding: 46px 0; border-bottom: 1px solid var(--line);
}
.app-item:last-child { border-bottom: 0; }
.app-item:nth-child(even) .app-media { order: -1; }
.app-media img { border-radius: var(--radius-lg); width: 100%; box-shadow: var(--shadow-m); }
.app-idx {
  font-family: var(--font-en); font-size: 13px; font-weight: 700; letter-spacing: .18em;
  color: var(--green-600); margin-bottom: 12px; display: block;
}
.app-body h3 { font-size: 26px; color: var(--navy-800); margin-bottom: 14px; }
/* 原「公司名」绿色小字（.app-body .ent）已按需求整体移除 */
.app-body p { color: var(--ink-2); font-size: 15.5px; }

/* 应用领域卡（首页四宫格，带图） */
.app-card {
  background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius-lg);
  overflow: hidden; transition: all .34s var(--ease); display: flex; flex-direction: column;
}
.app-card:hover { box-shadow: var(--shadow-l); transform: translateY(-5px); }
.app-card-img { height: 168px; overflow: hidden; background: var(--navy-800); }
.app-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.app-card:hover .app-card-img img { transform: scale(1.06); }
.app-card-body { padding: 22px 24px 26px; flex: 1; }
.app-card-body h3 { font-size: 17.5px; color: var(--navy-800); margin-bottom: 10px; }
.app-card-body p { font-size: 14.5px; color: var(--ink-2); margin: 0; }
.app-points { margin-top: 20px; display: grid; gap: 10px; }
/* 标签与上面的要点列表之间留出呼吸位。
   注：`.card-tags` 的 margin-top 只定义在 `.card` 下，`.app-body` 里原本是 0px（标签贴着列表），
   与首页业务卡的 18px 不一致，这里补齐。 */
.app-body .card-tags { margin-top: 18px; }
.app-points li {
  position: relative; padding-left: 20px; font-size: 14.5px; color: var(--ink-2);
}
.app-points li::before {
  content: ""; position: absolute; left: 0; top: 11px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--green-500); opacity: .8;
}

/* ---------- 11. 生产基地 / 地图 ---------- */
.map-panel { background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow-s); }
.map-panel svg,
.map-panel img { width: 100%; height: auto; display: block; }
.map-legend {
  display: flex; flex-wrap: wrap; gap: 20px; padding: 16px 8px 4px;
  border-top: 1px solid var(--line-2); margin-top: 12px;
}
.map-legend .lg-item { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); }
.map-legend .dot { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.dot--hq { background: #d64545; }
.dot--base { background: var(--green-500); }
.dot--oversea { background: var(--blue-500); }
.map-legend .dot--hq { box-shadow: 0 0 0 4px rgba(214, 69, 69, .16); }

.base-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 34px; margin-top: 34px; }
.base-row {
  display: flex; gap: 14px; align-items: baseline; padding: 11px 0;
  border-bottom: 1px dashed var(--line);
}
.base-row dt {
  font-size: 14.5px; font-weight: 600; color: var(--navy-700); white-space: nowrap;
  min-width: 88px; margin: 0;
}
.base-row dd { margin: 0; font-size: 14.5px; color: var(--ink-2); }

.base-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 42px; }
.base-gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--navy-800); }
.base-gallery img { width: 100%; height: 210px; object-fit: cover; transition: transform .7s var(--ease); }
.base-gallery figure:hover img { transform: scale(1.05); }
.base-gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 16px 12px;
  font-size: 13.5px; color: #fff;
  background: linear-gradient(transparent, rgba(6, 26, 46, .82));
}

/* ---------- 12. 新闻 ---------- */
.news-list { display: grid; gap: 0; }
.news-item {
  display: grid; grid-template-columns: 96px 1fr auto; gap: 26px; align-items: center;
  padding: 26px 0; border-bottom: 1px solid var(--line);
  transition: all .28s var(--ease);
}
.news-item:hover { padding-left: 12px; }
.news-item:hover .news-title { color: var(--blue-500); }
.news-date {
  font-family: var(--font-en); text-align: center; border-right: 1px solid var(--line);
  padding-right: 24px;
}
.news-date b { display: block; font-size: 26px; color: var(--navy-700); line-height: 1.1; }
.news-date span { font-size: 12.5px; color: var(--ink-3); letter-spacing: .06em; }
.news-title { font-size: 17px; color: var(--navy-800); margin-bottom: 6px; transition: color .25s; }
.news-desc { font-size: 14px; color: var(--ink-2); margin: 0; }
.news-arrow { color: var(--ink-3); }
.news-arrow svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- 13. 联系我们 ---------- */
/* 联系页的卡片组。
   原来固定两栏，现在是「集团总部」单卡 —— 若仍写死 1fr 1fr，卡片会只占左半边。
   改用 auto-fit：单卡时占满整行（再由下面的 max-width 收窄居中），将来加回第二张卡也能自动变两栏。 */
.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 46px; align-items: stretch;
}
.contact-grid > .info-card { width: 100%; max-width: 760px; margin: 0 auto; }
.info-card {
  background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius-lg);
  padding: 34px 32px; box-shadow: var(--shadow-s);
}
.info-card h3 {
  font-size: 19px; color: var(--navy-800); margin-bottom: 22px; padding-bottom: 14px;
  border-bottom: 1px solid var(--line-2); display: flex; align-items: center; gap: 10px;
}
.info-card h3 svg { width: 19px; height: 19px; fill: var(--green-500); flex: none; }
.info-list li { display: flex; gap: 14px; padding: 11px 0; font-size: 15px; }
.info-list .k {
  color: var(--ink-3); min-width: 62px; flex: none; font-size: 14px;
}
.info-list .v { color: var(--ink); }
.info-list .v a { color: var(--blue-500); }
.info-list .v strong { font-weight: 600; color: var(--navy-700); }
.map-embed {
  margin-top: 22px; border: 1px solid var(--line-2); border-radius: var(--radius);
  overflow: hidden; background: var(--bg-soft); height: 300px; position: relative;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-fallback {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 12px; text-align: center; padding: 24px;
  color: var(--ink-2); font-size: 14px; background: var(--bg-soft);
}
.map-fallback svg { width: 34px; height: 34px; fill: var(--ink-3); }

/* 办公地址静态位置图（高德底图截图，无交互） */
.office-map {
  margin-top: 22px; border: 1px solid var(--line-2); border-radius: var(--radius);
  overflow: hidden; background: #fff;
}
.office-map img { width: 100%; height: auto; display: block; }
.office-map figcaption {
  padding: 11px 16px; font-size: 13.5px; color: var(--ink-2);
  background: var(--bg-soft); border-top: 1px solid var(--line-2);
}

/* 表格 */
.table-wrap { overflow-x: auto; margin-top: 30px; }
table.simple { width: 100%; border-collapse: collapse; font-size: 14.5px; background: #fff; }
table.simple th, table.simple td {
  padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line-2);
}
table.simple thead th {
  background: var(--bg-soft-2); color: var(--navy-700); font-weight: 600;
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.simple tbody tr:hover { background: var(--bg-soft); }
table.simple td { color: var(--ink-2); }
table.simple td:first-child { color: var(--ink); font-weight: 500; white-space: nowrap; }

/* 资质/经营范围 */
.scope-box {
  background: #fff; border: 1px solid var(--line-2); border-left: 3px solid var(--green-500);
  border-radius: var(--radius); padding: 22px 26px; font-size: 14px; color: var(--ink-2);
  line-height: 1.9; margin-top: 26px;
}
.scope-box b { color: var(--navy-700); display: block; margin-bottom: 6px; font-size: 15px; }

/* ---------- 14. CTA 条 ---------- */
.cta {
  background: var(--grad); color: #fff; padding: 62px 0;
  position: relative; overflow: hidden;
}
.cta::after {
  content: ""; position: absolute; right: -60px; bottom: -120px; width: 420px; height: 420px;
  border-radius: 50%; background: rgba(255, 255, 255, .07);
}
.cta .wrap { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta h3 { font-size: 27px; color: #fff; margin-bottom: 8px; }
.cta p { margin: 0; color: rgba(255, 255, 255, .8); font-size: 15.5px; }

/* ---------- 15. 页脚 ---------- */
.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, .62); padding: 66px 0 0; font-size: 14px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 46px; }
.footer-brand .logo-cn { color: #fff; }
.footer-brand .logo-en { color: rgba(255, 255, 255, .42); }
.footer-brand p { margin: 20px 0 0; font-size: 13.5px; line-height: 1.9; color: rgba(255, 255, 255, .5); max-width: 300px; }
.footer-col h4 {
  color: #fff; font-size: 15.5px; margin-bottom: 20px; letter-spacing: .04em;
}
.footer-col li { margin-bottom: 11px; }
.footer-col a { color: rgba(255, 255, 255, .6); font-size: 14px; }
.footer-col a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 14px; font-size: 14px; line-height: 1.7; }
.footer-contact svg { width: 15px; height: 15px; fill: var(--green-400); flex: none; margin-top: 5px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1); padding: 22px 0;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: rgba(255, 255, 255, .42);
}
.footer-bottom a { color: rgba(255, 255, 255, .55); }

/* 回到顶部 */
.to-top {
  position: fixed; right: 26px; bottom: 26px; width: 46px; height: 46px; z-index: 90;
  background: var(--navy-700); border-radius: 50%; display: flex; align-items: center;
  justify-content: center; opacity: 0; visibility: hidden; transition: all .3s var(--ease);
  box-shadow: var(--shadow-m);
}
.to-top.is-on { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--green-500); }
.to-top svg { width: 18px; height: 18px; fill: #fff; }

/* ---------- 16. 滚动动画 ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 17. 响应式 ---------- */
@media (max-width: 1080px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 34px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .base-gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  /* 手机端：汉堡靠最右。
     站头 flex 的三个子元素是 logo / 按钮 / 外层 <nav>（内层 <ul class="nav"> 才是 fixed 的那个）。
     外层 <nav> 在文档流里占一个 0 宽的槽位，既会把按钮挤到中间（space-between），
     又会在按钮右侧留下一份 20px 的 flex gap。这里让它脱离文档流即可，同时保留其导航地标语义。 */
  .nav-toggle { display: flex; margin-left: auto; margin-right: -11px; }
  .site-header .wrap > nav { position: absolute; }
  .nav {
    position: fixed; top: var(--header-h); right: 0; bottom: auto; left: 0;
    height: calc(100dvh - var(--header-h));
    background: #fff; flex-direction: column;
    align-items: stretch; gap: 0; padding: 12px 0 40px; overflow-y: auto;
    transform: translateX(100%); transition: transform .36s var(--ease);
  }
  body.nav-open .nav { transform: none; }
  .nav > li > a {
    height: auto; line-height: 1.4; padding: 15px 24px; font-size: 16.5px;
    border-bottom: 1px solid var(--line-2);
  }
  .nav > li > a::after { display: none; }
  .sub {
    position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none;
    border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0; padding: 0;
    background: var(--bg-soft);
  }
  .sub a { padding: 12px 40px; }
  /* 手机端子菜单是常显的静态块，但桌面端 `.nav > li:hover .sub`（权重 0,3,1）比上面的
     `.sub`（0,1,0）更高，指针一移入就会应用 translate(-50%,0)，把整块子菜单左移自身
     一半宽度，文字直接飘出可视区。这里用同权重 + 后置的顺序覆盖掉它。
     （触屏上 :hover 还会「粘住」不释放，所以必须显式关掉，不能只靠离开时复位。） */
  .nav > li:hover .sub { transform: none; }
  .hero h1 { font-size: 33px; }
  .hero { min-height: 540px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .app-item { grid-template-columns: 1fr; gap: 26px; padding: 34px 0; }
  .app-item:nth-child(even) .app-media { order: 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .base-groups { grid-template-columns: 1fr; }
  .section { padding: 66px 0; }
  .sec-title { font-size: 27px; }
}

@media (max-width: 680px) {
  body { font-size: 15.5px; }
  .topbar-left .tb-item.hide-sm { display: none; }
  .hero-stats .wrap { grid-template-columns: repeat(2, 1fr); gap: 22px 0; }
  .hero-stats .hs-item:nth-child(2) { border-right: 0; }
  .hero-stats .hs-num { font-size: 30px; }
  .grid-2, .grid-3, .grid-4, .base-gallery, .about-facts { grid-template-columns: 1fr; }
  .news-item { grid-template-columns: 1fr; gap: 10px; }
  .news-date { border-right: 0; text-align: left; padding: 0; display: flex; align-items: baseline; gap: 8px; }
  .news-date b { font-size: 19px; }
  .news-arrow { display: none; }
  .footer-top { grid-template-columns: 1fr; }
  .hero h1 { font-size: 27px; }
  .page-hero h1 { font-size: 27px; }
  .section { padding: 54px 0; }
  .card { padding: 26px 22px; }
  .about-media .badge { left: 12px; bottom: 12px; padding: 12px 16px; }
  .to-top { right: 16px; bottom: 16px; }
  .cta h3 { font-size: 22px; }
}

/* ---------- 18. 打印 ---------- */
@media print {
  .topbar, .site-header, .to-top, .cta, .nav-toggle { display: none; }
  body { color: #000; }
  a { color: #000; }
}
