/**
 * 前台视觉：DESIGN.md §10 浅色工业 B2B（Hitachi 类站：冷灰底、白面板、slate 字、青蓝链接）
 * 布局：`--site-layout-max: 1920px` 用于顶栏/主区/页脚内层，适配宽屏显示器。
 * 无重阴影；药丸按钮保留；产品图仍为视觉重点。
 */

:root {
  /* 宽屏内容宽（顶栏 / 主区 / 页脚 / 轮播外壳对齐） */
  --site-layout-max: 1920px;
  /* 与 Hitachi 类站一致：左右留白随视口缩放，避免贴边与横向溢出 */
  --site-gutter-x: clamp(16px, 2.5vw, 80px);
  /* 浅色工业站（参考 Hitachi 类 B2B：冷灰底、白卡片、slate 正文） */
  --ds-page-bg: #eef2f6;
  --ds-surface: #ffffff;
  --ds-snow: #f8fafc;
  --ds-grey-100: #f1f5f9;
  --ds-grey-200: #e2e8f0;
  --ds-grey-300: #cbd5e1;
  --ds-ink: #334155;
  --ds-black: #0f172a;
  --ds-white: #ffffff;
  --ds-text-secondary: #64748b;
  --ds-text-disabled: #94a3b8;
  --ds-link: #0369a1;
  --ds-link-hover: #075985;
  --ds-focus-ring: rgba(3, 105, 161, 0.45);
  --ds-radius-pill: 30px;
  --ds-radius-search: 24px;
  --ds-radius-container: 14px;
  --ds-font: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

/* —— 全局 —— */
html {
  overflow-x: clip;
}
/* 避免 100vw、负边距等造成横向滚动条（clip 对 sticky 影响小于 hidden） */
body.site-public {
  font-family: var(--ds-font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--ds-ink);
  background: var(--ds-page-bg);
  min-height: 100vh;
  max-width: 100%;
  overflow-x: clip;
  display: flex;
  flex-direction: column;
}
.site-public video {
  max-width: 100%;
  height: auto;
}
.site-public img:not(.home-carousel-img):not(.catalog-card-img-wrap img) {
  max-width: 100%;
  height: auto;
}
.site-public .catalog-card-img-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}
.site-public .home-carousel-img {
  height: 100%;
  max-width: none;
}
.site-main {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

/* 商品详情：拍卖已结束（醒目横幅，Podium 深底） */
body.site-public .ds-auction-ended-banner {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.875rem 1.25rem;
  background: var(--ds-black);
  color: var(--ds-white);
  border-radius: var(--ds-radius-container);
  border-left: 4px solid var(--ds-link);
}
body.site-public .ds-auction-ended-banner__title {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
}
body.site-public .ds-auction-ended-banner__sub {
  font-size: 0.875rem;
  opacity: 0.92;
  font-weight: 500;
}

.site-public h1,
.site-public h2,
.site-public h3,
.site-public h4,
.site-public h5,
.site-public .h1,
.site-public .h2,
.site-public .h3,
.site-public .h4,
.site-public .h5 {
  font-weight: 500;
  color: var(--ds-black);
  letter-spacing: -0.02em;
}

.site-public a:not(.btn):not(.nav-link):not(.navbar-brand):not(.arai-social-chip) {
  color: var(--ds-link);
  font-weight: 500;
  text-decoration: none;
}
.site-public a:not(.btn):not(.nav-link):not(.navbar-brand):not(.arai-social-chip):hover {
  color: var(--ds-link-hover);
  text-decoration: underline;
}

.site-main {
  flex: 1 0 auto;
}
.site-main-inner {
  max-width: var(--site-layout-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--site-gutter-x);
  padding-right: var(--site-gutter-x);
  padding-top: clamp(24px, 3vw, 48px);
  padding-bottom: clamp(32px, 4vw, 64px);
}

/* —— 顶区：工业站式双层头部（参考 B2B 设备站） —— */
.site-header--corp {
  z-index: 1030;
  background: var(--ds-surface);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.05);
}
.site-header-inner {
  max-width: var(--site-layout-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--site-gutter-x);
  padding-right: var(--site-gutter-x);
  box-sizing: border-box;
}
.site-promo-inner {
  max-width: var(--site-layout-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--site-gutter-x);
  padding-right: var(--site-gutter-x);
  box-sizing: border-box;
}
.site-promo-strip.site-promo-strip--corp {
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  color: #475569;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ds-grey-300);
  padding: 0;
}
.site-promo-strip__text {
  letter-spacing: 0.08em;
}
.site-promo-strip__meta {
  font-size: 11px;
  color: var(--ds-text-secondary);
  letter-spacing: 0.12em;
}
.site-header-brand-row {
  background: var(--ds-surface);
  border-bottom: 1px solid var(--ds-grey-200);
}
.site-brand-lockup:hover .site-brand-name {
  color: var(--ds-text-secondary);
}
.site-brand-logo-wrap {
  min-width: 48px;
  min-height: 48px;
}
.site-brand-logo {
  max-height: 48px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}
