/* Spyder Gen 2 China enquiry page. Self-contained: no web fonts or CDNs (they are slow or blocked in mainland China). */
:root {
	--navy: #0a1a2f;
	--navy-2: #102641;
	--ink: #14202e;
	--muted: #5a6878;
	--line: #dde4ec;
	--tint: #f4f7fa;
	--brand: #2aa8df;
	--brand-dark: #1386bb;
	--brand-soft: #e3f4fb;
	--accent: #ff6b5a;
	--ok: #1f9d6b;
	--err: #d43c3c;
	--radius: 14px;
	--font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: #fff; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--brand-dark); }
h1, h2, h3 { line-height: 1.25; margin: 0; }
p { margin: 0; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* Toolbar */
.toolbar { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.toolbar-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand img { height: 44px; width: auto; }
.nav { display: flex; gap: 24px; margin-left: 12px; }
.nav a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--brand-dark); }
.toolbar-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.lang-toggle { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; }
.lang-toggle:hover { border-color: var(--brand); color: var(--brand-dark); }
.lang-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--brand); color: #fff; font: inherit; font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; transition: background .15s, transform .15s; }
.btn:hover { background: var(--brand-dark); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-small { min-height: 36px; padding: 0 16px; font-size: 14px; }
.btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-block { width: 100%; }

/* Hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 85% -10%, #1b4a78 0%, transparent 60%), linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; padding: 88px 0 170px; }
.hero-ecg { position: absolute; left: 0; right: 0; bottom: 10px; width: 100%; height: 130px; opacity: .9; }
.hero-ecg path { fill: none; stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ecg-base { stroke: rgba(42,168,223,.18); }
.ecg-pulse { stroke: var(--brand); stroke-dasharray: 260 2400; stroke-dashoffset: 260; animation: ecg 4.2s linear infinite; filter: drop-shadow(0 0 6px rgba(42,168,223,.8)); }
@keyframes ecg { to { stroke-dashoffset: -2400; } }
.hero-inner { position: relative; max-width: 820px; margin-left: max(20px, calc((100% - 1140px) / 2 + 20px)); }
.badge { display: block; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 18px; }
.status { display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); font-size: 17px; margin-bottom: 26px; }
.status strong { color: #fff; }
.status .sep { opacity: .5; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(255,107,90,.6); animation: blink 1.8s ease-out infinite; }
@keyframes blink { 70% { box-shadow: 0 0 0 10px rgba(255,107,90,0); } 100% { box-shadow: 0 0 0 0 rgba(255,107,90,0); } }
.hero h1 { font-size: clamp(32px, 5.2vw, 56px); font-weight: 700; letter-spacing: -.01em; }
.lang-zh .hero h1 { letter-spacing: .02em; }
.lead { margin-top: 20px; font-size: clamp(16px, 1.7vw, 19px); color: rgba(255,255,255,.82); max-width: 680px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* Sections */
.section { padding: 88px 0; }
.section-tint { background: var(--tint); }
.section-dark { background: var(--navy); color: #fff; }
.kicker { font-size: 14px; font-weight: 700; letter-spacing: .06em; color: var(--brand-dark); margin-bottom: 10px; }
.section-dark .kicker { color: var(--brand); }
.section h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 700; }
.section-intro { margin-top: 14px; font-size: 17px; color: var(--muted); max-width: 720px; }
.section-dark .section-intro { color: rgba(255,255,255,.78); }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 44px; }
.feature { padding: 26px 22px; border: 1px solid var(--line); border-radius: var(--radius); }
.feature svg { width: 40px; height: 40px; padding: 8px; border-radius: 10px; background: var(--brand-soft); fill: none; stroke: var(--brand-dark); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 16px; }
.feature h3 { font-size: 17px; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 15px; }

