﻿/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f6f2;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: #6b4226;
    transition: all 0.3s ease;
}

a:hover {
    color: #8d6e4e;
}

.btn {
    display: inline-block;
    background-color: #6b4226;
    color: #fff;
    padding: 12px 30px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #8d6e4e;
    color: #fff;
}

.btn-more {
    display: inline-block;
    color: #6b4226;
    padding: 10px 20px;
    border: 2px solid #6b4226;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.btn-more:hover {
    background-color: #6b4226;
    color: #fff;
}

img {
    max-width: 100%;
    height: auto;
}

/* 头部导航 */
header {
    background-color: #fff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    z-index: 1000;
    top: 0;
    left: 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo h1 {
    color: #6b4226;
    font-size: 28px;
    margin: 0;
    font-weight: bold;
}

.logo span {
    color: #a58c6d;
    font-size: 14px;
    letter-spacing: 2px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: #333;
    font-weight: bold;
    padding: 10px 0;
    position: relative;
}

nav ul li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: #6b4226;
    bottom: 0;
    left: 0;
    transition: all 0.3s ease;
}

nav ul li a:hover:after,
nav ul li.active a:after {
    width: 100%;
}

nav ul li.active a {
    color: #6b4226;
}

/* 横幅 */
.banner {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/banner.jpg') no-repeat center center;
    background-size: cover;
    color: #fff;
    display: flex;
    align-items: center;
    text-align: center;
    padding-top: 80px;
    margin-top: 0;
    margin-bottom: 0;
    position: relative;
}

.banner-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.banner-slide {
    height: 100vh;
}

.banner-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.banner h2 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: bold;
    letter-spacing: 3px;
}

.banner .subtitle {
    font-size: 24px;
    margin-bottom: 30px;
    font-weight: 300;
    letter-spacing: 1px;
}

.banner-text {
    margin-bottom: 40px;
    line-height: 1.8;
}

.banner-text p {
    margin-bottom: 10px;
}

/* 特色模块 */
.features {
    padding: 80px 0;
    background-color: #fff;
}

