:root {
    --olive-dark: #3e4f2c;
    --olive-main: #556b2f;
    --lime-accent: #8fb339;
    --bg-white: #ffffff;
    --text-main: #1a1a1a;
    --text-muted: #555555;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-white);
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    opacity: 0;
    transition: opacity 0.5s ease;
}

body.loaded { opacity: 1; }

h1, h2, h3, h4 { font-family: 'Rajdhani', sans-serif; text-transform: uppercase; letter-spacing: 1px; }

/* --- Navigation --- */
nav {
    position: fixed; top: 0; width: 100%; padding: 15px 5%;
    display: flex; justify-content: space-between; align-items: center;
    z-index: 1000; 
    background: #ffffff; 
    border-bottom: 1px solid #f0f0f0;
    height: 76px;
}

.nav-logo img { height: 45px; width: auto; display: block; }
.nav-links { display: flex; gap: 35px; align-items: center; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-weight: 600; transition: 0.3s; }
.nav-links a:hover { color: var(--olive-main); }
.btn-nav { border: 1px solid var(--olive-main); color: var(--olive-main); padding: 8px 25px; border-radius: 4px; transition: 0.3s; }
.btn-nav:hover { background: var(--olive-main); color: #fff; }

/* --- 🔥 新增：独立视频展示区 --- */
.hero-section {
    margin-top: 76px; /* 避开导航栏 */
    padding: 60px 10% 40px; /* 上下留白 */
    text-align: center;
    background: #fff;
}

.hero-text {
    margin-bottom: 40px;
}

.hero-text h1 {
    font-size: 3.5rem;
    color: var(--olive-dark);
    line-height: 1.1;
    margin-bottom: 15px;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* 视频播放器容器 */
.video-wrapper {
    width: 100%;
    max-width: 1000px; /* 限制视频最大宽度，太宽不好看 */
    margin: 0 auto; /* 居中 */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1); /* 给视频加个阴影，增加立体感 */
    background: #000;
}

.video-player {
    width: 100%;
    display: block; /* 去除底部空隙 */
    height: auto;
}

/* --- 四个入口按钮 --- */
.hub-container {
    padding: 40px 10% 80px; /* 调整间距 */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: center;
    background: #ffffff;
}

.entrance-card {
    background: #fff;
    padding: 40px 25px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-main);
    border: 1px solid #f0f0f0;
    border-bottom: 4px solid transparent;
}

.entrance-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(85, 107, 47, 0.15);
    border-bottom: 4px solid var(--lime-accent);
}

.entrance-card i { font-size: 2.5rem; color: var(--olive-main); margin-bottom: 20px; }
.entrance-card h3 { font-size: 1.5rem; margin-bottom: 10px; color: var(--olive-dark); }
.entrance-card p { color: var(--text-muted); font-size: 0.9rem; }

