/* ============================================
   烟台奕天食品有限公司 - 网站样式
   ============================================ */

/* === 全局重置与基础样式 === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === HEADER / 顶部导航 === */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 45px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.logo-cn {
    font-size: 16px;
    font-weight: 700;
    color: #2c5f2d;
}

.logo-en {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
}

.logo-sub {
    font-size: 10px;
    color: #999;
}

.main-nav ul {
    display: flex;
    gap: 5px;
}

.main-nav ul li a {
    display: block;
    padding: 10px 16px;
    font-size: 15px;
    color: #555;
    border-radius: 4px;
    transition: all 0.3s;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    color: #2c5f2d;
    background: #f0f7f0;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #555;
}

/* === HERO BANNER / 首页大图 === */
.hero-banner {
    position: relative;
    width: 100%;
    height: 520px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: #4a7c59; /* 占位背景色 */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    color: #fff;
    max-width: 800px;
    padding: 20px;
}

.hero-content h1 {
    font-size: 32px;
    font-weight: 400;
    line-height: 1.6;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* === 公司简介区域 === */
.intro-section {
    padding: 60px 0;
    background: #fafafa;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.intro-text {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.intro-desc {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    text-indent: 2em;
}

.intro-image img {
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* === 产品中心 === */
.products-section {
    padding: 60px 0;
    background: #fff;
}

.section-title {
    text-align: center;
    font-size: 28px;
    color: #2c5f2d;
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #2c5f2d;
    margin: 12px auto 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #e8f0e8; /* 占位背景色 */
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-img img {
    transform: scale(1.05);
}

.product-info {
    padding: 18px 15px;
    text-align: center;
}

.product-info h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 4px;
}

.product-info p {
    font-size: 13px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* === 关于我们 - 页头横幅 === */
.page-banner {
    position: relative;
    width: 100%;
    height: 350px;
    background-size: cover;
    background-position: center;
    background-color: #2c5f2d; /* 占位背景色 */
}

.page-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-banner-overlay h1 {
    color: #fff;
    font-size: 36px;
    font-weight: 400;
    letter-spacing: 4px;
}

/* === 关于我们 - 内容区域 === */
.about-section {
    padding: 60px 0;
}

.about-block {
    margin-bottom: 60px;
}

.about-block:last-child {
    margin-bottom: 0;
}

.section-header {
    text-align: center;
    margin-bottom: 35px;
}

.section-header h2 {
    font-size: 28px;
    color: #2c5f2d;
    font-weight: 600;
}

.header-divider {
    width: 80px;
    height: 2px;
    background: linear-gradient(to right, transparent, #2c5f2d, transparent);
    margin: 15px auto 0;
}

.about-content p {
    font-size: 16px;
    line-height: 2;
    color: #555;
    text-indent: 2em;
    margin-bottom: 15px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.feature-item {
    background: #f8fbf8;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #2c5f2d;
}

.feature-item h3 {
    font-size: 18px;
    color: #2c5f2d;
    margin-bottom: 12px;
}

.feature-item p {
    font-size: 15px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 10px;
}

.feature-item p:last-child {
    margin-bottom: 0;
}

/* 企业使命 */
.mission-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.mission-slogan {
    font-size: 20px;
    color: #2c5f2d;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.mission-content p {
    font-size: 16px;
    line-height: 2;
    color: #555;
    margin-bottom: 15px;
}

.mission-quote {
    font-size: 18px;
    color: #4a7c59;
    font-style: italic;
    font-weight: 500;
    margin-top: 25px;
}

/* === FOOTER / 页脚 === */
.site-footer {
    background: #2c3e2d;
    color: #ccc;
    padding: 50px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand h4,
.footer-contact h4,
.footer-links h4 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 18px;
    font-weight: 600;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.8;
    color: #aaa;
}

.footer-contact p {
    font-size: 14px;
    line-height: 2;
    color: #aaa;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    font-size: 14px;
    color: #aaa;
    transition: color 0.3s;
}

.footer-links ul li a:hover {
    color: #8bc48e;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    font-size: 13px;
    color: #888;
}

/* === 响应式设计 === */
@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .intro-grid {
        grid-template-columns: 1fr;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .header-inner {
        height: 60px;
    }

    .logo img {
        height: 35px;
    }

    .logo-cn {
        font-size: 14px;
    }

    .logo-en,
    .logo-sub {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        display: none;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        padding: 10px 0;
    }

    .main-nav ul li a {
        padding: 12px 20px;
        border-radius: 0;
    }

    .hero-banner {
        height: 350px;
    }

    .hero-content h1 {
        font-size: 22px;
    }

    .products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .page-banner {
        height: 250px;
    }

    .page-banner-overlay h1 {
        font-size: 28px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .hero-banner {
        height: 280px;
    }

    .hero-content h1 {
        font-size: 18px;
    }

    .section-title {
        font-size: 22px;
    }
}
