/* Aegis Service Corp — site styles
   Modern, clean, trustworthy. Brand blue comes from the Aegis shield logo (#0054A4). */

:root {
  --brand: #0054a4;
  --brand-600: #00498f;
  --brand-700: #003b74;
  --brand-50: #eef5fc;
  --brand-100: #dbe9f8;
  --navy: #0b1b33;
  --ink: #1f2a3c;
  --text: #3d4a5c;
  --muted: #67748a;
  --line: #e2e8f0;
  --bg: #ffffff;
  --tint: #f5f8fc;
  --gold: #f5b301;
  --success: #12805c;

  --font: "Inter", "Noto Sans TC", system-ui, -apple-system, "Segoe UI", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(11, 27, 51, .06), 0 1px 3px rgba(11, 27, 51, .05);
  --shadow: 0 10px 30px -12px rgba(11, 27, 51, .18), 0 2px 6px rgba(11, 27, 51, .05);
  --shadow-lg: 0 30px 60px -20px rgba(11, 27, 51, .28);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 76px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
html[lang="zh-Hant"] body { line-height: 1.8; letter-spacing: .01em; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-700); }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.015em; font-weight: 700; text-wrap: balance; }
html[lang="zh-Hant"] :is(h1, h2, h3, h4) { letter-spacing: 0; line-height: 1.35; }
h1 { font-size: clamp(2.1rem, 1.4rem + 2.8vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.35rem); }
h3, .h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, white); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; color: #fff; }
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: calc(780px + var(--gutter) * 2); }
.center { text-align: center; }
.muted { color: var(--muted); font-size: .95rem; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
html[lang="zh-Hant"] .eyebrow { letter-spacing: .12em; font-size: .85rem; }
.lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--text); max-width: 46rem; }

