/* ==========================================================================
   商品详情页样式（仿 Castlery / 风格：现代极简、暖色调、深棕色 CTA）
   背景延续 Nick Scali 的浅色主题，但商品页改用更克制的浅灰底色
   ========================================================================== */

:root {
    --dt-bg: #f9f5ed;
    --dt-card: #ffffff;
    --dt-text: #1a1a1a;
    --dt-text-2: #595959;
    --dt-text-3: #8a8a8a;
    --dt-line: #e5e5e5;
    --dt-line-2: #efefef;
    --dt-accent: #a45b37;       /* Castlery 招牌暖棕色 */
    --dt-accent-dark: #8c4a2c;
    --dt-warn: #b58b00;
    --dt-success: #2e7d32;
    --dt-danger: #c0392b;
    --dt-radius: 4px;
    --dt-radius-lg: 8px;
    --dt-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    --dt-shadow-md: 0 6px 18px rgba(0, 0, 0, 0.08);
    --dt-font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* 基础 reset（仅作用于 detail 页，避免与全站冲突） */
.dt-root *,
.dt-root *::before,
.dt-root *::after {
    box-sizing: border-box;
}

.dt-root {
    font-family: var(--dt-font);
    color: var(--dt-text);
    background: var(--dt-bg);
    line-height: 1.5;
    font-size: 15px;
}

.dt-root a {
    color: inherit;
    text-decoration: none;
}

.dt-root img {
    max-width: 100%;
    display: block;
}

/* ==========================================================================
   顶部面包屑 + 标题块
   ========================================================================== */
.dt-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--dt-text-3);
    margin-bottom: 16px;
}
.dt-crumbs a {
    color: var(--dt-text-3);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color .2s;
}
.dt-crumbs a:hover { color: var(--dt-text); }
.dt-crumbs .dt-crumb-current {
    color: var(--dt-text);
    font-weight: 500;
}
.dt-crumbs .dt-sep {
    opacity: 0.5;
}

/* ==========================================================================
   主体两栏布局
   ========================================================================== */
.dt-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 8px;
}

@media (min-width: 900px) {
    .dt-main {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
        gap: 60px;
    }
}

/* ==========================================================================
   左栏：图片画廊
   ========================================================================== */
.dt-gallery {
    position: sticky;
    top: 88px;
    align-self: start;
    isolation: isolate;
}

/* ==========================================================================
   右栏：商品信息
   ========================================================================== */
.dt-info {
    min-width: 0;  /* 防止 flex 子项溢出 grid 列 */
    display: flex;
    flex-direction: column;
}

.dt-gallery-main {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #efece8;
    border-radius: var(--dt-radius);
}
.dt-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity .25s ease, transform .4s ease;
    opacity: 1;
    cursor: pointer;
}
.dt-gallery-main img.is-loading {
    opacity: 0;
}

.dt-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: var(--dt-radius);
    color: #fff;
    background: #222;
}
.dt-badge.is-clearance {
    background: #2c2c2c;
    color: #fff;
}
.dt-badge.is-sale { background: var(--dt-danger); }

.dt-tag-bar {
    position: absolute;
    top: 14px;
    left: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2;
}
.dt-wishlist-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s;
}
.dt-wishlist-btn:hover { background: #fff; }
.dt-wishlist-btn svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #1a1a1a;
    stroke-width: 1.5;
}

.dt-thumbs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
}
.dt-thumb {
    flex-shrink: 0;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: var(--dt-radius);
    overflow: hidden;
    background: #efece8;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color .2s;
    padding: 0;
}
.dt-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.dt-thumb.is-active {
    border-color: var(--dt-text);
}
.dt-thumbs .dt-view-more {
    grid-column: 1 / -1;
    justify-self: center;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    margin: 8px auto 0;
    border-radius: var(--dt-radius);
    background: transparent;
    color: var(--dt-accent);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-align: center;
    cursor: pointer;
    border: 1.5px solid var(--dt-accent);
    transition: all .2s;
}
.dt-thumbs .dt-view-more:hover {
    background: #fbeee6;
}

/* 销售横幅（仿 castlery 顶部"Great EOFY Home Sale"等） */
.dt-promo-banner {
    background: #fff;
    border: 1px solid var(--dt-line);
    border-radius: var(--dt-radius);
    padding: 12px 16px;
    margin-top: 16px;
    font-size: 13px;
    color: var(--dt-text-2);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.dt-promo-banner b {
    color: var(--dt-accent);
    font-weight: 700;
}
.dt-promo-banner svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    fill: var(--dt-accent);
}

