/* ============================================================
   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;              /* align to style-light.css (base system) */
  --navy-deep: #141414;         /* dark bands/panels: hero-fw photo backdrop, cta-band, etc. (page-hero is light now) */
  --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(28px, 3.4vw, 40px); color: var(--navy); margin-bottom: 18px; }
.h-sub { font-size: 17px; color: var(--muted); max-width: 640px; }

.section { padding: 96px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { margin-bottom: 52px; }

/* ---------- 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) — match style-light.css */
  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(12,11,10,.66) 0%,
    rgba(12,11,10,.30) 30%,
    rgba(12,11,10,0) 58%);
}
.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: rgba(255,255,255,.85);
  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: #fff;
  max-width: 640px;
  margin-bottom: 12px;
  text-shadow: 0 1px 14px rgba(0,0,0,.35);
}
.hero-panel .hero-sub {
  font-size: 15.5px;
  line-height: 1.6;
  color: rgba(255,255,255,.88);
  max-width: 540px;
  margin-bottom: 24px;
  text-shadow: 0 1px 10px rgba(0,0,0,.35);
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-panel .btn { padding: 13px 26px; }
.hero-panel .btn-ghost { color: #fff; border-color: rgba(255,255,255,.55); }
.hero-panel .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.1); }

/* ---------- 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(20,20,20,.08); }
.product-card:hover { box-shadow: 0 14px 34px rgba(20,20,20,.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(20,20,20,.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(20,20,20,.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 (light, matches homepage .band-light) ---------- */
.cta-band { background: #fff; color: var(--text); padding: 56px 0; position: relative; overflow: hidden; border-top: 1px solid var(--line); }
.cta-band::before {
  content: ""; position: absolute; right: -80px; bottom: -160px;
  width: 420px; height: 420px; border-radius: 50%;
  border: 1px solid rgba(43,52,64,.06);
}
.cta-band::after {
  content: ""; position: absolute; right: 40px; bottom: -220px;
  width: 420px; height: 420px; border-radius: 50%;
  border: 1px solid rgba(43,52,64,.05);
}
.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(24px, 2.6vw, 32px); color: var(--navy); margin-bottom: 12px; }
.cta-band p { color: var(--muted); font-size: 16.5px; max-width: 560px; }
.cta-band .mail { color: var(--ice-strong); 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(20,20,20,.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(20,20,20,.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; }
}

/* --- Desktop nav: link group centered on the PAGE width (logo left, EN/Account right),
   identical to style-light.css so series/ability pages match the homepage exactly --- */
@media (min-width: 1181px) {
  .site-header .container { position: relative; }
  .main-nav {
    position: absolute; inset: 0;
    margin-left: 0; flex: none;
    justify-content: center;
    pointer-events: none;            /* let clicks pass to the logo beneath */
  }
  .main-nav a { pointer-events: auto; }
  .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;
  }
}

/* --- 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(--navy-deep); 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(20,20,20,.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: #141414; }

/* ---------- 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(20,20,20,.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; }
}

/* ============================================================
   Unified product grid — series pages + homepage "What We Produce"
   (3 cols desktop >=1200, 2 cols tablet/phone, 1 col very small)
   ============================================================ */
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.prod-cell {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: var(--text);
  transition: box-shadow .25s ease, transform .25s ease;
}
.prod-cell:hover { box-shadow: 0 14px 32px rgba(20,20,20,.12); transform: translateY(-2px); }
.prod-cell .thumb { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-alt); }
.prod-cell .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prod-cell .pc-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 5px; }
.prod-cell .pc-name, .prod-cell h3 { font-size: 15.5px; font-weight: 600; color: var(--navy); line-height: 1.3; margin: 0; }
.prod-cell h3 { padding: 14px 16px 16px; }
.prod-cell .pc-spec { font-size: 13px; color: var(--muted); }
.prod-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Restrained placeholder (until real photos arrive) */
.media-ph, .thumb-ph {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; background: var(--bg-alt); color: var(--muted); text-align: center;
}
.media-ph { width: 100%; min-height: 440px; border-radius: var(--radius); }
.thumb-ph { width: 100%; height: 100%; min-height: 160px; }
.ph-icon { width: 46px; height: 46px; opacity: .45; }
.ph-cap { font-size: 13px; }

