/* 九昆仑低碳科技 - 主样式表 */

/* ===== 重置样式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

ul, li {
    list-style: none;
}

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

/* ===== 通用容器 ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* ===== 头部样式 ===== */
.header {
    background: transparent;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header.scrolled .nav-menu > li > a {
    color: #333;
}

.header.scrolled .nav-menu > li > a:hover,
.header.scrolled .nav-menu > li.active > a {
    color: #2e7d32;
}

.header.scrolled .mobile-nav-toggle span {
    background: #333;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo img {
    height: 50px;
}

/* ===== 导航菜单 ===== */
.nav-menu {
    display: flex;
    align-items: center;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: block;
    padding: 0 20px;
    line-height: 80px;
    font-size: 16px;
    color: #fff;
    transition: all 0.3s ease;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.nav-menu > li > a:hover,
.nav-menu > li.active > a {
    color: #8bc34a;
}

/* 下拉菜单 */
.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.nav-menu > li:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu li a {
    display: block;
    padding: 12px 20px;
    font-size: 14px;
    color: #555;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.sub-menu li a:hover {
    background: #f5f5f5;
    color: #2e7d32;
}

/* ===== 移动端导航 ===== */
.mobile-nav-toggle {
    display: none;
    width: 30px;
    height: 25px;
    cursor: pointer;
    position: relative;
}

.mobile-nav-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: #fff;
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.mobile-nav-toggle span:nth-child(1) { top: 0; }
.mobile-nav-toggle span:nth-child(2) { top: 11px; }
.mobile-nav-toggle span:nth-child(3) { top: 22px; }

/* ===== Banner轮播 ===== */
.banner {
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.banner-slide {
    position: relative;
}

.banner-slide img {
    width: 100%;
    height: auto;
    display: block;
}

/* Slick轮播样式 */
.slick-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.slick-dots li {
    width: 12px;
    height: 12px;
}

.slick-dots li button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    font-size: 0;
    transition: all 0.3s ease;
}

.slick-dots li.slick-active button {
    background: #2e7d32;
}

/* ===== 通用区块标题 ===== */
.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 32px;
    color: #333;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #2e7d32;
}

.section-title p {
    color: #666;
    font-size: 16px;
}

/* ===== 关于我们区块 ===== */
.about-section {
    background: #f8f9fa;
}

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

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 24px;
    color: #2e7d32;
    margin-bottom: 20px;
}

.about-text p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
}

.about-image {
    flex: 1;
}

.btn-more {
    display: inline-block;
    padding: 12px 30px;
    background: #2e7d32;
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-more:hover {
    background: #1b5e20;
    transform: translateY(-2px);
}

/* ===== 产品中心区块 ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-card h4 {
    padding: 20px;
    text-align: center;
    font-size: 16px;
    color: #333;
}

.product-card:hover h4 {
    color: #2e7d32;
}

/* ===== 案例展示区块 ===== */
.cases-section {
    background: #f8f9fa;
}

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

.case-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

.case-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.case-card-content {
    padding: 20px;
}

.case-card h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
}

.case-card p {
    font-size: 14px;
    color: #666;
}

/* ===== 新闻中心区块 ===== */
.news-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.news-item {
    display: flex;
    gap: 20px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.news-item:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
}

.news-date {
    flex-shrink: 0;
    text-align: center;
    padding: 15px 20px;
    background: #2e7d32;
    color: #fff;
    border-radius: 4px;
}

.news-date .day {
    font-size: 28px;
    font-weight: bold;
    display: block;
}

.news-date .month {
    font-size: 14px;
}

.news-content h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.5;
}

.news-content h4:hover {
    color: #2e7d32;
}

.news-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== 页脚样式 ===== */
.footer {
    background: #333;
    color: #fff;
    padding: 40px 0;
}

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

.footer-info p {
    margin-bottom: 10px;
    font-size: 14px;
}

.footer-links a {
    color: #ccc;
    margin-left: 20px;
    font-size: 14px;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid #444;
    font-size: 13px;
    color: #999;
}

.footer-bottom a {
    color: #999;
}

.footer-bottom a:hover {
    color: #2e7d32;
}

/* ===== 面包屑导航 ===== */
.breadcrumb {
    padding: 20px 0;
    background: #f5f5f5;
    margin-top: 80px;
}

.breadcrumb a {
    color: #666;
}

.breadcrumb a:hover {
    color: #2e7d32;
}

.breadcrumb span {
    margin: 0 10px;
    color: #999;
}

.breadcrumb .current {
    color: #2e7d32;
}

/* ===== 内页通用样式 ===== */
.page-banner {
    margin-top: 80px;
    height: 300px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.page-banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.page-banner h1 {
    position: relative;
    z-index: 1;
    color: #fff;
    font-size: 36px;
}

/* ===== 产品列表页 ===== */
.product-category-nav {
    background: #f5f5f5;
    padding: 20px 0;
}

.category-list {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.category-list a {
    padding: 10px 25px;
    background: #fff;
    border-radius: 25px;
    color: #333;
    font-size: 14px;
    transition: all 0.3s ease;
}

.category-list a:hover,
.category-list a.active {
    background: #2e7d32;
    color: #fff;
}

.products-page-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 40px 0;
}

/* ===== 新闻列表页 ===== */
.news-page-list {
    padding: 40px 0;
}

.news-page-item {
    display: flex;
    gap: 30px;
    padding: 30px;
    background: #fff;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.news-page-item:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
}

.news-page-item img {
    width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
}

.news-page-info {
    flex: 1;
}

.news-page-info h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
}