/* ==========================================================================
   右栏：商品信息
   ========================================================================== */
.dt-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.dt-info-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.dt-title {
    font-size: clamp(22px, 4vw, 28px);
    font-weight: 600;
    color: var(--dt-text);
    line-height: 1.25;
    margin: 0;
    flex: 1;
}

.dt-rating {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--dt-text-2);
}
.dt-rating .dt-stars {
    position: relative;
    display: inline-flex;
    width: 84px;
    height: 16px;
}
.dt-rating .dt-stars-bg,
.dt-rating .dt-stars-fg {
    position: absolute;
    inset: 0;
    display: inline-flex;
}
.dt-rating .dt-stars-bg svg,
.dt-rating .dt-stars-fg svg {
    width: 16px;
    height: 16px;
}
.dt-rating .dt-stars-bg svg { fill: transparent; stroke: #c5c5c5; stroke-width: 1; }
.dt-rating .dt-stars-fg {
    overflow: hidden;
}
.dt-rating .dt-stars-fg svg { fill: var(--dt-accent); }
.dt-rating a {
    color: var(--dt-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* 价格区 */
.dt-price-block {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}
.dt-price-now {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
}
.dt-price-was {
    font-size: 16px;
    color: var(--dt-text-3);
    text-decoration: line-through;
}
.dt-price-installment {
    font-size: 13px;
    color: var(--dt-text-2);
    margin-top: 4px;
}
.dt-price-installment strong {
    color: var(--dt-text);
    font-weight: 700;
}

/* 配置维度（model / length / colour ...） */
.dt-options {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-bottom: 16px; /* 与 CTA 块保持足够间距，防止折扣徽章遮挡选项 */
}

/* Model 切换列表（Castlery 风格：顶部一行 Radio 文字按钮） */
.dt-model-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
}
.dt-model-option {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    border: 1px solid var(--dt-line);
    border-radius: var(--dt-radius);
    background: #fff;
    color: var(--dt-text);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    user-select: none;
}
.dt-model-option:hover {
    border-color: var(--dt-text-2);
}
.dt-model-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}
.dt-model-option.is-checked {
    border-color: var(--dt-text);
    background: var(--dt-text);
    color: #fff;
}

/* 每个 Model 下的属性栏目组 */
.dt-cm-panel {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* === 图集切换器（图集组按钮，详情页右栏顶部） === */
.dt-swatch-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}
.dt-swatch-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px 4px 4px;
    border: 1px solid var(--dt-line);
    border-radius: 999px;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.15s ease;
}
.dt-swatch-button:hover { border-color: var(--dt-text); }
.dt-swatch-button.is-active,
.dt-swatch-button.is-default.is-active {
    border-color: var(--dt-text);
    background: var(--dt-text);
    color: #fff;
}
.dt-swatch-button-inner {
    display: inline-block;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px var(--dt-line);
}
.dt-swatch-button-name {
    font-weight: 500;
}

.dt-option-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.dt-option-label {
    font-size: 14px;
    color: var(--dt-text);
}
.dt-option-label .dt-option-name {
    color: var(--dt-text-2);
}
.dt-option-label .dt-option-current {
    font-weight: 600;
}

.dt-radio-group {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
}
.dt-radio {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border: 1.5px solid #e5e5e5;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
    background: #f5f5f5;
    font-size: 13px;
    color: #1a1a1a;
    white-space: nowrap;
}
.dt-radio:hover {
    background: #eeeeee;
    border-color: #b0b0b0;
}
.dt-radio input {
    display: none;
}
.dt-radio.is-checked {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

.dt-swatch-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.dt-swatch {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    background: #ccc;
    transition: border-color .2s, transform .2s;
    position: relative;
}
.dt-swatch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.dt-swatch:hover { transform: scale(1.05); }
.dt-swatch.is-active {
    border-color: var(--dt-text);
}
.dt-swatch::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    font-weight: 700;
    opacity: 0;
    transition: opacity .2s;
}
.dt-swatch.is-active::after {
    opacity: 1;
}

/* ==========================================================================
   配置维度 - 图片按钮（display_type=image）
   ========================================================================== */
.dt-img-option-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.dt-img-option {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    background: #f5f5f5;
    transition: all 0.15s;
    color: #1a1a1a;
}
.dt-img-option:hover {
    background: #eeeeee;
    border-color: #cccccc;
}
.dt-img-option.is-checked {
    border-color: #a45b37;  /* 高亮边框色，避免同色混色 */
    background: #f5f5f5;
    color: #1a1a1a;
    box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #a45b37;  /* 双层边框形成描边效果 */
}
.dt-img-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}
.dt-img-option .dt-img-option-thumb {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    overflow: hidden;
    background: #efece8;
    flex-shrink: 0;
}
.dt-img-option .dt-img-option-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.dt-img-option .dt-img-option-thumb--text {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
}
.dt-img-option .dt-option-value-text {
    display: none;
}

