:root {
  --ink: #102a43;
  --ink-2: #243b53;
  --muted: #526d82;
  --paper: #f7f4ec;
  --white: #fffdf8;
  --line: #d8d4c9;
  --teal: #276c66;
  --teal-soft: #dfeeea;
  --coral: #a9422e;
  --sand: #e9dfc8;
  --shadow: 0 24px 70px rgba(16, 42, 67, .10);
  --radius: 24px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 999; padding: 10px 16px; color: white; background: var(--ink); border-radius: 8px; }
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247,244,236,.92); backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(16,42,67,.09);
}
.nav { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 13px; font-weight: 750; letter-spacing: .02em; }
.brand img { width: 44px; height: 44px; }
.brand small { display: block; color: var(--muted); font-size: 10px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; line-height: 1.2; }
.nav-links { display: flex; align-items: center; gap: 24px; font-size: 14px; font-weight: 650; }
.nav-links a { position: relative; padding: 10px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 4px; height: 2px; background: var(--coral); transition: right .2s ease; }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { right: 0; }
.nav-cta { padding: 10px 16px !important; border: 1px solid var(--ink); border-radius: 99px; }
.nav-cta::after { display: none; }
.menu-toggle { display: none; border: 0; background: none; padding: 8px; color: var(--ink); }

