/* ==========================================================================
   Dismist Inc 全站公共设计令牌与样式表
   配色体系：深海青蓝 (#0f4c5c) + 暖珊瑚橙点缀 (#c24926) + 冷灰中性色阶
   ========================================================================== */

:root {
  /* 品牌主色与点缀色 */
  --brand: #0f4c5c;
  --brand-deep: #0b3642;
  --brand-hover: #0a3b48;
  --brand-soft: #e7f1f4;
  --accent: #c24926;
  --accent-hover: #a83c1d;
  --accent-soft: #fdf1ec;
  --accent-border: #f2cbbd;

  /* 中性背景与边框色阶 */
  --bg: #ffffff;
  --surface: #f4f7f9;
  --surface-subtle: #edf3f6;
  --border: #dce5ea;
  --border-strong: #c2d1d9;

  /* 文本与交互层级色（均满足 WCAG AA 对比度） */
  --ink: #14242b;
  --ink-secondary: #435963;
  --ink-muted: #5a707a;

  /* 兼容旧变量别名 */
  --nav-bg: var(--surface);
  --nav-ink: var(--ink);
  --blue: var(--brand);
  --orange: var(--accent);
  --soft: var(--surface);

  /* 圆角、阴影与动效参数 */
  --radius-lg: 10px;
  --radius-md: 6px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 3px rgba(11, 54, 66, 0.06);
  --shadow-md: 0 12px 28px -18px rgba(11, 54, 66, 0.2);
  --media-bg: #f4f5f6;
  --shadow-header: 0 10px 26px -18px rgba(11, 54, 66, 0.24);
  --speed: 200ms;
  --shell-max: 1320px;
}

/* 基础重置与浏览器原生表面主题化 */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 140px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: 'Plus Jakarta Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.drawer-open { overflow: hidden; }
::selection { background: var(--brand-soft); color: var(--brand-deep); }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
a, button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
img { max-width: 100%; }

/* 跳转链接：键盘用户可直接跳到商品区 */
.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 2000;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  background: var(--brand-deep);
  color: #ffffff;
  font-weight: 600;
  transition: top var(--speed) ease;
}
.skip-link:focus { top: 12px; }

/* 商品区首屏外卡片延迟渲染，长列表滚动更流畅 */
.product-card:nth-child(n+13) {
  content-visibility: auto;
  contain-intrinsic-size: auto 360px;
}
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.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;
}
.tabular-nums { font-variant-numeric: tabular-nums; }

/* 通用按钮体系 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 20px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  transition: background var(--speed) ease, color var(--speed) ease, border-color var(--speed) ease, transform 120ms ease, box-shadow var(--speed) ease;
}
.btn:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-deep);
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }

.btn-primary {
  border-color: var(--brand);
  background: var(--brand);
  color: #ffffff;
}
.btn-primary:hover {
  border-color: var(--brand-hover);
  background: var(--brand-hover);
  color: #ffffff;
  box-shadow: 0 8px 18px -10px rgba(15, 76, 92, 0.55);
}

.btn-accent {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}
.btn-accent:hover {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
  color: #ffffff;
  box-shadow: 0 8px 18px -10px rgba(194, 73, 38, 0.55);
}

/* ==========================================================================
   顶部可配置公告信息栏与深色辅助导航条
   ========================================================================== */
