/* 广西北部湾珠乡橄榄食品有限公司官网样式 */
/* 绿色健康大气风格 - 突出中秋月饼主题 */

:root {
    --primary-green: #1a6d0f;
    --medium-green: #2d8a1a;
    --light-green: #4ac52a;
    --accent-green: #6bd93a;
    --ultra-light-green: #f0f9eb;
    --bg-cream: #fafaf5;
    --accent-gold: #c9956b;
    --text-dark: #2c2c2c;
    --text-medium: #4a4a4a;
    --text-light: #6e6e6e;
    --white: #ffffff;
    --shadow-soft: 0 4px 20px rgba(26, 109, 15, 0.08);
    --shadow-medium: 0 8px 30px rgba(26, 109, 15, 0.12);
    --shadow-strong: 0 12px 40px rgba(26, 109, 15, 0.16);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Serif SC', 'Microsoft YaHei', 'SimSun', serif;
    color: var(--text-dark);
    line-height: 1.8;
    background: var(--bg-cream);
}

/* 导航栏 */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(26, 77, 15, 0.08);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 12px 0;
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-img {
    width: auto;
    height: 70px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.logo-text h1 {
    font-size: 20px;
    color: var(--primary-green);
    margin: 0;
    font-weight: 700;
    letter-spacing: 1px;
    font-family: 'Noto Serif SC', 'Microsoft YaHei', serif;
}

.logo-text span {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 400;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 35px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-medium);
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
    letter-spacing: 0.5px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-green);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-green), var(--light-green));
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* 英雄区域 */
.hero {
    background: linear-gradient(135deg, rgba(26, 77, 15, 0.85), rgba(45, 122, 26, 0.75)),
                url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(26, 77, 15, 0.3) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease;
}

.hero-content h2 {
    font-size: 56px;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: 3px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    font-family: 'Noto Serif SC', 'Microsoft YaHei', serif;
}

.hero-content p {
    font-size: 22px;
    margin-bottom: 35px;
    animation: fadeInUp 1s ease 0.3s;
    animation-fill-mode: both;
    letter-spacing: 2px;
    font-weight: 300;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
}

.btn {
    display: inline-block;
    padding: 14px 42px;
    background: linear-gradient(135deg, var(--accent-green), var(--light-green));
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.4s ease;
    animation: fadeInUp 1s ease 0.6s;
    animation-fill-mode: both;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(107, 195, 58, 0.4);
    border: 2px solid transparent;
}

.btn:hover {
    background: linear-gradient(135deg, var(--primary-green), var(--accent-gold));
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(26, 109, 15, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* 关于区域 */
.about-section {
    padding: 70px 0;
    background: var(--ultra-light-green);
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(107, 195, 58, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    position: relative;
    z-index: 1;
}

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

.section-title h2 {
    font-size: 42px;
    color: var(--primary-green);
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: 2px;
    font-family: 'Noto Serif SC', 'Microsoft YaHei', serif;
}

.section-title .divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-green), var(--light-green));
    margin: 0 auto;
    border-radius: 2px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 32px;
    color: var(--primary-green);
    margin-bottom: 25px;
    font-weight: 700;
    letter-spacing: 1px;
    font-family: 'Noto Serif SC', 'Microsoft YaHei', serif;
}

.about-text p {
    color: var(--text-medium);
    line-height: 2;
    margin-bottom: 18px;
    font-size: 16px;
}

.about-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: transform 0.4s ease;
    position: relative;
}

.about-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid rgba(107, 195, 58, 0.3);
    border-radius: 15px;
    pointer-events: none;
}

.about-image:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

/* 产品区域 */
.products-section {
    padding: 70px 0;
    background: var(--white);
    position: relative;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
    margin-top: 60px;
}

.product-card {
    background: var(--ultra-light-green);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 25px;
    gap: 25px;
    border: 1px solid rgba(107, 195, 58, 0.15);
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-green), var(--light-green));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
    border-color: rgba(107, 195, 58, 0.3);
}

.product-card:hover::before {
    opacity: 1;
}