/* Series hero: keep tidy height, image or placeholder fills the media box */
.detail-head .media { display: flex; }
.detail-head .media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }

/* "All Series" text link row on homepage — styled as proper links */
.all-series { margin-top: 34px; text-align: center; line-height: 2.25; }
.all-series .as-label {
  display: inline; font-size: 13px; font-weight: 700; letter-spacing: .04em;
  color: var(--muted); text-transform: none; margin-right: 8px;
}
.all-series .as-label::after { content: ":"; }
.all-series a {
  color: var(--text); text-decoration: none; font-size: 14.5px; font-weight: 500;
  padding: 0 1px;
}
.all-series a:not(:last-child)::after {
  content: "\00B7"; color: #C9C3BC; margin: 0 11px; font-weight: 400;
}
.all-series a:hover { color: var(--ice-strong); }

/* Products nav: plain link (dropdown removed per build spec) */
@media (max-width: 980px) {
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .prod-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .media-ph { min-height: 300px; }
}
@media (max-width: 480px) {
  .prod-grid { grid-template-columns: 1fr; }
  .prod-grid.cols-4 { grid-template-columns: 1fr; }
}


/* ===== 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; }
}

/* ---------- 展会弹窗 ---------- */
.tk-exh-overlay {
  position: fixed; inset: 0; z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(15, 19, 24, .55);
  opacity: 0; animation: tkExhFade .25s ease forwards;
}
@keyframes tkExhFade { to { opacity: 1; } }
.tk-exh-card {
  position: relative; width: min(420px, 92vw);
  background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
}
.tk-exh-poster { width: 100%; background: #0b0f14; aspect-ratio: 16 / 9; }
.tk-exh-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tk-exh-close {
  position: absolute; top: 8px; right: 10px; width: 34px; height: 34px;
  border: none; border-radius: 50%; background: rgba(0, 0, 0, .45);
  color: #fff; font-size: 20px; line-height: 1; cursor: pointer; z-index: 2;
}
.tk-exh-close:hover { background: rgba(0, 0, 0, .7); }
.tk-exh-body { padding: 18px 20px 22px; text-align: center; }
.tk-exh-title { margin: 0 0 8px; color: var(--navy); font-size: 19px; }
.tk-exh-sub { margin: 0 0 14px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.tk-exh-btn { display: inline-block; }
@media (max-width: 600px) {
  /* 移动端改为底部条：不占满屏、不遮首屏 */
  .tk-exh-overlay { align-items: flex-end; background: rgba(15, 19, 24, .4); }
  .tk-exh-card { width: 100vw; border-radius: 0; display: flex; align-items: center; }
  .tk-exh-poster { width: 116px; flex: 0 0 116px; aspect-ratio: 1 / 1; }
  .tk-exh-body { padding: 12px 14px; text-align: left; flex: 1; min-width: 0; }
  .tk-exh-title { font-size: 16px; margin-bottom: 4px; }
  .tk-exh-sub { font-size: 12.5px; margin-bottom: 8px; }
  .tk-exh-btn { width: 100%; text-align: center; box-sizing: border-box; }
}

/* SEO content blocks: FAQ + Related Applications/Series (content additions, no layout-structure change) */
.faq-list { display: grid; gap: 18px; margin-top: 6px; }
.faq-item h3 { font-size: 16px; line-height: 1.45; margin: 0 0 6px; }
.faq-item p { margin: 0; }

/* ---------- Series hero images (2026-10-15): show the complete product, never crop ----------
 * 系列页大图（含占位注入图与 flat-contacts / flexible-connections 的默认/覆盖图）
 * 必须：保持原比例、白底、完整展示，不裁切不拉伸；手机端同样完整。
 * 仅作用于系列页头部媒体区，不影响产品详情页（product.html 注入的 #pImg 不带这些类/占位）。 */
.detail-head .media-ph img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  background: #fff !important;
  display: block !important;
}
.detail-head .media > img.has-override,
.detail-head .media > img[src*="workshop-hall"] {
  object-fit: contain !important;
  background: #fff !important;
}