.pa-announcement {
  min-height: 40px;
  padding: 8px 24px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.top-menu-wrap {
  position: relative;
  z-index: 1030;
  background: var(--brand-deep);
  color: #d7e6ec;
  font-size: 13px;
}
.top-menu-inner {
  max-width: var(--shell-max);
  min-height: 38px;
  margin: 0 auto;
  padding: 5px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.top-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.top-links a {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: var(--radius-md);
  color: #d7e6ec;
  font-weight: 500;
  white-space: nowrap;
  transition: color var(--speed) ease, background var(--speed) ease;
}
.top-links a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}
.top-cart-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: var(--radius-md);
  color: #e9f3f6;
  font-weight: 600;
  white-space: nowrap;
  transition: color var(--speed) ease, background var(--speed) ease;
}
.top-cart-link:hover,
.top-cart-link.is-active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}
.top-cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.top-menu-wrap :focus-visible { outline-color: #ffffff; }

/* ==========================================================================
   主粘性顶栏（左三行信息、中 Logo、右搜索与操作）与分类导航条
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  color: var(--pa-header-fg, var(--ink));
  background: var(--pa-header-bg, rgba(255, 255, 255, 0.96));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--pa-header-border, var(--border));
  transition: box-shadow var(--speed) ease, background var(--speed) ease;
}
.site-header.fixed { box-shadow: var(--shadow-header); }

.header-inner {
  max-width: var(--shell-max);
  min-height: 124px;
  margin: 0 auto;
  padding: 16px 24px;
  display: grid;
  grid-template-columns: minmax(250px, 1fr) auto minmax(280px, 1fr);
  align-items: center;
  gap: 24px;
  transition: min-height var(--speed) ease, padding var(--speed) ease;
}
.site-header.fixed .header-inner {
  min-height: 76px;
  padding-top: 8px;
  padding-bottom: 8px;
}

/* 页眉左侧三行信息预留区（含后台富文本渲染兼容） */
.header-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  transition: gap var(--speed) ease;
}
.header-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color var(--speed) ease, font-size var(--speed) ease;
}
.header-contact-item svg { flex-shrink: 0; }
.header-contact-phone {
  color: var(--brand-deep);
  font-size: 15px;
  font-weight: 700;
}
.header-contact-email {
  color: var(--ink-secondary);
  font-size: 14px;
  font-weight: 500;
}
.header-contact-ids {
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
a.header-contact-item:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-header.fixed .header-contact { gap: 2px; }
.site-header.fixed .header-contact-item { font-size: 13px; line-height: 1.3; }

/* 后台富文本联系区容器：保留字体、字号、颜色与对齐设置，空内容保留占位宽度 */
.pa-header-contact {
  width: 100%;
  max-width: 360px;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--pa-header-fg, var(--brand-deep));
  font-size: 15px;
  font-weight: 600;
  line-height: 1.48;
  text-align: left;
  overflow-wrap: anywhere;
}
.site-header.fixed .pa-header-contact { min-height: 54px; font-size: 13.5px; line-height: 1.35; }
.pa-header-contact .pa-header-contact-content { min-width: 0; width: 100%; }
.pa-header-contact-content :is(p, div, h1, h2, h3) {
  margin: 0;
  padding: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
  text-transform: none;
}
.pa-header-contact-content > * + * { margin-top: 3px; }
.pa-header-contact-content p:has(br:only-child) { min-height: 1.48em; }
.pa-header-contact .pa-header-contact-content a { color: inherit; text-decoration: none; }
.pa-header-contact .pa-header-contact-content a:hover {
  color: var(--pa-header-accent, var(--accent));
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pa-header-contact-content :is(ul, ol) { margin: 0; padding-left: 1.25em; text-align: left; }
.pa-header-contact-content ul, .pa-header-contact-content li[data-list="bullet"] { list-style-type: disc; }
.pa-header-contact-content ol, .pa-header-contact-content li[data-list="ordered"] { list-style-type: decimal; }
.pa-header-contact-content .ql-align-center { text-align: center; }
.pa-header-contact-content .ql-align-right { text-align: right; }
.pa-header-contact-content .ql-align-justify { text-align: justify; }
.pa-header-contact-content .ql-font-arial { font-family: Arial, sans-serif; }
.pa-header-contact-content .ql-font-georgia { font-family: Georgia, serif; }
.pa-header-contact-content .ql-font-times-new-roman { font-family: "Times New Roman", serif; }
.pa-header-contact-content .ql-font-trebuchet-ms { font-family: "Trebuchet MS", sans-serif; }
.pa-header-contact-content .ql-font-monospace { font-family: monospace; }
.pa-header-contact-content .ql-indent-1 { padding-left: 1.5em; }
.pa-header-contact-content .ql-indent-2 { padding-left: 3em; }
.pa-header-contact-content .ql-indent-3 { padding-left: 4.5em; }

/* 中栏居中 Logo */
.site-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  flex-shrink: 0;
}
.site-brand img {
  display: block;
  height: 80px;
  width: auto;
  object-fit: contain;
  transition: height var(--speed) ease;
}
.site-header.fixed .site-brand img { height: 52px; }

/* 右栏搜索框、报价按钮与移动端菜单按钮 */
.header-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

