/* ============================================================
   世恭企業 — Tech Industrial Frontend
   palette: clean white + deep navy + sky-blue accent
   ============================================================ */

:root {
  /* light surfaces */
  --bg-0: #ffffff;       /* page bg */
  --bg-1: #f6f8fb;       /* alternating sections */
  --bg-2: #ffffff;       /* cards on light bg */
  --bg-3: #eef2f7;       /* subtle blocks */
  --bg-dark: #0b1726;    /* footer, dark CTA bands */
  --bg-dark-2: #11203a;

  /* borders */
  --line: rgba(15, 23, 42, 0.10);
  --line-strong: rgba(2, 132, 199, 0.35);

  /* typography */
  --fg-0: #0b1726;       /* headings, dark navy */
  --fg-1: #475569;       /* body slate */
  --fg-2: #94a3b8;       /* muted */
  --fg-on-dark: #e6edf7; /* text on dark sections */
  --fg-on-dark-2: #94a3b8;

  /* brand */
  --accent: #0284c7;     /* sky-700 — readable on white */
  --accent-2: #0ea5e9;   /* sky-500 — hover / highlight */
  --accent-soft: rgba(2, 132, 199, 0.08);
  --accent-glow: rgba(14, 165, 233, 0.25);

  --warn: #d97706;
  --ok: #059669;

  --radius: 4px;
  --maxw: 1280px;
  --header-h: 72px;
  --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 16px rgba(15, 23, 42, 0.04);
  --shadow-hover: 0 4px 8px rgba(15, 23, 42, 0.06), 0 16px 36px rgba(15, 23, 42, 0.10);

  --font-sans: "Inter", "Noto Sans TC", "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  /* Block mobile webview auto text-inflation (LINE / FB / IG in-app browsers) */
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* Anchor root font-size in px so rem stays predictable across webviews */
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.7;
  color: var(--fg-1);
  background: var(--bg-0);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Re-assert here — some in-app browsers reset on <body> */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-2); }
h1, h2, h3, h4 { color: var(--fg-0); font-weight: 700; line-height: 1.2; letter-spacing: -0.015em; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid var(--line);
  z-index: 100;
}
.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--fg-0);
  font-weight: 700;
  letter-spacing: 0.01em;
}
.brand img { height: 48px; width: auto; transition: opacity .2s; }
.brand:hover img { opacity: 0.85; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; font-size: 15px; }
.brand-text small {
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  font-weight: 500;
  margin-top: 3px;
}

.nav-main { display: flex; gap: 30px; align-items: center; }
.nav-main a {
  color: var(--fg-1);
  font-size: 14px;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
  transition: color .15s;
}
.nav-main a:hover, .nav-main a.active { color: var(--accent); }
.nav-main a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--bg-3);
  border-radius: 999px;
  padding: 4px;
  font-family: var(--font-mono);
}
.lang-switch a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px 5px 8px;
  font-size: 11px;
  color: var(--fg-1);
  letter-spacing: 0.06em;
  font-weight: 600;
  border-radius: 999px;
  transition: all .2s;
}
.lang-switch a:hover { color: var(--accent); }
.lang-switch a.active {
  background: var(--accent);
  color: #fff;
}
.lang-switch .flag {
  width: 18px;
  height: 12px;
  border-radius: 2px;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.10);
  overflow: hidden;
}
.lang-switch a.active .flag {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.nav-toggle {
  display: none;
  background: var(--bg-3);
  border: 1px solid var(--line);
  color: var(--fg-0);
  padding: 8px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

/* ===== Hero — full-width banner slider ===== */
.hero {
  position: relative;
  min-height: 92vh;
  padding-top: var(--header-h);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-dark);
  color: #fff;
}

/* Slider — stacked full-bleed images, only active visible */
.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.2s ease, transform 8s ease;
  transform: scale(1.05);
}
.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

/* Minimal overlay — banner fully visible at top, only bottom darkens for stats bar */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 0%, transparent 55%, rgba(5, 12, 22, 0.50) 88%, rgba(5, 12, 22, 0.70) 100%);
}

/* hide canvas dots — banner imagery is the main visual now */
.hero-net { display: none; }

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 80px 0 100px;
  text-align: left;
}
/* Frosted glass card — more transparent, more glassmorphism */
.hero-text {
  max-width: 680px;
  margin: 0;
  position: relative;
  background: linear-gradient(135deg, rgba(15, 30, 50, 0.48) 0%, rgba(11, 23, 38, 0.38) 100%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  backdrop-filter: blur(28px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  padding: 44px 52px 48px;
  box-shadow:
    0 24px 72px rgba(0, 0, 0, 0.40),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(0, 0, 0, 0.10);
}
/* Subtle accent gradient at top edge of glass card */
.hero-text::before {
  content: "";
  position: absolute;
  top: 0; left: 24px; right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.7), transparent);
  border-radius: 1px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-2);
  padding: 8px 18px;
  border: 1px solid rgba(56, 189, 248, 0.40);
  border-radius: 999px;
  margin-bottom: 32px;
  background: rgba(11, 23, 38, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-weight: 500;
}
.hero-eyebrow .dot {
  width: 7px; height: 7px;
  background: var(--accent-2);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.25);
  animation: pulse 2s ease-in-out infinite;
}

