/* ==========================================================================
   张家口旭泰商贸有限公司 — 企业官网样式
   设计基调：简洁大方 / 国有背景的专业感 + 民生供应链的温度感
   配色：深蓝（信任）+ 青绿（产业）+ 旭日金（品牌点缀）
   说明：纯静态展示页，无数据交互组件
   ========================================================================== */

/* ---------- 1. 变量与基础 ---------- */
:root {
  --navy-900: #062242;
  --navy-800: #082b52;
  --navy-700: #0b3b6f;
  --navy-600: #13508f;
  --navy-500: #1d64ab;
  --navy-100: #e7eef8;
  --navy-050: #f3f7fc;

  --teal-600: #0e8a7c;
  --teal-500: #12a594;
  --teal-400: #4fd1c5;
  --teal-100: #dff5f2;

  --gold-500: #e8a33d;

  --ink-900: #16202f;
  --ink-700: #33415a;
  --ink-500: #5d6b83;
  --ink-300: #93a1b6;

  --line: #e4eaf3;
  --line-soft: #eef2f8;
  --bg: #ffffff;
  --bg-alt: #f6f9fd;

  --radius: 14px;
  --radius-l: 20px;

  --shadow-s: 0 2px 8px rgba(11, 59, 111, .06);
  --shadow: 0 10px 28px rgba(11, 59, 111, .09);
  --shadow-l: 0 22px 56px rgba(11, 59, 111, .16);

  --container: 1200px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans SC",
               "Noto Sans CJK SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-700);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { margin: 0; color: var(--ink-900); line-height: 1.32; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
strong { color: var(--ink-900); font-weight: 700; }
em { font-style: normal; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.ic { width: 1em; height: 1em; flex: none; }

/* ---------- 2. 通用组件 ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .14em;
  color: var(--teal-600); text-transform: uppercase;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--teal-500), var(--gold-500));
}

.h2 { font-size: clamp(24px, 3.1vw, 36px); margin-bottom: 16px; }

.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }

.section-head { max-width: 780px; margin-bottom: 48px; }
.section-sub { font-size: 16.5px; color: var(--ink-500); margin: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px; border: 1px solid transparent;
  font-size: 15px; font-weight: 600; white-space: nowrap;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease),
              background-color .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease);
}
.btn-lg { padding: 15px 32px; font-size: 16px; }

.btn-primary {
  background: linear-gradient(135deg, var(--navy-700), var(--navy-600));
  color: #fff; box-shadow: 0 8px 20px rgba(11, 59, 111, .24);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(11, 59, 111, .32); }

.btn-ghost {
  background: rgba(255, 255, 255, .1); color: #fff;
  border-color: rgba(255, 255, 255, .42); backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .2); transform: translateY(-2px); }

/* 滚动出现动画 */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- 3. 顶部信息条 ---------- */
.topbar { background: var(--navy-900); color: rgba(255, 255, 255, .82); font-size: 12.5px; line-height: 1; }
.topbar-inner { display: flex; align-items: center; gap: 14px; height: 38px; }
.topbar-item { display: inline-flex; align-items: center; gap: 7px; }
.topbar-item .ic { font-size: 14px; color: var(--teal-400); }
.topbar-right { margin-left: auto; }

/* ---------- 4. 导航 ---------- */
.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow .3s var(--ease);
}
.header.is-stuck { box-shadow: 0 6px 24px rgba(11, 59, 111, .08); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 76px; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 12px; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--navy-700), var(--navy-500));
  box-shadow: 0 6px 16px rgba(11, 59, 111, .26);
}
.brand-mark svg { width: 26px; height: 26px; }
.brand-mark svg [stroke] { stroke: #7fe3d6; }
.brand-mark svg [stroke]:last-of-type { stroke: var(--gold-500); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b { font-size: 18px; color: var(--ink-900); letter-spacing: .04em; }
.brand-text i { font-style: normal; font-size: 9.5px; letter-spacing: .22em; color: var(--ink-300); }

.nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav-link {
  position: relative; padding: 9px 14px; border-radius: 8px;
  font-size: 15px; font-weight: 500; color: var(--ink-700);
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav-link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px;
  border-radius: 2px; background: linear-gradient(90deg, var(--teal-500), var(--gold-500));
  transform: scaleX(0); transform-origin: left; transition: transform .28s var(--ease);
}
.nav-link:hover { color: var(--navy-700); background: var(--navy-050); }
.nav-link.is-active { color: var(--navy-700); font-weight: 600; }
.nav-link.is-active::after { transform: scaleX(1); }

.menu-btn {
  display: none; width: 44px; height: 44px; margin-left: auto;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.menu-btn span { width: 18px; height: 2px; border-radius: 2px; background: var(--navy-700); transition: transform .3s var(--ease), opacity .2s var(--ease); }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 5. 首屏 ---------- */
.hero {
  position: relative; overflow: hidden; padding: 96px 0 0;
  background:
    radial-gradient(1100px 560px at 84% 8%, rgba(18, 165, 148, .30), transparent 62%),
    radial-gradient(760px 460px at 4% 92%, rgba(232, 163, 61, .16), transparent 60%),
    linear-gradient(150deg, var(--navy-900) 0%, var(--navy-800) 46%, var(--navy-700) 100%);
  color: #fff;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-net { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; }

.hero-inner { position: relative; padding-bottom: 96px; }
.hero-copy { max-width: 860px; margin: 0 auto; text-align: center; }

.hero-eyebrow {
  display: inline-block; margin-bottom: 22px; padding: 7px 16px;
  border: 1px solid rgba(127, 227, 214, .38); border-radius: 999px;
  background: rgba(127, 227, 214, .1);
  font-size: 13px; letter-spacing: .1em; color: #9ff0e5;
}
.hero-title {
  font-size: clamp(30px, 4.4vw, 54px); line-height: 1.24; color: #fff;
  margin-bottom: 22px; letter-spacing: .01em;
}
.hero-title .hl {
  display: inline-block;
  background: linear-gradient(100deg, #7fe3d6 0%, #ffe0a8 62%, var(--gold-500) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-desc {
  max-width: 720px; margin: 0 auto 32px;
  font-size: 16.5px; line-height: 1.9; color: rgba(255, 255, 255, .8);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-bottom: 34px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.hero-tags li {
  padding: 6px 14px; border-radius: 999px; font-size: 13px;
  color: rgba(255, 255, 255, .78);
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
}

/* 首屏数据条 */
.hero-stats {
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line);
  border-radius: var(--radius-l) var(--radius-l) 0 0; overflow: hidden;
  box-shadow: 0 -14px 40px rgba(3, 18, 36, .28);
  transform: translateY(1px);
}
.stat { background: #fff; padding: 30px 26px 32px; }
.stat b { display: flex; align-items: baseline; gap: 4px; font-size: 34px; line-height: 1.1; color: var(--navy-700); font-weight: 800; }
.stat b i { font-size: 14px; font-weight: 600; color: var(--ink-500); }
.stat > span { display: block; margin-top: 8px; font-size: 13.5px; color: var(--ink-500); }

/* ---------- 6. 关于我们 ---------- */
.about-main { max-width: 920px; }
.about-main p { font-size: 16.5px; line-height: 1.95; }

.about-points { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 44px; }
.ap {
  display: flex; gap: 14px; padding: 22px;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.ap:hover { transform: translateY(-3px); border-color: var(--teal-400); box-shadow: var(--shadow); }
.ap-ic {
  width: 40px; height: 40px; flex: none; border-radius: 10px; display: grid; place-items: center;
  background: var(--teal-100); color: var(--teal-600); font-size: 20px;
}
.ap b { display: block; font-size: 15.5px; color: var(--ink-900); margin-bottom: 4px; }
.ap p { margin: 0; font-size: 14px; color: var(--ink-500); line-height: 1.7; }

/* ---------- 7. 业务板块 ---------- */
.cards { display: grid; gap: 22px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }

.biz {
  position: relative; padding: 32px 28px 28px; border-radius: var(--radius-l);
  background: #fff; border: 1px solid var(--line); overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.biz::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px;
  background: linear-gradient(90deg, var(--navy-600), var(--teal-500), var(--gold-500));
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.biz:hover { transform: translateY(-6px); box-shadow: var(--shadow-l); border-color: transparent; }
.biz:hover::before { transform: scaleX(1); }
.biz-ic {
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 20px;
  border-radius: 14px; background: var(--navy-050); color: var(--navy-600);
  transition: background .3s var(--ease), color .3s var(--ease);
}
.biz-ic svg { width: 26px; height: 26px; }
.biz:hover .biz-ic { background: var(--navy-700); color: #fff; }
.biz h3 { font-size: 19px; margin-bottom: 12px; }
.biz p { font-size: 14.5px; line-height: 1.85; color: var(--ink-500); margin-bottom: 18px; }
.biz-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.biz-tags li {
  padding: 4px 11px; border-radius: 6px; font-size: 12.5px;
  color: var(--navy-600); background: var(--navy-050); border: 1px solid var(--line);
}

/* ---------- 8. 重点项目 ---------- */
.proj { display: grid; grid-template-columns: .92fr 1.08fr; gap: 52px; align-items: start; }

.proj-visual {
  padding: 28px; border-radius: var(--radius-l);
  background: linear-gradient(160deg, var(--navy-900), var(--navy-700));
  color: #fff; box-shadow: var(--shadow-l);
}
.pv-head { margin-bottom: 22px; }
.pv-title { display: block; font-size: 17px; font-weight: 700; color: #fff; }
.pv-sub { font-size: 13px; color: rgba(255, 255, 255, .58); }
.pv-stack { display: grid; gap: 10px; }
.pv-layer {
  display: flex; align-items: center; gap: 14px;
  padding: 15px 18px; border-radius: 12px; font-size: 14.5px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .88);
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.pv-layer:hover { background: rgba(255, 255, 255, .13); transform: translateX(5px); }
.pv-k {
  flex: none; width: 56px; font-size: 11.5px; text-align: center;
  padding: 3px 0; border-radius: 6px; letter-spacing: .06em;
  background: rgba(79, 209, 197, .22); color: #9ff0e5;
}
.pv-l2 .pv-k { background: rgba(255, 255, 255, .16); color: #fff; }
.pv-l3 .pv-k { background: rgba(232, 163, 61, .22); color: #ffd89b; }
.pv-l4 .pv-k { background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .8); }
.proj-list { display: grid; gap: 16px; }
.pl {
  display: flex; gap: 20px; padding: 24px 26px;
  border-radius: var(--radius); background: #fff;
  border: 1px solid var(--line); border-left: 3px solid var(--navy-600);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-left-color .28s var(--ease);
}
.pl:hover { transform: translateX(6px); box-shadow: var(--shadow); border-left-color: var(--teal-500); }
.pl-no {
  flex: none; font-size: 22px; font-weight: 800; line-height: 1.2;
  color: transparent; background: linear-gradient(140deg, var(--navy-600), var(--teal-500));
  -webkit-background-clip: text; background-clip: text;
}
.pl h3 { font-size: 17px; margin-bottom: 8px; }
.pl p { margin: 0; font-size: 14.5px; line-height: 1.85; color: var(--ink-500); }

/* ---------- 9. 核心优势 ---------- */
.adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.adv {
  padding: 32px 26px; border-radius: var(--radius-l);
  background: #fff; border: 1px solid var(--line);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.adv:hover { transform: translateY(-6px); box-shadow: var(--shadow-l); }
.adv-no {
  display: block; font-size: 30px; font-weight: 800; line-height: 1; margin-bottom: 16px;
  color: transparent; background: linear-gradient(140deg, var(--navy-600), var(--teal-500));
  -webkit-background-clip: text; background-clip: text; opacity: .85;
}
.adv h3 { font-size: 17.5px; margin-bottom: 10px; }
.adv p { margin: 0; font-size: 14.5px; line-height: 1.85; color: var(--ink-500); }

/* ---------- 10. 集团背景 ---------- */
.group { background: linear-gradient(180deg, #fff, var(--navy-050)); }
.group-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.group-copy p { font-size: 16.5px; line-height: 1.95; }
.group-note {
  padding: 18px 22px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line);
  border-left: 3px solid var(--gold-500);
  font-size: 15.5px !important; color: var(--ink-700) !important;
  box-shadow: var(--shadow-s);
}
.group-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.gf {
  padding: 22px 20px; border-radius: var(--radius); background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow-s);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}
.gf:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.gf b {
  display: block; font-size: 27px; line-height: 1.1; font-weight: 800;
  color: transparent; background: linear-gradient(140deg, var(--navy-700), var(--teal-500));
  -webkit-background-clip: text; background-clip: text;
}
.gf span { display: block; margin-top: 6px; font-size: 13px; color: var(--ink-500); line-height: 1.6; }

/* ---------- 11. 联系我们 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ci {
  display: flex; gap: 16px; padding: 26px 28px;
  border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.ci:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--navy-100); }
.ci-ic {
  width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center;
  background: var(--navy-050); color: var(--navy-600); font-size: 21px;
}
.ci b { display: block; font-size: 15.5px; color: var(--ink-900); margin-bottom: 5px; }
.ci p { margin: 0; font-size: 15px; color: var(--ink-700); line-height: 1.7; }
.ci em { font-size: 12.5px; color: var(--ink-300); }

/* ---------- 12. 页脚 ---------- */
.footer { background: var(--navy-900); color: rgba(255, 255, 255, .66); padding: 68px 0 0; }
.footer-inner {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.25fr;
  gap: 44px; padding-bottom: 48px;
}
.brand-light .brand-mark { background: rgba(255, 255, 255, .1); box-shadow: none; }
.brand-light .brand-text b { color: #fff; font-size: 17px; }
.brand-light .brand-text i { color: rgba(255, 255, 255, .42); }
.f-desc { margin: 18px 0 0; font-size: 14px; line-height: 1.85; color: rgba(255, 255, 255, .58); max-width: 330px; }
.f-col h4 { font-size: 15px; color: #fff; margin-bottom: 18px; }
.f-col a { display: block; padding: 5px 0; font-size: 14px; transition: color .2s var(--ease), padding-left .2s var(--ease); }
.f-col a:hover { color: var(--teal-400); padding-left: 5px; }
.f-col p { margin: 0 0 10px; font-size: 14px; line-height: 1.8; }

.footer-bottom {
  padding: 22px 24px 26px; border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex; flex-wrap: wrap; gap: 8px 26px;
  align-items: center; justify-content: center; text-align: center;
}
.footer-bottom p { margin: 0; font-size: 13px; color: rgba(255, 255, 255, .5); }
.icp-link, .police-link {
  font-size: 13px; color: rgba(255, 255, 255, .5);
  transition: color .2s var(--ease);
}
.police-link { display: inline-flex; align-items: center; gap: 6px; }
.police-badge { height: 16px; width: auto; flex: none; }
.icp-link:hover, .police-link:hover { color: var(--teal-400); }

/* ---------- 13. 返回顶部 ---------- */
.totop {
  position: fixed; right: 26px; bottom: 26px; z-index: 50;
  width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--line);
  background: #fff; color: var(--navy-700); box-shadow: var(--shadow);
  display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s, background-color .25s var(--ease), color .25s var(--ease);
}
.totop.is-show { opacity: 1; visibility: visible; transform: none; }
.totop:hover { background: var(--navy-700); color: #fff; }
.totop svg { width: 22px; height: 22px; }

/* ---------- 14. 响应式 ---------- */
@media (max-width: 1080px) {
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .about-points { grid-template-columns: repeat(2, 1fr); }
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .proj, .group-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 860px) {
  .section { padding: 72px 0; }
  .menu-btn { display: flex; }
  .nav {
    position: fixed; inset: 114px 0 auto; flex-direction: column; align-items: stretch; gap: 2px;
    margin: 0; padding: 18px 24px 26px;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(11, 59, 111, .12);
    max-height: calc(100vh - 114px); overflow-y: auto;
    transform: translateY(-14px); opacity: 0; visibility: hidden;
    transition: transform .3s var(--ease), opacity .3s var(--ease), visibility .3s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav-link { padding: 13px 12px; font-size: 16px; border-radius: 10px; }
  .nav-link::after { display: none; }
  .nav-link.is-active { background: var(--navy-050); }
  .hero { padding-top: 72px; }
  .hero-inner { padding-bottom: 72px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 24px 20px 26px; }
  .stat b { font-size: 28px; }
  .contact-grid { grid-template-columns: 1fr; }
  .group-facts { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .container { padding: 0 18px; }
  .header-inner { height: 66px; }
  .nav { inset: 104px 0 auto; max-height: calc(100vh - 104px); }
  .brand-text b { font-size: 16px; }
  .hero { padding: 52px 0 0; }
  .hero-inner { padding-bottom: 56px; }
  .hero-title { font-size: 28px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .cards-3, .about-points, .adv-grid, .group-facts, .footer-inner { grid-template-columns: 1fr; }
  .hero-stats { border-radius: var(--radius) var(--radius) 0 0; }
  .footer-bottom { justify-content: center; }
  .totop { right: 16px; bottom: 16px; }
}

/* ---------- 15. 动效降级 / 打印 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .header, .topbar, .totop, .hero-actions { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  body { color: #000; }
}
