/* 眼镜配置器主容器 */
.eyewear-configurator {
    width: 100%;
}

.eyewear-configurator__container {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

/* 左侧图片预览区域 (60% - 减去gap的一半) */
.eyewear-configurator__image-wrapper {
    flex: 0 0 calc(60% - 1rem);
    width: calc(60% - 1rem);
    position: relative;
}

/* 产品信息区域 */
.eyewear-configurator__product-info {
    margin-bottom: 2rem;
    padding-bottom: 0;
    border-bottom: none;
}

.eyewear-configurator__product-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
    line-height: 1.25;
}

.eyewear-configurator__product-subtitle {
    font-size: 1rem;
    font-weight: 400;
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.eyewear-configurator__price {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
}

.eyewear-configurator__sale-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #dc2626;
}

.eyewear-configurator__regular-price {
    font-size: 1.125rem;
    color: #6b7280;
    text-decoration: line-through;
    font-weight: 500;
}

.eyewear-configurator__image-container {
    position: relative;
    width: 100%;
    min-height: 520px;
    max-height: 520px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
    touch-action: pan-y pinch-zoom;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    will-change: transform;
    /* 优化动画性能 */
}

/* 横向滑动容器 */
.eyewear-configurator__image-slider {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.eyewear-configurator__image-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 520px;
    position: relative;
}

.eyewear-configurator__image {
    width: 100%;
    height: 520px;
    object-fit: contain;
    display: block;
    pointer-events: none;
}

.eyewear-configurator__placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 520px;
    color: #9ca3af;
    text-align: center;
}