.hero h1,
.hero .hero-text h1 {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.1;
  margin-bottom: 22px;
  color: #ffffff !important;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
.hero h1 .accent {
  color: #7dd3fc;
  -webkit-text-fill-color: #7dd3fc;
  text-shadow:
    0 0 1px rgba(125, 211, 252, 0.5),
    0 0 24px rgba(56, 189, 248, 0.35);
}

.hero-lead {
  font-size: clamp(15px, 1.3vw, 17px);
  color: #fefce8;
  max-width: 100%;
  margin: 0 0 32px;
  line-height: 1.75;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.hero-eyebrow {
  /* re-style the eyebrow to fit inside the glass card */
  margin-bottom: 22px !important;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.hero .btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hero .btn-ghost:hover {
  background: rgba(14, 165, 233, 0.18);
  border-color: var(--accent-2);
  color: var(--accent-2);
}

/* Stats bar at bottom of hero — anchored full-width */
.hero-stats-bar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  background: linear-gradient(180deg, transparent 0%, rgba(5, 12, 22, 0.85) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px 0 28px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  width: 100%;
  max-width: 100%;
  margin: 0;
}
.hero-stat {
  padding: 8px 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.10);
  text-align: center;
}
.hero-stat:last-child { border-right: none; }
.hero-stat .num {
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 800;
  color: #fff;
  font-family: var(--font-mono);
  line-height: 1;
  letter-spacing: -0.02em;
}
.hero-stat .label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 8px;
  font-weight: 500;
}

/* Slider dots — bottom-left, aligned with text content */
.hero-dots {
  position: absolute;
  bottom: 130px;
  left: 0; right: 0;
  z-index: 3;
  display: flex;
  gap: 8px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}
.hero-dots button {
  width: 28px;
  height: 3px;
  border: none;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  padding: 0;
  transition: all .3s;
}
.hero-dots button.active {
  background: var(--accent-2);
  width: 48px;
  box-shadow: 0 0 12px rgba(14, 165, 233, 0.6);
}
.hero-dots button:hover { background: rgba(255, 255, 255, 0.55); }

/* Floating ISO badge top-right */
.hero-iso-badge {
  position: absolute;
  top: calc(var(--header-h) + 36px);
  right: 36px;
  z-index: 3;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero-iso-badge .badge-mark {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 10px;
  color: #fff;
  line-height: 1.1;
  text-align: center;
}
.hero-iso-badge .badge-text { line-height: 1.3; }
.hero-iso-badge strong { display: block; font-size: 12px; color: var(--fg-0); font-weight: 700; white-space: nowrap; }
.hero-iso-badge small { font-size: 10px; color: var(--fg-2); letter-spacing: 0.08em; font-family: var(--font-mono); font-weight: 500; }

@media (max-width: 1024px) {
  .hero-iso-badge { right: 20px; top: calc(var(--header-h) + 20px); }
  .hero-iso-badge .badge-mark { width: 38px; height: 38px; font-size: 9px; }
}
@media (max-width: 768px) {
  /* Mobile: stop pinning stats bar absolutely; let it flow under hero content
     so CTAs (展開合作諮詢/了解核心技術) stay visible.
     CRITICAL: .hero is display:flex on desktop — without flex-direction:column,
     the now-static stats bar becomes a row sibling next to the glass card and
     squishes everything to 50% width. */
  .hero {
    min-height: auto;
    flex-direction: column;
    align-items: stretch;
  }
  .hero-content { padding: 56px 0 32px; flex: 0 0 auto; }
  .hero h1 { font-size: clamp(26px, 7vw, 38px); }
  .hero-text { padding: 28px 24px 32px; border-radius: 14px; }
  .hero-stats-bar {
    position: static;
    background: linear-gradient(180deg, rgba(5, 12, 22, 0.78) 0%, rgba(5, 12, 22, 0.95) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    padding: 24px 0 30px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); padding: 12px; }
  .hero-stat:nth-last-child(-n+2) { border-bottom: none; }
  .hero-iso-badge { display: none; }
  .hero-dots { display: none; }  /* dots overlap stats on mobile; auto-rotate still works */
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 7px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  margin-bottom: 28px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(2, 132, 199, 0.10);
  font-weight: 500;
}
.hero-eyebrow .dot {
  width: 7px; height: 7px;
  background: var(--ok);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.20);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}
/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 6px;
  cursor: pointer;
  transition: all .2s;
  border: 1px solid transparent;
  font-family: inherit;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.32);
}
.btn-primary:hover {
  color: #fff;
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.48);
  transform: translateY(-2px);
}
.btn-ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--fg-0);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-1px);
}
.btn .arrow { font-family: var(--font-mono); transition: transform .2s; font-weight: 600; }
.btn:hover .arrow { transform: translateX(4px); }