.features .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.feature-box {
    flex: 0 0 calc(33.333% - 30px);
    text-align: center;
    margin-bottom: 30px;
    padding: 30px 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-box img {
    height: 100px;
    margin-bottom: 20px;
}

.feature-box h3 {
    color: #6b4226;
    margin-bottom: 15px;
    font-size: 22px;
}

.feature-box p {
    color: #666;
    font-size: 16px;
}

/* 产品展示 */
.products-preview {
    padding: 80px 0;
    background-color: #f9f6f2;
    text-align: center;
}

.products-preview h2 {
    font-size: 36px;
    color: #6b4226;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

.products-preview h2:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: #6b4226;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.products-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 30px;
}

.product-item {
    flex: 0 0 calc(25% - 20px);
    margin-bottom: 40px;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.product-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.product-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-item h3 {
    color: #6b4226;
    margin: 15px 0 10px;
    font-size: 18px;
}

.product-item p {
    color: #666;
    padding: 0 15px 20px;
    font-size: 14px;
}

/* 关于我们 */
.about-preview {
    padding: 80px 0;
    background-color: #fff;
}

.about-preview .container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.about-content {
    flex: 0 0 60%;
    padding-right: 50px;
}

.about-image {
    flex: 0 0 40%;
}

.about-image img {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-content h2 {
    font-size: 36px;
    color: #6b4226;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.about-content h2:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: #6b4226;
    bottom: 0;
    left: 0;
}

.about-content p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.8;
}

/* 新闻动态 */
.news-preview {
    padding: 80px 0;
    background-color: #f9f6f2;
    text-align: center;
}

.news-preview h2 {
    font-size: 36px;
    color: #6b4226;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

.news-preview h2:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: #6b4226;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.news-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 30px;
}

.news-item {
    flex: 0 0 calc(50% - 15px);
    display: flex;
    margin-bottom: 30px;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: left;
}

.news-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.news-date {
    flex: 0 0 80px;
    background-color: #6b4226;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 15px;
}

.news-date .day {
    font-size: 28px;
    font-weight: bold;
}

.news-date .month {
    font-size: 16px;
}

.news-content {
    padding: 20px;
    flex: 1;
}

.news-content h3 {
    color: #6b4226;
    margin-bottom: 10px;
    font-size: 18px;
}

.news-content p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.news-content a {
    color: #6b4226;
    font-weight: bold;
}

.news-content a:hover {
    text-decoration: underline;
}

/* 确保新闻内容中的按钮文字显示正确 */
.news-content .btn-small {
    color: #fff;
    text-decoration: none;
}

.news-content .btn-small:hover {
    text-decoration: none;
}

/* 页脚 */
footer {
    background-color: #333;
    color: #fff;
    padding: 60px 0 20px;
}

.footer-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-logo {
    flex: 0 0 25%;
}

.footer-logo h2 {
    color: #fff;
    font-size: 28px;
    margin-bottom: 10px;
}

.footer-contact {
    flex: 0 0 25%;
}

.footer-links {
    flex: 0 0 25%;
}

.footer-qrcode {
    flex: 0 0 25%;
    text-align: center;
}

.footer-qrcode img {
    width: 120px;
    margin-bottom: 10px;
}

footer h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #a58c6d;
}

footer p {
    margin-bottom: 10px;
    color: #ccc;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 8px;
}

.footer-links ul li a {
    color: #ccc;
}

.footer-links ul li a:hover {
    color: #fff;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #888;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 991px) {
    .feature-box {
        flex: 0 0 calc(50% - 20px);
    }

    .product-item {
        flex: 0 0 calc(50% - 15px);
    }

    .about-content,
    .about-image {
        flex: 0 0 100%;
    }

    .about-content {
        padding-right: 0;
        margin-bottom: 40px;
    }

    .footer-logo,
    .footer-contact,
    .footer-links,
    .footer-qrcode {
        flex: 0 0 50%;
        margin-bottom: 30px;
    }
}

@media (max-width: 767px) {
    header .container {
        flex-direction: column;
    }

    nav ul {
        margin-top: 20px;
    }

    nav ul li {
        margin-left: 15px;
        margin-right: 15px;
    }

    .banner {
        height: auto;
        padding: 100px 0 60px;
    }

    .banner h2 {
        font-size: 36px;
    }

    .banner .subtitle {
        font-size: 18px;
    }

    .feature-box,
    .product-item,
    .news-item {
        flex: 0 0 100%;
    }

    .footer-logo,
    .footer-contact,
    .footer-links,
    .footer-qrcode {
        flex: 0 0 100%;
        text-align: center;
    }
}

/* 页面横幅 */
.page-banner {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/page-banner.jpg') no-repeat center center;
    background-size: cover;
    color: #fff;
    text-align: center;
    padding: 150px 0 80px;
}

.page-banner h1 {
    font-size: 48px;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-banner p {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

/* 关于我们页面样式 */
.about-section {
    padding: 80px 0;
    background-color: #fff;
}

.about-history {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.about-image {
    flex: 0 0 40%;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-content {
    flex: 0 0 60%;
    padding-left: 50px;
}

.about-section h2 {
    font-size: 36px;
    color: #6b4226;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.about-section h2:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: #6b4226;
    bottom: 0;
    left: 0;
}

.about-content p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.8;
}

/* 核心价值 */
.core-values {
    padding: 80px 0;
    background-color: #f9f6f2;
    text-align: center;
}

.core-values h2 {
    font-size: 36px;
    color: #6b4226;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

.core-values h2:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: #6b4226;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.values-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.value-item {
    flex: 0 0 calc(25% - 30px);
    margin-bottom: 40px;
    background-color: #fff;
    border-radius: 8px;
    padding: 30px 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.value-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.value-icon {
    margin-bottom: 20px;
}

.value-icon img {
    height: 80px;
}

.value-item h3 {
    color: #6b4226;
    margin-bottom: 15px;
    font-size: 20px;
}

.value-item p {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
}

/* 团队成员 */
.team-section {
    padding: 80px 0;
    background-color: #fff;
    text-align: center;
}

.team-section h2 {
    font-size: 36px;
    color: #6b4226;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

.team-section h2:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: #6b4226;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.team-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.team-member {
    flex: 0 0 calc(33.333% - 40px);
    margin-bottom: 40px;
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.member-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 5px solid #f2e8dc;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member h3 {
    color: #6b4226;
    margin-bottom: 5px;
    font-size: 22px;
}

.team-member .position {
    color: #a58c6d;
    font-style: italic;
    margin-bottom: 15px;
}

.team-member p {
    color: #666;
    line-height: 1.6;
}

/* 发展历程 */
.milestones {
    padding: 80px 0;
    background-color: #f9f6f2;
    text-align: center;
}

.milestones h2 {
    font-size: 36px;
    color: #6b4226;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

.milestones h2:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: #6b4226;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background-color: #6b4226;
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: 30px;
    position: relative;
    margin-bottom: 50px;
    width: 50%;
    text-align: right;
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 30px;
    margin-left: 50%;
    text-align: left;
}

.timeline-item:before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #fff;
    border: 4px solid #6b4226;
    top: 0;
    right: -10px;
}

.timeline-item:nth-child(even):before {
    right: auto;
    left: -10px;
}

.timeline-date {
    position: absolute;
    right: -85px;
    top: 0;
    width: 70px;
    height: 30px;
    background-color: #6b4226;
    color: #fff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.timeline-item:nth-child(even) .timeline-date {
    right: auto;
    left: -85px;
}

.timeline-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    max-width: 350px;
}

.timeline-content h3 {
    color: #6b4226;
    margin-bottom: 10px;
    font-size: 18px;
}

.timeline-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* 响应式设计 */
@media (max-width: 991px) {
    .value-item {
        flex: 0 0 calc(50% - 20px);
    }

    .team-member {
        flex: 0 0 calc(50% - 30px);
    }

    .about-section .about-image,
    .about-section .about-content {
        flex: 0 0 100%;
    }

    .about-section .about-content {
        padding-left: 0;
        margin-top: 40px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        width: 100%;
        margin-left: 0;
        padding-left: 80px;
        padding-right: 0;
        text-align: left;
        justify-content: flex-start;
    }

    .timeline:before {
        left: 40px;
    }

    .timeline-item:before,
    .timeline-item:nth-child(even):before {
        left: 31px;
        right: auto;
    }

    .timeline-date,
    .timeline-item:nth-child(even) .timeline-date {
        left: 0;
        right: auto;
    }
}

@media (max-width: 767px) {

    .value-item,
    .team-member {
        flex: 0 0 100%;
    }

    .about-section .about-image {
        max-width: 400px;
        margin: 0 auto;
    }

    .page-banner {
        padding: 100px 0 50px;
    }

    .page-banner h1 {
        font-size: 36px;
    }
}

/* 产品分类导航 */
.product-categories {
    background-color: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #e5e5e5;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 80px;
    z-index: 100;
}

.category-nav {
    display: flex;
    justify-content: center;
    list-style: none;
    flex-wrap: wrap;
}

.category-nav li {
    margin: 0 20px;
}

.category-nav li a {
    display: block;
    padding: 8px 0;
    color: #333;
    font-weight: bold;
    position: relative;
}

.category-nav li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: #6b4226;
    bottom: 0;
    left: 0;
    transition: all 0.3s ease;
}

.category-nav li a:hover:after,
.category-nav li.active a:after {
    width: 100%;
}

.category-nav li.active a {
    color: #6b4226;
}

/* 产品展示区 */
.products-showcase {
    padding: 60px 0;
}

.product-category {
    margin-bottom: 80px;
}

.product-category:last-child {
    margin-bottom: 0;
}

.product-category h2 {
    font-size: 32px;
    color: #6b4226;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
    display: inline-block;
}

.product-category h2:after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: #6b4226;
    bottom: 0;
    left: 0;
}

.category-desc {
    color: #666;
    margin-bottom: 30px;
    max-width: 800px;
    line-height: 1.6;
}

.products-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.product-card {
    flex: 0 0 calc(33.333% - 30px);
    margin: 15px;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.product-image {
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 18px;
    color: #6b4226;
    margin-bottom: 10px;
}

.product-desc {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-weight: bold;
    color: #6b4226;
    font-size: 16px;
}

.btn-small {
    display: inline-block;
    background-color: #6b4226;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-small:hover {
    background-color: #8d6e4e;
    color: #fff;
}

/* 产品咨询表单 */
.product-inquiry {
    background-color: #f9f6f2;
    padding: 80px 0;
    text-align: center;
}

.product-inquiry h2 {
    font-size: 36px;
    color: #6b4226;
    margin-bottom: 20px;
}

.product-inquiry p {
    color: #666;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.inquiry-form {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.form-group {
    flex: 0 0 calc(50% - 10px);
    margin-bottom: 20px;
}

.form-group.full-width {
    flex: 0 0 100%;
}

.inquiry-form input,
.inquiry-form select,
.inquiry-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    color: #333;
    transition: all 0.3s ease;
}

.inquiry-form input:focus,
.inquiry-form select:focus,
.inquiry-form textarea:focus {
    border-color: #6b4226;
    outline: none;
    box-shadow: 0 0 5px rgba(107, 66, 38, 0.2);
}

.inquiry-form textarea {
    resize: vertical;
}

.inquiry-form button {
    width: 100%;
    cursor: pointer;
}

/* 响应式设计 */
@media (max-width: 991px) {
    .product-card {
        flex: 0 0 calc(50% - 30px);
    }

    .category-nav li {
        margin: 0 10px;
    }
}

@media (max-width: 767px) {
    .product-card {
        flex: 0 0 100%;
    }

    .form-group {
        flex: 0 0 100%;
    }

    .category-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 10px;
        justify-content: flex-start;
    }

    .category-nav::-webkit-scrollbar {
        height: 3px;
    }

    .category-nav::-webkit-scrollbar-thumb {
        background-color: #ccc;
        border-radius: 3px;
    }

    .category-nav li {
        flex: 0 0 auto;
        margin: 0 10px;
        white-space: nowrap;
    }
}

