/* ============================================================
   TAIKONG ELECTRIC — Global Stylesheet
   Warm-industrial style: white / warm light gray / near-black
   + deep red accents (buttons, active nav, small accent lines)
   ============================================================ */

:root {
  --navy: #2B3440;        /* headings / primary text: deep blue-gray */
  --navy-deep: #2F3B48;   /* compact bands: blue-gray, not black */
  --navy-soft: #3A4552;
  --ice: #EFEDE8;
  --ice-strong: #C4140E;
  --bg: #FFFFFF;
  --bg-alt: #F5F4F1;
  --line: #E6E2DC;
  --text: #2F3A46;
  --muted: #5E6A76;
  --radius: 4px;
  --container: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ice-strong);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 2px;
  background: var(--ice-strong);
  vertical-align: middle;
  margin-right: 10px;
}

.h-section { font-size: clamp(26px, 3vw, 36px); color: var(--navy); margin-bottom: 18px; }
.h-sub { font-size: 17px; color: var(--muted); max-width: 640px; }

.section { padding: 88px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { margin-bottom: 44px; }
/* 首页板块间距统一收紧：about→products 约 100px；
   "View All Products" 按钮底部到下一板块 MANUFACTURING 小标题顶部约 80px。
   两块之间不再出现 padding 叠加（产品板块底部 0 + 制造板块顶部 80）。 */
.section.about-tight { padding: 88px 0 40px; }
.section.prod-tight { padding: 60px 0 0; }
.section.mfg-tight { padding: 80px 0 64px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
  font-family: var(--font);
}
.btn-primary { background: var(--ice-strong); color: #fff; border-color: var(--ice-strong); }
.btn-primary:hover { background: var(--navy-soft); border-color: var(--navy-soft); }
.btn-accent { background: var(--ice-strong); color: #fff; border-color: var(--ice-strong); }
.btn-accent:hover { background: #A0100B; border-color: #A0100B; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.link-arrow {
  font-weight: 600; font-size: 15px; color: var(--ice-strong);
  display: inline-flex; align-items: center; gap: 6px;
}
.link-arrow:hover { color: var(--navy); }

/* ---------- Header / Nav ---------- */
/* Single compact nav line: no topbar. Email + Account live in this row. */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 92px;
  max-width: 1360px;
}

/* Logo — original file untouched. The PNG carries its own whitespace
   (ink = 73.5% of file width, pads: L 11.1% / R 15.4% / T 27.6% / B 18.5%),
   so CSS crops exactly that padding instead of editing the file. */
.logo {
  display: block;
  width: 188px;                /* visible TAKON mark width (desktop) */
  aspect-ratio: 1597 / 390;    /* ink bounding-box ratio */
  overflow: hidden;
  flex-shrink: 0;
}
.logo-img {
  width: 136.06%;              /* 1 / 0.735 */
  max-width: none;
  margin: -12.52% 0 0 -15.09%;
}
/* Footer logo: transparent version used in the footer (see Footer section). */
.logo-mark {
  width: 40px; height: 40px; background: var(--navy); border-radius: 3px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.logo-mark svg { width: 22px; height: 22px; }
.logo-text { line-height: 1.1; }
.logo-text b { display: block; font-size: 19px; font-weight: 800; color: var(--navy); letter-spacing: .02em; }
.logo-text span { display: block; font-size: 10.5px; letter-spacing: .32em; color: var(--muted); text-transform: uppercase; }

.main-nav {
  display: flex; align-items: center;
  flex: 1; margin-left: 52px;
  gap: 24px; flex-wrap: nowrap;
}
.main-nav a.nav-link {
  font-size: 16px; font-weight: 700; color: var(--text);
  line-height: 1.2;
  padding: 6px 0; border-bottom: 2px solid transparent; white-space: nowrap;
}
.main-nav a.nav-link:hover, .main-nav a.nav-link.active { color: var(--navy); border-bottom-color: var(--ice-strong); }
.nav-auth {
  display: flex; align-items: center; gap: 16px;
  margin-left: 6px; padding-left: 26px; border-left: 1px solid var(--line);
  flex-shrink: 0;
}
.main-nav .btn { padding: 11px 20px; font-size: 14px; white-space: nowrap; }
@media (max-width: 1340px) { .main-nav { gap: 18px; margin-left: 44px; } .main-nav a.nav-link { font-size: 15px; } }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 9px 8px; }
.nav-toggle span { display: block; width: 26px; height: 2.5px; background: var(--navy); margin: 6px 0; }
.main-nav a.nav-lang {
  font-size: 12.5px; font-weight: 700; color: var(--ice-strong);
  border: 1px solid currentColor; border-radius: 3px;
  padding: 4px 9px; letter-spacing: .08em; flex-shrink: 0;
  margin-left: auto;
}
.main-nav a.nav-lang:hover { color: var(--navy); }
.main-nav a.nav-account {
  font-size: 14px; color: var(--muted);
  padding-left: 20px; margin-left: 6px;
  border-left: 1px solid var(--line); white-space: nowrap;
}
.main-nav a.nav-account:hover { color: var(--navy); }

/* ---------- Hero: full-bleed workshop photo, light text on bottom scrim ---------- */
.hero-fw {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  background: var(--navy-deep);
}
.hero-fw .photo {
  position: relative;
  overflow: hidden;
  height: clamp(440px, 52vw, min(660px, 80vh));
}
.hero-fw .photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 72%;
}
.hero-fw .photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(255,255,255,.97) 0%,
    rgba(255,255,255,.88) 32%,
    rgba(255,255,255,.55) 56%,
    rgba(255,255,255,0) 80%);
}
.hero-panel {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding-bottom: 64px;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.hero-kicker::before {
  content: ""; width: 26px; height: 2px; background: var(--ice-strong);
}
.hero-panel h1 {
  font-size: clamp(28px, 3.1vw, 42px);
  line-height: 1.16;
  letter-spacing: -0.015em;
  color: var(--navy);
  max-width: 640px;
  margin-bottom: 12px;
}
.hero-panel .hero-sub {
  font-size: 15.5px;
  line-height: 1.6;
  color: #4A5563;
  max-width: 540px;
  margin-bottom: 24px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-panel .btn { padding: 13px 26px; }
.hero-panel .btn-ghost { color: var(--navy); border-color: rgba(43,52,64,.45); background: rgba(255,255,255,.6); }
.hero-panel .btn-ghost:hover { border-color: var(--navy); background: #fff; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: #FAF9F7;
  color: var(--text);
  padding: 72px 0 60px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.page-hero .eyebrow { color: var(--ice-strong); }
.page-hero h1 { font-size: clamp(30px, 3.8vw, 46px); margin-bottom: 16px; color: var(--navy); }
.page-hero p { color: var(--muted); font-size: 17px; max-width: 660px; }
.page-hero::after {
  content: "";
  position: absolute; right: -120px; top: -120px;
  width: 460px; height: 460px; border-radius: 50%;
  border: 1px solid rgba(20,30,40,.06);
  pointer-events: none;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 13.5px; color: var(--muted); padding: 20px 0 0; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--navy); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .25s ease, transform .25s ease;
  display: flex; flex-direction: column;
}
.section.alt .product-card { border-color: transparent; box-shadow: 0 1px 3px rgba(43,52,64,.08); }
.product-card:hover { box-shadow: 0 14px 34px rgba(43,52,64,.14); transform: translateY(-4px); }
.product-card .thumb { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-alt); }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .thumb img { transform: scale(1.04); }
.product-card .body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.product-card h3 { font-size: 19px; color: var(--navy); margin-bottom: 10px; }
.product-card p { font-size: 14.5px; color: var(--muted); flex: 1; }
.product-card .link-arrow { margin-top: 18px; font-size: 14px; }

.value-card { padding: 34px 30px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.section.alt .value-card { border: none; box-shadow: 0 1px 3px rgba(43,52,64,.08); }
.value-card .num { font-size: 13px; font-weight: 700; color: var(--ice-strong); letter-spacing: .12em; margin-bottom: 14px; }
.value-card h3 { font-size: 18px; color: var(--navy); margin-bottom: 10px; }
.value-card p { font-size: 14.5px; color: var(--muted); }

/* ---------- Split section (image + text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split .media { border-radius: var(--radius); overflow: hidden; box-shadow: 0 18px 44px rgba(43,52,64,.16); }
.split .media img { width: 100%; height: 100%; object-fit: cover; }
.check-list li {
  position: relative; padding-left: 34px; margin-bottom: 16px;
  font-size: 15.5px; color: var(--text);
}
.check-list li::before {
  content: "";
  position: absolute; left: 0; top: 5px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--ice);
}
.check-list li::after {
  content: "";
  position: absolute; left: 4.5px; top: 9px;
  width: 9px; height: 5px;
  border-left: 2px solid var(--navy); border-bottom: 2px solid var(--navy);
  transform: rotate(-45deg);
}
.check-list li b { color: var(--navy); }

/* ---------- Process strip ---------- */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: step; }
.process .step { padding: 8px 28px 0; position: relative; }
.process .step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-size: 13px; font-weight: 700; color: var(--ice-strong);
  display: block; margin-bottom: 12px; letter-spacing: .1em;
}
.process .step::after {
  content: ""; position: absolute; top: 14px; right: -14px;
  width: 28px; height: 1px; background: var(--line);
}
.process .step:last-child::after { display: none; }
.process .step h4 { font-size: 16px; color: var(--navy); margin-bottom: 8px; }
.process .step p { font-size: 13.5px; color: var(--muted); }