/* ===== Sections ===== */
section { padding: 96px 0; position: relative; }
.section-head { margin-bottom: 56px; }
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}
.section-eyebrow::before {
  content: "";
  width: 32px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.section-head h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  max-width: 720px;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.section-head .lead {
  color: var(--fg-1);
  max-width: 680px;
  font-size: 16px;
  line-height: 1.75;
}

/* ===== Capabilities (3 cards) ===== */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.cap-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 36px 28px;
  position: relative;
  transition: all .25s;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.cap-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.cap-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.cap-card:hover::before { transform: scaleX(1); }
.cap-card--visual { padding: 0 0 28px; }
.cap-card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin: 0;
  background: var(--bg-3);
  border-bottom: 1px solid var(--line);
}
.cap-card-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.cap-card--visual:hover .cap-card-img img { transform: scale(1.04); }
.cap-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--accent-soft), rgba(14, 165, 233, 0.04));
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  color: var(--accent);
}
.cap-card--visual .cap-icon {
  position: relative;
  z-index: 2;
  margin: -26px 0 18px 28px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.12);
}
.cap-card--visual h3,
.cap-card--visual p {
  margin-left: 28px;
  margin-right: 28px;
}
.cap-card h3 { font-size: 19px; margin-bottom: 10px; color: var(--fg-0); }
.cap-card p { font-size: 14px; color: var(--fg-1); line-height: 1.7; }
.cap-num {
  position: absolute;
  top: 22px; right: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-2);
  letter-spacing: 0.08em;
}
.cap-card--visual .cap-num {
  top: 18px;
  right: 18px;
  z-index: 2;
  color: #fff;
  background: rgba(11, 23, 42, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  padding: 5px 8px;
  backdrop-filter: blur(8px);
}

.matrix-visual {
  margin: -24px 0 32px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-card);
}
.matrix-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
}

/* ===== Products Grid ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.product-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  transition: all .25s;
  display: block;
  color: inherit;
  box-shadow: var(--shadow-card);
}
.product-card .pc-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
  background: var(--bg-3);
}
.product-card .pc-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.product-card:hover {
  border-color: var(--accent);
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.product-card:hover .pc-img img { transform: scale(1.05); }
.pc-body { padding: 22px 24px 26px; }
.pc-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 10px;
  font-weight: 600;
}
.pc-body h3 { font-size: 18px; margin-bottom: 8px; color: var(--fg-0); font-weight: 700; }
.pc-body p { font-size: 13px; color: var(--fg-1); margin: 0; line-height: 1.7; }

/* ===== About section ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-img {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.about-img img { aspect-ratio: 4/3; object-fit: cover; }
.about-content h2 { font-size: clamp(28px, 3vw, 36px); margin-bottom: 24px; letter-spacing: -0.02em; }
.about-content p { margin-bottom: 18px; color: var(--fg-1); line-height: 1.8; }

.about-bullets {
  list-style: none;
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
}
.about-bullets li {
  position: relative;
  padding-left: 26px;
  font-size: 14px;
  color: var(--fg-1);
  font-weight: 500;
}
.about-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px; height: 16px;
  background: var(--accent-soft);
  border-radius: 50%;
}
.about-bullets li::after {
  content: "✓";
  position: absolute;
  left: 3px;
  top: 4px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
}

/* ===== ISO badge band ===== */
.iso-band {
  background: linear-gradient(135deg, var(--accent-soft) 0%, rgba(14, 165, 233, 0.04) 100%);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  padding: 40px 0;
}
.iso-band .container {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.iso-mark {
  flex-shrink: 0;
  width: 80px; height: 80px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 13px;
  color: #fff;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-align: center;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.32);
}
.iso-text {
  flex: 1;
}
.iso-text strong {
  color: var(--fg-0);
  display: block;
  font-size: 17px;
  margin-bottom: 4px;
  font-weight: 700;
}
.iso-text small {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  font-weight: 600;
  text-transform: uppercase;
}

/* ===== Contact / CTA (lighter band — contrasts with near-black footer) ===== */
.cta-band {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(56, 189, 248, 0.30) 0%, transparent 55%),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(14, 165, 233, 0.15) 0%, transparent 60%),
    linear-gradient(180deg, #1a3052 0%, #142a4a 60%, #1a3052 100%);
  padding: 90px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  color: var(--fg-on-dark);
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}
.cta-band .container { position: relative; z-index: 1; }
.cta-band .section-eyebrow { color: var(--accent-2); }
.cta-band .section-eyebrow::before { background: var(--accent-2); }
.cta-band h2 {
  font-size: clamp(28px, 3vw, 38px);
  margin-bottom: 18px;
  color: #fff;
  letter-spacing: -0.02em;
}
.cta-band p {
  max-width: 580px;
  margin: 0 auto 36px;
  color: var(--fg-on-dark-2);
  font-size: 16px;
  line-height: 1.7;
}
.cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-band .btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}
.cta-band .btn-ghost:hover {
  border-color: var(--accent-2);
  background: rgba(14, 165, 233, 0.12);
  color: var(--accent-2);
}

