/* ============================================================
   MD Pacific — International B2B site
   Palette: brand red #c8102e, ink #1a1f2b, slate grays
   ============================================================ */
:root {
  --brand: #c8102e;
  --brand-dark: #9c0c23;
  --ink: #161b26;
  --ink-2: #2a3140;
  --muted: #5b6472;
  --line: #e4e7ec;
  --surface: #f6f7f9;
  --white: #ffffff;
  --gold: #c8862a;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 30px rgba(20, 27, 45, 0.08);
  --shadow-lg: 0 20px 50px rgba(20, 27, 45, 0.14);
  --container: 1160px;
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
/* 即时跳转（无平滑滚动动画），避免长页面滚动晃眼 */
html { scroll-behavior: auto; }
/* 锚点跳转时为吸附的顶部导航留出空间，标题不被遮挡 */
section[id], #inquiry, #top { scroll-margin-top: 84px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 clamp(18px, 4vw, 44px); }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1rem; color: var(--ink-2); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--brand);
  margin: 0 0 .6rem;
}

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px; border-radius: 999px;
  font-weight: 700; font-size: .96rem; cursor: pointer;
  border: 1.5px solid transparent; transition: .2s ease; white-space: nowrap;
}
.button-primary { background: var(--brand); color: #fff; }
.button-primary:hover { background: var(--brand-dark); transform: translateY(-1px); }
.button-secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.button-secondary:hover { border-color: var(--ink); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand img { height: 34px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav > a, .nav-link { font-weight: 600; font-size: .95rem; color: var(--ink-2); transition: color .15s; }
.site-nav > a:hover, .nav-link:hover { color: var(--brand); }
/* current section highlight ("you are here") */
.site-nav .nav-active { color: var(--brand); font-weight: 700; }
.nav-cta { padding: 9px 18px; border-radius: 999px; background: var(--brand); color: #fff !important; }
.nav-cta:hover { background: var(--brand-dark); }

/* Product mega-menu */
.nav-item.has-dropdown { position: relative; display: flex; align-items: center; }
.nav-link { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.nav-link .caret { font-size: .7rem; transition: transform .15s; }
/* Apple-style full-width dropdown shelf */
.nav-dropdown {
  position: fixed; top: 72px; left: 0; right: 0; width: 100%;
  background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 24px 40px rgba(20, 27, 45, .12);
  padding: 30px 0 36px; z-index: 40;
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity .22s ease, transform .28s cubic-bezier(.32, .72, 0, 1), visibility .22s;
}
.nav-dd-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 44px;
}
.nav-item.has-dropdown:hover .nav-dropdown,
.nav-item.has-dropdown:focus-within .nav-dropdown,
.nav-item.has-dropdown.dd-open .nav-dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-item.has-dropdown:hover .caret,
.nav-item.has-dropdown.dd-open .caret { transform: rotate(180deg); }
.nav-dd-cat { display: flex; flex-direction: column; }
.nav-dd-title { font-weight: 800 !important; color: var(--ink) !important; font-size: 1.4rem; border-bottom: 2px solid var(--brand); padding-bottom: 7px; margin-bottom: 8px; }
.nav-dd-cat a:not(.nav-dd-title) { font-size: 1.3rem; font-weight: 500; color: var(--ink-2); padding: 6px 0; line-height: 1.3; }
.nav-dd-cat a:not(.nav-dd-title):hover { color: var(--brand); }
.nav-toggle {
  display: none; border: 1px solid var(--line); background: #fff;
  padding: 8px 14px; border-radius: 8px; font-weight: 700; cursor: pointer;
}

/* Hero */
.hero { padding: clamp(26px, 3.5vw, 46px) 0 clamp(16px, 2vw, 24px); background:
  radial-gradient(1200px 500px at 80% -10%, rgba(200,16,46,.08), transparent 60%),
  linear-gradient(180deg, #fff, var(--surface)); }
.hero-grid { display: block; }
.hero-copy { max-width: 900px; }
.hero h1 { max-width: 16em; }
.hero-certs { display: inline-block; margin: 18px 0 0; padding: 8px 16px; background: #fff; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); font-size: .82rem; font-weight: 600; letter-spacing: .02em; box-shadow: 0 1px 3px rgba(20,27,45,.05); }
.hero-lead { font-size: 1.12rem; color: var(--ink-2); max-width: 46em; }
.hero-cats-label { text-transform: uppercase; letter-spacing: .08em; font-size: .74rem; font-weight: 700; color: var(--muted); margin: 26px 0 14px; }
.hero-catnav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.hero-cat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; }
.hero-cat-title { margin: 0 0 10px; font-size: .95rem; font-weight: 800; color: var(--ink); border-bottom: 2px solid var(--brand); padding-bottom: 8px; display: flex; flex-direction: column; gap: 1px; }
.hero-cat-title span { font-size: .68rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.hero-cat ul { list-style: none; margin: 0; padding: 0; }
.hero-cat li { margin: 0; }
.hero-cat li a {
  display: block; padding: 7px 0 7px 15px; position: relative;
  font-size: .88rem; font-weight: 600; color: var(--ink-2);
  border-bottom: 1px dashed var(--line); transition: color .15s, padding .15s;
}
.hero-cat li:last-child a { border-bottom: none; }
.hero-cat li a::before { content: "›"; position: absolute; left: 2px; color: var(--brand); font-weight: 800; }
.hero-cat li a:hover { color: var(--brand); padding-left: 19px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 24px 0 26px; }
.hero-facts {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px;
  padding: 18px 0 0; margin: 0; list-style: none; border-top: 1px solid var(--line);
}
.hero-facts li { display: flex; flex-direction: column; }
.hero-facts strong { font-size: 1.35rem; color: var(--brand); font-weight: 800; line-height: 1.1; }
.hero-facts span { font-size: .86rem; color: var(--muted); }

/* Trust strip */
.trust-strip { background: var(--ink); }
.trust-strip .container {
  display: flex; flex-wrap: wrap; gap: 12px 34px; justify-content: center;
  padding: 16px 24px;
}
.trust-strip span { color: #cfd4dd; font-size: .84rem; font-weight: 600; letter-spacing: .03em; }
.trust-strip span::before { content: "✓"; color: var(--brand); margin-right: 7px; font-weight: 800; }

/* Sections */
.section { padding: clamp(52px, 6vw, 88px) 0; }
.section-surface { background: var(--surface); }
.section-dark { background: var(--ink); }
.section-dark h2, .section-dark p { color: #eef1f5; }
.section-dark .eyebrow { color: #ff8ea0; }
.section-heading { margin-bottom: 40px; }
.split-heading { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: end; }
.section-summary { color: var(--muted); font-size: .98rem; }
.callout {
  background: #fff5f6; border-left: 4px solid var(--brand);
  border-radius: var(--radius-sm); padding: 16px 20px;
  font-size: 1.08rem; font-weight: 600; color: var(--ink);
}

/* Product category tabs — sticky so you can switch categories anytime */
.product-tabs {
  display: flex; gap: 6px; margin-bottom: 26px; border-bottom: 1px solid var(--line);
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  position: sticky; top: 71px; z-index: 30; background: var(--surface); padding-top: 14px;
}
.product-tabs::-webkit-scrollbar { display: none; }
.product-tab {
  border: none; background: none; font: inherit; font-weight: 700; font-size: 1rem;
  color: var(--muted); padding: 12px 14px; margin-bottom: -1px; white-space: nowrap;
  border-bottom: 3px solid transparent; cursor: pointer; transition: color .15s, border-color .15s;
}
.product-tab:hover { color: var(--ink); }
.product-tab.active { color: var(--brand); border-bottom-color: var(--brand); }
.product-panel[hidden] { display: none; }
.panel-desc { margin: 0 0 22px; color: var(--muted); font-size: .96rem; max-width: 62em; }

/* Make the hero primary CTA the dominant action */
.hero-actions .button-primary { font-size: 1.05rem; padding: 15px 34px; }

/* Floating, always-reachable inquiry button */
.fab-inquiry {
  position: fixed; right: 22px; bottom: 22px; z-index: 44;
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--brand); color: #fff; font-weight: 700; font-size: .98rem;
  padding: 14px 22px; border-radius: 999px; box-shadow: 0 10px 28px rgba(200, 16, 46, .35);
  transition: transform .18s ease, box-shadow .18s ease, opacity .25s ease, visibility .25s;
}
.fab-inquiry:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(200, 16, 46, .45); color: #fff; }
.fab-icon { font-size: 1.1rem; line-height: 1; }
.fab-inquiry.hidden { opacity: 0; visibility: hidden; transform: translateY(12px); }
/* Desktop already shows the sticky header "在线询盘" button, so the floating
   button is only needed on mobile (where the header CTA is inside the menu). */
@media (min-width: 721px) { .fab-inquiry { display: none; } }

/* "More below" scroll cue — appears when product cards extend past the screen,
   hides once the last card is reached */
.scroll-cue {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%) translateY(10px);
  z-index: 43; display: inline-flex; align-items: center; gap: 8px;
  background: rgba(20, 27, 45, .88); color: #fff; font-size: .84rem; font-weight: 700;
  padding: 10px 18px; border-radius: 999px; box-shadow: 0 8px 22px rgba(20, 27, 45, .3);
  border: none; cursor: pointer; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .3s ease, transform .3s ease, visibility .3s;
}
.scroll-cue.show { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.scroll-cue .chev { display: inline-block; animation: cueBounce 1.4s infinite; }
@keyframes cueBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
@media (max-width: 720px) { .scroll-cue { bottom: 76px; } }

/* Product grid */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.product-card {
  background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--brand);
  border-radius: var(--radius-sm);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.product-card[data-href] { cursor: pointer; }
.product-card[data-href]:hover h3 { color: var(--brand); }
.product-card[id] { scroll-margin-top: 132px; }
.product-card:target { outline: 3px solid var(--brand); outline-offset: 3px; }
.product-media { background: #fff; height: 160px; display: flex; align-items: center; justify-content: center; padding: 16px; border-bottom: 1px solid var(--line); }
.product-media img { max-height: 100%; max-width: 100%; object-fit: contain; }
.placeholder-media {
  background: linear-gradient(135deg, #f3f4f6, #e9ebef);
  color: var(--muted); text-align: center; font-weight: 700; font-size: .95rem; line-height: 1.5;
}
.card-body { padding: 22px 24px 26px; }
.card-kicker { text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; font-weight: 700; color: var(--brand); margin: 0 0 .35rem; }
.card-body p { font-size: .95rem; }
.spec-list { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px dashed var(--line); }
.spec-list li { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: .85rem; }
.spec-list span { color: var(--muted); flex-shrink: 0; }
.spec-list b { color: var(--ink); text-align: right; font-weight: 600; }
.card-inquiry {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 16px;
  font-size: .88rem; font-weight: 700; color: var(--brand);
  border: 1.5px solid var(--brand); border-radius: 999px; padding: 8px 17px;
  transition: background .15s ease, color .15s ease;
}
.card-inquiry:hover { background: var(--brand); color: #fff; }
.card-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 16px; }
.card-actions .card-inquiry { margin-top: 0; }
.card-detail { font-size: .9rem; font-weight: 700; color: var(--ink-2); transition: color .15s; }
.card-detail:hover { color: var(--brand); }

/* Company */
.company-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: start; }
.detail-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 22px; }
.detail-list div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; }
.detail-list strong { display: block; color: var(--brand); font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.detail-list span { color: var(--ink-2); font-size: .95rem; }
.company-sidecard { background: var(--ink); color: #eef1f5; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.company-sidecard h3, .company-sidecard h4 { color: #fff; }
.company-sidecard > ul { list-style: none; padding: 0; margin: 0 0 20px; }
.company-sidecard > ul li { padding: 8px 0 8px 26px; position: relative; color: #cfd4dd; font-size: .92rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.company-sidecard > ul li::before { content: "▪"; color: var(--brand); position: absolute; left: 6px; }
.milestones h4 { font-size: 1rem; margin-bottom: 12px; }
.timeline-list { list-style: none; padding: 0; margin: 0; }
.timeline-list li { display: flex; gap: 14px; padding: 6px 0; font-size: .9rem; }
.timeline-list strong { color: var(--brand); min-width: 52px; font-weight: 800; }
.timeline-list span { color: #cfd4dd; }

/* Quality / certs */
.quality-head { max-width: 62em; margin-bottom: 38px; }
.cert-showcase { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)) 1.1fr; gap: 24px; align-items: start; }
.cert-figure { margin: 0; background: #fff; border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow-lg); }
.cert-figure img { border-radius: 8px; width: 100%; }
.cert-figure figcaption { text-align: center; color: var(--ink-2); font-size: .82rem; margin-top: 10px; font-weight: 600; }
.cert-marks { display: grid; grid-template-columns: 1fr; gap: 12px; align-content: start; }
.cert-marks-wide { grid-template-columns: repeat(3, 1fr); }
.cert-note { margin-top: 28px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 24px 26px; }
.cert-note p { color: #dfe3ea; font-size: .95rem; margin: 0 0 .8rem; }
.cert-note p strong { color: #fff; }
.cert-note-en { color: #aab2bf !important; font-size: .86rem !important; }
.cert-note .button { margin-top: 6px; }
.cert-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-sm); padding: 13px 16px; }
.cert-card strong { display: block; color: #fff; font-size: .98rem; }
.cert-card span { color: #b8bfca; font-size: .82rem; }

/* Partner */
.partner-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.partner-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.partner-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--brand); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; margin-bottom: 16px; }
.check-list { list-style: none; padding: 0; margin: 16px 0 0; }
.check-list li { position: relative; padding: 7px 0 7px 28px; color: var(--ink-2); font-size: .94rem; border-bottom: 1px solid var(--line); }
.check-list li::before { content: "✓"; color: var(--brand); font-weight: 800; position: absolute; left: 4px; }
.partner-note { margin: 24px 0 0; padding: 16px 20px; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--brand); border-radius: 10px; color: var(--ink-2); font-size: .96rem; line-height: 1.6; }
.partner-note span { display: block; margin-top: 5px; color: var(--muted); font-size: .85rem; }

/* Contact + form */
.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: start; }
.contact-info-col { padding-top: 6px; }
/* Prevent long content (e.g. select options) from forcing horizontal overflow on mobile */
.contact-grid > *, .company-grid > *, .product-grid > *, .partner-grid > *, .hero-catnav > *, .hero-grid > * { min-width: 0; }
.contact-card-list { display: grid; gap: 12px; margin-top: 20px; }
.contact-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 18px; transition: border-color .15s; }
a.contact-card:hover { border-color: var(--brand); }
.contact-card strong { color: var(--brand); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
.contact-card span { color: var(--ink-2); font-size: .95rem; }
.reassure { margin-top: 18px; }
.reassure p { color: var(--muted); font-size: .86rem; }

.inquiry-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-lg); }
.support-panel { max-width: 720px; margin: 0 auto; }
.inquiry-panel > p { color: var(--muted); font-size: .92rem; margin-bottom: 18px; }
.inquiry-form { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.inquiry-form label { display: flex; flex-direction: column; gap: 6px; font-size: .82rem; font-weight: 600; color: var(--ink-2); }
.inquiry-form label { min-width: 0; }
.inquiry-form input, .inquiry-form select, .inquiry-form textarea {
  font: inherit; font-size: .92rem; font-weight: 400; width: 100%; min-width: 0; max-width: 100%;
  padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px;
  background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.inquiry-form select { text-overflow: ellipsis; }
.inquiry-form input:focus, .inquiry-form select:focus, .inquiry-form textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(200,16,46,.12);
}
.inquiry-form textarea { resize: vertical; }
.inquiry-form .button { margin-top: 4px; }
.form-status { font-size: .88rem; margin: 6px 0 0; min-height: 1em; }
.form-status.success { color: #157347; }
.form-status.error { color: var(--brand); }
.hidden { display: none !important; }

#products { scroll-margin-top: 84px; }  /* offset sticky header when jumping to #products */

/* Home & products hub: category grid — clean text cards (no image; product
   photos live on the detail pages) */
.home-cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 680px) { .home-cat-grid { grid-template-columns: 1fr; gap: 12px; } }
.home-cat {
  display: block; background: #fff; border: 1px solid var(--line);
  border-left: 3px solid var(--brand); border-radius: var(--radius-sm);
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.home-cat:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.home-cat:hover h3 { color: var(--brand); }
.home-cat-media { height: 160px; background: #fff; display: flex; align-items: center; justify-content: center; padding: 14px; border-bottom: 1px solid var(--line); }
.home-cat-media img { max-height: 100%; max-width: 100%; object-fit: contain; }
.home-cat-body { padding: 16px 20px 20px; }
.home-cat-body h3 { margin: 0 0 6px; font-size: 1.12rem; transition: color .15s; }
.home-cat-body p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.home-cat-body .go { display: inline-block; margin-top: 12px; color: var(--brand); font-weight: 700; font-size: .88rem; }
@media (max-width: 680px) { .home-cat-media { height: 140px; } }

/* Home: featured products */
.featured-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 680px) { .featured-grid { grid-template-columns: 1fr; } }
.featured-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease; }
.featured-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.featured-card:hover h3 { color: var(--brand); }
.featured-card .fc-media { aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center; padding: 16px; border-bottom: 1px solid var(--line); }
.featured-card .fc-media img { max-height: 100%; max-width: 100%; object-fit: contain; }
.featured-card .fc-body { padding: 16px 18px 18px; }
.featured-card .fc-body p.k { color: var(--brand); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 3px; }
.featured-card .fc-body h3 { margin: 0; font-size: 1.05rem; transition: color .15s; }

/* Home: stats band */
.stat-band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat-band .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 34px 24px; }
.stat-band .st { text-align: center; }
.stat-band .st strong { display: block; font-size: 1.75rem; color: var(--brand); font-weight: 800; line-height: 1.1; }
.stat-band .st span { color: var(--muted); font-size: .85rem; }
@media (max-width: 640px) { .stat-band .container { grid-template-columns: 1fr 1fr; gap: 22px 16px; } }

/* Home: inquiry CTA band */
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap; }
.cta-band h2 { margin: 0; }
.cta-band p { margin: 6px 0 0; color: var(--muted); }

/* Product detail page */
.breadcrumb { font-size: .86rem; color: var(--muted); padding: 20px 0 0; }
.breadcrumb a { color: var(--muted); } .breadcrumb a:hover { color: var(--brand); }
.detail-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 42px; align-items: start; padding: 20px 0 8px; }
.detail-media { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); }
.detail-media img { max-width: 100%; height: auto; }
.detail-media .ph-detail { width: 100%; min-height: 240px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #f3f4f6, #e9ebef); color: var(--muted); font-weight: 700; text-align: center; line-height: 1.5; border-radius: 8px; }
.detail-info h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: .3rem 0 .6rem; }
.detail-lead { color: var(--ink-2); font-size: 1.02rem; }
.highlight-list { list-style: none; padding: 0; margin: 18px 0 26px; }
.highlight-list li { position: relative; padding: 9px 0 9px 26px; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: .96rem; }
.highlight-list li::before { content: "✓"; color: var(--brand); font-weight: 800; position: absolute; left: 2px; }
.detail-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.detail-section { padding: 32px 0; border-top: 1px solid var(--line); }
.detail-section:first-of-type { border-top: none; }
.detail-section h2 { font-size: 1.35rem; margin-bottom: 18px; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: .94rem; vertical-align: top; }
.spec-table td:first-child { color: var(--muted); width: 32%; }
.spec-table td:last-child { color: var(--ink); }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.feature-grid .feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; }
.feature-grid .feature strong { color: var(--brand); display: block; margin-bottom: 4px; font-size: .95rem; }
.feature-grid .feature span { color: var(--ink-2); font-size: .92rem; }
.download-note { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--brand); border-radius: 10px; padding: 16px 20px; color: var(--ink-2); font-size: .95rem; }
.detail-back { margin-top: 8px; }
.detail-back a { color: var(--brand); font-weight: 700; font-size: .92rem; }
@media (max-width: 820px) {
  .detail-hero { grid-template-columns: 1fr; gap: 26px; }
  .feature-grid { grid-template-columns: 1fr; }
}

/* Footer */
.site-footer { background: #10141d; color: #aeb6c2; padding: 48px 0 26px; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-logo { height: 40px; background: #fff; padding: 8px 12px; border-radius: 8px; margin-bottom: 14px; }
.site-footer p { color: #aeb6c2; font-size: .9rem; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: #cfd4dd; font-size: .92rem; }
.footer-links a:hover { color: #fff; }
.footer-legal { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); }
.footer-legal span { color: #7b8494; font-size: .82rem; }

/* Responsive */
@media (max-width: 940px) {
  .hero-grid, .company-grid, .contact-grid, .split-heading { grid-template-columns: 1fr; gap: 34px; }
  .product-grid, .partner-grid { grid-template-columns: 1fr; }
  .cert-showcase { grid-template-columns: 1fr 1fr; }
  .cert-marks { grid-column: 1 / -1; grid-template-columns: repeat(2, 1fr); }
  .hero-facts { grid-template-columns: repeat(2, 1fr); }
  .hero-catnav { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; position: relative; z-index: 60; }
  /* keep the logo visible above the full-screen menu */
  .brand { position: relative; z-index: 60; }
  /* Full-screen menu (Apple-style): fills the whole page when opened */
  .site-nav {
    position: fixed; inset: 0; top: 0; right: 0; bottom: 0; left: 0;
    height: 100vh; height: 100dvh; width: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 92px 28px 40px; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity .3s ease, transform .38s cubic-bezier(.32, .72, 0, 1), visibility .3s;
    max-height: none; z-index: 45;
    pointer-events: none; /* closed menu must never intercept taps (iOS Safari fix) */
  }
  .site-nav.open { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
  /* full-screen menu is opaque — no dim backdrop needed */
  .nav-backdrop { display: none; }
  .site-nav > a {
    font-size: 1.55rem; font-weight: 600; color: var(--ink);
    padding: 20px 0; border-bottom: 1px solid var(--line);
  }
  .nav-cta {
    margin: 28px 0 0; text-align: center; border-radius: 999px;
    font-size: 1.05rem; padding: 16px 26px; color: #fff;
  }

  /* On mobile, tapping "产品" expands an inline accordion catalog (Apple-style),
     listing every category and product without leaving the menu. */
  .nav-item.has-dropdown { display: block; }
  .nav-link {
    font-size: 1.55rem; font-weight: 600; color: var(--ink);
    padding: 20px 0; border-bottom: 1px solid var(--line);
    justify-content: space-between; width: 100%;
  }
  .nav-link .caret { display: inline-block; font-size: 1.15rem; transition: transform .25s ease; }
  .nav-item.has-dropdown.dd-open .caret { transform: rotate(180deg); }
  /* Reset the desktop fixed shelf into an inline collapsible panel */
  .nav-dropdown {
    position: static; inset: auto; width: auto; background: transparent;
    border-top: none; box-shadow: none; padding: 0; transform: none;
    opacity: 1; visibility: visible; max-height: 0; overflow: hidden;
    transition: max-height .34s ease;
  }
  /* dd-open height is driven inline by JS (panel.scrollHeight) for an exact,
     immediate collapse; this is just a no-JS fallback */
  .nav-item.has-dropdown.dd-open .nav-dropdown { max-height: 80vh; }
  .nav-dd-inner { display: block; max-width: none; margin: 0; padding: 0; }
  .nav-dd-cat { padding: 16px 0 6px; border-bottom: 1px solid var(--line); }
  .nav-dd-title { font-size: 1.02rem !important; padding-bottom: 10px; margin-bottom: 4px; }
  .nav-dd-cat a:not(.nav-dd-title) { font-size: 1.05rem; padding: 12px 0 12px 12px; }

  .detail-list, .form-row { grid-template-columns: 1fr; }
  .cert-marks, .cert-marks-wide { grid-template-columns: 1fr 1fr; }
  .hero-facts { grid-template-columns: 1fr 1fr; }
  .hero-catnav { grid-template-columns: 1fr; }

  /* Category tabs: show all categories at once on mobile (no horizontal scroll,
     so no category gets hidden off-screen) */
  .product-tabs {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    overflow: visible; border-bottom: none; margin-bottom: 22px;
    position: static; padding-top: 0; background: transparent;
  }
  .fab-inquiry { right: 16px; bottom: 16px; padding: 12px 18px; font-size: .92rem; }
  .product-tab {
    margin-bottom: 0; padding: 13px 10px; text-align: center; white-space: normal;
    border: 1px solid var(--line); border-radius: 10px; font-size: .95rem; line-height: 1.25;
  }
  .product-tab.active {
    color: var(--brand); border-color: var(--brand); background: #fff5f6;
  }
}

/* Contact page map */
.contact-map { margin-top: 20px; }
.contact-map iframe { width: 100%; height: 320px; border: 0; border-radius: 12px; display: block; }
.contact-map .map-link { display: inline-block; margin-top: 8px; font-size: 0.9rem; }
label[hidden] { display: none; }
.footer-legal { display: flex; justify-content: space-between; align-items: center; gap: 8px 20px; flex-wrap: wrap; }
.footer-icp { color: #7b8494; font-size: .82rem; }
.footer-icp:hover { color: #fff; }
/* Product list cards: single, prominent "View details" CTA (inquiry lives on detail page) */
.card-actions .card-detail {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; padding: 11px 20px; border-radius: 999px;
  background: var(--brand); color: #fff; font-size: .92rem; font-weight: 700;
  transition: background .15s ease, transform .15s ease;
}
.card-actions .card-detail:hover { background: var(--brand-dark); color: #fff; transform: translateY(-1px); }
/* ---------- News page ---------- */
.news-filter { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 22px; }
.news-tab {
  font: inherit; font-size: .88rem; font-weight: 700; cursor: pointer;
  padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line);
  background: #fff; color: var(--ink-2); transition: border-color .15s, color .15s, background .15s;
}
.news-tab:hover { border-color: var(--brand); color: var(--brand); }
.news-tab.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.news-list { display: grid; gap: 18px; }
.news-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px;
  box-shadow: var(--shadow, none);
}
.news-card[hidden] { display: none; }
.news-card h3 { margin: 10px 0 8px; }
.news-card p { margin: 0 0 6px; font-size: .95rem; }
.news-meta { display: flex; align-items: center; gap: 12px; font-size: .82rem; color: var(--muted); }
.news-tag { color: var(--brand); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.news-detail b { color: var(--ink); margin-right: 6px; }
.news-empty { color: var(--muted); padding: 28px 0; }
.news-empty[hidden] { display: none; }
/* Link to the Chinese corporate site (header) */
.site-nav > a.nav-lang {
  font-size: .85rem; font-weight: 600; color: var(--muted);
  padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px;
}
.site-nav > a.nav-lang:hover { color: var(--brand); border-color: var(--brand); }
@media (max-width: 720px) {
  .site-nav > a.nav-lang {
    order: 99; align-self: center; margin-top: 18px;
    font-size: 1rem; padding: 8px 20px; border: 1px solid var(--line);
  }
}
/* Form: title + first name + last name on one row */
.form-row.form-row-name { grid-template-columns: minmax(120px, .7fr) 1fr 1fr; }
.form-row.form-row-1 { grid-template-columns: 1fr; }
@media (max-width: 720px) {
  .form-row.form-row-name { grid-template-columns: 1fr 1fr; }
  .form-row.form-row-name > label:first-child { grid-column: 1 / -1; }
}

/* Contact inquiry tips */
.muted-en { color: var(--muted); font-size: .9rem; }
.inquiry-tips { margin-top: 18px; padding: 16px 20px; border: 1px solid rgba(0,0,0,.08); border-radius: 12px; background: rgba(0,0,0,.02); }
.inquiry-tips ul { margin: 10px 0 0; padding-left: 1.2em; display: grid; gap: 4px; font-size: .92rem; }
.inquiry-tips .reply-note { margin: 12px 0 0; font-weight: 500; }
.support-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 8px 0 20px; padding: 14px 18px; border-radius: 12px; border: 1px solid var(--brand); background: rgba(200,16,46,.05); color: inherit; text-decoration: none; transition: background .2s; }
.support-banner:hover { background: rgba(200,16,46,.10); }
.support-banner small { color: var(--muted); }
.support-banner-btn { padding: 8px 16px; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 600; white-space: nowrap; }
