/* ==========================================================================
   Brain Power 欣強電子 — shared site styles (TW)
   Brand: navy #003366 + gold #F5A623 (from the existing site and logo)
   ========================================================================== */

:root {
  --navy-950: #071528;
  --navy-900: #0A1E3A;
  --navy-800: #0E2A50;
  --navy-700: #003366;
  --navy-600: #0B4A8B;
  --blue-500: #1F6FB8;
  --blue-50: #EAF2FB;
  --gold-500: #F5A623;
  --gold-600: #DB8E0E;
  --gold-50: #FEF4E2;
  --ink: #13202F;
  --ink-2: #44546A;
  --muted: #6B7A8F;
  --line: #DCE3EB;
  --line-strong: #C3CEDA;
  --bg: #FFFFFF;
  --bg-soft: #F3F6F9;
  --ok: #0A7A4B;
  --ok-50: #E4F5EC;
  --warn: #9A4A00;
  --warn-50: #FEF0E1;
  --danger: #B42318;
  --danger-50: #FDECEA;

  --font-sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(10, 30, 58, .06);
  --shadow: 0 2px 6px rgba(10, 30, 58, .06), 0 12px 32px rgba(10, 30, 58, .08);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-500); }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .5em; font-weight: 700; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.35rem + 2.6vw, 3.1rem); font-weight: 900; letter-spacing: .01em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.25rem); font-weight: 900; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
