/* 产品页面专用样式 */

/* 主容器 */
.product-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px 50px;
    background-color: #fff;
    color: #333;
    position: relative; /* 为固定定位提供参考 */
}

/* 面包屑导航 */
.product-breadcrumb {
    padding: 10px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.breadcrumb-wrapper {
    font-size: 14px;
    color: #666;
}

.breadcrumb-wrapper a {
    color: #666;
    text-decoration: none;
}

.breadcrumb-wrapper a:hover {
    color: #EF1132;
}

/* 文章标题区域 */
.product-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.product-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #222;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    font-size: 14px;
    color: #888;
}

.publish-date {
    margin-right: 20px;
}

.share-buttons {
    display: flex;
    align-items: center;
}

.share-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #f5f5f5;
    color: #666;
    margin-left: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-icon:hover {
    background-color: #EF1132;
    color: white;
}

/* 左右布局容器 */
.product-layout {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
}

/* 左侧主要内容区域 */
.product-main-content {
    flex: 1;
    min-width: 0; /* 防止溢出 */
}

.product-content {
    line-height: 1.8;
    color: #333;
}

.product-section {
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid #eee;
}

.product-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.product-section h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #222;
    position: relative;
    padding-left: 15px;
}

.product-section h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 20px;
    background-color: #EF1132;
}

.product-image {
    margin-bottom: 20px;
    text-align: center;
}

.product-image img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-description h3 {
    font-size: 20px;
    color: #EF1132;
    margin-bottom: 15px;
}

.product-description p {
    margin-bottom: 20px;
    text-align: justify;
}

/* 亮点区块 */
.highlights-box {
    background-color: #f9f9f9;
    border-left: 4px solid #EF1132;
    padding: 20px 25px;
    margin: 30px 0;
    border-radius: 0 4px 4px 0;
}

.highlights-box h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.highlights-box ul {
    padding-left: 20px;
}

.highlights-box li {
    margin-bottom: 10px;
    list-style-type: disc;
}

.highlights-box li strong {
    color: #333;
}

/* 右侧边栏 - 固定不随页面滚动 */
.product-sidebar {
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    top: 100px; /* 距离顶部的距离，确保在滚动时有合适的位置 */
    align-self: flex-start; /* 确保元素从顶部开始对齐 */
    max-height: calc(100vh - 120px); /* 最大高度，避免在小屏幕上溢出 */
    overflow-y: auto; /* 内容过多时可滚动 */
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0,0,0,0.08);
}

.sidebar-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 2px solid #EF1132;
}

.sidebar-menu {
    margin-bottom: 10px;
}

.sidebar-menu ul {
    list-style: none;
    padding: 0;
}

.sidebar-item {
    margin-bottom: 8px;
}

.sidebar-item a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    text-decoration: none;
    color: #333;
    background-color: #f8f8f8;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
    border-radius: 0 4px 4px 0;
}

.sidebar-item a:hover {
    background-color: #f0f0f0;
    border-left-color: #f0a0a0;
}

.sidebar-item.active a {
    background-color: #f5f5f5;
    border-left-color: #EF1132;
    color: #EF1132;
}

.sidebar-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    margin-right: 10px;
}

.sidebar-text {
    font-size: 15px;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .product-layout {
        flex-direction: column-reverse;
    }

    .product-sidebar {
        width: 100%;
        position: static; /* 在移动设备上不再固定 */
        margin-bottom: 30px;
        max-height: none;
        box-shadow: none;
        padding: 0;
    }

    .sidebar-menu ul {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .sidebar-item {
        flex: 1;
        min-width: 45%;
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .product-page-container {
        padding: 70px 15px 40px;
    }
    
    .product-header h1 {
        font-size: 24px;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .publish-date {
        margin-bottom: 10px;
    }
    
    .product-section h2 {
        font-size: 22px;
    }
    
    .product-description h3 {
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .sidebar-menu ul {
        flex-direction: column;
    }

    .sidebar-item {
        width: 100%;
    }
    
    .product-header h1 {
        font-size: 22px;
    }
    
    .highlights-box {
        padding: 15px;
    }
} 