/* 全局重置 + 首页/About/Contact页原有样式（保留不变） */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

:root {
    /* 严格匹配图片配色 */
    --primary-green: #869F48;    /* 主绿色（按钮/标题背景） */
    --dark-green: #5B7030;       /* 深绿色（hover/询价栏背景） */
    --light-green: #E8F0D6;      /* 浅绿（辅助色） */
    --text-black: #191919;       /* 主文本色 */
    --text-gray: #6E6E6E;        /* 次要文本色 */
    --light-gray: #F6F6F6;       /* 浅灰背景 */
    --white: #ffffff;            /* 白色 */
    --dark-bg: #212121;          /* 页脚背景 */
    --border-gray: #e0e0e0;      /* 边框色 */
    --input-border: #ddd;        /* 输入框边框色 */
}

.container {
    width: 92%;
    max-width: 1240px;
    margin: 0 auto;
}

/* 首页/About/Contact页原有样式（导航/按钮/页脚等）保留，以下新增Products页专属样式 */

/* Products Banner 顶部Banner */
.products-banner {
    background: url('../images/banner.jpg') no-repeat center center;
    background-size: cover;
    padding: 50px 0;
    color: var(--white);
    position: relative;
}
.products-banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}
.products-banner .container {
    position: relative;
    z-index: 1;
}
.banner-breadcrumb {
    font-size: 14px;
    margin-bottom: 12px;
}
.banner-breadcrumb a {
    color: var(--white);
    text-decoration: none;
}
.banner-breadcrumb span {
    color: var(--light-green);
}
.banner-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
}
.banner-subtitle {
    font-size: 15px;
    opacity: 0.9;
    max-width: 600px;
}

/* 产品核心内容区 */
.products-main {
    padding: 60px 0;
    background: var(--white);
}
.products-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

/* 左侧筛选侧边栏 */
.products-sidebar {
    background: var(--white);
}
.sidebar-widget {
    margin-bottom: 30px;
    border: 1px solid var(--border-gray);
}
.widget-title {
    background: var(--primary-green);
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
    padding: 12px 15px;
    text-transform: uppercase;
}

/* 产品分类列表 */
.category-list {
    list-style: none;
    padding: 10px 0;
}
.category-list li {
    padding: 8px 15px;
    border-bottom: 1px solid var(--border-gray);
}
.category-list li:last-child {
    border-bottom: none;
}
.category-list li a {
    color: var(--text-black);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}
.category-list li.active {
    background: var(--light-gray);
}
.category-list li.active a {
    color: var(--primary-green);
    font-weight: 500;
}
.category-list li a:hover {
    color: var(--primary-green);
}

/* 筛选条件 */
.filter-widget {
    padding: 0;
}
.filter-group {
    padding: 15px;
    border-bottom: 1px solid var(--border-gray);
}
.filter-group:last-of-type {
    border-bottom: none;
}
.filter-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-black);
    margin-bottom: 10px;
}
.filter-options {
    list-style: none;
}
.filter-options li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.filter-options li input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: var(--primary-green);
}
.filter-options li label {
    font-size: 13px;
    color: var(--text-gray);
    cursor: pointer;
}
.reset-filter-btn {
    width: 100%;
    background: var(--primary-green);
    color: var(--white);
    border: none;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}
.reset-filter-btn:hover {
    background: var(--dark-green);
}

/* 右侧产品列表 */
.products-content {
    background: var(--white);
}
.products-header {
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-gray);
    padding-bottom: 20px;
}
.products-section-title {
    font-size: 22px;
    color: var(--text-black);
    font-weight: 600;
    margin-bottom: 8px;
}
.products-desc {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 20px;
    max-width: 800px;
    line-height: 1.5;
}
.products-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.products-count {
    font-size: 13px;
    color: var(--text-gray);
}
.sort-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}
.sort-wrapper label {
    font-size: 13px;
    color: var(--text-gray);
}
.sort-select {
    padding: 6px 10px;
    border: 1px solid var(--border-gray);
    font-size: 13px;
    color: var(--text-black);
    background: var(--white);
    cursor: pointer;
}
.sort-select:focus {
    outline: none;
    border-color: var(--primary-green);
}

/* 产品网格 */
.products-grid-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}
.product-card {
    border: 1px solid var(--border-gray);
    padding: 15px;
    transition: box-shadow 0.3s ease;
}
.product-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.product-img {
    margin-bottom: 15px;
    text-align: center;
}
.product-img img {
    max-width: 100%;
    height: auto;
}
.product-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-black);
    margin-bottom: 10px;
}
.product-specs {
    font-size: 12px;
    color: var(--text-gray);
    line-height: 1.4;
    margin-bottom: 15px;
}
.view-details-btn {
    display: inline-block;
    background: var(--primary-green);
    color: var(--white);
    text-decoration: none;
    font-size: 13px;
    padding: 8px 12px;
    transition: background 0.3s ease;
}
.view-details-btn:hover {
    background: var(--dark-green);
}

/* 分页控件 */
.pagination {
    text-align: center;
}
.pagination-list {
    display: inline-flex;
    list-style: none;
    gap: 5px;
}
.page-item a {
    display: block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    border: 1px solid var(--border-gray);
    color: var(--text-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);
}
.next-page a {
    width: auto;
    padding: 0 12px;
}

/* 定制询价栏 */
.custom-inquiry-bar {
    background: var(--dark-green);
    padding: 30px 0;
    color: var(--white);
}
.inquiry-bar-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}
.inquiry-text {
    flex: 1;
}
.inquiry-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}
.inquiry-subtitle {
    font-size: 14px;
    opacity: 0.9;
}
.inquiry-form {
    flex: 2;
    display: flex;
    gap: 10px;
    align-items: center;
}
.inquiry-form input {
    padding: 10px 15px;
    border: none;
    font-size: 14px;
    color: var(--text-black);
    flex: 1;
}
.inquiry-form input:focus {
    outline: none;
}
.send-inquiry-btn {
    background: var(--text-black);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s ease;
}
.send-inquiry-btn:hover {
    background: #000;
}

/* 页脚专属调整（匹配图片样式） */
.footer {
    background: var(--dark-bg);
    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;
}
.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) {
    /* Products页响应式 */
    .products-grid {
        grid-template-columns: 1fr;
    }
    .products-grid-list {
        grid-template-columns: repeat(2, 1fr);
    }
    .inquiry-bar-grid {
        flex-direction: column;
        text-align: center;
    }
    .inquiry-form {
        width: 100%;
        flex-direction: column;
    }
    .inquiry-form input {
        width: 100%;
    }
    .products-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .banner-title {
        font-size: 28px;
    }
}

/* 响应式适配 - 手机480px */
@media screen and (max-width:480px) {
    /* Products页响应式 */
    .products-grid-list {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .banner-title {
        font-size: 24px;
    }
    .inquiry-title {
        font-size: 18px;
    }
}

/* 首页/About/Contact页原有样式（导航/按钮/响应式等）粘贴到此处，保持和之前一致 */
.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(--text-black);
}
.nav-list {
    display: flex;
    list-style: none;
    gap: 28px;
    align-items: center;
}
.nav-list li a {
    text-decoration: none;
    color: var(--text-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(--text-black);
}
.search-icon a {
    font-size: 16px;
}

/* 响应式通用样式 */
@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;
    }
}