:root {
  --blue: #2f6fbe;
  --blue-ink: #1a4e8c;
  --blue-deep: #10243f;
  --blue-soft: #e7f0fa;
  --ink: #161b22;
  --muted: #5d6772;
  --paper: #f4f6f8;
  --white: #ffffff;
  --line: #d9e0e8;
  --warn: #8a5a12;
  --warn-bg: #fbf4e8;
  --shadow: 0 18px 40px rgba(16, 36, 63, 0.08);
  --sans: "Barlow", "Noto Sans TC", "Segoe UI", sans-serif;
  --cond: "Barlow Condensed", "Noto Sans TC", "Arial Narrow", sans-serif;
  --max: 1160px;
  --header: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-ink); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { line-height: 1.15; font-weight: 650; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); margin: 0 0 0.4em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 0 0 0.45em; }
h3 { font-size: 1.25rem; margin: 0 0 0.35em; }
p { margin: 0 0 0.8em; }

html[data-lang="en"] .zh { display: none !important; }
html[data-lang="zh"] .en { display: none !important; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--ink);
  color: white;
  padding: 8px 12px;
  z-index: 20;
}
.skip:focus { top: 12px; }

.wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.wrap-wide { width: min(1240px, calc(100% - 32px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 168px; height: auto; }
.brand span {
  font-family: var(--cond);
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
}
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 10px;
  border-radius: 999px;
}
.nav a[aria-current="page"] { background: var(--blue-soft); color: var(--blue-ink); }
.nav a:hover { background: var(--paper); }
.lang {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  margin-left: 8px;
}
.lang button {
  border: 0;
  background: transparent;
  padding: 6px 10px;
  cursor: pointer;
  font-weight: 650;
  font-size: 0.82rem;
}
.lang button[aria-pressed="true"] { background: var(--blue-deep); color: white; }
.nav-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 650;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--blue); color: white; }
.btn-primary:hover { background: var(--blue-ink); }
.btn-ghost { background: white; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue-ink); }
.btn-wa { background: #128c7e; color: white; }
.btn-wa:hover { background: #0c6e63; }

.hero {
  background:
    radial-gradient(900px 420px at 85% 0%, rgba(47, 111, 190, 0.16), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, var(--paper) 100%);
  padding: 42px 0 28px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 36px;
  align-items: center;
}
.kicker {
  font-family: var(--cond);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-ink);
  font-weight: 650;
  margin: 0 0 10px;
}
.lead { font-size: 1.15rem; color: #2c3642; max-width: 40rem; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.fact-row { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 18px 0 0; list-style: none; }
.fact-row li {
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.92rem;
}
.hero-stage { display: grid; gap: 12px; }
.plate {
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 12px 12px 10px;
}
.plate img { width: 100%; max-height: 460px; object-fit: contain; background:
  radial-gradient(circle at 50% 45%, #f7fbff, #e7eef6 72%);
  border-radius: 14px;
}
.plate figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 10px;
  padding: 8px 6px 2px;
  font-size: 0.86rem;
  color: var(--muted);
}
.hero-pair { display: grid; grid-template-columns: 1fr; gap: 12px; }
.hero-pair .plate img { max-height: 380px; }
.hero-pair .plate:last-child img { max-height: 210px; }
.mini-note { font-family: var(--cond); letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-ink); white-space: nowrap; }

section { padding: 56px 0; }
.section-head { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 22px; }
.section-head p { max-width: 38rem; color: var(--muted); margin: 0; }

.series-grid, .card-grid, .app-grid {
  display: grid;
  gap: 14px;
}
.series-grid { grid-template-columns: repeat(4, 1fr); }
.card-grid { grid-template-columns: repeat(3, 1fr); }
.app-grid { grid-template-columns: repeat(3, 1fr); }

.card, .series-card, .app-card, .spec-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}
.series-card a, .card a.title {
  text-decoration: none;
  color: inherit;
}
.series-card img, .spec-card img, .card img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  background: linear-gradient(#f8fbfe, #e9eef5);
  padding: 12px;
}
.series-card div, .card .pad, .app-card, .spec-card .pad { padding: 14px 16px 16px; }
.series-card h3, .card h3 { font-family: var(--cond); letter-spacing: 0.02em; font-size: 1.45rem; font-weight: 650; }
.meta { color: var(--muted); font-size: 0.92rem; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step {
  background: var(--blue-deep);
  color: white;
  border-radius: 18px;
  padding: 20px;
  min-height: 180px;
}
.step span {
  font-family: var(--cond);
  font-size: 2rem;
  letter-spacing: 0.04em;
  color: #9dc2ef;
}
.step p { color: #d5e4f5; }

.band {
  background: white;
  border-block: 1px solid var(--line);
}

table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: white; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; white-space: nowrap; }
th {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  background: #f8fafc;
  position: sticky;
  top: 0;
}
td.model { font-weight: 700; }
tr.is-hidden { display: none; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.filters button, .chip {
  border: 1px solid var(--line);
  background: white;
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
}
.filters button[aria-pressed="true"] { background: var(--blue-deep); color: white; border-color: var(--blue-deep); }

.callout {
  background: var(--warn-bg);
  border: 1px solid #efd7b0;
  color: #5c4012;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 0.95rem;
}

.spec-card { display: grid; grid-template-columns: 220px 1fr; }
.spec-card img { height: 100%; min-height: 220px; }
.spec-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin: 10px 0 0; }
.spec-card dt { color: var(--muted); font-size: 0.8rem; }
.spec-card dd { margin: 0 0 6px; font-weight: 600; }
.stack { display: grid; gap: 16px; }

.subnav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 8px;
}
.subnav a {
  white-space: nowrap;
  text-decoration: none;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.9rem;
}

.selector {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
}
.choices { display: grid; gap: 8px; }
.choices label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
}
.choices label:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }
.result {
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
  background: var(--blue-deep);
  color: white;
}
.result a { color: white; }

form.inquiry { display: grid; gap: 12px; }
label.field { display: grid; gap: 6px; font-weight: 600; font-size: 0.92rem; }
input, select, textarea {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: white;
  width: 100%;
}
textarea { min-height: 140px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 22px; align-items: start; }
.contact-card {
  background: var(--blue-deep);
  color: white;
  border-radius: 18px;
  padding: 22px;
}
.contact-card a { color: white; }
.contact-card h2 { color: white; }

.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; align-items: center; }
.app-visual img { border-radius: 18px; border: 1px solid var(--line); width: 100%; }

.site-footer {
  background: var(--blue-deep);
  color: #d5e2f0;
  padding: 36px 0 28px;
  font-size: 0.95rem;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
.site-footer a { color: white; }
.site-footer .brand img { width: 150px; background: white; border-radius: 8px; padding: 6px 8px; }
.legal { margin-top: 22px; border-top: 1px solid rgba(255,255,255,0.15); padding-top: 14px; color: #b7c7d8; font-size: 0.88rem; }

.wire { width: auto; }
.wire td, .wire th { white-space: normal; }

@media (max-width: 980px) {
  .series-grid, .card-grid, .steps, .app-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid, .split, .contact-grid, .footer-grid, .spec-card { grid-template-columns: 1fr; }
  .spec-card img { height: 220px; }
}
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 16px 16px;
    margin: 0;
  }
  .nav.open { display: flex; }
  .lang { margin: 8px 0 0; width: fit-content; }
  .brand span { display: none; }
  .series-grid, .card-grid, .steps, .app-grid, .form-grid, .spec-card dl { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: start; }
  h1 { font-size: 2.3rem; }
}
