 /* 基本样式 — 不污染站点导航的 header/nav */
 body {
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
}

.container {
    padding-top: var(--site-nav-height, 50px);
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 30px;
}

/* 商品详情部分 */
.product-detail {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.product-images {
    flex: 1;
}

/* Swiper 轮播图样式 */
.product-images .swiper {
    position: relative;
    width: 100%;
    max-width: 500px;
    border: 1px solid #ddd;
}

.product-images .swiper .swiper-slide {
    text-align: center;
}

.product-images .swiper .swiper-slide img {
    width: auto !important;
    height: 500px !important;
    /* border: 1px solid #ddd; */
    border-radius: 5px;
}

.product-images .swiper .swiper-pagination {
    position: relative;
    margin-top: 10px;
}

.product-images .swiper .swiper-button-next,
.product-images .swiper .swiper-button-prev {
    display: none;
}
.main-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.thumbnail-images img {
    width: 80px;
    height: 80px;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
}

.product-info {
    flex: 1;
}

.product-info h2 {
    margin-top: 0;
}

.price {
    font-size: 24px;
    color: #2e91f6;
    font-weight: bold;
    margin: 0 0 10px;
}

.price.price--consult {
    display: inline-block;
    cursor: pointer;
}

.price.price--consult:hover,
.price.price--consult:focus-visible {
    color: #1a73d9;
    outline: none;
}

.deliver-days {
    display: inline-block;
    padding: 5px 12px;
    font-size: 14px;
    font-weight: 600;
    color: #e65100;
    background: #fff3e0;
    border: 1px solid #ffcc80;
    border-radius: 6px;
    line-height: 1.4;
}

.deliver-days-control {
    margin: 2px 0 0;
    align-items: center;
}

.deliver-days-control label {
    font-weight: 500;
    color: #333;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 0 12px;
    --option-label-width: 104px;
}

.options label {
    display: inline-block;
    margin: 0;
}

.model-control {
    display: flex;
    align-items: center;
    margin: 0;
}

.model-control label {
    flex: 0 0 var(--option-label-width);
    width: var(--option-label-width);
    padding-right: 12px;
    box-sizing: border-box;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    text-align: left;
}

.model-input {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    padding: 6px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    box-sizing: border-box;
    max-width: 100%;
}

.options select,
.options input:not(.quantity-input) {
    width: 100%;
    padding: 8px;
    /* margin-bottom: 10px; */
    border: 1px solid #ddd;
    border-radius: 5px;
}

.actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.add-to-cart,
.buy-now {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 40px;
    padding: 9px 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    user-select: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.add-to-cart i,
.buy-now i {
    font-size: 14px;
}

.add-to-cart {
    background: #fff;
    color: #28a745;
    border: 1.5px solid #28a745;
    box-shadow: 0 1px 4px rgba(40, 167, 69, 0.1);
}

.add-to-cart:hover {
    background: #f0faf3;
    border-color: #218838;
    color: #218838;
    box-shadow: 0 4px 14px rgba(40, 167, 69, 0.18);
}

.add-to-cart:active {
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.14);
}

.add-to-cart.is-disabled,
.buy-now.is-disabled,
.add-to-cart:disabled,
.buy-now:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
    pointer-events: none;
}

.add-to-cart.is-disabled:hover,
.buy-now.is-disabled:hover,
.add-to-cart:disabled:hover,
.buy-now:disabled:hover {
    background: inherit;
    border-color: inherit;
    color: inherit;
    box-shadow: none;
}

