/* 导航栏样式 - 根据设计稿精确还原 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-green: #2d5a27;
    --accent-green: #4a7c59;
    --text-dark: #333333;
    --text-light: #666666;
    --border-blue: #e3f2fd;
    --white: #ffffff;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Microsoft YaHei', '微软雅黑', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

/* 导航栏容器 */
.navbar {
    background: var(--white);
    border-top: 1px solid var(--border-blue);
    border-bottom: 1px solid var(--border-blue);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 80px;
}

.nav-container {
    max-width: 1360px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* 左侧Logo和公司名称 */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    width: 231px;
    height: 54px;
    object-fit: contain;
}

.nav-phone {
    width: 16px;
    height: 16px;
}

.company-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.company-name-cn {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
}

.company-name-en {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-light);
    line-height: 1.2;
    letter-spacing: 0.5px;
}

/* 中间导航菜单 */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 16px;
    font-weight: 500;
    padding: 8px 0;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-green);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-green);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* 右侧联系信息和按钮 */
.nav-contact {
    display: flex;
    align-items: center;
    gap: 20px;
}

.phone-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.phone-icon {
    font-size: 18px;
    color: var(--primary-green);
}

.phone-number {
    font-size: 16px;
    font-weight: 500;
    color: var(--primary-green);
}

.sample-btn {
    background: var(--primary-green);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.sample-btn:hover {
    background: var(--accent-green);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(45, 90, 39, 0.3);
}

/* 移动端菜单切换按钮 */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.active {
    color: #3D6D3F;
    font-weight: 600;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: 0.3s;
}

/* 主要内容区域 */
main {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

.hero {
    /* padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); */
    text-align: center;
}

.container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-light);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0 15px;
    }
    
    .nav-menu {
        gap: 30px;
    }
    
    .nav-contact {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .navbar {
        height: 70px;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 20px 0;
        gap: 20px;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    
    .nav-contact {
        flex-direction: column;
        gap: 10px;
    }
    
    .phone-info {
        flex-direction: column;
        gap: 5px;
    }
    
    .company-name-cn {
        font-size: 18px;
    }
    
    .company-name-en {
        font-size: 12px;
    }
    
    .logo-img {
        width: 40px;
        height: 40px;
    }
    
    main {
        margin-top: 70px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 10px;
    }
    
    .nav-logo {
        gap: 10px;
    }
    
    .company-name-cn {
        font-size: 16px;
    }
    
    .company-name-en {
        font-size: 11px;
    }
    
    .logo-img {
        width: 35px;
        height: 35px;
    }
    
    .sample-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .phone-number {
        font-size: 14px;
    }
}