.site-brand-name {
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ds-black);
  line-height: 1.2;
}
.site-brand-tagline {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ds-text-secondary);
  margin-top: 0.2rem;
}
.site-header-icon {
  display: block;
}
.site-header-icon--muted {
  opacity: 0.55;
}
.site-header-search-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--ds-grey-300);
  color: var(--ds-black);
  background: var(--ds-surface);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  cursor: pointer;
}
.site-header-search-btn:hover {
  background: var(--ds-grey-100);
  border-color: var(--ds-text-secondary);
  color: var(--ds-black);
}
.site-header-search-btn:focus-visible {
  outline: 2px solid var(--ds-focus-ring);
  outline-offset: 2px;
}
.site-header-lang-btn {
  font-size: 14px;
  font-weight: 500;
  color: var(--ds-black) !important;
  border: 1px solid var(--ds-grey-300);
  border-radius: 999px;
  background: var(--ds-surface);
  padding: 0.35rem 0.85rem 0.35rem 0.65rem;
  line-height: 1.4;
  box-shadow: none;
}
.site-header-lang-btn:hover,
.site-header-lang-btn:focus-visible {
  border-color: var(--ds-text-secondary);
  background: var(--ds-grey-100);
}
.site-header-lang-btn::after {
  margin-left: 0.25rem;
}
.site-nav-toggler {
  background: var(--ds-grey-100);
  border-radius: 8px;
}
.site-nav-toggler:focus-visible {
  box-shadow: 0 0 0 2px var(--ds-focus-ring);
}
.dropdown-menu .dropdown-item.active {
  background: var(--ds-grey-100);
  color: var(--ds-black);
}

/* 主导航横条（类 Hitachi 横向字重链接） */
.site-nav-corp {
  background: var(--ds-surface) !important;
  border-bottom: 1px solid var(--ds-grey-300) !important;
  padding-top: 0;
  padding-bottom: 0;
  min-height: 0;
}
.site-nav-corp .navbar-collapse {
  justify-content: center;
}
.site-nav-corp-links {
  gap: 0.25rem;
}
@media (min-width: 992px) {
  .site-nav-corp-links {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
}
.site-nav-corp-links .nav-link {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ds-black) !important;
  padding: 0.85rem 1.1rem !important;
  border-radius: 0 !important;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.site-nav-corp-links .nav-link:hover {
  color: var(--ds-link) !important;
  background: transparent !important;
  border-bottom-color: var(--ds-link);
}
.site-nav-corp-links .nav-link:focus-visible {
  outline: 2px solid var(--ds-focus-ring);
  outline-offset: 2px;
}

/* 首页搜索框：锚点定位时避开固定顶栏 */
#catalog-q {
  scroll-margin-top: 10rem;
}

