:root {
  color-scheme: light dark;
  --blue: #0b5bd3;
  --blue-strong: #0649ad;
  --blue-soft: #eaf2fd;
  --navy: #10243f;
  --ink: #142238;
  --muted: #5d6b7c;
  --line: #dce5ee;
  --surface: #f5f8fb;
  --panel: #ffffff;
  --panel-strong: #eef4fb;
  --shadow: 0 18px 48px rgb(37 76 122 / 0.12);
  --radius: 16px;
  --button-radius: 10px;
  --header-height: 68px;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --blue: #6da7ff;
    --blue-strong: #8bb8ff;
    --blue-soft: #142b49;
    --navy: #e8f1ff;
    --ink: #edf4ff;
    --muted: #a9b8ca;
    --line: #2a3e57;
    --surface: #0d1726;
    --panel: #132238;
    --panel-strong: #182b45;
    --shadow: 0 18px 48px rgb(0 0 0 / 0.22);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--surface); color: var(--ink); font-size: 16px; line-height: 1.72; padding-bottom: 68px; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--blue) 68%, white); outline-offset: 3px; }
.shell { width: min(100% - 32px, 1180px); margin-inline: auto; }
.visually-hidden { 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: fixed; left: 16px; top: -80px; z-index: 100; background: var(--panel); color: var(--ink); padding: 10px 14px; border-radius: var(--button-radius); box-shadow: var(--shadow); }
.skip-link:focus { top: 12px; }

.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-height); background: color-mix(in srgb, var(--panel) 92%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--line) 82%, transparent); backdrop-filter: blur(16px); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand img { width: 38px; height: 38px; }
.brand span { display: grid; line-height: 1.2; }
.brand strong { color: var(--navy); font-size: 15px; white-space: nowrap; }
.brand small { color: var(--muted); font-size: 9px; margin-top: 3px; white-space: nowrap; }
.nav-toggle { min-height: 44px; min-width: 56px; border: 1px solid var(--line); border-radius: var(--button-radius); background: var(--panel); font-size: 14px; font-weight: 700; cursor: pointer; }
.site-nav { position: absolute; top: calc(100% + 1px); left: 0; right: 0; display: none; padding: 14px 16px 20px; background: var(--panel); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
.site-nav[data-open] { display: grid; }
.site-nav > a { min-height: 46px; display: flex; align-items: center; padding-inline: 8px; color: var(--muted); font-weight: 650; }
.site-nav > a[aria-current="page"] { color: var(--blue); }

.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border: 1px solid var(--blue); border-radius: var(--button-radius); background: var(--blue); color: #f8fbff; font-weight: 750; line-height: 1.2; cursor: pointer; transition: transform 180ms ease, background 180ms ease, border-color 180ms ease; white-space: nowrap; }
.button:hover { background: var(--blue-strong); border-color: var(--blue-strong); }
.button:active { transform: translateY(1px); }
.button-secondary { background: transparent; color: var(--blue); }
.button-secondary:hover { background: var(--blue-soft); color: var(--blue-strong); }
.button-small { min-height: 42px; padding-inline: 15px !important; color: #f8fbff !important; }
.text-button { border: 0; padding: 0; background: none; text-align: left; cursor: pointer; }

.breadcrumbs { padding-block: 18px 4px; color: var(--muted); font-size: 13px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 8px; color: color-mix(in srgb, var(--muted) 55%, transparent); }
.breadcrumbs a:hover { color: var(--blue); }

.section { padding-block: 72px; }
.section-tight { padding-block: 48px; }
.section-white { background: var(--panel); }
.section-blue { background: var(--blue-soft); }
.section-header { max-width: 720px; margin-bottom: 32px; }
.section-header h2 { margin: 0; color: var(--navy); font-size: clamp(28px, 7vw, 48px); line-height: 1.12; letter-spacing: -0.035em; }
.section-header p { max-width: 62ch; margin: 14px 0 0; color: var(--muted); }
.eyebrow { display: block; margin-bottom: 12px; color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }

.hero { overflow: hidden; background: var(--panel); }
.hero-grid { display: grid; gap: 32px; padding-block: 36px 48px; }
.hero-copy h1 { max-width: 12ch; margin: 0; color: var(--navy); font-size: clamp(39px, 11vw, 72px); line-height: 1.03; letter-spacing: -0.055em; }
.hero-copy h1 span { color: var(--blue); }
.hero-copy > p { max-width: 28rem; margin: 18px 0 24px; color: var(--muted); font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-visual { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--panel-strong); box-shadow: var(--shadow); }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; object-position: 64% center; }

.trust-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--navy); color: var(--surface); }
.trust-item { min-height: 118px; padding: 22px 18px; border-right: 1px solid color-mix(in srgb, var(--surface) 15%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--surface) 15%, transparent); }
.trust-item strong { display: block; font-size: 19px; }
.trust-item span { display: block; margin-top: 4px; color: color-mix(in srgb, var(--surface) 72%, transparent); font-size: 13px; }

