:root {
    --industrial-blue: #1E88E5 !important;
    --industrial-blue-dark: #1565C0 !important;
    --dark-gray: #2C3E50 !important;
    --light-gray: #F8F9FA !important;
    --border-gray: #E9ECEF !important;
    --text-primary: #212529 !important;
    --text-secondary: #6C757D !important;
    --text-light: #FFFFFF !important;
    --success-green: #28a745 !important;
    --spacing-unit: 6px !important; /* 基准间距单位 */
    --nav-height: 80px !important;
}

/* 1. 工业风标题栏（黄金比例高度） */
.product-header {
    background-color: var(--dark-gray) !important;
    padding: calc(var(--nav-height) + var(--spacing-unit) * 2) 0 calc(var(--spacing-unit) * 10) !important;
    position: relative !important;
    overflow: hidden !important;
    color: var(--text-light) !important;
    display: flex !important;
    align-items: flex-end !important;
    justify-content: center !important;
    min-height: 260px !important;
}

.product-header::before {
    content: '';
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") !important;
    opacity: 0.8 !important;
    z-index: 1 !important;
}

.product-header .container {
    position: relative !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    text-align: center !important; /* 容器文本居中 */
    z-index: 2 !important; /* 确保标题在纹理上层 */
    padding: 0 20px !important;
}

/* 核心优化：产品名称标题样式 */
.product-header h1 {
    font-size: clamp(1.8rem, 3vw, 2.8rem); /* 降低字体最大尺寸，优化适配系数 */
    font-weight: 800;
    line-height: 1.3; /* 微调行高，增强单行稳定性 */
    margin: 0 auto;
    padding-bottom: calc(var(--spacing-unit) * 1);
    position: relative;
    color: var(--text-light);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    max-width: 95%; /* 大幅放宽宽度限制，足够容纳短标题 */
    white-space: nowrap; /* 强制单行显示（短标题推荐，长标题可移除） */
    word-break: keep-all; /* 中文不拆分单词，避免断字 */
}

/* 标题底部装饰线（工业风细节） */
.product-header h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px; /* 装饰线宽度 */
    height: 3px; /* 装饰线高度 */
    background-color: var(--industrial-blue); /* 工业蓝，和主题呼应 */
    border-radius: 2px;
}

.product-header .lead {
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    color: var(--border-gray);
    opacity: 0.9;
    max-width: 900px;
    line-height: 1.5;
    margin: calc(var(--spacing-unit) * 1) auto 0; /* 和标题拉开间距 */
}

/* 2. 面包屑导航（精简版） */
.breadcrumb-nav {
    background-color: var(--light-gray);
    border-bottom: 1px solid var(--border-gray);
    padding: calc(var(--spacing-unit) * 1.5) 0;
}

.breadcrumb {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 calc(var(--spacing-unit) * 2.5);
    font-size: 0.9rem;
    background: transparent;
    border-radius: 0;
}

.breadcrumb a {
    color: var(--industrial-blue);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--industrial-blue-dark);
}

.breadcrumb-item.active {
    color: var(--text-secondary);
    font-weight: 500;
}

/* 3. 产品详情主体（黄金比例布局） */
.product-detail-wrap {
    padding: calc(var(--spacing-unit) * 8) 0; /* 优化上下内边距，更协调 */
    background-color: var(--text-light);
    /* 合并重复的product-detail-wrap样式 */
    padding: 40px 0;
    background-color: #f8f9fa;
}

.product-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 calc(var(--spacing-unit) * 2); /* 优化左右内边距 */
    /* 合并重复的product-detail-container样式 */
    padding: 0 20px;
}

.product-detail-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    /* 合并重复的product-detail-card样式 */
    display: flex;
    flex-wrap: wrap;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* ========== 核心修改：图片区（红框尺寸） ========== */
