/* ===== product.css - 产品详情页专用样式 ===== */

/* ===== 产品主区域 ===== */
.product-main {
    padding: 30px 0 60px;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

/* ===== 产品图库 ===== */
.product-gallery {
    position: sticky;
    top: 100px;
    align-self: start;
}

.gallery-main {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid var(--border);
    position: relative;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}

.gallery-main img:hover {
    transform: scale(1.02);
}

/* 视频容器 */
.video-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    position: absolute;
    top: 0;
    left: 0;
}

/* ===== 缩略图区域 ===== */
.gallery-thumbnails-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gallery-thumbnails-container {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.gallery-thumbnails-slider {
    display: flex;
    gap: 12px;
    transition: transform 0.3s ease;
    will-change: transform;
}

.thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    background: #f5f5f5;
    position: relative;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.2s ease;
}

.thumbnail:hover {
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

.thumbnail:hover img {
    transform: scale(1.05);
}

.thumbnail.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(215, 23, 24, 0.2);
}

/* 视频缩略图 */
.video-thumb {
    position: relative;
}

.play-icon-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    pointer-events: none;
    z-index: 2;
}

.play-icon-overlay i {
    font-size: 12px;
    color: white;
    margin-left: 2px;
}

.video-thumb:hover .play-icon-overlay {
    background: var(--primary);
    transform: translate(-50%, -50%) scale(1.1);
}

