:root {
  --red: #E4002B;
  --red-dark: #b80022;
  --ink: #111111;
  --muted: #5c5c5c;
  --line: #e7e7e7;
  --bg: #f4f5f7;
  --white: #fff;
  --max: 1180px;
  --header: 76px;
  --site-header-h: 112px;
  --hero-aspect: 16 / 7;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: #fff;
  color: #111;
  padding: 8px 12px;
}
.skip-link:focus { left: 16px; top: 16px; }
.topbar a { color: inherit; }
.quote-card h3 { margin: 0 0 8px; font-size: 16px; font-weight: 600; }
.quote-card h3 + p { margin: 0; font-size: 14px; color: var(--muted); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

.topbar {
  background: #111;
  color: #fff;
  font-size: 12px;
  letter-spacing: .08em;
  padding: 8px 0;
}
.topbar .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.topbar span { opacity: .86; }

.header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  height: var(--header);
}
.header-inner { height: var(--header); display: flex; align-items: center; gap: 28px; }
.logo { display: flex; align-items: center; height: 44px; flex: 0 0 auto; }
.logo img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  padding: 8px 12px;
  font-size: 14px;
  color: #222;
}
.nav a:hover, .nav a.active { color: var(--red); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--red); color: #fff !important;
  padding: 10px 18px; border: 0; cursor: pointer;
  min-height: 42px;
}
.btn:hover { background: var(--red-dark); }
.btn-ghost { background: transparent; color: #fff !important; border: 1px solid rgba(255,255,255,.55); }
.menu-toggle { display: none; margin-left: auto; background: none; border: 0; width: 42px; height: 42px; }

.hero {
  position: relative;
  min-height: 180px;
  aspect-ratio: var(--hero-aspect, 16 / 7);
  height: var(--hero-height, auto);
  color: #fff; display: flex; align-items: flex-end;
  background: #111 center/cover no-repeat;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.72) 100%);
}
.hero-inner { position: relative; z-index: 1; padding: 0 0 80px; width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.hero-kicker { font-size: 13px; letter-spacing: .2em; opacity: .85; margin-bottom: 16px; }
.hero h1 { font-size: clamp(32px, 5vw, 56px); font-weight: 600; line-height: 1.2; margin: 0 0 16px; letter-spacing: .02em; }
.hero p { font-size: 18px; max-width: 640px; opacity: .9; margin: 0 0 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-kicker, .hero h1, .hero p, .hero-actions {
  animation: hero-in .9s cubic-bezier(.16, 1, .3, 1) both;
}
.hero-kicker { animation-name: hero-kicker-in; animation-delay: .12s; }
.hero h1 { animation-delay: .28s; }
.hero p { animation-delay: .46s; }
.hero-actions { animation-delay: .62s; }
@keyframes hero-kicker-in {
  from { opacity: 0; letter-spacing: .38em; transform: translateY(14px); }
  to { opacity: .85; letter-spacing: .2em; transform: translateY(0); }
}
@keyframes hero-in {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: var(--hero-in, 1); transform: translateY(0); }
}
.hero h1 { --hero-in: 1; }
.hero p { --hero-in: .9; }
.hero.has-overlay::after,
.page-hero.has-overlay::after { display: none; }
.hero.has-overlay { display: block; }
.hero.has-overlay .hero-overlay-box,
.page-hero.has-overlay .hero-overlay-box {
  left: max(20px, calc((100% - min(1180px, calc(100% - 40px))) / 2));
  width: min(1180px, calc(100% - 40px));
  right: auto;
}
html.hero-fullscreen .hero {
  aspect-ratio: auto;
  height: calc(100dvh - var(--site-header-h, 112px));
  min-height: 320px;
}
html.hero-fixed-height .hero {
  aspect-ratio: auto;
  height: var(--hero-height, 360px);
}
.hero-frost {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.hero-frost.is-frost {
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.hero-slide-hit {
  position: absolute;
  inset: 0;
  z-index: 2;
}
.page-hero.has-overlay {
  min-height: 0;
  padding: 0;
  aspect-ratio: var(--hero-aspect, auto);
  height: var(--hero-height, 240px);
  overflow: hidden;
}
html.hero-fullscreen .page-hero.has-overlay,
html.hero-fixed-height .page-hero.has-overlay {
  aspect-ratio: var(--hero-aspect, auto);
  height: var(--hero-height, 240px);
}
.page-hero.has-overlay .page-hero-crumb {
  position: absolute;
  left: 0; right: 0; bottom: 18px;
  z-index: 4;
}
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.hero-wrap { position: relative; background: #111; }
.hero-wrap .hero {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .6s ease, visibility .6s ease;
}
.hero-wrap .hero.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.hero-nav {
  position: absolute;
  inset: 0 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}
.hero-nav button {
  pointer-events: auto;
  width: 42px; height: 42px;
  border: 1px solid rgba(255,255,255,.4);
  background: rgba(0,0,0,.28);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}
.hero-dots {
  position: absolute;
  left: 0; right: 0; bottom: 22px;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.hero-dots button {
  width: 8px; height: 8px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  padding: 0;
  cursor: pointer;
}
.hero-dots button.is-active { background: #fff; }

.page-hero-sub {
  margin: 10px 0 0;
  max-width: 640px;
  font-size: 16px;
  opacity: .88;
}

.section { padding: 88px 0; }
.section-muted { background: var(--bg); }
.section-head { margin-bottom: 40px; }
.section-head .en { color: var(--red); font-size: 12px; letter-spacing: .22em; }
.section-head h2 { margin: 8px 0 0; font-size: 32px; font-weight: 600; }
.section-head p { margin: 10px 0 0; color: var(--muted); max-width: 640px; }

.grid-4, .grid-3, .grid-2 { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.service-card {
  background: #fff; border: 1px solid var(--line);
  padding: 28px 24px 24px; min-height: 210px;
  transition: border-color .2s, transform .2s;
}
.service-card:hover { border-color: var(--red); transform: translateY(-3px); }
.service-card .num { color: var(--red); font-size: 12px; letter-spacing: .16em; }
.service-card h3 { margin: 10px 0 8px; font-size: 22px; }
.service-card p { margin: 0; color: var(--muted); font-size: 14px; }
.service-card .more { display: inline-block; margin-top: 18px; font-size: 13px; color: var(--red); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); background: #111; color: #fff; }
.stat { padding: 36px 20px; text-align: center; border-right: 1px solid rgba(255,255,255,.08); }
.stat:last-child { border-right: 0; }
.stat b {
  display: block;
  font-size: 36px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.stat span { font-size: 13px; opacity: .7; }
.stats.js-ready .stat {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s cubic-bezier(.16, 1, .3, 1), transform .7s cubic-bezier(.16, 1, .3, 1);
}
.stats.js-ready.is-in .stat { opacity: 1; transform: translateY(0); }
.stats.js-ready.is-in .stat:nth-child(2) { transition-delay: .1s; }
.stats.js-ready.is-in .stat:nth-child(3) { transition-delay: .2s; }
.stats.js-ready.is-in .stat:nth-child(4) { transition-delay: .3s; }

.case-card { background: #fff; }
.case-card .thumb { aspect-ratio: 4/3; overflow: hidden; background: #ddd; }
.case-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.case-card:hover img { transform: scale(1.04); }
.case-card .meta { padding: 16px 2px 0; }
.case-card .tag { color: var(--red); font-size: 12px; letter-spacing: .08em; }
.case-card h3 { margin: 6px 0 4px; font-size: 20px; }
.case-card p { margin: 0; color: var(--muted); font-size: 13px; }

.honor-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.honor-item { background: #fff; border: 1px solid var(--line); padding: 10px; }
.honor-item img { width: 100%; height: 140px; object-fit: contain; background: #fff; }
.honor-wall { grid-template-columns: repeat(4, 1fr); gap: 16px; }
.honor-wall img { height: 220px; }
.honor-item figcaption { text-align: center; font-size: 13px; padding-top: 8px; }

.quote-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.quote-card { background: #fff; margin: 0; padding: 28px; border-left: 3px solid var(--red); }
.quote-card p { margin: 0 0 12px; font-size: 16px; }
.quote-card span { color: var(--muted); font-size: 13px; }

.page-hero {
  background: #111 url("../img/case-gaofa-machine.jpg") center/cover;
  color: #fff; padding: 90px 0 54px; position: relative;
}
.page-hero::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.58); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { margin: 0; font-size: 36px; font-weight: 600; }
.crumb { margin-top: 10px; font-size: 13px; opacity: .75; }
.crumb a:hover { color: #fff; }

.prose { max-width: 800px; }
.prose h2 { font-size: 24px; margin: 36px 0 12px; }
.prose p { color: #333; }
.rich h2 { font-size: 24px; margin: 36px 0 14px; }
.rich .split-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 16px 0 28px; }
.rich .split-3 article { background: var(--bg); padding: 22px; }
.rich .split-3 h3 { margin: 0 0 8px; }
.rich .check-list { padding-left: 18px; }
.rich .check-list li { margin: 8px 0; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 24px; }
.gallery img { width: 100%; height: 200px; object-fit: cover; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters a { padding: 8px 14px; border: 1px solid var(--line); font-size: 13px; }
.filters a.active, .filters a:hover { border-color: var(--red); color: var(--red); }

.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.contact-list dt { color: var(--muted); font-size: 12px; margin-top: 16px; }
.contact-list dd { margin: 4px 0 0; font-size: 16px; }
.qr-box { width: 140px; margin-top: 16px; border: 1px solid var(--line); padding: 8px; background: #fff; }
.qr-box img { width: 100%; }
.form { display: grid; gap: 12px; position: relative; }
.form label { display: grid; gap: 6px; font-size: 13px; color: #333; }
.form input, .form select, .form textarea {
  width: 100%; border: 1px solid var(--line); padding: 12px 14px; background: #fff;
}
.form textarea { min-height: 120px; resize: vertical; }
.cap-row { display: flex; align-items: center; gap: 8px; }
.cap-img {
  display: block;
  height: 56px;
  width: 228px;
  max-width: calc(100% - 76px);
  border: 1px solid var(--line);
  background: #f4f5f7;
  object-fit: contain;
}
.cap-img.is-swap { animation: cap-pop .35s ease; }
.cap-refresh {
  flex: 0 0 auto;
  border: 0;
  background: var(--bg);
  color: #333;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 12px;
  height: 56px;
}
.cap-refresh:hover { background: #ececec; }
@keyframes cap-pop {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 12px 14px; margin-bottom: 16px; }
.alert-ok { background: #eef8f0; color: #1b6b32; }
.alert-err { background: #fdecec; color: #9b1c1c; }

.office-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; }
.office-grid img { width: 100%; height: 220px; object-fit: cover; }
.partner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 24px;
  list-style: none;
  margin: 40px 0 0;
  padding: 8px 0;
}
.partner-grid li {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 112px;
  background: #fff;
}
.partner-grid img {
  max-width: 100%;
  max-height: 96px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.footer { background: #111; color: #cfcfcf; padding: 48px 0 20px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.footer h4 { color: #fff; margin: 0 0 12px; font-size: 14px; font-weight: 600; }
.footer a { display: block; padding: 4px 0; }
.footer a:hover { color: #fff; }
.footer a.inline { display: inline; padding: 0; }
.footer address { font-style: normal; color: inherit; }
.footer .badge { color: #fff; font-size: 12px; letter-spacing: .08em; margin-bottom: 10px; border-left: 2px solid var(--red); padding-left: 10px; }
.footer-brand {
  display: inline-flex;
  align-items: center;
  margin: 8px 0 14px;
}
.footer-brand img { height: 26px; width: auto; max-width: 100%; display: block; }
.copyright { border-top: 1px solid rgba(255,255,255,.08); margin-top: 32px; padding-top: 16px; font-size: 12px; opacity: .65; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.copyright .icp { display: inline; padding: 0; color: inherit; opacity: 1; }
.copyright .icp:hover { color: #fff; }

.news-item { display: grid; grid-template-columns: 220px 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.news-item img { width: 100%; height: 140px; object-fit: cover; }
.news-item h3 { margin: 0 0 8px; }

.empty { padding: 48px; text-align: center; color: var(--muted); background: var(--bg); }

@media (max-width: 1120px) {
  .nav a { padding: 8px 8px; font-size: 13px; }
}
@media (max-width: 980px) {
  .grid-4, .honor-row, .honor-wall, .partner-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .stats, .footer-grid, .office-grid, .rich .split-3 { grid-template-columns: 1fr 1fr; }
  .contact-grid, .news-item { grid-template-columns: 1fr; }
  .nav { display: none; position: absolute; top: var(--header); left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px 16px 20px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .header-inner { position: relative; }
  .logo img { height: 39px; }
}
@media (max-width: 640px) {
  .grid-4, .grid-3, .grid-2, .quote-grid, .gallery, .honor-row, .honor-wall, .stats, .footer-grid, .office-grid, .rich .split-3 { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  html:not(.hero-fullscreen):not(.hero-fixed-height) .hero { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-kicker, .hero h1, .hero p, .hero-actions {
    animation: none;
    transform: none;
    letter-spacing: .2em;
  }
  .hero h1 { opacity: 1; letter-spacing: .02em; }
  .hero p { opacity: .9; }
  .hero-actions { opacity: 1; }
  .stats .stat,
  .stats.js-ready .stat,
  .stats.js-ready.is-in .stat {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