.buy-now {
    background: linear-gradient(135deg, #007bff 0%, #0056d2 100%);
    color: #fff;
    border: 1.5px solid transparent;
    box-shadow: 0 2px 10px rgba(0, 123, 255, 0.22);
}

.buy-now:hover {
    background: linear-gradient(135deg, #0069d9 0%, #004bb5 100%);
    box-shadow: 0 6px 18px rgba(0, 123, 255, 0.34);
}

.buy-now:active {
    box-shadow: 0 3px 10px rgba(0, 123, 255, 0.24);
}

.quantity-control {
    display: flex;
    align-items: center;
    margin: 0;
}

.quantity-control label {
    flex: 0 0 var(--option-label-width);
    width: var(--option-label-width);
    padding-right: 12px;
    box-sizing: border-box;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    text-align: left;
}

.quantity-stepper {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
}

.quantity-stepper:focus-within {
    border-color: #a0c1e7;
}

.quantity-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    min-width: 32px;
    height: 32px;
    padding: 0;
    font-size: 16px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    border: none;
    background-color: #f5f5f5;
    user-select: none;
}

.quantity-stepper .quantity-btn:first-child {
    border-right: 1px solid #e8e8e8;
}

.quantity-input {
    width: 48px;
    min-width: 48px;
    height: 32px;
    padding: 0;
    margin: 0;
    font-size: 16px;
    text-align: center;
    border: none;
    border-right: 1px solid #e8e8e8;
    border-radius: 0;
    background-color: #fff;
    box-sizing: border-box;
    -moz-appearance: textfield;
    appearance: textfield;
}

.quantity-btn:hover {
    background-color: #ebebeb;
}

.quantity-input:focus {
    outline: none;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}




/* 规格 */
.dimension-container {
    margin: 0;
    /* max-height: 300px; */
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 滚动条整体 */
.dimension-container::-webkit-scrollbar {
  width: 4px;
  height: 8px;
  background-color: #e6e9eb;
}

#productName{
    font-size: 18px;
    font-weight: 700;
    margin: 0px 0px 0px 0px;
    line-height: 1.4;
}
.title {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 24px;
}
.dimension-section {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dimension-row {
    display: flex;
    margin: 0;
    /* align-items: center; */
}

.dimension-label {
    flex: 0 0 var(--option-label-width);
    width: var(--option-label-width);
    padding-right: 12px;
    box-sizing: border-box;
    font-weight: 600;
    text-align: left;
    color: #334155;
    font-size: 14px;
    line-height: 1.4;
}

.dimension-values {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
    min-width: 0;
}
.value-box {
    background-color: #fff;
    font-size: 16px;
    padding: 1px 2px;
    border-radius: 4px;
    min-width: 40px;
    text-align: center;
    border: 1px solid #c5ccd3;
    color: #1f2937;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    transition: all 0.2s;
    cursor: pointer;
}
.value-box.selected {
    color: #e72410 !important;
    border: 1px solid red !important;
    background-color: #fff !important;
}
.value-box.inactive {
    background-color: #d8dde3;
    border-color: #b8c0c9;
    color: #8b949e;
    box-shadow: none;
    cursor: pointer;
}

/* 原子规格：整段值（如 60*80*10）单行平铺，避免被当成窄数字格 */
#dimensionContainer.is-raw-spec .value-box {
    min-width: auto;
    padding: 2px 10px;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

/* 针规：选规格状态 / 尺寸区分 / 查看全部 */
.pin-gauge-status {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 4px;
    padding: 2px 0 4px;
    font-size: 13px;
}

.pin-gauge-status-main {
    color: #8c8c8c;
    font-weight: 600;
}

.pin-gauge-status-main.is-ready {
    color: #00a854;
}

.pin-gauge-status-remain {
    color: #e72410;
    font-weight: 700;
}

.pin-gauge-model-code {
    color: #1677ff;
    font-weight: 700;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
    word-break: break-all;
}

.pin-gauge-size-opt {
    appearance: none;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    min-width: 72px;
    padding: 4px 12px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.pin-gauge-size-opt.is-active {
    color: #e72410;
    border-color: #e72410;
    font-weight: 600;
}

.pin-gauge-view-all {
    appearance: none;
    border: 0;
    background: transparent;
    color: #1677ff;
    font-size: 14px;
    padding: 2px 4px;
    cursor: pointer;
    align-self: center;
    white-space: nowrap;
}

.pin-gauge-view-all:hover {
    color: #0958d9;
    text-decoration: underline;
}

.dimension-values.is-pin-gauge-compact {
    align-items: center;
}

body.pin-gauge-modal-open {
    overflow: hidden;
}

.pin-gauge-spec-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2100;
    background: rgba(0, 0, 0, 0.45);
    padding: 16px 12px;
    overflow-y: auto;
}

.pin-gauge-spec-modal.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pin-gauge-spec-dialog {
    width: min(640px, 100%);
    height: 420px;
    max-height: 420px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.pin-gauge-spec-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid #eef1f5;
}

.pin-gauge-spec-heading {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
    min-width: 0;
}

.pin-gauge-spec-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #1f2d3d;
}

.pin-gauge-spec-count {
    font-size: 12px;
    color: #e72410;
    font-weight: 600;
}

.pin-gauge-spec-close {
    border: none;
    background: transparent;
    color: #8a94a6;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}

.pin-gauge-spec-close:hover {
    color: #e72410;
}

.pin-gauge-spec-toolbar {
    padding: 8px 14px;
    border-bottom: 1px solid #f0f2f5;
}

.pin-gauge-spec-filter {
    width: 100%;
    height: 32px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    padding: 0 10px;
    font-size: 13px;
    color: #333;
    box-sizing: border-box;
    outline: none;
}

.pin-gauge-spec-filter:focus {
    border-color: #1677ff;
    box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.15);
}

.pin-gauge-spec-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 10px 14px;
}