/* icons */
.icon { width: 24px; height: 24px; flex: none; }
.icon--sm { width: 18px; height: 18px; }
.icon--xs { width: 16px; height: 16px; }
.icon--star { width: 18px; height: 18px; fill: var(--gold); stroke: var(--gold); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 999px; border: 1.5px solid transparent; font: inherit; font-weight: 600; font-size: .98rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: .92rem; }
.btn--lg { min-height: 52px; padding: 14px 26px; font-size: 1.02rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px -8px rgba(0, 84, 164, .6); }
.btn--primary:hover { background: var(--brand-700); color: #fff; }
.btn--ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn--light { background: #fff; color: var(--brand-700); }
.btn--light:hover { background: var(--brand-50); color: var(--brand-700); }
.btn--outline-light { color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn--outline-light:hover { background: rgba(255, 255, 255, .1); border-color: #fff; color: #fff; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px -12px rgba(11, 27, 51, .2); }
.site-header__inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; text-decoration: none; }
.brand img { width: 150px; height: auto; }
.brand__zh { padding-left: 12px; border-left: 1.5px solid var(--line); font-size: 1.2rem; font-weight: 700; letter-spacing: .12em; color: var(--navy); line-height: 1.2; white-space: nowrap; }
@media (max-width: 1240px) and (min-width: 1101px) { html[lang="zh-Hant"] .main-nav__link { padding-inline: 9px; } }
@media (max-width: 420px) { .brand { gap: 8px; } .brand img { width: 118px; } .brand__zh { padding-left: 8px; font-size: 1rem; letter-spacing: .06em; } .lang-switch .icon { display: none; } }
.main-nav { margin-left: auto; }
.main-nav__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav__link { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; padding: 10px 12px; border: 0; background: none; font: inherit; font-size: .96rem; font-weight: 500; color: var(--ink); text-decoration: none; border-radius: 8px; cursor: pointer; }
.main-nav__link:hover, .main-nav__link[aria-expanded="true"], .main-nav__link[aria-current="page"] { color: var(--brand); background: var(--brand-50); }
.main-nav__link .icon { transition: transform .2s; }
.main-nav__link[aria-expanded="true"] .icon { transform: rotate(180deg); }
.main-nav__mobile-extra { display: none; }
.has-mega { position: relative; }
.mega { position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 6px); width: min(640px, 92vw); padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s; }
.mega.is-open { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega__list { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; list-style: none; margin: 0; padding: 0; }
.mega__list a { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 12px; text-decoration: none; color: var(--ink); }
.mega__list a:hover { background: var(--tint); }
.mega__list .icon { color: var(--brand); margin-top: 3px; }
.mega__list strong { display: block; font-weight: 600; font-size: .95rem; }
.mega__list small { display: block; color: var(--muted); font-size: .82rem; line-height: 1.45; }
.mega__all { display: flex; align-items: center; gap: 6px; margin-top: 6px; padding: 12px; border-top: 1px solid var(--line); font-weight: 600; font-size: .92rem; text-decoration: none; }
.site-header__actions { display: flex; align-items: center; gap: 8px; }
.header-phone, .lang-switch { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; white-space: nowrap; border-radius: 8px; font-size: .92rem; font-weight: 500; color: var(--ink); text-decoration: none; }
.header-phone:hover, .lang-switch:hover { color: var(--brand); background: var(--brand-50); }
.header-phone .icon, .lang-switch .icon { color: var(--brand); }
.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--line); background: #fff; border-radius: 12px; color: var(--navy); cursor: pointer; }
.nav-toggle .icon:last-child { display: none; }
.nav-toggle[aria-expanded="true"] .icon:first-child { display: none; }
.nav-toggle[aria-expanded="true"] .icon:last-child { display: block; }

@media (max-width: 1180px) {
  .header-phone span { display: none; }
}
@media (max-width: 1100px) {
  /* backdrop-filter would make the fixed drawer position relative to the header */
  .site-header { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav-toggle { display: inline-flex; }
  .header-cta, .header-phone { display: none; }
  .site-header__actions { margin-left: auto; }
  .main-nav { position: fixed; inset: var(--header-h) 0 0 0; margin: 0; padding: 16px var(--gutter) 32px; background: #fff; overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .25s ease, visibility .25s; }
  .main-nav.is-open { transform: none; visibility: visible; }
  .main-nav__list { flex-direction: column; gap: 0; }
  .main-nav__list > li { border-bottom: 1px solid var(--line); }
  .main-nav__link { width: 100%; justify-content: space-between; padding: 16px 4px; font-size: 1.05rem; border-radius: 0; }
  .main-nav__link:hover, .main-nav__link[aria-expanded="true"], .main-nav__link[aria-current="page"] { background: none; }
  .mega { position: static; transform: none; width: auto; padding: 0 0 12px; border: 0; box-shadow: none; opacity: 1; visibility: visible; display: none; }
  .mega.is-open { display: block; transform: none; }
  .mega__list { grid-template-columns: 1fr; }
  .mega__list small { display: none; }
  .mega__list a { padding: 10px 8px; }
  .main-nav__mobile-extra { display: grid; gap: 10px; margin-top: 24px; }
  body.nav-open { overflow: hidden; }
}

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(40px, 6vw, 88px) 0 clamp(48px, 6vw, 96px); background: radial-gradient(1200px 500px at 85% -10%, var(--brand-50), transparent 60%), linear-gradient(180deg, #fff, var(--tint)); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.hero__quick { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 32px 0 0; }
.hero__quick a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-size: .9rem; font-weight: 500; text-decoration: none; box-shadow: var(--shadow-sm); transition: border-color .2s, color .2s; }
.hero__quick a:hover { border-color: var(--brand); color: var(--brand); }
.hero__quick .icon { color: var(--brand); }
.hero__media { position: relative; }
.hero__media img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; object-position: center 30%; border-radius: 28px; box-shadow: var(--shadow-lg); }
.hero__badge { position: absolute; left: -28px; bottom: 36px; display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: #fff; border-radius: 16px; box-shadow: var(--shadow); }
.hero__badge strong { display: block; color: var(--navy); font-size: .98rem; }
.hero__badge small { display: block; color: var(--muted); font-size: .82rem; }
.hero__badge-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--brand); color: #fff; }
.hero__badge--rating { left: auto; right: -20px; bottom: auto; top: 32px; flex-direction: column; align-items: flex-start; gap: 4px; }
.hero__badge--rating .stars { display: flex; gap: 2px; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { max-width: 520px; }
  .hero__media img { aspect-ratio: 4 / 3.4; }
  .hero__badge { left: 12px; bottom: 12px; padding: 10px 14px; }
  .hero__badge--rating { left: auto; bottom: auto; right: 12px; top: 12px; }
}

/* ---------- stats ---------- */
.stats { padding: 0 0 8px; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: -40px; position: relative; box-shadow: var(--shadow); }
.stat { background: #fff; padding: 24px 20px; text-align: center; }
.stat strong { display: block; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); color: var(--brand); line-height: 1.1; letter-spacing: -.02em; }
.stat span { display: block; margin-top: 6px; color: var(--muted); font-size: .9rem; }
.stats--card { margin-top: 20px; padding: 0; }
.stats__grid--2 { grid-template-columns: 1fr 1fr; margin-top: 0; box-shadow: none; }
.stats__grid--2 .stat { padding: 18px 12px; }
@media (max-width: 700px) { .stats__grid { grid-template-columns: 1fr 1fr; } }

/* ---------- partners ---------- */
.partners { padding: clamp(36px, 5vw, 56px) 0; }
.partners__title { text-align: center; margin: 0 0 20px; color: var(--muted); font-size: .9rem; font-weight: 500; }
.partners__list { display: grid; grid-template-columns: repeat(8, 1fr); gap: 16px 28px; align-items: center; list-style: none; margin: 0; padding: 0; }
.partners__list img { width: 100%; max-width: 130px; height: 48px; object-fit: contain; margin: 0 auto; filter: grayscale(1); opacity: .7; mix-blend-mode: multiply; transition: filter .2s, opacity .2s; }
.partners__list img:hover { filter: none; opacity: 1; }
.partners + .section { padding-top: clamp(24px, 3vw, 40px); }
@media (max-width: 900px) { .partners__list { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 480px) { .partners__list { gap: 14px 16px; } .partners__list img { height: 36px; } }

/* ---------- sections ---------- */
.section { padding: clamp(56px, 7vw, 104px) 0; }
.section--tint { background: var(--tint); }
.section--flush { padding-top: 0; }
.section--content { padding-top: clamp(40px, 5vw, 64px); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head h2 { margin: 0; max-width: 34rem; }
/* Chinese headings are short: let them use the full row instead of wrapping early */
html[lang="zh-Hant"] .section-head h2 { max-width: none; }
.section-head--center { flex-direction: column; align-items: center; text-align: center; }
.section-head--center h2 { max-width: 40rem; }
.more-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; margin-top: 24px; }
.section-head .more-link { margin: 0; }
.rating { display: flex; align-items: center; gap: 2px; margin: 4px 0 0; color: var(--navy); }
.rating strong { margin-left: 8px; }

.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1020px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--3, .grid--4 { grid-template-columns: 1fr; } }

/* tabs */
.tabs { display: inline-flex; padding: 4px; background: var(--tint); border: 1px solid var(--line); border-radius: 999px; }
.tabs button { padding: 10px 20px; border: 0; background: none; border-radius: 999px; font: inherit; font-weight: 600; font-size: .95rem; color: var(--muted); cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.tabs button[aria-selected="true"] { background: #fff; color: var(--brand); box-shadow: var(--shadow-sm); }

/* ---------- cards ---------- */
.card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text); transition: transform .25s, box-shadow .25s, border-color .25s; }
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; color: var(--text); }
.card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--brand-50); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
a.card:hover .card__media img { transform: scale(1.04); }
.card__placeholder { display: grid; place-items: center; height: 100%; color: var(--brand); background: linear-gradient(135deg, var(--brand-50), var(--brand-100)); }
.card__placeholder .icon { width: 56px; height: 56px; stroke-width: 1.4; }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 22px; }
.card__icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 16px; border-radius: 14px; background: var(--brand-50); color: var(--brand); transition: background .25s, color .25s; }
a.card:hover .card__icon { background: var(--brand); color: #fff; }
/* Full coverage cards: icon overlaps the photo edge */
.coverage-card:not(.coverage-card--compact) .card__icon { position: relative; margin: -46px 0 14px; border: 4px solid #fff; box-sizing: content-box; background: var(--brand-50); }
.card__title { font-size: 1.15rem; margin: 0 0 8px; }
.card__text { color: var(--muted); font-size: .95rem; margin: 0 0 16px; flex: 1; }
.card__link { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; font-weight: 600; font-size: .92rem; color: var(--brand); }
.card__link .icon { transition: transform .2s; }
a.card:hover .card__link .icon { transform: translateX(3px); }
.card--plain { background: #fff; }
.quote-tile { background: linear-gradient(150deg, var(--brand), var(--brand-700)); border: 0; }
.quote-tile .card__title { color: #fff; }
.quote-tile .card__text { color: rgba(255, 255, 255, .82); }
.quote-tile .card__icon { background: rgba(255, 255, 255, .16); color: #fff; }
.quote-tile .card__link { color: #fff; }
a.quote-tile:hover .card__icon { background: #fff; color: var(--brand); }

/* ---------- split / features ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--top { align-items: start; }
.split__media img { width: 100%; border-radius: 24px; box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; }
.split__media--sticky { position: sticky; top: calc(var(--header-h) + 24px); }
.feature-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 22px; }
.feature-list li { display: flex; gap: 16px; }
.feature-list__icon { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 14px; background: #fff; color: var(--brand); box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.feature-list h3 { font-size: 1.08rem; margin: 2px 0 4px; }
.feature-list p { margin: 0; color: var(--muted); font-size: .96rem; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split__media--sticky { position: static; } }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; list-style: none; padding: 0; margin: 0 0 40px; counter-reset: step; }
.step { position: relative; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.step__num { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 18px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; }
.step h3 { font-size: 1.12rem; }
.step p { margin: 0; color: var(--muted); font-size: .96rem; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 47px; right: -24px; width: 24px; height: 2px; background: var(--brand-100); }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } .step:not(:last-child)::after { display: none; } }

/* testimonials */
.testimonials { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.testimonial { position: relative; display: flex; flex-direction: column; margin: 0; padding: 28px 24px 24px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.testimonial__mark { width: 32px; height: 32px; color: var(--brand-100); margin-bottom: 8px; stroke-width: 2.2; }
.testimonial blockquote { margin: 0 0 20px; flex: 1; }
.testimonial blockquote p { margin: 0; color: var(--ink); font-size: .97rem; }
.testimonial figcaption { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--navy); font-size: .95rem; }
.avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand-50); color: var(--brand); font-weight: 700; }
@media (max-width: 1100px) { .testimonials { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .testimonials { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 86%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin: 0 calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .testimonials::-webkit-scrollbar { display: none; }
  .testimonial { scroll-snap-align: center; }
}

/* claim band + CTA band */
.claim-band { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; padding: 28px 32px; background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: var(--radius); }
.claim-band h2 { font-size: 1.35rem; margin: 0 0 4px; }
.claim-band p { margin: 0; color: var(--text); }
.claim-band__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--brand); color: #fff; }
.claim-band__actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 860px) { .claim-band { grid-template-columns: 1fr; padding: 24px; } }

.cta-band { padding: clamp(48px, 6vw, 80px) 0; background: radial-gradient(800px 300px at 90% 0%, rgba(255, 255, 255, .12), transparent 60%), linear-gradient(120deg, var(--brand-700), var(--brand)); color: #fff; }
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, .85); max-width: 40rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- page hero / breadcrumbs ---------- */
.page-hero { padding: clamp(36px, 5vw, 64px) 0 clamp(40px, 5vw, 64px); background: linear-gradient(180deg, var(--tint), #fff); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); }
.page-hero .lead { margin: 0; }
.page-hero--article h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.75rem); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 20px; font-size: .88rem; color: var(--muted); }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: #b4bfcd; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand); }

.detail-hero { padding: clamp(32px, 4vw, 56px) 0; background: linear-gradient(180deg, var(--tint), #fff); border-bottom: 1px solid var(--line); }
.detail-hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.detail-hero__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--brand); color: #fff; margin-bottom: 18px; box-shadow: 0 10px 24px -10px rgba(0, 84, 164, .7); }
.detail-hero h1 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.1rem); }
.detail-hero__media img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow); }
@media (max-width: 900px) { .detail-hero__grid { grid-template-columns: 1fr; } }

/* ---------- content layouts ---------- */
.with-aside { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 64px); align-items: start; }
.with-aside--wide { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.with-aside--form { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }
@media (max-width: 960px) { .with-aside, .with-aside--wide, .with-aside--form { grid-template-columns: 1fr; } .aside { position: static; } }

.aside-card { padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.aside-card__title { display: flex; align-items: center; gap: 8px; font-size: 1.1rem; margin: 0 0 10px; }
.aside-card__title .icon { color: var(--brand); }
.aside-card p:last-child { margin-bottom: 0; }
.aside-card--brand { background: linear-gradient(150deg, var(--brand), var(--brand-700)); border: 0; color: rgba(255, 255, 255, .88); }
.aside-card--brand .aside-card__title { color: #fff; }
.aside-card--brand p { font-size: .95rem; }
.aside-card--brand .btn { margin-top: 8px; }
.aside-card--brand .call-box__number { color: #fff; }
.aside-card__phone { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 14px; color: #fff; font-weight: 600; text-decoration: none; }
.aside-card__phone:hover { color: #fff; text-decoration: underline; }
.related-list { list-style: none; padding: 0; margin: 0; }
.related-list a { display: flex; align-items: center; gap: 10px; padding: 10px 8px; margin: 0 -8px; border-radius: 10px; color: var(--ink); font-weight: 500; font-size: .95rem; text-decoration: none; }
.related-list a:hover { background: var(--tint); color: var(--brand); }
.related-list .icon { color: var(--brand); }

/* prose (Markdown content) */
.prose { color: var(--text); font-size: 1.02rem; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.45rem, 1.2rem + .8vw, 1.85rem); margin: 2em 0 .6em; }
.prose h3 { font-size: 1.2rem; margin: 1.8em 0 .5em; }
.prose h4 { font-size: 1.05rem; margin: 1.5em 0 .4em; }
.prose h2 + h3 { margin-top: 1em; }
.prose ul { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 10px; }
.prose li { position: relative; padding: 14px 16px 14px 46px; background: var(--tint); border-radius: 12px; }
.prose li::before { content: ""; position: absolute; left: 16px; top: 18px; width: 18px; height: 18px; border-radius: 50%; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat; }
.prose li strong { color: var(--navy); }
.prose--article li { padding: 0 0 0 30px; background: none; }
.prose--article li::before { left: 0; top: 6px; }
.prose a { font-weight: 500; }

.article-image { width: 100%; border-radius: 20px; margin-bottom: 36px; aspect-ratio: 16 / 9; object-fit: cover; }
.article-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 48px; padding: 24px; border-radius: var(--radius); background: var(--brand-50); }
.article-cta p { margin: 0; flex: 1 1 320px; }
.note { padding: 14px 18px; margin: 0 0 24px; border-left: 3px solid var(--brand); background: var(--tint); border-radius: 0 10px 10px 0; font-size: .95rem; color: var(--text); }

/* contact / claim */
.contact-card { padding: 28px; }
.contact-card .card__title { font-size: 1.05rem; color: var(--muted); font-weight: 600; }
.contact-card__value { font-size: 1.2rem; font-weight: 600; color: var(--navy); margin: 0 0 6px; word-break: break-word; }
.contact-card .card__text { flex: 0; margin: 0; }
.contact-card .card__link { margin-top: 12px; }
.contact-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.wechat { display: flex; gap: 20px; align-items: center; }
.wechat img { width: 120px; border-radius: 10px; border: 1px solid var(--line); }
@media (max-width: 760px) { .contact-detail { grid-template-columns: 1fr; } }

.call-box { display: flex; gap: 16px; align-items: center; padding: 22px 24px; border-radius: var(--radius); background: linear-gradient(150deg, var(--brand), var(--brand-700)); color: #fff; margin-bottom: 20px; }
.call-box__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: rgba(255, 255, 255, .16); }
.call-box__label { margin: 0; color: rgba(255, 255, 255, .8); font-size: .9rem; }
.call-box__number { font-size: 1.7rem; font-weight: 700; color: #fff; text-decoration: none; letter-spacing: -.01em; }
.call-box__number:hover { color: #fff; text-decoration: underline; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .icon { flex: none; margin-top: 4px; color: #fff; background: var(--success); border-radius: 50%; padding: 3px; width: 20px; height: 20px; }

/* forms */
.form-card { padding: clamp(24px, 3vw, 36px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 8px 0 20px; }
.field { display: grid; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 600; font-size: .92rem; color: var(--ink); padding: 0; }
.req { color: #c62828; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; font: inherit; font-size: 1rem; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(0, 84, 164, .12); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #c62828; }
.field--inline { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.field--inline legend { width: 100%; margin-bottom: 6px; }
.choice { display: inline-flex; align-items: center; gap: 8px; font-weight: 500 !important; cursor: pointer; }
.choice input { width: 18px; height: 18px; min-height: 0; accent-color: var(--brand); }
.form-consent { font-size: .85rem; color: var(--muted); }
.form-notice { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; padding: 14px 16px; border-radius: 12px; font-size: .95rem; }
.form-notice[hidden] { display: none; }
.form-notice p { margin: 0; }
.form-notice .icon { margin-top: 3px; }
.form-notice[data-state="success"] { background: #e9f7f1; border: 1px solid #a7dcc6; color: #0b5a40; }
.form-notice[data-state="error"] { background: #fff4e5; border: 1px solid #f6d58a; color: #6b4a00; }
.form-notice[data-state="success"] .form-notice__icon--err, .form-notice[data-state="error"] .form-notice__icon--ok { display: none; }
.btn:disabled { opacity: .7; cursor: progress; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-card { position: relative; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* 404 */
.not-found { padding: clamp(80px, 12vw, 160px) 0; }
.not-found__icon { display: inline-grid; place-items: center; width: 72px; height: 72px; margin-bottom: 20px; border-radius: 20px; background: var(--brand-50); color: var(--brand); }
.not-found .lead { margin: 0 auto 28px; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .72); font-size: .94rem; }
.nowrap { white-space: nowrap; }
.footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 1.1fr .8fr 1.6fr; gap: 32px; padding-top: 64px; padding-bottom: 48px; }
.footer__brand img { width: 140px; margin-bottom: 16px; }
.footer__brand p { max-width: 22rem; }
.footer__title { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: rgba(255, 255, 255, .72); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer__contact .icon { margin-top: 3px; color: #7fb3e6; }
.footer__social { display: flex; gap: 10px; margin-top: 18px; }
.footer__social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .08); }
.footer__social a:hover { background: var(--brand); }
.footer__social .icon { width: 18px; height: 18px; }
.footer__bottom { padding-top: 20px; padding-bottom: 28px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; }
.footer__bottom p { margin: 0; }
@media (max-width: 1020px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- motion ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