/* 胶囊搜索框 */
.quicksearch {
  display: flex;
  align-items: center;
  flex: 1 1 200px;
  max-width: 340px;
  min-width: 180px;
  height: 44px;
  padding: 3px 4px 3px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  transition: background var(--speed) ease, border-color var(--speed) ease, box-shadow var(--speed) ease;
}
.quicksearch:focus-within {
  background: var(--bg);
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 76, 92, 0.14);
}
.quicksearch input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 10px 0 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
}
.quicksearch input::placeholder { color: var(--ink-muted); opacity: 1; }
.quicksearch button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 36px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--brand);
  color: #ffffff;
  flex-shrink: 0;
  transition: background var(--speed) ease, transform 120ms ease;
}
.quicksearch button:hover { background: var(--brand-hover); }
.quicksearch button:active { transform: scale(0.96); }

.header-quote-btn { min-height: 42px; padding: 8px 18px; flex-shrink: 0; }

.primary-nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  flex-shrink: 0;
  transition: background var(--speed) ease, border-color var(--speed) ease;
}
.primary-nav-hamburger:hover { background: var(--brand-soft); border-color: var(--brand); }
.primary-nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
}
.site-header.is-dark-header .primary-nav-hamburger {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
}
.site-header.is-dark-header .primary-nav-hamburger:hover { background: rgba(255, 255, 255, 0.2); }
.site-header.is-dark-header .primary-nav-hamburger span { background: #ffffff; }
.site-header.is-dark-header :focus-visible { outline-color: #ffffff; }

/* 分类导航条 */
.primary-nav-wrap {
  background: var(--pa-header-nav-bg, var(--bg));
  border-top: 1px solid var(--pa-header-border, var(--border));
}
.primary-nav-bar {
  max-width: var(--shell-max);
  min-height: 48px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
}
.primary-nav { width: 100%; }
.primary-nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.primary-nav-list::-webkit-scrollbar { display: none; }
/* 独立站常见的大写细字距导航 + 下划线指示，替代胶囊高亮 */
.primary-nav-list a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 12px;
  color: var(--pa-header-nav-ink, var(--ink-secondary));
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color var(--speed) ease;
}
.primary-nav-list a::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  height: 2px;
  background: var(--pa-header-nav-active-bg, var(--brand));
  transform: scaleX(0);
  transition: transform var(--speed) ease;
}
.primary-nav-list a:hover { color: var(--pa-header-fg, var(--brand-deep)); }
.primary-nav-list a:hover::after { transform: scaleX(0.5); }
.primary-nav-list a.is-active { color: var(--pa-header-fg, var(--brand-deep)); }
.primary-nav-list a.is-active::after { transform: scaleX(1); }

/* ==========================================================================
   首页首屏横幅与服务优势条
   ========================================================================== */
.hero {
  background: var(--bg);
  padding: 24px 0 0;
}
.hero-shell {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 24px;
}
.hero-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--media-bg);
}
.hero-frame > img {
  display: block;
  width: 100%;
  height: auto;
}

/* 三项优势：无框信息条，仅上下细线与竖分隔，图标不加底色 */
.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
  border-block: 1px solid var(--border);
}
.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 22px 24px;
}
.highlight-item + .highlight-item { border-left: 1px solid var(--border); }
.highlight-icon {
  display: inline-flex;
  color: var(--brand);
  flex-shrink: 0;
  padding-top: 1px;
}
.highlight-item strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}
.highlight-item p {
  margin: 4px 0 0;
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 1.45;
}

/* ==========================================================================
   商品目录网格
   ========================================================================== */