/* ===== Contact form / info ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
}
.contact-info { padding-top: 8px; }
.contact-info dl {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 20px 18px;
  margin-top: 32px;
  font-size: 14px;
}
.contact-info dt {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding-top: 4px;
  font-weight: 600;
}
.contact-info dd { color: var(--fg-0); font-weight: 500; }
.contact-info dd a { color: var(--fg-0); }
.contact-info dd a:hover { color: var(--accent); }

form.inquiry {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 40px;
  box-shadow: var(--shadow-card);
}
.form-row { margin-bottom: 20px; }
.form-row.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
form.inquiry label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-2);
  font-family: var(--font-mono);
  margin-bottom: 8px;
  font-weight: 600;
}
form.inquiry input,
form.inquiry textarea,
form.inquiry select {
  width: 100%;
  background: var(--bg-0);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 14px;
  color: var(--fg-0);
  font-family: inherit;
  font-size: 14px;
  transition: all .2s;
}
form.inquiry input:focus,
form.inquiry textarea:focus,
form.inquiry select:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 4px var(--accent-soft);
}
form.inquiry textarea { min-height: 130px; resize: vertical; }
.form-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  font-size: 12px;
  color: var(--fg-2);
  gap: 16px;
  flex-wrap: wrap;
}

/* ===== Footer ===== */
.site-footer {
  background: #03070d;
  color: var(--fg-on-dark-2);
  padding: 72px 0 32px;
  border-top: 1px solid rgba(56, 189, 248, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-grid h4 {
  color: #fff;
  font-size: 12px;
  margin-bottom: 18px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a {
  color: var(--fg-on-dark-2);
  font-size: 13px;
  transition: color .15s;
}
.footer-grid a:hover { color: var(--accent-2); }
.footer-brand { color: var(--fg-on-dark-2); font-size: 13px; line-height: 1.7; }
.footer-brand img {
  height: 42px;
  margin-bottom: 18px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
/* Designer credit — subtle row above legal line */
.footer-credit {
  text-align: center;
  padding: 24px 0 18px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.42);
  letter-spacing: 0.02em;
}
.footer-credit a {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: all .2s;
}
.footer-credit a:hover {
  color: var(--accent-2);
  border-bottom-color: var(--accent-2);
}
.footer-credit a::after {
  content: " ↗";
  font-size: 10px;
  opacity: 0.7;
  font-family: var(--font-mono);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: var(--fg-on-dark-2);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}
.footer-bottom a { color: var(--fg-on-dark-2); }
.footer-bottom a:hover { color: var(--accent-2); }

/* ===== Breadcrumb ===== */
.breadcrumb {
  background: var(--bg-1);
  border-bottom: 1px solid var(--line);
  padding: calc(var(--header-h) + 24px) 0 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}
.breadcrumb a { color: var(--fg-2); transition: color .15s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--fg-2); padding: 0 10px; }
.breadcrumb .current { color: var(--accent); font-weight: 600; }

/* ===== Sub-page hero ===== */
.page-hero {
  padding: 100px 0 80px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 50% at 85% 30%, rgba(14, 165, 233, 0.10) 0%, transparent 65%),
    linear-gradient(180deg, #ffffff 0%, var(--bg-1) 100%);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(2, 132, 199, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(2, 132, 199, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  z-index: 0;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 {
  font-size: clamp(32px, 4.5vw, 52px);
  margin-bottom: 18px;
  letter-spacing: -0.02em;
  font-weight: 800;
}
.page-hero .lead {
  font-size: 17px;
  color: var(--fg-1);
  max-width: 720px;
  line-height: 1.75;
}

/* ===== Homepage "watch video" thumbnail link (about section) ===== */
.about-video-link {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: all .25s;
  text-decoration: none;
  color: inherit;
}
.about-video-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
  transition: transform .4s ease;
}
.about-video-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.about-video-link:hover img { transform: scale(1.04); }

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(180deg, rgba(11,23,38,0.0) 30%, rgba(11,23,38,0.55) 100%);
  color: #fff;
  text-align: center;
  transition: background .25s;
}
.about-video-link:hover .play-overlay {
  background: linear-gradient(180deg, rgba(11,23,38,0.15) 0%, rgba(11,23,38,0.7) 100%);
}
.play-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,0.35));
  transition: transform .25s ease;
}
.about-video-link:hover .play-icon { transform: scale(1.08); }
.play-label {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
  margin-top: 6px;
}
.play-duration {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.85);
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

