/* ==========================================================================
   Tanjova Global — 前台样式表
   无外部依赖（不引用任何 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;
}

/*
 * 手机端展开分类的 ▾ 按钮（2026-10-17 新增）。
 * 桌面端完全隐藏 —— 那里子菜单靠 :hover 展开，不需要按钮。
 * 手机端的显示规则在文件后面的 @media (max-width: 960px) 里。
 */
.submenu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.submenu-toggle svg {
  transition: transform 0.18s ease;
}

.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);
}

/*
 * 导航项的两种状态要能一眼区分（2026-10-17 用户反馈）：
 *   改前：hover 和 is-active 共用同一个浅蓝底色胶囊，
 *         鼠标滑到别的项上时，两个看起来一模一样，分不清当前在哪一页。
 *   改后：
 *     hover      → 浅蓝底色（"我正在指的这一项"）
 *     is-active  → **无底色 + 底部蓝线**（"你现在在这一页"）
 *   两者视觉语言不同，不会再混。
 */
.main-nav > ul > li > a:hover {
  color: var(--brand);
  background: var(--brand-light);
  text-decoration: none;
}

.main-nav > ul > li > a.is-active {
  color: var(--brand);
  background: transparent;
  text-decoration: none;
  /* 直角 + 底部 3px 蓝线，避免圆角把线两端勾起来 */
  border-radius: 0;
  box-shadow: inset 0 -3px 0 0 var(--brand);
}

.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 {
  /*
   * 2026-10-17 用户要求：分类卡片和下面的「Featured products」卡片风格统一。
   *
   * 改前：aspect-ratio 4/3 + 浅灰底 + 图片 padding 20px。
   *   分类图是正方形（1200×1200 白底产品照），放进 4:3 的框里用 contain 只能
   *   按高度撑满，左右空出来的地方露出浅灰背景 —— 看起来"图很小、周围一圈灰"。
   * 改后：1:1 + 纯白底 + padding 16px，和 .product-card-media 一致，
   *   图片铺满卡片宽度，明显更大更清楚。
   * 代价：卡片高度约增加 25%，首页略长。
   */
  aspect-ratio: 1 / 1;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.category-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
}

.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;
  /* 标题固定占两行（用户 2026-10-14 要求）。
     产品名有长有短，一行和两行会让下面的虚线（.product-card-specs 的 border-top）
     在卡片之间错位。这里预留两行高度，一行标题下面自然空出一行。
     2 行 = line-height 1.35 × 2 = 2.7em，跟着 font-size 走，改字号也不会失准。 */
  min-height: 2.7em;
}

.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);
}

/* 价格块用**纵向两行**（标签在上、金额在下），不是「左标签右数值」：
   西语标签 Precio de venta sugerido 太长，同一行放不下会把金额顶歪。
   2026-10-15：以前这里只有一行金额，标签是这个块不存在时回退的 price-on-request。 */
.product-card-price {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 10px;
}

.product-card-price .price-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--muted);
}

.price {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--navy);
}

/* 「Price on request」兜底已按用户 2026-10-16 要求删除（上线时所有产品都会有价格），
   .price-on-request 的样式随之移除。 */

.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;
}

/* 产品页两栏（用户 2026-10-15 定的排版，2026-10-16 重构）
   ----------------------------------------------------------------------------
   左栏 .product-main = 图库 + 特点 + 规格 + 箱内清单 + 文档 + 详情正文 + 询价表单
                        ← 这些**一起滚**
   右栏 .product-info = 分类 + 品名 + 标语 + SKU/价格 + 按钮 + 保证
                        ← **从页面顶部就钉住不动**，陪到左栏内容结束

   ⚠️ 「相关产品」**不在这个容器里**（用户 2026-10-16 要求整页宽度）。
   它放在 .product-layout **之后**，这一点是功能性的而不是排版偏好：
   sticky 的吸附范围由**父容器底边**决定 —— 相关产品在这个容器之外，
   右栏就正好在左栏（到询价表单）结束时松手，跟着页面往上走，
   下方恢复整页滚动。放进来的话右栏会一路陪到相关产品结束。 */
.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  /* 下面紧跟整页宽的「相关产品」，间距交给它的 padding，这里不加外边距 */
  margin-bottom: 0;
  align-items: start;
}

/* 左栏：单纯的内容流。没有它的话网格会把每个子元素都当成独立列 */
.product-main {
  min-width: 0;
  /*
   * 底部留白（用户 2026-10-16 反馈）：下面紧跟整页宽的「相关产品」，
   * 中间只有一条分隔线。不留白的话，滚到最底时右栏的「Wholesale only」
   * 会紧贴那条线（间距 0px），很难看。
   * 注意：这个 padding **不影响** 右栏的松手位置 —— 松手由容器边框盒底边
   * 决定，对 .product-layout 内两个子元素是一样的。
   */
  padding-bottom: 48px;
}