/* —— 页脚（浅色多栏 + 底栏，与 Hitachi 类站点的浅灰分区一致） —— */
.site-footer-inner {
  max-width: var(--site-layout-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--site-gutter-x);
  padding-right: var(--site-gutter-x);
  box-sizing: border-box;
}
.site-footer.site-footer--corp {
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  color: var(--ds-ink);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.65;
  border-top: 1px solid var(--ds-grey-300);
}
.site-footer--corp .site-footer-heading {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ds-text-secondary);
  margin-bottom: 1rem;
}
.site-footer--corp .site-footer-brand-name {
  color: var(--ds-black) !important;
  font-size: 1.05rem;
}
.site-footer--corp .site-footer-lead {
  color: var(--ds-text-secondary);
  max-width: 36rem;
}
.site-footer--corp .site-footer-logo {
  object-fit: contain;
  max-height: 40px;
  width: auto;
}
.site-footer--corp .site-footer-list a {
  color: var(--ds-link);
  font-weight: 500;
  text-decoration: none;
}
.site-footer--corp .site-footer-list a:hover {
  color: var(--ds-link-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.site-footer--corp .text-muted {
  color: var(--ds-text-secondary) !important;
}
.site-footer--corp .site-footer-list .text-muted {
  color: var(--ds-text-secondary) !important;
}
.site-footer--corp a:not(.site-footer-list a) {
  color: var(--ds-link);
}
.site-footer-bottom {
  border-top: 1px solid var(--ds-grey-300);
  background: var(--ds-surface);
  padding-top: 1.15rem;
  padding-bottom: 0.35rem;
}
.site-footer--corp .site-footer-bottom .text-muted,
.site-footer--corp .site-footer-bottom small {
  color: var(--ds-text-secondary) !important;
}
.site-footer--corp .site-footer-bottom .text-body {
  color: var(--ds-black) !important;
}
.site-footer-legal a {
  color: var(--ds-link) !important;
  font-weight: 500;
}
.site-footer-legal a:hover {
  color: var(--ds-link-hover) !important;
}

/* —— 按钮（药丸） —— */
.btn-ds-primary {
  background: var(--ds-black);
  border: none;
  color: var(--ds-white);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  border-radius: var(--ds-radius-pill);
  padding: 12px 24px;
  transition: background 0.2s ease, transform 0.15s ease;
  cursor: pointer;
}
.btn-ds-primary:hover {
  background: #1e3a8a;
  color: var(--ds-white);
}
.btn-ds-primary:focus-visible {
  box-shadow: 0 0 0 2px var(--ds-focus-ring);
}

.btn-ds-secondary {
  background: transparent;
  border: 1.5px solid var(--ds-grey-300);
  color: var(--ds-black);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  border-radius: var(--ds-radius-pill);
  padding: 12px 24px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.btn-ds-secondary:hover {
  border-color: var(--ds-text-secondary);
  background: var(--ds-grey-200);
  color: var(--ds-black);
}
.btn-ds-secondary:focus-visible {
  box-shadow: 0 0 0 2px var(--ds-focus-ring);
}

.btn-ds-sm {
  font-size: 14px;
  padding: 8px 18px;
}

/* —— 搜索输入 —— */
.ds-search-input {
  background: var(--ds-grey-100);
  border: 1px solid transparent;
  border-radius: var(--ds-radius-search);
  font-size: 16px;
  padding: 0.75rem 1.25rem;
  color: var(--ds-black);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ds-search-input::placeholder {
  color: var(--ds-text-secondary);
}
.ds-search-input:focus {
  background: var(--ds-surface);
  border-color: var(--ds-link);
  box-shadow: 0 0 0 2px var(--ds-focus-ring);
  outline: none;
}

/* —— 首页：侧栏 —— */
.catalog-sidebar {
  background: var(--ds-surface);
  border: 1px solid var(--ds-grey-300) !important;
  border-radius: var(--ds-radius-container);
  box-shadow: none !important;
}
.catalog-sidebar .nav-link,
.site-header .product-detail-cat-strip .nav-link.rounded-pill {
  color: var(--ds-black);
  font-weight: 500;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.catalog-sidebar .nav-link:hover,
.site-header .product-detail-cat-strip .nav-link.rounded-pill:hover {
  background: var(--ds-grey-100);
  border-color: var(--ds-grey-300);
  color: var(--ds-black);
  text-decoration: none;
}
.catalog-sidebar .nav-link.active,
.site-header .product-detail-cat-strip .nav-link.rounded-pill.active {
  background: var(--ds-black);
  color: var(--ds-white) !important;
  border-color: var(--ds-black);
}

/* 分类侧栏：子级为「父 › 当前」+ 左侧层级线（与根级区分） */
.catalog-cat-nav .catalog-cat-nav-link {
  display: block;
  line-height: 1.35;
}
.catalog-cat-nav .catalog-cat-nav-link--depth-0 .catalog-cat-nav-self {
  font-size: 15px;
  font-weight: 500;
}
.catalog-cat-nav .catalog-cat-nav-link--depth-1,
.catalog-cat-nav .catalog-cat-nav-link--depth-2,
.catalog-cat-nav .catalog-cat-nav-link--depth-3 {
  position: relative;
  border-left: 3px solid var(--ds-grey-300);
  border-radius: 0 999px 999px 0 !important;
  margin-left: 0.35rem;
  padding-left: 0.85rem;
}
.catalog-cat-nav .catalog-cat-nav-link--depth-2 {
  margin-left: 0.65rem;
  border-left-color: var(--ds-grey-400);
}
.catalog-cat-nav .catalog-cat-nav-link--depth-3 {
  margin-left: 0.95rem;
  border-left-color: var(--ds-grey-400);
}
/* 商品详情顶栏下横向：取消竖向层级左边线，保持 pill */
.site-header .product-detail-cat-strip .catalog-cat-nav .catalog-cat-nav-link.product-detail-cat-nav--horizontal.catalog-cat-nav-link--depth-1,
.site-header .product-detail-cat-strip .catalog-cat-nav .catalog-cat-nav-link.product-detail-cat-nav--horizontal.catalog-cat-nav-link--depth-2,
.site-header .product-detail-cat-strip .catalog-cat-nav .catalog-cat-nav-link.product-detail-cat-nav--horizontal.catalog-cat-nav-link--depth-3 {
  border-left: none;
  margin-left: 0;
  border-radius: 999px !important;
  padding-left: 0.75rem;
}
.catalog-cat-nav .catalog-cat-nav-hier {
  font-size: 14px;
  font-weight: 500;
}
.catalog-cat-nav .catalog-cat-nav-parent {
  color: var(--ds-text-secondary);
  font-weight: 500;
}
.catalog-cat-nav .catalog-cat-nav-sep {
  color: var(--ds-text-secondary);
  font-weight: 400;
  user-select: none;
}
.catalog-cat-nav .catalog-cat-nav-hier .catalog-cat-nav-self {
  font-weight: 600;
  color: var(--ds-black);
}
.catalog-cat-nav .catalog-cat-nav-link--depth-2 .catalog-cat-nav-hier,
.catalog-cat-nav .catalog-cat-nav-link--depth-3 .catalog-cat-nav-hier {
  font-size: 13px;
}
.catalog-sidebar .nav-link.active .catalog-cat-nav-parent,
.catalog-sidebar .nav-link.active .catalog-cat-nav-sep,
.site-header .product-detail-cat-strip .nav-link.active .catalog-cat-nav-parent,
.site-header .product-detail-cat-strip .nav-link.active .catalog-cat-nav-sep {
  color: rgba(255, 255, 255, 0.82) !important;
}
.catalog-sidebar .nav-link.active .catalog-cat-nav-hier .catalog-cat-nav-self,
.site-header .product-detail-cat-strip .nav-link.active .catalog-cat-nav-hier .catalog-cat-nav-self {
  color: var(--ds-white) !important;
}

.site-public .catalog-breadcrumb__link {
  color: var(--ds-link);
  font-weight: 500;
  text-decoration: none;
}
.site-public .catalog-breadcrumb__link:hover {
  text-decoration: underline;
  color: var(--ds-link);
}
.site-public .catalog-breadcrumb__sep {
  color: var(--ds-text-secondary);
  user-select: none;
}

/* 商品详情：紧贴主导航下方，随 header sticky-top 固定；pill 与字重同首页侧栏 */
.site-header .product-detail-cat-strip {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: var(--ds-surface);
}
.site-header .product-detail-cat-strip-kicker {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ds-text-secondary);
  font-weight: 600;
  padding-top: 0.35rem;
}
.site-header .product-detail-cat-nav-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
}
.site-header .product-detail-cat-nav.catalog-cat-nav .nav-link.catalog-cat-nav-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
}
.site-header .product-detail-cat-strip .nav-link.rounded-pill:focus-visible {
  outline: 2px solid var(--ds-link);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .catalog-sidebar .nav-link,
  .site-header .product-detail-cat-strip .nav-link.rounded-pill {
    transition: none;
  }
}

/* —— 首页：英雄区（浅色面板，与整站浅底一致） —— */
.ds-hero {
  background: var(--ds-surface);
  color: var(--ds-black);
  border: 1px solid var(--ds-grey-200);
  border-radius: var(--ds-radius-container);
  box-shadow: none !important;
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1.25rem, 3vw, 2.5rem);
}
.ds-hero h1,
.ds-hero .display-hero {
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: none;
  line-height: 1.15;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 0.5rem;
  color: var(--ds-black);
}
.ds-hero p {
  color: var(--ds-text-secondary);
  font-weight: 400;
  max-width: 42rem;
}

/* —— 商品卡片：无阴影、无抬起；图无圆角 —— */
.catalog-card {
  border: 1px solid var(--ds-grey-300) !important;
  border-radius: var(--ds-radius-container);
  box-shadow: none !important;
  background: var(--ds-surface);
  transition: border-color 0.2s ease;
}
.catalog-card:hover {
  transform: none;
  border-color: var(--ds-text-secondary) !important;
}
.catalog-card-img-wrap {
  height: 220px;
  overflow: hidden;
  background: var(--ds-grey-100);
  border-radius: 0;
}
@media (min-width: 992px) {
  .catalog-page .catalog-card-img-wrap {
    height: 180px;
  }
}
.catalog-card-img-wrap img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: opacity 0.2s ease;
}
.catalog-card:hover .catalog-card-img-wrap img {
  opacity: 0.92;
}

