:root {
  --brand: #4f77a8;
  --brand-dark: #2f5585;
  --navy: #0f2238;
  --ink: #16212d;
  --text: #33404d;
  --muted: #66727f;
  --line: #dce3ea;
  --bg: #ffffff;
  --bg-soft: #f3f6f9;
  --accent: #d56f1c;
  --radius: 6px;
  --wrap: 1200px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.75; color: var(--text); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.35; margin: 0 0 .6em; font-weight: 600; }
h1 { font-size: clamp(28px, 4.2vw, 44px); }
h2 { font-size: clamp(23px, 2.8vw, 30px); }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; margin: 0 0 1em; }
li { margin-bottom: .35em; }
strong { color: var(--ink); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 20px; }
.section { padding-block: 64px; }
.section.soft { background: var(--bg-soft); }
.section-head { max-width: 760px; margin-bottom: 32px; }
.section-head p { color: var(--muted); }
.eyebrow { display: inline-block; font-size: 13px; letter-spacing: .12em; color: var(--brand); font-weight: 600; margin-bottom: 10px; }
.lead { font-size: 18px; color: var(--text); }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(6px); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand img { width: 52px; height: auto; }
.brand-name { font-size: 17px; font-weight: 600; line-height: 1.2; }
.brand-name small { display: block; font-size: 11px; font-weight: 400; color: var(--muted); letter-spacing: .04em; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { color: var(--text); padding: 8px 10px; border-radius: 4px; font-size: 15px; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--brand-dark); background: var(--bg-soft); text-decoration: none; }
.nav a[aria-current="page"] { font-weight: 600; }
.header-call { flex-shrink: 0; }
.nav-toggle, .nav-toggle-label { display: none; }
@media (max-width: 1260px) { .header-call { display: none; } .nav a { padding: 8px 8px; } }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: var(--radius); font-weight: 600; font-size: 15px; border: 1px solid transparent; line-height: 1.3; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #bb5f12; }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-line { border-color: var(--brand); color: var(--brand-dark); }
.btn-line:hover { background: var(--bg-soft); }
.btn-sm { padding: 7px 14px; font-size: 14px; }

@media (max-width: 1080px) {
  .site-header .wrap { flex-wrap: wrap; gap: 0 12px; }
  .nav-toggle-label { display: inline-flex; margin-left: auto; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 4px; cursor: pointer; font-size: 15px; color: var(--ink); }
  .header-call { display: none; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; margin: 0; padding: 6px 0 14px; }
  .nav a { padding: 12px 6px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-toggle:checked ~ .nav { display: flex; }
}

/* hero */
.hero { position: relative; color: #fff; background: var(--navy); overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,24,40,.88) 0%, rgba(10,24,40,.62) 48%, rgba(10,24,40,.15) 100%); }
.hero .wrap { position: relative; z-index: 1; padding-block: clamp(72px, 12vw, 140px); }
.hero h1 { color: #fff; max-width: 820px; }
.hero p { max-width: 600px; font-size: 18px; color: rgba(255,255,255,.9); }
.hero .eyebrow { color: #a9c6e8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.page-hero { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.page-hero .wrap { position: relative; z-index: 1; padding-block: 56px 48px; }
.page-hero h1 { color: #fff; margin-bottom: .4em; }
.page-hero p { color: rgba(255,255,255,.88); max-width: 720px; font-size: 17px; margin: 0; }
.page-hero .hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,24,40,.92) 0%, rgba(10,24,40,.72) 55%, rgba(10,24,40,.4) 100%); }
.crumbs { font-size: 13px; color: rgba(255,255,255,.7); margin-bottom: 14px; }
.crumbs a { color: rgba(255,255,255,.85); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.stat { padding: 22px 24px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-size: 28px; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.2; }
.stat b small { font-size: 15px; font-weight: 500; margin-left: 2px; }
.stat span { color: var(--muted); font-size: 14px; }
.stats-overlap { margin-top: -44px; position: relative; z-index: 2; box-shadow: 0 10px 30px rgba(15,34,56,.08); }
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .stats-overlap { margin-top: 24px; }
}

/* cards & grids */
.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); }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card-media { aspect-ratio: 4 / 3; background: var(--bg-soft); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media.svg { display: flex; align-items: center; justify-content: center; }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: .4em; }
.card-body p { color: var(--muted); font-size: 15px; }
.card-body .more { margin-top: auto; font-weight: 600; font-size: 15px; }
a.card { color: inherit; }
a.card:hover { text-decoration: none; border-color: var(--brand); }
a.card:hover .more { text-decoration: underline; }

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.split.rev > :first-child { order: 2; }
.split > *, .grid > *, .case-feature > *, .certs > *, .gallery > * { min-width: 0; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } .split.rev > :first-child { order: 0; } }