/* ===== Company intro video ===== */
.video-section {
  padding: 96px 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, var(--accent-soft) 0%, transparent 60%),
    var(--bg-1);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 980px;
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(11, 23, 38, 0.20), 0 4px 12px rgba(11, 23, 38, 0.06);
  border: 1px solid var(--line);
  background: #000;
}
.video-wrapper video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* ===== Company history timeline ===== */
.history-section {
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, var(--accent-soft) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.history-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(2, 132, 199, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(2, 132, 199, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
  pointer-events: none;
}
.history-section .container { position: relative; z-index: 1; }

.history-head {
  text-align: center;
  margin-bottom: 80px;
}
.history-head .section-eyebrow {
  justify-content: center;
}
.history-head .section-eyebrow::before {
  content: "";
}
.history-head h2 {
  font-size: clamp(30px, 4vw, 44px);
  margin: 0 auto 14px;
  max-width: 720px;
  letter-spacing: -0.02em;
}
.history-head .lead {
  font-size: 16px;
  color: var(--fg-1);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}
.history-span {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-mono);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 18px;
  margin-bottom: 24px;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-0);
  box-shadow: 0 2px 12px rgba(2, 132, 199, 0.10);
}
.history-span strong {
  color: var(--accent);
  font-size: 16px;
  font-weight: 800;
}

/* Timeline rail */
.timeline {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  padding: 20px 0;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(180deg, transparent 0%, var(--accent) 8%, var(--accent) 92%, transparent 100%);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  gap: 0;
  margin-bottom: 32px;
}
.timeline-item:last-child { margin-bottom: 0; }

/* Center column = year + dot */
.timeline-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding-top: 6px;
}
.timeline-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 6px rgba(2, 132, 199, 0.10);
  z-index: 2;
  transition: all .25s;
}
.timeline-item.is-highlight .timeline-dot {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  width: 22px; height: 22px;
  box-shadow: 0 0 0 8px rgba(14, 165, 233, 0.20), 0 4px 16px rgba(2, 132, 199, 0.35);
}
.timeline-year {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-top: 12px;
  background: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--line);
  white-space: nowrap;
}
.timeline-item.is-highlight .timeline-year {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Card on alternating sides */
.timeline-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 26px;
  box-shadow: var(--shadow-card);
  position: relative;
  transition: all .25s;
}
.timeline-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.timeline-card::before {
  /* arrow pointer toward the rail */
  content: "";
  position: absolute;
  top: 28px;
  width: 12px; height: 12px;
  background: #fff;
  border: 1px solid var(--line);
  transform: rotate(45deg);
}
.timeline-item:nth-child(odd) .timeline-card {
  grid-column: 1;
  margin-right: 14px;
  text-align: right;
}
.timeline-item:nth-child(odd) .timeline-card::before {
  right: -7px;
  border-left: none;
  border-bottom: none;
}
.timeline-item:nth-child(even) .timeline-card {
  grid-column: 3;
  margin-left: 14px;
  text-align: left;
}
.timeline-item:nth-child(even) .timeline-card::before {
  left: -7px;
  border-right: none;
  border-top: none;
}
.timeline-card .t-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-soft), rgba(14, 165, 233, 0.04));
  border: 1px solid var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 14px;
}
.timeline-item:nth-child(odd) .timeline-card .t-icon { margin-left: auto; }
.timeline-media {
  position: relative;
  width: 148px;
  aspect-ratio: 4 / 3;
  margin: 0 0 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-2);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}