/* 左右箭头 */
.thumb-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: white;
    border: 1px solid var(--border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.thumb-arrow:hover:not(:disabled) {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.thumb-arrow:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ===== 产品信息 ===== */
.product-info {
    padding: 0 0 20px 0;
}

.product-title {
    font-size: 2.0rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text);
    line-height: 1.2;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.stars {
    color: #ffc107;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.rating-count {
    color: var(--text-light);
    font-size: 0.95rem;
}

.product-price {
    background: var(--bg-light);
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-label {
    color: var(--text-light);
    font-size: 0.9rem;
}

.price {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
}

.product-specs-mini {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: var(--bg-light);
    border-radius: 8px;
}

.spec-item i {
    color: var(--primary);
    font-size: 1.1rem;
    width: 24px;
}

.spec-item span {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* 颜色/尺寸选项 */
.product-options {
    margin-bottom: 25px;
}

.product-options h3 {
    font-size: 1rem;
    margin-bottom: 12px;
    color: var(--text);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.size-guide-link {
    color: var(--primary);
    font-size: 0.9rem;
    cursor: pointer;
}

.color-options {
    display: flex;
    gap: 12px;
}

.color-item {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 0 0 1px var(--border);
    transition: all 0.3s;
}

.color-item:hover {
    transform: scale(1.1);
}

.color-item.active {
    box-shadow: 0 0 0 2px var(--primary);
}

.color-note {
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--text-lighter);
}

.size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.size-item {
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 30px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
}

.size-item:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.size-item.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* 操作按钮 */
.product-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.btn-primary.btn-large, .btn-secondary.btn-large {
    flex: 1;
    padding: 15px;
    font-size: 1.1rem;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(215,23,24,0.3);
}

.btn-secondary {
    background: white;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* 信任徽章 */
.trust-badges {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: var(--bg-light);
    border-radius: 12px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.trust-item i {
    color: var(--primary);
    font-size: 1.1rem;
}

.trust-item span {
    font-size: 0.9rem;
    color: var(--text-light);
}

.payment-methods {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.payment-methods span {
    font-size: 0.9rem;
    color: var(--text-light);
}

.payment-methods i {
    font-size: 1.8rem;
    color: var(--text-light);
}

/* ===== 产品详情标签页 ===== */
.product-tabs {
    margin-bottom: 60px;
    background: white;
    border-radius: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.tab-headers {
    display: flex;
    border-bottom: 1px solid var(--border);
    background: var(--bg-light);
    overflow-x: auto;
}

.tab-header {
    padding: 15px 25px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.tab-header:hover {
    color: var(--primary);
}

.tab-header.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: white;
}

.tab-content {
    display: none;
    padding: 40px;
}

.tab-content.active {
    display: block;
}

/* 描述内容布局 */
.description-content {
    max-width: 1200px;
    margin: 0 auto;
}

.detail-video {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5f5;
}

.detail-video iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
}
.detail-image-full img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

/* ===== 技术亮点 ===== */
.tech-highlights {
    margin: 60px 0;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.tech-card {
    text-align: center;
    padding: 30px 20px;
    background: var(--bg-light);
    border-radius: 12px;
    transition: all 0.3s;
}

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.tech-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.tech-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.tech-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ===== 相关产品 ===== */
.related-products {
    margin-top: 60px;
    margin-bottom: 40px;
}

.related-products .section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 12px;
}

.related-products .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.related-item {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.related-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-light);
}

.related-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: #f5f5f5;
    padding: 20px;
    transition: transform 0.3s ease;
}

.related-item:hover img {
    transform: scale(1.05);
}

/* 标题样式 - 无下划线，正常颜色 */
.related-item h3 {
    padding: 15px 15px 8px;
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text);
    text-decoration: none;
    display: -webkit-box;
    text-align: justify;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 60px;
    transition: color 0.2s;
}

.related-item:hover h3 {
    color: var(--primary);
}

.related-item h3 a {
    color: var(--text);
    text-decoration: none;
}

.related-item h3 a:hover {
    color: var(--primary);
}

.related-item p {
    padding: 0 15px 15px;
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-lighter);
    border-top: 1px solid var(--border);
    padding-top: 10px;
}

/* ===== 评论标签页样式 ===== */
.reviews-summary {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    margin-bottom: 30px;
    padding: 30px;
    background: var(--bg-light);
    border-radius: 12px;
}

.average-rating {
    text-align: center;
}

.big-rating {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.rating-text {
    display: block;
    font-size: 1rem;
    color: var(--text-light);
    margin: 5px 0;
}

.average-rating .stars {
    font-size: 1.5rem;
    margin: 10px 0;
}

.total-reviews {
    color: var(--text-lighter);
    font-size: 0.9rem;
}

.rating-bars {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.rating-bar-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rating-bar-item span:first-child {
    width: 60px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.rating-bar-item .bar {
    flex: 1;
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.rating-bar-item .bar div {
    height: 100%;
    background: var(--primary);
    border-radius: 4px;
}

.rating-bar-item span:last-child {
    width: 40px;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* 评论列表 */
.reviews-list {
    margin-bottom: 30px;
}

.review-item {
    padding: 25px;
    border-bottom: 1px solid var(--border);
}

.review-item:last-child {
    border-bottom: none;
}

.reviewer {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 5px;
    color: var(--text);
}

.reviewer .verified {
    color: #28a745;
    font-size: 0.8rem;
    margin-left: 10px;
    font-weight: normal;
}

.review-date {
    color: var(--text-lighter);
    font-size: 0.8rem;
    margin-bottom: 8px;
}

.review-stars {
    color: #ffc107;
    font-size: 0.9rem;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.review-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.review-item p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* 评论操作按钮 */
.reviews-more {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.btn-outline {
    padding: 10px 25px;
    border: 1px solid var(--border);
    border-radius: 30px;
    text-decoration: none;
    color: var(--text);
    font-size: 0.9rem;
    transition: all 0.3s;
    background: white;
    cursor: pointer;
    display: inline-block;
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

/* 响应式 */
@media (max-width: 768px) {
    .reviews-summary {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }

    .review-item {
        padding: 18px;
    }

    .review-item h4 {
        font-size: 1rem;
    }

    .review-item p {
        font-size: 0.9rem;
    }

    .reviews-more {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .btn-outline {
        width: 100%;
        max-width: 200px;
        text-align: center;
    }
}

/* ===== FAQ 区域 ===== */
#tab-faq {
    padding: 20px 0 40px;
}

.faq-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 50px;
    color: var(--text);
    position: relative;
    padding-bottom: 15px;
}

.faq-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary);
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-checkbox {
    display: none;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 20px;
    background: #fff;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary-light);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 28px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text);
    background: #fff;
    transition: background 0.2s ease;
    margin: 0;
}

.faq-question:hover {
    background: var(--bg-light);
}

.faq-question span {
    flex: 1;
    padding-right: 20px;
    line-height: 1.4;
}

.faq-question i {
    color: var(--primary);
    font-size: 18px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.faq-checkbox:checked + .faq-question i {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    padding: 0 28px;
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1rem;
    border-top: none;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-checkbox:checked ~ .faq-answer {
    max-height: 500px;
    padding: 28px;
    border-top: 1px solid var(--border);
}

.faq-answer p {
    margin: 0;
    line-height: 1.8;
    font-size: 1rem;
}

/* ===== 尺寸指南弹窗 ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1100;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 16px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-close {
    float: right;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
}

.size-guide-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.size-guide-table th {
    background: var(--bg-light);
    padding: 12px;
    text-align: left;
}

.size-guide-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
}

/* ===== 响应式设计 ===== */
@media (max-width: 1200px) {
    .related-grid {
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-gallery {
        position: static;
    }

    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .related-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .product-title {
        font-size: 2rem;
    }

    .product-price {
        padding: 10px 12px;
        flex-direction: row;
        justify-content: space-between;
    }
    .price-label {
        font-size: 0.85rem;
    }
    .price {
        font-size: 1.1rem;
    }

    .product-specs-mini {
        grid-template-columns: 1fr;
    }

    .product-actions {
        flex-direction: column;
    }

    .trust-badges {
        grid-template-columns: 1fr;
    }

    .tab-header {
        padding: 12px 15px;
        font-size: 0.9rem;
    }

    .tab-content {
        padding: 20px;
    }

    .detail-row-split {
        flex-direction: column !important;
        gap: 20px;
        margin-bottom: 40px;
    }

    .tech-grid {
        grid-template-columns: 1fr;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .thumbnail {
        width: 65px;
        height: 65px;
        border-radius: 10px;
    }

    .thumb-arrow {
        width: 28px;
        height: 28px;
    }

    .faq-title {
        font-size: 1.5rem;
        margin-bottom: 35px;
    }

    .faq-question {
        padding: 16px 20px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .thumbnail {
        width: 55px;
        height: 55px;
        border-radius: 8px;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .related-item img {
        padding: 12px;
    }

    .related-item h3 {
        font-size: 0.8rem;
        padding: 10px 10px 5px;
    }
}

/* ===== 评论标签页样式 ===== */
.reviews-summary {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    margin-bottom: 30px;
    padding: 30px;
    background: var(--bg-light);
    border-radius: 12px;
}

.average-rating {
    text-align: center;
}

.big-rating {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.rating-text {
    display: block;
    font-size: 1rem;
    color: var(--text-light);
    margin: 5px 0;
}

.average-rating .stars {
    font-size: 1.5rem;
    margin: 10px 0;
}

.total-reviews {
    color: var(--text-lighter);
    font-size: 0.9rem;
}

.rating-bars {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.rating-bar-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rating-bar-item span:first-child {
    width: 60px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.rating-bar-item .bar {
    flex: 1;
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.rating-bar-item .bar div {
    height: 100%;
    background: var(--primary);
    border-radius: 4px;
}

.rating-bar-item span:last-child {
    width: 40px;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* 评论列表 */
.reviews-list {
    margin-bottom: 30px;
}

.review-item {
    padding: 25px;
    border-bottom: 1px solid var(--border);
}

.review-item:last-child {
    border-bottom: none;
}

.reviewer {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 5px;
    color: var(--text);
}

.reviewer .verified {
    color: #28a745;
    font-size: 0.8rem;
    margin-left: 10px;
    font-weight: normal;
}

.review-date {
    color: var(--text-lighter);
    font-size: 0.8rem;
    margin-bottom: 8px;
}

.review-stars {
    color: #ffc107;
    font-size: 0.9rem;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.review-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.review-item p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* 评论操作按钮 */
.reviews-more {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.btn-outline {
    padding: 10px 25px;
    border: 1px solid var(--border);
    border-radius: 30px;
    text-decoration: none;
    color: var(--text);
    font-size: 0.9rem;
    transition: all 0.3s;
    background: white;
    cursor: pointer;
    display: inline-block;
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

/* 响应式 */
@media (max-width: 768px) {
    .reviews-summary {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }

    .review-item {
        padding: 18px;
    }

    .review-item h4 {
        font-size: 1rem;
    }

    .review-item p {
        font-size: 0.9rem;
    }

    .reviews-more {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .btn-outline {
        width: 100%;
        max-width: 200px;
        text-align: center;
    }
}

/* ===== 缩略图区域 - 手机端自适应修复 ===== */
.gallery-thumbnails-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    width: 100%;
}

.gallery-thumbnails-container {
    flex: 1;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.gallery-thumbnails-slider {
    display: flex;
    gap: 12px;
    transition: transform 0.3s ease;
    will-change: transform;
    width: fit-content;
}

.thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    background: #f5f5f5;
    position: relative;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 左右箭头按钮 */
.thumb-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: white;
    border: 1px solid var(--border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.thumb-arrow:hover:not(:disabled) {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.thumb-arrow:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ===== 手机端响应式 ===== */
@media (max-width: 768px) {
    .gallery-thumbnails-wrapper {
        gap: 6px;
    }

    .thumbnail {
        width: 60px;
        height: 60px;
        border-radius: 10px;
    }

    .thumb-arrow {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .gallery-thumbnails-slider {
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .thumbnail {
        width: 50px;
        height: 50px;
        border-radius: 8px;
    }

    .thumb-arrow {
        width: 26px;
        height: 26px;
        font-size: 11px;
    }

    .gallery-thumbnails-slider {
        gap: 6px;
    }
}

/* ===== 产品图库 - 手机端自适应 ===== */
.product-gallery {
    position: sticky;
    top: 100px;
    align-self: start;
    width: 100%;
}

.gallery-main {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
    border: 1px solid var(--border);
    position: relative;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 手机端取消粘性定位 */
@media (max-width: 992px) {
    .product-gallery {
        position: static;
    }
}

/* ===== 缩略图区域 - 修复溢出问题 ===== */
.gallery-thumbnails-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.gallery-thumbnails-container {
    flex: 1;
    overflow: hidden;
    position: relative;
    min-width: 0; /* 重要：防止flex子项溢出 */
}

.gallery-thumbnails-slider {
    display: flex;
    gap: 12px;
    transition: transform 0.3s ease;
    will-change: transform;
    width: fit-content;
}

.thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    background: #f5f5f5;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 左右箭头按钮 */
.thumb-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: white;
    border: 1px solid var(--border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.thumb-arrow:hover:not(:disabled) {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.thumb-arrow:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ===== 手机端响应式 - 修复溢出 ===== */
@media (max-width: 768px) {
    .gallery-thumbnails-wrapper {
        gap: 6px;
    }

    .thumbnail {
        width: 60px;
        height: 60px;
        border-radius: 10px;
    }

    .thumb-arrow {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .gallery-thumbnails-slider {
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .thumbnail {
        width: 55px;
        height: 55px;
        border-radius: 8px;
    }

    .thumb-arrow {
        width: 26px;
        height: 26px;
        font-size: 11px;
    }

    .gallery-thumbnails-slider {
        gap: 6px;
    }
}

/* ===== 颜色图片展示区域 ===== */
.product-colors-showcase {
    margin: 40px 0;
}

.showcase-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--text);
    position: relative;
    padding-bottom: 12px;
}

.showcase-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary);
}

.color-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
}

.color-showcase-item {
    text-align: center;
    transition: transform 0.3s ease;
}

.color-showcase-item:hover {
    transform: translateY(-5px);
}

.color-showcase-image {
    background: #f5f5f5;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    margin-bottom: 12px;
    border: 1px solid var(--border);
}

.color-showcase-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}

.color-showcase-item:hover .color-showcase-image img {
    transform: scale(1.05);
}

.color-showcase-caption {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

/* 响应式 */
@media (max-width: 768px) {
    .showcase-title {
        font-size: 1.2rem;
    }

    .color-showcase-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* ===== 相关产品区域样式 ===== */
.related-products {
    margin-top: 60px;
    margin-bottom: 40px;
}

.related-products .section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--text);
    position: relative;
    padding-bottom: 12px;
}

.related-products .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

/* 相关产品卡片 */
.related-item {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.related-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-light);
}

.related-item a {
    text-decoration: none;
    display: block;
}

/* 图片容器 */
.related-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: #f5f5f5;
    padding: 20px;
    transition: transform 0.3s ease;
}

.related-item:hover img {
    transform: scale(1.05);
}

/* 标题样式 */
.related-item h3 {
    padding: 15px 15px 20px;
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--text);
    text-align: justify;
    text-justify: inter-ideograph;
    transition: color 0.2s;
    border-top: 1px solid var(--border);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 65px;
}

.related-item:hover h3 {
    color: var(--primary);
}

/* 响应式 */
@media (max-width: 1200px) {
    .related-grid {
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .related-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .related-item h3 {
        font-size: 0.8rem;
        padding: 12px 12px 16px;
        min-height: 55px;
    }

    .related-item img {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .related-item h3 {
        font-size: 0.75rem;
        padding: 10px 10px 12px;
        min-height: 50px;
    }

    .related-item img {
        padding: 12px;
    }
}

/* ===== Size Chart 区域样式 ===== */
.size-chart-section {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 2px solid var(--border);
}

.size-chart-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--text);
    position: relative;
    padding-bottom: 12px;
}

.size-chart-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary);
}

.size-chart-content {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.95rem;
    overflow-x: auto;
}

.size-chart-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 12px;
}

.size-chart-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.size-chart-content th,
.size-chart-content td {
    padding: 12px;
    border: 1px solid var(--border);
    text-align: center;
}

.size-chart-content th {
    background: var(--bg-light);
    font-weight: 600;
}

/* 响应式 */
@media (max-width: 768px) {
    .size-chart-section {
        margin-top: 30px;
        padding-top: 25px;
    }

    .size-chart-title {
        font-size: 1.2rem;
    }

    .size-chart-content {
        font-size: 0.85rem;
    }

    .size-chart-content table {
        min-width: 500px;
    }
}

/* 评论区域头部 */
.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.reviews-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
}

.write-review-btn {
    padding: 8px 20px;
    font-size: 0.85rem;
}

/* 评分摘要样式 */
.reviews-summary {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    margin-bottom: 40px;
    padding: 30px;
    background: var(--bg-light);
    border-radius: 16px;
}

.average-rating {
    text-align: center;
}

.big-rating {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.rating-text {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
}

.average-rating .stars {
    font-size: 1.2rem;
    margin: 8px 0;
    color: #ffc107;
}

.total-reviews {
    font-size: 0.8rem;
    color: var(--text-lighter);
}

.rating-bars {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.rating-bar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
}

.rating-bar-item span:first-child {
    width: 55px;
    color: var(--text-light);
}

.rating-bar-item .bar {
    flex: 1;
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.rating-bar-item .bar div {
    height: 100%;
    background: var(--primary);
    border-radius: 4px;
}

.rating-bar-item span:last-child {
    width: 40px;
    color: var(--text-light);
}

/* 评论列表 */
.reviews-list {
    margin-bottom: 30px;
}

.review-item {
    padding: 25px;
    border-bottom: 1px solid var(--border);
}

.review-item:last-child {
    border-bottom: none;
}

.reviewer {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text);
}

.reviewer .verified {
    color: #28a745;
    font-size: 0.75rem;
    margin-left: 8px;
    font-weight: normal;
}

.review-date {
    font-size: 0.75rem;
    color: var(--text-lighter);
    margin-bottom: 8px;
}

.review-stars {
    color: #ffc107;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.review-item h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.review-item p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.9rem;
}

.review-images {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.review-images img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
}

.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-lighter);
}

.no-reviews {
    text-align: center;
    padding: 40px;
    background: var(--bg-light);
    border-radius: 12px;
}

.no-reviews i {
    font-size: 3rem;
    color: var(--text-lighter);
    margin-bottom: 15px;
}

.no-reviews p {
    color: var(--text-light);
}

.reviews-more {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.reviews-more .btn-outline {
    padding: 10px 28px;
    font-size: 0.85rem;
}

/* 响应式 */
@media (max-width: 768px) {
    .reviews-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .reviews-summary {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }

    .review-item {
        padding: 18px;
    }

    .review-item h4 {
        font-size: 0.95rem;
    }

    .review-item p {
        font-size: 0.85rem;
    }
}
/* ===== 图片预览弹窗样式 ===== */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.image-modal.show {
    display: flex;
}

.image-modal img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    z-index: 10001;
    font-weight: bold;
    transition: opacity 0.3s;
}

.image-modal-close:hover {
    opacity: 0.7;
}

/* 评论图片样式 */
.review-images {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.review-images img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s;
    border: 1px solid var(--border);
}

.review-images img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .review-images img {
        width: 60px;
        height: 60px;
    }

    .image-modal-close {
        top: 15px;
        right: 20px;
        font-size: 32px;
    }
}
/* 规格参数样式 - 图标+标签+数值 */
.product-specs-mini {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 25px;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-light);
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.spec-item i {
    color: var(--primary);
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

.spec-label {
    color: var(--text-lighter);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.spec-value {
    font-weight: 600;
    color: var(--text);
    font-size: 0.9rem;
    margin-left: auto;
}

/* 响应式 */
@media (max-width: 768px) {
    .product-specs-mini {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .spec-item {
        padding: 8px 12px;
    }

    .spec-label {
        font-size: 0.75rem;
    }

    .spec-value {
        font-size: 0.85rem;
    }
}

/* ===== 询盘表单区域（产品详情页） ===== */
.product-inquiry-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 60px 0;
    margin-top: 60px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* 容器宽度与整个页面内容宽度一致（继承全局 .container 宽度） */
.product-inquiry-section .container {
    max-width: none;      /* 移除固定宽度限制 */
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.product-inquiry-section h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    text-align: center;
    color: #1a1a2e;
}

.product-inquiry-section h3:after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin: 15px auto 0;
    border-radius: 2px;
}

.product-inquiry-section > .container > p {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
    font-size: 16px;
}

/* 表单栅格布局调整：PC端三个字段一行 */
@media (min-width: 768px) {
    .product-inquiry-section .row {
        display: flex;
        flex-wrap: wrap;
        margin: 0 -12px;
    }
    .product-inquiry-section [class*="col-"] {
        padding: 0 12px;
    }
    /* 前三个 col-md-6 改为三等分（如果原始HTML是 col-md-6，我们通过CSS强制宽度） */
    .product-inquiry-section .col-md-6 {
        width: 33.33333%;
        flex: 0 0 33.33333%;
    }
}
/* 提交按钮样式：居中，宽度适中 */
.product-inquiry-section .btn-primary {
    display: block;
    width: auto;
    min-width: 200px;
    max-width: 280px;
    margin: 0 auto;
    padding: 12px 28px;
    font-size: 1rem;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    letter-spacing: 1px;
}

.product-inquiry-section .btn-primary:hover {
    background: color-mix(in srgb, var(--primary) 80%, black);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.product-inquiry-section .btn-primary:active {
    transform: translateY(0);
}

.product-inquiry-section .btn-primary:disabled {
    background: #999;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 其他表单样式保持不变 */
.inquiry-form .form-group {
    margin-bottom: 20px;
}

.inquiry-form label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

.inquiry-form .form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #fff;
}

.inquiry-form .form-control:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,86,179,0.1);
}

/* Toast 提示样式 */
.toast-message {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(0,0,0,0.85);
    color: #fff;
    padding: 12px 24px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
    backdrop-filter: blur(8px);
}

.toast-message.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast-message.success {
    background: var(--primary);
    color: white;
}

.toast-message.error {
    background: #dc3545;
    color: white;
}

/* 产品卡片中的询价按钮 */
.product-footer .btn-inquire {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.product-footer .btn-inquire:hover {
    background: var(--primary);
    color: #fff;
    transform: translateX(3px);
}

/* 高亮动画 */
.product-inquiry-section.highlight {
    animation: highlightFlash 1s ease;
}

@keyframes highlightFlash {
    0% { background: #fff3cd; box-shadow: 0 0 0 0 rgba(255,193,7,0.5); }
    100% { background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
}

/* 移动端适配：恢复栅格为全宽，按钮全宽 */
@media (max-width: 767px) {
    .product-inquiry-section .col-md-6 {
        width: 100%;
        flex: 0 0 100%;
    }
    .product-inquiry-section .btn-primary {
        width: 100%;
        max-width: none;
    }
}

/* 强制 Message 字段和按钮各占一行，全宽显示 */
.product-inquiry-section .col-md-12 {
    width: 100%;
    flex: 0 0 100%;
    max-width: 100%;
}

.inquiry-form {
    padding-left: 40px;
    padding-right: 40px;
}

@media (max-width: 768px) {
    .inquiry-form {
        padding-left: 20px;
        padding-right: 20px;
    }
}

.price-inquire-btn {
    cursor: pointer;
}
.price-inquire-btn:hover {
    text-decoration: underline;
    color: var(--primary);
}

/* ===== 详情内容交错布局 ===== */
.description-content .detail-row {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
}

.description-content .detail-row-reverse {
    flex-direction: row-reverse;
}

.detail-media {
    flex: 1;
}

.detail-text {
    flex: 1;
}

.detail-video iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
}

.detail-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

.detail-text h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text);
}

.detail-text p {
    margin-bottom: 15px;
    line-height: 1.7;
    color: var(--text-light);
}

/* 移动端改为单列堆叠 */
@media (max-width: 768px) {
    .description-content .detail-row,
    .description-content .detail-row-reverse {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 40px;
    }
    .detail-text h3 {
        font-size: 1.2rem;
    }
}

/* ===== 颜色图片展示区域 - 横向滚动轮播 ===== */
.product-colors-showcase {
    margin: 40px 0 60px;
}

.showcase-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--text);
    position: relative;
    padding-bottom: 12px;
}

.showcase-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary);
}

.color-showcase-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.color-showcase-slider-container {
    flex: 1;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.color-showcase-slider-container::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.color-showcase-slider {
    display: flex;
    gap: 20px;
    width: fit-content;
}

.color-showcase-item {
    flex-shrink: 0;
    width: 240px;
    text-align: center;
    transition: transform 0.3s ease;
}

.color-showcase-item:hover {
    transform: translateY(-5px);
}

.color-showcase-image {
    background: #f5f5f5;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    margin-bottom: 12px;
    border: 1px solid var(--border);
}

.color-showcase-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}

.color-showcase-item:hover .color-showcase-image img {
    transform: scale(1.05);
}

.color-showcase-caption {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

.slider-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 1px solid #888;           /* 加深边框颜色（原浅色改为 #888） */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.slider-arrow i {
    color: #555;                      /* 加深图标颜色（原浅色改为 #555） */
    font-size: 1rem;
}

.slider-arrow:hover {
    background: #f5f5f5;              /* 可选：悬停时浅灰背景 */
    border-color: #666;
}

.slider-arrow:hover i {
    color: #333;
}

.slider-arrow:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* 响应式 */
@media (max-width: 768px) {
    .color-showcase-item {
        width: 140px;
    }
    .slider-arrow {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 480px) {
    .color-showcase-item {
        width: 150px;
    }
}