/* 合并所有重复的.product-img-col，设置红框尺寸 */
.product-img-col {
    flex: none !important; /* 取消百分比占比，固定红框尺寸 */
    width: 800px !important; /* 红框宽度：替换为实际红框像素值 */
    height: 500px !important; /* 红框高度：替换为实际红框像素值 */
    background-color: #f5f5f5 !important;
    overflow: hidden !important;
    /* 可选：居中显示（若需要） */
    margin: 0 auto;
}
/* 信息区样式（合并+适配红框） */
.product-info-col {
    flex: 1 !important; /* 自适应红框右侧剩余宽度 */
    min-width: 300px !important; /* 最小宽度，避免太窄 */
    padding: calc(var(--spacing-unit) * 4); /* 32px */
    /* 合并重复的product-info-col样式 */
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-detail-img {
    width: 100%;
    height: 100%;
    max-height: 600px;
    object-fit: cover;
    display: block;
}

/* 产品信息区样式 */
.product-name {
    font-size: clamp(1.5rem, 2vw, 1.8rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: calc(var(--spacing-unit) * 2);
    line-height: 1.3;
    /* 合并重复的product-name样式 */
    font-size: 28px;
    margin-bottom: 15px;
}

.product-category {
    display: inline-block;
    background-color: var(--industrial-blue);
    color: var(--text-light);
    padding: calc(var(--spacing-unit) * 0.75) calc(var(--spacing-unit) * 2); /* 6px 16px */
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: calc(var(--spacing-unit) * 4);
    /* 合并重复的product-category样式 */
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 30px;
}

/* 特性区域 */
.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: calc(var(--spacing-unit) * 2);
    display: flex;
    align-items: center;
    /* 合并重复的section-title样式 */
    font-size: 18px;
    margin-bottom: 20px;
    gap: 10px;
}

.section-title i {
    color: var(--industrial-blue);
    margin-right: calc(var(--spacing-unit) * 1);
    font-size: 1.2rem;
}

.feature-list {
    margin-bottom: calc(var(--spacing-unit) * 5); /* 40px */
    padding-left: 0;
    list-style: none;
    /* 合并重复的feature-list样式 */
    margin-bottom: 30px;
}

.feature-item {
    margin-bottom: calc(var(--spacing-unit) * 1.5); /* 12px */
    font-size: 0.95rem;
    color: var(--text-primary);
    display: flex;
    align-items: flex-start;
    line-height: 1.5;
    /* 合并重复的feature-item样式 */
    padding: 10px 0;
    color: #495057;
    font-size: 16px;
    border-bottom: 1px solid #f0f0f0;
    align-items: center;
    gap: 10px;
}

.feature-item i {
    color: var(--success-green);
    margin-right: calc(var(--spacing-unit) * 1);
    margin-top: 4px;
    flex-shrink: 0;
    /* 合并重复的feature-item i样式 */
    font-size: 14px;
}

/* 详情区域 */
.detail-section {
    background-color: var(--light-gray);
    border-left: 3px solid var(--industrial-blue);
    padding: calc(var(--spacing-unit) * 3); /* 24px */
    border-radius: 4px;
    margin-bottom: calc(var(--spacing-unit) * 5); /* 40px */
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    white-space: pre-line;
}

/* 核心优化：产品详情区限制4行，可滚动 */
.detail-section-wrapper {
    max-height: calc(16px * 1.8 * 4); /* 16px字体 + 1.8行高 + 4行 = 固定高度 */
    overflow-y: auto; /* 垂直滚动 */
    padding-right: 8px; /* 给滚动条留空间 */
    margin-bottom: 40px;
}

.detail-section {
    color: #6c757d;
    font-size: 16px;
    line-height: 1.8; /* 统一行高，确保4行高度精准 */
    word-break: break-all; /* 防止长文本溢出 */
}

/* 美化滚动条（Chrome/Safari/Edge） */
.detail-section-wrapper::-webkit-scrollbar {
    width: 6px; /* 滚动条宽度 */
}

.detail-section-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.detail-section-wrapper::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.detail-section-wrapper::-webkit-scrollbar-thumb:hover {
    background: #1E88E5; /* 滚动条hover变色，和主色调统一 */
}

/* 美化滚动条（Firefox） */
.detail-section-wrapper {
    scrollbar-width: thin;
    scrollbar-color: #ccc #f1f1f1;
}

/* 返回按钮 */
.back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border: 1px solid var(--industrial-blue);
    color: var(--industrial-blue);
    padding: calc(var(--spacing-unit) * 1.25) calc(var(--spacing-unit) * 3); /* 10px 24px */
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    /* 合并重复的back-btn样式 */
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    width: fit-content;
}

