/* ==========================================================================
   Philips LatAm B2B — 前台样式表
   无外部依赖（不引用任何 CDN / 字体服务），首屏更快也更省隐私
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 设计变量
   -------------------------------------------------------------------------- */
:root {
  --brand: #0b5ed7;
  --brand-dark: #084298;
  --brand-darker: #062f6f;
  --brand-light: #e8f0fd;
  --brand-light-2: #d3e2fb;
  --navy: #0b1f3a;
  --navy-soft: #16304f;

  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #64748b;
  --muted-light: #94a3b8;

  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-tint: #f1f5f9;

  --success: #15803d;
  --success-bg: #f0fdf4;
  --danger: #b91c1c;
  --danger-bg: #fef2f2;
  --warning: #b45309;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.14);

  --container: 1200px;
  --header-h: 72px;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

/* --------------------------------------------------------------------------
   2. 基础重置
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

h1 {
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
}
h2 {
  font-size: clamp(1.35rem, 1.1rem + 1vw, 2rem);
}
h3 {
  font-size: 1.125rem;
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
}

code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--bg-tint);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  color: var(--ink-soft);
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--brand);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus {
  left: 0;
}

/* --------------------------------------------------------------------------
   3. 按钮
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--bg-tint);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.08s ease;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-dark);
}

.btn-outline {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-outline:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-light);
}

/* 次要按钮：「柔和填充」外形，默认就可见。
   之前是全透明、只有 :hover 才出现背景 —— 结果和旁边的实心主按钮并排时，
   默认状态下它只是纯文字，两个按钮看起来一高一低不对称。 */
.btn-ghost {
  background: var(--brand-light);
  color: var(--brand-dark);
}

.btn-ghost:hover {
  background: var(--brand-light-2);
  color: var(--brand-darker);
}

.btn-light {
  background: #fff;
  color: var(--brand-dark);
}

.btn-light:hover {
  background: #eef4ff;
}

.btn-outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: #fff;
}

.btn-lg {
  padding: 14px 26px;
  font-size: 1rem;
}

.btn-sm {
  padding: 7px 13px;
  font-size: 0.875rem;
}

.btn-xs {
  padding: 3px 9px;
  font-size: 0.8125rem;
  border-radius: 5px;
}

/* --------------------------------------------------------------------------
   4. 顶栏与页头
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--navy);
  color: #dbeafe;
  font-size: 0.8125rem;
  padding: 9px 0;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.topbar-msg {
  min-width: 0;
}

.topbar-contact {
  color: #93c5fd;
  white-space: nowrap;
  flex-shrink: 0;
}

.topbar-contact a {
  color: inherit;
}

.topbar-contact a:hover {
  color: #fff;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}

/* Logo 靠左，导航与询价按钮作为一组靠右（Logo 的 margin-right:auto 把后者推过去）。
   gap 取 21px：导航项有 15px 内边距，21+15=36px，正好等于两个导航项文字之间的
   视觉间距（15+6+15），所以按钮和「Contact」的间隔看起来和导航项之间一致。 */
.header-inner {
  display: flex;
  align-items: center;
  gap: 21px;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-right: auto;
  min-width: 0;
}

.brand:hover {
  text-decoration: none;
}

.brand-logo {
  height: 40px;
  width: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-weight: 800;
  font-size: 1.0625rem;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.brand-sub {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
  font-weight: 600;
}

.main-nav {
  min-width: 0;
}

.main-nav > ul {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav > ul > li {
  position: relative;
}

.main-nav > ul > li > a {
  display: block;
  padding: 10px 15px;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--radius-sm);
}

.main-nav > ul > li > a:hover,
.main-nav > ul > li > a.is-active {
  color: var(--brand);
  background: var(--brand-light);
  text-decoration: none;
}

.submenu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 250px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  list-style: none;
  margin: 0;
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
}

