/* ========================================
   产品详情页专用样式
   ======================================== */

/* 面包屑区域 */
.breadcrumb-section {
    background: #f8f9fa;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.breadcrumb-container {
    width: 72%;
    max-width: 1400px;
    margin: 0 auto;
}

.breadcrumb-section .breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
    flex-wrap: wrap;
}

.breadcrumb-section .breadcrumb-icon svg {
    width: 16px;
    height: 16px;
}

.breadcrumb-section .breadcrumb-link {
    color: #f5a623;
    text-decoration: none;
}

.breadcrumb-section .breadcrumb-link:hover {
    text-decoration: underline;
}

.breadcrumb-section .breadcrumb-separator {
    color: #ccc;
}

.breadcrumb-section .breadcrumb-current {
    color: #333;
    font-weight: 500;
}

/* 产品页面容器 */
#product-content {
    padding: 30px 0;
    background: #f5f5f5;
    min-height: 500px;
}

.product-container {
    width: 72%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 30px;
}

/* 左侧边栏 */
.product-sidebar {
    width: 260px;
    flex-shrink: 0;
}

/* 侧边栏菜单 */
.sidebar-menu {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.menu-title {
    background: linear-gradient(135deg, #ff8c00 0%, #da7501 100%);
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    padding: 15px 20px;
    margin: 0;
    letter-spacing: 2px;
}

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

.menu-list li {
    border-bottom: 1px solid #f0f0f0;
}

.menu-list li:last-child {
    border-bottom: none;
}

/* 菜单默认样式 */
.menu-link {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    background: #ffffff;
    color: #333333;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s;
}

/* 菜单悬停样式 */
.menu-link:hover {
    background: #ffffff;
    color: #ff8c00;
    padding-left: 25px;
}

/* 菜单激活状态 */
.menu-link.active {
    background: #ffffff;
    color: #ff8c00;
    font-weight: 600;
}

.menu-icon {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    margin-right: 12px;
    flex-shrink: 0;
}

.menu-link.active .menu-icon {
    background: #ff8c00;
}

.menu-link:hover .menu-icon {
    background: #ff8c00;
}

/* 联系我们板块 */
.sidebar-contact {
    background: #fff;
    border-radius: 8px;
    padding: 10px 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.contact-title {
    background: linear-gradient(135deg, #ff8c00 0%, #da7501 100%);
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    padding: 12px;
    margin: -20px -10px 20px -10px;
    border-radius: 8px 8px 0 0;
}

.contact-info {
    /* 不设置任何样式，完全保留编辑器原始格式 */
}

.contact-item {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #eee;
}

.contact-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.contact-label {
    color: #999;
    display: block;
    margin-bottom: 3px;
}

.contact-value {
    color: #333;
    font-weight: 500;
}

/* 右侧主内容区 */
.product-main {
    flex: 1;
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* 产品标题 */
.product-header h1 {
    font-size: 28px;
    color: #333;
	text-align: center;
    margin: 0 0 15px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #f5a623;
    line-height: 1.4;
}

.product-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #999;
    margin-bottom: 25px;
}

.meta-item {
    display: flex;
    align-items: center;
	text-align: center;
}

/* 产品图片画廊 */
.product-gallery {
    margin-bottom: 30px;
}

.gallery-main {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 8px;
    background: #f8f9fa;
    margin-bottom: 15px;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.gallery-thumbs::-webkit-scrollbar {
    height: 6px;
}

.gallery-thumbs::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.gallery-thumbs::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.thumb-item {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s;
    flex-shrink: 0;
    border: 2px solid transparent;
}

.thumb-item:hover {
    opacity: 1;
}

.thumb-item.active {
    opacity: 1;
    border-color: #f5a623;
}

/* 产品详情内容 */
.product-detail-content {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 30px;
}

.product-detail-content p {
    margin-bottom: 15px;
    text-indent: 2em;
}

.product-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 10px 0;
}

.product-detail-content h2 {
    font-size: 20px;
    color: #333;
    margin: 20px 0 15px 0;
    padding-left: 10px;
    border-left: 3px solid #f5a623;
}

.product-detail-content h3 {
    font-size: 16px;
    color: #555;
    margin: 15px 0 10px 0;
}

.product-detail-content ul,
.product-detail-content ol {
    padding-left: 25px;
    margin-bottom: 15px;
}

.product-detail-content li {
    margin-bottom: 8px;
}

/* 上一条/下一条导航 */
.product-nav {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.nav-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.nav-item {
    flex: 1;
}

.nav-label {
    font-size: 12px;
    color: #999;
    display: block;
    margin-bottom: 5px;
}

.nav-link {
    font-size: 14px;
    color: #333;
    text-decoration: none;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-link:hover {
    color: #f5a623;
    text-decoration: underline;
}

/* 行业资讯模块 */
.product-news {
    padding-top: 25px;
    border-top: 2px solid #eee;
}

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

.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-item {
    padding: 12px 0;
    border-bottom: 1px dashed #eee;
}

.news-item:last-child {
    border-bottom: none;
}

.news-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
}

.news-link:hover {
    color: #f5a623;
}

.news-title-text {
    flex: 1;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 15px;
}

.news-date {
    font-size: 12px;
    color: #999;
    flex-shrink: 0;
}

/* 移动端响应式 */
@media (max-width: 768px) {
    .breadcrumb-container,
    .product-container {
        width: 100%;
        padding: 0 8px;
    }

    /* 移动端详情模块上间距5px */
    .product-container {
        flex-direction: column;
        gap: 2px;
    }

    .product-sidebar {
        width: 100%;
    }

    .menu-title {
        font-size: 15px;
        padding: 12px 15px;
    }

    /* 移动端菜单改为自适应网格布局 */
    .menu-list {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        padding: 10px;
    }

    .menu-list li {
        flex: 1 1 auto;
        min-width: 120px;
        max-width: calc(50% - 4px);
        border-bottom: none;
    }

    .menu-link {
        padding: 10px 12px;
        font-size: 12px;
        background: #ffffff;
        color: #333333;
        border-radius: 6px;
        border: 1px solid #e0e0e0;
        justify-content: center;
        text-align: center;
    }

    .menu-link:hover {
        background: #f0f7ed;
        color: #2d5a27;
        padding-left: 12px;
        border-color: #2d5a27;
    }

    .menu-link.active {
        background: #e8f5e4;
        color: #2d5a27;
        border-color: #2d5a27;
    }

    .menu-icon {
        display: none;
    }

    /* 移动端隐藏联系我们模块 */
    .sidebar-contact {
        display: none;
    }

    .product-main {
        padding: 20px;
    }

    .product-header h1 {
        font-size: 22px;
    }

    .product-meta {
        flex-direction: column;
        gap: 8px;
    }

    .nav-row {
        flex-direction: column;
        gap: 15px;
    }

    .gallery-main {
        aspect-ratio: 16 / 9;
    }
}