.pin-gauge-spec-empty {
    padding: 24px 8px;
    text-align: center;
    color: #8c8c8c;
    font-size: 13px;
}

.pin-gauge-spec-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pin-gauge-spec-grid .value-box {
    cursor: pointer;
}

.pin-gauge-spec-footer {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 8px 14px 12px;
    border-top: 1px solid #eef1f5;
}

.pin-gauge-spec-btn {
    appearance: none;
    min-width: 96px;
    height: 32px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.pin-gauge-spec-btn-confirm {
    border: 1px solid #faad14;
    background: #ffd666;
    color: #333;
}

.pin-gauge-spec-btn-confirm:hover {
    background: #ffc53d;
}

.pin-gauge-spec-btn-cancel {
    border: 1px solid #d9d9d9;
    background: #fff;
    color: #333;
}

.pin-gauge-spec-btn-cancel:hover {
    border-color: #bfbfbf;
}

@media (max-width: 768px) {
    .pin-gauge-spec-dialog {
        height: 380px;
        max-height: 380px;
    }

    .pin-gauge-spec-grid {
        gap: 6px;
    }
}

/* 购物车成功弹窗 */
body.cart-success-open {
    overflow: hidden;
}

.cart-success-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
}

.cart-success-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(2px);
}

.cart-success-dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(92vw, 380px);
    background: #fff;
    border-radius: 14px;
    padding: 28px 24px 22px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
    text-align: center;
    animation: cartSuccessIn 0.28s ease-out;
}

@keyframes cartSuccessIn {
    from {
        opacity: 0;
        transform: translate(-50%, -48%) scale(0.94);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.cart-success-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}

.cart-success-close:hover {
    color: #334155;
    background: #f1f5f9;
}

.cart-success-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, #34d399 0%, #28a745 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.28);
}

.cart-success-title {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.3;
}

.cart-success-desc {
    margin: 0 0 14px;
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
}