.main-nav > ul > li:hover > .submenu,
.main-nav > ul > li:focus-within > .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.submenu a {
  display: block;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.submenu a:hover {
  background: var(--brand-light);
  color: var(--brand);
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.lang-switch {
  display: flex;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.lang-switch a {
  padding: 6px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.lang-switch a:hover {
  background: var(--bg-tint);
  text-decoration: none;
}

.lang-switch a.is-active {
  background: var(--brand);
  color: #fff;
}

.quote-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
}

.quote-btn:hover {
  background: var(--brand-dark);
  text-decoration: none;
}

.quote-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  background: #fff;
  color: var(--brand-dark);
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 800;
}

.quote-count[hidden] {
  display: none;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: relative;
}

.nav-toggle-bars::before {
  top: -7px;
}
.nav-toggle-bars::after {
  top: 5px;
}

body.nav-open .nav-toggle-bars {
  background: transparent;
}
body.nav-open .nav-toggle-bars::before {
  transform: translateY(7px) rotate(45deg);
}
body.nav-open .nav-toggle-bars::after {
  transform: translateY(-5px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   5. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy) 0%, var(--brand-darker) 55%, var(--brand-dark) 100%);
  color: #fff;
  padding: 80px 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
}

.hero-with-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11, 31, 58, 0.92) 0%, rgba(6, 47, 111, 0.78) 100%);
}

/* 和页头共用同一个 .container 宽度 —— 左边缘对齐 Logo，右边缘对齐询价按钮。
   之前这里写了 max-width:780px，配合 .container 的 margin:auto 会把整块
   文字在屏幕正中缩窄居中，导致 hero 与页头左右都错位。 */
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: 40px;
}

/* 上传了全幅 Hero 图时，只保留一栏文字叠在图上 */
.hero-copy {
  min-width: 0;
  max-width: 46rem;
}

/* 右栏贴住容器右边缘（= 页头询价按钮的右边缘）。
   width:100% + justify-self:end 让图片元素完全充满这一栏；
   插图自身也画满画布，所以「可见内容」的右边缘也能贴住。 */
.hero-art {
  justify-self: end;
  width: 100%;
}

.hero-art img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 700;
  color: #93c5fd;
  margin-bottom: 14px;
}

.hero h1 {
  color: #fff;
  margin-bottom: 0.4em;
}

.hero-lead {
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
  color: #dbeafe;
  max-width: 62ch;
  margin-bottom: 1.6em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* --------------------------------------------------------------------------
   6. 信任条 / 分区
   -------------------------------------------------------------------------- */
.trust-strip {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  padding: 36px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.trust-item h3 {
  font-size: 0.95rem;
  margin-bottom: 6px;
  color: var(--navy);
}

.trust-item h3::before {
  content: "✓";
  display: inline-block;
  margin-right: 8px;
  color: var(--brand);
  font-weight: 800;
}

.trust-item p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.55;
}

.section {
  padding: 64px 0;
}

.section-richtext {
  background: var(--bg-soft);
}

.section-head {
  margin-bottom: 32px;
  max-width: 70ch;
}

.section-head h2 {
  margin-bottom: 6px;
}

.section-head p {
  color: var(--muted);
  margin: 0;
}

.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  max-width: none;
}

.link-more {
  font-weight: 600;
  font-size: 0.9375rem;
  white-space: nowrap;
}

.section-lead {
  color: var(--muted);
  max-width: 70ch;
}

/* --------------------------------------------------------------------------
   7. 分类卡片
   -------------------------------------------------------------------------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.category-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  color: inherit;
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.category-card:hover {
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--brand);
}

.category-card-media {
  aspect-ratio: 4 / 3;
  background: var(--bg-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.category-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
}

.category-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--brand);
  opacity: 0.55;
}

.category-card-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.category-card-body h3 {
  margin-bottom: 6px;
}

.category-card-body p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 12px;
}

/* margin-top:auto 让三个卡片的计数行底对齐（描述行数不同也不会参差） */
.category-card-count {
  margin-top: auto;
  padding-top: 8px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --------------------------------------------------------------------------
   8. 产品网格与卡片
   -------------------------------------------------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.product-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.product-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  transition: box-shadow 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.product-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.product-card-media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  background: #fff;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.product-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-card-img.is-placeholder {
  opacity: 0.85;
}

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--brand);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 20px;
  letter-spacing: 0.03em;
}