/* ---------- Stats band ---------- */
.stats { background: var(--navy); color: #fff; padding: 64px 0; }
.stats .grid-4 { gap: 20px; }
.stats b { display: block; font-size: 38px; font-weight: 800; letter-spacing: -.01em; }
.stats b em { font-style: normal; color: var(--ice); }
.stats span { font-size: 14px; color: rgba(255,255,255,.65); letter-spacing: .05em; text-transform: uppercase; }

/* ---------- Tables ---------- */
.spec-table { width: 100%; border-collapse: collapse; font-size: 14.5px; background: #fff; }
.spec-table th, .spec-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.spec-table th { background: var(--bg-alt); color: var(--navy); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.spec-table tr:hover td { background: #FBFCFD; }
/* keep spec tables inside the viewport on small phones (no horizontal scroll) */
@media (max-width: 480px) {
  .spec-table { table-layout: fixed; }
  .spec-table th, .spec-table td { padding: 10px 12px; word-break: break-word; overflow-wrap: anywhere; }
}

/* ---------- Product detail blocks ---------- */
.product-block { padding: 84px 0; border-bottom: 1px solid var(--line); }
.product-block:last-of-type { border-bottom: none; }
.product-block .split { gap: 64px; }
.product-block .tag-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0 24px; }
.tag {
  font-size: 12.5px; font-weight: 600; color: var(--navy);
  background: var(--ice); border-radius: 3px; padding: 5px 12px;
  letter-spacing: .02em;
}

/* ---------- CTA band ---------- */
/* [DEAD CODE — marked 2026-10-10] No page references this dark .cta-band definition.
   Scheduled for removal when style-light.css and style.css are merged.
   Left untouched this round per instructions (do NOT delete yet). */
.cta-band { background: var(--navy-deep); color: #fff; padding: 88px 0; position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; right: -80px; bottom: -160px;
  width: 420px; height: 420px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15);
}
.cta-band::after {
  content: ""; position: absolute; right: 40px; bottom: -220px;
  width: 420px; height: 420px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.1);
}
.cta-band .container { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,.72); font-size: 16.5px; max-width: 560px; }
.cta-band .mail { color: var(--ice); font-weight: 600; }

/* ---------- Contact / RFQ ---------- */
.rfq-wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 44px; box-shadow: 0 4px 20px rgba(43,52,64,.06); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--navy); margin-bottom: 7px; }
.field label i { font-style: normal; color: #C0392B; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--radius);
  font-family: var(--font); font-size: 15px; color: var(--text);
  background: #FCFDFE;
  transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ice-strong); }
.field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 14px; }