.cart-success-summary {
    display: none;
    margin-bottom: 18px;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.cart-success-product {
    display: block;
    font-size: 14px;
    color: #334155;
    line-height: 1.4;
    word-break: break-all;
}

.cart-success-actions {
    display: flex;
    gap: 10px;
}

.cart-success-btn {
    flex: 1;
    min-height: 42px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.cart-success-btn:active {
    transform: scale(0.98);
}

.cart-success-btn-secondary {
    background: #fff;
    color: #475569;
    border: 1px solid #cbd5e1;
}

.cart-success-btn-secondary:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}

.cart-success-btn-primary {
    background: #28a745;
    color: #fff;
    border: 1px solid #28a745;
}

.cart-success-btn-primary:hover {
    background: #218838;
    border-color: #218838;
}
/* 购物车成功弹窗 */


  /* 规格参数区域：展示 / 详情图 / 表格视为同一整块 */
  .Specifications {
    margin-top: 24px;
  }
  .Specifications-panel {
    border: 1px solid #bfe3ff;
    border-radius: 24px;
    box-shadow: 0 16px 44px rgba(15, 23, 42, 0.07);
    overflow: hidden;
  }
  .Specifications_img{
    display:flex;
    flex-direction: column;
    align-items: center;
    width:90%;
    max-width: 90%;
    margin: 8px auto 20px;
    border: none;
    padding: 0;
    box-shadow: none;
    box-sizing: border-box;
    background: #fff;
  }
  .Specifications_img:empty {
    display: none;
    margin: 0;
  }
  .Specifications_img img{
    width: 100%;
    height: auto;
    display: block;
    background: #fff;
  }
  .SpecificationTable{
      padding:20px 20px ;
      box-shadow: none;
      background: #fff;
      overflow: visible;
  }
  .spec-matrix-stack {
      display: flex;
      flex-direction: column;
      gap: 20px;
      width: 100%;
  }
  .spec-matrix-block {
      display: block;
      width: 100%;
  }
  .spec-matrix-block + .spec-matrix-block {
      border-top: 1px solid #e5e7eb;
      padding-top: 16px;
  }
  .spec-matrix-block__body {
      width: 100%;
  }
  .Specifications_item{
    padding: 0;
    margin: 2px 0 0 0;
    display: flex;
  }

  /* 标准件规格矩阵：表头固定 + 左侧纵向维度固定；横向滚动条置顶 */
  .spec-matrix-scroll-wrap {
    --spec-scrollbar-size: 8px;
    --spec-scrollbar-bottom-hide: 14px;
    --spec-scrollbar-track: #eef3f7;
    --spec-scrollbar-thumb: #b7c4cf;
    --spec-scrollbar-thumb-hover: #8fa0ae;
    width: 100%;
    max-width: 100%;
  }
  .spec-matrix-hscroll,
  .spec-matrix-scroll {
    scrollbar-width: thin;
    scrollbar-color: var(--spec-scrollbar-thumb) var(--spec-scrollbar-track);
  }
  .spec-matrix-hscroll {
    height: var(--spec-scrollbar-size);
    margin-bottom: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    visibility: hidden;
  }
  .spec-matrix-hscroll.is-scrollable {
    visibility: visible;
  }
  .spec-matrix-hscroll-spacer {
    height: 1px;
    pointer-events: none;
  }
  .spec-matrix-hscroll::-webkit-scrollbar,
  .spec-matrix-scroll::-webkit-scrollbar {
    width: var(--spec-scrollbar-size);
    height: var(--spec-scrollbar-size);
  }
  .spec-matrix-scroll::-webkit-scrollbar {
    height: var(--spec-scrollbar-bottom-hide);
  }
  .spec-matrix-hscroll::-webkit-scrollbar-track,
  .spec-matrix-scroll::-webkit-scrollbar-track {
    background: var(--spec-scrollbar-track);
    border-radius: 999px;
  }
  .spec-matrix-hscroll::-webkit-scrollbar-thumb,
  .spec-matrix-scroll::-webkit-scrollbar-thumb {
    background: var(--spec-scrollbar-thumb);
    border-radius: 999px;
    border: 2px solid var(--spec-scrollbar-track);
    background-clip: padding-box;
  }
  .spec-matrix-hscroll::-webkit-scrollbar-thumb:hover,
  .spec-matrix-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--spec-scrollbar-thumb-hover);
  }
  /* 裁剪底部横向滚动条，只露出顶部条 + 右侧纵向条 */
  .spec-matrix-scroll-clip {
    max-height: min(70vh, 640px);
    overflow: hidden;
  }
  .spec-matrix-scroll {
    max-height: calc(min(70vh, 640px) + var(--spec-scrollbar-bottom-hide));
    margin-bottom: calc(var(--spec-scrollbar-bottom-hide) * -1);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    cursor: grab;
    user-select: none;
    touch-action: pan-x pan-y;
  }
  .spec-matrix-scroll::-webkit-scrollbar-corner {
    background: transparent;
  }
  .spec-matrix-scroll.is-dragging {
    cursor: grabbing;
    touch-action: none;
  }
  .spec-matrix-scroll.is-dragging * {
    cursor: grabbing;
    pointer-events: none;
  }
  .spec-matrix-table {
    --spec-matrix-border: #7c8790;
    width: max-content;
    min-width: 100%;
    table-layout: auto;
    border-collapse: separate;
    border-spacing: 0;
    border-top: 1px solid var(--spec-matrix-border);
    border-left: 1px solid var(--spec-matrix-border);
    /* 底部留白需大于裁剪高度，滚到底时才能看见 */
    margin-bottom: calc(16px + var(--spec-scrollbar-bottom-hide));
    box-shadow: none;
  }
  .spec-matrix-table th,
  .spec-matrix-table td {
    text-align: center;
    height: 30px;
    padding: 4px 10px;
    white-space: nowrap;
    font-size: 15px;
    font-weight: 600;
    font-family: ui-rounded;
    min-width: 64px;
    border: 0;
    border-right: 1px solid var(--spec-matrix-border);
    border-bottom: 1px solid var(--spec-matrix-border);
    box-sizing: border-box;
  }
  .spec-matrix-table th.spec-matrix-dim-head,
  .spec-matrix-table th.spec-matrix-col-group,
  .spec-matrix-table th.spec-matrix-col-head {
    background-color: #d1ecff;
    color: #111;
    font-weight: 700;
  }
  .spec-matrix-col-group {
    letter-spacing: 0.02em;
  }
  .spec-matrix-dim-cell {
    background-color: #fff;
    color: #333;
    min-width: 64px;
  }
  .spec-matrix-table .is-sticky-dim,
  .spec-matrix-table .is-sticky-head {
    position: sticky;
  }
  .spec-matrix-table .is-sticky-dim {
    z-index: 3;
    background-color: #fff;
    box-shadow: 1px 0 0 var(--spec-matrix-border);
  }
  .spec-matrix-table .is-sticky-head {
    z-index: 4;
    background-color: #d1ecff;
    box-shadow: 0 1px 0 var(--spec-matrix-border);
  }
  .spec-matrix-table .is-sticky-dim.is-sticky-head {
    z-index: 6;
    background-color: #d1ecff;
    box-shadow: 1px 0 0 var(--spec-matrix-border), 0 1px 0 var(--spec-matrix-border);
  }
  .spec-matrix-dot {
    display: inline-block;
    font-size: 14px;
    line-height: 1;
  }
  .spec-matrix-dot.is-standard {
    color: #111;
  }
  .spec-matrix-footnote {
    margin-top: 12px;
    color: #333;
    font-size: 14px;
    line-height: 1.7;
  }
  .spec-matrix-footnote__title {
    font-weight: 600;
    margin-bottom: 2px;
  }
  .spec-matrix-footnote p {
    margin: 0;
  }
  #standardPartSpecTable .detail-section-empty {
    margin: 0;
    color: #999;
    font-size: 14px;
  }
  #standardPartSpecTable .spec-table-error {
    color: #d9534f;
  }

  /* ===== 商品信息模块：融入整块面板 ===== */
  .product-showcase {
    margin-top: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: hidden;
    color: #1d1d1f;
    -webkit-font-smoothing: antialiased;
  }

  /* 顶部：标题 + 亮点标签 */
  .product-showcase-header {
    padding: 46px 48px 0;
  }
  .product-showcase-title {
    margin: 0;
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #1d1d1f;
    line-height: 1.15;
    word-break: break-word;
  }
  .product-showcase-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
  }
  .product-showcase-tag {
    display: inline-flex;
    align-items: center;
    height: 30px;
    padding: 0 15px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid #e2e6ee;
    color: #5b6472;
    font-size: 13px;
    font-weight: 500;
    backdrop-filter: blur(4px);
  }

  /* 商品描述 */
  .product-describe {
    padding: 22px 48px 0;
  }
  .product-describe__block + .product-describe__block {
    margin-top: 20px;
  }
  .product-describe__heading {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 700;
    color: #1d1d1f;
    line-height: 1.3;
  }
  .product-describe__text {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    color: #515154;
    line-height: 1.8;
    text-align: justify;
    word-break: break-word;
  }

  .product-describe--rich {
    font-size: 14px;
    font-weight: 400;
    color: #515154;
    line-height: 1.8;
    word-break: break-word;
  }
  .product-describe--rich h2,
  .product-describe--rich h3,
  .product-describe--rich h4 {
    margin: 0 0 10px;
    color: #1d1d1f;
    font-weight: 700;
    line-height: 1.3;
  }
  .product-describe--rich h2 { font-size: 18px; }
  .product-describe--rich h3 { font-size: 16px; }
  .product-describe--rich h4 { font-size: 15px; }
  .product-describe--rich p {
    margin: 0 0 12px;
  }
  .product-describe--rich p:last-child {
    margin-bottom: 0;
  }
  .product-describe--rich ul,
  .product-describe--rich ol {
    margin: 0 0 12px;
    padding-left: 1.4em;
  }
  .product-describe--rich li + li {
    margin-top: 4px;
  }
  .product-describe--rich blockquote {
    margin: 0 0 12px;
    padding: 10px 14px;
    border-left: 3px solid #c5c9d0;
    color: #5b6472;
    background: #f7f8fa;
  }
  .product-describe--rich pre {
    margin: 0 0 12px;
    padding: 12px;
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.05);
    font-family: Consolas, "Courier New", monospace;
    white-space: pre-wrap;
    word-break: break-word;
  }
  .product-describe--rich hr {
    margin: 16px 0;
    border: 0;
    border-top: 1px solid #e5e7eb;
  }
  .product-describe--rich a {
    color: #2563eb;
    text-decoration: underline;
  }
  .product-describe--rich sub,
  .product-describe--rich sup {
    font-size: 0.75em;
  }
  .product-describe--rich table {
    width: 100%;
    margin: 0 0 12px;
    border-collapse: collapse;
  }
  .product-describe--rich th,
  .product-describe--rich td {
    border: 1px solid #e5e7eb;
    padding: 8px 10px;
    text-align: left;
  }
  .product-describe--rich img {
    max-width: 100%;
    height: auto;
  }

  /* 主体：产品舞台 + 悬浮参数卡 */
  .product-showcase-main {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 32px;
    align-items: center;
    padding: 26px 48px 40px;
  }
  .product-showcase-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
  }
  .product-showcase-stage-img {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-height: 380px;
  }
  .product-showcase-stage-img img {
    max-width: 100%;
    max-height: 360px;
    object-fit: contain;
    filter: drop-shadow(0 22px 30px rgba(15, 23, 42, 0.16));
  }

  /* 悬浮参数卡 */
  .product-showcase-params-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #eef1f6;
    border-radius: 22px;
    padding: 30px 28px;
    box-shadow: 0 24px 56px rgba(15, 23, 42, 0.10);
    backdrop-filter: blur(8px);
  }
  .product-showcase-params-title {
    margin: 0 0 8px;
    font-size: 19px;
    font-weight: 700;
    color: #1d1d1f;
    line-height: 1.2;
  }
  .product-showcase-param-list {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .product-showcase-param-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f2f6;
  }
  .product-showcase-param-item:last-child {
    border-bottom: none;
  }
  .product-showcase-param-icon {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.28);
  }
    .product-showcase-param-name {
    flex: 1;
    color: #86868b;
    font-size: 14px;
  }
  .product-showcase-param-value {
    flex: 0 0 auto;
    text-align: right;
    color: #1d1d1f;
    font-size: 14px;
    font-weight: 600;
    word-break: break-word;
  }