.featured-products {
  padding: 44px 0 64px;
  background: var(--bg);
}
.section-shell {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 24px;
}
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 28px;
}
.featured-products h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}
.section-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.catalog-meta {
  color: var(--ink-muted);
  font-size: 14px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.filter-reset {
  min-height: 34px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 36px 24px;
  align-items: stretch;
}
/* 无框商品卡：浅灰图底 + 下方纯文字，靠图片本身说话 */
.product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--bg);
}
.product-trigger {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.product-image {
  aspect-ratio: 1 / 1;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--media-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}
.product-card:hover .product-image img,
.product-card:focus-within .product-image img {
  transform: scale(1.05);
}
.product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 2px 0;
  text-align: left;
}
.product-info .product {
  margin: 0;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.45;
  min-height: 42px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.product-card:hover .product-info .product { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.product-info .price {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.product-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color var(--speed) ease, transform var(--speed) ease;
}
.product-card:hover .product-cta { color: var(--accent); transform: translateX(2px); }

/* 加载骨架屏卡片 */
.product-skeleton {
  background: var(--bg);
}
.skeleton-media {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  background: linear-gradient(90deg, var(--surface) 25%, #e8eff3 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s infinite linear;
}
.skeleton-body {
  padding: 14px 2px 0;
  display: grid;
  gap: 10px;
}
.skeleton-line {
  height: 14px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--surface) 25%, #e8eff3 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s infinite linear;
}
.skeleton-line.short { width: 55%; }
@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.load-more-wrap {
  margin-top: 48px;
  text-align: center;
}
#load-more { min-width: 200px; border-color: var(--ink); }
#load-more:hover { background: var(--ink); border-color: var(--ink); color: #ffffff; }
.empty-state {
  margin: 24px auto 0;
  padding: 40px 24px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  text-align: center;
  color: var(--ink-secondary);
}
.empty-state p { margin: 0 0 16px; font-size: 16px; }

/* ==========================================================================
   关于公司与精选商品展示区
   ========================================================================== */
.home-content {
  padding: 88px 0;
  background: var(--surface);
}
.content-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 1fr);
  gap: 40px;
  align-items: center;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 24px;
}
.intro-copy { max-width: 65ch; }
.intro-copy h1,
.intro-copy h2 {
  margin: 0 0 18px;
  color: var(--brand-deep);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}
.intro-copy p {
  margin: 0 0 16px;
  color: var(--ink-secondary);
  line-height: 1.7;
}
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--bg);
  color: var(--brand-deep);
  font-size: 13px;
  font-weight: 600;
}

.featured-item {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--bg);
  text-align: left;
}
.featured-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}
.featured-item h3 {
  margin: 12px 0 16px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
}
.featured-link {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  padding: 18px;
  margin-bottom: 16px;
  border-radius: var(--radius-md);
  background: #f7fafb;
  overflow: hidden;
}
.featured-item img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 280ms ease;
}
.featured-link:hover img { transform: scale(1.04); }
.featured-item .featured-name {
  display: inline-block;
  color: var(--brand-deep);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
}
.featured-item .featured-name:hover { color: var(--accent); }
.featured-item p {
  margin: 8px 0 0;
  color: var(--ink-secondary);
  font-size: 14px;
  line-height: 1.6;
}
.featured-price {
  display: inline-block;
  margin-top: 8px;
  color: var(--brand);
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   询盘与报价表单区
   ========================================================================== */
.contact-section {
  background: var(--bg);
  border-top: 0;
  border-bottom: 0;
}
.contact-section .content-shell {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 1.35fr);
  align-items: start;
}
.contact-cards {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.contact-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--brand-soft);
  color: var(--brand);
  flex-shrink: 0;
}
.contact-card-label {
  display: block;
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 600;
}
.contact-card-value {
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}
a.contact-card-value:hover { color: var(--brand); }

.inquiry-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
}
.inquiry-form label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}
.inquiry-form input,
.inquiry-form textarea {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 11px 13px;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  font-weight: 400;
  transition: border-color var(--speed) ease, box-shadow var(--speed) ease;
}
.inquiry-form input::placeholder,
.inquiry-form textarea::placeholder { color: var(--ink-muted); opacity: 1; }
.inquiry-form input:focus,
.inquiry-form textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 76, 92, 0.14);
}
.inquiry-form .inquiry-message { grid-column: 1 / -1; }
.inquiry-form .btn {
  grid-column: 1 / -1;
  justify-self: start;
  min-width: 170px;
}

/* 独立 /cart 报价单页面与已选商品清单样式 */
.cart-page-section { padding-top: 32px; }
.cart-page-shell {
  max-width: var(--shell-max);
  margin: 0 auto 24px;
  padding: 0 24px;
}
.cart-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 500;
}
.cart-breadcrumb a { color: var(--brand); font-weight: 600; }
.cart-breadcrumb a:hover { text-decoration: underline; text-underline-offset: 3px; }