.eyewear-configurator__placeholder-icon {
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* 缩略图区域 */
.eyewear-configurator__thumbnails {
    width: 100%;
    position: relative;
}

.eyewear-configurator__thumbnail-container {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0.375rem;
    padding: 2px 0.75rem 2px 0.75rem;
    min-width: 0;
    justify-content: flex-start;
    /* 隐藏滚动条但保持滑动功能 */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

/* 隐藏webkit浏览器的滚动条 */
.eyewear-configurator__thumbnail-container::-webkit-scrollbar {
    display: none;
}

.eyewear-configurator__thumbnail {
    flex: 0 0 auto;
    width: 60px;
    height: 60px;
    border: 2px solid #e5e5e5;
    border-radius: 6px;
    overflow: hidden;
    background: none;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.eyewear-configurator__thumbnail:hover {
    border-color: #9ca3af;
}

.eyewear-configurator__thumbnail.active {
    border-color: #000000;
    box-shadow: 0 0 0 1px #000000;
}

.eyewear-configurator__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 右侧配置选项区域 (40% - 减去gap的一半) */
.eyewear-configurator__options-wrapper {
    flex: 0 0 calc(40% - 1rem);
    width: calc(40% - 1rem);
    display: flex;
    flex-direction: column;
}

.eyewear-configurator__options-container {
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
    min-height: 520px;
}

.eyewear-configurator__form {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

/* 确保动态选项容器也有相同的间距 */
#dynamic-options-container {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* 移除手风琴项目的 margin-bottom，因为现在使用 gap 来管理间距 */
.eyewear-configurator__accordion-item {
    background-color: rgba(245, 242, 236, 0.5);
    border-radius: 0.5rem;
    overflow: hidden;
}

.eyewear-configurator__accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: rgba(245, 242, 236, 0.5);
    border-bottom: none;
}

.eyewear-configurator__accordion-header:hover {
    background-color: rgba(245, 242, 236, 0.7);
}

.eyewear-configurator__label {
    font-weight: 600;
    color: #111827;
    font-size: 20px;
    margin: 0;
    flex: 1;
    min-width: 0;
}

.eyewear-configurator__selected-value {
    font-size: 14px;
    color: #f48029;
    font-weight: 400;
    margin-left: 0.5rem;
}

.eyewear-configurator__selected-value--placeholder {
    color: #000000;
    font-style: normal;
}

.eyewear-configurator__accordion-icon {
    font-size: 1.25rem;
    font-weight: 500;
    color: #000000;
    min-width: 1.5rem;
    text-align: center;
    transition: all 0.2s ease;
    margin-left: 1rem;
    flex-shrink: 0;
}

.eyewear-configurator__accordion-item.expanded .eyewear-configurator__accordion-icon {
    color: #000000;
}

.eyewear-configurator__accordion-item.has-selection .eyewear-configurator__accordion-icon {
    font-size: 0.75rem;
    color: #000000;
    font-weight: 600;
}

.eyewear-configurator__accordion-content {
    display: block;
    padding: 0 1rem 0.75rem;
    background-color: rgba(245, 242, 236, 0.5);
}

.eyewear-configurator__description {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
}

/* 选项样式 */
.eyewear-configurator__options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.eyewear-configurator__options--buttons .eyewear-configurator__option {
    flex: 0 0 calc(25% - 0.5625rem);
    max-width: calc(25% - 0.5625rem);
}

.eyewear-configurator__options--color {
    gap: 1rem;
    justify-content: flex-start;
    align-items: center;
}

.eyewear-configurator__options--color .eyewear-configurator__option {
    flex: none;
    width: auto;
}

.eyewear-configurator__options--list .eyewear-configurator__option {
    width: 100%;
}

.eyewear-configurator__radio {
    display: none;
}

.eyewear-configurator__option-label {
    display: block;
    padding: 0.375rem 0.5rem;
    border: 1px solid #61584e80;
    border-radius: 0.25rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    font-weight: 500;
    background: #ffffff;
    min-height: auto;
}

.eyewear-configurator__option-label:hover {
    border-color: #61584e;
}

.eyewear-configurator__radio:checked+.eyewear-configurator__option-label {
    border-color: #000000;
    background-color: #ffffff;
    color: #000000;
}

.eyewear-configurator__options--radio {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.eyewear-configurator__options--radio .eyewear-configurator__option {
    width: 100%;
}

.eyewear-configurator__radio-label {
    display: flex;
    align-items: flex-start;
    padding: 0.25rem 0;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    transition: color 0.2s ease;
}

.eyewear-configurator__radio-label:hover {
    color: #111827;
}

.eyewear-configurator__radio-indicator {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    margin-right: 0.75rem;
    margin-top: 0.125rem;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.eyewear-configurator__radio:checked+.eyewear-configurator__radio-label .eyewear-configurator__radio-indicator {
    border-color: #000000;
    background-color: #000000;
}

.eyewear-configurator__radio:checked+.eyewear-configurator__radio-label .eyewear-configurator__radio-indicator::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.eyewear-configurator__radio-title {
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.25rem;
    line-height: 1.25;
    font-size: 1rem;
}

.eyewear-configurator__radio-description {
    font-size: 0.75rem;
    color: #000000;
    font-weight: 400;
    line-height: 1.4;
}

/* Diopter 年龄范围样式 */
.eyewear-configurator__diopter-main {
    display: block;
    margin-bottom: 0.25rem;
}

.eyewear-configurator__diopter-age {
    font-size: 0.7rem;
    color: #6b7280;
    font-weight: 400;
    line-height: 1.2;
}

.eyewear-configurator__radio-age {
    font-size: 0.7rem;
    color: #6b7280;
    font-weight: 400;
    line-height: 1.3;
    margin-top: 0.125rem;
}

/* 移动端 Diopter 年龄范围调整 */
@media screen and (max-width: 768px) {
    .eyewear-configurator__diopter-age {
        font-size: 0.625rem;
    }

    .eyewear-configurator__radio-age {
        font-size: 0.625rem;
    }

    .eyewear-configurator__image {
        height: 300px;
        object-fit: cover;
    }

    .eyewear-configurator__placeholder {
        height: 300px;
    }

    /* Diopter选项标签优化 - 进一步增大文字和高度 */
    .eyewear-configurator__accordion-item:has([name*="diopter"]) .eyewear-configurator__option-label {
        padding: 0.7rem 0.3rem;
        font-size: 1.1rem;
        line-height: 1.3;
        min-height: 4rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .eyewear-configurator__diopter-main {
        font-size: 1.15rem;
        line-height: 1.3;
        margin-bottom: 0.3rem;
        font-weight: 700;
    }

    .eyewear-configurator__diopter-age {
        font-size: 0.85rem;
        line-height: 1.2;
    }
}

@media screen and (max-width: 480px) {
    .eyewear-configurator__diopter-age {
        font-size: 0.6rem;
    }

    .eyewear-configurator__radio-age {
        font-size: 0.6rem;
    }

    .eyewear-configurator__image {
        height: 250px;
        object-fit: cover;
    }

    .eyewear-configurator__placeholder {
        height: 250px;
    }

    /* Diopter选项标签在超小屏幕的优化 - 更大的文字大小 */
    .eyewear-configurator__accordion-item:has([name*="diopter"]) .eyewear-configurator__option-label {
        padding: 0.6rem 0.25rem;
        font-size: 1rem;
        line-height: 1.25;
        min-height: 3.8rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .eyewear-configurator__diopter-main {
        font-size: 1.05rem;
        line-height: 1.25;
        margin-bottom: 0.25rem;
        font-weight: 700;
    }

    .eyewear-configurator__diopter-age {
        font-size: 0.8rem;
        line-height: 1.1;
    }

    /* 移动端 Lens 图片调整 */
    .eyewear-configurator__lens-image {
        width: 2rem;
        height: 2rem;
        margin-right: 0.375rem;
    }

    .eyewear-configurator__radio-label:has(.eyewear-configurator__lens-image) .eyewear-configurator__radio-content {
        min-height: 2rem;
    }
}

/* 颜色色块样式 - 恢复原来的样式 */
.eyewear-configurator__color-swatch {
    display: block;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.eyewear-configurator__color-border {
    display: block;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-radius: 50%;
    background-color: transparent;
    padding: 4px;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.eyewear-configurator__color-inner {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.eyewear-configurator__color-swatch:hover {
    transform: scale(1.05);
}

.eyewear-configurator__radio:checked+.eyewear-configurator__color-swatch .eyewear-configurator__color-border {
    border-color: #000000;
}

.eyewear-configurator__radio:checked+.eyewear-configurator__color-swatch {
    transform: scale(1.05);
}

/* 颜色标识样式 */
.eyewear-configurator__color-badge {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.625rem;
    font-weight: 600;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    white-space: nowrap;
    line-height: 1;
    z-index: 1;
}

.eyewear-configurator__color-badge--limited {
    background-color: #fbbf24;
    color: #92400e;
}

.eyewear-configurator__color-badge--sale {
    background-color: #dc2626;
    color: #ffffff;
}

/* 颜色分组样式 */
.eyewear-configurator__color-section {
    margin-bottom: 1rem;
}

.eyewear-configurator__color-section:last-child {
    margin-bottom: 0;
}

.eyewear-configurator__color-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.eyewear-configurator__color-description {
    font-size: 0.875rem;
    color: #000000;
    line-height: 1.5;
    margin-bottom: 0.4rem;
}

/* 颜色分隔线样式 */
.eyewear-configurator__color-divider {
    width: 100%;
    height: 1px;
    background-color: #e5e7eb;
    margin: 0.5rem 0;
}

/* 导航箭头样式 - 恢复原来的样式 */
.eyewear-configurator__nav-arrows {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.eyewear-configurator__image-container:hover .eyewear-configurator__nav-arrows {
    opacity: 1;
}

.eyewear-configurator__nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.eyewear-configurator__nav-arrow:hover {
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-50%) scale(1.05);
}

.eyewear-configurator__nav-arrow--prev {
    left: 16px;
}

.eyewear-configurator__nav-arrow--next {
    right: 16px;
}

.eyewear-configurator__nav-arrow svg {
    width: 20px;
    height: 20px;
    color: #374151;
}

.eyewear-configurator__nav-arrow:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* 操作按钮样式 - 恢复原来的样式 */
.eyewear-configurator__actions {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.eyewear-configurator__actions .button {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-weight: 600;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
}

.button--primary {
    background-color: #000000;
    color: #ffffff;
}

.button--primary:hover {
    background-color: #1f2937;
}

.button--secondary {
    background-color: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.button--secondary:hover {
    background-color: #e5e7eb;
}

/* 添加到购物车按钮禁用状态 */
.eyewear-configurator__add-to-cart:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #9ca3af;
}

.eyewear-configurator__add-to-cart:disabled:hover {
    background-color: #9ca3af;
}

/* Toast 提示样式 - 恢复原来的样式 */
.eyewear-configurator__toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    pointer-events: none;
}

.eyewear-configurator__toast {
    background-color: #374151;
    color: #ffffff;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    font-weight: 500;
    max-width: 300px;
    pointer-events: auto;
}

.eyewear-configurator__toast--show {
    transform: translateX(0);
    opacity: 1;
}

.eyewear-configurator__toast--success {
    background-color: #059669;
    color: #ffffff;
}

.eyewear-configurator__toast--error {
    background-color: #dc2626;
    color: #ffffff;
}

.eyewear-configurator__toast--info {
    background-color: #2563eb;
    color: #ffffff;
}

.eyewear-configurator__toast--warning {
    background-color: #d97706;
    color: #ffffff;
}

/* Free 标签样式 - 保留功能 */
.eyewear-configurator__free-label {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.125rem 0.375rem;
    background-color: #dc2626;
    color: #ffffff;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 0.25rem;
    line-height: 1;
    vertical-align: middle;
}

/* Premium 标签样式 */
.eyewear-configurator__premium-label {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.125rem 0.375rem;
    background-color: #7c3aed;
    color: #ffffff;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 0.25rem;
    line-height: 1;
    vertical-align: middle;
}

/* Lens 选项图片样式 - 正方形显示 */
.eyewear-configurator__lens-image {
    width: 2.5rem;
    height: 2.5rem;
    margin-right: 0.75rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
    border-radius: 0.25rem;
    overflow: hidden;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
}

.eyewear-configurator__lens-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 当有Lens图片时，调整布局对齐方式 */
.eyewear-configurator__radio-label:has(.eyewear-configurator__lens-image) {
    align-items: flex-start;
}

/* 确保radio-content与lens-image高度匹配 */
.eyewear-configurator__radio-label:has(.eyewear-configurator__lens-image) .eyewear-configurator__radio-content {
    min-height: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 辅助类 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 响应式设计 - 移动端适配 - 恢复原来的样式 */
@media screen and (max-width: 768px) {
    .eyewear-configurator__container {
        flex-direction: column;
        gap: 1.5rem;
    }

    /* 移动端图片区域占满宽度 */
    .eyewear-configurator__image-wrapper {
        flex: none;
        width: 100%;
        margin-bottom: 1rem;
    }

    .eyewear-configurator__image-container {
        min-height: 0;
        max-height: none;
        aspect-ratio: 1;
        width: 100%;
        touch-action: pan-y pinch-zoom;
        cursor: grab;
    }

    .eyewear-configurator__image-container:active {
        cursor: grabbing;
    }

    .eyewear-configurator__image-slide {
        height: 100%;
        aspect-ratio: 1;
    }

    .eyewear-configurator__image {
        height: 100%;
        width: 100%;
        aspect-ratio: 1;
        object-fit: cover;
    }

    .eyewear-configurator__placeholder {
        height: 100%;
        aspect-ratio: 1;
    }

    /* 移动端缩略图调整 */
    .eyewear-configurator__thumbnail {
        flex: 0 0 auto;
        width: 60px;
        height: 60px;
    }

    .eyewear-configurator__thumbnail-container {
        gap: 0.375rem;
        padding: 2px 2px 2px 2px;
        justify-content: flex-start;
    }

    /* 移动端取消缩略图的hover和active偏移效果 */
    .eyewear-configurator__thumbnail:hover {
        transform: none;
    }

    .eyewear-configurator__thumbnail.active {
        transform: none;
    }

    /* 移动端导航箭头调整 - 完全隐藏 */
    .eyewear-configurator__nav-arrows {
        display: none !important;
        /* 移动端完全隐藏导航箭头 */
    }

    .eyewear-configurator__nav-arrow {
        display: none !important;
        /* 确保导航箭头按钮也被隐藏 */
    }

    /* 移动端选项区域占满宽度 */
    .eyewear-configurator__options-wrapper {
        flex: none;
        width: 100%;
    }

    .eyewear-configurator__options-container {
        min-height: auto;
        padding: 0.5rem 0;
    }

    /* 移动端产品信息调整 */
    .eyewear-configurator__product-title {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }

    .eyewear-configurator__product-subtitle {
        font-size: 0.875rem;
        margin-bottom: 0.75rem;
    }

    .eyewear-configurator__sale-price {
        font-size: 1.25rem;
    }

    .eyewear-configurator__regular-price {
        font-size: 1rem;
    }

    /* 移动端手风琴调整 */
    .eyewear-configurator__accordion-header {
        padding: 0.625rem 0.75rem;
    }

    .eyewear-configurator__label {
        font-size: 18px;
    }

    .eyewear-configurator__selected-value {
        font-size: 13px;
    }

    .eyewear-configurator__accordion-content {
        padding: 0 0.75rem 0.625rem;
    }

    /* 移动端按钮样式选项调整 */
    .eyewear-configurator__options--buttons .eyewear-configurator__option {
        flex: 0 0 calc(50% - 0.375rem);
        max-width: calc(50% - 0.375rem);
    }

    /* Diopter选项特殊处理 - 移动端3列布局，减小宽度和间距 */
    .eyewear-configurator__accordion-item:has([name*="diopter"]) .eyewear-configurator__options--buttons .eyewear-configurator__option {
        flex: 0 0 calc(33.333% - 0.25rem);
        max-width: calc(33.333% - 0.25rem);
    }

    /* Diopter选项容器间距调整 */
    .eyewear-configurator__accordion-item:has([name*="diopter"]) .eyewear-configurator__options {
        gap: 0.375rem;
    }

    .eyewear-configurator__option-label {
        padding: 0.5rem 0.375rem;
        font-size: 0.8rem;
        text-align: center;
    }

    /* Diopter选项标签优化 - 增大文字和高度 */
    .eyewear-configurator__accordion-item:has([name*="diopter"]) .eyewear-configurator__option-label {
        padding: 0.7rem 0.3rem;
        font-size: 1.1rem;
        line-height: 1.3;
        min-height: 4rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .eyewear-configurator__diopter-main {
        font-size: 1.15rem;
        line-height: 1.3;
        margin-bottom: 0.3rem;
        font-weight: 700;
    }

    .eyewear-configurator__diopter-age {
        font-size: 0.85rem;
        line-height: 1.2;
    }
}

/* 超小屏幕适配 (手机竖屏) */
@media screen and (max-width: 480px) {
    .eyewear-configurator__container {
        gap: 1rem;
    }

    .eyewear-configurator__image-container {
        aspect-ratio: 1;
        width: 100%;
    }

    .eyewear-configurator__image-slide {
        height: 100%;
        aspect-ratio: 1;
    }

    .eyewear-configurator__image {
        height: 100%;
        width: 100%;
        aspect-ratio: 1;
        object-fit: cover;
    }

    .eyewear-configurator__placeholder {
        height: 100%;
        aspect-ratio: 1;
    }

    .eyewear-configurator__product-title {
        font-size: 1.125rem;
    }

    .eyewear-configurator__product-subtitle {
        font-size: 0.875rem;
        margin-bottom: 0.75rem;
    }

    .eyewear-configurator__sale-price {
        font-size: 1.125rem;
    }

    .eyewear-configurator__label {
        font-size: 16px;
    }

    .eyewear-configurator__selected-value {
        font-size: 12px;
    }

    .eyewear-configurator__accordion-header {
        padding: 0.5rem;
    }

    .eyewear-configurator__accordion-content {
        padding: 0 0.5rem 0.5rem;
    }

    /* 超小屏幕按钮选项堆叠 */
    .eyewear-configurator__options--buttons .eyewear-configurator__option {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* Diopter选项在超小屏幕仍保持3列，进一步减小宽度 */
    .eyewear-configurator__accordion-item:has([name*="diopter"]) .eyewear-configurator__options--buttons .eyewear-configurator__option {
        flex: 0 0 calc(33.333% - 0.2rem);
        max-width: calc(33.333% - 0.2rem);
    }

    /* Diopter选项容器间距进一步调整 */
    .eyewear-configurator__accordion-item:has([name*="diopter"]) .eyewear-configurator__options {
        gap: 0.3rem;
    }

    .eyewear-configurator__option-label {
        padding: 0.625rem 0.5rem;
        font-size: 0.875rem;
    }

    /* Diopter选项标签在超小屏幕的优化 - 增大文字，减少padding */
    .eyewear-configurator__accordion-item:has([name*="diopter"]) .eyewear-configurator__option-label {
        padding: 0.4rem 0.15rem;
        font-size: 0.8rem;
        line-height: 1.2;
        min-height: 3.2rem;
    }

    .eyewear-configurator__diopter-main {
        font-size: 0.85rem;
        line-height: 1.2;
        margin-bottom: 0.15rem;
        font-weight: 700;
    }

    .eyewear-configurator__diopter-age {
        font-size: 0.7rem;
        line-height: 1.1;
    }

    /* 移动端 Lens 图片调整 */
    .eyewear-configurator__lens-image {
        width: 2rem;
        height: 2rem;
        margin-right: 0.375rem;
    }

    .eyewear-configurator__radio-label:has(.eyewear-configurator__lens-image) .eyewear-configurator__radio-content {
        min-height: 2rem;
    }
}

/* 平板横屏适配 */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .eyewear-configurator__container {
        gap: 1.5rem;
    }

    .eyewear-configurator__image-wrapper {
        flex: 0 0 calc(55% - 0.75rem);
        width: calc(55% - 0.75rem);
    }

    .eyewear-configurator__options-wrapper {
        flex: 0 0 calc(45% - 0.75rem);
        width: calc(45% - 0.75rem);
    }

    .eyewear-configurator__image-container {
        max-height: 480px;
    }

    .eyewear-configurator__image {
        height: 480px;
    }

    .eyewear-configurator__options--buttons .eyewear-configurator__option {
        flex: 0 0 calc(33.333% - 0.5rem);
        max-width: calc(33.333% - 0.5rem);
    }
}

/* 触摸滑动优化 */
.eyewear-configurator__image-container {
    touch-action: pan-y pinch-zoom;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.eyewear-configurator__image {
    pointer-events: none;
}

/* 移动端触摸优化 */
@media screen and (max-width: 768px) {
    .eyewear-configurator__image-container {
        touch-action: pan-y pinch-zoom;
        cursor: grab;
    }

    .eyewear-configurator__image-container:active {
        cursor: grabbing;
    }

    /* 移动端时显示滑动提示 */
    .eyewear-configurator__image-container::after {
        content: '← Swipe →';
        position: absolute;
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(0, 0, 0, 0.7);
        color: white;
        padding: 4px 8px;
        border-radius: 12px;
        font-size: 12px;
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
        z-index: 10;
    }

    .eyewear-configurator__image-container.show-hint::after {
        opacity: 1;
    }
}