/* 商品列表卡片：序列号 / Model Year / 价格 分三行，标签与数值左右对齐 */
body.site-public .catalog-card .catalog-card-meta {
  margin: 0;
  color: var(--ds-text-secondary);
  font-weight: 500;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
body.site-public .catalog-card .catalog-card-meta__row {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  column-gap: 0.5rem;
  align-items: baseline;
  line-height: 1.35;
}
body.site-public .catalog-card .catalog-card-meta__row dt {
  margin: 0;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ds-text-secondary);
  font-weight: 600;
}
body.site-public .catalog-card .catalog-card-meta__row dd {
  margin: 0;
  text-align: end;
  min-width: 0;
  font-size: 0.8125rem;
  color: var(--ds-ink);
  word-break: break-word;
}
body.site-public .catalog-card .catalog-card-meta__row dd.ds-price {
  font-weight: 600;
}

.badge-ds {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  border-radius: var(--ds-radius-pill);
  background: var(--ds-grey-100);
  color: var(--ds-black);
  border: 1px solid var(--ds-grey-300);
}
.badge-ds-muted {
  background: var(--ds-surface);
  color: var(--ds-text-secondary);
}

.ds-price {
  color: var(--ds-black);
  font-weight: 500;
  font-size: 15px;
}

/* —— 商品详情 —— */
.product-detail-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
  font-weight: 500;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--ds-grey-200);
}
.product-hero-img {
  border-radius: 0;
  box-shadow: none !important;
}
.product-thumb-btn {
  width: 64px;
  height: 64px;
  padding: 0;
  border: 1px solid var(--ds-grey-300);
  border-radius: 8px;
  overflow: hidden;
  background: var(--ds-grey-100);
  transition: border-color 0.2s ease;
}
.product-thumb-btn:hover {
  border-color: var(--ds-black);
}
.product-thumb-btn.border-primary {
  border-color: var(--ds-black) !important;
  border-width: 2px;
}

