/* ==================== 全局重置与基础样式 ==================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    background: #fff;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

a:hover {
    color: #6a9e28;
}

img {
    max-width: 100%;
    display: block;
}

ul, ol {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ==================== 顶部欢迎条 ==================== */
.top-bar {
    background: #f5f5f5;
    height: 36px;
    line-height: 36px;
    font-size: 12px;
    color: #666;
    border-bottom: 1px solid #e8e8e8;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar a {
    color: #666;
    margin-left: 15px;
}

.top-bar a:hover {
    color: #6a9e28;
}

/* ==================== Header区域 ==================== */
.header {
    background: #fff;
    padding: 20px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 55px;
    width: auto;
}

.hotline {
    text-align: right;
}

.hotline-label {
    font-size: 13px;
    color: #333;
    margin-bottom: 2px;
}

.hotline-num {
    font-size: 26px;
    color: #6a9e28;
    font-weight: bold;
    letter-spacing: 1px;
}

.hotline-num::before {
    content: "\260E";
    margin-right: 8px;
    font-size: 22px;
}

/* ==================== 导航栏 ==================== */
.navbar {
    background: #fff;
    border-top: 1px solid #eee;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
}

.nav-menu li {
    position: relative;
}

.nav-menu li a {
    display: block;
    padding: 0 35px;
    height: 50px;
    line-height: 50px;
    font-size: 15px;
    color: #333;
    position: relative;
}

.nav-menu li a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: #6a9e28;
    transition: width 0.3s;
}

.nav-menu li a:hover::after,
.nav-menu li.active a::after {
    width: 100%;
}

.nav-menu li.active a {
    color: #6a9e28;
}

/* ==================== Banner轮播 ==================== */
.banner {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.banner-slider {
    position: relative;
    width: 100%;
    height: 400px;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    background-size: cover;
    background-position: center;
}

.banner-slide.active {
    opacity: 1;
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 2;
}

.banner-content h2 {
    font-size: 36px;
    font-weight: normal;
    margin-bottom: 15px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    letter-spacing: 4px;
}

.banner-content p {
    font-size: 18px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
    letter-spacing: 6px;
}

.banner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.banner-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.banner-dot.active {
    background: #fff;
}

.banner-dot:hover {
    background: rgba(255,255,255,0.8);
}

/* 简单banner（非轮播） */
.banner-simple {
    width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.banner-simple .banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
}

.banner-simple .banner-content h2 {
    font-size: 32px;
    letter-spacing: 4px;
    margin-bottom: 10px;
}

.banner-simple .banner-content p {
    font-size: 16px;
    letter-spacing: 3px;
}

/* ==================== 页面标题区域 ==================== */
.page-title {
    text-align: center;
    padding: 50px 0 30px;
}

.page-title h2 {
    font-size: 26px;
    color: #6a9e28;
    font-weight: normal;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.page-title .en-title {
    font-size: 13px;
    color: #999;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.page-title .title-line {
    width: 60px;
    height: 2px;
    background: #6a9e28;
    margin: 15px auto 0;
}

/* ==================== 首页 - 公司介绍 ==================== */
.section-about {
    padding-bottom: 60px;
}

.about-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 15px;
    text-align: justify;
    line-height: 1.8;
    text-indent: 2em;
}

.about-img {
    width: 420px;
    flex-shrink: 0;
}

.about-img img {
    width: 100%;
    border-radius: 4px;
}

.btn-more {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 25px;
    background: #6a9e28;
    color: #fff;
    border-radius: 3px;
    font-size: 13px;
    transition: background 0.3s;
}

.btn-more:hover {
    background: #5a8c20;
    color: #fff;
}

/* ==================== 首页 - 产品中心预览 ==================== */
.section-products {
    background: #f9f9f9;
    padding-bottom: 60px;
}

.product-tabs {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 35px;
}

.product-tab {
    padding: 10px 25px;
    background: #fff;
    border: 1px solid #ddd;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: all 0.3s;
    position: relative;
}

.product-tab::before {
    content: "\25B6";
    margin-right: 8px;
    font-size: 10px;
    color: #999;
}

.product-tab:hover,
.product-tab.active {
    background: #6a9e28;
    color: #fff;
    border-color: #6a9e28;
}

.product-tab:hover::before,
.product-tab.active::before {
    color: #fff;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-item {
    background: #fff;
    border: 1px solid #eee;
    padding: 15px;
    text-align: center;
    transition: all 0.3s;
}

.product-item:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.product-item .product-img {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    overflow: hidden;
}

.product-item .product-img img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.product-item h4 {
    font-size: 14px;
    color: #333;
    margin-bottom: 6px;
    font-weight: normal;
}

.product-item .product-price {
    display: none;
}

.product-item .btn-buy {
    display: none;
}

/* ==================== 展示中心 ==================== */
.section-news {
    position: relative;
    padding: 0;
    height: 350px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.15);
}

