/* 全局重置 + 首页/About/Contact/Products/Product-Detail页原有样式（保留不变） */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

:root {
    /* 严格匹配图片配色 */
    --primary-green: #869F48;    /* 主绿色（按钮/标题/链接/选中态） */
    --dark-green: #5B7030;       /* 深绿色（hover/CTA背景） */
    --black: #000000;            /* 纯黑（Banner背景/页脚背景） */
    --dark-gray: #212121;        /* 深灰（辅助背景） */
    --mid-gray: #6E6E6E;         /* 中灰（次要文本） */
    --light-gray: #F6F6F6;       /* 浅灰（背景） */
    --white: #ffffff;            /* 白色（主体背景） */
    --border-gray: #e0e0e0;      /* 边框色 */
    --newsletter-green: #7A8F41; /* 订阅栏背景色（匹配图片） */
}

.container {
    width: 92%;
    max-width: 1240px;
    margin: 0 auto;
}

/* 首页/About/Contact/Products/Product-Detail页原有样式（导航/按钮/页脚等）保留，以下新增博客页专属样式 */

/* Blog Banner 顶部Banner */
.blog-banner {
    position: relative;
    color: var(--white);
}
.banner-bg {
    position: relative;
}
.banner-bg img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.banner-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
}
.banner-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
}
.banner-subtitle {
    font-size: 14px;
    opacity: 0.9;
    max-width: 600px;
}

/* Blog 核心内容区 */
.blog-main {
    padding: 60px 0;
    background: var(--white);
}
.blog-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
}

/* 左侧侧边栏 */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.sidebar-widget {
    background: var(--white);
}

/* 搜索框 */
.search-widget {
    position: relative;
}
.search-input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border-gray);
    font-size: 13px;
    color: var(--mid-gray);
}
.search-input:focus {
    outline: none;
    border-color: var(--primary-green);
}
.search-btn {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 40px;
    background: var(--primary-green);
    color: var(--white);
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}
.search-btn:hover {
    background: var(--dark-green);
}

/* 分类列表 */
.widget-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-green);
}
.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(--mid-gray);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}
.category-list li a:hover {
    color: var(--primary-green);
}
.category-count {
    font-size: 12px;
    color: var(--white);
    background: var(--primary-green);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 热门文章 */
.popular-posts-list {
    list-style: none;
}
.popular-post-item {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}
.popular-post-item:last-child {
    margin-bottom: 0;
}
.post-thumbnail {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}
.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.post-info {
    flex: 1;
}
.post-info .post-title {
    font-size: 13px;
    color: var(--black);
    text-decoration: none;
    margin-bottom: 4px;
    display: block;
    transition: color 0.3s ease;
}
.post-info .post-title:hover {
    color: var(--primary-green);
}
.post-date {
    font-size: 12px;
    color: var(--mid-gray);
}

/* 询价广告栏 */
.cta-widget {
    overflow: hidden;
}
.cta-bg {
    background: var(--dark-green);
    color: var(--white);
    padding: 25px 20px;
}
.cta-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}
.cta-desc {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 20px;
    opacity: 0.9;
}
.cta-btn {
    display: inline-block;
    background: var(--white);
    color: var(--dark-green);
    padding: 8px 15px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}
.cta-btn:hover {
    background: var(--black);
    color: var(--white);
}

/* 右侧博客列表 */
.blog-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.blog-posts-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.blog-post {
    display: flex;
    gap: 20px;
}
.post-img {
    width: 400px;
    flex-shrink: 0;
}
.post-img img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}
.post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.post-category {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--primary-green);
    letter-spacing: 0.5px;
    font-weight: 500;
}
.post-heading {
    font-size: 20px;
    font-weight: 600;
    color: var(--black);
    line-height: 1.3;
}


.post-heading a{
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
    color: var(--black);
    line-height: 1.3;
}




.post-excerpt {
    font-size: 14px;
    color: var(--mid-gray);
    line-height: 1.6;
    flex: 1;
}
.post-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: var(--mid-gray);
}
.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}
.read-more-link {
    font-size: 13px;
    color: var(--primary-green);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
    transition: color 0.3s ease;
}
.read-more-link:hover {
    color: var(--dark-green);
}

/* 分页控件 */
.blog-pagination {
    text-align: center;
    margin-top: 20px;
}
.pagination-list {
    display: inline-flex;
    list-style: none;
    gap: 5px;
    align-items: center;
}
.page-item a {
    display: block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    border: 1px solid var(--border-gray);
    color: var(--black);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}