figure { margin: 0; }
figure img { border-radius: var(--radius); }
figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }

.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.feature-list li { padding-left: 18px; position: relative; margin: 0; }
.feature-list li::before { content: ""; position: absolute; left: 0; top: .72em; width: 7px; height: 7px; background: var(--brand); border-radius: 1px; }
.feature-list b { display: block; color: var(--ink); }

.point { border-top: 3px solid var(--brand); padding-top: 16px; }
.point h3 { font-size: 17px; }
.point p { color: var(--muted); font-size: 15px; margin: 0; }

/* process flow */
.flow { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 0; counter-reset: step; }
.flow li { display: flex; align-items: center; margin: 0; font-size: 15px; }
.flow li span { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 8px 12px; color: var(--ink); }
.flow li.key span { border-color: var(--brand); background: #eef3f9; font-weight: 600; }
.flow li:not(:last-child)::after { content: "→"; color: var(--brand); padding: 0 8px; font-weight: 600; }

.timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 0; border-top: 2px solid var(--brand); }
.timeline li { margin: 0; padding: 14px 10px 0 0; position: relative; }
.timeline li::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--brand); }
.timeline b { display: block; color: var(--brand-dark); font-size: 18px; font-variant-numeric: tabular-nums; }
.timeline span { font-size: 14px; color: var(--text); line-height: 1.5; display: block; }
@media (max-width: 860px) {
  .timeline { grid-template-columns: 1fr; border-top: 0; border-left: 2px solid var(--brand); padding-left: 18px; gap: 16px; }
  .timeline li { padding: 0; }
  .timeline li::before { left: -26px; top: 6px; }
}

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--bg-soft); color: var(--ink); font-weight: 600; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-note { font-size: 13px; color: var(--muted); margin-top: 10px; }

.kv { display: grid; grid-template-columns: max-content 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.kv dt, .kv dd { margin: 0; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.kv dt { background: var(--bg-soft); color: var(--muted); font-size: 14px; }
.kv dd { color: var(--ink); }
.kv dt:last-of-type, .kv dd:last-of-type { border-bottom: 0; }

.gallery { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.gallery img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.gallery.wide img { aspect-ratio: 4 / 3; }

.callout { border-left: 4px solid var(--brand); background: var(--bg-soft); padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; }
.callout p:last-child { margin: 0; }

.case-feature { display: grid; grid-template-columns: 1.3fr 1fr; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.case-feature > img { width: 100%; height: 100%; object-fit: cover; min-height: 300px; }
.case-feature .case-body { padding: 28px 30px; }
@media (max-width: 860px) { .case-feature { grid-template-columns: 1fr; } .case-feature > img { min-height: 0; aspect-ratio: 16/9; } }

.certs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.certs figure { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.certs img { border-radius: 2px; }
@media (max-width: 640px) { .certs { grid-template-columns: 1fr 1fr; } }

.diagram { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; overflow-x: auto; }
.diagram svg { display: block; width: 100%; max-width: 860px; margin: 0 auto; height: auto; min-width: 560px; }

/* cta band */
.cta-band { background: var(--navy); color: #fff; }
.cta-band .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; padding-block: 44px; }
.cta-band h2 { color: #fff; margin: 0 0 .2em; }
.cta-band p { margin: 0; color: rgba(255,255,255,.8); }
.cta-phone { font-size: 30px; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.cta-phone:hover { text-decoration: none; color: #ffd5b0; }
.cta-phone small { display: block; font-size: 14px; font-weight: 400; color: rgba(255,255,255,.75); letter-spacing: 0; }

/* footer */
.site-footer { background: #0a1827; color: rgba(255,255,255,.72); font-size: 14px; }
.site-footer .wrap { padding-block: 44px 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.site-footer a { color: rgba(255,255,255,.8); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; color: rgba(255,255,255,.55); }
.footer-legal a { color: rgba(255,255,255,.65); }
.footer-legal img { display: inline-block; width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }

.mobile-call { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)); }
  .mobile-call { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--accent); color: #fff; justify-content: center; align-items: center; gap: 8px; font-weight: 600; font-size: 17px; padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px)); }
  .mobile-call:hover { text-decoration: none; }
  .section { padding-block: 48px; }
}