.badge-featured {
  background: #f59e0b;
}

.product-card-body {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card-cat {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 6px;
}

.product-card-title {
  font-size: 1rem;
  margin: 0 0 6px;
  line-height: 1.35;
}

.product-card-title a {
  color: var(--ink);
}

.product-card-title a:hover {
  color: var(--brand);
  text-decoration: none;
}

.product-card-sku {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0 0 8px;
}

.product-card-tagline {
  font-size: 0.8375rem;
  color: var(--ink-soft);
  margin: 0 0 12px;
  line-height: 1.5;
}

.product-card-specs {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  border-top: 1px dashed var(--line);
  padding-top: 10px;
  font-size: 0.8125rem;
}

.product-card-specs li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 3px 0;
}

/* 标签完全不参与伸缩（flex: 0 0 auto），保持自然宽度；只有数值被压缩并换行。
   max-width 兜底，放不下时标签自己换行 —— 不截断，不丢信息。
   浏览器实测：改之前 "Luminosidad" 被挤到 5px，改之后完整显示。 */
.product-card-specs span {
  flex: 0 0 auto;
  max-width: 55%;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.product-card-specs strong {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--ink-soft);
  font-weight: 600;
  text-align: right;
  overflow-wrap: anywhere;
}

.product-card-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.product-card-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.price {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--navy);
}

.price-on-request {
  font-size: 0.8125rem;
  color: var(--muted);
  font-weight: 600;
}

.moq {
  font-size: 0.6875rem;
  color: var(--muted);
  background: var(--bg-tint);
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 600;
}

.product-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* 之前是 flex:1 —— 强制两个按钮等宽，于是短按钮留白、长按钮的文字溢出
   被卡片的 overflow:hidden 切掉（截图里 "regar a mi cotiza"）。
   改成按内容定宽；万一真的放不下，flex-wrap 会让第二个按钮换行而不是切字。 */
.product-card-actions .btn {
  flex: 1 1 auto;
  min-width: max-content;
  font-size: 0.8125rem;
  padding-left: 11px;
  padding-right: 11px;
}

/* --------------------------------------------------------------------------
   9. 面包屑 / 分页
   -------------------------------------------------------------------------- */
.breadcrumbs {
  margin-bottom: 14px;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

.breadcrumbs li + li::before {
  content: "›";
  margin-right: 6px;
  color: var(--muted-light);
}

.breadcrumbs a {
  color: var(--muted);
}

.breadcrumbs a:hover {
  color: var(--brand);
}

.breadcrumbs [aria-current] {
  color: var(--ink-soft);
  font-weight: 600;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 40px 0 0;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.875rem;
  background: #fff;
}

.page-link:hover {
  border-color: var(--brand);
  color: var(--brand);
  text-decoration: none;
}

.page-link.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.page-link.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.page-ellipsis {
  padding: 0 4px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   10. 页面标题区
   -------------------------------------------------------------------------- */
.page-hero {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  padding: 36px 0 40px;
}

.page-hero h1 {
  margin-bottom: 10px;
}

.page-hero-lead {
  color: var(--muted);
  max-width: 75ch;
  margin: 0;
  font-size: 1.0625rem;
}

/* --------------------------------------------------------------------------
   11. 目录页布局
   -------------------------------------------------------------------------- */
.catalog-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 36px;
  padding-top: 36px;
  padding-bottom: 64px;
  align-items: start;
}

.catalog-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 20px);
}

.sidebar-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
  margin-bottom: 10px;
}

.category-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.category-list li + li {
  border-top: 1px solid var(--line);
}

.category-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 500;
  background: #fff;
}

.category-list a:hover {
  background: var(--bg-soft);
  color: var(--brand);
  text-decoration: none;
}

.category-list a.is-active {
  background: var(--brand-light);
  color: var(--brand-dark);
  font-weight: 700;
  box-shadow: inset 3px 0 0 var(--brand);
}

.category-list .count {
  font-size: 0.75rem;
  color: var(--muted);
  background: var(--bg-tint);
  padding: 1px 7px;
  border-radius: 10px;
  flex-shrink: 0;
}