/* ==========================================================================
   配置维度 - 色块按钮（display_type=color_swatch）
   ========================================================================== */
.dt-swatch-option-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.dt-swatch-option {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color .2s, transform .2s;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.dt-swatch-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}
.dt-swatch-option .dt-swatch-color {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}
.dt-swatch-option:hover {
    transform: scale(1.08);
    border-color: var(--dt-text-2);
}
.dt-swatch-option.is-checked {
    border-color: var(--dt-text);
    box-shadow: 0 0 0 1px var(--dt-text);
}
.dt-swatch-option.is-checked::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* text 类型样式 */
.dt-radio-group.is-vertical {
    flex-direction: column;
}
.dt-radio-group.is-vertical .dt-radio {
    flex: none;
    width: 100%;
}

/* CTA */
.dt-cta-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 折扣徽章文案条（Add To Cart 按钮上方；样式与 dt-eta-stack 统一） */
.dt-discount-badge-stack {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}
.dt-discount-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: var(--dt-radius);
    background: #fff;
    border: 1px solid var(--dt-line);
    color: #374151;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.4;
}
.dt-discount-badge .dt-discount-badge-icon {
    display: inline-flex;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
    color: #f97316;
}
.dt-discount-badge .dt-discount-badge-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}
.dt-discount-badge-text {
    flex: 1;
}

/* 交付时间文案行（Add To Cart 下方，支持多行 + 图标） */
.dt-eta-stack {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.dt-eta-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 14px;
    color: #374151;
}
.dt-eta-row-icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
    color: #2563eb;
    flex-shrink: 0;
}
.dt-eta-row-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}
.dt-eta-row-text {
    flex: 1;
}
.dt-eta-fixed-text {
    white-space: nowrap;
}
.dt-eta-date-range {
    white-space: nowrap;
    font-weight: 500;
}
.dt-btn {
    width: 100%;
    padding: 16px 24px;
    font-size: 15px;
    font-weight: 700;
    border-radius: var(--dt-radius);
    cursor: pointer;
    transition: all .2s;
    border: 0;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
}
.dt-btn-primary {
    background: var(--dt-text);
    color: #fff;
}
.dt-btn-primary:hover {
    background: #000;
}
.dt-btn-secondary {
    background: transparent;
    color: var(--dt-text);
    border: 1.5px solid var(--dt-text);
}
.dt-btn-secondary:hover {
    background: var(--dt-text);
    color: #fff;
}
.dt-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.dt-add-to-cart {
    background: var(--dt-text);
    color: #fff;
    border: 0;
    border-radius: var(--dt-radius);
    padding: 16px 24px;
    width: 100%;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.dt-add-to-cart:hover { background: #000; }
.dt-add-to-cart.is-loading { opacity: 0.7; }
.dt-add-to-cart.is-success { background: var(--dt-success); }

.dt-add-to-cart .dt-cart-icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* 交付 */
.dt-delivery-info {
    border: 1px solid var(--dt-line);
    border-radius: var(--dt-radius);
    padding: 16px;
    background: #fff;
}
.dt-delivery-info .dt-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--dt-text-2);
}
.dt-delivery-info .dt-row + .dt-row {
    margin-top: 10px;
}
.dt-delivery-info svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    fill: var(--dt-text-2);
}
.dt-notice-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    fill: var(--dt-text-2);
}
.dt-icon-placeholder {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--dt-text-2);
}
.dt-eta {
    font-size: 14px;
    color: var(--dt-text);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}
.dt-eta::before {
    content: "🚚";
    font-size: 16px;
}

/* Where to get it */
.dt-where {
    border: 1px solid var(--dt-line);
    border-radius: var(--dt-radius);
    background: #fff;
    margin-top: 12px;
    overflow: hidden;
}
.dt-where-head {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--dt-line-2);
}
.dt-where-head h3 {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
}
.dt-where-stock {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: var(--dt-success);
    color: #fff;
}
.dt-where-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--dt-line-2);
    font-size: 13px;
}
.dt-where-row:last-child { border-bottom: 0; }
.dt-where-row .dt-where-icon-wrap {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--dt-text);
}
.dt-where-row .dt-where-icon-wrap svg {
    width: 20px;
    height: 20px;
    fill: var(--dt-text);
}
.dt-where-row .dt-where-label {
    font-weight: 700;
}
.dt-where-row .dt-where-sub {
    color: var(--dt-text-3);
    font-size: 12px;
    margin-top: 2px;
}
.dt-where-arrow {
    color: var(--dt-accent);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    font-size: inherit;
    font-family: inherit;
}
.dt-postcode-btn {
    font-size: 13px;
}