.contact-info-card { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 40px; }
.contact-info-card h3 { font-size: 20px; margin-bottom: 8px; }
.contact-info-card > p { color: rgba(255,255,255,.7); font-size: 14.5px; margin-bottom: 28px; }
.info-item { padding: 16px 0; border-top: 1px solid rgba(255,255,255,.12); }
.info-item b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--ice); margin-bottom: 5px; }
.info-item span, .info-item a { font-size: 15px; color: #fff; }
.info-item a:hover { color: var(--ice); }
/* Contact-card icons (inline SVG): icon + label/value layout */
.info-item { display: flex; gap: 14px; align-items: flex-start; white-space: nowrap; }
.info-item .ci-ico { flex: 0 0 auto; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.info-item .ci-ico svg { width: 20px; height: 20px; display: block; }
.info-item .ci-body { min-width: 0; }

/* ---------- Footer ---------- */
/* Footer logo: transparent-background file (images/logo-transparent.png,
   2172x724 RGBA, ink 1729x424, pads L7.9/R12.5/T22.7/B18.8 %) shown
   directly on the dark footer — no backing chip needed. */
.site-footer .logo-footer {
  display: block;
  width: 140px;                /* visible TAKON mark width in footer */
  aspect-ratio: 1729 / 424;
  overflow: hidden;
}
.site-footer .logo-footer .logo-img {
  width: 125.62%;              /* 2172 / 1729 */
  max-width: none;
  margin: -9.49% 0 0 -9.89%;
}
.site-footer { background: #FAF9F7; color: #5E6A76; font-size: 14.5px; border-top: 1px solid var(--line); }
.footer-main { padding: 46px 0 44px; display: grid; grid-template-columns: 1.45fr 0.9fr 1fr 1.05fr; gap: 44px; }
.site-footer h4 { color: var(--navy); font-size: 14px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 20px; }
.site-footer ul li { margin-bottom: 12px; }
.site-footer a:hover { color: var(--navy); }
/* Footer Contact rows: icon + text, vertically centered (LinkedIn/WhatsApp added) */
.site-footer li.ft-line { display: flex; align-items: center; margin-bottom: 14px; white-space: nowrap; }
.site-footer li.ft-line:last-child { margin-bottom: 0; }
.site-footer li.ft-line a { display: inline-flex; align-items: center; }
.site-footer li.ft-line .ft-ico { flex: 0 0 auto; width: 16px; height: 16px; margin-right: 9px; vertical-align: middle; }
.site-footer li.ft-line:hover,
.site-footer li.ft-line:hover a { color: #C4140E; }
.footer-brand p { margin-top: 18px; max-width: 360px; line-height: 1.75; font-size: 15px; }
.footer-main a[href^="mailto"] { font-size: 15.5px; font-weight: 600; color: var(--navy); }
.footer-products ul { columns: 1; }
.footer-products ul li { margin-bottom: 12px; font-size: 14px; line-height: 1.5; }
.footer-bottom { border-top: 1px solid var(--line); padding: 22px 0; }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; color: #8B96A2; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split, .rfq-wrap { grid-template-columns: 1fr; gap: 44px; }
  .process { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .process .step::after { display: none; }
  .footer-main { grid-template-columns: 1fr 1fr; }
}

/* --- Compact inline nav for tablet / small-desktop (768–1180px):
       shrink spacing & font so all 8 items fit on one line;
       never wrap, never hide items, never clip the logo --- */
@media (max-width: 1180px) {
  .logo { width: 180px; }
  .main-nav { gap: 18px; margin-left: 30px; }
  .main-nav a.nav-link { font-size: 14.5px; }
}
@media (max-width: 1024px) {
  .logo { width: 165px; }
  .main-nav { gap: 14px; margin-left: 22px; }
  .main-nav a.nav-link { font-size: 14px; }
}
@media (max-width: 900px) {
  .logo { width: 150px; }
  .main-nav { gap: 11px; margin-left: 16px; }
  .main-nav a.nav-link { font-size: 13px; }
  .main-nav a.nav-account { padding-left: 12px; margin-left: 4px; }
}
/* --- Hamburger for phones (below 768px) --- */
@media (max-width: 767px) {
  .main-nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: flex-start;
    padding: 20px 24px; gap: 16px; border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(43,52,64,.1);
    flex: none; margin-left: 0;
  }
  .main-nav.open { display: flex; }
  .main-nav a.nav-link { font-size: 16px; }
  .main-nav a.nav-account { border-left: none; padding-left: 0; margin-left: 0; }
  .main-nav a.nav-lang { margin-left: 0; }
  .site-header .container { height: 72px; }
  .logo { width: 140px; }
  .nav-toggle { display: block; }
}

/* --- Hero adapts --- */
@media (max-width: 980px) {
  .hero-fw .photo { height: 64vw; min-height: 320px; max-height: 430px; }
  .hero-panel { padding-bottom: 32px; }
  .hero-panel h1 { font-size: 24px; }
  .hero-panel .hero-sub { font-size: 14px; margin-bottom: 18px; }
  .hero-panel .btn { padding: 12px 20px; font-size: 14px; }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .logo { width: 132px; }
  /* Stack: photo on top, text on dark block below — hero reads as one unit */
  .hero-panel { position: static; background: var(--bg-alt); padding: 28px 0 34px; }
  .hero-panel h1 { font-size: 23px; }
  .process { grid-template-columns: 1fr; }
  .container { padding: 0 22px; }
  .form-card { padding: 30px 24px; }
}

/* ============================================================
   v2 additions — product detail, solutions, quality, auth, admin
   ============================================================ */

/* ---------- Large product cards (grid-2) ---------- */
.cards-lg { gap: 36px; }
.cards-lg .product-card .thumb { aspect-ratio: 3 / 2; }

/* ---------- Photo placeholder & CTA card (Products page) ---------- */
.thumb-empty {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
.cards-lg .product-card .thumb-empty { aspect-ratio: 3 / 2; }

/* Full product display: fit whole image, pad instead of crop */
.product-card .thumb.thumb-contain { background: #fff; }
.product-card .thumb.thumb-contain img { object-fit: contain; }

/* ---------- Home page: real-photo placeholders ---------- */
.hero-media .media-empty {
  position: absolute; inset: 0;
  background: var(--bg-alt);
  border-left: 1px solid var(--line);
}
.photo-grid.cols-4 { grid-template-columns: repeat(4, 1fr); gap: 24px; }
.photo-card .ph-empty { aspect-ratio: 4 / 3; background: #fff; border-bottom: 1px solid var(--line); }
.split .media .split-empty { width: 100%; aspect-ratio: 4 / 3; background: var(--bg-alt); }
.split .media img.fit-left { object-position: 18% center; }
.photo-card .ph-img { aspect-ratio: 4 / 3; background: #fff; }
.photo-card .ph-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 1100px) {
  .photo-grid.cols-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .photo-grid.cols-4 { grid-template-columns: 1fr; }
  .hero-media .media-empty { position: static; height: 340px; border-left: none; border-top: 1px solid var(--line); }
}
.card-cta {
  background: var(--navy); color: #fff; border-radius: var(--radius);
  text-decoration: none;
  display: flex; flex-direction: column; justify-content: center; padding: 36px;
}
.card-cta h3 { color: #fff; font-size: 22px; margin-bottom: 10px; }
.card-cta p { color: rgba(255,255,255,.78); font-size: 15px; margin-bottom: 0; }

/* ---------- Product detail page ---------- */
.detail-head { padding: 64px 0 72px; }
.detail-head .split { gap: 64px; }
.detail-head h1 { font-size: clamp(28px, 3.4vw, 40px); color: var(--navy); margin-bottom: 12px; }
.detail-head .tagline { font-size: 17px; color: var(--muted); margin-bottom: 20px; }
.detail-section { padding: 72px 0; border-top: 1px solid var(--line); }
.detail-section h2 { font-size: 24px; color: var(--navy); margin-bottom: 22px; }
.detail-section p { color: var(--muted); max-width: 1150px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

/* ---------- Flow (custom solutions) ---------- */
.flow { display: flex; flex-wrap: wrap; gap: 14px; align-items: stretch; margin-bottom: 8px; }
.flow .flow-step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; font-size: 14px; font-weight: 600; color: var(--navy);
  flex: 1 1 150px; min-width: 150px; position: relative; text-align: center;
  display: flex; align-items: center; justify-content: center;
}
.flow .flow-step::after {
  content: "\2192"; position: absolute; right: -14px; color: var(--ice-strong);
  font-weight: 700; z-index: 2;
}
.flow .flow-step:last-child::after { display: none; }
.flow-note { font-size: 13.5px; color: var(--muted); margin-top: 18px; }

/* ---------- Numbered process list (manufacturing) ---------- */
.proc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; }
.proc-item { display: flex; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.proc-item .num { font-size: 13px; font-weight: 800; color: var(--ice-strong); min-width: 34px; padding-top: 3px; }
.proc-item h3 { font-size: 17px; color: var(--navy); margin-bottom: 4px; }
.proc-item p { font-size: 14px; color: var(--muted); }

/* ---------- Photo placeholders (real factory photos) ---------- */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.photo-card { border: 1px dashed #C7D2DC; border-radius: var(--radius); overflow: hidden; background: var(--bg-alt); }
.photo-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-card .cap { padding: 14px 18px; font-size: 13.5px; color: var(--muted); }
.photo-card .cap b { display: block; color: var(--navy); font-size: 14.5px; margin-bottom: 2px; }

/* ---------- Quality grid ---------- */
.qa-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

/* ---------- Forms / messages ---------- */
.form-msg { display: none; margin: 0 0 20px; padding: 13px 16px; border-radius: var(--radius); font-size: 14px; }
.form-msg.ok { display: block; background: #E8F5EE; color: #1E7A46; border: 1px solid #BFE3CD; }
.form-msg.err { display: block; background: #FBEDEC; color: #A93226; border: 1px solid #F0C9C5; }
.field .hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }

/* ---------- Auth / account ---------- */
.auth-wrap { max-width: 460px; margin: 0 auto; }
.auth-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--line); margin-bottom: 28px; }
.auth-tabs button {
  flex: 1; background: none; border: none; padding: 13px 6px; font-family: var(--font);
  font-size: 15px; font-weight: 600; color: var(--muted); cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -2px;
}
.auth-tabs button.active { color: var(--navy); border-bottom-color: var(--ice-strong); }
.otp-row { display: flex; gap: 12px; }
.otp-row input { flex: 1; }
.otp-row .btn { padding: 12px 18px; font-size: 14px; white-space: nowrap; }
.req-list li { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.req-list li b { color: var(--navy); font-weight: 600; }
.req-list li .st { font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 3px; }
.st-new { background: var(--bg-alt); color: var(--text); border: 1px solid var(--line); }
.st-quoted { background: #E8F5EE; color: #1E7A46; }
.st-closed { background: var(--bg-alt); color: var(--muted); }

/* ---------- Admin ---------- */
.admin-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; }
.admin-table th, .admin-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table th { background: var(--bg-alt); color: var(--navy); font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; }
.admin-table .actions a, .admin-table .actions button { font-size: 13px; color: var(--ice-strong); background: none; border: none; cursor: pointer; font-family: var(--font); padding: 0 6px; }
.admin-table .actions button:hover, .admin-table .actions a:hover { color: var(--navy); text-decoration: underline; }
.modal-bg { display: none; position: fixed; inset: 0; background: rgba(43,52,64,.5); z-index: 200; align-items: center; justify-content: center; padding: 24px; }
.modal-bg.open { display: flex; }
.modal { background: #fff; border-radius: var(--radius); padding: 36px; width: 100%; max-width: 640px; max-height: 90vh; overflow: auto; }

@media (max-width: 980px) {
  .detail-head .split { grid-template-columns: 1fr; }
  .proc-grid { grid-template-columns: 1fr; }
  .photo-grid, .qa-grid { grid-template-columns: 1fr 1fr; }
  .related-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .photo-grid, .qa-grid, .related-grid { grid-template-columns: 1fr; }
  .flow .flow-step { flex: 1 1 100%; }
  .flow .flow-step::after { content: "\2193"; right: 50%; bottom: -18px; top: auto; }
  .flow .flow-step { margin-bottom: 14px; }
}

/* ---------- Logo mark: near-black body + deep red accent line ---------- */
.logo-mark svg path[stroke] { stroke: #C4140E; }
.logo-mark svg path[fill] { fill: #141414; }
.site-footer .logo-mark svg path[fill] { fill: #fff; }

/* ---------- Manufacturing: mosaic (1 main + 2 process photos) ---------- */
.mfg-mosaic {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.mfg-cell { margin: 0; display: flex; flex-direction: column; }
.mfg-cell .ph {
  overflow: hidden; border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(43,52,64,.12);
}
.mfg-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mfg-cell img.fit-left { object-position: 18% center; }
.mfg-main .ph { aspect-ratio: 16 / 10; }
.mfg-side { display: grid; gap: 24px; grid-template-rows: 1fr 1fr; }
.mfg-side .mfg-cell { flex-direction: row; gap: 18px; align-items: center; }
.mfg-side .ph { flex: 0 0 56%; aspect-ratio: 4 / 3; }
.mfg-cell figcaption b {
  display: inline-block;
  font-size: 17px;
  color: var(--navy);
  margin-bottom: 6px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--ice-strong);
}
.mfg-main figcaption b { font-size: 19px; margin-top: 16px; }
.mfg-cell figcaption p { font-size: 14px; color: var(--muted); }
.mfg-main figcaption p { font-size: 14.5px; max-width: 540px; }

/* ---------- Compact featured product cards (home) ---------- */
.cards-sm { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cards-sm .product-card .thumb { aspect-ratio: 4 / 3; }
.cards-sm .product-card .body { padding: 16px 18px 18px; }
.cards-sm .product-card h3 { font-size: 15.5px; }
.cards-sm .product-card p { font-size: 13px; }
@media (max-width: 980px) { .cards-sm { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .cards-sm { grid-template-columns: 1fr; } }

/* ---------- Products page: series index list ---------- */
.series-list { border-top: 1px solid var(--line); }
.series-item {
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; padding: 22px 4px; border-bottom: 1px solid var(--line);
}
.series-item h3 { font-size: 16.5px; color: var(--navy); font-weight: 600; margin-bottom: 2px; }
.series-item .s-note { font-size: 13.5px; color: var(--muted); }
.series-item .s-action {
  font-size: 13.5px; font-weight: 600; color: var(--ice-strong);
  white-space: nowrap; flex-shrink: 0;
}
.series-item .s-action:hover { color: var(--navy); }

/* ---------- Closing band: made to drawing ---------- */
.custom-band {
  background: var(--navy-deep);
  color: #fff;
  padding: 46px 0 42px;
}
.custom-band .container { display: flex; align-items: center; justify-content: space-between; gap: 36px; flex-wrap: wrap; }
.custom-band h2 {
  font-size: clamp(21px, 2.3vw, 27px);
  color: #fff;
  margin-bottom: 8px;
}
.custom-band p {
  color: rgba(255,255,255,.75);
  font-size: 14.5px;
  max-width: 640px;
  margin-bottom: 0;
}
.custom-band .btn { flex-shrink: 0; }

@media (max-width: 980px) {
  .mfg-mosaic { grid-template-columns: 1fr; }
  .mfg-side { grid-template-rows: none; }
  .custom-band .container { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   v6 home layout — restructured sections (home only)
   ============================================================ */

/* --- Hero: full photo + white text band below, no scrim --- */
.hero-v6-photo {
  height: clamp(400px, 48vw, min(560px, 66vh));
  overflow: hidden;
}
.hero-v6-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 72%;
}
.hero-v6-text {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 34px 0 38px;
}
.hero-v6-text .container {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 36px; flex-wrap: wrap;
}
.hero-v6-text h1 {
  font-size: clamp(25px, 2.7vw, 36px);
  line-height: 1.18; letter-spacing: -.015em;
  color: var(--navy);
  margin: 10px 0;
  max-width: 640px;
}
.hero-v6-text .hero-sub {
  font-size: 15.5px; color: #4A5563;
  max-width: 560px; margin-bottom: 0;
}
.hero-v6-cta { display: flex; gap: 14px; flex-wrap: wrap; flex-shrink: 0; padding-bottom: 4px; }

/* --- Products: 4 category cards in one row, whole product visible (contain) ---
   产品图已裁掉多余白边并统一为 1.6:1 画布，四张视觉大小一致；
   这里再收紧卡片内边距与列间距，把省下的宽度全部给产品本身。 */
.prod-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.prod-cell {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 10px 14px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  transition: box-shadow .25s ease, transform .25s ease;
}
.prod-cell:hover { box-shadow: 0 12px 30px rgba(43,52,64,.1); transform: translateY(-3px); }
.prod-cell .thumb {
  width: 100%; height: 168px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.prod-cell .thumb img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;      /* whole product visible, never cropped or stretched */
  display: block;
}
.prod-cell h3 {
  font-size: 16.5px; font-weight: 600; color: var(--navy);
  margin-top: 10px; line-height: 1.35;
}

/* "All Series" — A-plan: 12 equal-width capsule tags in a responsive grid */
.all-series { margin-top: 36px; text-align: center; }
.all-series .as-label {
  display: block; font-size: 13px; font-weight: 600; letter-spacing: .08em;
  color: var(--muted); text-transform: none; margin-bottom: 14px;
}
.all-series .as-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 12px;
  align-items: stretch;
  max-width: 760px; width: 100%; margin: 0 auto;
}
.all-series .as-grid a {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 44px; background: #F5F4F1; color: #3A3733;
  font-size: 13px; font-weight: 500; line-height: 1.3; text-decoration: none;
  border-radius: 6px; padding: 6px 12px; border: 1px solid transparent;
  transition: color .15s ease, background .15s ease, border-color .15s ease;
}
.all-series .as-grid a:hover {
  color: #C4140E; background: #ECE9E4; border-color: #E2DED7;
}
@media (max-width: 900px) {
  .all-series .as-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .all-series .as-grid { grid-template-columns: repeat(2, 1fr); max-width: 360px; }
}

/* --- Manufacturing: three equal photos, captions attached --- */
.mfg-tri { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.mfg-tri figure { margin: 0; }
.mfg-tri .ph {
  aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--line); background: #fff;
}
.mfg-tri .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mfg-tri img.fit-left { object-position: 18% center; }
.mfg-tri figcaption { padding: 14px 2px 0; }
.mfg-tri figcaption b {
  display: inline-block; font-size: 16px; color: var(--navy);
  padding-bottom: 5px; border-bottom: 2px solid var(--ice-strong); margin-bottom: 7px;
}
.mfg-tri figcaption p { font-size: 13.5px; color: var(--muted); }

/* --- Inquiry band: light, compact --- */
.band-light { background: #fff; border-top: 1px solid var(--line); padding: 46px 0; }
.band-light .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.band-light h2 { font-size: clamp(20px, 2.2vw, 25px); color: var(--navy); margin-bottom: 8px; }
.band-light p { color: var(--muted); font-size: 14.5px; max-width: 640px; margin-bottom: 0; }
.band-light .btn { flex-shrink: 0; }

/* --- Footer: shorter --- */
.footer-main { padding: 34px 0 30px; }
.site-footer h4 { margin-bottom: 14px; }
.site-footer ul li { margin-bottom: 8px; }
.footer-products ul li { margin-bottom: 8px; }
.footer-brand p { margin-top: 12px; font-size: 13.5px; }
.footer-bottom { padding: 16px 0; }

/* --- v6 responsive --- */
@media (max-height: 820px) {
  .hero-v6-photo { height: clamp(340px, 52vh, 470px); }
  .hero-v6-text { padding: 28px 0 32px; }
}
@media (max-width: 980px) {
  .mfg-tri { gap: 18px; }
  .prod-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .prod-cell { padding: 16px 12px 14px; }
  .prod-cell .thumb { height: 220px; }
}
@media (max-width: 620px) {
  .prod-grid { grid-template-columns: 1fr; gap: 16px; }
  .prod-cell .thumb { height: 220px; }
  .hero-v6-photo { height: 62vw; min-height: 260px; }
  .hero-v6-text .container { flex-direction: column; align-items: flex-start; gap: 20px; }
  .hero-v6-cta { width: 100%; padding-bottom: 0; }
  .hero-v6-cta .btn { flex: 1; text-align: center; }
  .mfg-tri { grid-template-columns: 1fr; }
}

/* ============================================================
   v8 hero — photo shown whole at native ratio, text beside it
   (replaces hero-v6 on home; workshop-hero.jpg is 1551x1014)
   ============================================================ */
.hero-v8 { background: #fff; border-bottom: 1px solid var(--line); }
.hero-v8 .container {
  display: grid;
  grid-template-columns: .88fr 1fr;
  gap: 46px;
  align-items: center;
  padding-top: 44px;
  padding-bottom: 44px;
}
.hero-v8-text { min-width: 0; }   /* never let the text column push past its grid track */
.hero-v8-text h1 {
  font-size: clamp(28px, 2.8vw, 38px);
  line-height: 1.18; letter-spacing: -.015em;
  color: var(--navy);
  margin: 10px 0 16px;
  max-width: min(520px, 100%);   /* room for "Conductive Components" to stay on one line */
  overflow-wrap: break-word;     /* long words can never spill out of the column */
}
.hero-v8-text .hero-sub {
  font-size: 16px; color: #4A5563;
  max-width: min(420px, 100%); margin-bottom: 26px;
  overflow-wrap: break-word;
}
.hero-v8-text .btn { padding: 13px 24px; font-size: 14.5px; }
.hero-v8-photo {
  aspect-ratio: 1551 / 1014;   /* native image ratio — zero crop */
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-alt);
}
.hero-v8-photo img {
  width: 100%; height: 100%;
  object-fit: cover;           /* container ratio == image ratio, nothing cropped */
  display: block;
}

/* --- v8 responsive --- */
@media (max-width: 980px) {
  .hero-v8 .container {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 28px;
    padding-bottom: 32px;
  }
  .hero-v8-text { order: 2; }   /* photo first on mobile */
  .hero-v8-photo { order: 1; }
}
@media (max-width: 620px) {
  .hero-v8 .container { padding-top: 20px; padding-bottom: 24px; gap: 22px; }
  .hero-v8-text .hero-sub { margin-bottom: 20px; }
}

/* ============================================================
   v7 home layout — reference-inspired rhythm (home only)
   ============================================================ */

/* --- Who we are: lead text + real inspection photo --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-lead p { font-size: 15.5px; color: var(--muted); margin: 4px 0 20px; }
.about-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-alt);
}
.about-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* --- Manufacturing: press-workshop main photo + 2 auxiliary photos --- */
/* Unified rules: same radius, same 26px gaps, captions below every photo,
   each photo shown at (or very near) its native ratio. */
.mfg-duo {
  display: grid;
  /* 左 55% / 右 45%：压机大图收窄变矮，右侧两张图相应变大 */
  grid-template-columns: 55fr 45fr;
  gap: 26px;
  align-items: stretch;
}
.mfg-duo figure { margin: 0; display: flex; flex-direction: column; }
.mfg-duo .ph {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-alt);
}
.mfg-duo .ph img { width: 100%; object-fit: cover; display: block; }
.md-main .ph { flex: 1; min-height: 340px; }
.md-main .ph img { height: 100%; }
.md-side { display: flex; flex-direction: column; gap: 22px; }
/* Aux cells share a 3:2 rectangle. The robot-cell source panorama carries a
   circular inset on its right side; object-position:left keeps only the
   rectangular workshop part of the photo. */
/* 右侧两张图：更宽的 12:5，配合 45% 列宽把展示面积放大约 30% */
.md-cell .ph { aspect-ratio: 12 / 5; }
.md-cell .ph img { height: 100%; }
.md-cell figcaption { padding: 12px 2px 0; }
.mfg-duo figcaption b {
  display: inline-block; font-size: 16px; color: var(--navy);
  padding-bottom: 5px; border-bottom: 2px solid var(--ice-strong); margin-bottom: 6px;
}
.md-main figcaption b { font-size: 18px; margin-top: 14px; }
.mfg-duo figcaption p { font-size: 13.5px; color: var(--muted); margin: 0; }
.md-main figcaption p { font-size: 14px; max-width: 520px; }

/* --- v7 responsive --- */
/* 窄屏笔记本：制造能力改上下排列，避免压机大图被裁成近方形 */
@media (max-width: 1080px) {
  .mfg-duo { grid-template-columns: 1fr; gap: 22px; }
  .md-side { grid-template-rows: none; }
  /* 单列：图片按屏宽自适应并限高，避免手机/平板上过高 */
  .md-main .ph { flex: none; aspect-ratio: 3 / 2; min-height: 220px; max-height: 420px; }
  .md-cell .ph { aspect-ratio: 16 / 9; max-height: 360px; }
}
@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .section.about-tight { padding: 64px 0 32px; }
  .section.prod-tight { padding: 48px 0 0; }
  /* 按钮底部到下一板块小标题顶部保持 72–88px */
  .section.mfg-tight { padding: 72px 0 52px; }
}
@media (max-width: 620px) {
  .md-main .ph { aspect-ratio: 4 / 3; max-height: 300px; }
  .md-cell .ph { aspect-ratio: 16 / 9; }
  .prod-cell .thumb { height: 200px; }
}

/* ---------- About Us page (company.html) ---------- */
.ab-hero { padding: 52px 0 8px; }
.ab-hero h1 {
  font-size: clamp(30px, 3.6vw, 42px); color: var(--navy);
  letter-spacing: -.01em; margin: 10px 0 12px;
}
.ab-hero p { color: var(--muted); font-size: 16.5px; max-width: 900px; line-height: 1.6; margin: 0; }
.ab-natural { aspect-ratio: 1710 / 920; }   /* factory-exterior native ratio, no crop */
.ab-mfg { background: var(--bg-alt); }
.ab-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.ab-photos figure { margin: 0; }
.ab-ph {
  aspect-ratio: 3 / 2; overflow: hidden;
  border-radius: var(--radius); background: #fff;
}
.ab-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ab-photos figcaption { padding: 12px 2px 0; }
.ab-photos figcaption b {
  display: inline-block; font-size: 16px; color: var(--navy);
  padding-bottom: 5px; border-bottom: 2px solid var(--ice-strong); margin-bottom: 6px;
}
.ab-photos figcaption p { font-size: 13.5px; color: var(--muted); margin: 0; }
.ab-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.ab-video { text-align: center; margin: 30px 0 0; }
.ab-video .link-arrow { font-size: 15.5px; }
@media (max-width: 620px) {
  .ab-actions { width: 100%; }
  .ab-actions .btn { flex: 1; text-align: center; white-space: nowrap; }
}
@media (max-width: 980px) {
  .ab-photos { grid-template-columns: 1fr; }
  .ab-hero { padding: 36px 0 4px; }
}

/* ---------- Products page (products.html) ---------- */
/* 左栏约 25% / 右栏约 75%，中间 28px 间距；左栏顶部与右侧系列标题顶部对齐 */
.pd-layout {
  display: grid;
  /* 目标 25% / 75% + 28px 间距；左栏下限 320px：保证最长导航名在 16px 下
     仍是一整行（需要的宽度约 319px），不会再为长名称不断加宽侧栏 */
  grid-template-columns: minmax(320px, 25fr) minmax(0, 75fr);
  gap: 28px; align-items: start;
}
.pd-side {
  position: sticky; top: 92px;
  /* 高于右侧内容里的定位元素（骨架屏缩略图等），保证子系列浮层不被盖住 */
  z-index: 30;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 5px;
}
/* 手机端折叠入口（桌面端隐藏） */
.pd-side-toggle { display: none; }
/* 菜单项之间留 8px 纵向间距（原 2px，+6px），列表更舒展又不撑太高 */
.pd-list { display: flex; flex-direction: column; gap: 8px; }
/* 一级菜单项：简短导航名 + 数量 + 展开箭头（+ 子系列浮层） */
.pd-item { position: relative; }
.pd-row { display: flex; align-items: stretch; gap: 2px; }
.pd-cat {
  flex: 1 1 auto; min-width: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 7px 6px; border-radius: 6px; border: none; background: none;
  font-family: inherit; font-size: 16px; font-weight: 600; color: var(--text);
  text-align: left; line-height: 1.35; cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
/* 系列名称始终单行：不换行、不缩写、不加省略号 */
.pd-cat > .pd-name { white-space: nowrap; }
.pd-cat:hover, .pd-item.open > .pd-row > .pd-cat { background: #F1F4F7; color: var(--navy); }
/* 当前选中的系列：浅蓝底 + 深蓝文字 */
.pd-cat.active { background: #E3EEF8; color: var(--navy); }
.pd-item.active > .pd-row > .pd-cat { background: #E3EEF8; color: var(--navy); }
/* 产品数量：比系列名小一档的浅灰数字，与名称、箭头同一行居中对齐 */
.pd-n {
  flex: 0 0 auto; font-size: 12.5px; font-weight: 600; color: #A6AEB8;
  font-variant-numeric: tabular-nums;
}
.pd-cat:hover .pd-n, .pd-cat.active .pd-n,
.pd-item.open > .pd-row > .pd-cat .pd-n { color: #6B7785; }
/* 展开箭头：只有该系列有子系列时才渲染（否则保留同宽占位，保证对齐） */
.pd-caret {
  flex: 0 0 auto; width: 22px; border: none; background: none; cursor: pointer;
  position: relative; border-radius: 6px; padding: 0; transition: background .15s ease;
}
.pd-caret::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 6px; height: 6px; margin: -5px 0 0 -5px;
  border-right: 1.6px solid #9AA3AD; border-bottom: 1.6px solid #9AA3AD;
  transform: rotate(-45deg);
  transition: transform .2s ease, border-color .15s ease;
}
.pd-caret:hover { background: rgba(43, 52, 64, .08); }
.pd-caret:hover::after { border-color: var(--navy); }
.pd-item.open > .pd-row > .pd-caret::after { transform: rotate(45deg); margin-top: -6px; border-color: var(--navy); }
.pd-caret.ph { visibility: hidden; pointer-events: none; }
/* 子系列浮层：白底、深色文字，宽度足够显示完整子系列名 */
.pd-submenu { display: none; }
.pd-item.open > .pd-submenu { display: block; }
@media (min-width: 981px) {
  .pd-submenu {
    position: absolute; left: calc(100% + 10px); top: -7px; z-index: 60;
    width: max-content; min-width: 260px; max-width: min(560px, calc(100vw - 24px));
    background: #fff; border: 1px solid var(--line); border-radius: 8px;
    box-shadow: 0 14px 30px rgba(43, 52, 64, .14);
    padding: 6px;
  }
  .pd-item.flip > .pd-submenu { left: auto; right: calc(100% + 10px); }
  /* 透明桥接：鼠标从主系列移到子菜单的途中不会触发收起 */
  .pd-submenu::before { content: ""; position: absolute; left: -12px; top: 0; bottom: 0; width: 12px; }
  .pd-item.flip > .pd-submenu::before { left: auto; right: -12px; }
}
.pd-subitem {
  display: block; padding: 9px 12px; border-radius: 6px;
  font-size: 14.5px; font-weight: 600; color: var(--text); line-height: 1.35;
  white-space: nowrap; transition: background .15s ease, color .15s ease;
}
.pd-subitem:hover { background: rgba(43, 52, 64, .08); color: var(--navy); }
.pd-subitem.active { background: var(--navy); color: #fff; }
/* 右侧：完整标题 → 子系列筛选 → 三列产品卡片 */
/* 标题区：与下方筛选按钮 / 产品图片保持 20–24px 间距 */
.pd-head { margin: 0 0 22px; }
.pd-title {
  font-size: clamp(26px, 2vw, 28px); font-weight: 600; color: var(--navy);
  letter-spacing: -.01em;
  /* 标题文字顶部与左栏菜单外框顶部对齐：负外边距抵消行盒上方的自然留白，
     所有系列页面共用这一条规则 */
  margin: -5px 0 0;
}
/* 系列简介：紧跟标题（有才渲染），白色/浅灰/深蓝风格 */
.pd-intro {
  margin: 6px 0 0; font-size: 15.5px; color: var(--muted);
  line-height: 1.6; max-width: 780px;
}
.pd-intro[hidden] { display: none; }
/* 子系列筛选（一级分类下的二级筛选），仅在该分类确有子系列时出现 */
.pd-subfilter { display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 22px; }
.pd-subfilter[hidden] { display: none; }
.pd-sub {
  padding: 8px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff;
  font-family: inherit; font-size: 16px; font-weight: 600;
  color: var(--text); line-height: 1.4; cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.pd-sub:hover { border-color: var(--ice-strong); color: var(--ice-strong); }
.pd-sub.active { background: var(--ice-strong); border-color: var(--ice-strong); color: #fff; }
/* 桌面三列、等宽，图片 4:3 完整展示（窄屏自动降为两列，卡片不会挤成一条） */
.pd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; }
.pd-card {
  margin: 0; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; cursor: pointer;
  transition: box-shadow .15s ease;
}
.pd-card:hover { box-shadow: 0 10px 26px rgba(43, 52, 64, .10); }
.pd-thumb {
  aspect-ratio: 4 / 3; background: #F5F4F1;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.pd-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pd-card figcaption { padding: 14px 16px; font-size: 16px; font-weight: 600; color: var(--navy); line-height: 1.4; text-align: center; }
.pd-empty {
  grid-column: 1 / -1; border: 1px dashed #D8D5CF; border-radius: var(--radius);
  padding: 48px 30px; text-align: center; color: var(--muted);
}
.pd-empty b { display: block; color: var(--navy); font-size: 16px; margin-bottom: 8px; }
.pd-empty a { color: var(--ice-strong); font-weight: 600; }
.pd-empty p { margin: 0; font-size: 14.5px; }
/* modal */
.pd-modal-bg {
  position: fixed; inset: 0; background: rgba(20, 24, 29, .55);
  display: none; align-items: center; justify-content: center;
  z-index: 80; padding: 20px;
}
.pd-modal-bg.open { display: flex; }
.pd-modal {
  background: #fff; border-radius: 14px; max-width: 780px; width: 100%;
  max-height: 88vh; overflow: auto; padding: 28px; position: relative;
}
.pd-close {
  position: absolute; top: 12px; right: 16px; border: none; background: none;
  font-size: 30px; line-height: 1; color: var(--muted); cursor: pointer; z-index: 2;
}
.pd-close:hover { color: var(--navy); }
.pd-modal-img {
  aspect-ratio: 4 / 3; background: #F5F4F1; border-radius: 10px;
  overflow: hidden; display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.pd-modal-img img { width: 100%; height: 100%; object-fit: contain; }
.pd-modal h3 { color: var(--navy); font-size: 22px; margin-bottom: 6px; }
.pd-mtag { color: var(--ice-strong); font-weight: 600; font-size: 14.5px; margin: 0 0 6px; }
.pd-mover { color: var(--muted); font-size: 14.5px; line-height: 1.65; margin: 0 0 14px; }
.pd-specs { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 18px; }
.pd-specs td { border-top: 1px solid var(--line); padding: 9px 10px; color: var(--muted); }
.pd-specs td b { color: var(--navy); font-weight: 600; }
.pd-nospec { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.pd-mactions { display: flex; gap: 12px; flex-wrap: wrap; }

/* 介绍区 / 面包屑 / 产品区之间的留白收紧，让分类和产品更早出现 */
/* 顶部留白收紧：让左栏菜单与右侧标题尽早出现（所有系列页面共用） */
.pd-hero { padding: 8px 0 0; }
.pd-hero .eyebrow { margin-bottom: 4px; }
.pd-hero h1 { font-size: clamp(28px, 3vw, 36px); margin: 4px 0 6px; }
.pd-hero p { font-size: 16px; line-height: 1.55; }
/* 面包屑与左栏外框左边缘对齐：显式保留与 .container 相同的左右内边距 */
.pd-crumb { padding: 4px 32px 0; line-height: 1.4; }
.pd-section { padding: 8px 0 72px; }

/* ---- 手机端：折叠分类菜单 + 卡片随屏宽调整 ---- */
@media (max-width: 980px) {
  .pd-layout { grid-template-columns: 1fr; gap: 16px; }
  .pd-side {
    position: static; display: block; padding: 8px; border-radius: 12px;
  }
  /* 折叠入口：点击展开/收起分类列表 */
  .pd-side-toggle {
    display: grid; grid-template-columns: minmax(0, 1fr) 14px;
    align-items: center; gap: 10px; width: 100%;
    padding: 9px 10px; border: none; background: none; border-radius: 8px;
    font-family: inherit; text-align: left; cursor: pointer;
  }
  .pd-side-toggle:hover { background: rgba(43, 52, 64, .06); }
  .pd-side-toggle-lbl {
    display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .08em;
    text-transform: uppercase; color: var(--muted); margin-bottom: 2px;
  }
  .pd-side-toggle-sub {
    display: block; font-size: 15.5px; font-weight: 600; color: var(--navy); line-height: 1.35;
  }
  .pd-caret-ic {
    width: 7px; height: 7px; margin-top: -4px;
    border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted);
    transform: rotate(45deg); transition: transform .2s ease, border-color .15s ease;
  }
  .pd-side.open .pd-caret-ic { transform: rotate(-135deg); margin-top: 2px; border-color: var(--navy); }
  .pd-list { display: none; }
  .pd-side.open .pd-list {
    display: flex; flex-direction: column; gap: 8px;
    margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line);
    max-height: min(62vh, 460px); overflow-y: auto;
  }
  .pd-cat { font-size: 16px; padding: 10px 8px; }
  .pd-cat > .pd-name { white-space: normal; }
  /* 子系列就地展开，不再浮出（列表可纵向滚动，不裁切） */
  .pd-item.open > .pd-submenu {
    position: static; width: auto; max-width: none;
    margin: 2px 0 6px 12px; padding: 2px 0 2px 12px;
    border-left: 2px solid var(--line); box-shadow: none; border-radius: 0;
  }
  .pd-subitem { white-space: normal; font-size: 15px; }
  .pd-head { margin: 0 0 14px; }
  .pd-title { font-size: 24px; margin: 0; }
  .pd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .pd-hero { padding: 14px 0 0; }
  .pd-crumb { padding: 4px 22px 0; }
  .pd-section { padding: 10px 0 60px; }
}
@media (max-width: 560px) {
  .pd-grid { grid-template-columns: 1fr; }
  .pd-modal { padding: 20px; }
  .pd-subfilter { gap: 7px; margin: 0 0 18px; }
  .pd-sub { padding: 7px 14px; font-size: 15px; }
}
/* Product detail page: keep product photos uncropped */
.detail-head .media { background: #fff; border: 1px solid var(--line); box-shadow: none; }
.detail-head .media img { object-fit: contain; background: #fff; }

/* Detail page gallery thumbnails */
.p-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.p-thumb {
  width: 92px; height: 69px; padding: 0; cursor: pointer;
  background: #fff; border: 1px solid var(--line); border-radius: 6px;
  overflow: hidden; opacity: .75; transition: opacity .12s ease, border-color .12s ease;
}
.p-thumb img { width: 100%; height: 100%; object-fit: contain; background: #fff; display: block; }
.p-thumb:hover { opacity: 1; }
.p-thumb.active { opacity: 1; border-color: var(--ice-strong, #C0392B); box-shadow: 0 0 0 1px var(--ice-strong, #C0392B); }

/* Image lightbox (click to enlarge) */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(20, 24, 30, .90);
  display: none; align-items: center; justify-content: center;
  padding: 40px; cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(1100px, 92vw); max-height: 90vh;
  object-fit: contain; background: #fff;
  box-shadow: 0 28px 72px rgba(0, 0, 0, .45);
}

/* ============================================================
   Product Videos page
   ============================================================ */
.vid-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.vid-filter {
  font-family: var(--font); font-size: 14px; font-weight: 600;
  color: var(--navy); background: #fff;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 18px; cursor: pointer;
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}
.vid-filter:hover { border-color: var(--navy); }
.vid-filter.active { background: var(--ice-strong); border-color: var(--ice-strong); color: #fff; }

.vid-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.vid-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; text-align: left; padding: 0;
  font-family: var(--font);
  transition: box-shadow .2s ease, transform .2s ease;
}
.vid-card:hover { box-shadow: 0 10px 26px rgba(43, 52, 64, .12); transform: translateY(-2px); }
.vid-thumb { position: relative; aspect-ratio: 16 / 9; background: #EDEBE6; overflow: hidden; }
.vid-thumb img, .vid-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.vid-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.vid-play span {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(43, 52, 64, .74);
  display: flex; align-items: center; justify-content: center;
  transition: background .18s ease, transform .18s ease;
}
.vid-card:hover .vid-play span { background: var(--ice-strong); transform: scale(1.07); }
.vid-play svg { width: 19px; height: 19px; fill: #fff; margin-left: 3px; }
.vid-meta { padding: 14px 18px 16px; }
.vid-meta .vid-cat {
  font-size: 11.5px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 5px;
}
.vid-meta h3 { font-size: 15.5px; font-weight: 600; color: var(--navy); line-height: 1.4; }

/* Video player modal */
.vid-modal { position: fixed; inset: 0; z-index: 1100; display: none; align-items: center; justify-content: center; padding: 22px; }
.vid-modal.open { display: flex; }
.vid-modal-bg { position: absolute; inset: 0; background: rgba(20, 26, 33, .82); }
.vid-modal-box {
  position: relative; width: min(960px, 100%);
  background: #141A21; border-radius: 6px; overflow: hidden;
  box-shadow: 0 28px 72px rgba(0, 0, 0, .5);
}
.vid-modal-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 16px; }
.vid-modal-bar span { color: #fff; font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.vid-modal-close {
  flex-shrink: 0; width: 32px; height: 32px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .14); color: #fff; font-size: 19px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.vid-modal-close:hover { background: var(--ice-strong); }
.vid-modal-body video, .vid-modal-body iframe {
  width: 100%; aspect-ratio: 16 / 9; display: block; border: 0; background: #000;
}

@media (max-width: 1024px) {
  .vid-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}
@media (max-width: 640px) {
  .vid-grid { grid-template-columns: 1fr; }
  .vid-modal { padding: 14px; }
}

/* Video modal: title + optional description */
.vid-modal-head { min-width: 0; }
.vid-modal-head p { color: rgba(255, 255, 255, .62); font-size: 12.5px; line-height: 1.45; margin-top: 3px; }

/* Single video: centered card sized so cover + title fit in one viewport */
.vid-grid.single { grid-template-columns: min(560px, 100%); justify-content: center; }

/* ============================================================
   News page & article page
   ============================================================ */
.news-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.news-card {
  display: block; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease;
}
.news-card:hover { box-shadow: 0 10px 26px rgba(43, 52, 64, .12); transform: translateY(-2px); }
.news-thumb { aspect-ratio: 16 / 9; background: #EDEBE6; overflow: hidden; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-meta { padding: 18px 22px 20px; }
.news-date {
  font-size: 12px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ice-strong); margin-bottom: 7px;
}
.news-meta h3 { font-size: 19px; font-weight: 700; color: var(--navy); line-height: 1.35; margin-bottom: 8px; }
.news-meta p {
  font-size: 14.5px; color: var(--muted); line-height: 1.6; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.news-empty { color: var(--muted); font-size: 15px; padding: 8px 0 4px; }

/* Article detail */
.art-wrap { max-width: 860px; margin: 0 auto; }
.art-head h1 { font-size: clamp(26px, 3.2vw, 38px); color: var(--navy); margin: 10px 0 14px; }
.art-date { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ice-strong); }
/* 正文图片轮播：固定高度 + object-fit:contain，完整显示不裁切、切换时不跳动 */
.art-slider { margin: 22px 0 2px; }
.art-slider[hidden] { display: none; }
.art-viewport {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-alt);
  height: clamp(240px, 44vw, 440px);
}
.art-track { display: flex; height: 100%; transition: transform .35s cubic-bezier(.4, 0, .2, 1); }
.art-slide {
  flex: 0 0 100%; height: 100%;
  display: flex; align-items: center; justify-content: center; padding: 12px;
}
.art-slide img { max-width: 100%; max-height: 100%; width: auto; height: auto; display: block; }
.art-arrow {
  position: absolute; top: 50%; margin-top: -20px;
  width: 40px; height: 40px; padding: 0;
  border: 1px solid var(--line); border-radius: 50%;
  background: rgba(255, 255, 255, .95); color: var(--navy);
  font-size: 26px; line-height: 38px; text-align: center; cursor: pointer;
  box-shadow: 0 3px 10px rgba(43, 52, 64, .16);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.art-arrow:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.art-prev { left: 12px; }
.art-next { right: 12px; }
.art-indicator { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 12px; }
.art-dots { display: flex; align-items: center; gap: 7px; }
.art-dot {
  width: 9px; height: 9px; padding: 0; border-radius: 50%;
  border: 1px solid #C9C5BE; background: #fff; cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.art-dot:hover { border-color: var(--navy); }
.art-dot.active { background: var(--navy); border-color: var(--navy); }
.art-count { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: .04em; }
/* 只有一张图片时，不显示切换按钮和指示器 */
.art-slider[data-single="1"] .art-arrow,
.art-slider[data-single="1"] .art-indicator { display: none; }
.art-cover { margin: 26px 0 8px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.art-cover img { width: 100%; display: block; }
.art-body { padding: 22px 0 10px; }
.art-body p { font-size: 16.5px; line-height: 1.75; color: var(--text); margin-bottom: 20px; text-align: left; }
.art-body p:last-child { margin-bottom: 0; }
.art-back {
  display: inline-block; margin-top: 14px; font-size: 14.5px; font-weight: 600;
  color: var(--ice-strong);
}
.art-back:hover { text-decoration: underline; }

@media (max-width: 720px) {
  .news-grid { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 560px) {
  /* 手机端用左右滑动切换，隐藏箭头让画面更完整 */
  .art-arrow { display: none; }
  .art-viewport { height: clamp(200px, 56vw, 320px); }
  .art-slide { padding: 8px; }
}

/* Who We Are photo: keep product & hands, crop away the drawing at the bottom */
.about-media img.pos-top { object-position: center 12%; }

/* Language notice toast (EN button) */
.tk-toast {
  position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%) translateY(14px);
  background: var(--navy); color: #fff; font-size: 14px; font-weight: 600;
  padding: 11px 20px; border-radius: 6px; box-shadow: 0 10px 28px rgba(20,26,33,.28);
  opacity: 0; pointer-events: none; transition: opacity .22s ease, transform .22s ease;
  z-index: 1200; max-width: min(420px, calc(100vw - 40px)); text-align: center;
}
.tk-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================================
   Desktop nav: link group centered on the PAGE width
   (logo stays left, EN/Account stay right). The nav bar spans
   the full header; auto margins on both ends of the link group
   split the free space equally => true visual center.
   ============================================================ */
@media (min-width: 1181px) {
  .site-header .container { position: relative; }
  .main-nav {
    position: absolute; inset: 0;
    margin-left: 0; flex: none;
    justify-content: center;          /* 6 links sit at the true page center */
    pointer-events: none;            /* let clicks pass to the logo beneath */
  }
  .main-nav a { pointer-events: auto; }
  /* EN + Account pinned to the right edge, OUT of flow, so they do
     not pull the centered group off-center */
  .main-nav a.nav-lang {
    position: absolute; right: 92px; top: 50%;
    transform: translateY(-50%); margin-left: 0;
  }
  .main-nav a.nav-account {
    position: absolute; right: 0; top: 50%;
    transform: translateY(-50%);
    border-left: none; padding-left: 0; margin-left: 0;
  }
}

/* ============================================================
   Loading skeletons: fixed-size placeholders matching the final
   product / video cards, so content never flashes a wrong empty
   state and the page does not jump when data arrives.
   ============================================================ */
@keyframes tk-shimmer {
  0% { background-position: -460px 0; }
  100% { background-position: 460px 0; }
}
.skel-thumb { position: relative; overflow: hidden; }
.skel-thumb::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.7) 50%, rgba(255,255,255,0) 100%);
  background-size: 460px 100%; background-repeat: no-repeat;
  animation: tk-shimmer 1.25s linear infinite;
}
.skel-line { height: 13px; border-radius: 3px; background: #ECEAE5; }
.pd-card.skel, .vid-card.skel, .news-card.skel { pointer-events: none; cursor: default; }
.pd-card.skel .skel-line { width: 58%; margin: 16px auto 17px; }
.vid-card.skel .skel-line { margin: 0 0 9px; }
.vid-card.skel .skel-line:last-child { margin-bottom: 0; }
.news-card.skel .skel-line { margin: 0 0 10px; }
.news-card.skel .skel-line:first-child { margin-bottom: 14px; }
@media (prefers-reduced-motion: reduce) {
  .skel-thumb::after { animation: none; }
}

/* ===== Self-hosted chat bubble (no third-party widget — zero external deps) ===== */
.tk-chat { position: fixed; right: 20px; bottom: 20px; z-index: 9999;
  display: flex; flex-direction: column; align-items: flex-end; gap: 14px; font-family: inherit; }
.tk-chat-btn { width: 56px; height: 56px; border-radius: 50%; background: #C4140E;
  border: none; padding: 0; cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(196,20,14,.35); opacity: 0; transform: scale(.8);
  transition: opacity .4s ease, transform .4s ease, background .15s ease; }
.tk-chat-btn.show { opacity: 1; transform: scale(1); }
.tk-chat-btn:hover { background: #a8100b; }
.tk-chat-btn:focus-visible { outline: 3px solid #C4140E; outline-offset: 3px; }
.tk-chat-btn svg { width: 28px; height: 28px; fill: #fff; display: block; }
.tk-chat-panel { width: 300px; max-width: calc(100vw - 32px); background: #fff;
  border: 1px solid #E6E2DC; border-radius: 14px; box-shadow: 0 12px 40px rgba(20,20,20,.18);
  padding: 18px 18px 12px; position: relative; opacity: 0; transform: translateY(10px);
  pointer-events: none; transition: opacity .25s ease, transform .25s ease; }
.tk-chat-panel.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.tk-chat-close { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px;
  border: none; background: transparent; font-size: 22px; line-height: 1; color: #8B96A2;
  cursor: pointer; border-radius: 6px; }
.tk-chat-close:hover { background: #F0EEEA; color: #141414; }
.tk-chat-title { font-size: 17px; font-weight: 700; color: #141414; margin: 0 8px 4px 0; }
.tk-chat-sub { font-size: 13px; color: #6A655F; margin: 0 0 14px; }
.tk-chat-row { display: flex; align-items: center; gap: 12px; padding: 10px 8px;
  border-radius: 10px; text-decoration: none; color: #141414; transition: background .15s ease; }
.tk-chat-row:hover { background: #F5F4F1; }
.tk-chat-row:hover .tk-chat-row-text b { color: #C4140E; }
.tk-chat-ico { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: #EAF7EE; }
.tk-chat-ico svg { width: 20px; height: 20px; display: block; }
.tk-chat-row-text { display: flex; flex-direction: column; min-width: 0; }
.tk-chat-row-text b { font-size: 14px; color: #141414; font-weight: 600; }
.tk-chat-row-text span { font-size: 12px; color: #8B96A2; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
.tk-chat-btn[aria-expanded="true"] { background: #a8100b; }
@media (max-width: 600px) {
  .tk-chat { right: 14px; bottom: 14px; gap: 12px; }
  .tk-chat-btn { width: 48px; height: 48px; }
  .tk-chat-btn svg { width: 24px; height: 24px; }
  .tk-chat-panel { width: 280px; }
}