.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.search-field {
  display: flex;
  gap: 8px;
  flex: 1;
  min-width: 240px;
}

.search-field input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
}

.search-field input:focus {
  border-color: var(--brand);
  outline: none;
  box-shadow: 0 0 0 3px var(--brand-light);
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.result-count {
  font-size: 0.875rem;
  color: var(--muted);
  white-space: nowrap;
}

.sort-field select {
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 0.875rem;
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.filter-chip {
  background: var(--brand-light);
  color: var(--brand-dark);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 20px;
}

.clear-filters {
  font-size: 0.8125rem;
  color: var(--muted);
  text-decoration: underline;
}

.catalog-main .product-grid {
  grid-template-columns: repeat(2, 1fr);
}

.empty-state {
  padding: 60px 20px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg-soft);
}

/* --------------------------------------------------------------------------
   12. 产品详情页
   -------------------------------------------------------------------------- */
.product-page {
  padding-top: 26px;
  padding-bottom: 64px;
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}

.product-gallery {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  align-self: start;
}

.gallery-main {
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.gallery-main-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.gallery-thumb {
  aspect-ratio: 1 / 1;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 6px;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.gallery-thumb:hover {
  border-color: var(--line-strong);
}

.gallery-thumb.is-active {
  border-color: var(--brand);
}

.gallery-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-cat-link {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 8px;
}

.product-info h1 {
  margin-bottom: 8px;
}

.product-tagline {
  color: var(--muted);
  font-size: 1.0625rem;
  margin-bottom: 20px;
}

.product-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin: 0 0 22px;
  padding: 16px 18px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.product-meta div {
  min-width: 0;
}

.product-meta dt {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 3px;
}

.product-meta dd {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  word-break: break-word;
}

.product-price-block {
  margin-bottom: 18px;
}

.product-price {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--navy);
}

.product-price-on-request {
  display: inline-block;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--brand-dark);
  background: var(--brand-light);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
}

.price-note {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 8px 0 0;
}

.product-short {
  color: var(--ink-soft);
  line-height: 1.65;
  margin-bottom: 22px;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.product-assurance {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.product-assurance li {
  position: relative;
  padding-left: 26px;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.product-assurance li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--success);
  font-weight: 800;
}

.product-section {
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

.product-section > h2 {
  margin-bottom: 18px;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 10px 28px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  position: relative;
  padding-left: 26px;
  color: var(--ink-soft);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 0.9375rem;
}

.spec-table th,
.spec-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.spec-table tr:last-child th,
.spec-table tr:last-child td {
  border-bottom: none;
}

.spec-table th {
  width: 38%;
  background: var(--bg-soft);
  font-weight: 600;
  color: var(--ink-soft);
}

.box-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.box-list li {
  position: relative;
  padding-left: 26px;
  color: var(--ink-soft);
}

.box-list li::before {
  content: "▪";
  position: absolute;
  left: 4px;
  color: var(--brand);
}

.doc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  max-width: 640px;
}

.doc-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-weight: 600;
}

.doc-list a:hover {
  border-color: var(--brand);
  background: var(--brand-light);
  text-decoration: none;
}

.doc-action {
  font-size: 0.8125rem;
  color: var(--brand);
  white-space: nowrap;
}

.prose {
  max-width: 78ch;
}

.prose h2 {
  margin-top: 1.6em;
  font-size: 1.35rem;
}

.prose h3 {
  margin-top: 1.4em;
  font-size: 1.1rem;
}

.prose ul,
.prose ol {
  color: var(--ink-soft);
}

.prose li {
  margin-bottom: 0.4em;
}

/* --------------------------------------------------------------------------
   13. 内容页 / RFQ 页
   -------------------------------------------------------------------------- */
.content-layout {
  padding: 44px 20px 64px;
  max-width: 900px;
}

.content-layout-with-aside {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 48px;
  max-width: var(--container);
  align-items: start;
}

.content-aside {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.content-aside h2 {
  font-size: 1.0625rem;
  margin-bottom: 16px;
}

.contact-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 14px;
}

.contact-list li {
  font-size: 0.9375rem;
  color: var(--ink);
  word-break: break-word;
}

.contact-label {
  display: block;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 2px;
}

.contact-hours {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.rfq-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 48px;
  padding-top: 40px;
  padding-bottom: 64px;
  align-items: start;
}

.rfq-aside {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
}

.rfq-aside h2 {
  font-size: 1.0625rem;
}

.steps {
  padding-left: 1.2em;
  margin: 0 0 24px;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.steps li {
  margin-bottom: 10px;
}

.aside-suggest {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.aside-suggest h3 {
  font-size: 0.9375rem;
}

.aside-suggest ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.aside-suggest li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  font-size: 0.875rem;
  color: var(--ink-soft);
  border-bottom: 1px dashed var(--line);
}

.aside-suggest li:last-child {
  border-bottom: none;
}

.rfq-alt {
  font-size: 0.9375rem;
  color: var(--muted);
  padding-bottom: 40px;
}

/* --------------------------------------------------------------------------
   14. 表单
   -------------------------------------------------------------------------- */
.rfq-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 4px;
}

.form-field-full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 0.9375rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--brand);
  outline: none;
  box-shadow: 0 0 0 3px var(--brand-light);
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-field input:invalid:not(:placeholder-shown) {
  border-color: var(--danger);
}