.timeline-item:nth-child(odd) .timeline-media { margin-left: auto; }
.timeline-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.timeline-media .t-icon,
.timeline-item:nth-child(odd) .timeline-media .t-icon {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 34px;
  height: 34px;
  margin: 0;
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(8px);
}
.timeline-card h3 {
  font-size: 18px;
  color: var(--fg-0);
  margin-bottom: 8px;
  font-weight: 700;
}
.timeline-card p {
  font-size: 14px;
  color: var(--fg-1);
  line-height: 1.7;
  margin: 0;
}
.timeline-item.is-highlight .timeline-card {
  border-color: var(--accent);
  background: linear-gradient(135deg, #fff 0%, var(--accent-soft) 100%);
  box-shadow: 0 8px 28px rgba(2, 132, 199, 0.15);
}
.timeline-item.is-highlight .timeline-card h3 {
  color: var(--accent);
}

/* Empty side cell — keep grid alignment */
.timeline-item:nth-child(odd) .timeline-empty { grid-column: 3; }
.timeline-item:nth-child(even) .timeline-empty { grid-column: 1; }

@media (max-width: 768px) {
  .timeline { padding-left: 8px; }
  .timeline::before { left: 28px; }
  .timeline-item { grid-template-columns: 56px 1fr; }
  .timeline-center {
    grid-column: 1;
    grid-row: 1;
    align-items: center;
    padding-top: 2px;
  }
  .timeline-year {
    position: absolute;
    top: 24px;
    margin-top: 0;
    font-size: 11px;
    padding: 3px 8px;
  }
  .timeline-card,
  .timeline-item:nth-child(odd) .timeline-card,
  .timeline-item:nth-child(even) .timeline-card {
    grid-column: 2;
    margin: 0 0 16px;
    text-align: left;
  }
  .timeline-item:nth-child(odd) .timeline-card::before,
  .timeline-item:nth-child(even) .timeline-card::before {
    left: -7px;
    right: auto;
    border-right: none;
    border-top: none;
  }
  .timeline-item:nth-child(odd) .timeline-card .t-icon { margin-left: 0; }
  .timeline-media {
    width: 132px;
    margin-left: 0;
  }
  .timeline-empty { display: none; }
}

/* ===== Workflow grid (technology.html 合作流程 6 cards) ===== */
.workflow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 1024px) {
  .workflow { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .workflow { grid-template-columns: 1fr; gap: 16px; }
}

/* ===== Tab strip (products.html) ===== */
.tab-strip-wrap {
  position: sticky;
  top: var(--header-h);
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border-bottom: 1px solid var(--line);
  margin: 0 -28px;
  padding: 0 28px;
}
.tab-strip {
  display: flex;
  gap: 6px;
  padding: 14px 0;
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  max-width: var(--maxw);
  margin: 0 auto;
}
.tab-strip::-webkit-scrollbar { height: 4px; }
.tab-strip::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }

.tab-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: var(--bg-3);
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-1);
  cursor: pointer;
  white-space: nowrap;
  transition: all .2s;
  letter-spacing: 0.01em;
}
.tab-pill:hover {
  background: #fff;
  color: var(--accent);
  border-color: var(--line-strong);
}
.tab-pill.active {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.32);
}
.tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 22px;
  padding: 0 8px;
  background: rgba(15, 23, 42, 0.08);
  color: var(--fg-1);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
}
.tab-pill.active .tab-count {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

/* ===== Tab panels ===== */
.cat-panels {
  padding: 56px 0 0;
}
.cat-panel { display: none; }
.cat-panel.active { display: block; animation: fadePanel .35s ease; }
@keyframes fadePanel {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* "All" panel — subgroup per category */
.cat-subgroup { margin-bottom: 72px; }
.cat-subgroup:last-child { margin-bottom: 32px; }
.cat-subgroup-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.cat-subgroup-head h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--fg-0);
  margin: 0;
}
.cat-subgroup-head h3 .muted {
  font-size: 13px;
  font-weight: 500;
  margin-left: 8px;
}
.cat-jump {
  background: none;
  border: none;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background .2s;
  font-weight: 600;
}
.cat-jump:hover { background: var(--accent-soft); }

/* ===== Per-category product sections (products.html) ===== */
.cat-section,
.cat-panel > .cat-section-head {
  padding: 0;
}
.cat-section { padding: 80px 0; border-top: 1px solid var(--line); }
.cat-section:first-of-type { border-top: none; padding-top: 56px; }
.cat-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.cat-section-head h2 {
  font-size: clamp(24px, 2.6vw, 32px);
  margin: 8px 0 10px;
  letter-spacing: -0.02em;
}
.cat-section-head .lead {
  font-size: 15px;
  color: var(--fg-1);
  max-width: 580px;
  margin: 0;
}
.cat-meta .mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--accent);
  font-weight: 600;
  background: var(--accent-soft);
  padding: 6px 12px;
  border-radius: 999px;
}
.cat-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.product-card.mini { font-size: 13px; }
.product-card.mini .pc-img { aspect-ratio: 1/1; }
.product-card.mini .pc-body { padding: 14px 16px 18px; }
.product-card.mini .pc-tag { font-size: 9px; margin-bottom: 4px; }
.product-card.mini h4 {
  font-size: 13px;
  font-weight: 600;
  margin: 0;
  color: var(--fg-0);
  line-height: 1.4;
}