/* 邮编查询弹窗 - Joy UI 风格 */
.dt-postcode-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.5);
}
.dt-postcode-modal.is-open {
    display: flex;
}
.dt-postcode-modal .MuiModalDialog-root {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    width: 100%;
    max-width: 400px;
    animation: dt-pc-fadein 0.2s ease-out;
}
@keyframes dt-pc-fadein {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
.dt-postcode-modal .MuiBox-root {
    text-align: center;
}
.dt-postcode-modal .MuiTypography-h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #1a1a1a;
}
.dt-postcode-modal #modal-modal-description {
    margin-bottom: 20px;
}
.dt-postcode-modal .MuiTypography-body2 {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}
.dt-postcode-modal .MuiFormControl-root {
    width: 100%;
    margin-bottom: 16px;
}
.dt-postcode-modal .MuiAutocomplete-root {
    width: 100%;
}
.dt-postcode-modal .MuiAutocomplete-wrapper {
    padding: 10px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    transition: border-color 0.2s;
}
.dt-postcode-modal .MuiAutocomplete-wrapper.Mui-focused {
    border-color: var(--dt-accent);
}
.dt-postcode-modal .MuiAutocomplete-input {
    width: 100%;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-align: center;
    border: none;
    outline: none;
    background: transparent;
}
.dt-postcode-modal .MuiModalClose-root {
    position: absolute;
    top: 8px;
    right: 8px;
    cursor: pointer;
    color: #666;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dt-postcode-modal .MuiModalClose-root:hover {
    color: #333;
}
.dt-postcode-error {
    font-size: 13px;
    color: #c53d43;
    min-height: 18px;
    margin: 0 0 12px 0;
    display: none;
    text-align: center;
}
.dt-postcode-result {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    background: #f5f7f9;
    border-radius: 8px;
    margin-bottom: 16px;
}
.dt-postcode-result-label {
    font-size: 14px;
    color: #666;
}
.dt-postcode-result-city {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}
.dt-postcode-submit {
    width: 100%;
    padding: 11px 24px;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
    font-family: inherit;
}
.dt-postcode-submit:hover {
    background: #333;
}
.dt-postcode-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Pair it with our picks 配套推荐 */
.dt-pair-picks {
    border-top: 1px solid var(--dt-line);
    padding-top: 20px;
    margin-top: 8px;
}
.dt-pair-picks h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 12px 0;
}
.dt-pair-list {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
}
.dt-pair-list::-webkit-scrollbar { display: none; }
.dt-pair-card {
    flex-shrink: 0;
    width: 168px;
    background: #fff;
    border-radius: var(--dt-radius);
    overflow: hidden;
    scroll-snap-align: start;
    border: 1px solid var(--dt-line-2);
    transition: box-shadow .2s;
}
.dt-pair-card:hover {
    box-shadow: var(--dt-shadow-md);
}
.dt-pair-img {
    aspect-ratio: 1;
    background: #efece8;
    overflow: hidden;
}
.dt-pair-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.dt-pair-body {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.dt-pair-name {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--dt-text);
    text-decoration: underline;
    text-underline-offset: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.dt-pair-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: 2px;
}
.dt-pair-price-now { font-size: 13px; font-weight: 700; }
.dt-pair-price-was { font-size: 12px; color: var(--dt-text-3); text-decoration: line-through; }
.dt-pair-action {
    margin-left: auto;
    background: transparent;
    border: 1px solid var(--dt-line);
    width: 28px;
    height: 28px;
    border-radius: var(--dt-radius);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.dt-pair-action svg {
    width: 14px;
    height: 14px;
    fill: var(--dt-text);
}
.dt-pair-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

/* 商品故事 / 介绍 */
.dt-story {
    border: 1px solid var(--dt-line);
    border-radius: var(--dt-radius);
    background: #fff;
    padding: 16px;
    font-size: 14px;
    color: var(--dt-text-2);
    line-height: 1.6;
}
.dt-story-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    color: #a45b3d !important;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Shop the collection（同系列其他产品）- 全宽容器 */
.dt-shop-collection-section {
    width: 100%;
    padding: 80px 0 0;
}
.dt-shop-collection-inner {
    max-width: var(--dt-max-w);
    margin: 0 auto;
    padding: 0 var(--dt-pad);
}
.dt-shop-collection-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: var(--dt-text);
}
.dt-shop-collection-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding-top: 8px;
}
.dt-shop-card {
    display: block;
    text-decoration: none;
    color: inherit;
}
.dt-shop-card-img {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 4px;
    background: #f5f5f5;
}
.dt-shop-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.dt-shop-card:hover .dt-shop-card-img img {
    transform: scale(1.03);
}
.dt-shop-card-body {
    padding: 8px 0 0;
}
.dt-shop-card-name {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--dt-text);
    line-height: 1.3;
    margin-bottom: 4px;
}
.dt-shop-card-price {
    display: flex;
    align-items: center;
    gap: 8px;
}
.dt-shop-price-now {
    font-size: 16px;
    font-weight: 700;
    color: var(--dt-text);
}
.dt-shop-price-was {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
}
/* 卡片底部操作按钮 */
.dt-shop-card-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding-bottom: 4px;
}
.dt-shop-card-actions .dt-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--dt-line);
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    text-decoration: none;
    color: var(--dt-text);
}
.dt-shop-card-actions .dt-icon-btn:hover {
    border-color: var(--dt-accent);
    background: var(--dt-accent);
    color: #fff;
}
.dt-shop-card-actions .dt-icon-btn svg {
    width: 20px;
    height: 20px;
    pointer-events: none;
}