.services-grid { display: grid; gap: 14px; }
.service-card { display: grid; align-content: space-between; min-height: 210px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease; }
.service-card:nth-child(2), .service-card:nth-child(3) { background: var(--blue-soft); }
.service-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--blue) 42%, var(--line)); box-shadow: var(--shadow); }
.service-card h3 { margin: 0 0 10px; color: var(--navy); font-size: 23px; }
.service-card p { margin: 0; color: var(--muted); }
.service-card strong { margin-top: 24px; color: var(--blue); }

.process-grid { display: grid; gap: 0; counter-reset: process; }
.process-item { counter-increment: process; position: relative; padding: 24px 0 24px 54px; border-bottom: 1px solid var(--line); }
.process-item::before { content: counter(process, decimal-leading-zero); position: absolute; left: 0; top: 24px; color: var(--blue); font-weight: 800; }
.process-item h3 { margin: 0; color: var(--navy); font-size: 20px; }
.process-item p { margin: 8px 0 0; color: var(--muted); }

.case-feature { display: grid; gap: 22px; align-items: center; margin-bottom: 56px; }
.case-media { overflow: hidden; border-radius: var(--radius); background: var(--panel-strong); box-shadow: var(--shadow); }
.case-media img { width: 100%; max-height: 680px; object-fit: cover; object-position: top; }
.case-copy h3 { margin: 0; color: var(--navy); font-size: clamp(28px, 7vw, 46px); line-height: 1.12; }
.case-copy p { color: var(--muted); }
.case-copy .button { margin-top: 12px; }
.case-gallery { display: grid; gap: 12px; }
.case-gallery img { width: 100%; border-radius: var(--radius); background: var(--panel-strong); border: 1px solid var(--line); }

