:root {
    --primary-green: #A2D281;
    --dark-gray: #4A4E59;
    --light-bg: #F8F9FA;
    --text-dark: #333333;
    --text-light: #666666;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.6;
}

/* 导航栏 */
header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--dark-gray);
    text-decoration: none;
}

.logo-icon {
    height: 42px;
    width: 42px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
    border-radius: 9px;
}

.logo-text {
    white-space: nowrap;
    line-height: 1.15;
}

.logo-text span {
    color: var(--primary-green);
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-left: auto;
    margin-right: 18px;
}

/* 顶栏常驻操作区：语言切换 + 移动端菜单按钮（语言按钮不折叠进菜单） */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 500;
    transition: color 0.3s;
}

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

/* 三语切换选择器（EN / 中 / VI） */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 2px;
    background: #eef3ea;
    border-radius: 20px;
    padding: 3px;
}

.lang-opt {
    border: none;
    background: transparent;
    color: var(--dark-gray);
    padding: 5px 12px;
    border-radius: 16px;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.2;
    transition: background 0.25s, color 0.25s;
}

.lang-opt:hover {
    color: var(--primary-green);
}

.lang-opt.active {
    background: var(--primary-green);
    color: #fff;
}

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--dark-gray);
}

/* 通用容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* 首页 Hero 区域 */
.hero {
    background: linear-gradient(135deg, var(--dark-gray) 0%, #2c2f36 100%);
    color: white;
    text-align: center;
    padding: 100px 20px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.2rem;
    color: #cccccc;
}

/* 公司背景 */
.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--dark-gray);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--primary-green);
    margin: 10px auto;
}

.company-info {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
    color: var(--text-light);
}

/* 核心优势 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.feature-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-top: 4px solid var(--primary-green);
}

/* 明星产品 (占位图) */
.star-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.placeholder-img {
    width: 100%;
    height: 250px;
    background: linear-gradient(45deg, #d3e7c6, var(--primary-green));
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--dark-gray);
    font-weight: bold;
    font-size: 1.2rem;
    text-align: center;
    padding: 20px;
}

/* 产品名录列表 */
.product-category {
    background: white;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.product-category h3 {
    color: var(--dark-gray);
    margin-bottom: 20px;
    border-left: 5px solid var(--primary-green);
    padding-left: 15px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    justify-items: center;
}

.product-item {
    width: 100%;
    max-width: 360px;
}

.product-item .placeholder-img {
    aspect-ratio: 4 / 3;
    height: auto;
    background: linear-gradient(45deg, #e9ecef, #ced4da);
    color: #6c757d;
    font-size: 1rem;
}

/* 产品实拍图 */
.product-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-item:hover .product-img {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

/* 图片包裹层（用于放置明星角标） */
.img-wrap {
    position: relative;
}

/* 明星产品角标 */
.star-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary-green);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 4px 12px;
    border-radius: 14px;
    letter-spacing: 1px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.18);
    z-index: 2;
}

.product-item p {
    margin-top: 10px;
    font-weight: 500;
    text-align: center;
}

/* 首页明星产品图采用更宽的比例 */
.star-img {
    aspect-ratio: 16 / 10;
}

/* 联系方式 */
.contact-box {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.contact-box h3 {
    color: var(--primary-green);
    margin-bottom: 15px;
}

.contact-item {
    margin-bottom: 20px;
}
.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item strong {
    color: var(--dark-gray);
}

.contact-head {
    margin-bottom: 6px;
    line-height: 1.6;
}

.contact-line {
    line-height: 1.9;
}

.contact-person {
    color: var(--dark-gray);
    font-weight: 600;
}

/* 页脚 */
footer {
    background-color: var(--dark-gray);
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 50px;
}

/* 404 页面 */
.page-404 {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.page-404 footer {
    margin-top: 0;
}

.error-page {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.error-card {
    text-align: center;
    max-width: 620px;
}

.error-code {
    font-size: 8rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -4px;
    background: linear-gradient(135deg, var(--primary-green) 0%, #6fb24a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.error-title {
    font-size: 2rem;
    color: var(--dark-gray);
    margin: 8px 0 16px;
}

.error-desc {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 34px;
}

.error-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 13px 32px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.btn-primary {
    background-color: var(--primary-green);
    color: var(--dark-gray);
}

.btn-primary:hover {
    background-color: #8fc56b;
    transform: translateY(-1px);
}

.btn-outline {
    border: 2px solid var(--primary-green);
    color: var(--dark-gray);
    padding: 11px 30px;
}

.btn-outline:hover {
    background-color: var(--primary-green);
    transform: translateY(-1px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: white;
        padding: 20px;
        margin: 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    .nav-links.active {
        display: flex;
    }
    /* 语言选择器常驻顶栏右侧，无需展开菜单即可切换 */
    .nav-actions {
        margin-left: auto;
        gap: 8px;
    }
    .menu-toggle {
        display: block;
        line-height: 1;
    }
    .lang-switcher {
        gap: 2px;
        padding: 2px;
    }
    .lang-opt {
        padding: 6px 8px;
        font-size: 0.76rem;
    }
    /* 窄屏导航 Logo 紧凑显示 */
    .logo {
        gap: 8px;
    }
    .logo-icon {
        height: 34px;
        width: 34px;
    }
    .logo-text {
        font-size: 0.95rem;
    }
    .hero h1 {
        font-size: 1.8rem;
    }
    .error-code {
        font-size: 5rem;
        letter-spacing: -2px;
    }
    .error-title {
        font-size: 1.55rem;
    }
    .error-actions {
        flex-direction: column;
        align-items: center;
    }
    .btn {
        width: 100%;
        max-width: 280px;
        box-sizing: border-box;
    }
}