.product-nav-bar {
  border: 1px solid var(--ds-grey-300) !important;
  border-radius: var(--ds-radius-container);
  background: var(--ds-snow) !important;
  box-shadow: none !important;
}

/* 规格表：单一外框容器，两个横向表格上下排列，边界与父容器重合 */
.detail-spec-outer {
  border: 1px solid var(--ds-grey-300);
  border-radius: var(--ds-radius-container);
  overflow: hidden;
  background: var(--ds-surface);
  font-size: 0.9375rem;
  box-shadow: none;
  max-width: 100%;
}
.detail-spec-section-2 {
  border-top: 1px solid var(--ds-grey-300);
}
.detail-spec-table {
  border-collapse: collapse;
  width: 100%;
  table-layout: auto;
}
.detail-spec-table > thead > tr > th {
  background: var(--ds-grey-100);
  border: 1px solid var(--ds-grey-300);
  border-top: none;
  padding: 0.55rem 1rem;
  font-weight: 500;
  font-size: 13px;
  color: var(--ds-text-secondary);
  white-space: nowrap;
  text-align: center;
}
.detail-spec-table > thead > tr > th:first-child {
  border-left: none;
}
.detail-spec-table > thead > tr > th:last-child {
  border-right: none;
}
.detail-spec-table > tbody > tr > td {
  border: 1px solid var(--ds-grey-300);
  border-bottom: none;
  padding: 0.65rem 1rem;
  vertical-align: top;
  word-break: break-word;
  background: var(--ds-surface);
  color: var(--ds-black);
  font-size: 0.9375rem;
  text-align: center;
}
.detail-spec-table > tbody > tr > td:first-child {
  border-left: none;
}
.detail-spec-table > tbody > tr > td:last-child {
  border-right: none;
}
.detail-spec-table > tbody > tr > td.detail-spec-information {
  white-space: pre-wrap;
  min-width: 200px;
  text-align: left;
}
.detail-spec-table > tbody > tr:hover > td {
  background: var(--ds-snow);
}