/* 左栏第一个区块不要顶部横线 —— 它紧接着图库，加线会像「分节」而不是「接续」 */
.product-main > .product-section:first-of-type {
  border-top: none;
  padding-top: 26px;
}

/* 右栏：钉住不动。top 要避开吸顶的页头，否则会被页头压住 */
.product-info {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  align-self: start;
  min-width: 0;
  /*
   * 底部内边距 —— 这条是**拉开间距的关键**（用户 2026-10-16 反馈「和 Wholesale only
   * 距离太小，很难看」）。
   *
   * 为什么加在右栏、而不是给左栏或容器加 margin：
   *   松手那一刻，右栏的**底边**正好贴住网格容器的底边（这正是松手的定义）。
   *   所以两条要满足：① 右栏比左栏高（否则右栏底边够不到容器底边）
   *                 ② 右栏最后一行文字的下方要有留白
   *   这两条合起来的效果是：右栏的 padding-bottom 把容器底边**往下撑**，
   *   于是「Wholesale only」和下面的分隔线之间自然空出这段距离。
   *
   * 给左栏加 padding **没用** —— 实测：左栏加了 48px，右栏底边仍贴在容器底边，
   * 松手瞬间「Wholesale only」距离分隔线依然是 0px。
   *
   * 也不影响吸附：右栏高从 616 变成 664，吸附点 92 + 664 << 视口高（1080/900 都放得下）。
   */
  padding-bottom: 48px;
}

/* 图库现在跟着左栏一起滚（sticky 已移到 .product-info） */
.product-gallery {
  margin-bottom: 4px;
}

/* 「相关产品」区块已按用户 2026-10-16 要求删除，.product-related 的样式一并移除。
   如果哪天要恢复：给 .product-info 保留 padding-bottom（右栏最后一行与下方区块
   的间距靠它撑开，实测改用左栏 padding 无效）。 */

/* ------------------------------------------------------------------------- */
/*  产品详情长图（1688 那种一长条）                                            */
/* ------------------------------------------------------------------------- */
/*  位置：**左栏内**（规格之后、箱内清单之前），不是整页宽。
    用户 2026-10-16 明确要求「在 What is in the box 上方，也在左侧」。

    ⚠️ 这里**绝对不能**出现任何 gap / margin / border / padding ——
    分段是一整条图切开的，任何 1px 的缝都会让客户看出来是"两张图"。
    宽度统一 100%：后端已经把每段都缩放成 1200px 宽，这里再按容器宽缩一次，
    保证左右边缘完全对齐、不会参差。 */
.product-detail-strip {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  line-height: 0;        /* 消除 inline 元素基线造成的缝隙 */
  font-size: 0;
  /* 图片按 1200×N 预留了高度；还没下载完的区域画成浅灰，
     否则一整段 2000px 的纯白看起来像"页面坏了"（用户 2026-10-16 反馈过）。 */
  background: var(--bg-tint);
}

.product-detail-img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  vertical-align: top;
  background: var(--bg-tint);
}

/* 加载中 / 重试中：用扫光动画提示"正在加载"，而不是留一块死白 */
.product-detail-img.is-loading,
.product-detail-img.is-retrying {
  background-image: linear-gradient(100deg, #f1f5f9 30%, #e2e8f0 50%, #f1f5f9 70%);
  background-size: 200% 100%;
  animation: detail-shimmer 1.4s linear infinite;
}

@keyframes detail-shimmer {
  from {
    background-position: 150% 0;
  }
  to {
    background-position: -50% 0;
  }
}

/* 重试也失败：不要留一大片空白，给个可点击的提示条 */
.product-detail-img.is-failed {
  background: var(--bg-soft);
  border: 1px dashed var(--line-strong);
}

/* 详情图区块本身走 .product-section 的常规间距（和其他左栏小节一致），
   这里只把长图上方留一点空隙，别让标题紧贴第一段图。 */
.product-details {
  /* 长图自身占满左栏宽度即可，不再限宽居中 —— 它是栏内内容，不是通栏区块 */
}

.gallery-main {
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  /*
   * 2026-10-17 用户要求：主图填满这个圆角正方形（原来 padding: 28px 把图缩了一圈）。
   * 去掉内边距后图片铺满整个框，配合上面的 border-radius + overflow: hidden，
   * 图片自身的四个角也被裁成圆角，和外框完全对齐。
   * 注：产品看起来偏小主要还是图片文件自带的白边，这一改只提升约 10%。
   */
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.gallery-main-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* 让图片自带的白底铺满，不出现缝 */
  display: block;
}

.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;
  /*
   * 2026-10-17 用户要求：缩略图也要铺满图片区域（原来 padding: 6px 让图缩了一圈）。
   * 去掉内边距后图片铺满，圆角由容器的 border-radius + overflow: hidden 裁出来，
   * 与上面大图的做法保持一致。
   */
  padding: 0;
  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;
  display: block;
}