.steps { list-style: none; margin: 44px 0 0; padding: 0; display: grid; gap: 18px; }
.steps-6 { grid-template-columns: repeat(3, 1fr); }
.steps-5 { grid-template-columns: repeat(5, 1fr); }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; }
.step h3 { font-size: 17px; margin: 12px 0 6px; }
.step p { font-size: 15px; color: var(--muted); }
.step-num { font-size: 14px; font-weight: 700; color: var(--brand-dark); letter-spacing: .04em; }
.steps-line .step { border: 0; padding: 0 6px 0 0; background: none; }
.steps-line .step-num { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 50%; background: var(--brand); color: #fff; font-size: 18px; position: relative; z-index: 1; box-shadow: 0 0 0 6px #fff; }
.steps-line .step:not(:last-child)::after { content: ""; position: absolute; top: 22px; left: 50px; right: 0; height: 2px; background: linear-gradient(90deg, var(--brand) 0 50%, transparent 50%) 0 0 / 10px 2px repeat-x; }

.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 36px; padding: 26px 30px; border-radius: var(--radius); background: var(--navy); color: #fff; }
.cta-band p { font-size: 18px; font-weight: 600; }
.cta-band .btn { flex-shrink: 0; }
.cta-band-alt { background: linear-gradient(120deg, var(--brand-dark), var(--brand)); }
.cta-band-alt .btn { background: #fff; color: var(--brand-dark); }
.cta-band-alt .btn:hover { background: var(--brand-soft); }

.app-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.stores { display: flex; gap: 14px; flex-wrap: wrap; }
.store { display: inline-flex; align-items: center; gap: 12px; min-width: 190px; padding: 12px 20px; border-radius: 12px; background: #000; border: 1px solid rgba(255,255,255,.3); color: #fff; text-decoration: none; }
a.store:hover { border-color: var(--brand); }
.store svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.store span { display: flex; flex-direction: column; font-size: 19px; font-weight: 600; line-height: 1.2; }
.store small { font-size: 12px; font-weight: 400; opacity: .75; }

/* Form */
.form-wrap { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
.form-copy { position: sticky; top: 100px; }
.status-light { background: var(--brand-soft); border-color: transparent; color: var(--ink); margin: 26px 0 0; font-size: 15px; }
.status-light strong { color: var(--brand-dark); }
.enquiry-form { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 32px; box-shadow: 0 20px 50px -30px rgba(10,26,47,.35); }
.form-fields > * + * { margin-top: 18px; }
.field { border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; padding: 0; }
.req { color: var(--err); }
.opt { font-weight: 400; color: var(--muted); }
input[type=text], input[type=email], input[type=tel], textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1px solid #c9d3de; border-radius: 10px; padding: 11px 13px; transition: border-color .15s, box-shadow .15s; }
textarea { resize: vertical; min-height: 110px; }
input:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(42,168,223,.2); }
[aria-invalid=true] { border-color: var(--err) !important; }
.grid-2, .grid-3 { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.type-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice { position: relative; display: block; margin: 0 !important; cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: flex; align-items: center; height: 100%; padding: 13px 14px 13px 42px; border: 1.5px solid #c9d3de; border-radius: 10px; font-weight: 500; font-size: 15px; line-height: 1.35; position: relative; }
.choice span::before { content: ""; position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; border: 1.5px solid #9fb0c2; background: #fff; }
.choice input:checked + span { border-color: var(--brand); background: var(--brand-soft); }
.choice input:checked + span::before { border: 5px solid var(--brand); }
.choice input:focus-visible + span { box-shadow: 0 0 0 3px rgba(42,168,223,.3); }
.hint { font-size: 13px; color: var(--muted); margin-top: 8px !important; }
.consent { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; font-size: 14px !important; color: var(--muted); cursor: pointer; }
.consent input { margin: 4px 0 0; width: 17px; height: 17px; accent-color: var(--brand); flex-shrink: 0; }
.field-error { color: var(--err); font-size: 13px; margin-top: 5px; }
.form-result { padding: 14px 16px; border-radius: 10px; font-weight: 600; margin-bottom: 20px; }
.form-result.is-ok { background: #e6f6ef; color: var(--ok); }
.form-result.is-error { background: #fdecec; color: var(--err); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.enquiry-form.type-b2c .b2b-only { display: none; }

/* Footer */
.footer { background: #07131f; color: rgba(255,255,255,.7); padding: 40px 0; font-size: 14px; }
.footer .notice { padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid rgba(255,255,255,.12); font-size: 13px; }
.footer-row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-company { color: #fff; font-weight: 600; }
.footer-right { text-align: right; }
.footer a { color: rgba(255,255,255,.7); }

/* Responsive */
@media (max-width: 1000px) {
	.features { grid-template-columns: 1fr 1fr; }
	.steps-6 { grid-template-columns: 1fr 1fr; }
	.steps-5 { grid-template-columns: 1fr; gap: 0; }
	.steps-line .step { display: grid; grid-template-columns: 44px 1fr; column-gap: 18px; padding-bottom: 26px; }
	.steps-line .step h3 { margin-top: 8px; }
	.steps-line .step p { grid-column: 2; }
	.steps-line .step-num { grid-row: span 2; }
	.steps-line .step:not(:last-child)::after { top: 50px; bottom: 0; left: 21px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--brand) 0 50%, transparent 50%) 0 0 / 2px 10px repeat-y; }
	.form-wrap { grid-template-columns: 1fr; gap: 32px; }
	.form-copy { position: static; }
	.app-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 760px) {
	.nav { display: none; }
	.toolbar-inner { height: 60px; gap: 12px; }
	.brand img { height: 38px; }
	.hero { padding: 64px 0 110px; }
	.hero-inner { margin-left: 0; }
	.section { padding: 64px 0; }
	.features, .steps-6, .grid-2, .grid-3, .type-choice { grid-template-columns: 1fr; }
	.cta-band { flex-direction: column; align-items: flex-start; padding: 24px; }
	.enquiry-form { padding: 22px 18px; }
	.footer-right { text-align: left; }
	.wrap { padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.ecg-pulse, .status-dot { animation: none; }
	.ecg-pulse { stroke-dasharray: none; }
}