.product-icon {
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(26, 77, 15, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(107, 195, 58, 0.1), rgba(74, 173, 42, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 15px;
}

.product-card:hover .product-icon {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(26, 77, 15, 0.12);
}

.product-card:hover .product-icon::before {
    opacity: 1;
}

.product-icon img {
    width: 65px;
    height: 65px;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

.product-info {
    flex: 1;
}

.product-info h3 {
    font-size: 22px;
    color: var(--primary-green);
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    font-family: 'Noto Serif SC', 'Microsoft YaHei', serif;
}

.product-info p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.8;
}

/* 优势区域 */
.advantages-section {
    padding: 70px 0;
    background: var(--ultra-light-green);
    position: relative;
    overflow: hidden;
}

.advantages-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(107, 195, 58, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 35px;
}

.advantage-item {
    text-align: center;
    padding: 40px 30px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s ease;
    border: 1px solid rgba(107, 195, 58, 0.1);
    position: relative;
    overflow: hidden;
}

.advantage-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-green), var(--light-green));
}

.advantage-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
    border-color: rgba(107, 195, 58, 0.25);
}

.advantage-item .icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--primary-green), var(--medium-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 36px;
    color: var(--white);
    box-shadow: 0 6px 20px rgba(26, 77, 15, 0.2);
    transition: all 0.3s ease;
}

.advantage-item .icon i {
    font-size: inherit;
    color: inherit;
}

.advantage-item:hover .icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(26, 77, 15, 0.3);
}

.advantage-item h3 {
    font-size: 22px;
    color: var(--primary-green);
    margin-bottom: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    font-family: 'Noto Serif SC', 'Microsoft YaHei', serif;
}

.advantage-item p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.8;
}

/* 联系区域 */
.contact-section {
    padding: 70px 0;
    background: var(--white);
}

.contact-content {
    display: flex;
    justify-content: center;
    margin-top: 60px;
}

.contact-info {
    max-width: 600px;
    width: 100%;
}

.contact-info h3 {
    font-size: 28px;
    color: var(--primary-green);
    margin-bottom: 35px;
    font-weight: 700;
    letter-spacing: 1px;
    font-family: 'Noto Serif SC', 'Microsoft YaHei', serif;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--ultra-light-green);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(107, 195, 58, 0.1);
}

.contact-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-soft);
    border-color: rgba(107, 195, 58, 0.25);
}

.contact-item .icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--ultra-light-green), var(--white));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: var(--primary-green);
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(26, 77, 15, 0.08);
}

.contact-item .info h4 {
    font-size: 17px;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-weight: 600;
}

.contact-item .info p {
    color: var(--text-light);
    font-size: 16px;
    line-height:1.6;
}

.contact-form {
    background: var(--ultra-light-green);
    padding: 50px;
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(107, 195, 58, 0.15);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-green);
    box-shadow: 0 0 0 3px rgba(107, 195, 58, 0.1);
}

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

.btn-submit {
    background: linear-gradient(135deg, var(--primary-green), var(--medium-green));
    color: var(--white);
    padding: 14px 45px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.4s ease;
    font-weight: 600;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(26, 77, 15, 0.2);
}

.btn-submit:hover {
    background: linear-gradient(135deg, var(--medium-green), var(--accent-gold));
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(26, 109, 15, 0.3);
}

/* 页脚 */
.footer {
    background: linear-gradient(135deg, var(--primary-green), #0d3d05);
    color: var(--white);
    padding: 60px 0 25px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-green), var(--light-green), var(--accent-green));
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 22px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    font-family: 'Noto Serif SC', 'Microsoft YaHei', serif;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-green), var(--light-green));
    border-radius: 2px;
}

.footer-column p,
.footer-column a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    line-height: 2;
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.footer-column a:hover {
    color: var(--accent-green);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 汉堡菜单按钮 */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    transition: all 0.3s ease;
}

.hamburger i {
    font-size: 24px;
    color: var(--primary-green);
    transition: all 0.3s ease;
}

.hamburger.active i {
    transform: rotate(90deg);
}

/* 响应式 */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: right 0.4s ease;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        width: 100%;
        text-align: center;
    }
    
    .nav-links a {
        font-size: 18px;
        padding: 15px 0;
        display: block;
        width: 100%;
    }
    
    .hero-content h2 {
        font-size: 36px;
    }
    
    .hero-content p {
        font-size: 18px;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .products-grid,
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title h2 {
        font-size: 32px;
    }
    
    .about-text h3 {
        font-size: 26px;
    }
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 选择文本颜色 */
::selection {
    background: rgba(107, 195, 58, 0.3);
    color: var(--primary-green);
}