/* 规格参数 */

/* ====== 商品详情描点导航 ====== */
.detail-anchor-nav {
  margin-top: 30px;
  margin-bottom: 10px;
  border-bottom: 1px solid #eee;
  padding-bottom: 6px;
}

.detail-anchor-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 12px;
}

.detail-anchor-nav li {
  margin: 0;
  padding: 0;
}

.detail-anchor-item {
  border: none;
  background: transparent;
  padding: 6px 10px;
  font-size: 14px;
  color: #666;
  cursor: pointer;
  position: relative;
  text-decoration: none;
}

.detail-anchor-item.active {
  color: #2e91f6;
  font-weight: 600;
}

.detail-anchor-item.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: #2e91f6;
}

.detail-section {
  margin-top: 20px;
  margin-bottom: 10px;
  background: #fff;
}

.detail-section-title {
  font-size: 18px;
  margin-bottom: 10px;
}

.detail-section-body {
  font-size: 14px;
  color: #666;
}

.detail-section-empty {
  font-size: 14px;
  color: #999;
}

/* 商品评价样式 */
.review-section .detail-section-body {
  padding: 10px 0;
}

.review-toggle-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 0 8px;
  margin-top: 4px;
}

.review-view-all-btn {
  appearance: none;
  border: 1px solid rgba(39, 123, 230, 0.2);
  background: linear-gradient(135deg, #2e91f6 0%, #53a5ff 100%);
  color: #fff;
  border-radius: 999px;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(46, 145, 246, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 180px;
  justify-content: center;
}

.review-view-all-btn:hover {
  box-shadow: 0 12px 24px rgba(46, 145, 246, 0.34);
  transform: translateY(-2px);
  filter: brightness(1.03);
}

.review-view-all-btn:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(46, 145, 246, 0.25);
}

.review-view-all-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(46, 145, 246, 0.25), 0 8px 18px rgba(46, 145, 246, 0.28);
}