/* ==========================================================================
   商品详情页 - 客户评价 (What our customers are saying)
   ========================================================================== */
.dt-reviews-section {
    padding: 48px 0;
    /* 顶部不加分隔线（border-top 已移除），上方区段到评论区靠 margin-top 留出间距。 */
    margin-top: 48px;
}
.dt-reviews-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--dt-text);
    margin-bottom: 24px;
}
.dt-reviews-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.dt-reviews-header {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-top: 24px;
    margin-bottom: 24px;
    overflow: hidden;
}
/* 左：分数 + 星级横向排列 */
.dt-reviews-score-block {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.dt-reviews-score {
    font-size: 48px;
    font-weight: 700;
    color: var(--dt-text);
    line-height: 1;
    white-space: nowrap;
}
.dt-reviews-stars {
    display: flex;
    align-items: center;
    gap: 2px;
}
.dt-reviews-count {
    font-size: 13px;
    color: #666;
    white-space: nowrap;
}
/* 右：评论图片横向滚动 */
.dt-reviews-photos {
    flex: 1;
    overflow: hidden;
    cursor: grab;
    min-width: 0;
}
.dt-reviews-photos-track {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
}
.dt-reviews-photos-track::-webkit-scrollbar {
    display: none;
}
.dt-reviews-photo-thumb {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
}
.dt-reviews-photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.dt-reviews-photos:active {
    cursor: grabbing;
}
/* 评论图片放大查看模态框 */
.dt-reviews-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.88);
    align-items: center;
    justify-content: center;
}
.dt-reviews-lightbox.is-open {
    display: flex;
}
.dt-reviews-lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}
.dt-reviews-lightbox-close {
    position: absolute;
    top: 16px;
    right: 24px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    font-size: 28px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.dt-reviews-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
}
.dt-reviews-topics-bar {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 24px;
}
.dt-reviews-topics {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.dt-reviews-topics-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--dt-text);
    margin-bottom: 8px;
}
.dt-reviews-topics-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.dt-reviews-topic {
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid var(--dt-line);
    border-radius: 999px;
    font-size: 12px;
    color: #666;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}
.dt-reviews-topic:hover {
    border-color: var(--dt-accent);
    color: var(--dt-accent);
}
.dt-reviews-write-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    border: 1px solid var(--dt-text);
    border-radius: 4px;
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    color: var(--dt-text);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: auto;
}
.dt-reviews-write-btn:hover {
    background: var(--dt-text);
    color: #fff;
}

/* 筛选行 */
.dt-reviews-filters {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 24px;
    margin-bottom: 24px;
}
.dt-reviews-filter {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
}
.dt-reviews-filter-label {
    font-weight: 600;
    color: var(--dt-text);
}
.dt-reviews-filter select {
    border: 1px solid var(--dt-line);
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 13px;
    color: var(--dt-text);
    background: #fff;
    cursor: pointer;
    appearance: auto;
}

