/* 全局基础样式（和index.html共用） */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

:root {
    /* 严格匹配图片配色 */
    --primary-green: #869F48;    /* 主绿色（按钮、标签、链接） */
    --dark-green: #7A8F41;       /* 深绿色（CTA栏背景） */
    --footer-black: #111111;     /* 页脚黑色背景 */
    --text-black: #222222;       /* 主文本色 */
    --text-gray: #666666;        /* 次要文本色 */
    --light-gray: #f8f8f8;       /* 浅灰背景 */
    --border-gray: #e5e5e5;      /* 边框色 */
    --white: #ffffff;            /* 白色 */
}

.container {
    width: 92%;
    max-width: 1280px;
    margin: 0 auto;
}

/* 头部导航样式（和index.html完全一致） */
.header {
    background: var(--white);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-gray);
    position: sticky;
    top: 0;
    z-index: 999;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 40px;
    height: 40px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-black);
    letter-spacing: 0.5px;
}

.logo-sub {
    font-size: 10px;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

.nav-list li a {
    text-decoration: none;
    color: var(--text-black);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
}

.nav-list li a.active,
.nav-list li a:hover {
    color: var(--primary-green);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 200px;
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    list-style: none;
    padding: 10px 0;
    display: none;
    z-index: 1000;
}

.dropdown-menu li {
    padding: 8px 15px;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.quote-btn {
    background: var(--primary-green);
    color: var(--white);
    border: none;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s ease;
}

.quote-btn:hover {
    background: var(--dark-green);
}

.hamburger {
    display: none;
    border: none;
    background: transparent;
    font-size: 20px;
    color: var(--text-black);
    cursor: pointer;
}

/* 博客详情Banner样式（1:1还原） */
.blog-detail-banner {
    position: relative;
    color: var(--white);
    margin-bottom: 50px;
}

.banner-bg img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px 5%;
}

.category-badge {
    background: var(--primary-green);
    color: var(--white);
    font-size: 12px;
    text-transform: uppercase;
    padding: 4px 12px;
    display: inline-block;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.banner-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.2;
}

.banner-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    opacity: 0.9;
}

.banner-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 核心内容区样式（1:1还原） */
.blog-detail-content-wrap {
    padding: 0 0 60px;
    background: var(--white);
}

.blog-detail-grid {
    display: grid;
    grid-template-columns: 70% 30%;
    gap: 40px;
}

/* 左侧正文区 */
.blog-main-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.intro-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-gray);
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-gray);
}

.content-section {
    margin-bottom: 35px;
}

.section-heading {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-black);
    margin-bottom: 20px;
    line-height: 1.3;
}

.flex-row {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.section-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-gray);
}

.section-img {
    flex: 1;
    max-width: 45%;
}

.section-img img {
    width: 100%;
    height: auto;
    border: 1px solid var(--border-gray);
}

/* 产品类型网格 */
.types-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.type-card {
    border: 1px solid var(--border-gray);
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.type-img {
    text-align: center;
    margin-bottom: 5px;
}

.type-img img {
    max-width: 100%;
    height: auto;
}

.type-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-black);
}

.type-desc {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.6;
    flex: 1;
}

.learn-more {
    font-size: 12px;
    color: var(--primary-green);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.learn-more:hover {
    color: var(--dark-green);
}

/* 应用场景网格 */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.app-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.app-img img {
    width: 100%;
    height: auto;
    border: 1px solid var(--border-gray);
}

.app-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-black);
}

.app-desc {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.6;
}

/* 优势网格 */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    text-align: center;
}

.advantage-card {
    padding: 20px 10px;
    border: 1px solid var(--border-gray);
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.advantage-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-green);
    font-size: 18px;
    margin-bottom: 5px;
}

.advantage-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-black);
}

.advantage-desc {
    font-size: 12px;
    color: var(--text-gray);
    line-height: 1.5;
}

/* 规格表格 */
.specs-table-wrap {
    overflow-x: auto;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table th, .specs-table td {
    padding: 10px 12px;
    text-align: left;
    border: 1px solid var(--border-gray);
    font-size: 13px;
}

.specs-table th {
    background: var(--light-gray);
    font-weight: 600;
    color: var(--text-black);
}

.specs-table td {
    color: var(--text-gray);
}

/* 项目图库 */
.gallery-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.gallery-nav {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary-green);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: background 0.3s ease;
    flex-shrink: 0;
}

.gallery-nav:hover {
    background: var(--dark-green);
}

.gallery-images {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 5px 0;
    flex: 1;
    scrollbar-width: thin;
}

.gallery-images img {
    height: 100px;
    width: auto;
    border: 1px solid var(--border-gray);
    flex-shrink: 0;
}

/* 分享区域 */
.share-section {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 0;
    border-top: 1px solid var(--border-gray);
}