@media (max-width: 1024px) {
  .cat-products-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .cat-products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-card.mini h4 { font-size: 12px; }
  .cat-section { padding: 50px 0; }
  .tab-strip-wrap { margin: 0 -20px; padding: 0 20px; }
  .tab-pill { padding: 8px 12px; font-size: 12px; }
  .tab-count { min-width: 22px; height: 18px; padding: 0 6px; font-size: 10px; }
  .cat-panels { padding-top: 32px; }
  .cat-subgroup-head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .cat-jump { padding: 4px 0; }
}

/* ===== Page-hero with original photo background ===== */
.page-hero.has-bg {
  background: none;
  position: relative;
  overflow: hidden;
}
/* Background image layer */
.page-hero.has-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  opacity: 0.85;
}
/* Soft tint overlay — let image dominate, only mild wash for text readability */
.page-hero.has-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    /* left-to-right gradient: white at left where text is, fading to transparent on right */
    linear-gradient(90deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.70) 40%, rgba(255, 255, 255, 0.30) 75%, rgba(255, 255, 255, 0.15) 100%),
    /* subtle tech grid */
    linear-gradient(rgba(2, 132, 199, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(2, 132, 199, 0.04) 1px, transparent 1px);
  background-size: cover, 40px 40px, 40px 40px;
  pointer-events: none;
}
.page-hero.bg-tech::after  { background-image: url("../images/banner-2.webp"); }
.page-hero.bg-products::after { background-image: url("../images/banner-1.webp"); }
.page-hero.bg-cases::after { background-image: url("../images/banner-3.webp"); }
.page-hero.bg-iso::after   { background-image: url("../images/banner-iso.webp"); }
.page-hero.bg-page::after  { background-image: url("../images/banner-page.webp"); }
.page-hero.has-bg .container { position: relative; z-index: 2; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .capabilities-grid,
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-content { grid-template-columns: 1fr; gap: 32px; }
  .hero-image { max-width: 480px; margin: 0 auto; }
  .hero-badge { left: 16px; bottom: -16px; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .nav-main { display: none; }
  .nav-main.open {
    display: flex;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
  }
  .nav-toggle { display: inline-block; }
  section { padding: 60px 0; }
  .capabilities-grid,
  .products-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .about-bullets { grid-template-columns: 1fr; }
  .form-row.split { grid-template-columns: 1fr; }
  .hero-stats { width: 100%; }
  .hero-stat { padding: 14px 18px; }
  .hero-stat .num { font-size: 24px; }
  /* hide brand subtitle on mobile to save space */
  .brand-text small { display: none; }
  /* simplify lang switch text on mobile */
  .lang-switch a span { display: none; }
  .lang-switch a { padding: 6px 8px; }
}

/* ===== Image placeholder (for AI-fill slots) ===== */
.img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background:
    repeating-linear-gradient(
      45deg,
      #f8fafc,
      #f8fafc 12px,
      #eef2f7 12px,
      #eef2f7 24px
    );
  border: 1px dashed var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  padding: 16px;
  line-height: 1.6;
  border-radius: 8px;
  font-weight: 600;
}
.img-placeholder.large { aspect-ratio: 16/9; font-size: 13px; }
.img-placeholder::before {
  content: "▢  ";
  opacity: 0.6;
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 880px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 4px;
  display: grid;
  grid-template-columns: 60px 1fr 30px;
  gap: 16px;
  align-items: center;
  transition: background .2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--accent-soft); }
.faq-num {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.05em;
}
.faq-q {
  color: var(--fg-0);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}
.faq-toggle {
  color: var(--accent);
  font-size: 20px;
  font-weight: 300;
  text-align: right;
  transition: transform .2s;
}
.faq-item[open] .faq-toggle { transform: rotate(45deg); }
.faq-a {
  padding: 0 4px 24px 76px;
  color: var(--fg-1);
  font-size: 15px;
  line-height: 1.7;
}

/* ===== Case detail + listing ===== */
.case-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 36px 0;
  padding: 26px 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-card);
}
.case-meta > div { display: flex; flex-direction: column; gap: 6px; }
.case-meta strong { color: var(--fg-0); font-size: 15px; }
.case-meta .mono { font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; }
.case-cover {
  margin: 36px 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.case-cover img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; }