/* 评价卡片列表 */
.dt-reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}
.dt-review-card {
    border: 1px solid var(--dt-line);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.dt-review-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.dt-review-author-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.dt-review-author {
    display: flex;
    align-items: center;
    gap: 8px;
}
.dt-review-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--dt-text);
}
.dt-review-stars {
    display: flex;
    gap: 2px;
}
.dt-review-stars svg {
    width: 14px;
    height: 14px;
}
.dt-review-location {
    font-size: 12px;
    color: #999;
}
.dt-review-date {
    font-size: 12px;
    color: #999;
}
.dt-review-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--dt-text);
    margin: 0;
}
.dt-review-body {
    font-size: 14px;
    color: #444;
    line-height: 1.6;
}
.dt-review-images {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.dt-review-image-thumb {
    width: 72px;
    height: 72px;
    border-radius: 4px;
    overflow: hidden;
    background: #f5f5f5;
    cursor: pointer;
}
.dt-review-image-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.dt-review-product-link {
    font-size: 12px;
    color: #999;
    text-decoration: underline;
}

/* 分页 */
.dt-reviews-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 24px;
}
.dt-reviews-pagination button {
    width: 36px;
    height: 36px;
    border: 1px solid var(--dt-line);
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    color: var(--dt-text);
    transition: border-color 0.2s, background 0.2s, color 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.dt-reviews-pagination button:hover:not(:disabled) {
    border-color: var(--dt-accent);
    color: var(--dt-accent);
}
.dt-reviews-pagination button.active {
    background: var(--dt-accent);
    border-color: var(--dt-accent);
    color: #fff;
}
.dt-reviews-pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.dt-reviews-pagination .dt-page-prev,
.dt-reviews-pagination .dt-page-next {
    /* 箭头按钮稍宽一点更显眼 */
    width: 40px;
}
.dt-reviews-pagination .dt-page-prev svg,
.dt-reviews-pagination .dt-page-next svg {
    display: block;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .dt-reviews-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }
    .dt-reviews-score {
        font-size: 36px;
    }
    .dt-reviews-score-block {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .dt-reviews-grid {
        grid-template-columns: 1fr;
    }
    .dt-reviews-filters {
        flex-wrap: wrap;
        gap: 12px;
    }
}

/* 移动端适配 */
@media (max-width: 640px) {
    .dt-shop-collection-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .dt-shop-card-name {
        font-size: 14px;
    }
    .dt-shop-price-now {
        font-size: 15px;
    }
}

/* ==========================================================================
   底部：折叠面板 (Dimensions / Details / Delivery ...)
   ========================================================================== */
.dt-accordion {
    border-top: 1px solid var(--dt-line);
    margin-top: 48px;
}
.dt-gallery > .dt-accordion:first-child {
    /* 如果没有 promo-banner 时减少上面间距 */
    margin-top: 40px;
}
.dt-accordion-item {
    border-bottom: 1px solid var(--dt-line);
}
.dt-accordion-trigger {
    width: 100%;
    background: none;
    border: 0;
    padding: 22px 4px;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-family: inherit;
    font-size: 17px;
    font-weight: 600;
    color: var(--dt-text);
    transition: color .2s;
}
.dt-accordion-trigger:hover {
    color: var(--dt-accent);
}
.dt-accordion-trigger .dt-chevron {
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: transform .25s ease;
}
.dt-accordion-item.is-open .dt-chevron {
    transform: rotate(90deg);
}
.dt-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
    padding: 0 4px;
    color: var(--dt-text-2);
    font-size: 14px;
    line-height: 1.7;
}
.dt-accordion-item.is-open .dt-accordion-content {
    max-height: 2000px;
    padding: 0 4px 24px 4px;
}
.dt-accordion-content p { margin: 0 0 12px 0; }
.dt-accordion-content p:last-child { margin-bottom: 0; }
.dt-accordion-content ul {
    list-style: disc;
    padding-left: 20px;
    margin: 8px 0;
}

/* 占位提示（如果 panel.content 为空） */
.dt-placeholder {
    color: var(--dt-text-3);
    font-style: italic;
}

/* ==========================================================================
   右侧详情抽屉
   ========================================================================== */