.guide-list { display: grid; border-top: 1px solid var(--line); }
.guide-link { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.guide-link h3 { margin: 0; color: var(--navy); font-size: 19px; }
.guide-link p { margin: 6px 0 0; color: var(--muted); }
.guide-link > span { color: var(--blue); font-weight: 800; }

.cta-band { padding-block: 64px; background: var(--blue); color: #f8fbff; }
.cta-layout { display: grid; gap: 22px; align-items: end; }
.cta-band h2 { max-width: 14ch; margin: 0; font-size: clamp(31px, 8vw, 54px); line-height: 1.08; letter-spacing: -0.04em; }
.cta-band p { max-width: 54ch; margin: 14px 0 0; color: rgb(248 251 255 / 0.82); }
.cta-band .button { background: #f8fbff; border-color: #f8fbff; color: #0649ad; }
.cta-band .button:hover { background: #eaf2fd; }

.page-hero { padding-block: 58px 48px; background: var(--panel); }
.page-hero-grid { display: grid; gap: 30px; align-items: center; }
.page-hero h1 { max-width: 14ch; margin: 0; color: var(--navy); font-size: clamp(38px, 10vw, 66px); line-height: 1.03; letter-spacing: -0.05em; }
.page-hero p { max-width: 60ch; color: var(--muted); font-size: 17px; }
.page-hero img { border-radius: var(--radius); box-shadow: var(--shadow); }
.content-prose { width: min(100% - 32px, 760px); margin-inline: auto; padding-block: 56px 84px; }
.content-prose h2 { margin: 48px 0 12px; color: var(--navy); font-size: 30px; line-height: 1.2; }
.content-prose h3 { margin: 34px 0 8px; color: var(--navy); }
.content-prose p, .content-prose li { color: var(--muted); }
.content-prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.content-prose img { margin-block: 28px; border-radius: var(--radius); border: 1px solid var(--line); }
.answer-box { margin-block: 24px; padding: 22px; border-left: 4px solid var(--blue); background: var(--blue-soft); border-radius: 0 var(--radius) var(--radius) 0; }
.answer-box strong { color: var(--navy); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 20px; cursor: pointer; color: var(--navy); font-weight: 750; }
.faq-list summary::after { content: "+"; color: var(--blue); font-size: 22px; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: 0 0 22px; color: var(--muted); }
.risk-note { padding: 20px; border: 1px solid color-mix(in srgb, #c77016 45%, var(--line)); border-radius: var(--radius); background: color-mix(in srgb, #f6b84a 13%, var(--panel)); color: var(--ink); }

.article-grid { display: grid; gap: 18px; }
.article-card { display: grid; gap: 18px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.article-card img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; border-radius: var(--radius); }
.article-card h2, .article-card h3 { margin: 0; color: var(--navy); line-height: 1.24; }
.article-card p { margin: 8px 0 0; color: var(--muted); }
.article-meta { color: var(--muted); font-size: 13px; }

.contact-grid { display: grid; gap: 14px; }
.contact-item { padding: 22px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.contact-item h2 { margin: 0 0 6px; color: var(--navy); font-size: 19px; }
.contact-item a, .contact-item button { color: var(--blue); font-size: 18px; font-weight: 800; }
.contact-item p { margin: 6px 0 0; color: var(--muted); }

.site-footer { padding: 56px 0 88px; background: var(--panel); border-top: 1px solid var(--line); }
.footer-grid { display: grid; gap: 32px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand strong { color: var(--navy); font-size: 18px; }
.footer-brand p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.footer-grid h2 { margin: 0 0 12px; color: var(--navy); font-size: 14px; }
.footer-grid > div:not(:first-child) { display: grid; align-content: start; gap: 8px; }
.footer-grid a, .footer-grid button, .footer-grid p { color: var(--muted); font-size: 13px; }
.footer-grid a:hover, .footer-grid button:hover { color: var(--blue); }
.footer-grid p { margin: 0; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 38px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }

.mobile-contact-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px max(12px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); background: color-mix(in srgb, var(--panel) 94%, transparent); border-top: 1px solid var(--line); backdrop-filter: blur(16px); }
.mobile-contact-bar a, .mobile-contact-bar button { min-height: 46px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--blue); border-radius: var(--button-radius); background: transparent; color: var(--blue); font-weight: 800; cursor: pointer; }
.mobile-contact-bar button { background: var(--blue); color: #f8fbff; }
.toast { position: fixed; left: 50%; bottom: 84px; z-index: 80; max-width: calc(100% - 32px); transform: translate(-50%, 16px); padding: 10px 14px; border-radius: var(--button-radius); background: var(--navy); color: var(--surface); box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity 180ms ease, transform 180ms ease; }
.toast[data-visible] { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 640px) {
  .services-grid { grid-template-columns: 1.25fr 0.75fr; }
  .service-card:nth-child(3) { grid-column: 1; }
  .service-card:nth-child(4) { grid-column: 2; grid-row: 2; }
  .process-grid { grid-template-columns: 1fr 1fr; column-gap: 34px; }
  .case-gallery { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .article-card { grid-template-columns: 0.72fr 1.28fr; align-items: center; }
}

@media (min-width: 768px) {
  body { padding-bottom: 0; }
  .shell { width: min(100% - 56px, 1180px); }
  .hero-grid { grid-template-columns: 0.9fr 1.1fr; align-items: center; padding-block: 64px; }
  .hero-visual { aspect-ratio: auto; height: 520px; }
  .trust-strip { grid-template-columns: repeat(4, 1fr); }
  .trust-item { border-bottom: 0; }
  .case-feature { grid-template-columns: 1.1fr 0.9fr; gap: 52px; }
  .case-feature:nth-child(even) .case-media { order: 2; }
  .page-hero-grid { grid-template-columns: 1fr 0.85fr; }
  .cta-layout { grid-template-columns: 1fr auto; }
  .footer-grid { grid-template-columns: 1.45fr repeat(3, 1fr); }
  .mobile-contact-bar { display: none; }
  .site-footer { padding-bottom: 34px; }
}

@media (min-width: 1200px) {
  .hero { min-height: 0; }
  .hero-shell { width: min(100% - 80px, 1480px); }
  .hero-grid { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); min-height: clamp(640px, calc(100dvh - 168px), 760px); gap: clamp(48px, 4vw, 80px); padding-block: 72px 64px; }
  .hero-copy h1 { max-width: none; font-size: clamp(68px, 4.1vw, 82px); }
  .hero-copy > p { max-width: 34rem; font-size: 18px; }
  .hero-visual { height: clamp(520px, 42vw, 640px); }
}

@media (max-width: 420px) {
  .contact-page-hero h1 { max-width: 100%; font-size: 36px; letter-spacing: -0.045em; text-wrap: balance; }
  .article-detail-page .page-hero h1 { max-width: 100%; font-size: 32px; line-height: 1.08; letter-spacing: -0.04em; text-wrap: balance; }
  .article-detail-page .breadcrumbs li:last-child { display: none; }
}

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .site-nav { position: static; display: flex; align-items: center; gap: 18px; padding: 0; background: transparent; border: 0; box-shadow: none; }
  .site-nav > a { min-height: 42px; padding: 0; font-size: 14px; white-space: nowrap; }
  .services-grid { grid-template-columns: 1.35fr 0.65fr 1fr; grid-template-rows: 1fr 1fr; }
  .service-card:first-child { grid-row: 1 / 3; min-height: 440px; }
  .service-card:nth-child(2) { grid-column: 2 / 4; }
  .service-card:nth-child(3) { grid-column: 2; grid-row: 2; }
  .service-card:nth-child(4) { grid-column: 3; grid-row: 2; }
  .article-grid { grid-template-columns: 1.2fr 0.8fr; }
  .article-card:first-child { grid-row: span 2; grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