.case-body {
  font-size: 16px;
  line-height: 1.8;
  max-width: 760px;
}
.case-body p { margin-bottom: 18px; color: var(--fg-1); }
.case-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.case-gallery-img {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.case-gallery-img img { width: 100%; height: 100%; object-fit: cover; }

/* ===== Downloads ===== */
.downloads-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.download-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  display: block;
  color: inherit;
  transition: all .25s;
  box-shadow: var(--shadow-card);
}
.download-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.download-card[data-pending="true"] { opacity: 0.7; cursor: default; }
.download-card[data-pending="true"]:hover { transform: none; border-color: var(--line); box-shadow: var(--shadow-card); }
.dl-cover {
  aspect-ratio: 3/4;
  background: var(--bg-3);
  overflow: hidden;
  position: relative;
}
.dl-cover img { width: 100%; height: 100%; object-fit: cover; }
.dl-cover .img-placeholder { aspect-ratio: auto; height: 100%; }
.dl-body { padding: 22px 24px 26px; }
.dl-body h3 { font-size: 17px; margin-bottom: 8px; }
.dl-body p { font-size: 13px; color: var(--fg-1); margin-bottom: 14px; }
.dl-action {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--accent);
}

/* ===== Product detail ===== */
.prod-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  margin-top: 40px;
}
.prod-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.prod-gallery-img {
  aspect-ratio: 4/3;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-3);
  box-shadow: var(--shadow-card);
}
.prod-gallery-img img { width: 100%; height: 100%; object-fit: cover; }
.prod-desc {
  font-size: 15px;
  line-height: 1.8;
  color: var(--fg-1);
  margin-bottom: 28px;
}
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-bottom: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.spec-table th, .spec-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.spec-table tr:last-child th,
.spec-table tr:last-child td { border-bottom: none; }
.spec-table tr:hover { background: var(--accent-soft); }
.spec-table th {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  width: 40%;
}
.spec-table td { color: var(--fg-0); }
.prod-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ===== Responsive add-ons ===== */
@media (max-width: 1024px) {
  .downloads-grid { grid-template-columns: repeat(2, 1fr); }
  .case-meta { grid-template-columns: repeat(2, 1fr); }
  .prod-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  .downloads-grid { grid-template-columns: 1fr; }
  .case-meta { grid-template-columns: 1fr; gap: 14px; padding: 18px; }
  .case-gallery { grid-template-columns: 1fr; }
  .faq-item summary { grid-template-columns: 40px 1fr 24px; gap: 10px; padding: 18px 4px; }
  .faq-a { padding-left: 50px; }
}

/* ============================================================
   In-app browser font-size hardening (LINE / FB / IG / WeChat)
   These webviews have unreliable viewport reporting, which makes
   clamp(...vw...) values bloat. Force fixed px on mobile.
   ============================================================ */
@media (max-width: 768px) {
  /* Hero — keep h1 small enough so Chinese title fits in 2 lines, no orphan punctuation */
  .hero h1 { font-size: 26px !important; line-height: 1.25 !important; }
  .hero h1 .accent { font-size: inherit !important; }
  .hero-lead { font-size: 14.5px !important; line-height: 1.7 !important; }
  .hero-eyebrow { font-size: 10px !important; }
  .hero-text { padding: 26px 22px 30px !important; }

  /* Page heros (sub-pages) */
  .page-hero h1 { font-size: 24px !important; line-height: 1.25 !important; }
  .page-hero .lead { font-size: 14.5px !important; }

  /* Section headings */
  .section-head h2 { font-size: 22px !important; line-height: 1.3 !important; }
  .section-head .lead { font-size: 14px !important; }

  /* About */
  .about-content h2 { font-size: 20px !important; line-height: 1.3 !important; }

  /* Timeline */
  .history-head h2 { font-size: 22px !important; line-height: 1.3 !important; }
  .timeline-card h3 { font-size: 15px !important; }

  /* Categories on products.html */
  .cat-section-head h2 { font-size: 19px !important; }

  /* CTA band */
  .cta-band h2 { font-size: 21px !important; line-height: 1.3 !important; }
  .cta-band p { font-size: 14px !important; }

  /* Stats bar — labels were getting clipped */
  .hero-stat .num { font-size: 20px !important; }
  .hero-stat .label { font-size: 9.5px !important; letter-spacing: 0.08em !important; }
  .hero-stat { padding: 10px 8px !important; }

  /* Body baseline lock */
  body { font-size: 14.5px !important; }
  p { font-size: inherit; }

  /* Better Chinese text wrapping (no orphan punctuation) */
  h1, h2, h3, h4 { word-break: keep-all; overflow-wrap: anywhere; text-wrap: balance; }
}

/* ===== Utilities ===== */
.muted { color: var(--fg-2); }
.mono { font-family: var(--font-mono); }
.text-center { text-align: center; }