code, .mono { font-family: var(--font-mono); }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 2000; background: var(--navy-700); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 7vw, 96px); }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--navy-900); color: #DCE6F2; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head--center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 10px;
}
.section--navy .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--gold-500); }
.lead { font-size: 1.1rem; color: var(--ink-2); max-width: 68ch; }
.section--navy .lead { color: #B9C8DA; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.nowrap { white-space: nowrap; }

/* "To be confirmed" markers and review notes: shown only on test hosts (html.is-staging) */
.tbc, .review-only { display: none; }
.is-staging .review-only { display: block; }
.is-staging .tbc {
  display: inline-block;
  vertical-align: middle;
  margin-left: 6px;
  padding: 0 7px;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.7;
  border-radius: 4px;
  color: var(--warn);
  background: var(--warn-50);
  white-space: nowrap;
  font-family: var(--font-sans);
  letter-spacing: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 22px;
  font: inherit; font-weight: 700; font-size: 15.5px; line-height: 1.2;
  border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--gold { background: var(--gold-500); color: var(--navy-950); }
.btn--gold:hover { background: var(--gold-600); color: var(--navy-950); }
.btn--navy { background: var(--navy-700); color: #fff; }
.btn--navy:hover { background: var(--navy-600); color: #fff; }
.btn--ghost { border-color: currentColor; color: var(--navy-700); background: transparent; }
.btn--ghost:hover { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
.btn--ghost-light { border-color: rgba(255,255,255,.7); color: #fff; background: transparent; }
.btn--ghost-light:hover { background: #fff; color: var(--navy-900); border-color: #fff; }
.btn--sm { min-height: 38px; padding: 6px 16px; font-size: 14.5px; }
.link-arrow { font-weight: 700; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.link-arrow::after { content: "→"; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(160%) blur(8px);
}
.site-header__inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy-700); flex-shrink: 0; }
.brand img { height: 42px; width: auto; }
.brand__name { font-weight: 700; font-size: 15px; line-height: 1.2; color: var(--navy-700); }
.brand__name small { display: block; font-size: 11px; font-weight: 500; letter-spacing: .08em; color: var(--muted); }

.nav { display: none; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav__item { position: relative; }
.nav__link, .nav__toggle {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: 8px;
  font: inherit; font-size: 15.5px; font-weight: 500; color: var(--ink);
  text-decoration: none; background: none; border: 0; cursor: pointer;
}
.nav__link:hover, .nav__toggle:hover, .nav__item:focus-within > .nav__toggle { color: var(--navy-700); background: var(--bg-soft); }
.nav__link[aria-current="page"], .nav__toggle.is-current { color: var(--navy-700); font-weight: 700; }
.nav__toggle::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.nav__toggle[aria-expanded="true"]::after { transform: translateY(1px) rotate(-135deg); }

.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 240px; padding: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.nav__item.is-open > .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 15px; }
.dropdown a:hover { background: var(--bg-soft); color: var(--navy-700); }
.dropdown--mega { left: 50%; transform: translate(-50%, -6px); width: min(760px, 92vw); padding: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.nav__item.is-open > .dropdown--mega { transform: translate(-50%, 0); }
.dropdown--mega a { display: grid; gap: 2px; padding: 12px 14px; }
.dropdown--mega a b { font-size: 15px; color: var(--navy-700); }
.dropdown--mega a span { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.dropdown--mega .dropdown__all { grid-column: 1 / -1; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; border-radius: 0 0 8px 8px; font-weight: 700; color: var(--navy-700); }

.header-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px;
  border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--navy-700); cursor: pointer;
}
.icon-btn:hover { background: var(--bg-soft); }
.icon-btn svg { width: 20px; height: 20px; }
.lang { display: none; align-items: center; gap: 2px; font-size: 13.5px; }
.lang a { padding: 6px 8px; border-radius: 6px; color: var(--muted); text-decoration: none; }
.lang a:hover { color: var(--navy-700); background: var(--bg-soft); }
.lang a[aria-current="true"] { color: var(--navy-700); font-weight: 700; }
.header-cta { display: none; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s, background-color .2s; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (min-width: 1080px) {
  .nav { display: block; margin-left: 12px; }
  .lang { display: inline-flex; }
  .header-cta { display: inline-flex; }
  .menu-btn { display: none; }
}

/* Mobile drawer */
.drawer-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 990;
  background: #fff; overflow-y: auto;
  padding: 12px var(--gutter) 40px;
  transform: translateX(100%); visibility: hidden;
  transition: transform .25s ease, visibility .25s;
}
.drawer-nav.is-open { transform: none; visibility: visible; }
.drawer-nav ul { list-style: none; margin: 0; padding: 0; }
.drawer-nav > ul > li { border-bottom: 1px solid var(--line); }
.drawer-nav a { display: block; padding: 14px 4px; font-size: 17px; font-weight: 500; color: var(--ink); text-decoration: none; }
.drawer-nav ul ul { padding: 0 0 10px 12px; }
.drawer-nav ul ul a { padding: 8px 4px; font-size: 15.5px; color: var(--ink-2); font-weight: 400; }
.drawer-nav__group { padding: 14px 4px 4px; font-size: 13px; letter-spacing: .1em; color: var(--muted); font-family: var(--font-mono); }
.drawer-nav__foot { display: grid; gap: 16px; margin-top: 24px; }
.drawer-nav__lang { display: flex; gap: 8px; }
.drawer-nav__lang a { flex: 1; text-align: center; border: 1px solid var(--line); border-radius: 999px; padding: 8px; font-size: 15px; }
.drawer-nav__lang a[aria-current="true"] { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
body.nav-open { overflow: hidden; }
@media (min-width: 1080px) { .drawer-nav { display: none; } }

/* Site search dialog */
.search-dialog { position: fixed; inset: 0; z-index: 1500; display: grid; place-items: start center; padding: 10vh var(--gutter) 24px; background: rgba(7, 21, 40, .55); }
.search-dialog[hidden] { display: none; }
.search-panel { width: min(640px, 100%); background: #fff; border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.search-panel__bar { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.search-panel__bar svg { width: 20px; height: 20px; color: var(--muted); flex-shrink: 0; }
.search-panel__bar input { flex: 1; border: 0; font: inherit; font-size: 17px; padding: 8px 4px; outline: none; min-width: 0; }
.search-results { list-style: none; margin: 0; padding: 8px; max-height: 60vh; overflow-y: auto; }
.search-results a { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.search-results a:hover, .search-results a:focus { background: var(--bg-soft); outline: none; }
.search-results b { font-size: 15.5px; }
.search-results span { font-size: 13px; color: var(--muted); }
.search-empty { padding: 18px; color: var(--muted); font-size: 15px; }

/* ---------- Home hero ---------- */
.hero { position: relative; color: #fff; background: var(--navy-900); overflow: hidden; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(7, 21, 40, .94) 0%, rgba(7, 21, 40, .82) 42%, rgba(7, 21, 40, .35) 100%);
}
.hero__inner { padding-block: clamp(72px, 11vw, 140px) clamp(64px, 9vw, 112px); max-width: 720px; }
.hero h1 { color: #fff; margin-bottom: .45em; }
.hero__lead { font-size: clamp(1.05rem, .98rem + .35vw, 1.25rem); color: #D3DEEB; max-width: 60ch; }
.hero__slogan { font-family: var(--font-mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: #9FB3CA; margin: 0 0 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Trust bar */
.trust { background: var(--navy-950); color: #fff; }
.trust__list { list-style: none; margin: 0; padding: 26px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; }
.trust__list li { display: grid; gap: 4px; }
.trust__num { font-size: clamp(1.45rem, 1.1rem + 1.2vw, 2.1rem); font-weight: 900; line-height: 1.15; color: var(--gold-500); font-variant-numeric: tabular-nums; }
.trust__num small { font-size: .55em; font-weight: 700; margin-left: 2px; color: #fff; }
.trust__label { font-size: 13.5px; color: #AFC0D4; line-height: 1.45; }
@media (min-width: 900px) { .trust__list { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* ---------- Page hero (subpages) ---------- */
.page-hero { position: relative; background: var(--navy-900); color: #fff; isolation: isolate; overflow: hidden; }
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7, 21, 40, .95) 0%, rgba(7, 21, 40, .78) 55%, rgba(7, 21, 40, .45) 100%); }
.page-hero__inner { padding-block: clamp(44px, 6vw, 80px); max-width: 780px; }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 1.4rem + 2vw, 2.8rem); margin-bottom: .35em; }
.page-hero p { color: #CBD7E5; font-size: 1.08rem; margin: 0; max-width: 62ch; }
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; padding: 0; font-size: 13.5px; color: #9FB3CA; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: #5F7A98; }
.breadcrumb a { color: #CBD7E5; text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }

/* In-page section tabs */
.subnav { position: sticky; top: var(--header-h); z-index: 900; background: #fff; border-bottom: 1px solid var(--line); }
.subnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: block; padding: 14px 14px; white-space: nowrap; color: var(--ink-2); text-decoration: none; font-size: 15px; border-bottom: 3px solid transparent; }
.subnav a:hover { color: var(--navy-700); }
.subnav a.is-active { color: var(--navy-700); border-bottom-color: var(--gold-500); font-weight: 700; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.split { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .split--wide-media { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.split__media img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow); }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.card__media { aspect-ratio: 16 / 10; background: var(--bg-soft); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card__media--contain img { object-fit: contain; padding: 14px; }
.card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__body h3 { margin: 0; font-size: 1.15rem; }
.card__body p { margin: 0; color: var(--ink-2); font-size: 15px; }
.card__meta { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); letter-spacing: .02em; }
.card__foot { margin-top: auto; padding-top: 8px; }
a.card { text-decoration: none; color: inherit; transition: border-color .2s, box-shadow .2s, transform .2s; }
a.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-2px); color: inherit; }
a.card:hover .card__media img { transform: scale(1.03); }

/* Application cards on home/products */
.app-card .card__body { gap: 6px; }
.app-card__share { font-family: var(--font-mono); font-size: 12.5px; color: var(--gold-600); font-weight: 500; }
.app-card .link-arrow { color: var(--navy-700); font-size: 15px; }

/* Technology platform tiles */
.platforms { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.platforms--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.platform { padding: 20px 22px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); display: grid; gap: 6px; align-content: start; }
.section--navy .platform { background: var(--navy-800); border-color: #1D3B63; }
.platform h3 { font-size: 1.05rem; margin: 0; }
.platform__fig { font-family: var(--font-mono); font-size: 1.35rem; font-weight: 500; color: var(--navy-700); line-height: 1.3; }
.section--navy .platform__fig { color: var(--gold-500); }
.platform p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.section--navy .platform p { color: #B4C4D7; }

/* Feature band (image + text) */
.feature { display: grid; gap: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--navy-900); color: #DCE6F2; }
.feature__media img { width: 100%; height: 100%; object-fit: cover; min-height: 260px; }
.feature__body { padding: clamp(28px, 4vw, 52px); display: grid; gap: 14px; align-content: center; }
.feature__body h2, .feature__body h3 { color: #fff; margin: 0; }
.feature__body h2 { font-size: clamp(1.6rem, 1.25rem + 1.2vw, 2.1rem); }
.feature__stats { display: flex; flex-wrap: wrap; gap: 14px 28px; margin: 6px 0; padding: 0; list-style: none; }
.feature__stats b { display: block; font-family: var(--font-mono); font-size: 1.5rem; font-weight: 500; color: var(--gold-500); line-height: 1.2; }
.feature__stats span { font-size: 13.5px; color: #A9BBD0; }
@media (min-width: 900px) { .feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .feature--reverse .feature__media { order: 2; } }

/* Locations */
.locations { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.location { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.location img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.location__ph {
  aspect-ratio: 16 / 9; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-600));
  color: rgba(255, 255, 255, .9); font-family: var(--font-mono); font-size: 1.6rem; letter-spacing: .3em; text-transform: uppercase;
}
.location__body { padding: 18px 20px 20px; display: grid; gap: 6px; }
.location__tag { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; color: var(--gold-600); text-transform: uppercase; }
.location h3 { margin: 0; font-size: 1.12rem; }
.location p { margin: 0; color: var(--ink-2); font-size: 15px; }
.location dl { margin: 6px 0 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; font-size: 14px; }
.location dt { color: var(--muted); }
.location dd { margin: 0; }

/* Certificates */
.certs { display: grid; gap: 20px 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .certs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cert img { max-width: 220px; margin-inline: auto; }
.cert { display: grid; gap: 8px; text-align: center; font-size: 14px; }
.cert img { width: 100%; aspect-ratio: 3 / 4; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px; }
.cert b { font-size: 14.5px; color: var(--ink); }
.cert span { color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.cert-strip { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.cert-strip li { padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 500; color: var(--navy-700); }
.section--navy .cert-strip li { background: transparent; border-color: #2A4A72; color: #DCE6F2; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.55; }
.table th, .table td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table thead th { background: var(--navy-900); color: #fff; font-weight: 500; font-size: 14px; white-space: nowrap; }
.table thead th:first-child { border-top-left-radius: var(--radius); }
.table tbody tr:last-child td, .table tbody tr:last-child th { border-bottom: 0; }
.table tbody th { font-weight: 500; color: var(--ink); background: var(--bg-soft); white-space: nowrap; }
.table td.num, .table .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 14px; white-space: nowrap; }
.table .group td { background: var(--blue-50); color: var(--navy-700); font-weight: 700; font-size: 14px; letter-spacing: .04em; }
.table--compact th, .table--compact td { padding: 8px 12px; font-size: 14px; }
.table-note { font-size: 13.5px; color: var(--muted); margin-top: 10px; }

/* Equipment cards */
.equip-group { margin-top: clamp(36px, 5vw, 56px); }
.equip-group:first-of-type { margin-top: 0; }
.equip-group__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 18px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.equip-group__head h3 { margin: 0; }
.equip-group__head span { font-size: 14px; color: var(--muted); }
.equip { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.equip-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.equip-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; background: var(--bg-soft); }
.equip-card__body { padding: 14px 16px 16px; display: grid; gap: 4px; }
.equip-card h4 { margin: 0; font-size: 15.5px; }
.equip-card p { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.6; }
.equip-card .spec { font-family: var(--font-mono); font-size: 12.5px; color: var(--navy-700); line-height: 1.55; }
.equip-list { columns: 2 260px; column-gap: 32px; margin: 0; padding: 0; list-style: none; }
.equip-list li { break-inside: avoid; padding: 10px 0; border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.equip-list b { font-size: 15px; }
.equip-list span { font-size: 14px; color: var(--ink-2); }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 26px 36px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--navy-700); }
.timeline li.is-key::before { border-color: var(--gold-500); background: var(--gold-500); }
.timeline__year { font-family: var(--font-mono); font-weight: 500; color: var(--navy-700); font-size: 15px; }
.timeline h3 { font-size: 1.08rem; margin: 2px 0 4px; }
.timeline p { margin: 0; color: var(--ink-2); font-size: 15px; }
@media (min-width: 900px) {
  .timeline--wide { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
  .timeline--wide::before { display: none; }
  .timeline--wide li { border-left: 2px solid var(--line); padding-left: 28px; margin-left: 7px; }
  .timeline--wide li::before { left: -9px; }
}

/* Value list */
.values { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); list-style: none; margin: 0; padding: 0; }
.values li { padding: 20px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); display: grid; gap: 6px; }
.values b { font-size: 1.1rem; color: var(--navy-700); }
.values span { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-600); }
.values p { margin: 0; font-size: 14.5px; color: var(--ink-2); }

/* Facts list */
.facts { display: grid; gap: 0 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); margin: 0; border-top: 1px solid var(--line); }
.facts > div { padding: 16px 4px; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 13.5px; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-size: 1.2rem; font-weight: 700; color: var(--navy-700); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); counter-reset: step; }
.steps li { counter-increment: step; padding: 18px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); display: grid; gap: 4px; }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--font-mono); font-size: 13px; color: var(--gold-600); }
.steps b { font-size: 15.5px; }
.steps span { font-size: 14px; color: var(--ink-2); }

/* Gallery */
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); margin: 0; padding: 0; list-style: none; }
.gallery figure { margin: 0; display: grid; gap: 6px; }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.gallery figcaption { font-size: 14px; color: var(--ink-2); }

/* Callout / notice */
.notice { padding: 16px 18px; border-radius: var(--radius); background: var(--blue-50); color: var(--ink); border: 1px solid #CFE0F3; font-size: 15px; }
.notice--warn { background: var(--warn-50); border-color: #F6D7B0; }
.notice b { color: var(--navy-700); }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--navy-900) 0%, var(--navy-700) 100%); color: #fff; }
.cta-band__inner { display: grid; gap: 22px; align-items: center; padding-block: clamp(44px, 6vw, 72px); }
.cta-band h2 { color: #fff; margin: 0 0 8px; }
.cta-band p { color: #C9D6E5; margin: 0; max-width: 60ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 900px) { .cta-band__inner { grid-template-columns: minmax(0, 1fr) auto; } }

/* ---------- Product catalog ---------- */
.catalog { display: grid; gap: 24px; }
@media (min-width: 1080px) { .catalog { grid-template-columns: 272px minmax(0, 1fr); align-items: start; } }
.filters { display: grid; gap: 18px; align-content: start; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
@media (min-width: 1080px) { .filters { position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto; } }
.fgroup { display: grid; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.fgroup legend, .flabel { padding: 0; font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.fhint { font-size: 12.5px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  appearance: none; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  font: inherit; font-size: 14px; line-height: 1.35; color: var(--ink); cursor: pointer;
}
.chip:hover { border-color: var(--navy-600); }
.chip[aria-pressed="true"] { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
.chip .cnt { font-family: var(--font-mono); font-size: 12px; opacity: .7; }
.field { width: 100%; font: inherit; font-size: 15px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; color: var(--ink); }
.field:focus { outline: none; border-color: var(--navy-600); box-shadow: 0 0 0 3px rgba(31, 111, 184, .18); }
.results-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 14px; }
.results-head p { margin: 0; color: var(--ink-2); }
.results-head b { font-family: var(--font-mono); color: var(--ink); }
.results-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.legend-stack { display: inline-flex; gap: 14px; align-items: center; font-size: 13px; color: var(--muted); }
.legend-stack i { display: inline-block; width: 18px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }
.legend-stack .lbu { background: var(--gold-500); }
.legend-stack .lcore { background: var(--navy-700); }
.pgrid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 268px), 1fr)); }
.pgrid > li { display: flex; min-width: 0; }
.pgrid .pcard { width: 100%; }
.pcard {
  appearance: none; text-align: left; font: inherit; color: inherit; cursor: pointer;
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; padding: 0;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.pcard:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
.pcard__media { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #F3F6F9, #E8EEF5); display: grid; place-items: center; overflow: hidden; }
.pcard__media img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.pcard__badge { position: absolute; top: 10px; left: 10px; }
.pcard__body { padding: 14px 16px 16px; display: grid; gap: 6px; }
.pcard__app { font-size: 12.5px; color: var(--muted); }
.pcard__name { font-weight: 700; font-size: 15.5px; line-height: 1.45; color: var(--ink); }
.pcard__key { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-2); overflow-wrap: anywhere; }
.pcard__tech { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.tchip { font-size: 12px; line-height: 1.6; padding: 0 7px; border-radius: 4px; background: var(--blue-50); color: var(--navy-700); white-space: nowrap; }
.badge { display: inline-block; font-size: 12px; line-height: 1.7; padding: 0 8px; border-radius: 4px; white-space: nowrap; background: #fff; color: var(--ink-2); border: 1px solid var(--line); }
.badge--mp { background: var(--ok-50); color: var(--ok); border-color: transparent; }
.badge--npi, .badge--plan { background: var(--gold-50); color: #8A5A00; border-color: transparent; }
.badge--cap { background: var(--blue-50); color: var(--navy-700); border-color: transparent; }
.stack { display: block; }
.stack .core { stroke: var(--navy-700); }
.stack .bu { stroke: var(--gold-500); }
.stack-txt { font-family: var(--font-mono); font-size: 14px; color: var(--muted); }
.catalog-empty { padding: 36px 20px; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); color: var(--ink-2); }
.catalog-noscript { padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); }

.pdrawer-scrim { position: fixed; inset: 0; z-index: 1600; background: rgba(7, 21, 40, .5); }
.pdrawer {
  position: fixed; z-index: 1601; top: 0; right: 0; bottom: 0; width: min(560px, 100%);
  background: #fff; box-shadow: var(--shadow); overflow-y: auto;
  padding: 20px 24px 32px;
}
.pdrawer[hidden], .pdrawer-scrim[hidden] { display: none; }
.pdrawer__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pdrawer__meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13.5px; color: var(--muted); }
.pdrawer h2 { font-size: 1.35rem; margin: 12px 0 14px; }
.pdrawer__media { border-radius: var(--radius); background: linear-gradient(135deg, #F3F6F9, #E8EEF5); margin-bottom: 16px; display: grid; place-items: center; min-height: 120px; }
.pdrawer__media img { max-height: 280px; width: auto; object-fit: contain; padding: 12px; }
.pdrawer__summary { color: var(--ink-2); font-size: 15px; }
.specs { display: grid; grid-template-columns: minmax(7.5em, auto) minmax(0, 1fr); margin: 0 0 16px; border-top: 1px solid var(--line); }
.specs dt, .specs dd { margin: 0; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.specs dt { color: var(--muted); padding-right: 14px; }
.specs dd { font-family: var(--font-mono); font-size: 14px; overflow-wrap: anywhere; }
.pdrawer__note { font-size: 14px; color: var(--ink-2); background: var(--bg-soft); border-radius: 8px; padding: 10px 12px; margin-bottom: 16px; }
.pdrawer__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Contact ---------- */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 32px); }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.contact-list li { display: grid; gap: 2px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.contact-list span { font-size: 13.5px; color: var(--muted); }
.contact-list a { font-weight: 500; overflow-wrap: anywhere; }
.contact-card { max-width: 760px; }
.contact-card__action { margin: 24px 0 0; }
.map-frame { width: 100%; aspect-ratio: 16 / 10; border: 0; border-radius: var(--radius); background: var(--bg-soft); display: block; }
.location .map-frame { border-radius: 0; }

/* Empty-state block */
.empty-state { text-align: center; max-width: 620px; margin: 0 auto; display: grid; gap: 12px; justify-items: center; }
.empty-state svg { width: 56px; height: 56px; color: var(--navy-600); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: #AFC0D4; font-size: 15px; }
.site-footer a { color: #DCE6F2; text-decoration: none; }
.site-footer a:hover { color: var(--gold-500); text-decoration: underline; }
.footer-grid { display: grid; gap: 32px; padding-block: 56px 36px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.footer-brand img { height: 46px; width: auto; margin-bottom: 14px; }
.footer-brand p { margin: 0 0 6px; }
.footer-slogan { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-500); }
.site-footer h2 { font-size: 15px; font-weight: 700; color: #fff; margin: 0 0 12px; letter-spacing: .04em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-bottom { border-top: 1px solid #1D3350; padding-block: 18px 26px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 13.5px; color: #8297B0; }

/* Back to top */
.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 950; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--navy-700); color: #fff; box-shadow: var(--shadow); cursor: pointer; display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 20px; height: 20px; }

/* Progressive reveal (content stays visible without JavaScript) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .to-top, .subnav, .drawer-nav { display: none !important; }
}

.equip--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }

/* ---------- Mainland China notice (site.js, Asia/Shanghai time zone only) ---------- */
.cn-bar { background: var(--gold-50); border-bottom: 1px solid #F6D7B0; color: var(--ink); font-size: 14.5px; }
.cn-bar__inner { display: flex; align-items: center; gap: 12px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.cn-bar__inner span { flex: 1 1 220px; }
.cn-bar__go { font-weight: 700; color: var(--navy-700); text-decoration: underline; white-space: nowrap; }
.cn-bar__close { border: 0; background: transparent; font-size: 22px; line-height: 1; padding: 2px 6px; cursor: pointer; color: var(--muted); }

/* ---------- Language versions ---------- */
html[lang="zh-CN"] { --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; }
html[lang="en"] { --font-sans: "Noto Sans TC", system-ui, -apple-system, "Segoe UI", sans-serif; }
html[lang="en"] .brand__name { display: none; } /* the logo already reads Brain Power */