.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;
}

/* 价格块是纵向两行：标签小字在上、金额大字在下（2026-10-15 改）。
   以前只有一行金额，标签靠「区块不存在」表达含义 —— 现在公布的是
   **建议零售价**，标签必须写出来，否则会被当成我们的批发价。 */
.product-price-label {
  display: block;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 2px;
}

.product-price {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
}

/* 信息卡里原来有一格「建议零售价」（.product-meta-msrp）。
   2026-10-16 填了价格之后它和下面的大号价格重复显示，已从模板移除，
   这条样式随之一并删掉。价格统一由 .product-price-block 呈现。

   同理「Price on request」兜底（.product-price-on-request）也已删除 ——
   用户要求上线时所有产品都有价格。 */

.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);
}

/* --------------------------------------------------------------------------
   可下载文件页（Download）
   2026-10-17 新增：把原来散在各页底部的「Download catalog」按钮，
   改成集中列出所有可下载文件。
   -------------------------------------------------------------------------- */

.download-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.download-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
}

/* 2026-10-17：卡片里只显示「文件名（大小）」这一行，不要标题和描述 */
.download-file {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  word-break: break-all; /* 超长文件名在窄屏也不会撑破卡片 */
}

.download-btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.download-empty {
  color: var(--ink-soft);
}

/* 窄屏：按钮换到下一行，避免挤压文字 */
@media (max-width: 640px) {
  .download-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .download-btn {
    width: 100%;
    text-align: center;
  }
}

.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;
}

/* 页脚是深色底，而 .contact-label 默认用 --muted（浅色主题的灰），
   直接搬过来会看不清。这里跟 .footer-hours 用同一个灰。 */
.footer-contact .contact-label {
  color: #94a3b8;
}

.footer-contact li + li {
  margin-top: 10px;
}

.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;
  }

  /*
   * 手机端：文字照常跳转，右侧 ▾ 按钮单独负责展开分类
   * （2026-10-17：之前父项 <a> 被 preventDefault，导致 All products 页在手机上打不开）
   */
  .main-nav > ul > li.has-submenu > a {
    padding-right: 56px; /* 给 ▾ 按钮留位置，避免长文字压到按钮下面 */
  }

  .main-nav > ul > li.has-submenu .submenu-toggle {
    display: flex;
    position: absolute;
    top: 0;
    right: 0;
    width: 46px;
    height: 46px; /* 和 <a> 的行高对齐（13px 上下的 padding + 文字高度） */
    align-items: center;
    justify-content: center;
    border-radius: 0;
  }

  .main-nav > ul > li.submenu-open .submenu-toggle svg {
    transform: rotate(180deg);
  }

  .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;
  }

  /* 单栏（手机/窄平板）：
     ① 吸附**必须显式关掉** —— position: sticky 在单栏里照样生效，
        会把右栏（产品信息）在滚动时糊在屏幕中间。
     ② 阅读顺序反过来：手机屏小，先把产品名/价格/按钮给客户，
        再往下看图库和参数。桌面上右栏在 DOM 里靠后（为了让 SEO 和
        屏幕阅读器先读到产品主体），手机上用 order 提到最前。 */
  .product-layout {
    display: flex;
    flex-direction: column;
  }

  .product-info {
    position: static;
    top: auto;
    order: -1;
  }

  /* 单栏时左栏第一个区块的顶部分隔线要回来：上面已经不是图库了 */
  .product-main > .product-section:first-of-type {
    border-top: 1px solid var(--line);
    padding-top: 34px;
  }

  .content-layout {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/*
 * 900~960px：这个宽度区间页头已经切成手机版（汉堡菜单，见上面的 960px 断点），
 * 但**产品详情页的两栏还放得下**（每栏约 420px，和 1280px 下的排版接近）。
 * 如果不单独恢复，900~960 这段会出现「两栏塌成一栏、右栏又不吸附」的夹缝，
 * 笔记本窗口稍小就会撞上。这里只把产品页的两栏和吸附还回来，其余不动。
 */
@media (min-width: 900px) and (max-width: 960px) {
  .product-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .product-info {
    position: sticky;
    top: calc(var(--header-h) + 20px);
    order: 0;
  }

  .product-main > .product-section:first-of-type {
    border-top: none;
    padding-top: 26px;
  }
}

@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;
  }

  /* 手机端左栏底部留白也收一点 */
  .product-main {
    padding-bottom: 32px;
  }

  .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;
  }

  /*
   * 2026-10-17 用户要求：手机上缩略图一排 5 个（原来这里是 4 个）。
   * 注意：这是**我们自己**的媒体查询，不是浏览器自动换行。
   * 窄屏 5 列时每张约 63px（390px 宽），所以间距从 10px 收到 6px，
   * 尽量把空间留给图片。
   */
  .gallery-thumbs {
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
  }

  .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;
  }
}