.hero { position: relative; overflow: hidden; padding: 108px 0 86px; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(16,42,67,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(16,42,67,.04) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: linear-gradient(to bottom, black, transparent 82%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.12fr .88fr; align-items: center; gap: 80px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--teal); font-weight: 750; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
h1, h2, h3 { margin: 0; line-height: 1.18; letter-spacing: -.03em; }
h1 { margin-top: 22px; font-size: clamp(44px, 6vw, 78px); font-weight: 800; }
.hero-lead { max-width: 700px; margin: 26px 0 0; color: var(--ink-2); font-size: clamp(18px, 2.2vw, 22px); line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 99px; border: 1px solid var(--ink); font-weight: 750; transition: transform .2s, box-shadow .2s, background .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(16,42,67,.14); }
.btn-primary { color: var(--white); background: var(--ink); }
.btn-secondary { background: rgba(255,255,255,.45); }
.hero-card { position: relative; min-height: 500px; border-radius: 40px; background: var(--ink); box-shadow: var(--shadow); overflow: hidden; }
.hero-card::before { content: ""; position: absolute; width: 480px; height: 480px; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; left: 45%; top: -24%; }
.hero-card::after { content: ""; position: absolute; width: 300px; height: 300px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; left: -24%; bottom: -18%; }
.river-mark { position: absolute; inset: 0; display: grid; place-items: center; }
.river-mark svg { width: 78%; }
.hero-note { position: absolute; left: 32px; right: 32px; bottom: 30px; color: var(--white); border-top: 1px solid rgba(255,255,255,.25); padding-top: 18px; display: flex; justify-content: space-between; gap: 24px; font-size: 13px; }
.hero-note strong { display: block; font-size: 16px; }

.section { padding: 94px 0; }
.section-soft { background: var(--white); border-block: 1px solid rgba(16,42,67,.08); }
.section-dark { background: var(--ink); color: var(--white); }
.section-head { display: grid; grid-template-columns: .72fr 1.28fr; gap: 80px; align-items: end; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(34px, 4.4vw, 56px); }
.section-head p { margin: 0; color: var(--muted); font-size: 17px; }
.section-dark .section-head p { color: #b8c8d8; }

.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.42); overflow: hidden; }
.stat { padding: 28px; border-right: 1px solid var(--line); }
.stat:last-child { border: 0; }
.stat strong { display: block; font-size: 26px; letter-spacing: -.03em; }
.stat span { color: var(--muted); font-size: 13px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { position: relative; min-height: 310px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); transition: transform .2s, box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-5px); border-color: rgba(47,127,120,.55); box-shadow: var(--shadow); }
.card-index { color: var(--coral); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.card h3 { margin-top: 52px; font-size: 25px; }
.card p { margin: 16px 0 0; color: var(--muted); }
.card-link { position: absolute; left: 30px; bottom: 26px; color: var(--teal); font-size: 14px; font-weight: 750; }

.credential { display: grid; grid-template-columns: .85fr 1.15fr; gap: 54px; align-items: stretch; }
.credential-badge { min-height: 430px; padding: 42px; border-radius: 32px; background: var(--teal-soft); color: var(--ink); display: flex; flex-direction: column; justify-content: space-between; }
.credential-seal { width: 88px; height: 88px; display: grid; place-items: center; border: 2px solid var(--teal); border-radius: 50%; color: var(--teal); font-size: 13px; text-align: center; line-height: 1.25; transform: rotate(-7deg); }
.credential-badge h3 { font-size: 32px; max-width: 420px; }
.credential-copy { padding: 36px 0; }
.credential-copy h2 { font-size: clamp(36px, 4.2vw, 52px); }
.credential-copy p { color: #cad8e4; font-size: 17px; }
.check-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 28px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .65em; width: 10px; height: 10px; border-radius: 50%; background: var(--coral); }

.project { display: grid; grid-template-columns: 1fr 1fr; min-height: 450px; border-radius: 32px; overflow: hidden; background: var(--sand); }
.project-copy { padding: 54px; }
.project-copy h3 { font-size: clamp(32px, 4vw, 48px); }
.project-copy p { color: var(--ink-2); font-size: 17px; }
.project-visual { position: relative; background: #173b53; min-height: 360px; overflow: hidden; }
.phone { position: absolute; width: 230px; height: 440px; border-radius: 40px; border: 8px solid #0c2031; background: #f8f5ed; box-shadow: 0 30px 70px rgba(0,0,0,.32); left: 50%; top: 50%; transform: translate(-50%,-40%) rotate(5deg); padding: 26px 18px; }
.phone::before { content: ""; display: block; width: 70px; height: 6px; margin: 0 auto 32px; border-radius: 20px; background: #0c2031; }
.phone-line { height: 11px; border-radius: 9px; background: #d7e3e4; margin: 11px 0; }
.phone-line.wide { width: 88%; background: #2f7f78; }
.phone-block { height: 105px; border-radius: 18px; margin: 22px 0; background: #e9dfc8; }

.insights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.insight { padding-top: 22px; border-top: 2px solid var(--ink); }
.insight time { color: var(--muted); font-size: 12px; }
.insight h3 { margin-top: 16px; font-size: 23px; }
.insight p { color: var(--muted); }
.insight a { color: var(--teal); font-weight: 750; font-size: 14px; }

.cta-panel { padding: 62px; border-radius: 36px; color: var(--white); background: var(--ink); display: grid; grid-template-columns: 1.4fr .6fr; align-items: center; gap: 40px; }
.cta-panel h2 { font-size: clamp(34px, 5vw, 58px); }
.cta-panel p { color: #bdcddd; }
.cta-panel .btn { color: var(--ink); background: var(--white); border-color: var(--white); justify-self: end; }

.page-hero { padding: 90px 0 62px; border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 900px; }
.page-hero p { max-width: 780px; color: var(--muted); font-size: 19px; }
.breadcrumb { color: var(--muted); font-size: 13px; }
.breadcrumb a { color: var(--teal); }
.content-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 76px; align-items: start; }
.toc { position: sticky; top: 110px; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.45); }
.toc strong { display: block; margin-bottom: 12px; }
.toc a { display: block; padding: 7px 0; color: var(--muted); font-size: 14px; }
.toc a:hover { color: var(--teal); }
.prose { max-width: 820px; }
.prose h2 { margin: 58px 0 18px; font-size: 34px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 36px 0 12px; font-size: 24px; }
.prose p, .prose li { color: var(--ink-2); font-size: 16px; }
.prose blockquote { margin: 34px 0; padding: 26px 28px; border-left: 4px solid var(--coral); background: var(--white); color: var(--ink-2); }
.prose table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 14px; }
.prose th, .prose td { padding: 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--ink); }
.tag { display: inline-flex; padding: 5px 10px; margin: 4px 4px 4px 0; border-radius: 99px; color: var(--teal); background: var(--teal-soft); font-size: 12px; font-weight: 700; }
.notice { padding: 22px; border: 1px solid #d7b9a9; border-radius: 16px; background: #fff7f2; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.contact-card { min-height: 250px; padding: 34px; border: 1px solid var(--line); border-radius: 24px; background: var(--white); }
.contact-card h3 { font-size: 24px; }
.contact-card p { color: var(--muted); }
.contact-card a { color: var(--teal); font-weight: 750; }

.site-footer { padding: 68px 0 28px; color: #c8d6e3; background: #0c2132; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .7fr .7fr; gap: 70px; }
.footer-brand { color: var(--white); }
.footer-brand p { color: #9fb3c7; max-width: 500px; }
.footer-col strong { color: var(--white); }
.footer-col a { display: block; padding: 5px 0; color: #9fb3c7; font-size: 14px; }
.footer-col a:hover { color: white; }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 20px; color: #829ab1; font-size: 12px; }

.reveal { opacity: 0; transform: translateY(18px); 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 { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav-links { display: none; position: absolute; left: 20px; right: 20px; top: 70px; padding: 22px; flex-direction: column; align-items: stretch; gap: 4px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
  .nav-links.is-open { display: flex; }
  .hero { padding-top: 70px; }
  .hero-grid, .section-head, .credential, .project, .content-grid, .cta-panel { grid-template-columns: 1fr; }
  .hero-grid { gap: 44px; }
  .hero-card { min-height: 420px; }
  .section-head { gap: 18px; }
  .cards, .insights { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .toc { position: static; }
  .cta-panel .btn { justify-self: start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .brand small { display: none; }
  h1 { font-size: 42px; }
  .hero-card { min-height: 350px; border-radius: 28px; }
  .hero-note { left: 24px; right: 24px; flex-direction: column; gap: 8px; }
  .section { padding: 70px 0; }
  .stat-strip, .contact-grid { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .project-copy, .cta-panel { padding: 34px 26px; }
  .credential-badge { padding: 28px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
}
