/* 产品详情页样式 - 简洁版 */
/* 所有类名以 pd- 前缀开头，避免与 product.css 冲突 */

/* 产品详情区 */
.pd-section {
    padding: 50px 0 60px;
    background: #fafbfc;
}

.pd-section .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

/* 左右布局 */
.pd-layout {
    display: flex;
    gap: 30px;
}

/* 左侧内容区 */
.pd-main {
    flex: 1;
    min-width: 0;
}

/* 产品主图 */
.pd-cover {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    margin-bottom: 30px;
}

.pd-cover img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 500px;
    object-fit: cover;
}

/* 产品信息框 */
.pd-info-box {
    background: #fff;
    border-radius: 16px;
    padding: 35px 40px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    text-align: center;
}

.pd-name {
    font-size: 28px;
    color: #333;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
}

.pd-subtitle {
    font-size: 15px;
    color: #666;
    line-height: 1.8;
    padding: 15px 20px;
    background: #f0f7f7;
    border-radius: 10px;
}

/* 产品详情内容 */
.pd-content {
    background: #fff;
    border-radius: 16px;
    padding: 40px 50px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    line-height: 2;
    color: #444;
    font-size: 15px;
}

.pd-content p {
    margin-bottom: 20px;
}

.pd-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 25px 0;
    display: block;
}

.pd-content h2,
.pd-content h3,
.pd-content h4 {
    color: #333;
    margin: 30px 0 15px;
    font-weight: 600;
}

.pd-content h2 {
    font-size: 22px;
}

.pd-content h3 {
    font-size: 19px;
}

.pd-content h4 {
    font-size: 17px;
}

/* 上下篇导航 - 使用 common.css 中的 .post-nav 统一样式 */
.pd-main .post-nav {
    margin-top: 25px;
}

/* 右侧侧边栏 */
.pd-sidebar {
    width: 320px;
    flex-shrink: 0;
}

/* 侧边栏盒子 */
.pd-sidebar-box {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

.pd-sidebar-title {
    font-size: 17px;
    color: #333;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pd-sidebar-title i {
    color: #09b6aa;
}

/* 产品分类列表 */
.pd-category-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.pd-category-item {
    border-bottom: 1px solid #f5f5f5;
}

.pd-category-item:last-child {
    border-bottom: none;
}

.pd-category-main {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 0;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s;
}

.pd-category-main:hover {
    color: #09b6aa;
}

.pd-category-main i {
    color: #09b6aa;
    font-size: 18px;
}

/* 子分类 */
.pd-category-sub {
    padding-left: 28px;
    padding-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pd-category-sub a {
    font-size: 13px;
    color: #666;
    text-decoration: none;
    padding: 6px 0;
    transition: all 0.3s;
    position: relative;
    padding-left: 12px;
}

.pd-category-sub a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: #ccc;
    border-radius: 50%;
    transition: all 0.3s;
}

.pd-category-sub a:hover {
    color: #09b6aa;
}

.pd-category-sub a:hover::before {
    background: #09b6aa;
}

/* 侧边栏联系区 */
.pd-sidebar-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #555;
}

.pd-sidebar-contact p i {
    color: #09b6aa;
}

.pd-sidebar-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: #09b6aa;
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-size: 15px;
    margin-top: 15px;
    transition: all 0.3s;
}

.pd-sidebar-btn:hover {
    background: #08a89d;
    color: #fff;
}

/* 响应式 */
@media (max-width: 1199px) {
    .pd-sidebar {
        width: 280px;
    }
    
    .pd-info-box {
        padding: 25px 30px;
    }
    
    .pd-name {
        font-size: 26px;
    }
    
    .pd-content {
        padding: 30px 35px;
    }
}

@media (max-width: 991px) {
    .pd-section {
        padding: 35px 0 45px;
    }
    
    .pd-section .container {
        padding: 0 20px;
    }
    
    /* 991px以下隐藏侧边栏 */
    .pd-sidebar {
        display: none;
    }
    
    .pd-cover {
        border-radius: 12px;
    }
    
    .pd-info-box {
        padding: 25px 30px;
        border-radius: 12px;
    }
    
    .pd-name {
        font-size: 24px;
    }
    
    .pd-subtitle {
        font-size: 14px;
    }
    
    .pd-content {
        padding: 30px 35px;
        border-radius: 12px;
    }
    
    .pd-content h2 {
        font-size: 20px;
    }
    
    .pd-content h3 {
        font-size: 17px;
    }
}

@media (max-width: 767px) {
    .pd-section {
        padding: 25px 0 35px;
    }
    
    .pd-section .container {
        padding: 0 15px;
    }
    
    .pd-sidebar {
        display: none;
    }
    
    .pd-cover {
        border-radius: 10px;
        margin-bottom: 20px;
    }
    
    .pd-info-box {
        padding: 20px 22px;
        border-radius: 10px;
        margin-bottom: 20px;
    }
    
    .pd-name {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .pd-subtitle {
        font-size: 13px;
        padding: 12px 15px;
    }
    
    .pd-content {
        padding: 25px;
        border-radius: 10px;
        font-size: 14px;
        line-height: 1.9;
    }
    
    .pd-content img {
        margin: 20px 0;
    }
}
