/* 模板仍含旧 Bootstrap class 时的轻量兼容层 — 随页面改造逐步删除 */
*, *::before, *::after { box-sizing: border-box; }

.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -12px;
  margin-right: -12px;
}

.row > * {
  padding-left: 12px;
  padding-right: 12px;
  min-width: 0;
}

/* 原型 product-grid — 优先于 bootstrap row */
.product-grid,
.row.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-left: 0;
  margin-right: 0;
}

.product-grid > *,
.row.product-grid > * {
  width: auto;
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

@media (max-width: 1024px) {
  .product-grid,
  .row.product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .product-grid,
  .row.product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

.col, .col-12 { flex: 0 0 100%; max-width: 100%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }
.col-4 { flex: 0 0 33.333%; max-width: 33.333%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-auto { flex: 0 0 auto; width: auto; max-width: none; }

@media (min-width: 768px) {
  .col-md-3 { flex: 0 0 25%; max-width: 25%; }
  .col-md-4 { flex: 0 0 33.333%; max-width: 33.333%; }
  .col-md-5 { flex: 0 0 41.666%; max-width: 41.666%; }
  .col-md-6 { flex: 0 0 50%; max-width: 50%; }
  .col-md-7 { flex: 0 0 58.333%; max-width: 58.333%; }
  .col-md-8 { flex: 0 0 66.666%; max-width: 66.666%; }
  .col-md-12 { flex: 0 0 100%; max-width: 100%; }
}

@media (min-width: 992px) {
  .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
  .col-lg-4 { flex: 0 0 33.333%; max-width: 33.333%; }
  .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
  .col-lg-5 { flex: 0 0 41.666%; max-width: 41.666%; }
  .col-lg-7 { flex: 0 0 58.333%; max-width: 58.333%; }
  .col-lg { flex: 1 0 0%; width: auto; max-width: 100%; }
  .col-lg-auto { flex: 0 0 auto; width: auto; max-width: none; }
  .col-lg-8 { flex: 0 0 66.666%; max-width: 66.666%; }
  .col-lg-9 { flex: 0 0 75%; max-width: 75%; }
}

@media (min-width: 1200px) {
  .col-xl-3 { flex: 0 0 25%; max-width: 25%; }
  .col-xl-4 { flex: 0 0 33.333%; max-width: 33.333%; }
  .col-xl-6 { flex: 0 0 50%; max-width: 50%; }
  .col-xl-8 { flex: 0 0 66.666%; max-width: 66.666%; }
  .col-xl-9 { flex: 0 0 75%; max-width: 75%; }
}

.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }
.d-grid { display: grid !important; }

@media (min-width: 992px) {
  .d-lg-none { display: none !important; }
  .d-lg-block { display: block !important; }
  .d-lg-flex { display: flex !important; }
}

@media (min-width: 1200px) {
  .d-xl-flex { display: flex !important; }
}

.flex-row { flex-direction: row !important; }
.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-grow-0 { flex-grow: 0 !important; }
.flex-grow-1 { flex-grow: 1 !important; }
.align-items-center { align-items: center !important; }
.align-items-start { align-items: flex-start !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-end { justify-content: flex-end !important; }
.gap-2 { gap: 8px !important; }
.gap-3 { gap: 12px !important; }

.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }
.ms-auto { margin-left: auto !important; }
.me-1 { margin-right: 4px !important; }
.me-2 { margin-right: 8px !important; }
.me-3 { margin-right: 12px !important; }
.ms-3 { margin-left: 12px !important; }
.mt-2 { margin-top: 8px !important; }
.mt-3 { margin-top: 12px !important; }
.mt-4 { margin-top: 16px !important; }
.mt-5 { margin-top: 24px !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 4px !important; }
.mb-2 { margin-bottom: 8px !important; }
.mb-3 { margin-bottom: 12px !important; }
.mb-4 { margin-bottom: 16px !important; }
.mb-6 { margin-bottom: 24px !important; }
.mb-10 { margin-bottom: 40px !important; }
.mb-md-0 { margin-bottom: 0 !important; }
.py-5 { padding-top: 24px !important; padding-bottom: 24px !important; }
.py-6 { padding-top: 32px !important; padding-bottom: 32px !important; }
.py-12 { padding-top: 48px !important; padding-bottom: 48px !important; }
.px-0 { padding-left: 0 !important; padding-right: 0 !important; }
.px-2 { padding-left: 8px !important; padding-right: 8px !important; }
.p-3 { padding: 12px !important; }

@media (min-width: 768px) {
  .mb-md-0 { margin-bottom: 0 !important; }
}

.position-relative { position: relative !important; }
.position-static { position: static !important; }
.position-fixed { position: fixed !important; }
.top-0 { top: 0 !important; }
.start-0 { left: 0 !important; }
.opacity-60 { opacity: 0.6 !important; }
.opacity-75 { opacity: 0.75 !important; }
.overflow-hidden { overflow: hidden !important; }
.border-0 { border: 0 !important; }
.border-top { border-top: 1px solid var(--border-color) !important; }
.border-bottom { border-bottom: 1px solid var(--border-color) !important; }
.bg-transparent { background: transparent !important; }
.bg-white { background: #fff !important; }
.bg-dark { background: var(--footer-bg, #1a1a1a) !important; }
.bg-cover { background-size: cover !important; background-position: center !important; }
.text-start { text-align: left !important; }
.text-center { text-align: center !important; }
.text-end { text-align: right !important; }
.text-white { color: #fff !important; }
.text-body { color: var(--text-primary) !important; }
.text-dark { color: var(--text-primary) !important; }
.text-muted, .text-secondary { color: var(--text-secondary) !important; }
.text-gray-300 { color: rgba(255, 255, 255, 0.55) !important; }
.text-gray-500 { color: var(--text-muted) !important; }
.text-reset { color: inherit !important; }
.text-decoration-none { text-decoration: none !important; }
.fw-bold { font-weight: 600 !important; }
.fw-bolder { font-weight: 700 !important; }
.fs-xs { font-size: 11px !important; }
.fs-sm { font-size: 13px !important; }
.fs-lg { font-size: 16px !important; }
.fs-xxs { font-size: 10px !important; }
.lh-fixed { line-height: 1.2 !important; }
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: 0.04em;
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  color: var(--text-primary);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover { border-color: var(--text-primary); }

.btn-dark, .btn-primary {
  background: var(--text-primary);
  border-color: var(--text-primary);
  color: var(--bg-primary);
}

.btn-dark:hover, .btn-primary:hover {
  opacity: 0.88;
}

.btn-outline-secondary,
.btn-outline-border,
.btn-outline-dark {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.btn-gray-500 {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.btn-link {
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  padding: 0;
}

.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-lg { padding: 14px 22px; font-size: 14px; }
.btn-close {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  cursor: pointer;
  opacity: 0.6;
}
.btn-close::before {
  content: '×';
  font-size: 24px;
  line-height: 1;
}

.form-control,
.form-control-sm,
.form-control-lg,
.form-control-gray-700 {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 0;
}

.form-control-lg { padding: 14px 16px; font-size: 15px; }
.form-control-sm { padding: 6px 10px; font-size: 12px; }
.form-control-xs { padding: 4px 8px; font-size: 12px; width: 100%; }

.form-select {
  display: block;
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 0;
}

.py-5 { padding-top: 24px !important; padding-bottom: 24px !important; }
.py-7 { padding-top: 32px !important; padding-bottom: 32px !important; }
.pt-4 { padding-top: 16px !important; }
.pt-6 { padding-top: 32px !important; }
.pt-8 { padding-top: 40px !important; }
.mb-7 { margin-bottom: 32px !important; }
.mt-7 { margin-top: 32px !important; }
.ms-6 { margin-left: 24px !important; }
.m-3 { margin: 12px !important; }
.text-center { text-align: center !important; }

.col-md { flex: 1 0 0%; width: auto; max-width: none; }
.col-md-auto { flex: 0 0 auto; width: auto; max-width: none; }

.form-check { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 8px; }
.form-check-input { margin-top: 4px; }
.form-check-label { font-size: 13px; }
.form-group { margin-bottom: 16px; }
.form-control-gray-700 {
  background: var(--footer-input-bg, rgba(255, 255, 255, 0.1));
  border-color: var(--footer-input-border, rgba(255, 255, 255, 0.28));
  color: var(--footer-input-text, #fff);
}

.input-group { display: flex; width: 100%; }
.input-group-merge .form-control { border-right: 0; }
.input-group-append, .input-group-prepend { display: flex; }
.input-group-append .btn { border-left: 0; }

.list-group { display: flex; flex-direction: column; }
.list-group-flush-x .list-group-item-action { border-left: 0; border-right: 0; }
.list-group-item-action {
  display: block;
  padding: 10px 12px;
  color: var(--text-secondary);
  text-decoration: none;
}
.list-group-item-action:hover,
.list-group-item-action.active {
  color: var(--text-primary);
  background: var(--accent-muted);
}

.alert {
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-primary);
}
.alert-warning {
  border-color: rgba(200, 140, 0, 0.35);
  background: rgba(200, 140, 0, 0.08);
}

.spinner-border {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: chhes-spin 0.75s linear infinite;
}
.spinner-border-sm { width: 0.875rem; height: 0.875rem; }
@keyframes chhes-spin { to { transform: rotate(360deg); } }

/* Modal（兼容旧模板 + #loading） */
.chhes-ui-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1040;
}

body.chhes-modal-open { overflow: hidden; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 1050;
  display: none;
  overflow-x: hidden;
  overflow-y: auto;
  outline: 0;
}

.modal.show { display: block; }

.modal-dialog {
  position: relative;
  width: auto;
  margin: 1.5rem auto;
  max-width: 560px;
  pointer-events: none;
}

.modal-dialog-centered {
  display: flex;
  align-items: center;
  min-height: calc(100% - 3rem);
}

.modal-dialog-centered .modal-content { pointer-events: auto; width: 100%; }
.modal-xl { max-width: 1140px; }
.modal-lg { max-width: 800px; }

.modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  pointer-events: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lift);
}

.modal-header, .modal-body, .modal-footer { padding: 16px 20px; }
.modal-header { border-bottom: 1px solid var(--border-color); display: flex; align-items: center; justify-content: space-between; }
.modal-footer { border-top: 1px solid var(--border-color); display: flex; gap: 8px; justify-content: flex-end; }

/* Offcanvas（遗留） */
.offcanvas {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1060;
  display: flex;
  flex-direction: column;
  width: min(420px, 100%);
  height: 100%;
  background: var(--bg-primary);
  border-left: 1px solid var(--border-color);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
  visibility: hidden;
  transform: translateX(100%);
  transition: transform 0.3s ease, visibility 0.3s ease;
}

.offcanvas.show {
  visibility: visible;
  transform: translateX(0);
}

.offcanvas-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
}

.offcanvas-body { flex: 1; overflow-y: auto; padding: 20px; }

/* Collapse */
.collapse:not(.show) { display: none; }
.collapsing { height: 0; overflow: hidden; transition: height 0.3s ease; }
.collapse.show { display: block; }

.dropdown-menu {
  position: absolute;
  z-index: 1000;
  display: none;
  min-width: 10rem;
  padding: 8px 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-soft);
}
.dropdown-menu.show { display: block; }
.dropdown-item {
  display: block;
  width: 100%;
  padding: 8px 16px;
  color: var(--text-secondary);
  text-decoration: none;
  background: transparent;
  border: 0;
  text-align: left;
}
.dropdown-item:hover { background: var(--accent-muted); color: var(--text-primary); }
.dropdown-divider { height: 1px; margin: 6px 0; background: var(--border-color); }

.border-gray-700 { border-color: rgba(255, 255, 255, 0.12) !important; }

/* 扩展：用户中心 / 结算 / 商品详情遗留 Bootstrap 类 */
.col-2 { flex: 0 0 16.666%; max-width: 16.666%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }
.col-9 { flex: 0 0 75%; max-width: 75%; }
.col-lg-7 { flex: 0 0 58.333%; max-width: 58.333%; }
.offset-lg-1 { margin-left: 8.333%; }
.g-3 > * { padding: 6px; }
.gx-5 { --chhes-gutter-x: 24px; margin-left: calc(var(--chhes-gutter-x) * -0.5); margin-right: calc(var(--chhes-gutter-x) * -0.5); }
.gx-5 > * { padding-left: calc(var(--chhes-gutter-x) * 0.5); padding-right: calc(var(--chhes-gutter-x) * 0.5); }
.fs-2 { font-size: clamp(24px, 3vw, 32px) !important; }
.fs-3 { font-size: clamp(20px, 2.5vw, 28px) !important; }
.fs-4 { font-size: clamp(18px, 2vw, 22px) !important; }
.fs-base { font-size: 14px !important; }
.fs-xxxs { font-size: 10px !important; }
.heading-xxs { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.text-gray-600 { color: var(--text-secondary) !important; }
.text-success { color: #2d6a4f !important; }
.text-danger { color: #b42318 !important; }
.text-light { color: rgba(255, 255, 255, 0.85) !important; }
.flex-1 { flex: 1 1 0% !important; }
.translate-middle { transform: translate(-50%, -50%) !important; }
.border-left { border-left: 1px solid var(--border-color) !important; }
.px-5 { padding-left: 24px !important; padding-right: 24px !important; }
.pt-11 { padding-top: 56px !important; }
.pb-9 { padding-bottom: 40px !important; }
.pb-12 { padding-bottom: 48px !important; }
.py-9 { padding-top: 40px !important; padding-bottom: 40px !important; }
.mt-10 { margin-top: 48px !important; }
.mt-1 { margin-top: 4px !important; }
.py-2 { padding-top: 8px !important; padding-bottom: 8px !important; }
.bg-light { background: var(--bg-secondary, #f7f5f0) !important; }
.bg-primary { background: var(--text-primary) !important; color: var(--bg-primary) !important; }
.bg-danger { background: #b42318 !important; color: #fff !important; }
.bg-white { background: #fff !important; }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
}
.card-body { padding: 16px; }
.card-img-top { display: block; width: 100%; height: auto; }
.card-img, .card-img-hover { display: block; position: relative; overflow: hidden; }
.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 4px 8px;
  font-size: 10px;
  letter-spacing: 0.08em;
}
.badge {
  display: inline-block;
  padding: 4px 8px;
  font-size: 11px;
  line-height: 1.2;
  border-radius: 0;
}
.btn-secondary {
  background: var(--bg-secondary);
  border-color: var(--border-color);
  color: var(--text-primary);
}
.btn-block { display: flex; width: 100%; }
.btn-xs, .btn-xxs { padding: 4px 8px; font-size: 11px; }
.btn-light { background: #fff; border-color: var(--border-color); color: var(--text-primary); }
.nav-link {
  display: inline-block;
  padding: 8px 12px;
  color: var(--text-secondary);
  text-decoration: none;
}
.nav-link:hover, .nav-link.active { color: var(--text-primary); }
.nav-tabs { display: flex; flex-wrap: wrap; gap: 8px; border-bottom: 1px solid var(--border-color); }
.nav-vertical { display: flex; flex-direction: column; gap: 4px; }
.list-styled { list-style: none; padding: 0; margin: 0; }
.list-styled li { margin-bottom: 8px; }
.list-styled a { color: var(--text-secondary); text-decoration: none; }
.list-styled a:hover { color: var(--text-primary); }
.pagination { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 24px 0 0; }
.page-item .page-link, .pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  text-decoration: none;
}
.page-item.active .page-link, .pagination .active a {
  background: var(--text-primary);
  border-color: var(--text-primary);
  color: var(--bg-primary);
}
.justify-content-md-center { justify-content: center !important; }
@media (min-width: 768px) {
  .justify-content-md-center { justify-content: center !important; }
}
.center { top: 50%; left: 50%; transform: translate(-50%, -50%); }
.avatar { display: inline-flex; align-items: center; justify-content: center; }
.avatar-xxl { width: 72px; height: 72px; }
.avatar-title { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.rounded-circle { border-radius: 50%; }
.opacity-70 { opacity: 0.7 !important; }
.opacity-100 { opacity: 1 !important; }
.position-absolute { position: absolute !important; }
.lh-base { line-height: 1.5 !important; }
.lh-sm { line-height: 1.35 !important; }
.fw-light { font-weight: 300 !important; }
.fw-normal { font-weight: 400 !important; }
.fw-bolder { font-weight: 700 !important; }
.text-uppercase { text-transform: uppercase !important; }
.text-decoration-underline { text-decoration: underline !important; }
.link-underline { text-decoration: underline; text-underline-offset: 3px; }
.form-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.form-group-overflow { max-height: 240px; overflow-y: auto; }
.tab-pane.fade { opacity: 1; }
.fade { transition: opacity 0.2s ease; }

/* Batch 2 — user / flow / tables */
.col-2 { flex: 0 0 16.666%; max-width: 16.666%; }
.col-9 { flex: 0 0 75%; max-width: 75%; }
.col-sm-6 { flex: 0 0 50%; max-width: 50%; }
.col-lg-7 { flex: 0 0 58.333%; max-width: 58.333%; }
.col-lg-12 { flex: 0 0 100%; max-width: 100%; }
.col-lg-auto { flex: 0 0 auto; width: auto; max-width: none; }
.col-xl-2 { flex: 0 0 16.666%; max-width: 16.666%; }
.col-xl-10 { flex: 0 0 83.333%; max-width: 83.333%; }
.offset-lg-1 { margin-left: 8.333%; }
.mb-lg-0 { margin-bottom: 0 !important; }
.g-3 > * { padding: 6px; }
.heading-xxxs { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; }
.line-height-fixed { line-height: 1.2 !important; }
.text-primary { color: var(--text-primary) !important; }
.text-gray-350 { color: #b0b0b0 !important; }
.text-gray-400 { color: #9a9a9a !important; }
.text-gray-600 { color: var(--text-secondary) !important; }
.text-decoration-line-through { text-decoration: line-through !important; }
.fs--1 { font-size: 12px !important; }
.fs--2 { font-size: 11px !important; }
.fs-s { font-size: 13px !important; }
.fs-6 { font-size: 15px !important; }
.img-fluid { max-width: 100%; height: auto; }
.rounded { border-radius: 4px; }
.ratio { position: relative; width: 100%; }
.ratio-1x1::before { content: ''; display: block; padding-top: 100%; }
.bg-dark-10 { background: rgba(17, 17, 17, 0.04) !important; }
.shadow { box-shadow: var(--shadow-soft, 0 8px 24px rgba(0,0,0,0.08)) !important; }
.shadow-hover:hover { box-shadow: var(--shadow-lift, 0 12px 32px rgba(0,0,0,0.12)) !important; }
.lift { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.lift:hover { transform: translateY(-4px); }
.card-header, .card-footer { padding: 12px 16px; border-color: var(--border-color); }
.card-header { border-bottom: 1px solid var(--border-color); }
.card-footer { border-top: 1px solid var(--border-color); }
.card-xl .card-body { padding: 24px; }
.card-lg .card-body { padding: 20px; }
.card-sm .card-body { padding: 12px; }
.card-actions {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 12px;
  background: linear-gradient(transparent, rgba(0,0,0,0.45));
  opacity: 0;
  transition: opacity 0.25s ease;
}
.card-img:hover .card-actions { opacity: 1; }
.card-action { display: inline-flex; }
.btn-xs { padding: 4px 10px; font-size: 11px; }
.btn-white-primary { background: #fff; color: #111; border-color: #fff; }
.form-control-xxs, .form-control-xs { padding: 6px 8px; font-size: 12px; }
.form-select-xs { padding: 6px 8px; font-size: 12px; }
.list-group-item {
  display: block;
  padding: 10px 12px;
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 1px solid var(--border-color);
}
.list-group-lg .list-group-item { padding: 14px 16px; }
.list-group-flush-y .list-group-item:first-child { border-top: 0; }
.list-group-flush-y .list-group-item:last-child { border-bottom: 0; }
.list-group-strong .list-group-item { font-weight: 500; }
.table { width: 100%; border-collapse: collapse; font-size: 12px; }
.table th, .table td { padding: 10px 12px; border-bottom: 1px solid var(--border-color); text-align: left; vertical-align: top; }
.table thead td, .table thead th { font-weight: 600; color: var(--text-primary); background: var(--bg-secondary, #f7f5f0); }
.table-hover tbody tr:hover { background: var(--accent-muted, rgba(0,0,0,0.03)); }
.dropdown-toggle::after {
  content: '';
  display: inline-block;
  margin-left: 6px;
  border: 4px solid transparent;
  border-top-color: currentColor;
  vertical-align: middle;
}
.nav-overflow { display: flex; flex-wrap: wrap; gap: 8px; }
.px-8 { padding-left: 32px !important; padding-right: 32px !important; }
.py-7 { padding-top: 32px !important; padding-bottom: 32px !important; }
.p-2 { padding: 8px !important; }
.border { border: 1px solid var(--border-color) !important; }

.col { flex: 1 0 0%; width: auto; max-width: 100%; }
.form-check-inline { display: inline-flex; align-items: center; margin-right: 8px; }
.form-check-img { display: inline-block; vertical-align: top; }
.btn-group {
  display: inline-flex;
  flex-wrap: wrap;
  vertical-align: middle;
}

.btn-group > .btn {
  position: relative;
  flex: 0 1 auto;
}

.btn-group > .btn.active {
  background: var(--text-primary);
  border-color: var(--text-primary);
  color: var(--bg-primary, #fff);
}

/* 面包屑 — 替代 Bootstrap ol.breadcrumb */
.chhes-ur-here-wrap {
  padding: 8px 0;
  border-top: 1px solid var(--border-color, rgba(17, 17, 17, 0.1));
}

.chhes-breadcrumb__trail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  font-size: 12px;
  color: var(--text-muted, #909090);
}

.chhes-breadcrumb__link {
  color: inherit;
  text-decoration: none;
}

.chhes-breadcrumb__link:hover {
  color: var(--text-primary, #111);
}

.chhes-breadcrumb__current {
  color: var(--text-secondary, #5a5a5a);
}

.chhes-breadcrumb__sep {
  color: var(--text-muted, #909090);
  user-select: none;
}

ol.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 4px 8px;
}

ol.breadcrumb .breadcrumb-item {
  display: inline-flex;
  align-items: center;
}

ol.breadcrumb .breadcrumb-item::marker {
  content: '';
}

ol.breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  content: '/';
  padding-right: 8px;
  color: var(--text-muted, #909090);
}

.rating {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
}

.rating-item {
  display: inline-block;
  width: auto;
  flex: 0 0 auto;
}

.btn-circle {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.card-badge-end { right: 12px; left: auto; }
.card-badge-start { left: 12px; right: auto; }
.ms-1 { margin-left: 4px !important; }
.ml-3 { margin-left: 12px !important; }
.align-baseline { vertical-align: baseline !important; }
.fs-5 { font-size: 18px !important; }
.fs-h5 { font-size: 16px !important; }
.mt-10 { margin-top: 48px !important; }
.mt-4 { margin-top: 16px !important; }
.pt-11 { padding-top: 56px !important; }
.pb-9 { padding-bottom: 40px !important; }
.py-9 { padding-top: 40px !important; padding-bottom: 40px !important; }
.justify-content-md-center { justify-content: center !important; }
@media (min-width: 768px) {
  .justify-content-start { justify-content: flex-start !important; }
  .justify-content-md-center { justify-content: center !important; }
}