.form-hint {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 6px 0 0;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions {
  margin-top: 22px;
}

.form-status {
  margin-top: 14px;
  font-size: 0.9375rem;
  font-weight: 600;
}

.form-status.is-error {
  color: var(--danger);
  background: var(--danger-bg);
  border: 1px solid #fecaca;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
}

.form-status.is-success {
  color: var(--success);
  background: var(--success-bg);
  border: 1px solid #bbf7d0;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
}

.quote-cart {
  margin: 20px 0;
  padding: 18px;
  background: var(--brand-light);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius);
}

.quote-cart[hidden] {
  display: none;
}

.quote-cart h3 {
  font-size: 0.9375rem;
  margin-bottom: 12px;
  color: var(--brand-darker);
}

.quote-cart-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.quote-cart-item {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid #c7ddfb;
  font-size: 0.9rem;
}

.quote-cart-item:last-child {
  border-bottom: none;
}

.quote-cart-name {
  font-weight: 600;
  color: var(--ink);
  min-width: 0;
}

.quote-cart-sku {
  background: rgba(255, 255, 255, 0.75);
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
}

.quote-cart-qty {
  width: 78px;
  padding: 6px 8px;
  border: 1px solid #bfdbfe;
  border-radius: 5px;
  background: #fff;
  text-align: center;
}

.quote-cart-remove {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  color: var(--danger);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.quote-cart-remove:hover {
  background: #fff;
}

/* --------------------------------------------------------------------------
   15. CTA / 提示 / 错误页 / 成功页
   -------------------------------------------------------------------------- */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--brand-darker) 100%);
  color: #fff;
  padding: 52px 0;
}

.cta-band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.cta-band h2 {
  color: #fff;
  margin-bottom: 6px;
}

.cta-band p {
  color: #cbd5e1;
  margin: 0;
  max-width: 60ch;
}

.cta-band-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.narrow-page {
  max-width: 720px;
  padding-top: 72px;
  padding-bottom: 88px;
}

.success-card,
.error-page {
  text-align: center;
  padding: 48px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
}

.success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  font-size: 2rem;
  font-weight: 800;
}

.success-ref {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  margin: 16px 0;
}

.success-actions,
.error-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

.error-code {
  font-size: 4rem;
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
  margin: 0 0 12px;
  letter-spacing: -0.04em;
}