.back-btn:hover {
    background-color: var(--industrial-blue);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 136, 229, 0.2);
}

.back-btn i {
    margin-right: calc(var(--spacing-unit) * 1);
}

/* 轮播容器样式 */
#productCarousel {
    width: 100%;
    height: 100%;
    border-radius: 8px 0 0 8px; /* 与原有卡片圆角匹配 */
    overflow: hidden;
}

/* 轮播图片样式 */
.carousel-item img {
    height: 100%;
    object-fit: cover; /* 保持图片比例，填充容器 */
}

/* 合并所有重复的custom-carousel样式 */
.custom-carousel {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.custom-carousel .carousel-slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease-in-out; /* 顺滑切换动画（保留最优版） */
}

.custom-carousel .carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
}

.custom-carousel .carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease; /* 保留hover动效 */
}

/* 轮播按钮：统一为蓝色系美化版 */
.custom-carousel .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px; /* 保留美化版尺寸 */
    height: 48px;
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid #1E88E5;
    color: #1E88E5;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.custom-carousel .carousel-prev {
    left: 20px; /* 保留美化版位置 */
}

.custom-carousel .carousel-next {
    right: 20px; /* 保留美化版位置 */
}

.custom-carousel .carousel-btn:hover {
    opacity: 1;
    background-color: #1E88E5;
    color: #fff;
    transform: translateY(-50%) scale(1.05);
}

/* 轮播指示器：统一为美化版 */
.custom-carousel .carousel-indicators {
    position: absolute;
    bottom: 20px; /* 保留美化版位置 */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px; /* 保留美化版间距 */
    z-index: 10;
}

.custom-carousel .indicator-dot {
    width: 12px; /* 保留美化版尺寸 */
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    border: 1px solid #fff; /* 保留美化版边框 */
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-carousel .indicator-dot.active {
    background-color: #1E88E5;
    transform: scale(1.2); /* 保留美化版动效 */
}

/* 价格样式 */
.product-price-wrapper {
    margin: 8px 0;
    /* 新增：让容器占满父元素宽度（确保居中范围） */
    /*width: 100%;*/
    /*!* 新增：让内部价格元素水平居中 *!*/
    /*text-align: center;*/
}

.product-price-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--industrial-blue) !important; /* 工业蓝 */
    background-color: #eff6ff !important; /* 浅蓝背景 */
    padding: 4px 12px;
    border-radius: 8px;
    border: 1px solid #dbeafe !important; /* 浅蓝边框 */
    box-shadow: 0 2px 4px rgba(30, 136, 229, 0.1) !important;
    line-height: 1.4;
    display: inline-block;
}

/* 响应式适配 */
@media (max-width: 992px) {
    /* 大屏响应式：红框自动缩放 */
    .product-img-col {
        width: 100% !important;
        height: 400px !important;
    }

    .product-info-col {
        min-width: 100% !important;
    }

    /* 原有992px响应式 */
    .product-detail-card {
        flex-direction: row;
    }

    .product-img-col {
        width: calc(5 / 12 * 100%); /* 5:7 黄金比例 */
    }

    .product-info-col {
        width: calc(7 / 12 * 100%);
    }
}

@media (max-width: 768px) {
    /* 中屏响应式：红框进一步缩小 */
    .product-img-col {
        width: 100% !important;
        height: 350px !important;
    }

    .product-info-col {
        flex: 0 0 100% !important;
        padding: 30px 20px !important;
    }

    .product-name {
        font-size: 24px !important;
    }

    .custom-carousel .carousel-btn {
        width: 40px !important;
        height: 40px !important;
        font-size: 16px !important;
    }

    /* 移动端详情区适配 */
    .detail-section-wrapper {
        max-height: calc(15px * 1.8 * 4); /* 移动端字体稍小，保持4行 */
    }

    .detail-section {
        font-size: 15px !important;
    }

    /* 原有768px响应式 */
    .product-detail-card {
        flex-direction: row;
    }

    .product-img-col {
        width: 50%;
    }

    .product-info-col {
        width: 50%;
    }

    .product-detail-img {
        max-height: none;
    }
}