.review-view-all-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.review-toggle-hint {
  font-size: 12px;
  color: #7f8c9b;
  letter-spacing: 0.2px;
}

/* 全部评价弹层（自定义，不依赖 bootstrap） */
.all-reviews-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.45);
  padding: 24px 12px;
  overflow-y: auto;
}

.all-reviews-modal.is-open {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.all-reviews-modal-dialog {
  width: min(900px, 100%);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  margin-top: 30px;
}

.all-reviews-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #eef1f5;
}

.all-reviews-modal-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #1f2d3d;
}

.all-reviews-close-btn {
  border: none;
  background: transparent;
  color: #8a94a6;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}

.all-reviews-close-btn:hover {
  color: #2e91f6;
}

.all-reviews-modal-body {
  max-height: calc(100vh - 180px);
  overflow-y: auto;
  padding: 14px 16px 16px;
}

.review-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border-radius: 8px;
  border: 1px solid #f0f0f0;
  padding: 12px 14px;
  margin-bottom: 10px;
  background: #fafafa;
  width: 50%;
}

/* 左侧头像，评论内容全部在右侧 */
.review-avatar {
  flex-shrink: 0;
}

.review-user-initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  color: #1565c0;
  font-size: 18px;
  font-weight: 700;
  border: 2px solid #90caf9;
  box-shadow: 0 2px 8px rgba(136, 186, 236, 0.25);
}

.review-user-initial::before {
  content: attr(data-initial);
}

.review-body {
  flex: 1;
  min-width: 0;
}

.review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.review-user {
  font-weight: 600;
  font-size: 15px;
  color: #333;
}

.review-time {
  font-size: 12px;
  color: #999;
}

