/* ============================================================
   杭州凯耐自动化设备有限公司 · 官网样式
   风格：简约大气 / 工业蓝灰 · 大留白 · 强排版层级
   ============================================================ */

:root {
  --ink: #0e1721;
  --ink-2: #3d4b5a;
  --ink-3: #6b7a8a;
  --line: #e3e8ee;
  --line-2: #eef2f6;
  --bg: #ffffff;
  --bg-soft: #f7f9fb;
  --brand: #14507a;
  --brand-dark: #0c3a5c;
  --brand-soft: #e8f1f8;
  --accent: #e8871a;
  --white: #ffffff;

  --max: 1240px;
  --radius: 4px;
  --shadow-sm: 0 1px 3px rgba(14, 23, 33, .06);
  --shadow-md: 0 8px 30px rgba(14, 23, 33, .09);
  --shadow-lg: 0 20px 60px rgba(14, 23, 33, .14);

  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; border: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, p, figure { margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }

img { -webkit-user-drag: none; user-select: none; }

/* ---------- 布局 ---------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding: 64px 0; }

/* ---------- 顶部条 ---------- */
.topbar {
  background: var(--ink);
  color: #9fb0c0;
  font-size: 13px;
  letter-spacing: .02em;
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 38px; }
.topbar__links { display: flex; align-items: center; gap: 22px; }
.topbar__links a:hover { color: var(--white); }
.topbar__tel { color: var(--white); font-weight: 600; letter-spacing: .04em; }
.topbar__tel span { color: var(--accent); margin-right: 4px; }

/* ---------- 导航 ---------- */
.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);
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 32px; }

.logo { display: flex; align-items: center; gap: 13px; flex-shrink: 0; }
.logo__mark {
  width: 42px; height: 42px; border-radius: 3px;
  background: linear-gradient(145deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: var(--white);
  display: grid; place-items: center;
  font-weight: 700; font-size: 17px; letter-spacing: -.02em;
  box-shadow: 0 3px 10px rgba(20, 80, 122, .28);
}
.logo__text { display: flex; flex-direction: column; line-height: 1.25; }
.logo__cn { font-size: 17px; font-weight: 700; letter-spacing: .04em; color: var(--ink); }
.logo__en { font-size: 10px; letter-spacing: .16em; color: var(--ink-3); text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  position: relative;
  padding: 0 18px; height: 74px;
  display: flex; align-items: center;
  font-size: 15px; color: var(--ink-2); font-weight: 500;
  transition: color .2s;
}
.nav a::after {
  content: ""; position: absolute; left: 50%; bottom: -1px;
  width: 0; height: 2px; background: var(--brand);
  transform: translateX(-50%);
  transition: width .25s ease;
}
.nav a:hover { color: var(--brand); }
.nav a:hover::after, .nav a.is-active::after { width: calc(100% - 36px); }
.nav a.is-active { color: var(--brand); font-weight: 600; }

.header__cta {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 20px;
  background: var(--brand); color: var(--white);
  border-radius: var(--radius); font-size: 14px; font-weight: 600;
  transition: background .2s, transform .2s;
}
.header__cta:hover { background: var(--brand-dark); transform: translateY(-1px); }

.nav-toggle { display: none; width: 42px; height: 42px; align-items: center; justify-content: center; }
.nav-toggle span { display: block; width: 20px; height: 1.5px; background: var(--ink); position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 1.5px; background: var(--ink);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* ---------- 页头 ---------- */
.pagehead {
  background: linear-gradient(180deg, var(--brand-soft) 0%, #fff 100%);
  border-bottom: 1px solid var(--line);
  padding: 64px 0 56px;
}
.pagehead__eyebrow { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--brand); font-weight: 600; }
.pagehead h1 { font-size: 40px; font-weight: 700; letter-spacing: -.01em; margin: 12px 0 14px; }
.pagehead p { color: var(--ink-2); max-width: 640px; font-size: 16px; }
.crumb { font-size: 13px; color: var(--ink-3); margin-bottom: 18px; }
.crumb a:hover { color: var(--brand); }

/* ---------- 章节标题 ---------- */
.chead { margin-bottom: 52px; }
.chead--center { text-align: center; }
.chead--center .chead__line { margin-left: auto; margin-right: auto; }
.chead__eyebrow {
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--brand); font-weight: 600; margin-bottom: 12px;
}
.chead__line { width: 46px; height: 2px; background: var(--accent); margin-bottom: 20px; }
.chead h2 { font-size: 34px; font-weight: 700; letter-spacing: -.015em; line-height: 1.3; }
.chead p { color: var(--ink-2); margin-top: 14px; max-width: 680px; font-size: 16px; }
.chead--center p { margin-left: auto; margin-right: auto; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 48px; padding: 0 30px;
  font-size: 15px; font-weight: 600;
  border-radius: var(--radius);
  transition: all .22s;
  border: 1px solid transparent;
}
.btn--primary { background: var(--brand); color: var(--white); }
.btn--primary:hover { background: var(--brand-dark); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(20, 80, 122, .26); }
.btn--ghost { border-color: rgba(255, 255, 255, .45); color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--brand); transform: translateY(-2px); }
.btn--line { border-color: var(--line); color: var(--ink); }
.btn--line:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.btn--sm { height: 40px; padding: 0 22px; font-size: 14px; }

