/* 仅存放产品详情页独有样式，公共头部/页脚由style.css提供 */
body {
    background-color: #f8f8f8;
}

/* 面包屑通用样式微调 */
.bread-wrap {
    padding: 18px 15px;
    background: #fff;
    border-bottom: 1px solid #eee;
}
.bread a {
    color: #288f47;
}
.bread span {
    margin: 0 6px;
    color: #999;
}
.bread-current {
    color: #333;
}

.main-wrap {
    padding: 30px 15px 60px;
}

/* ====================== 顶部图文区域 ====================== */
.product-top-row {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    background: #ffffff;
    padding: 24px;
    border-radius: 4px;
    margin-bottom: 30px;
}
.top-img-box {
    width: 100%;
    height: 220px;
    overflow: hidden;
}
.top-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.tag-group {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}
.tag-group span {
    font-size: 12px;
    padding: 3px 9px;
    border-radius: 2px;
}
.tag-cate {
    background: #edf7f1;
    color: #1c4d2d;
}
.tag-type {
    background: #f2f2f2;
    color: #444;
}
.tag-cert {
    background: #e6f0ff;
    color: #0056a6;
}
.product-title {
    font-size: 26px;
    font-weight: 600;
    color: #111;
    line-height: 1.4;
    margin-bottom: 16px;
}
.product-desc {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
}

/* ====================== 产品详情标签栏 ====================== */
.tab-nav-wrap {
    border-bottom: 1px solid #ddd;
    margin-bottom: 24px;
}
.tab-item {
    display: inline-block;
    padding: 12px 4px;
    font-size: 15px;
    color: #666;
    position: relative;
    cursor: pointer;
}
.tab-item.active {
    color: #1c4d2d;
    font-weight: 500;
}
.tab-item.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 2px;
    background: #1c4d2d;
}

/* 详情正文 */
.article-content {
    background: #fff;
    padding: 24px;
    border-radius: 4px;
    margin-bottom: 50px;
    font-size: 15px;
    line-height: 1.8;
    color: #333;
}

.article-content img, .article-content table {
    max-width:100%;
    height: auto;
}

/* ====================== 同类推荐模块 ====================== */
.recommend-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.recommend-title {
    font-size: 22px;
    font-weight: 600;
    color: #222;
}
.more-link {
    font-size: 14px;
    color: #288f47;
}
.more-link:hover {
    text-decoration: underline;
}
.recommend-card-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.recommend-card {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
}
.card-img {
    width: 100%;
    height: 180px;
    overflow: hidden;
}
.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.card-img img:hover {
    transform: scale(1.05);
}
.card-tag {
    margin: 12px 16px 0;
    font-size: 12px;
    padding: 2px 8px;
    background: #edf7f1;
    color: #1c4d2d;
    display: inline-block;
    border-radius: 2px;
}
.card-tag.tag-red {
    background: #ffe9e9;
    color: #b32424;
}
.card-tag.tag-blue {
    background: #e6f0ff;
    color: #0056a6;
}
.card-name {
    padding: 8px 16px;
    font-size: 15px;
    font-weight: 500;
    color: #222;
    line-height: 1.4;
}
.link-text {
    display: block;
    padding: 0 16px 16px;
    font-size: 13px;
    color: #288f47;
}
.link-text:hover {
    text-decoration: underline;
}

/* ====================== 移动端自适应媒体查询 ====================== */
@media screen and (max-width: 992px) {
    /* 顶部图文改为上下堆叠 */
    .product-top-row {
        grid-template-columns: 1fr;
    }
    /* 推荐卡片2列 */
    .recommend-card-list {
        grid-template-columns: repeat(2, 1fr);
    }
    .product-title {
        font-size: 22px;
    }
}
@media screen and (max-width: 576px) {
    /* 手机端单列 */
    .recommend-card-list {
        grid-template-columns: 1fr;
    }
    .product-top-row {
        padding: 16px;
    }
    .top-img-box {
        height: 180px;
    }
    .recommend-title {
        font-size: 18px;
    }
    .article-content {
        padding: 16px;
    }
}