.cart-items-panel {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.cart-items-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.cart-items-head h3 {
  margin: 0;
  color: var(--brand-deep);
  font-size: 15px;
  font-weight: 700;
}
.cart-clear-btn {
  padding: 4px 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--bg);
  color: var(--ink-secondary);
  font-size: 12px;
  font-weight: 600;
}
.cart-clear-btn:hover { border-color: var(--accent); color: var(--accent); }
.cart-items-list { display: grid; gap: 10px; }
.cart-item-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
}
.cart-item-thumb {
  width: 56px;
  height: 56px;
  padding: 6px;
  border-radius: 6px;
  background: #f7fafb;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-item-thumb img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.cart-item-meta { min-width: 0; }
.cart-item-name {
  display: block;
  color: var(--brand-deep);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}
.cart-item-name:hover { color: var(--accent); text-decoration: underline; }
.cart-item-sub {
  margin: 3px 0 0;
  color: var(--ink-muted);
  font-size: 12px;
}
.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cart-item-qty {
  width: 78px;
  height: 34px;
  padding: 0 8px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--bg);
  color: var(--ink);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.cart-item-remove {
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: transparent;
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 600;
}
.cart-item-remove:hover { border-color: var(--accent); color: var(--accent); }

/* ==========================================================================
   浅色页脚（保护透明底深蓝 Logo 清晰度）
   ========================================================================== */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  color: var(--ink);
}
.footer-inner {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 64px 24px 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
}
.footer-brand img {
  display: block;
  height: 56px;
  width: auto;
  object-fit: contain;
}
.footer-summary {
  margin: 0 0 10px;
  max-width: 38ch;
  color: var(--ink-secondary);
  font-size: 14px;
  line-height: 1.6;
}
.footer-contact-line {
  margin: 0;
  color: var(--brand-deep);
  font-size: 14px;
  font-weight: 600;
}
.footer-contact-line a:hover { color: var(--accent); text-decoration: underline; }
.footer-col h3 {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.footer-nav {
  display: grid;
  gap: 10px;
}
.footer-nav a {
  color: var(--ink-secondary);
  font-size: 14px;
  font-weight: 500;
  justify-self: start;
  transition: color var(--speed) ease;
}
.footer-nav a:hover { color: var(--brand); }

.credit-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0 0 14px;
  list-style: none;
}
.credit-cards li {
  padding: 5px 11px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--bg);
  color: var(--ink-secondary);
  font-size: 12px;
  font-weight: 700;
}
.footer-ids {
  margin: 0;
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 600;
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
}
.copyright {
  margin: 0;
  max-width: 78ch;
  color: var(--ink-muted);
  font-size: 12px;
  line-height: 1.6;
}
.admin-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--bg);
  color: var(--ink-secondary);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: border-color var(--speed) ease, color var(--speed) ease;
}
.admin-link:hover { border-color: var(--brand); color: var(--brand); }

/* ==========================================================================
   移动端侧边抽屉与消息提示
   ========================================================================== */
