body {
    color: var(--text-dark);
    background-color: var(--gray-light);
    line-height: 1.6;
}

h1 {
    font-size: 48px!important;
}

.product-detail-hero {
    padding: 30px 0;
    border-radius: 8px;
    margin-bottom: 40px;
}

.product-detail-product-main {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.product-detail-product-images {
    flex: 1;
    display: flex;
    gap: 15px;
    align-items: stretch;
}

.product-detail-main-image-container {
    flex: 3;
    width: 100%;
    min-height: 560px; /* 增加高度以适应6个缩略图 */
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-detail-main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition);
}

.product-detail-thumbnail-container {
    flex: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-detail-thumbnail {
    width: 100px;
    height: 100px;
    cursor: pointer;
    border-radius: 6px;
    overflow: hidden;
    opacity: 0.7;
    transition: var(--transition);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-detail-thumbnail.active {
    opacity: 1;
    border: 2px solid var(--primary);
}

.product-detail-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-detail-thumbnail:hover {
    opacity: 1;
}

.product-detail-product-info {
    flex: 1;
    padding: 20px 0;
}

.product-detail-product-title {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.product-detail-product-description {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.8;
}

.product-detail-product-specs {
    margin-bottom: 30px;
}

.product-detail-spec-item {
    margin-bottom: 15px;
}

.product-detail-spec-label {
    font-weight: 600;
    color: var(--text-dark);
    display: inline-block;
}

.product-detail-product-colors {
    margin-bottom: 30px;
}

.product-detail-colors-title {
    font-weight: 600;
    margin-bottom: 15px;
}

.product-detail-color-options {
    display: flex;
    gap: 15px;
}

.product-detail-color-option {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.product-detail-color-option.active {
    border-color: var(--primary);
    transform: scale(1.1);
}

.product-detail-color-black {
    background-color: #000;
}

.product-detail-color-white {
    background-color: #fff;
    border: 1px solid #ddd;
}

.product-detail-color-magenta {
    background-color: red;
}

.product-detail-color-yellow {
    background-color: yellow;
}

.product-detail-color-cyan {
    background-color: blue;
}

.product-detail-inquiry-btn {
    background-color: var(--primary);
    color: var(--white);
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 20px;
    width: 100%;
    max-width: 300px;
}

.product-detail-inquiry-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.product-detail-product-details {
    padding: 40px 0;
}

.product-detail-section-title {
    font-size: 28px;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    padding-bottom: 15px;
}

.product-detail-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary);
}

.product-detail-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 100px;
}

.product-detail-feature-card {
    background-color: var(--primary);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    color: var(--white);
}

.product-detail-feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.product-detail-feature-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary);
    font-size: 24px;
}

.product-detail-feature-title {
    font-size: 20px;
    margin-bottom: 15px;
}

.product-detail-feature-desc {
    color: var(--white);
}


/* 表格核心样式：无DIV、最大宽度1600px、横向滚动、居中 */
table {
    max-width: 1600px; /* 最大宽度限制 */
    margin: 0 auto;    /* PC端居中显示 */
    width: 100%;       /* 适配父容器宽度 */
    border-collapse: collapse; /* 合并边框，消除间隙 */
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    /* 核心：表格自身实现横向滚动，替代原DIV的overflow-x */
    display: block;
    overflow-x: auto;
    white-space: nowrap; /* 防止单元格内容换行，保证滚动有效性 */
}

/* 表格主体：恢复块级布局，保证单元格正常排列 */
tbody {
    display: table;
    width: 100%; /* 继承表格宽度，保证两列等宽计算准确 */
}

/* 单元格核心：两列严格平分宽度（各50%），统一样式 */
td {
    width: 50%;        /* 关键：两列平方宽度，各占50% */
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    text-align: left;  /* 内容左对齐，提升可读性 */
}

/* 隔行换色，提升内容可读性 */
tr:nth-child(odd) {
    background-color: #fafafa;
}

/* 最后一行取消底部边框，布局更整洁 */
tr:last-child td {
    border-bottom: none;
}

/* 单元格hover交互效果，呼应滚动条颜色 */
td:hover {
    background-color: #fef5f6;
    transition: background-color 0.2s ease;
}

/* ========== 自定义滚动条：颜色#e6002d ========== */
/* 滚动条整体（横向高度） */
table::-webkit-scrollbar {
    height: 6px;
}
/* 滚动条轨道 */
table::-webkit-scrollbar-track {
    background-color: #f0f0f0;
    border-radius: 3px;
}
/* 滚动条滑块（核心颜色#e6002d） */
table::-webkit-scrollbar-thumb {
    background-color: #e6002d;
    border-radius: 3px;
}
/* 滑块hover加深，提升交互反馈 */
table::-webkit-scrollbar-thumb:hover {
    background-color: #c90027;
        }



/* 优化对比表格的滚动体验 */
.product-detail-comparison {
    margin-bottom: 100px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* 平滑滚动 */
}

.product-detail-comparison::-webkit-scrollbar {
    height: 8px;
}

.product-detail-comparison::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.product-detail-comparison::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.product-detail-comparison::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.product-detail-comparison-wrapper {
    min-width: 768px; /* 确保在小屏幕上有滚动效果 */
}

.product-detail-comparison-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.product-detail-comparison-table th,
.product-detail-comparison-table td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
    white-space: nowrap; /* 防止内容换行 */
}

.product-detail-comparison-table th {
    background-color: var(--gray-light);
    font-weight: 600;
    position: sticky;
    left: 0; /* 首列固定 */
    z-index: 2;
}