.page-item.active a {
    background: var(--primary-green);
    color: var(--white);
    border-color: var(--primary-green);
}
.page-item a:hover:not(.active) {
    border-color: var(--primary-green);
    color: var(--primary-green);
}
.page-item.dots {
    padding: 0 5px;
    color: var(--mid-gray);
}
.next-page a {
    width: auto;
    padding: 0 12px;
}

/* 邮件订阅栏 */
.newsletter-section {
    background: var(--newsletter-green);
    padding: 25px 0;
    color: var(--white);
}
.newsletter-grid {
    display: flex;
    align-items: center;
    gap: 20px;
}
.newsletter-icon {
    font-size: 28px;
    margin-right: 10px;
}
.newsletter-text {
    flex: 1;
}
.newsletter-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}
.newsletter-subtitle {
    font-size: 13px;
    opacity: 0.9;
}
.newsletter-form {
    flex: 2;
    display: flex;
    gap: 0;
}
.newsletter-input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    font-size: 14px;
    color: var(--black);
}
.newsletter-input:focus {
    outline: none;
}
.newsletter-btn {
    background: var(--black);
    color: var(--white);
    border: none;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s ease;
}
.newsletter-btn:hover {
    background: var(--dark-gray);
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    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;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}
.back-to-top:hover {
    background: var(--dark-green);
}

/* 页脚样式（匹配图片） */
.footer {
    background: var(--black);
    color: var(--white);
    padding: 50px 0 24px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: 30px;
    margin-bottom: 40px;
}
.footer-logo {
    margin-bottom: 15px;
}
.footer-col h3 {
    font-size: 16px;
    padding-bottom: 10px;
    margin-bottom: 18px;
    position: relative;
    color: var(--white);
}
.footer-col h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 48px;
    height: 2px;
    background: var(--primary-green);
}
.footer-col p {
    font-size: 13px;
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: 18px;
}
.footer-col ul {
    list-style: none;
}
.footer-col ul li {
    margin-bottom: 10px;
}
.footer-col ul li a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 13px;
}
.footer-col ul li a:hover {
    color: var(--primary-green);
}
.social-icons {
    display: flex;
    gap: 12px;
}
.social-icons a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
}
.social-icons a:hover {
    background: var(--primary-green);
}
.contact-col li {
    display: flex;
    gap: 8px;
    font-size: 13px;
    margin-bottom: 12px;
    opacity: 0.85;
}
.contact-col 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: 12px;
    opacity: 0.7;
}

/* 响应式适配 - 平板768px */
@media screen and (max-width:768px) {
    /* 博客页响应式 */
    .blog-grid {
        grid-template-columns: 1fr;
    }
    .blog-post {
        flex-direction: column;
    }
    .post-img {
        width: 100%;
    }
    .newsletter-grid {
        flex-direction: column;
        text-align: center;
    }
    .newsletter-form {
        width: 100%;
    }
    .banner-title {
        font-size: 28px;
    }
    .footer-grid {
        grid-template-columns: repeat(2,1fr);
    }
}

/* 响应式适配 - 手机480px */
@media screen and (max-width:480px) {
    /* 博客页响应式 */
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .banner-title {
        font-size: 24px;
    }
    .newsletter-form {
        flex-direction: column;
    }
    .newsletter-btn {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }
    .pagination-list {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* 首页/About/Contact/Products/Product-Detail页原有样式（导航/按钮/响应式等）粘贴到此处，保持和之前一致 */
.header {
    background: var(--white);
    padding: 16px 0;
    box-shadow: 0 1px 6px rgba(0,0,0,0.08);
    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 img {
    height: 58px;
}
.logo-text {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--black);
}
.nav-list {
    display: flex;
    list-style: none;
    gap: 28px;
    align-items: center;
}
.nav-list li a {
    text-decoration: none;
    color: var(--black);
    font-size: 14px;
    font-weight: 500;
}
.nav-list li a.active,
.nav-list li.dropdown.active > a {
    color: var(--primary-green);
}
.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 3px 10px rgba(0,0,0,0.1);
    list-style: none;
    padding: 12px 0;
    display: none;
}
.dropdown-menu li {
    padding: 8px 20px;
}
.dropdown:hover .dropdown-menu {
    display: block;
}
.quote-btn {
    background: var(--primary-green);
    color: var(--white);
    padding: 10px 22px;
    text-decoration: none;
    font-size: 14px;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.quote-btn:hover {
    background: var(--dark-green);
}
.hamburger {
    display: none;
    border: none;
    background: transparent;
    font-size: 22px;
    color: var(--black);
}

/* 响应式通用样式 */
@media screen and (max-width:768px) {
    .hamburger {
        display: block;
    }
    .main-nav {
        position: fixed;
        top: 0;
        right: -320px;
        width: 300px;
        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;
    }
}