/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f0ece5; /* 修改为更柔和的米色 */
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* 警告提示 */
.warning-banner {
    background-color: #e63946;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
    position: relative;
    z-index: 100;
}

/* 导航栏 */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99;
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-text {
    font-size: 28px;
    font-weight: 700;
    color: #5d4037;
}

.logo-tagline {
    font-size: 14px;
    color: #8d6e63;
    margin-top: -5px;
}

.nav-menu {
    display: flex;
}

.nav-item {
    margin-left: 30px;
}

.nav-link {
    color: #5d4037;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #4e342e;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #8d6e63;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.mobile-nav-toggle {
    display: none;
    font-size: 24px;
    color: #5d4037;
    cursor: pointer;
}

/* 英雄区域 */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 44px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    filter: brightness(0.8);
    z-index: -1;
}

.hero-container {
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 600px;
    color: #fff;
    text-align: center;
    padding: 0 20px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-leaf-pattern {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background-image: url('../images/leaf-pattern.png');
    background-repeat: repeat-x;
    background-size: auto 100%;
    opacity: 0.3;
    z-index: 0;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: #5d4037;
    color: #fff;
    border: none;
}

.btn-primary:hover {
    background-color: #4e342e;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(93, 64, 55, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: #5d4037;
    border: 2px solid #5d4037;
}

.btn-secondary:hover {
    background-color: rgba(93, 64, 55, 0.1);
    transform: translateY(-3px);
}

/* 通用 section 样式 */
.section-padding {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #5d4037;
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #8d6e63;
    max-width: 700px;
    margin: 0 auto;
}

.section-divider {
    width: 80px;
    height: 3px;
    background-color: #8d6e63;
    margin: 20px auto 0;
}

/* 产品系列 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.product-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-image-container {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.view-details {
    color: #fff;
    border-color: #fff;
}

.view-details:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.product-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #5d4037;
    padding: 15px 20px 5px;
}

.product-description {
    color: #795548;
    padding: 0 20px 20px;
    font-size: 0.95rem;
}

/* 匠心工艺 */
.bg-texture {
    background-image: url('../images/texture-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.bg-texture::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(245, 240, 235, 0.95); /* 增加不透明度，使背景更柔和 */
    z-index: 0;
}

.features .container {
    position: relative;
    z-index: 1;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background-color: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: #5d4037;
}

.feature-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #5d4037;
    margin-bottom: 15px;
}

.feature-description {
    color: #795548;
    font-size: 0.95rem;
}

/* 烟草文化 */
.culture-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.culture-image-container {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.culture-text {
    flex: 1;
}

.culture-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #5d4037;
    margin-bottom: 20px;
}

.culture-description {
    color: #795548;
    margin-bottom: 20px;
    line-height: 1.8;
}

/* 新闻资讯 */
.bg-texture-light {
    background-image: url('../images/texture-light.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    background-color: #e8e2d5; /* 增加基础背景色 */
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.news-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-10px);
}

.news-image-container {
    height: 180px;
    overflow: hidden;
}

.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image {
    transform: scale(1.05);
}

.news-content {
    padding: 20px;
}

.news-date {
    display: inline-block;
    font-size: 0.85rem;
    color: #8d6e63;
    margin-bottom: 10px;
}

.news-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #5d4037;
    margin-bottom: 15px;
}

.news-description {
    color: #795548;
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: #5d4037;
    font-weight: 500;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #4e342e;
}

.read-more i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(5px);
}

/* 友情链接 */
.friendship-links {
    background-color: #e8e2d5; /* 调整为统一的柔和色调 */
    padding: 30px 0;
}

.links-title {
    color: #5d4037;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.link-item {
    color: #795548;
    transition: color 0.3s ease;
}

.link-item:hover {
    color: #5d4037;
}

/* 页脚 */
.footer {
    background-color: #5d4037;
    color: #e0e0e0;
    padding: 40px 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo .logo-text,
.footer-logo .logo-tagline {
    color: #fff;
}

.footer-copyright {
    text-align: center;
}

.footer-copyright p {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.2rem;
    transition: background-color 0.3s ease;
}

.social-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #5d4037;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #4e342e;
    transform: translateY(-5px);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .product-grid,
    .feature-grid,
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .product-grid,
    .feature-grid,
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .culture-content {
        flex-direction: column;
    }

    .culture-image-container,
    .culture-text {
        flex: none;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 69px;
        left: 0;
        width: 100%;
        background-color: #fff;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .nav-item {
        margin: 10px 0;
    }

    .mobile-nav-toggle {
        display: block;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .product-grid,
    .feature-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .section-padding {
        padding: 60px 0;
    }
}