/* --------------------------------------------------------------------------
   16. Toast
   -------------------------------------------------------------------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  z-index: 200;
  background: var(--navy);
  color: #fff;
  padding: 13px 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  font-size: 0.9375rem;
  font-weight: 600;
  max-width: min(90vw, 460px);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* --------------------------------------------------------------------------
   17. 页脚
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy);
  color: #cbd5e1;
  padding: 56px 0 0;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand {
  font-size: 1.125rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 0.875rem;
  color: #94a3b8;
  margin-bottom: 14px;
}

.footer-legal-note {
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

.site-footer h3 {
  color: #fff;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 9px;
  font-size: 0.875rem;
}

.site-footer a {
  color: #cbd5e1;
}

.site-footer a:hover {
  color: #fff;
}

.footer-contact li {
  line-height: 1.5;
}

.footer-hours {
  font-size: 0.8125rem;
  color: #94a3b8;
  margin: 14px 0 0;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 20px 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8125rem;
  color: #94a3b8;
}

.footer-bottom-links {
  display: flex;
  gap: 18px;
}

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  transition: transform 0.15s ease;
}

.whatsapp-float:hover {
  transform: scale(1.06);
}

/* --------------------------------------------------------------------------
   18. 响应式
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .catalog-main .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 960px) {
  :root {
    --header-h: 64px;
  }

  /* 移动端：品牌在左、汉堡在右；询价按钮与语言切换各占一整行 */
  .header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .brand {
    order: 1;
    margin-right: auto;
  }

  .nav-toggle {
    order: 2;
    display: flex;
  }

  .header-actions {
    order: 3;
    flex-basis: 100%;
    gap: 10px;
  }

  .quote-btn {
    flex: 1;
    justify-content: center;
  }

  .main-nav {
    order: 4;
    flex-basis: 100%;
    display: none;
  }

  /* Hero 变单栏，插图居中放到文字下方 */
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }

  .hero-art {
    justify-self: center;
    max-width: 460px;
  }

  body.nav-open .main-nav {
    display: block;
  }

  .main-nav > ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-bottom: 12px;
  }

  .main-nav > ul > li > a {
    padding: 13px 10px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }

  .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-left: 3px solid var(--brand-light);
    border-radius: 0;
    margin: 0 0 8px 10px;
    padding: 0;
    display: none;
  }

  .main-nav > ul > li.submenu-open > .submenu {
    display: block;
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .catalog-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .catalog-sidebar {
    position: static;
  }

  .category-list {
    display: flex;
    flex-wrap: wrap;
    border: none;
    gap: 8px;
  }

  .category-list li {
    border: none !important;
  }

  .category-list a {
    border: 1px solid var(--line-strong);
    border-radius: 20px;
    padding: 7px 14px;
  }

  .category-list a.is-active {
    box-shadow: none;
    border-color: var(--brand);
  }

  .product-layout,
  .content-layout-with-aside,
  .rfq-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .product-gallery {
    position: static;
  }

  .content-layout {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 640px) {
  .product-grid,
  .catalog-main .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .product-card-media {
    padding: 10px;
  }

  .product-card-body {
    padding: 12px;
  }

  .product-card-title {
    font-size: 0.9rem;
  }

  .product-card-actions {
    flex-direction: column;
  }

  .product-card-specs {
    display: none;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 52px 0;
  }

  /* 手机上不显示插图，避免首屏被推得太长 */
  .hero-art {
    display: none;
  }

  .section {
    padding: 44px 0;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cta-band-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .toolbar-right {
    width: 100%;
    justify-content: space-between;
  }

  .gallery-thumbs {
    grid-template-columns: repeat(4, 1fr);
  }

  .quote-cart-item {
    grid-template-columns: 1fr auto;
    row-gap: 6px;
  }
}

@media (max-width: 420px) {
  .product-grid,
  .catalog-main .product-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   宽屏：把语言切换推到页面右边缘
   --------------------------------------------------------------------------
   语言切换是低频操作，不该占主操作区。页头内容固定在 1200px 的居中容器里，
   容器右边缘离页面边缘还有一段空白，所以这里让它脱离文档流、单独贴到页面右侧。

   为什么需要 1400px 这个阈值：视口不够宽时，容器内容右边缘到页面边缘的空位
   小于一个语言切换器的宽度，硬贴过去会和询价按钮重叠。低于阈值时保持内联。
   -------------------------------------------------------------------------- */
@media (min-width: 1400px) {
  .header-actions .lang-switch {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}