.review-rating {
  margin-bottom: 4px;
}

.review-star {
  font-size: 13px;
  color: #ddd;
  margin-right: 1px;
}

.review-star.on {
  color: #ffb400;
}

.review-content {
  font-size: 16px;
  color: #000;
  line-height: 1.5;
  white-space: pre-wrap;
}

.review-meta-line {
  font-size: 12px;
  color: #999;
  margin-bottom: 4px;
}

/* 评价图片：有图则显示，无则不显示 */
.review-images {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.review-image-link {
  display: block;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #eee;
}

.review-image-thumb {
  display: block;
  width: 120px;
  height: 120px;
  /* object-fit: cover; */
}

.review-image-link:hover {
  border-color: #409eff;
}

/* 手机端评价布局适配 */
@media (max-width: 768px) {
  .review-section .detail-section-body {
    padding: 6px 0;
    overflow-x: hidden; /* 避免出现底部横向滚动条 */
  }

  .review-item {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    gap: 10px;
  }

  .review-user-initial {
    width: 30px;
    height: 30px;
    font-size: 13px;
    border-width: 1px;
  }

  .review-user {
    font-size: 14px;
  }

  .review-content {
    font-size: 14px;
  }

  .review-image-thumb {
    width: 72px;
    height: 72px;
  }

  .review-toggle-container {
    gap: 6px;
    padding-top: 10px;
  }

  .review-view-all-btn {
    min-width: 160px;
    font-size: 13px;
    padding: 10px 14px;
  }

  .all-reviews-modal {
    padding: 12px 8px;
  }

  .all-reviews-modal-dialog {
    margin-top: 10px;
    border-radius: 10px;
  }

  .all-reviews-modal-body {
    max-height: calc(100vh - 130px);
    padding: 10px;
  }
}

/* 收藏按钮（主图右上角仅图标） */
.product-images .swiper .favorite-btn {
    position: absolute;
    top: 0px;
    right: 0px;
    z-index: 20;
    padding: 0;
    border: none;
    background: transparent;
    color: #9aa3af;
    cursor: pointer;
    display: none;
    transition: transform 0.2s ease, color 0.2s ease;
}

.product-images .swiper .favorite-btn:hover,
.product-images .swiper .favorite-btn.favorited {
    color: #ff6b6b;
}

.product-images .swiper .favorite-btn.favorited:hover {
    color: #ff5252;
}

.product-images .swiper .favorite-btn i {
    font-size: 22px;
    line-height: 1;
}

.product-images .swiper .favorite-btn.clicked {
    animation: favoriteClick 0.2s ease;
}

@keyframes favoriteClick {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* ====== 手机端适配 ====== */
@media (max-width: 768px) {
    /* 容器适配 */
    .container {
        width: 100%;
        padding: 8px;
        padding-top: var(--site-nav-height, 50px);
        box-sizing: border-box;
    }

    /* 商品详情区域改为纵向布局 */
    .product-detail {
        flex-direction: column;
        gap: 15px;
        margin-top: 10px;
    }

    /* 商品图片区域 */
    .product-images {
        width: 100%;
    }

    /* Swiper 轮播图适配 */
    .product-images .swiper {
        max-width: 100%;
        width: 100%;
    }

    .product-images .swiper .swiper-slide img {
        width: 100% !important;
        height: auto !important;
        max-height: 300px;
        object-fit: contain;
    }

    /* 商品信息区域 */
    .product-info {
        width: 100%;
        padding: 0;
    }

    /* 商品名称 */
    #productName {
        font-size: 18px !important;
        line-height: 1.4;
        margin-bottom: 8px;
    }

    /* 价格 */
    .price {
        font-size: 18px;
        margin-bottom: 8px;
    }

    /* 规格容器 */
    .dimension-container {
        margin-top: 0;
        gap: 10px;
        --option-label-width: 72px;
    }

    .dimension-section {
        gap: 10px;
    }

    .dimension-row {
        flex-direction: row;
        align-items: flex-start;
        margin: 0;
    }

    .dimension-label,
    .quantity-control label,
    .model-control label {
        width: var(--option-label-width);
        flex: 0 0 var(--option-label-width);
        margin-bottom: 0;
        padding-right: 12px;
        font-size: 14px;
        font-weight: 600;
    }

    .dimension-values {
        width: auto;
        flex: 1;
        gap: 6px;
    }

    .value-box {
        padding: 2px 6px;
        font-size: 16px;
        min-width: 50px;
    }

    .quantity-btn {
        width: 36px;
        min-width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .quantity-input {
        width: 56px;
        min-width: 56px;
        height: 36px;
        font-size: 16px;
    }

    /* 模号输入 */
    .model-control {
        margin-top: 0 !important;
        flex-direction: row;
        align-items: center;
        gap: 0;
    }

    .model-control label {
        margin-bottom: 0;
        margin-right: 0;
        flex-shrink: 0;
    }

    .model-input {
        flex: 1;
        min-width: 0;
        box-sizing: border-box;
        max-width: 100%;
    }

    /* 操作按钮 */
    .actions {
        margin-top: 12px;
        width: 100%;
        display: flex;
        gap: 10px;
    }

    .add-to-cart,
    .buy-now {
        flex: 1;
        min-height: 38px;
        padding: 8px 10px;
        font-size: 13px;
        gap: 5px;
        border-radius: 6px;
    }

    .add-to-cart i,
    .buy-now i {
        font-size: 12px;
    }

    /* 规格参数区域 */
    .Specifications {
        margin-top: 20px;
    }

    /* 规格参数表格 */
    .SpecificationTable {
        padding: 15px 10px;
        overflow-x: auto;
    }

    /* 详情图片 */
    .Specifications_img {
        width: 100%;
        max-width: 100%;
        margin-top: 20px;
        padding-top: 15px;
    }

    .Specifications_img img {
        width: 100% !important;
        max-width: 100%;
        height: auto;
    }

    .detail-anchor-nav {
        margin-top: 15px;
        overflow-x: auto;
    }

    .detail-anchor-nav ul {
        gap: 8px;
        white-space: nowrap;
    }

    .detail-anchor-item {
        font-size: 13px;
        white-space: nowrap;
        display: inline-block;
    }

    .detail-section-title {
        font-size: 16px;
    }

    .Specifications-panel {
        border-radius: 12px;
    }

    /* 产品展示区：手机端单列 */
    .product-showcase-header {
        padding: 20px 16px 0;
    }

    .product-showcase-title {
        font-size: 22px;
        letter-spacing: 0;
        line-height: 1.3;
    }

    .product-showcase-tags {
        gap: 8px;
        margin-top: 14px;
    }

    .product-showcase-tag {
        height: 26px;
        padding: 0 10px;
        font-size: 12px;
    }

    .product-describe {
        padding: 14px 16px 0;
    }

    .product-describe__block + .product-describe__block {
        margin-top: 16px;
    }

    .product-describe__heading {
        font-size: 15px;
        margin-bottom: 8px;
    }

    .product-describe__text {
        font-size: 13px;
        line-height: 1.75;
        text-align: left;
    }

    .product-describe--rich {
        font-size: 13px;
        line-height: 1.75;
    }
    .product-describe--rich h2 { font-size: 16px; }
    .product-describe--rich h3 { font-size: 15px; }
    .product-describe--rich h4 { font-size: 14px; }

    .product-showcase-main {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px;
        align-items: stretch;
    }

    .product-showcase-stage {
        min-height: 0;
        padding: 8px 0;
    }

    .product-showcase-stage-img {
        max-height: 220px;
    }

    .product-showcase-stage-img img {
        max-height: 200px;
    }

    .product-showcase-params-card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 16px 14px;
        border-radius: 14px;
        box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    }

    .product-showcase-params-title {
        font-size: 16px;
        margin-bottom: 4px;
    }

    .product-showcase-param-item {
        gap: 10px;
        padding: 12px 0;
    }

    .product-showcase-param-icon {
        flex: 0 0 26px;
        width: 26px;
        height: 26px;
        font-size: 12px;
    }

    .product-showcase-param-name,
    .product-showcase-param-value {
        font-size: 13px;
    }

    /* 规格矩阵：手机端可横向滑，滚动条收窄避免占位 */
    .spec-matrix-scroll-wrap {
        --spec-scrollbar-size: 4px;
        margin: 0 -10px;
        padding: 0 10px;
        width: auto;
        max-width: none;
    }

    .spec-matrix-table th,
    .spec-matrix-table td {
        padding: 6px 8px;
        font-size: 12px;
    }

    /* 购物车成功弹窗 */
    .cart-success-dialog {
        width: min(92vw, 340px);
        padding: 24px 18px 18px;
        border-radius: 12px;
    }

    .cart-success-icon {
        width: 50px;
        height: 50px;
        font-size: 22px;
        margin-bottom: 12px;
    }

    .cart-success-title {
        font-size: 18px;
    }

    .cart-success-desc {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .cart-success-actions {
        flex-direction: column;
        gap: 8px;
    }

    .cart-success-btn {
        width: 100%;
        min-height: 44px;
        font-size: 16px;
    }
}