.dt-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 9000;
    pointer-events: none;
    transition: background .28s ease;
}
.dt-drawer-overlay.is-open {
    background: rgba(0, 0, 0, 0.45);
    pointer-events: auto;
}
.dt-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(480px, 100vw);
    background: #fff;
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 32px rgba(0,0,0,.12);
}
.dt-drawer-overlay.is-open .dt-drawer {
    transform: translateX(0);
}
.dt-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px 20px;
    border-bottom: 1px solid var(--dt-line);
    flex-shrink: 0;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
}
.dt-drawer-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--dt-text);
    margin: 0;
}
.dt-drawer-close {
    /* 隐藏关闭按钮（用户可通过点击遮罩关闭） */
    display: none !important;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: none;
    border: 0;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    color: var(--dt-text-2);
    transition: background .15s;
}
.dt-drawer-close:hover { background: var(--dt-line); }
.dt-drawer-close svg { width: 20px; height: 20px; }
.dt-drawer-body {
    padding: 24px 28px 40px;
    color: var(--dt-text-2);
    font-size: 14px;
    line-height: 1.7;
}
/* 抽屉内部折叠列表 */
.ddr-accordion-item {
    border-bottom: 1px solid var(--dt-line);
}
.ddr-accordion-trigger {
    width: 100%;
    background: none;
    border: 0;
    padding: 20px 0;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    color: var(--dt-text);
    transition: color .2s;
}
.ddr-accordion-trigger:hover { color: var(--dt-accent); }
.ddr-chevron {
    width: 18px;
    height: 18px;
    fill: currentColor;
    transition: transform .25s ease;
    flex-shrink: 0;
}
.ddr-accordion-item.is-open .ddr-chevron {
    transform: rotate(90deg);
}
.ddr-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
    color: var(--dt-text-2);
    font-size: 14px;
    line-height: 1.7;
}
.ddr-accordion-item.is-open .ddr-accordion-content {
    max-height: 2000px;
    padding-bottom: 24px;
}
.ddr-accordion-content p { margin: 0 0 12px; }
.ddr-accordion-content p:last-child { margin-bottom: 0; }
.ddr-accordion-content ul { list-style: disc; padding-left: 20px; margin: 8px 0; }
/* 抽屉内属性列表（key-value） */
.ddr-attr-list { display: grid; gap: 0; }
.ddr-attr-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--dt-line-2);
}
.ddr-attr-row:last-child { border-bottom: none; }
.ddr-attr-key {
    font-weight: 500;
    color: var(--dt-text-2);
    font-size: 13px;
    flex-shrink: 0;
}
.ddr-attr-val {
    text-align: right;
    color: var(--dt-text);
    font-size: 13px;
    font-weight: 500;
}

/* 移动端 drawer 全宽 */
@media (max-width: 600px) {
    .dt-drawer { width: 100vw; }
}

/* ============================================================
   全屏画廊弹窗（新版本 - 页面内全屏，左图右缩略图）
   ============================================================ */
.dt-gallery-modal {
    position: fixed;
    inset: 0;
    background: #f9f5ed;
    z-index: 9999;
    display: flex;
}
.dt-gallery-modal-content {
    width: 100%;
    height: 100%;
    display: flex;
    background: #f9f5ed;
}
/* 左半边：大图（固定50vw，靠左，右边留空白） */
.dt-gallery-modal-left {
    width: 50vw;
    height: 100vh;
    background: #f9f5ed;
    flex-shrink: 0;
    overflow: hidden;
}
.dt-gallery-modal-main-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}
.dt-gallery-modal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
}
/* 右半边：缩略图 + 导航（往右推，靠视窗右边） */
.dt-gallery-modal-right {
    width: 50vw;
    background: #f9f5ed;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    margin-left: auto;
    padding: 20px 60px 20px 120px;
    box-sizing: border-box;
}
/* 缩略图区域（靠右排列，右边留空白） */
.dt-gallery-modal-thumbs {
    padding: 16px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
    overflow-y: auto;
    flex: 1;
    justify-content: end;
}
.dt-gallery-modal-thumb {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s, border-color 0.2s;
    border: 2px solid transparent;
    background: #f5f5f5;
}
.dt-gallery-modal-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.dt-gallery-modal-thumb.is-active {
    opacity: 1;
    border-color: #333;
}
.dt-gallery-modal-thumb:hover {
    opacity: 0.85;
}
/* 导航区域 */
.dt-gallery-modal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    flex-shrink: 0;
}
.dt-gallery-modal-nav-center {
    display: flex;
    align-items: center;
    gap: 16px;
}
.dt-gallery-modal-count {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}
.dt-gallery-modal-count {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    min-width: 50px;
    text-align: center;
}
.dt-gallery-modal-prev,
.dt-gallery-modal-next {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #333;
    transition: background 0.2s, border-color 0.2s;
}
.dt-gallery-modal-prev:hover,
.dt-gallery-modal-next:hover {
    background: #f5f5f5;
    border-color: #d1d5db;
}
.dt-gallery-modal-prev:disabled,
.dt-gallery-modal-next:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}
.dt-gallery-modal-prev svg,
.dt-gallery-modal-next svg {
    width: 20px;
    height: 20px;
}
/* 关闭按钮（在导航区域内） */
.dt-gallery-modal-close {
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: #d97706;
    cursor: pointer;
    text-decoration: underline;
    padding: 8px;
}
.dt-gallery-modal-close:hover {
    color: #b45309;
}