/* #kensaArea 同步 HTML（补充详情）：多表时前若干表两列并排，末表整行；成对表单元格居中，末表左对齐便于长文 */
.site-public .product-kensa-html {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1rem;
  align-items: flex-start;
  border: 1px solid var(--ds-grey-300);
  border-radius: var(--ds-radius-container);
  background: var(--ds-surface);
  padding: 1rem 1.15rem;
  font-size: 0.9375rem;
  color: var(--ds-black);
  line-height: 1.55;
  overflow-x: auto;
}
.site-public .product-kensa-html table {
  border-collapse: collapse;
  width: 100%;
  margin: 0;
  font-size: 0.9rem;
  box-sizing: border-box;
}
/* 由脚本标记：非末尾表两列一排 */
.site-public .product-kensa-html table.product-kensa-table--pair {
  min-width: 0;
}
.site-public .product-kensa-html table.product-kensa-table--wide {
  min-width: 0;
}
/* 每张表的独立滚动容器（JS 注入），承接原来表格上的 flex 尺寸 */
.site-public .product-kensa-html .kensa-tbl-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  min-width: 0;
}
.site-public .product-kensa-html .kensa-tbl-pair {
  flex: 1 1 calc(50% - 0.5rem);
  max-width: calc(50% - 0.5rem);
}
.site-public .product-kensa-html .kensa-tbl-wide {
  flex: 1 1 100%;
  max-width: 100%;
}
/* 手机屏幕：并排表改为纵向堆叠，每张独占全宽可横滑 */
@media (max-width: 767px) {
  .site-public .product-kensa-html .kensa-tbl-pair {
    flex: 1 1 100%;
    max-width: 100%;
  }
}
.site-public .product-kensa-html table.product-kensa-table--pair th,
.site-public .product-kensa-html table.product-kensa-table--pair td {
  border: 1px solid var(--ds-grey-300);
  padding: 0.45rem 0.65rem;
  vertical-align: middle;
  word-break: break-word;
  text-align: center;
}
.site-public .product-kensa-html table.product-kensa-table--wide th,
.site-public .product-kensa-html table.product-kensa-table--wide td {
  border: 1px solid var(--ds-grey-300);
  padding: 0.45rem 0.65rem;
  vertical-align: top;
  word-break: break-word;
  text-align: left;
}
/* 未跑脚本或单表：默认按宽表样式 */
.site-public .product-kensa-html table:not(.product-kensa-table--pair):not(.product-kensa-table--wide) th,
.site-public .product-kensa-html table:not(.product-kensa-table--pair):not(.product-kensa-table--wide) td {
  border: 1px solid var(--ds-grey-300);
  padding: 0.45rem 0.65rem;
  vertical-align: top;
  word-break: break-word;
  text-align: left;
}
.site-public .product-kensa-html th {
  background: var(--ds-grey-100);
  font-weight: 600;
  color: var(--ds-text-secondary);
}
.site-public .product-kensa-html img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0.5rem 0;
}
.site-public .product-kensa-html p {
  margin: 0 0 0.65rem;
  flex: 1 1 100%;
  width: 100%;
}
.site-public .product-kensa-html ul,
.site-public .product-kensa-html ol {
  margin: 0 0 0.65rem 1.1rem;
  padding: 0;
  flex: 1 1 100%;
  width: 100%;
}
.site-public .product-kensa-html a {
  color: var(--ds-link);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.site-public .product-kensa-html a:hover {
  color: var(--ds-link-hover);
}

/* 分页：Podium 单色风格（前台） */
.site-public .pagination .page-link {
  border-radius: var(--ds-radius-pill);
  border: 1px solid var(--ds-grey-300);
  color: var(--ds-black);
  background: var(--ds-surface);
  font-weight: 500;
  font-size: 14px;
  padding: 0.35rem 0.85rem;
  transition: background 0.12s, color 0.12s;
  margin: 0 2px;
}
.site-public .pagination .page-item.active .page-link {
  background: var(--ds-black);
  border-color: var(--ds-black);
  color: var(--ds-white);
}
.site-public .pagination .page-item.disabled .page-link {
  color: var(--ds-text-disabled);
  border-color: var(--ds-grey-200);
  background: var(--ds-surface);
}
.site-public .pagination .page-link:hover {
  background: var(--ds-grey-100);
  color: var(--ds-black);
  border-color: var(--ds-grey-300);
}
.site-public .pagination .page-item.active .page-link:hover {
  background: var(--ds-black);
  color: var(--ds-white);
}

/* —— 静态内容页 —— */
.content-page {
  max-width: 720px;
}
.content-page > h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--ds-grey-200);
  margin-bottom: 1.25rem;
}
.content-page .lead {
  color: var(--ds-text-secondary);
  font-weight: 400;
}
.content-page dt {
  font-weight: 500;
  color: var(--ds-black);
}
.content-page dd {
  color: var(--ds-text-secondary);
}

