:root {
  --navy-900: #071226;
  --navy-800: #0a1a33;
  --navy-700: #12284d;
  --blue-600: #1f6feb;
  --blue-500: #3b82f6;
  --cyan-400: #2dd4f0;
  --ink: #0f1b2d;
  --body: #3d4a5f;
  --muted: #64728a;
  --line: #e3e8f0;
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(10, 26, 51, .06), 0 8px 24px rgba(10, 26, 51, .06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--body); background: var(--bg); line-height: 1.65; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 750; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.12rem; font-weight: 650; }
p { margin: 0 0 1em; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--cyan-400); outline-offset: 2px; border-radius: 4px; }

.container { width: min(1160px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 40px); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 12px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--blue-600); margin-bottom: .8em; }
.lead { font-size: 1.15rem; max-width: 46em; }
.lead-sm { font-size: 1.05rem; }
.note { font-size: .92rem; color: var(--muted); margin-top: 1.4em; }
.small-h { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 1.6em 0 .8em; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 650; font-size: .98rem; padding: 12px 22px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; transition: background .15s, box-shadow .15s, transform .15s; text-decoration: none !important; }
.btn-sm { padding: 8px 16px; font-size: .92rem; }
.btn-primary { background: var(--blue-600); color: #fff; box-shadow: 0 6px 18px rgba(31, 111, 235, .28); }
.btn-primary:hover { background: #185ed0; transform: translateY(-1px); }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.btn-light { background: #fff; color: var(--navy-800); }
.btn-light:hover { background: #eaf2ff; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none !important; }
.brand img { width: 40px; height: 40px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-size: 1.32rem; font-weight: 800; letter-spacing: .2em; color: var(--navy-800); }
.brand-sub { font-size: .6rem; font-weight: 650; letter-spacing: .22em; color: var(--muted); margin-top: 5px; }
.brand-light .brand-name { color: #fff; }
.brand-light .brand-sub { color: #9fb0cc; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { color: var(--ink); font-weight: 550; font-size: .97rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav ul a:hover { text-decoration: none; color: var(--blue-600); }
.site-nav ul a[aria-current="page"] { color: var(--blue-600); border-bottom-color: var(--blue-600); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle .bar { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }

/* Header tools / language switch */
.header-tools { display: flex; align-items: center; gap: 6px; order: 3; margin-left: 18px; }
.lang-switch { display: inline-flex; align-items: center; gap: 2px; padding: 3px 3px 3px 10px; border: 1px solid var(--line); border-radius: 999px; background: #f5f7fb; color: var(--muted); }
.lang-switch svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; margin-right: 4px; }
.lang-switch a { padding: 5px 12px; border-radius: 999px; font-size: .86rem; font-weight: 650; color: var(--body); line-height: 1.2; }
.lang-switch a:hover { color: var(--blue-600); text-decoration: none; }
.lang-switch a[aria-current="true"] { background: #fff; color: var(--blue-600); box-shadow: 0 1px 3px rgba(10, 26, 51, .14); }
.header-inner .site-nav { margin-left: auto; }
.lang-zh h1, .lang-zh h2 { letter-spacing: 0; }
.lang-zh .eyebrow { letter-spacing: .08em; }

/* Hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 600px at 85% -10%, #1b3f8a 0%, transparent 60%), linear-gradient(160deg, var(--navy-800), var(--navy-900)); color: #c9d5ea; padding: 96px 0 104px; }
.hero-grid-bg { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 70%); }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.hero h1 { color: #fff; }
.hero .eyebrow { color: var(--cyan-400); }
.hl { background: linear-gradient(90deg, #6ea8ff, var(--cyan-400)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* Three.js hero visual */
.hero-visual { position: relative; height: 480px; opacity: 0; transition: opacity 1.2s ease; }
.hero-visual.ready, .hero-visual.no-webgl { opacity: 1; }
.hero-visual canvas { position: absolute; inset: -40px -60px -40px -20px; width: calc(100% + 80px); height: calc(100% + 80px); display: block; }
.hero-visual.no-webgl { background: radial-gradient(circle at 50% 50%, rgba(59,130,246,.35), transparent 60%); }
.float-tag { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-size: .84rem; font-weight: 600; color: #e6efff; background: rgba(10, 26, 51, .55); border: 1px solid rgba(110, 168, 255, .35); backdrop-filter: blur(6px); animation: floaty 6s ease-in-out infinite; pointer-events: none; }
.float-tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan-400); box-shadow: 0 0 10px var(--cyan-400); }
.tag-1 { top: 10%; left: 2%; }
.tag-2 { top: 46%; right: -2%; animation-delay: -2s; }
.tag-3 { bottom: 8%; left: 14%; animation-delay: -4s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.page-hero { background: linear-gradient(160deg, #f2f6fd, #fff); border-bottom: 1px solid var(--line); padding: 72px 0 56px; }
.page-hero-sm { padding: 56px 0 40px; }
.anchor-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.anchor-nav a { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: .9rem; font-weight: 550; color: var(--ink); }
.anchor-nav a:hover { border-color: var(--blue-600); color: var(--blue-600); text-decoration: none; }

/* Sections */
.section { padding: 88px 0; scroll-margin-top: 72px; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }

/* Cards */
.cards { display: grid; gap: 22px; }
.cards-1 { grid-template-columns: 1fr; }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card-flat { box-shadow: none; }
.card-row { flex-direction: row; gap: 16px; padding: 22px; }
.card-row h3 { margin-bottom: .3em; }
.card-row p { margin: 0; }
.card p { margin-bottom: .8em; }
.card-icon { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(140deg, #e8f0ff, #e3f8fc); color: var(--blue-600); margin-bottom: 18px; flex: none; }
.card-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card-icon.sm { width: 42px; height: 42px; margin-bottom: 12px; }
.card-icon.sm svg { width: 22px; height: 22px; }
.card-icon.lg { width: 64px; height: 64px; }
.card-icon.lg svg { width: 34px; height: 34px; }
.card-link { margin-top: auto; font-weight: 650; }
.ticks { list-style: none; padding: 0; margin: 0 0 1.2em; }
.ticks li { position: relative; padding-left: 26px; margin-bottom: .55em; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 7px; border-left: 2px solid var(--blue-600); border-bottom: 2px solid var(--blue-600); transform: rotate(-45deg); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chips li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .9rem; color: var(--ink); }

/* Process */
.process { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: none; }
.process li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: relative; }
.process .step { display: inline-block; font-weight: 800; font-size: .85rem; color: #fff; background: linear-gradient(135deg, var(--blue-600), var(--cyan-400)); border-radius: 8px; padding: 4px 10px; margin-bottom: 14px; }
.process p { margin: 0; }

/* Services detail */
.service-row { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; }

/* Facts table */
.facts { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 12px; }
.facts th, .facts td { text-align: left; padding: 14px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }
.facts th { width: 38%; font-weight: 600; color: var(--muted); background: #fafbfd; font-size: .94rem; }
.facts td { color: var(--ink); font-weight: 550; }

/* CTA */
.cta-band { background: linear-gradient(120deg, var(--navy-800), #143a7a 60%, #0e5d86); color: #c9d5ea; padding: 64px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { margin: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.contact-list li { display: flex; gap: 16px; }
.contact-list p, .contact-list address { margin: 0; color: var(--ink); }
.ci-icon { flex: none; width: 44px; height: 44px; border-radius: 12px; background: #eef4ff; color: var(--blue-600); display: grid; place-items: center; }
.ci-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ci-h { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 2px 0 4px; }
.map-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.map-card iframe { display: block; width: 100%; height: 400px; border: 0; }
.map-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 14px 18px; font-size: .9rem; border-top: 1px solid var(--line); }

/* Form */
.form { display: grid; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; margin-top: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 6px; font-weight: 600; color: var(--ink); font-size: .94rem; }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; padding: 11px 14px; border: 1px solid #cfd7e4; border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(31, 111, 235, .18); }
.form textarea { resize: vertical; min-height: 140px; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--body); }
.form .check input { width: 18px; height: 18px; margin-top: 3px; flex: none; }
.form-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.notice { border-radius: 10px; padding: 14px 18px; margin-top: 18px; font-size: .96rem; }
.notice-info { background: #eaf2ff; border: 1px solid #c6dafc; color: #133a7c; }
.notice-error { background: #fdecec; border: 1px solid #f5c2c2; color: #8a1f1f; }

/* Legal prose */
.prose h2 { font-size: 1.25rem; margin-top: 2em; }
.prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.addr-block { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 10px; padding: 16px 20px; margin-bottom: 1em; color: var(--ink); }

/* Footer */
.site-footer { background: var(--navy-900); color: #9fb0cc; padding: 64px 0 28px; font-size: .94rem; }
.site-footer a { color: #d5e0f2; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 40px; }
.footer-brand p { margin-top: 18px; max-width: 30em; }
.footer-h { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 14px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-address { line-height: 1.75; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 48px; padding-top: 22px; font-size: .86rem; }
.footer-bottom p { margin: 0; }

/* Responsive */
@media (max-width: 1000px) {
  .hero-inner, .split, .service-row, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { height: 400px; }
  .hero-visual canvas { inset: -20px; width: calc(100% + 40px); height: calc(100% + 40px); }
  .cards-3, .process { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .header-tools { margin-left: auto; }
  .site-nav { position: absolute; top: 72px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; display: none; box-shadow: 0 12px 24px rgba(10, 26, 51, .08); }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav ul a[aria-current="page"] { border-bottom-color: var(--line); }
  .nav-cta { margin-top: 16px; }
}
@media (max-width: 640px) {
  .container, .narrow { width: calc(100% - 32px); }
  .section { padding: 64px 0; }
  .hero { padding: 56px 0 40px; }
  .hero-visual { height: 320px; }
  .float-tag { font-size: .76rem; padding: 5px 11px; }
  .cards-2, .cards-3, .process, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .form { padding: 22px; }
  .facts th, .facts td { display: block; width: 100%; }
  .facts th { border-bottom: 0; padding-bottom: 4px; }
  .facts td { padding-top: 0; }
  .map-card iframe { height: 300px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Header fit: keep nav + language switch on one line */
@media (min-width: 821px) and (max-width: 1080px) {
  .nav-cta { display: none; }
  .site-nav ul { gap: 20px; }
  .header-tools { margin-left: 14px; }
}
@media (max-width: 640px) {
  .lang-switch { padding-left: 3px; }
  .lang-switch svg { display: none; }
  .lang-switch a { padding: 5px 10px; }
  .brand-sub { letter-spacing: .14em; }
}