.news-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.news-content h3 {
    font-size: 24px;
    color: #6a9e28;
    margin-bottom: 8px;
    font-weight: normal;
}

.news-content .en {
    font-size: 13px;
    color: #666;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

/* ==================== 联系我们区域 ==================== */
.section-contact {
    padding-bottom: 60px;
}

.contact-content {
    display: flex;
    gap: 40px;
}

.contact-info-card {
    flex: 1;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 4px;
}

.contact-info-card h3 {
    font-size: 20px;
    color: #6a9e28;
    margin-bottom: 20px;
    font-weight: normal;
}

.contact-info-card p {
    margin-bottom: 12px;
    color: #666;
    line-height: 1.8;
}

.contact-info-card .label {
    color: #333;
    font-weight: bold;
}

.contact-map {
    flex: 1;
    height: 300px;
    background: #e8e8e8;
    border-radius: 4px;
    overflow: hidden;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ==================== 页脚 ==================== */
.footer {
    background: #5a7c2a;
    color: #fff;
    padding: 30px 0;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo img {
    height: 45px;
}

.footer-info {
    text-align: center;
}

.footer-info p {
    font-size: 13px;
    line-height: 1.8;
    opacity: 0.9;
}

.footer-links {
    text-align: right;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    font-size: 12px;
    margin-left: 15px;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bar {
    background: #4a6c20;
    padding: 10px 0;
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,0.7);
}

.footer-bar a {
    color: rgba(255,255,255,0.7);
    margin: 0 10px;
}

/* ==================== 关于我们页面 ==================== */
.about-page {
    padding-bottom: 60px;
}

.about-page-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.about-page-text {
    flex: 1;
}

.about-page-text h3 {
    font-size: 20px;
    color: #6a9e28;
    margin-bottom: 20px;
    font-weight: normal;
}

.about-page-text p {
    margin-bottom: 15px;
    line-height: 1.8;
    text-align: justify;
    text-indent: 2em;
}

.about-page-img {
    width: 480px;
    flex-shrink: 0;
}

.about-page-img img {
    width: 100%;
    border-radius: 4px;
}

/* ==================== 产品中心页面 ==================== */
.products-page {
    padding-bottom: 60px;
}

.products-layout {
    display: flex;
    gap: 30px;
}

.sidebar {
    width: 220px;
    flex-shrink: 0;
}

.sidebar-title {
    text-align: center;
    margin-bottom: 20px;
}

.sidebar-title h3 {
    font-size: 18px;
    color: #6a9e28;
    font-weight: normal;
}

.sidebar-title .en {
    font-size: 12px;
    color: #999;
    letter-spacing: 1px;
}

.category-list li {
    border-bottom: 1px solid #eee;
}

.category-list li a {
    display: block;
    padding: 14px 15px;
    color: #666;
    font-size: 14px;
    transition: all 0.3s;
}

.category-list li a::before {
    content: "+";
    margin-right: 10px;
    color: #999;
    font-size: 16px;
}

.category-list li a:hover,
.category-list li.active a {
    background: #f5f5f5;
    color: #6a9e28;
}

/* 子分类展开样式 */
.category-list li .cat-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-list li .cat-toggle .arrow {
    font-size: 12px;
    transition: transform 0.3s;
}

.category-list li.expanded .cat-toggle .arrow {
    transform: rotate(90deg);
}

.category-list li.expanded > .cat-toggle {
    background: #f5f5f5;
    color: #6a9e28;
}

.category-list .submenu {
    display: none;
    background: #fafafa;
    border-top: 1px solid #eee;
}

.category-list .submenu li {
    border-bottom: 1px solid #eee;
    padding-left: 20px;
}

.category-list .submenu li a {
    padding: 10px 15px;
    font-size: 13px;
}

.category-list .submenu li a::before {
    content: none;
}

.category-list .submenu li.active a,
.category-list .submenu li a:hover {
    background: #f0f0f0;
    color: #6a9e28;
}

.products-main {
    flex: 1;
}

.products-main .product-grid {
    grid-template-columns: repeat(3, 1fr);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid #ddd;
    color: #666;
    font-size: 13px;
    transition: all 0.3s;
}

.pagination a:hover,
.pagination a.active {
    background: #6a9e28;
    color: #fff;
    border-color: #6a9e28;
}

.pagination span {
    border: none;
    cursor: default;
}

/* ==================== 在线留言页面 ==================== */
.message-page {
    padding-bottom: 60px;
}

.message-layout {
    display: flex;
    gap: 50px;
}

.message-form {
    flex: 1;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    font-size: 14px;
    color: #666;
    transition: border-color 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #6a9e28;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    padding: 12px 40px;
    background: #6a9e28;
    color: #fff;
    border: none;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
    font-family: inherit;
}

.btn-submit:hover {
    background: #5a8c20;
}

.message-sidebar {
    width: 350px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.message-sidebar img {
    max-width: 100%;
}

/* ==================== 联系我们页面 ==================== */
.contact-page {
    padding-bottom: 60px;
}

.contact-card-wrapper {
    max-width: 600px;
    margin: 0 auto 40px;
    text-align: center;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 4px;
}

.contact-card-wrapper h3 {
    font-size: 20px;
    color: #6a9e28;
    margin-bottom: 25px;
    font-weight: normal;
}

.contact-card-wrapper p {
    margin-bottom: 12px;
    color: #666;
    line-height: 1.8;
}

.contact-page-map {
    width: 100%;
    height: 400px;
    background: #e8e8e8;
}

.contact-page-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ==================== 浮动客服 ==================== */
.float-service {
    position: fixed;
    right: 20px;
    bottom: 100px;
    z-index: 999;
    background: #6a9e28;
    color: #fff;
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: all 0.3s;
}

.float-service:hover {
    background: #5a8c20;
}

/* ==================== 移动端汉堡菜单 ==================== */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 110;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #333;
    margin: 3px 0;
    transition: all 0.3s;
    border-radius: 1px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ==================== 响应式 - 平板 (<= 992px) ==================== */
@media (max-width: 992px) {
    .container {
        padding: 0 20px;
    }

    /* Header */
    .header {
        padding: 15px 0;
    }

    .logo img {
        height: 48px;
    }

    .hotline-num {
        font-size: 22px;
    }

    /* 导航 */
    .nav-toggle {
        display: flex;
    }

    .navbar {
        position: relative;
    }

    .navbar .container {
        justify-content: flex-start;
        position: relative;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #fff;
        border-top: 1px solid #eee;
        padding: 5px 0;
    }

    .nav-menu.show {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu li a {
        padding: 0 20px;
        height: 46px;
        line-height: 46px;
        font-size: 15px;
        border-bottom: 1px solid #f5f5f5;
    }

    .nav-menu li a::after {
        display: none;
    }

    .nav-menu li a:hover,
    .nav-menu li.active a {
        background: #f9f9f9;
        color: #6a9e28;
    }

    /* Banner */
    .banner-slider {
        height: 320px;
    }

    .banner-simple {
        height: 240px;
    }

    .banner-content h2 {
        font-size: 28px;
        letter-spacing: 3px;
    }

    .banner-content p {
        font-size: 15px;
        letter-spacing: 4px;
    }

    /* 页面标题 */
    .page-title {
        padding: 40px 0 25px;
    }

    .page-title h2 {
        font-size: 24px;
    }

    /* 布局变单列 */
    .about-content,
    .about-page-content,
    .contact-content,
    .message-layout,
    .products-layout {
        flex-direction: column;
    }

    .about-img,
    .about-page-img {
        width: 100%;
        margin-top: 20px;
    }

    .message-sidebar {
        width: 100%;
        margin-top: 20px;
    }

    .message-sidebar img {
        max-width: 60%;
        margin: 0 auto;
    }

    /* 产品 */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .products-main .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-tabs {
        flex-wrap: wrap;
        gap: 10px;
    }

    .product-tab {
        padding: 8px 18px;
        font-size: 13px;
    }

    .sidebar {
        width: 100%;
        margin-bottom: 20px;
    }

    .category-list {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .category-list li {
        border-bottom: none;
    }

    .category-list li a {
        display: inline-block;
        padding: 8px 16px;
        background: #f5f5f5;
        border-radius: 3px;
        font-size: 13px;
    }

    .category-list li a::before {
        content: none;
    }

    .category-list li a:hover,
    .category-list li.active a {
        background: #6a9e28;
        color: #fff;
    }

    .category-list .submenu {
        display: none !important;
    }

    .category-list li .cat-toggle .arrow {
        display: none;
    }

    .sidebar-title,
    .sidebar-title .en {
        display: none;
    }

    /* 联系我们 */
    .contact-info-card,
    .contact-map {
        width: 100%;
    }

    .contact-map {
        margin-top: 20px;
    }

    /* 展示中心 */
    .section-news {
        height: 280px;
    }

    /* 页脚 */
    .footer .container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .footer-links {
        text-align: center;
    }

    .footer-links a {
        margin: 0 8px;
    }

    /* 联系卡片 */
    .contact-card-wrapper {
        padding: 25px 20px;
    }

    .contact-page-map {
        height: 300px;
    }
}

/* ==================== 响应式 - 手机 (<= 576px) ==================== */
@media (max-width: 576px) {
    .container {
        padding: 0 12px;
    }

    /* 顶部条 */
    .top-bar {
        height: 32px;
        line-height: 32px;
        font-size: 11px;
    }

    /* Header */
    .header {
        padding: 10px 0;
    }

    .header .container {
        flex-direction: column;
        text-align: center;
    }

    .logo img {
        height: 42px;
    }

    .hotline {
        margin-top: 10px;
        text-align: center;
    }

    .hotline-label {
        font-size: 11px;
    }

    .hotline-num {
        font-size: 20px;
    }

    .hotline-num::before {
        font-size: 18px;
    }

    .nav-toggle {
        top: 28px;
        right: 10px;
        transform: none;
    }

    /* Banner */
    .banner-slider {
        height: 200px;
    }

    .banner-simple {
        height: 160px;
    }

    .banner-content h2 {
        font-size: 18px;
        letter-spacing: 2px;
        margin-bottom: 8px;
    }

    .banner-content p {
        font-size: 12px;
        letter-spacing: 2px;
    }

    .banner-dots {
        bottom: 12px;
        gap: 6px;
    }

    .banner-dot {
        width: 8px;
        height: 8px;
    }

    /* 页面标题 */
    .page-title {
        padding: 30px 0 20px;
    }

    .page-title h2 {
        font-size: 20px;
    }

    .page-title .en-title {
        font-size: 11px;
    }

    /* 产品 */
    .product-grid,
    .products-main .product-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .product-item {
        padding: 12px;
    }

    .product-item .product-img {
        height: 160px;
    }

    .product-tabs {
        gap: 8px;
        margin-bottom: 20px;
    }

    .product-tab {
        padding: 6px 12px;
        font-size: 12px;
    }

    .product-tab::before {
        margin-right: 4px;
        font-size: 8px;
    }

    /* 公司介绍 */
    .about-text p {
        font-size: 13px;
        line-height: 1.7;
        margin-bottom: 10px;
    }

    .btn-more {
        padding: 7px 20px;
        font-size: 12px;
    }

    /* 展示中心 */
    .section-news {
        height: 200px;
    }

    .news-content h3 {
        font-size: 18px;
    }

    /* 联系信息卡片 */
    .contact-info-card {
        padding: 20px 15px;
    }

    .contact-info-card h3 {
        font-size: 16px;
    }

    .contact-info-card p {
        font-size: 13px;
    }

    .contact-card-wrapper h3 {
        font-size: 16px;
    }

    .contact-card-wrapper p {
        font-size: 13px;
    }

    /* 表单 */
    .form-group {
        margin-bottom: 15px;
    }

    .form-group label {
        font-size: 13px;
        margin-bottom: 5px;
    }

    .form-group input,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 13px;
    }

    .form-group textarea {
        min-height: 100px;
    }

    .btn-submit {
        padding: 10px 30px;
        font-size: 13px;
        width: 100%;
    }

    /* 分页 */
    .pagination a,
    .pagination span {
        padding: 5px 10px;
        font-size: 12px;
    }

    /* 页脚 */
    .footer {
        padding: 20px 0;
    }

    .footer-logo img {
        height: 36px;
    }

    .footer-info p {
        font-size: 11px;
    }

    .footer-links a {
        font-size: 11px;
        margin: 0 5px;
    }

    .footer-bar {
        font-size: 10px;
        padding: 8px 0;
    }

    /* 浮动客服 */
    .float-service {
        right: 10px;
        bottom: 80px;
        padding: 8px 12px;
        font-size: 12px;
    }

    /* 返回顶部 */
    .back-to-top {
        width: 36px !important;
        height: 36px !important;
        line-height: 36px !important;
        font-size: 14px !important;
        right: 10px !important;
        bottom: 45px !important;
    }

    .message-sidebar img {
        max-width: 80%;
    }

    .contact-page-map {
        height: 220px;
    }
}