.empty-state {
  border: 1px dashed var(--ds-grey-300);
  border-radius: var(--ds-radius-container);
  background: var(--ds-snow);
}

/* —— 无障碍：跳到主要内容 —— */
.skip-to-main {
  z-index: 2000;
}
.skip-to-main:focus {
  position: absolute;
}

/* —— 首页轮播：与主内容同宽 + 左右 gutter（参考 Hitachi 留白，不用 100vw 防滚动条） —— */
.home-carousel-shell {
  width: 100%;
  max-width: var(--site-layout-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--site-gutter-x);
  padding-right: var(--site-gutter-x);
  padding-top: clamp(10px, 1.5vw, 20px);
  box-sizing: border-box;
}
.home-carousel {
  background: var(--ds-grey-100);
  border: 1px solid var(--ds-grey-300);
  border-radius: var(--ds-radius-container);
  overflow: hidden;
}
.home-carousel-inner {
  position: relative;
  width: 100%;
  min-height: 140px;
  height: clamp(160px, 22vw, 520px);
  max-height: min(52vh, 560px);
}
.home-carousel .carousel-inner .carousel-item {
  height: 100%;
}
.home-carousel .home-carousel-link {
  height: 100%;
  cursor: pointer;
}
.home-carousel-img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.home-carousel-indicators {
  margin-bottom: 0.75rem;
  gap: 0.35rem;
}
.home-carousel-indicators [data-bs-target] {
  width: 1.75rem;
  height: 3px;
  border: none;
  border-radius: 2px;
  margin: 0;
  background-color: rgba(255, 255, 255, 0.5);
  text-indent: 0;
  opacity: 1;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.home-carousel-indicators [data-bs-target]:focus-visible {
  outline: 2px solid var(--ds-focus-ring);
  outline-offset: 3px;
}
.home-carousel-indicators [data-bs-target].active {
  background-color: #ffffff;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.2);
  transform: scaleY(1.25);
}
.home-carousel-control {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.35);
  top: 50%;
  transform: translateY(-50%);
  transition: background 0.2s ease;
}
.home-carousel-control:hover {
  background: rgba(15, 23, 42, 0.52);
}
.home-carousel-control:focus-visible {
  outline: 2px solid var(--ds-focus-ring);
  outline-offset: 2px;
}
@media (max-width: 767px) {
  .home-carousel-inner {
    height: clamp(140px, 36vw, 280px);
    max-height: min(40vh, 300px);
  }
  .home-carousel-control {
    width: 2.25rem;
    height: 2.25rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .home-carousel.carousel-fade .carousel-item {
    transition: none;
  }
}

.home-carousel-shell + #site-main-content {
  padding-top: clamp(1.25rem, 3vw, 2.5rem);
}