/* 图片占位符样式 */
.img-placeholder {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    width: 100%;
    padding-bottom: 75%;
    /* 4:3比例 */
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    text-align: center;
    font-size: 14px;
    border-radius: 4px;
}

.img-placeholder span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    padding: 0 10px;
}

.img-placeholder img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-item .img-placeholder {
    height: 200px;
}

.about-image .img-placeholder {
    min-height: 300px;
}

.footer-qrcode .img-placeholder {
    width: 120px;
    height: 120px;
    margin: 0 auto 10px;
}

/* 新闻列表页样式 */
.news-categories {
    background-color: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #e5e5e5;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 70px;
    z-index: 100;
}

.news-listing {
    padding: 60px 0;
}

.news-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.news-card {
    flex: 0 0 calc(50% - 30px);
    margin: 15px;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.news-image {
    height: 250px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-meta {
    padding: 15px 20px 0;
    display: flex;
    justify-content: space-between;
    color: #888;
    font-size: 14px;
}

.news-content {
    padding: 10px 20px 20px;
}

.news-content h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.news-card:hover .news-content h3 {
    color: #6b4226;
}

.news-content p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pagination {
    margin-top: 40px;
    text-align: center;
}

.pagination a {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 5px;
    background-color: #fff;
    border: 1px solid #ddd;
    color: #333;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination a.active {
    background-color: #6b4226;
    border-color: #6b4226;
    color: #fff;
}

.subscribe-section {
    background-color: #f2e8dc;
    padding: 60px 0;
    text-align: center;
}

.subscribe-section h2 {
    font-size: 28px;
    color: #6b4226;
    margin-bottom: 15px;
}

.subscribe-section p {
    color: #666;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.subscribe-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.subscribe-form input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
}

.subscribe-form button {
    border-radius: 0 4px 4px 0;
    border: none;
}

/* 新闻详情页样式 */
.news-detail {
    padding: 60px 0;
    background-color: #fff;
    position: relative;
}

.breadcrumb {
    margin-bottom: 30px;
    color: #888;
    font-size: 14px;
}

.breadcrumb a {
    color: #333;
    transition: all 0.3s ease;
}

.breadcrumb a:hover {
    color: #6b4226;
}

.article {
    margin-bottom: 40px;
}

.article-header {
    margin-bottom: 25px;
    position: relative;
}

.article-title {
    font-size: 28px;
    margin-bottom: 15px;
    color: #333;
    position: relative;
    line-height: 1.4;
}

.article-meta {
    color: #888;
    font-size: 14px;
}

.article-meta span {
    margin-right: 20px;
}

.article-meta i {
    margin-right: 5px;
}

.article-featured-image {
    margin-bottom: 30px;
    text-align: center;
}

.article-featured-image img {
    max-width: 100%;
    max-height: 450px;
    /* 限制图片高度 */
    width: auto;
    /* 保持原始宽高比 */
    border-radius: 8px;
    object-fit: contain;
    /* 确保图片完整显示 */
    display: inline-block;
}

.article-content {
    line-height: 1.8;
    color: #333;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content img {
    max-width: 100%;
    max-height: 450px;
    /* 限制文章内图片高度 */
    width: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
}

.article-image {
    margin: 30px 0;
    text-align: center;
}

.article-image img {
    max-width: 100%;
    max-height: 450px;
    /* 限制图片高度 */
    width: auto;
    /* 保持原始宽高比 */
    border-radius: 8px;
    object-fit: contain;
    /* 确保图片完整显示 */
}

.image-caption {
    margin-top: 10px;
    font-size: 14px;
    color: #888;
    font-style: italic;
}

.article-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}

.article-tags a {
    display: inline-block;
    margin-right: 10px;
    padding: 5px 10px;
    background-color: #f5f5f5;
    color: #666;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.article-tags a:hover {
    background-color: #6b4226;
    color: #fff;
}

.article-share a {
    display: inline-block;
    margin-left: 10px;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    background-color: #f5f5f5;
    color: #666;
    border-radius: 50%;
    font-size: 14px;
    transition: all 0.3s ease;
}

.article-share a:hover {
    background-color: #6b4226;
    color: #fff;
}

.article-nav {
    display: flex;
    margin-bottom: 40px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 20px 0;
}

.article-prev,
.article-next {
    flex: 0 0 50%;
}

.article-next {
    text-align: right;
}

.article-nav a {
    color: #333;
    transition: all 0.3s ease;
}

.article-nav a:hover {
    color: #6b4226;
}

.article-nav span {
    display: block;
    font-size: 14px;
    color: #888;
    margin-bottom: 5px;
}

.article-nav p {
    font-weight: bold;
}

.related-news h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.related-news-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.related-news-item {
    flex: 0 0 calc(33.333% - 20px);
    margin: 0 10px 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.related-news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.related-news-image {
    height: 150px;
    overflow: hidden;
}

.related-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.related-news-item:hover .related-news-image img {
    transform: scale(1.05);
}

.related-news-info {
    padding: 15px;
}

.related-news-info h4 {
    font-size: 16px;
    margin-bottom: 10px;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.related-news-item:hover .related-news-info h4 {
    color: #6b4226;
}

.related-news-date {
    font-size: 12px;
    color: #888;
}

/* 响应式设计 */
@media (max-width: 991px) {
    .news-card {
        flex: 0 0 calc(100% - 30px);
    }

    .related-news-item {
        flex: 0 0 calc(50% - 20px);
    }

    .article-footer {
        flex-direction: column;
    }

    .article-tags {
        margin-bottom: 15px;
    }
}

@media (max-width: 767px) {
    .related-news-item {
        flex: 0 0 calc(100% - 20px);
    }

    .article-nav {
        flex-direction: column;
    }

    .article-prev,
    .article-next {
        flex: 0 0 100%;
        text-align: left;
    }

    .article-prev {
        margin-bottom: 20px;
    }

    .subscribe-form {
        flex-direction: column;
    }

    .subscribe-form input,
    .subscribe-form button {
        width: 100%;
        border-radius: 4px;
        margin-bottom: 10px;
    }
}

html {
    scroll-padding-top: 180px;
    /* 增加滚动填充，与顶部导航栏的高度匹配 */
}

.product-category {
    scroll-margin-top: 180px;
    /* 增加滚动边距，与顶部导航栏的高度匹配 */
}

/* 产品详情页样式 */
.product-detail {
    padding: 60px 0;
    background-color: #fff;
}

.product-info-wrapper {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.product-gallery {
    flex: 0 0 50%;
    padding-right: 30px;
}

.product-main-image {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
}

.product-main-image .img-placeholder {
    height: 400px;
}

.product-info-detail {
    flex: 0 0 50%;
    padding-left: 30px;
}

.product-info-detail h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 15px;
}

.product-meta {
    color: #888;
    margin-bottom: 20px;
    font-size: 14px;
}

.product-price {
    margin-bottom: 20px;
}

.product-price .price {
    color: #6b4226;
    font-size: 24px;
    font-weight: bold;
}

.product-price .unit {
    color: #888;
    font-size: 16px;
}

.product-short-desc {
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e5e5e5;
}

.product-actions {
    display: flex;
    gap: 15px;
}

.btn-outline {
    display: inline-block;
    border: 2px solid #6b4226;
    color: #6b4226;
    padding: 12px 30px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: #6b4226;
    color: #fff;
}

.product-tabs {
    margin-bottom: 60px;
}

.tabs-nav {
    display: flex;
    list-style: none;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 30px;
}

.tabs-nav li {
    margin-right: 30px;
}

.tabs-nav li a {
    display: block;
    padding: 15px 0;
    color: #333;
    font-weight: bold;
    position: relative;
}

.tabs-nav li.active a {
    color: #6b4226;
}

.tabs-nav li.active a:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #6b4226;
    bottom: -1px;
    left: 0;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.product-description {
    line-height: 1.8;
    color: #333;
}

.product-description p {
    margin-bottom: 20px;
}

.product-description ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.product-description li {
    margin-bottom: 10px;
}

.product-specification table {
    width: 100%;
    border-collapse: collapse;
}

.product-specification th,
.product-specification td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e5e5e5;
}

.product-specification th {
    width: 150px;
    background-color: #f9f9f9;
    color: #333;
    font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 991px) {

    .product-gallery,
    .product-info-detail {
        flex: 0 0 100%;
        padding: 0;
    }

    .product-gallery {
        margin-bottom: 30px;
    }
}

/* 查看更多按钮容器样式 */
.view-more-container {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 40px;
    width: 100%;
}

.view-more-container .btn {
    display: inline-block;
    padding: 10px 25px;
    background-color: #fff;
    color: #6b4226;
    border: 2px solid #6b4226;
    transition: all 0.3s ease;
}

.view-more-container .btn:hover {
    background-color: #6b4226;
    color: #fff;
}

/* 分类详情页样式 */
.category-detail {
    padding: 60px 0;
    background-color: #fff;
}

.category-description {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #666;
    line-height: 1.6;
}