.news-page-info h3:hover {
    color: #2e7d32;
}

.news-page-info p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
}

.news-page-info .date {
    color: #999;
    font-size: 13px;
}

/* ===== 分页样式 ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 40px 0;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 8px 15px;
    background: #fff;
    border: 1px solid #ddd;
    color: #333 !important;
    font-size: 14px;
    border-radius: 4px;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.pagination a:hover,
.pagination .current {
    background: #2e7d32;
    border-color: #2e7d32;
    color: #fff !important;
}

.pagination a:visited {
    color: #333 !important;
}

.pagination a:visited:hover {
    color: #fff !important;
}

.pagination .ellipsis {
    border: none;
    background: none;
    padding: 8px 5px;
    min-width: auto;
}

/* ===== 企业成员页 ===== */
.members-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 40px 0;
}

.member-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

.member-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.member-card-content {
    padding: 25px;
}

.member-card h4 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

.member-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

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

.about-page-section:nth-child(even) {
    background: #f8f9fa;
}

.about-block {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-block.reverse {
    flex-direction: row-reverse;
}

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

.about-block-text h3 {
    font-size: 28px;
    color: #2e7d32;
    margin-bottom: 20px;
}

.about-block-text p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
}

.about-block-image {
    flex: 1;
}

.about-block-image img {
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* 企业文化 */
.culture-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.culture-item {
    text-align: center;
    padding: 40px 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

.culture-item i {
    font-size: 48px;
    color: #2e7d32;
    margin-bottom: 20px;
}

.culture-item h4 {
    font-size: 20px;
    color: #333;
    margin-bottom: 15px;
}

.culture-item p {
    color: #666;
    line-height: 1.6;
}

/* ===== 响应式设计 ===== */
@media (max-width: 992px) {
    .nav-menu {
        display: none;
    }

    .mobile-nav-toggle {
        display: block;
    }

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

    .news-list {
        grid-template-columns: 1fr;
    }

    .about-content {
        flex-direction: column;
    }

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

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

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

    .about-block {
        flex-direction: column;
    }

    .about-block.reverse {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .header-inner {
        height: 60px;
    }

    .banner {
        margin-top: 60px;
    }

    .breadcrumb {
        margin-top: 60px;
        font-size: 12px;
    }

    .page-banner {
        margin-top: 60px;
        height: 200px;
    }

    .page-banner h1 {
        font-size: 24px;
    }

    .products-grid,
    .cases-grid,
    .products-page-grid,
    .members-grid,
    .culture-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 40px 0;
    }

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

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

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

    .category-filter {
        padding: 6px 12px;
        font-size: 13px;
    }

    .news-page-item {
        flex-direction: column;
    }

    .news-page-item img {
        width: 100%;
        height: 200px;
    }

    /* 产品详情页移动端适配 */
    .product-detail {
        padding: 40px 0;
    }

    .product-detail-content {
        flex-direction: column;
        gap: 30px;
    }

    .product-gallery,
    .product-info {
        min-width: 100%;
    }

    .product-info h1 {
        font-size: 22px;
    }

    .product-description h3 {
        font-size: 16px;
    }

    .thumb-list img {
        width: 60px;
        height: 45px;
    }

    /* 案例详情页移动端适配 */
    .case-detail {
        padding: 40px 0;
    }

    .case-detail-content h1 {
        font-size: 22px;
    }

    .case-nav {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* ===== 移动端导航菜单 ===== */
.mobile-nav {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    z-index: 999;
    overflow-y: auto;
    padding: 20px;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav ul {
    border-top: 1px solid #eee;
}

.mobile-nav li {
    border-bottom: 1px solid #eee;
}

.mobile-nav a {
    display: block;
    padding: 15px 0;
    font-size: 16px;
    color: #333;
}

.mobile-nav .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding-left: 20px;
    display: none;
}

.mobile-nav .sub-menu.active {
    display: block;
}

.mobile-nav .has-sub > a::after {
    content: "+";
    float: right;
}

.mobile-nav .has-sub.open > a::after {
    content: "-";
}

/* ===== 产品分类样式 ===== */
.product-category-section {
    margin-bottom: 50px;
}

.product-category-section:last-of-type {
    margin-bottom: 30px;
}

.category-title {
    font-size: 24px;
    color: #2e7d32;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #2e7d32;
    position: relative;
}

.category-title::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 80px;
    height: 2px;
    background: #1b5e20;
}

/* 分类筛选时隐藏分类区块 */
.product-category-section.hidden {
    display: none;
}

/* 分类导航激活状态 */
.category-filter {
    cursor: pointer;
}

.category-filter.active {
    background: #2e7d32;
    color: #fff;
}

/* 产品计数 */
.product-count {
    font-size: 14px;
}