/* Bootstrap 栅格列内 flex 子项默认 min-width:auto 易把行撑出视口 */
.site-public .catalog-page.row > [class*="col-"] {
  min-width: 0;
}
.site-public .table-responsive {
  max-width: 100%;
}
.site-public .product-kensa-html pre {
  max-width: 100%;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

/* 有轮播时：标题区略紧凑，层次让位给横幅 */
.ds-hero.ds-hero--under-carousel {
  padding: clamp(0.85rem, 2vw, 1.25rem) clamp(1rem, 2.5vw, 1.5rem);
}
.ds-hero.ds-hero--under-carousel .display-hero {
  font-size: clamp(1.35rem, 3vw, 2rem);
  margin-bottom: 0;
}

/* —— 联系我们浮标 + 联系落地页 + WhatsApp —— */
.site-contact-fab {
  position: fixed;
  z-index: 1030;
  right: max(1rem, env(safe-area-inset-right, 0px));
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  border-radius: var(--ds-radius-pill);
  padding: 0.65rem 1.1rem;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.12);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.site-contact-fab:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.16);
}
.site-contact-fab:focus-visible {
  outline: 2px solid var(--ds-focus-ring);
  outline-offset: 3px;
}
.site-contact-fab__icon {
  flex-shrink: 0;
}
@media (max-width: 575px) {
  .site-contact-fab__label {
    max-width: 9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
.site-wa-fab {
  position: fixed;
  z-index: 1031;
  right: max(1rem, env(safe-area-inset-right, 0px));
  bottom: max(5.5rem, calc(1rem + 4.25rem));
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.site-wa-fab:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.55);
}
.site-wa-fab:focus-visible {
  outline: 2px solid var(--ds-focus-ring);
  outline-offset: 3px;
}
.contact-inquiry-page {
  max-width: var(--site-layout-max, 1920px);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--site-gutter-x, 1rem);
  padding-right: var(--site-gutter-x, 1rem);
}
.contact-inquiry-kicker {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ds-text-secondary);
  font-weight: 600;
}
.contact-inquiry-lead {
  color: var(--ds-text-secondary);
  font-weight: 500;
  max-width: 42rem;
}
.contact-inquiry-hero .display-hero {
  font-weight: 600;
  letter-spacing: -0.02em;
}
.contact-inquiry-form-card .card-body,
.contact-inquiry-aside {
  background: var(--ds-surface);
}
.contact-inquiry-field-label {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ds-text-secondary);
  margin-bottom: 0.35rem;
}
.contact-inquiry-form-card .form-select.ds-search-input,
.contact-inquiry-form-card .form-select.form-select-lg {
  border-radius: 0;
}
.contact-inquiry-terms-check {
  padding-top: 0.25rem;
}
.contact-inquiry-terms-check .form-check-label {
  font-size: 0.9375rem;
  line-height: 1.45;
}
.contact-inquiry-context {
  background: var(--ds-grey-100);
  border-color: var(--ds-grey-300) !important;
}
/* 静态页嵌入的联系表单：无侧栏、水平居中；较宽 max-width 减少大屏两侧留白 */
body.site-public .arai-static-embed-contact-root {
  width: 100%;
  max-width: min(100%, 72rem);
  margin-left: auto;
  margin-right: auto;
}
body.site-public .arai-social-chip-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0.5rem 0;
  clear: both;
}
/* Canva 页脚社交风格：纯图标、无边框无背景、currentColor 继承、hover 微背景 */
body.site-public .arai-social-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #0d1216;
  line-height: 0;
  transition: background-color 0.1s linear, color 0.1s linear;
  text-decoration: none;
}
body.site-public .arai-social-chip:hover {
  background-color: rgba(64, 87, 109, 0.07);
  color: #0d1216;
}
body.site-public .arai-social-chip:focus-visible {
  outline: 2px solid var(--ds-link, #0369a1);
  outline-offset: 3px;
}
body.site-public .arai-social-chip__icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  color: inherit;
}
body.site-public .arai-social-chip__icon svg {
  display: block;
  width: 24px;
  height: 24px;
}
@media (prefers-reduced-motion: reduce) {
  .site-contact-fab,
  .site-wa-fab,
  body.site-public .arai-social-chip {
    transition: none;
  }
  .site-contact-fab:hover,
  .site-wa-fab:hover {
    transform: none;
  }
}