.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 1050;
  background: rgba(11, 54, 66, 0.48);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--speed) ease, visibility var(--speed) ease;
}
.drawer-overlay.is-open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 1051;
  display: flex;
  flex-direction: column;
  width: 320px;
  max-width: 88vw;
  background: var(--bg);
  transform: translateX(-100%);
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}
.drawer.is-open {
  transform: translateX(0);
  box-shadow: 8px 0 36px rgba(11, 54, 66, 0.24);
}
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 0 18px;
  background: var(--brand-deep);
  color: #ffffff;
}
.drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  color: #ffffff;
  font-size: 24px;
  line-height: 1;
}
.drawer-close:hover { background: rgba(255, 255, 255, 0.14); }
.drawer-nav {
  flex: 1;
  overflow-y: auto;
  padding: 10px 12px;
  display: grid;
  align-content: start;
  gap: 2px;
}
.drawer-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  color: var(--ink-secondary);
  font-size: 15px;
  font-weight: 500;
  transition: background var(--speed) ease, color var(--speed) ease;
}
.drawer-nav a:hover {
  background: var(--brand-soft);
  color: var(--brand-deep);
}
.drawer-nav a.is-active {
  background: var(--brand);
  color: #ffffff;
  font-weight: 600;
}
.drawer-footer {
  padding: 16px 18px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-secondary);
}
.drawer-footer a { color: var(--brand); font-weight: 600; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 1200;
  max-width: calc(100vw - 32px);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  background: var(--brand-deep);
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity var(--speed) ease, transform var(--speed) ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* 回到顶部浮动按钮：滚动超过一屏后淡入 */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1100;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  background: var(--brand);
  color: #ffffff;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--speed) ease, visibility var(--speed) ease, transform var(--speed) ease, background var(--speed) ease;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--brand-hover); transform: translateY(-2px); }

/* 区块标题保持纯文字，靠字号与留白建立层级 */
.featured-products h2 { display: block; }

/* 新渲染的商品卡片轻微淡入上浮（backwards 填充，结束后不干扰 hover 位移过渡） */
.product-card { animation: card-in 360ms cubic-bezier(0.22, 1, 0.36, 1) backwards; }
@keyframes card-in {
  from { opacity: 0; transform: translateY(8px); }
}

/* 表单仅在用户交互后才提示无效状态 */
.inquiry-form :is(input, textarea):user-invalid {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(194, 73, 38, 0.12);
}

/* ==========================================================================
   响应式适配断点
   ========================================================================== */
@media (max-width: 1120px) {
  .header-inner {
    grid-template-columns: minmax(220px, 1fr) auto minmax(260px, 1fr);
    gap: 16px;
  }
  .quicksearch { min-width: 150px; }
  .header-quote-btn { padding: 8px 14px; font-size: 13px; }
}

@media (max-width: 991px) {
  .top-menu-inner { padding: 5px 16px; }
  .header-inner {
    grid-template-columns: auto 1fr;
    gap: 12px 16px;
    min-height: 0;
    padding: 12px 16px;
  }
  .site-header.fixed .header-inner { min-height: 0; padding: 10px 16px; }
  .site-brand { grid-column: 1; grid-row: 1; justify-self: start; }
  .site-brand img,
  .site-header.fixed .site-brand img { height: 52px; }
  .header-tools { grid-column: 2; grid-row: 1; justify-self: end; width: 100%; }
  .header-contact {
    grid-column: 1 / -1;
    grid-row: 2;
    max-width: none;
    min-height: 0;
    gap: 4px;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
  }
  .pa-header-contact-empty { display: none; }
  .site-header.is-dark-header .header-contact {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
  }
  .header-contact-item,
  .site-header.fixed .header-contact-item,
  .pa-header-contact,
  .site-header.fixed .pa-header-contact { font-size: 13.5px; line-height: 1.38; min-height: 0; }
  .primary-nav-wrap { display: none; }
  .primary-nav-hamburger { display: flex; }
  .hero-shell,
  .section-shell,
  .content-shell,
  .footer-inner { padding-inline: 16px; }
  .hero-highlights { grid-template-columns: 1fr; }
  .highlight-item { padding: 14px 16px; }
  .highlight-item + .highlight-item { border-left: 0; border-top: 1px solid var(--border); }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .content-shell,
  .contact-section .content-shell { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  .top-menu-wrap { font-size: 12px; }
  .top-menu-inner { justify-content: space-between; gap: 8px; padding: 4px 12px; }
  .top-links { flex-wrap: wrap; justify-content: flex-start; gap: 2px; }
  .top-links a { padding: 4px 8px; }
  .top-cart-link { padding: 4px 8px; }
  .header-inner {
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    padding: 10px 16px 12px;
  }
  .header-tools { display: contents; }
  .site-brand img,
  .site-header.fixed .site-brand img { height: 46px; }
  .header-quote-btn {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    padding: 7px 14px;
    font-size: 13px;
    min-height: 38px;
  }
  .primary-nav-hamburger { grid-column: 3; grid-row: 1; justify-self: end; }
  .header-contact { grid-column: 1 / -1; grid-row: 2; gap: 3px; }
  .header-contact-item,
  .site-header.fixed .header-contact-item,
  .pa-header-contact,
  .site-header.fixed .pa-header-contact { font-size: 13px; }
  .quicksearch { grid-column: 1 / -1; grid-row: 3; max-width: none; width: 100%; min-width: 0; }
  .hero { padding: 14px 0 8px; }
  .hero-frame { border-radius: 12px; }
  .featured-products { padding: 32px 0 48px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
  .product-image { padding: 14px; }
  .product-info { padding: 10px 2px 0; gap: 6px; }
  .product-info .product { font-size: 13px; min-height: 36px; }
  .product-info .price { font-size: 14px; }
  .product-cta { font-size: 12px; }
  .home-content { padding: 44px 0; }
  .inquiry-form { grid-template-columns: 1fr; padding: 20px; }
  .inquiry-form .inquiry-message,
  .inquiry-form .btn { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 480px) {
  .product-card-foot { flex-direction: column; align-items: flex-start; gap: 4px; }
  .cart-item-row { grid-template-columns: 48px minmax(0, 1fr); }
  .cart-item-controls { grid-column: 1 / -1; justify-content: space-between; }
}

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