/* 移动端响应式 */
@media (max-width: 768px) {
    .dt-gallery-modal {
        background: #f9f5ed;
    }
    .dt-gallery-modal-content {
        flex-direction: column;
    }
    .dt-gallery-modal-left {
        flex: 1;
        background: #f9f5ed;
    }
    .dt-gallery-modal-img {
        margin-right: 0;
    }
    .dt-gallery-modal-right {
        width: 100%;
        height: auto;
        max-height: 30vh;
        background: #f9f5ed;
    }
    .dt-gallery-modal-thumbs {
        margin-right: 0;
    }
    .dt-gallery-modal-thumbs {
        padding: 12px;
        gap: 8px;
    }
    .dt-gallery-modal-thumb {
        width: 60px;
        height: 60px;
    }
}

/* 移动端微调 */
@media (max-width: 767px) {
    .dt-main {
        gap: 20px;
    }
    .dt-gallery {
        position: static;
    }
    .dt-title {
        font-size: 20px;
    }
    .dt-pair-card {
        width: 140px;
    }
    /* 移动端缩略图布局不变 */
}

/* ============================
   FAQ 区块
   ============================ */
.dt-faq-section {
    /* 商品详情页 FAQ 区域的背景色，使用米色 #f9f5ed，与前台其他强调区区分。
       颜色由产品要求指定。
       顶部不加分隔线（border-top 已移除），背景色与上方区段自然过渡。 */
    background: #f9f5ed;
    padding: 60px 0;
}
.dt-faq-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 64px;
    align-items: flex-start;
}
.dt-faq-intro {
    position: sticky;
    top: 24px;
}
.dt-faq-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--dt-text);
    margin: 0 0 12px;
    line-height: 1.3;
}
.dt-faq-subtitle {
    font-size: 14px;
    line-height: 1.7;
    color: #666;
    margin: 0;
}
.dt-faq-subtitle a,
.dt-faq-link-btn {
    color: var(--dt-accent);
    text-decoration: underline;
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    cursor: pointer;
}
.dt-faq-subtitle a:hover,
.dt-faq-link-btn:hover {
    color: #b32d2d;
}

/* 列表 */
.dt-faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.dt-faq-item {
    border: 1px solid var(--dt-line);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    transition: border-color 0.2s;
}
.dt-faq-item.is-open {
    border-color: var(--dt-accent);
}
.dt-faq-summary {
    /* 与 MUI 风格一致：summary 仅做语义容器，无视觉 */
    margin: 0;
}
.dt-faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 24px;
    background: none;
    border: 0;
    cursor: pointer;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    color: var(--dt-text);
    transition: background 0.2s;
}
.dt-faq-question:hover {
    background: #fafafa;
}
.dt-faq-item.is-open .dt-faq-question {
    background: #fafafa;
}
.dt-faq-question-text {
    flex: 1;
    line-height: 1.5;
}
.dt-faq-icon {
    flex-shrink: 0;
    display: inline-flex;
    color: var(--dt-text);
    transition: transform 0.25s ease;
}
.dt-faq-item.is-open .dt-faq-icon {
    transform: rotate(180deg);
    color: var(--dt-accent);
}
.dt-faq-details {
    padding: 0 24px 20px;
    color: #555;
    font-size: 14px;
    line-height: 1.7;
    /* 平滑高度过渡 */
    overflow: hidden;
    animation: dt-faq-open 0.25s ease;
}
.dt-faq-details[hidden] {
    display: none;
}
.dt-faq-details-content p {
    margin: 0 0 12px;
}
.dt-faq-details-content p:last-child {
    margin-bottom: 0;
}
.dt-faq-details-content a {
    color: var(--dt-accent);
    text-decoration: underline;
}
@keyframes dt-faq-open {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* FAQ 响应式 */
@media (max-width: 900px) {
    .dt-faq-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .dt-faq-intro {
        position: static;
    }
    .dt-faq-title {
        font-size: 24px;
    }
    .dt-faq-question {
        padding: 16px 18px;
        font-size: 15px;
    }
    .dt-faq-details {
        padding: 0 18px 16px;
    }
}