/* ---------- HERO ---------- */
.hero { position: relative; overflow: hidden; background: var(--ink); color: var(--white); }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(9, 20, 32, .94) 0%, rgba(9, 20, 32, .82) 46%, rgba(9, 20, 32, .55) 100%);
}
.hero__grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 64px; align-items: center;
  padding: 108px 0 96px;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px; border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 100px; font-size: 12.5px; letter-spacing: .1em;
  color: #cfd9e2; margin-bottom: 26px;
}
.hero__badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero h1 {
  font-size: 52px; line-height: 1.16; font-weight: 700;
  letter-spacing: -.02em; margin-bottom: 24px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__lead { font-size: 17px; color: #b9c6d2; max-width: 540px; margin-bottom: 38px; line-height: 1.8; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__stats {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: rgba(255, 255, 255, .1);
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.hero__stats div { background: var(--ink); padding: 30px 24px; text-align: center; }
.hero__stats b { display: block; font-size: 32px; font-weight: 700; color: var(--white); letter-spacing: -.01em; }
.hero__stats b i { font-style: normal; color: var(--accent); font-size: 18px; margin-left: 2px; }
.hero__stats span { font-size: 13px; color: #93a4b3; letter-spacing: .06em; }

/* ---------- 数据条 ---------- */
.metric { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.metric > div { background: var(--bg); padding: 36px 28px; }
.metric b { display: block; font-size: 36px; font-weight: 700; color: var(--brand); letter-spacing: -.02em; }
.metric b i { font-style: normal; font-size: 18px; margin-left: 2px; }
.metric span { display: block; font-size: 13.5px; color: var(--ink-3); margin-top: 6px; }

/* ---------- 产品卡 ---------- */
.catgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cat {
  background: var(--bg); padding: 40px 34px;
  display: flex; flex-direction: column; gap: 12px;
  transition: background .22s, transform .22s;
}
.cat:hover { background: var(--brand-soft); }
.cat__no { font-size: 12px; letter-spacing: .18em; color: var(--accent); font-weight: 700; }
.cat h3 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.cat p { font-size: 14px; color: var(--ink-3); line-height: 1.75; flex: 1; }
.cat__go { font-size: 13.5px; color: var(--brand); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.cat:hover .cat__go { gap: 11px; }

.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.pcard {
  background: var(--bg); border: 1px solid var(--line);
  display: flex; flex-direction: column; overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.pcard__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-soft); }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.pcard:hover .pcard__media img { transform: scale(1.05); }
.pcard__tag {
  position: absolute; left: 14px; top: 14px;
  background: rgba(14, 23, 33, .82); color: var(--white);
  padding: 5px 12px; font-size: 11.5px; letter-spacing: .05em; border-radius: 2px;
  backdrop-filter: blur(4px);
}
.pcard__body { padding: 24px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pcard__body h3 { font-size: 17.5px; font-weight: 700; line-height: 1.45; }
.pcard__body p { font-size: 14px; color: var(--ink-3); line-height: 1.75; flex: 1; }
.pcard__body .tags { max-width: 100%; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tag {
  font-size: 11.5px; color: var(--ink-3);
  background: var(--bg-soft); border: 1px solid var(--line);
  padding: 4px 10px; border-radius: 2px;
  line-height: 1.5; word-break: keep-all;
}
.pcard__link { font-size: 13.5px; color: var(--brand); font-weight: 600; display: flex; align-items: center; gap: 6px; }

/* ---------- 案例 ---------- */
.cgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.ccard {
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--bg); border: 1px solid var(--line); overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.ccard:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.ccard__media { aspect-ratio: 1 / 1; overflow: hidden; background: var(--bg-soft); }
.ccard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.ccard:hover .ccard__media img { transform: scale(1.05); }
.ccard__body { padding: 28px 26px; display: flex; flex-direction: column; gap: 12px; }
.ccard__body h3 { font-size: 18px; font-weight: 700; line-height: 1.45; }
.ccard__body p { font-size: 14px; color: var(--ink-3); line-height: 1.78; flex: 1; }

/* ---------- 合作伙伴 ---------- */
.plist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.pitem {
  background: var(--bg); padding: 30px 28px;
  display: flex; flex-direction: column; gap: 8px;
  transition: background .2s;
}
.pitem:hover { background: var(--brand-soft); }
.pitem__name { font-size: 16.5px; font-weight: 600; line-height: 1.5; }
.pitem__ind { font-size: 12.5px; color: var(--ink-3); letter-spacing: .04em; }

/* ---------- 特性 ---------- */
.fgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.feat { background: var(--bg); padding: 42px 38px; }
.feat__no { font-size: 34px; font-weight: 700; color: var(--brand-soft); letter-spacing: -.02em; line-height: 1; margin-bottom: 16px; }
.feat h3 { font-size: 19px; font-weight: 700; margin-bottom: 12px; }
.feat p { font-size: 14.5px; color: var(--ink-3); line-height: 1.8; }

/* ---------- 关于 ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.about__media { position: relative; }
.about__media img { width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; border-radius: var(--radius); }
.about__media::before {
  content: ""; position: absolute; left: -18px; top: -18px;
  width: 150px; height: 150px; border: 2px solid var(--brand-soft); border-radius: var(--radius); z-index: -1;
}
.about__body h2 { font-size: 32px; font-weight: 700; line-height: 1.32; margin-bottom: 20px; letter-spacing: -.015em; }
.about__body p { color: var(--ink-2); margin-bottom: 16px; line-height: 1.9; }
.about__body p:last-of-type { margin-bottom: 30px; }
.about__years { display: flex; gap: 44px; padding-top: 26px; border-top: 1px solid var(--line); }
.about__years div b { display: block; font-size: 30px; font-weight: 700; color: var(--brand); letter-spacing: -.02em; }
.about__years div span { font-size: 13px; color: var(--ink-3); }

/* ---------- 常见问题 ---------- */
.faq { max-width: 860px; margin: 0 auto; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; display: flex; align-items: flex-start; gap: 16px;
  padding: 26px 0; text-align: left;
  font-size: 17px; font-weight: 600; line-height: 1.6;
  transition: color .2s;
}
.faq__q:hover { color: var(--brand); }
.faq__q i {
  flex-shrink: 0; font-style: normal; font-size: 13px; font-weight: 700;
  color: var(--accent); margin-top: 5px; letter-spacing: .06em;
}
.faq__q span { flex: 1; }
.faq__q b { font-weight: 400; color: var(--ink-3); font-size: 22px; line-height: 1; transition: transform .25s; }
.faq__item.is-open .faq__q b { transform: rotate(45deg); color: var(--brand); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq__a div { padding: 0 0 28px 38px; color: var(--ink-2); line-height: 1.9; font-size: 15px; }

/* ---------- 联系 ---------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }

.info__block { margin-bottom: 34px; }
.info__block:last-child { margin-bottom: 0; }
.info__label {
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--brand); font-weight: 600; margin-bottom: 10px;
}
.info__value { font-size: 17px; line-height: 1.8; color: var(--ink); }
.info__value.big { font-size: 30px; font-weight: 700; letter-spacing: -.01em; color: var(--brand); }
.info__value a:hover { color: var(--brand); }

.ctabox {
  background: var(--bg-soft); border: 1px solid var(--line);
  padding: 42px 40px; border-radius: var(--radius);
}
.ctabox h3 { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.ctabox > p { font-size: 14.5px; color: var(--ink-3); margin-bottom: 30px; }

.field { margin-bottom: 20px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 8px; color: var(--ink-2); }
.field label em { font-style: normal; color: var(--accent); }
.field input, .field textarea {
  width: 100%; padding: 12px 14px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  font-size: 15px; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(20, 80, 122, .1);
}
.field textarea { resize: vertical; min-height: 118px; line-height: 1.7; }
.field input::placeholder, .field textarea::placeholder { color: #a9b5c0; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field__err { font-size: 12.5px; color: #d64545; margin-top: 6px; display: none; }
.field.has-err input, .field.has-err textarea { border-color: #d64545; }
.field.has-err .field__err { display: block; }

.formnote { font-size: 13px; color: var(--ink-3); margin-top: 16px; line-height: 1.7; }
.alert {
  display: none; padding: 14px 16px; border-radius: var(--radius);
  font-size: 14px; margin-bottom: 22px; line-height: 1.6;
}
.alert--ok { display: block; background: #e8f6ee; border: 1px solid #b7e0c8; color: #1f7a45; }
.alert--err { display: block; background: #fdecec; border: 1px solid #f3c6c6; color: #b93b3b; }

.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none !important; }

/* ---------- 行业标签墙 ---------- */
.applist { display: flex; flex-wrap: wrap; gap: 10px; }
.applist li {
  font-size: 14px; color: var(--ink-2);
  background: var(--bg); border: 1px solid var(--line);
  padding: 8px 16px; border-radius: 2px;
}

/* ---------- CTA 条 ---------- */
.cta { background: var(--brand-dark); color: var(--white); position: relative; overflow: hidden; }
.cta::after {
  content: ""; position: absolute; right: -80px; top: -80px;
  width: 340px; height: 340px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 50%;
}
.cta .wrap { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 62px 0; }
.cta h2 { font-size: 30px; font-weight: 700; margin-bottom: 10px; letter-spacing: -.015em; }
.cta p { color: #b3c4d2; font-size: 15.5px; }
.cta__actions { display: flex; gap: 14px; flex-shrink: 0; }

/* ---------- 页脚 ---------- */
.footer { background: var(--ink); color: #93a4b3; padding: 76px 0 0; font-size: 14px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 48px; padding-bottom: 56px; }
.footer .logo__cn { color: var(--white); }
.footer__about p { margin-top: 18px; line-height: 1.85; max-width: 300px; }
.footer h4 { color: var(--white); font-size: 15px; font-weight: 600; margin-bottom: 20px; letter-spacing: .03em; }
.footer__list li { margin-bottom: 12px; }
.footer__list a:hover { color: var(--white); }
.footer__contact li { margin-bottom: 14px; line-height: 1.7; display: flex; gap: 10px; }
.footer__contact .k { color: #6d8093; flex-shrink: 0; }
.footer__contact .v { color: #cfd9e2; }
.footer__contact .v.tel { color: var(--white); font-weight: 600; font-size: 17px; letter-spacing: .02em; }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .08); padding: 22px 0;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12.5px; color: #6d8093; flex-wrap: wrap; gap: 10px;
}
.footer__bottom a:hover { color: var(--white); }

/* ---------- 返回顶部 ---------- */
.totop {
  position: fixed; right: 28px; bottom: 28px; z-index: 90;
  width: 46px; height: 46px; background: var(--brand); color: var(--white);
  display: grid; place-items: center; border-radius: var(--radius);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all .25s; box-shadow: var(--shadow-md);
}
.totop.show { opacity: 1; visibility: visible; transform: translateY(0); }
.totop:hover { background: var(--brand-dark); }

/* ---------- 详情页 ---------- */
.detail { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: start; }
.detail__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 14px; }
.gallery img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: var(--radius); cursor: pointer; border: 1px solid var(--line); transition: opacity .2s; }
.gallery img:hover { opacity: .7; }
.detail__body h1 { font-size: 32px; font-weight: 700; line-height: 1.35; margin-bottom: 16px; letter-spacing: -.015em; }
.detail__body .lead { font-size: 16px; color: var(--ink-2); line-height: 1.85; margin-bottom: 26px; }
.detail__body .desc { color: var(--ink-2); line-height: 1.95; margin-bottom: 30px; }
.specbox { background: var(--bg-soft); border: 1px solid var(--line); padding: 28px 30px; border-radius: var(--radius); margin-bottom: 28px; }
.specbox h4 { font-size: 15px; font-weight: 700; margin-bottom: 16px; }
.specbox ul li { display: flex; gap: 12px; padding: 7px 0; font-size: 14.5px; color: var(--ink-2); }
.specbox ul li::before { content: ""; width: 5px; height: 5px; background: var(--accent); border-radius: 50%; margin-top: 10px; flex-shrink: 0; }

.related { border-top: 1px solid var(--line); margin-top: 70px; padding-top: 46px; }
.related h3 { font-size: 22px; font-weight: 700; margin-bottom: 28px; }

/* ---------- 加载 / 空状态 ---------- */
.skel { background: linear-gradient(90deg, #eef2f6 25%, #e3e8ee 50%, #eef2f6 75%); background-size: 200% 100%; animation: sk 1.3s ease-in-out infinite; }
@keyframes sk { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.skel-card { height: 380px; border-radius: var(--radius); }
.empty { text-align: center; padding: 72px 20px; color: var(--ink-3); }
.empty b { display: block; font-size: 17px; color: var(--ink-2); margin-bottom: 8px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; gap: 44px; padding: 76px 0 68px; }
  .hero h1 { font-size: 42px; }
  .about { gap: 48px; }
  .contact { grid-template-columns: 1fr; gap: 40px; }
  .detail { grid-template-columns: 1fr; gap: 40px; }
  .pgrid, .catgrid, .plist { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .cta .wrap { flex-direction: column; align-items: flex-start; gap: 26px; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .wrap { padding: 0 20px; }
  .topbar .wrap { justify-content: center; }
  .topbar__links { display: none; }

  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: 112px 0 auto; z-index: 99;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px 0 16px;
    max-height: calc(100vh - 112px); overflow-y: auto;
    transform: translateY(-14px); opacity: 0; visibility: hidden;
    transition: all .25s;
    box-shadow: var(--shadow-md);
  }
  .nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav a { height: auto; padding: 14px 20px; font-size: 16px; border-bottom: 1px solid var(--line-2); }
  .nav a::after { display: none; }
  .nav a.is-active { color: var(--brand); }
  .header__cta { display: none; }
  .header .wrap { height: 74px; }
  .nav { inset: 74px 0 auto; max-height: calc(100vh - 74px); }

  .hero h1 { font-size: 32px; }
  .hero__lead { font-size: 15.5px; }
  .hero__grid { padding: 56px 0 52px; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .hero__stats div { padding: 22px 14px; }
  .hero__stats b { font-size: 25px; }

  .pagehead { padding: 40px 0 36px; }
  .pagehead h1 { font-size: 28px; }
  .chead h2 { font-size: 26px; }
  .chead { margin-bottom: 36px; }
  .about { grid-template-columns: 1fr; gap: 36px; }
  .about__body h2 { font-size: 24px; }
  .about__media::before { display: none; }
  .about__years { gap: 28px; }

  .metric { grid-template-columns: repeat(2, 1fr); }
  .metric b { font-size: 27px; }
  .metric > div { padding: 26px 20px; }

  .pgrid, .catgrid, .plist, .fgrid, .cgrid { grid-template-columns: 1fr; }
  .ccard { grid-template-columns: 1fr; }
  .ccard__media { aspect-ratio: 16/10; }
  .cat { padding: 30px 26px; }
  .feat { padding: 30px 26px; }

  .ctabox { padding: 30px 24px; }
  .field--row { grid-template-columns: 1fr; gap: 20px; }
  .faq__q { font-size: 15.5px; padding: 20px 0; gap: 12px; }
  .faq__a div { padding-left: 30px; font-size: 14.5px; }

  .cta h2 { font-size: 23px; }
  .cta__actions { flex-direction: column; width: 100%; }
  .cta__actions .btn { width: 100%; }
  .footer { padding-top: 54px; }
  .footer__grid { grid-template-columns: 1fr; gap: 34px; padding-bottom: 40px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 8px; }

  .totop { right: 16px; bottom: 16px; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   易优适配补充：分页 / 正文 / 相关推荐 / 表单容器 / 详情元信息
   ============================================================ */

/* 分类卡自动编号 */
.catgrid { counter-reset: catno; }
.cat { counter-increment: catno; }
.cat .cat__no::before { content: counter(catno, decimal-leading-zero); }

/* ---------- 分页 ---------- */
.pager {
  margin-top: 48px; display: flex; flex-wrap: wrap; gap: 22px;
  justify-content: center; align-items: center;
  font-size: 14.5px; color: var(--ink-3);
}
.pager a { color: var(--brand); }
.pager a:hover { text-decoration: underline; }
.pager__label { color: var(--ink-3); margin-right: 4px; }
.pager ul {
  display: inline-flex; flex-wrap: wrap; gap: 7px;
  justify-content: center; width: 100%;
}
.pager li {
  min-width: 38px; height: 38px; display: inline-flex;
  align-items: center; justify-content: center; padding: 0 13px;
  border: 1px solid var(--line); background: var(--bg);
  font-size: 14px; color: var(--ink-2); transition: all .2s;
}
.pager li:hover { border-color: var(--brand); color: var(--brand); }
.pager li.on, .pager li.cur {
  background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600;
}
.pager li a { color: inherit; }

/* ---------- 正文（单页） ---------- */
.prose { line-height: 1.95; color: var(--ink-2); font-size: 15.5px; }
.prose img { max-width: 100%; height: auto; margin: 20px 0; }
.prose h2, .prose h3 { color: var(--ink); margin: 30px 0 14px; font-weight: 700; }
.prose h2 { font-size: 24px; }
.prose h3 { font-size: 19px; }
.prose p { margin-bottom: 15px; }
.prose table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 14.5px; }
.prose table th, .prose table td { border: 1px solid var(--line); padding: 11px 14px; text-align: left; }
.prose table th { background: var(--bg-soft); font-weight: 600; color: var(--ink); }
.prose a { color: var(--brand); }

/* ---------- 详情页元信息 ---------- */
.detail__meta {
  display: flex; flex-wrap: wrap; gap: 20px;
  padding-bottom: 16px; margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px; color: var(--ink-3);
}
.detail__meta i { font-style: normal; color: var(--brand); font-weight: 600; }

/* ---------- 相关推荐 ---------- */
.related { margin-top: 56px; padding-top: 38px; border-top: 1px solid var(--line); }
.related h3 {
  font-size: 21px; font-weight: 700; margin-bottom: 24px;
  display: flex; align-items: center; gap: 12px;
}
.related h3::before {
  content: ""; width: 4px; height: 20px; background: var(--accent); border-radius: 2px;
}

/* ---------- 公司页数据条 ---------- */
.about__years {
  margin-top: 48px; padding-top: 38px; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center;
}
.about__years b {
  display: block; font-size: 32px; font-weight: 700; color: var(--brand);
  letter-spacing: -.02em;
}
.about__years b i { font-style: normal; font-size: 17px; margin-left: 2px; }
.about__years span { font-size: 13.5px; color: var(--ink-3); }

/* ---------- 联系页表单容器 ---------- */
.form {
  background: var(--bg); border: 1px solid var(--line);
  padding: 34px 32px; border-radius: var(--radius);
}
.form h3 { font-size: 21px; font-weight: 700; margin-bottom: 8px; }
.form__hint {
  font-size: 13.5px; color: var(--ink-3);
  padding-bottom: 18px; margin-bottom: 22px; border-bottom: 1px solid var(--line);
}
.form__actions { display: flex; gap: 12px; margin-top: 24px; }
.form__actions .btn { cursor: pointer; border: 1px solid transparent; }
.form__actions .btn--line { background: var(--bg); }
.form select {
  width: 100%; padding: 12px 14px; background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--radius);
  font-size: 15px; font-family: inherit; color: var(--ink); cursor: pointer;
}
.form select:focus { outline: none; border-color: var(--brand); }

/* ---------- 补充响应式 ---------- */
@media (max-width: 768px) {
  .field--row { grid-template-columns: 1fr; }
  .about__years { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .form { padding: 26px 20px; }
  .contact { grid-template-columns: 1fr !important; gap: 34px !important; }
  .pager { margin-top: 32px; gap: 12px; }
  .related { margin-top: 38px; padding-top: 28px; }
}
/* ===== 公司简介正文内的标签排版（后台编辑器写入的 span 标签）===== */
.prose h2 {
  margin-top: 38px; padding-left: 14px;
  border-left: 4px solid var(--accent);
  font-size: 21px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  margin: 20px 0 6px; font-size: 16.5px; color: var(--ink);
  display: flex; align-items: baseline; gap: 4px;
}
.prose h3 + p { margin-bottom: 12px; }
.prose p[style*="center"] { margin: 14px 0 18px; }

/* ===== 公司简介单栏排版（图片与文字均在富文本内）===== */
.prose--about { max-width: 980px; margin: 0 auto; }
.prose--about > p:first-child { margin-bottom: 30px; }
.prose--about img {
  max-width: 100%; height: auto; display: block; margin: 0 auto 30px;
  border-radius: 4px;
}
.prose--about h2 {
  margin: 46px 0 18px; padding-left: 14px;
  border-left: 4px solid var(--accent); font-size: 22px;
}
.prose--about h2:first-of-type { margin-top: 34px; }
.prose--about h3 {
  margin: 22px 0 6px; font-size: 17px; color: var(--ink);
  letter-spacing: .01em;
}
.prose--about h3 + p { margin-bottom: 10px; }
.prose--about p { line-height: 1.95; }

/* 数据条跟随正文宽度 */
.prose--about + .about__years { max-width: 980px; margin: 46px auto 0; }