@media (max-width: 576px) {
    .product-header {
        padding: calc(var(--spacing-unit) * 4) 0 calc(var(--spacing-unit) * 3) !important;
    }

    .product-header h1 {
        font-size: clamp(1.8rem, 4vw, 2.5rem); /* 小屏标题略小 */
        max-width: 90%;
    }

    .product-detail-wrap {
        padding: calc(var(--spacing-unit) * 5) 0;
    }

    .product-info-col {
        padding: calc(var(--spacing-unit) * 3);
    }

    .detail-section {
        padding: calc(var(--spacing-unit) * 2);
    }

    /* 移动端价格样式 */
    .product-price-value {
        font-size: 1.1rem;
        padding: 3px 10px;
        border-radius: 6px;
    }
}

/* 移动端适配轮播 */
/*@media (max-width: 768px) {*/
/*    #productCarousel {*/
/*        border-radius: 8px 8px 0 0; !* 移动端卡片纵向排列，调整圆角 *!*/
/*    }*/
/*}*/
/* 仿JD/淘宝核心布局样式 */
/* 1. 全局布局重置 */
.product-detail-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* 2. 左侧详情区（轮播+ProductDetail）- 随滚动下滑 */
.product-left-col {
    width: 70%;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* 左侧轮播容器 */
.product-img-col {
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ProductDetail详情区样式（仿JD详情模块） */
.product-detail-modules {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.detail-module-item {
    margin-bottom: 30px;
}

.detail-module-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #1E88E5; /* 仿JD红色分割线 */
}

.detail-module-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #666;
    white-space: pre-line; /* 保留换行符 */
}

/* 3. 右侧固定信息区 - 滚轮下滑时固定 */
.product-right-col {
    width: 30%;
    position: sticky; /* 核心：固定在视口 */
    top: 20px; /* 距离顶部20px */
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    height: fit-content; /* 自适应高度 */
}

/* 右侧信息区样式优化（仿JD/淘宝） */
.product-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
}

.product-category {
    display: inline-block;
    background: #f5f5f5;
    color: #999;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

/* 价格样式优化 */
.product-price-wrapper {
    margin: 15px 0;
}

.product-price-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1E88E5; /* 仿JD红色价格 */
}

/* 特性列表样式 */
.section-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin: 20px 0 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-list {
    padding-left: 0;
    margin: 0;
}

.feature-item {
    list-style: none;
    margin: 8px 0;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-item i {
    color: #1E88E5;
}

/* 返回按钮样式 */
.back-btn {
    background-color: var(--industrial-blue);
    color: var(--text-light) !important;
    border-color: var(--industrial-blue);

    /* 文字强制居中 */
    text-align: center;

    /* 调整内边距，让按钮更饱满 */
    padding: 12px 0;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s ease;
    margin-top: auto; /* 按钮始终固定在卡片底部 */
    width: 100%; /* 占满卡片宽度，确保蓝框铺满 */
}

.back-btn:hover {
    background-color: #1565C0; /* 深色工业蓝，增强交互感 */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(30, 136, 229, 0.2);
}

/* 响应式适配（手机端变回单列） */
@media (max-width: 992px) {
    .product-detail-wrap {
        flex-direction: column;
    }

    .product-left-col, .product-right-col {
        width: 100%;
    }

    .product-right-col {
        position: static; /* 手机端取消固定 */
        margin-top: 20px;
    }
}
/* 仿淘宝标签导航栏样式 */
.product-tab-nav {
    border-bottom: 1px solid #eee;
    background-color: #fff;
    padding: 10px 0;
}
.tab-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px; /* 标签间距 */
    align-items: center;
}
.tab-nav-item {
    font-size: 16px;
    color: #333;
    cursor: pointer;
    padding: 10px 0;
    position: relative;
}
/* 选中态样式（下划线+橙色） */
.tab-nav-item.active {
    color: #1E88E5;
    font-weight: 600;
}
.tab-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #1E88E5;
}
/* 评价数样式 */
.tab-nav-item small {
    color: #999;
    font-weight: normal;
}
