:root {
  --c-bg: #ffffff;
  --c-alt: #f5f6f8;
  --c-ink: #1b2330;
  --c-muted: #6b7686;
  --c-brand: #0f2a4a;
  --c-accent: #f5a623;
  --c-accent-dark: #d98c0c;
  --c-line: #e3e6eb;
  --radius: 10px;
  --shadow: 0 4px 16px rgba(15, 42, 74, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: var(--c-ink);
  background: var(--c-bg);
  line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-brand); text-decoration: none; }
a:hover { color: var(--c-accent-dark); }
h1, h2, h3 { line-height: 1.3; margin: 0 0 .6em; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 860px; }
.center { text-align: center; margin-top: 28px; }
.muted { color: var(--c-muted); font-size: .95em; }
.lead { font-size: 1.1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--c-brand); box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 1.1rem; }
.brand:hover { color: #fff; }
.brand img { border-radius: 6px; background: #fff; }
.main-nav { display: flex; gap: 6px; }
.main-nav a { color: #d6deea; padding: 8px 14px; border-radius: 6px; }
.main-nav a:hover { color: #fff; background: rgba(255,255,255,.1); }
.main-nav a.active { color: var(--c-brand); background: var(--c-accent); font-weight: 600; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: .2s; }

/* hero */
.hero { position: relative; min-height: 520px; display: flex; align-items: center; color: #fff; overflow: hidden; background: var(--c-brand); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-mask { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,20,38,.85), rgba(8,20,38,.35)); }
.hero-inner { position: relative; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: .05em; }
.hero p { font-size: 1.15rem; max-width: 640px; color: #e6ecf5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* buttons */
.btn { display: inline-block; padding: 12px 26px; border-radius: 999px; font-weight: 600; border: 2px solid transparent; cursor: pointer; transition: .2s; }
.btn-primary { background: var(--c-accent); color: #1b1b1b; }
.btn-primary:hover { background: var(--c-accent-dark); color: #fff; }
.btn-ghost { border-color: #fff; color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--c-brand); }
.btn-outline { border-color: var(--c-brand); color: var(--c-brand); }
.btn-outline:hover { background: var(--c-brand); color: #fff; }

/* sections */
.section { padding: 64px 0; }
.section-alt { background: var(--c-alt); }
.section-title { text-align: center; font-size: 1.8rem; margin-bottom: 36px; position: relative; }
.section-title::after { content: ""; display: block; width: 48px; height: 4px; background: var(--c-accent); margin: 12px auto 0; border-radius: 2px; }
.page-head { background: var(--c-brand); color: #fff; padding: 48px 0; }
.page-head h1 { font-size: 2rem; margin-bottom: .3em; }
.page-head p { margin: 0; color: #cfd8e6; }

/* grid & cards */
.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-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform .2s, box-shadow .2s; color: inherit; }
a.card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(15,42,74,.15); color: inherit; }
.card.pad, .service-card { padding: 24px; }
.service-card .icon { font-size: 2rem; }
.service-card h3, .card.pad h3 { color: var(--c-brand); }
.project-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-body { padding: 16px 18px; }
.card-body h3 { font-size: 1.05rem; margin: 8px 0 4px; }
.tag { display: inline-block; background: #fff3dc; color: #a86a00; font-size: .8rem; padding: 2px 10px; border-radius: 999px; }

/* filters */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.filter { border: 1px solid var(--c-line); background: #fff; padding: 8px 20px; border-radius: 999px; cursor: pointer; font-size: 1rem; color: var(--c-ink); }
.filter:hover { border-color: var(--c-accent); }
.filter.active { background: var(--c-brand); color: #fff; border-color: var(--c-brand); }
.empty { text-align: center; color: var(--c-muted); padding: 40px 0; }

/* gallery */
.gallery { display: grid; gap: 16px; margin: 24px 0; }
.gallery img { width: 100%; border-radius: var(--radius); }
.zoomable { cursor: zoom-in; }

/* services */
.service-row { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; margin-bottom: 56px; scroll-margin-top: 80px; }
.service-row.reverse img { order: 2; }
.service-row img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.process li { background: #fff; border-radius: var(--radius); padding: 24px; text-align: center; box-shadow: var(--shadow); position: relative; }
.process li:not(:last-child)::after { content: "→"; position: absolute; right: -18px; top: 50%; transform: translateY(-50%); color: var(--c-accent); font-size: 1.5rem; z-index: 1; }
.step-no { display: inline-block; width: 44px; height: 44px; line-height: 44px; border-radius: 50%; background: var(--c-accent); color: #1b1b1b; font-weight: 700; margin-bottom: 10px; }

/* about / contact */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.two-col img { border-radius: var(--radius); width: 100%; }
.certs figure { margin: 0; text-align: center; }
.certs img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.certs figcaption { padding: 12px; font-weight: 600; }
.cert-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin-top: 32px; }
.cert-row img { height: 160px; width: auto; border-radius: 6px; border: 1px solid var(--c-line); }
.contact-info p { font-size: 1.1rem; }
.qr { margin: 20px 0 0; text-align: center; }
.qr img { width: 160px; height: 160px; border-radius: 8px; background: #fff; padding: 6px; margin: 0 auto; }
.qr.left { text-align: left; }
.qr.left img { margin: 0; border: 1px solid var(--c-line); }

/* CTA */
.cta { background: var(--c-brand); color: #fff; }
.cta a:not(.btn) { color: var(--c-accent); }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta h2 { font-size: 1.6rem; }

/* footer */
.site-footer { background: #0a1b31; color: #aab6c8; padding-top: 40px; font-size: .95rem; }
.site-footer h3 { color: #fff; }
.site-footer a { color: #d6deea; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; border-top: 1px solid rgba(255,255,255,.1); margin-top: 24px; padding: 18px 20px; }

/* floating call (mobile) */
.float-call { display: none; }

/* lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.88); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 20px; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 6px; }

/* tablet */
@media (max-width: 1199px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .process li::after { display: none; }
}
/* mobile */
@media (max-width: 767px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--c-brand); flex-direction: column; padding: 8px 20px 16px; gap: 0; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 8px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .brand span { font-size: .95rem; }
  .hero { min-height: 420px; }
  .section { padding: 40px 0; }
  .grid-2, .grid-3, .grid-4, .two-col, .service-row, .process, .footer-grid { grid-template-columns: 1fr; }
  .service-row.reverse img { order: 0; }
  .float-call { display: block; position: fixed; right: 16px; bottom: 16px; z-index: 60; background: var(--c-accent); color: #1b1b1b; padding: 12px 20px; border-radius: 999px; font-weight: 700; box-shadow: 0 4px 14px rgba(0,0,0,.3); }
  body { padding-bottom: 70px; }
}