/* --- 通用内页样式 --- */
.page-hero {
    height: 40vh;
    background: linear-gradient(135deg, var(--olive-dark), var(--olive-main));
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    margin-top: 76px; 
}
.page-hero h1 { font-size: 3.5rem; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.content-section { padding: 80px 10%; min-height: 60vh; background: #fff; }
.section-header { margin-bottom: 50px; display: inline-block; }
.section-header h2 { font-size: 2.5rem; color: var(--olive-dark); }
.section-header span { color: var(--olive-main); }
.section-header::after { content: ''; display: block; width: 60px; height: 4px; background: var(--lime-accent); margin-top: 10px; }

/* --- 其他模块 --- */
.about-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 60px; align-items: start; }
.text-block h3 { font-size: 2rem; margin-bottom: 20px; color: var(--olive-main); }
.text-block p { color: var(--text-muted); margin-bottom: 25px; font-size: 1.05rem; }
.stats-container { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.stat-card { background: #f9f9f9; padding: 25px; border-left: 4px solid var(--olive-main); }
.stat-number { font-size: 2.5rem; font-weight: 700; color: var(--olive-dark); font-family: 'Rajdhani'; }
.stat-label { font-size: 0.9rem; color: var(--text-muted); text-transform: uppercase; }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.value-item { text-align: center; padding: 30px; background: #fff; border: 1px solid #eee; border-radius: 8px; }
.value-item i { font-size: 2.5rem; color: var(--lime-accent); margin-bottom: 15px; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.product-card { background: #fff; padding: 40px 30px; border-radius: 8px; transition: 0.3s; border: 1px solid #eee; }
.product-card:hover { transform: translateY(-8px); box-shadow: 0 15px 35px rgba(85, 107, 47, 0.15); }
.product-icon { font-size: 3rem; color: var(--olive-main); margin-bottom: 25px; }
.product-card h4 { font-size: 1.5rem; color: var(--olive-dark); margin-bottom: 12px; }

.strategy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.strategy-card { background: #f9f9f9; padding: 40px; border-top: 4px solid var(--olive-main); }
.strategy-card h3 { font-size: 1.8rem; color: var(--olive-dark); margin-bottom: 15px; }

/* --- Footer --- */
footer { background: var(--olive-dark); color: #fff; padding: 80px 10% 40px; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 50px; margin-bottom: 60px; }
.info-row { display: flex; margin-bottom: 25px; }
.info-row i { color: var(--lime-accent); margin-right: 15px; margin-top: 5px; }
.footer-logo img { height: 60px; width: auto; margin-bottom: 20px; }
.copyright { text-align: center; color: #889977; padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.1); }

/* --- Welcome Page --- */
.welcome-container {
    height: 100vh; width: 100%; display: flex; flex-direction: column;
    justify-content: center; align-items: center; background-color: #fff;
    text-align: center;
}
.welcome-logo-img { width: 120px; margin-bottom: 30px; animation: fadeUp 1s ease-out forwards; }
.welcome-title { font-size: 3rem; color: var(--olive-dark); margin-bottom: 10px; opacity: 0; animation: fadeUp 1s ease-out 0.3s forwards; }
.welcome-slogan { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 50px; opacity: 0; animation: fadeUp 1s ease-out 0.6s forwards; }
.btn-enter {
    padding: 15px 50px; border: 2px solid var(--olive-main); color: var(--olive-main);
    font-family: 'Rajdhani'; font-weight: 700; font-size: 1.2rem; text-decoration: none;
    transition: 0.4s; opacity: 0; animation: fadeUp 1s ease-out 0.9s forwards;
}
.btn-enter:hover { background-color: var(--olive-main); color: #fff; transform: translateY(-3px); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 768px) {
    .hero-text h1 { font-size: 2.5rem; }
    .about-grid, .values-grid, .footer-grid, .strategy-grid { grid-template-columns: 1fr; }
    .hub-container { grid-template-columns: 1fr; }
}
/* --- Google Map 样式 --- */
.map-wrapper {
    width: 100%;
    height: 100%;
    min-height: 350px; /* 保证地图有足够高度 */
    border-radius: 12px;
    overflow: hidden; /* 保证圆角生效 */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); /* 增加立体感 */
    border: 1px solid #eee;
}
.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}
/* --- 产品页交互样式 --- */

/* 1. 产品选项卡 (原来的卡片变身为按钮) */
.product-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 一行四个 */
    gap: 20px;
    margin-bottom: 40px;
}

.product-tab-card {
    background: #fff;
    padding: 30px 20px;
    border-radius: 8px;
    border: 1px solid #eee;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.7; /* 默认稍微淡一点 */
}

/* 选中状态 / 悬停状态 */
.product-tab-card:hover,
.product-tab-card.active {
    opacity: 1;
    border-color: var(--olive-main);
    background-color: #fcfcfc;
    box-shadow: 0 10px 20px rgba(85, 107, 47, 0.15);
    transform: translateY(-5px);
}

.product-tab-card.active {
    border-bottom: 4px solid var(--olive-main); /* 底部加粗条表示选中 */
}

.product-tab-card i {
    font-size: 2.5rem;
    color: var(--olive-main);
    margin-bottom: 15px;
    display: block;
}

.product-tab-card h4 {
    font-size: 1.1rem;
    color: var(--olive-dark);
    margin: 0;
}

/* 2. 产品详情展示区 (默认隐藏，JS控制显示) */
.product-detail-panel {
    display: none; /* 默认隐藏 */
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    animation: fadeIn 0.5s ease;
}

/* 激活时显示 */
.product-detail-panel.active {
    display: flex; /* 改为 flex 布局：左图右文 */
}

.product-detail-content {
    display: flex;
    flex-direction: row;
    width: 100%;
}

.product-image-col {
    width: 40%;
    background-color: #f4f4f4;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.product-image-col img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 保证图片填满区域 */
}

.product-text-col {
    width: 60%;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-text-col h3 {
    font-size: 2rem;
    color: var(--olive-dark);
    margin-bottom: 20px;
}

.product-text-col p {
    color: var(--text-muted);
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.spec-list {
    margin-top: 20px;
    list-style: none;
}

.spec-list li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
    color: var(--text-main);
}

.spec-list li::before {
    content: '•';
    color: var(--lime-accent);
    font-weight: bold;
    position: absolute;
    left: 0;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 移动端适配 */
@media (max-width: 900px) {
    .product-tabs { grid-template-columns: 1fr 1fr; } /* 手机变为两列 */
    .product-detail-panel.active { display: block; }
    .product-detail-content { flex-direction: column; }
    .product-image-col, .product-text-col { width: 100%; }
    .product-image-col { height: 250px; min-height: auto; }
}
/* --- 语言选择器样式 (Language Selector) --- */
.lang-dropdown {
    position: relative;
    margin-left: 15px; /* 与 Contact 按钮拉开一点距离 */
}

/* 语言按钮 */
.lang-btn {
    background: transparent;
    border: 1px solid #e0e0e0;
    padding: 6px 15px;
    border-radius: 20px; /* 圆角胶囊形状 */
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    border-color: var(--olive-main);
    color: var(--olive-main);
}

/* 下拉菜单 (默认隐藏) */
.lang-menu {
    position: absolute;
    top: 120%; /* 在按钮正下方 */
    right: 0;
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    display: none; /* 默认不显示 */
    flex-direction: column;
    min-width: 110px;
    overflow: hidden;
    z-index: 1100;
}

/* 鼠标悬停在容器上时显示菜单 */
.lang-dropdown:hover .lang-menu {
    display: flex;
    animation: fadeIn 0.3s ease;
}

/* --- 语言选择器样式修正 --- */
.lang-dropdown {
    position: relative;
    margin-left: 15px;
    z-index: 2000; /* 提高层级 */
}

/* 语言按钮 */
.lang-btn {
    background: transparent;
    border: 1px solid #e0e0e0;
    padding: 6px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    border-color: var(--olive-main);
    color: var(--olive-main);
}

/* 下拉菜单 */
.lang-menu {
    position: absolute;
    top: 100%; /* 紧贴按钮底部 */
    right: 0;
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: none;
    flex-direction: column;
    min-width: 120px;
    overflow: hidden;
    
    /* 关键修改：增加顶部 padding，防止鼠标滑过时断开 */
    padding-top: 10px; 
    margin-top: 0px; 
}

/* 鼠标悬停显示 */
.lang-dropdown:hover .lang-menu {
    display: flex;
    animation: fadeIn 0.2s ease;
}

/* 选项样式 */
.lang-menu a {
    padding: 12px 20px; /* 增大点击区域 */
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.9rem;
    background: #fff; /* 确保背景色覆盖 padding */
    border-bottom: 1px solid #f9f9f9;
    cursor: pointer; /* 变成手型 */
}

.lang-menu a:hover {
    background-color: #f4f5f0;
    color: var(--olive-main);
}