.product-detail-comparison-table tr:last-child td {
    border-bottom: none;
}

.product-detail-comparison-table .highlight {
    color: var(--primary);
    font-weight: 600;
}

.product-detail-order-process {
    margin-bottom: 100px;
}

.product-detail-process-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    flex-wrap: wrap;
    gap: 20px;
}

.product-detail-process-steps::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 50px;
    right: 50px;
    height: 2px;
    background-color: var(--primary-light);
    z-index: 1;
}

.product-detail-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
    min-width: 180px;
}

.product-detail-step-number {
    width: 60px;
    height: 60px;
    background-color: var(--white);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--primary);
    margin: 0 auto 20px;
}

.product-detail-step-title {
    font-weight: 600;
    margin-bottom: 10px;
}

.product-detail-step-desc {
    color: var(--text-light);
    font-size: 14px;
}

.product-detail-faq {
    max-width: 1600px;
    margin: 0 auto;
}

.product-detail-faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.product-detail-faq-question {
    background-color: var(--white);
    padding: 15px 20px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-detail-faq-question::after {
    content: '+';
    color: var(--primary);
    font-size: 24px;
    transition: var(--transition);
}

.product-detail-faq-item.active .product-detail-faq-question::after {
    transform: rotate(45deg);
}

.product-detail-faq-answer {
    background-color: var(--white);
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
}

.product-detail-faq-item.active .product-detail-faq-answer {
    padding: 20px;
    max-height: 300px;
}

/* 移动端轮播图样式 */
.product-detail-mobile-carousel {
    display: none;
    position: relative;
    aspect-ratio: 1 / 1;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    touch-action: pan-y;
    border: 1px solid var(--primary);
}

.product-detail-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: var(--transition);
    transform: translateX(0);
}

.product-detail-carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.product-detail-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail-carousel-nav {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.product-detail-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: var(--transition);
}

.product-detail-carousel-dot.active {
    background-color: var(--primary);
    transform: scale(1.2);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .product-detail-product-main {
        flex-direction: column;
    }

    .product-detail-product-images {
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }
}


/* 移动端下单流程每排显示2个 */
@media (max-width: 768px) {
    .product-detail-product-images {
        display: none;
    }

    .product-detail-mobile-carousel {
        display: block;
    }

    .product-detail-product-title {
        font-size: 26px;
    }

    .product-detail-section-title {
        font-size: 24px;
    }

    .product-detail-process-steps {
        justify-content: center;
        gap: 30px 20px;
    }

    .product-detail-step {
        flex: 0 0 calc(50% - 20px);
        max-width: calc(50% - 20px);
    }

    .product-detail-process-steps::before {
        display: none;
    }

    /* 添加步骤之间的连接线 */
    .product-detail-step:nth-child(2n+1)::after {
        content: '';
        position: absolute;
        top: 30px;
        right: -20px;
        width: 20px;
        height: 2px;
        background-color: var(--primary-light);
    }
    
    /* 奇数行下方的连接线 */
    .product-detail-step:nth-child(-n+2)::before {
        content: '';
        position: absolute;
        bottom: -25px;
        left: 30px;
        width: 2px;
        height: 25px;
        background-color: var(--primary-light);
    }
    .product-detail-feature-card {
        padding: 5px 5px;
        text-align: center;
    }
    .product-detail-feature-icon {
        margin: 0 auto;
    }
}

/* 小屏手机优化 */
@media (max-width: 480px) {
    .product-detail-inquiry-btn {
        width: 100%;
        max-width: none;
    }
    
    /* 极小屏幕下核心优势可调整为1个 */
    @media (max-width: 360px) {
    .product-detail-features {
        grid-template-columns: 1fr;
    }
    
    /* 极小屏幕下单流程每排1个 */
    .product-detail-step {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .product-detail-step:nth-child(2n+1)::after {
        display: none;
    }
    
    .product-detail-step:not(:last-child)::before {
        content: '';
        position: absolute;
        bottom: -25px;
        left: 30px;
        width: 2px;
        height: 25px;
        background-color: var(--primary-light);
    }
    }
}


/* 相关产品 */
.related-section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.related-section-title h2 {
    font-size: 2.5rem;
    color: #222;
    display: inline-block;
    padding-bottom: 15px;
}

.related-section-title h2:after {
    content: '';
    position: absolute;
    width: 70px;
    height: 4px;
    background-color: var(--primary);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.related-product-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(230, 0, 45, 0.1);
}

.related-product-image-link {
    display: block;
    width: 100%;
    height: 0;
    padding-bottom: 100%; /* 保持正方形比例 */
    position: relative;
    overflow: hidden;
    background-color: #f5f5f5;
}

.related-product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-product-card:hover .related-product-image {
    transform: scale(1.05);
}

.related-product-info {
    padding: 25px 20px;
}

.related-product-title-link {
    text-decoration: none;
    color: #222;
    display: block;
    margin-bottom: 10px;
}

.related-product-title {
    font-size: 1.3rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.related-product-title-link:hover .related-product-title {
    color: var(--primary);
}

.related-product-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .related-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .related-products-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .related-section-title h2 {
        font-size: 2rem;
    }

    .related-product-info {
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    .related-section-title h2 {
        font-size: 1.8rem;
    }

    .related-product-title {
        font-size: 1.2rem;
    }
}

/* 产品列表只显示一行 */
.related-products-container {
    overflow: hidden;
}