.share-label {
    font-size: 13px;
    color: var(--text-gray);
    font-weight: 500;
}

.share-icons {
    display: flex;
    gap: 8px;
}

.share-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--light-gray);
    color: var(--text-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.3s ease;
}

.share-icon:hover {
    background: var(--primary-green);
    color: var(--white);
}

/* 右侧侧边栏样式（1:1还原） */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-widget {
    background: var(--white);
    border: 1px solid var(--border-gray);
    padding: 20px;
}

.widget-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-black);
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-green);
}

/* 快速询价组件 */
.quote-desc {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.6;
    margin: 10px 0 15px;
}

.widget-quote-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 8px 0;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

/* 分类列表 */
.category-list {
    list-style: none;
}

.category-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-gray);
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list li a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.category-list li a:hover {
    color: var(--primary-green);
}

.category-count {
    font-size: 11px;
    color: var(--text-gray);
}

/* 热门文章 */
.popular-list {
    list-style: none;
}

.popular-item {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-gray);
}

.popular-item:last-child {
    border-bottom: none;
}

.popular-img {
    width: 60px;
    height: 40px;
    flex-shrink: 0;
}

.popular-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 1px solid var(--border-gray);
}

.popular-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.popular-title {
    font-size: 12px;
    color: var(--text-black);
    text-decoration: none;
    transition: color 0.3s ease;
}

.popular-title:hover {
    color: var(--primary-green);
}

.popular-date {
    font-size: 11px;
    color: var(--text-gray);
}

/* 产品列表 */
.products-list {
    list-style: none;
}

.product-item {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-gray);
}

.product-item:last-child {
    border-bottom: none;
}

.product-img {
    width: 60px;
    height: 40px;
    flex-shrink: 0;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 1px solid var(--border-gray);
}

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.product-name {
    font-size: 13px;
    color: var(--text-black);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.product-name:hover {
    color: var(--primary-green);
}

.view-details {
    font-size: 11px;
    color: var(--primary-green);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.view-details:hover {
    color: var(--dark-green);
}

/* CTA栏样式（1:1还原） */
.cta-section {
    background: var(--dark-green);
    color: var(--white);
    padding: 30px 0;
    margin-bottom: 0px;
}

.cta-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cta-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 5px;
}

.cta-subtitle {
    font-size: 14px;
    opacity: 0.9;
}

.cta-btn {
    background: var(--white);
    color: var(--dark-green);
    padding: 10px 20px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cta-btn:hover {
    background: var(--text-black);
    color: var(--white);
}

/* 页脚样式（和index.html完全一致） */
.footer {
    background: var(--footer-black);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-green);
    display: inline-block;
}

.footer-list {
    list-style: none;
}

.footer-list li {
    margin-bottom: 8px;
}

.footer-list li a {
    color: #cccccc;
    text-decoration: none;
    font-size: 12px;
    transition: color 0.3s ease;
}

.footer-list li a:hover {
    color: var(--primary-green);
}

.brand-desc {
    font-size: 12px;
    color: #cccccc;
    line-height: 1.6;
    margin: 15px 0;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    font-size: 12px;
    transition: background 0.3s ease;
}

.footer-social a:hover {
    background: var(--primary-green);
}

.contact-list li {
    display: flex;
    gap: 8px;
    font-size: 12px;
    color: #cccccc;
    margin-bottom: 10px;
}

.contact-list li i {
    color: var(--primary-green);
    margin-top: 2px;
}

.copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
}

.copyright p {
    font-size: 11px;
    color: #999999;
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 36px;
    height: 36px;
    background: var(--primary-green);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    font-size: 14px;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--dark-green);
}

/* 响应式适配（平板768px） */
@media screen and (max-width: 768px) {
    /* 导航响应式 */
    .hamburger {
        display: block;
    }
    .main-nav {
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        background: var(--white);
        padding: 30px 20px;
        box-shadow: -2px 0 8px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 1000;
    }
    .main-nav.active {
        right: 0;
    }
    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .header-quote {
        display: none;
    }

    /* 博客详情响应式 */
    .blog-detail-grid {
        grid-template-columns: 1fr;
    }
    .flex-row {
        flex-direction: column;
    }
    .section-img {
        max-width: 100%;
    }
    .types-grid, .apps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .cta-wrap {
        flex-direction: column;
        text-align: center;
    }
    .banner-title {
        font-size: 28px;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 响应式适配（手机480px） */
@media screen and (max-width: 480px) {
    .types-grid, .apps-grid, .advantages-grid {
        grid-template-columns: 1fr;
    }
    .banner-title {
        font-size: 24px;
    }
    .banner-meta {
        flex-direction: column;
        gap: 8px;
    }
    .share-section {
        flex-direction: column;
        align-items: flex-start;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}