/* ========================================
   饭盒王网站 - 主样式文件
   配色方案：绿色主题
   ======================================== */

/* 颜色变量 */
:root {
    --primary-color: #2E7D32;        /* 主色调 - 深绿色 */
    --primary-light: #4CAF50;        /* 浅绿色 */
    --primary-dark: #1B5E20;         /* 深绿色 */
    --primary-rgb: 46, 125, 50;      /* RGB值 */
    --text-color: #212121;           /* 主文字色 - 黑色 */
    --text-light: #757575;           /* 次要文字色 */
    --bg-light: #F5F5F5;             /* 浅背景色 */
    --bg-white: #FFFFFF;             /* 白色背景 */
    --border-color: #E0E0E0;         /* 边框色 */
    --white: #FFFFFF;                /* 白色 */
}

/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 32px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn:hover {
    background-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* 顶部信息栏 */
.top-bar {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 8px 0;
    font-size: 14px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar .contact-info {
    display: flex;
    gap: 30px;
}

.top-bar .lang-switch {
    display: flex;
    gap: 10px;
}

.top-bar .lang-switch a {
    color: rgba(255, 255, 255, 0.7);
}

.top-bar .lang-switch a.active,
.top-bar .lang-switch a:hover {
    color: var(--white);
}

/* 头部导航 */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.logo img {
    height: 50px;
    width: auto;
}

.nav {
    display: flex;
    gap: 40px;
}

.nav a {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
    position: relative;
    padding: 5px 0;
}

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

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

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

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-box {
    position: relative;
}

.search-box input {
    padding: 8px 35px 8px 15px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    outline: none;
    width: 200px;
    transition: all 0.3s ease;
}

.search-box input:focus {
    border-color: var(--primary-color);
    width: 250px;
}

.search-box i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

/* Banner轮播 */
.banner {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.banner-slider {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.banner-slide {
    min-width: 100%;
    height: 100%;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.banner-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.banner-dot.active {
    background-color: var(--white);
    transform: scale(1.2);
}

.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.3);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-arrow:hover {
    background-color: var(--primary-color);
}

.banner-arrow.prev {
    left: 30px;
}

.banner-arrow.next {
    right: 30px;
}

/* 核心数据区 */
.data-section {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.data-section .container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.data-item {
    text-align: center;
    padding: 30px;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.data-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.data-item .number {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

.data-item .label {
    font-size: 18px;
    color: var(--text-color);
    margin-top: 10px;
}

.data-item .label-en {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 5px;
}

/* 首页关于我们 */
.home-about {
    padding: 80px 0;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/home/about_bg.JPG') center/cover no-repeat;
    color: var(--white);
    text-align: center;
}

.home-about .section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
}

.home-about .section-title-en {
    font-size: 18px;
    opacity: 0.8;
    margin-bottom: 30px;
}

.home-about .content {
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 16px;
    line-height: 2;
    opacity: 0.9;
}

.home-about .btn {
    background-color: var(--white);
    color: var(--primary-color);
}

.home-about .btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* 产品预览 */
.products-preview {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 10px;
}

.section-header p {
    font-size: 16px;
    color: var(--text-light);
}

.product-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-category {
    position: relative;
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
}

.product-category img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-category:hover img {
    transform: scale(1.1);
}

.product-category .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--white);
}

.product-category .overlay h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 5px;
}

.product-category .overlay p {
    font-size: 14px;
    opacity: 0.8;
}

/* 留资区域 */
.contact-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--white);
}

.contact-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact-info h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
}

.contact-info h2.en {
    font-size: 24px;
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 20px;
}

.contact-info .desc {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 30px;
}

.contact-info .contact-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-info .contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 16px;
}

/* 
   ========================================
   表单嵌入说明 - START
   ========================================
   
   以下区域为腾讯表格/第三方表单嵌入位置
   
   嵌入方法：
   1. 登录腾讯文档，创建收集表
   2. 点击"分享" -> "嵌入"
   3. 复制嵌入代码
   4. 替换下面 <!-- FORM EMBED CODE START --> 和 <!-- FORM EMBED CODE END --> 之间的内容
   
   注意事项：
   - 建议设置表单宽度为100%
   - 可以根据需要调整高度
   - 确保表单背景透明或与绿色背景协调
   
   ========================================
*/
.contact-form {
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    color: var(--text-color);
}

.contact-form h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--primary-color);
}

/* FORM EMBED CODE START */
.form-placeholder {
    border: 2px dashed var(--border-color);
    padding: 40px;
    text-align: center;
    border-radius: 8px;
    background-color: var(--bg-light);
}

.form-placeholder h4 {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.form-placeholder p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
}

.form-placeholder .tip {
    margin-top: 20px;
    padding: 15px;
    background-color: #E8F5E9;
    border-radius: 6px;
    font-size: 13px;
    color: var(--primary-color);
    text-align: left;
}

.form-placeholder .tip strong {
    display: block;
    margin-bottom: 8px;
}
/* FORM EMBED CODE END */
/* 
   ========================================
   表单嵌入说明 - END
   ========================================
*/

/* 页脚 */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer .container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-desc {
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.footer-col h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 25px;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col ul li a {
    font-size: 14px;
    opacity: 0.8;
}

.footer-col ul li a:hover {
    opacity: 1;
    padding-left: 5px;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 14px;
    opacity: 0.7;
}

/* 返回顶部 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
}

/* 产品中心页面 */
.products-page {
    padding: 60px 0;
}

.products-header {
    text-align: center;
    margin-bottom: 50px;
}

.products-header h1 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 15px;
}

.products-header p {
    font-size: 16px;
    color: var(--text-light);
}

.product-subnav {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.product-subnav a {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-color);
    padding: 10px 20px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.product-subnav a:hover,
.product-subnav a.active {
    background-color: var(--primary-color);
    color: var(--white);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.product-card .product-img {
    height: 250px;
    overflow: hidden;
}

.product-card .product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img img {
    transform: scale(1.1);
}

.product-card .product-info {
    padding: 25px;
}

.product-card .product-info h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color);
}

.product-card .product-info p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 20px;
}

/* 产品详情页 */
.product-detail {
    padding: 60px 0;
}

.product-detail .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.product-images .main-image {
    width: 100%;
    height: 500px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.product-images .main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-images .thumbnails {
    display: flex;
    gap: 15px;
}

.product-images .thumbnail {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.product-images .thumbnail.active,
.product-images .thumbnail:hover {
    border-color: var(--primary-color);
}

.product-images .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 20px;
}

.product-info .product-desc {
    font-size: 16px;
    color: var(--text-light);
    line-height: 2;
    margin-bottom: 30px;
}

.product-info .product-specs {
    margin-bottom: 30px;
}

.product-info .product-specs h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-color);
}

.product-info .spec-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.product-info .spec-item {
    padding: 15px;
    background-color: var(--bg-light);
    border-radius: 6px;
}

.product-info .spec-item .label {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 5px;
}

.product-info .spec-item .value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
}

/* 关于我们页面 */
.about-page {
    padding: 60px 0;
}

.about-banner {
    height: 400px;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/about/banner_bg.JPG') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    margin-bottom: 60px;
}

.about-banner h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
}

.about-banner p {
    font-size: 18px;
    opacity: 0.9;
}

.about-content {
    max-width: 900px;
    margin: 0 auto 60px;
}

.about-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 30px;
    text-align: center;
}

.about-content p {
    font-size: 16px;
    color: var(--text-color);
    line-height: 2;
    margin-bottom: 20px;
    text-indent: 2em;
}

.about-values {
    padding: 60px 0;
    background-color: var(--bg-light);
    margin-bottom: 60px;
}

.about-values .section-header {
    margin-bottom: 50px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.value-item {
    text-align: center;
    padding: 30px;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.value-item.show {
    opacity: 1;
    transform: translateY(0);
}

.value-item .icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--white);
    font-size: 32px;
}

.value-item h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 10px;
}

.value-item p {
    font-size: 14px;
    color: var(--text-light);
}

.certificates {
    margin-bottom: 60px;
}

.certificates .section-header {
    margin-bottom: 40px;
}

.cert-gallery {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.cert-item {
    width: 250px;
    height: 350px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.cert-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.cert-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 50px;
}

.pagination a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination a.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .product-categories,
    .product-grid,
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-section .container,
    .product-detail .container {
        grid-template-columns: 1fr;
    }
    
    .footer .container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .search-box {
        display: none;
    }
    
    .banner {
        height: 300px;
    }
    
    .data-section .container,
    .product-categories,
    .product-grid,
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .footer .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .product-subnav {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .product-images .main-image {
        height: 350px;
    }
    
    .product-images .thumbnails {
        justify-content: center;
    }
}


/* ========================================
   语言切换相关样式
   ======================================== */

/* 中文状态下字体放大 */
.lang-cn p,
.lang-cn span,
.lang-cn li,
.lang-cn label {
    font-size: 1.05em;
    line-height: 1.8;
}

.lang-cn h1 {
    font-size: 2.5em;
}

.lang-cn h2 {
    font-size: 2em;
}

.lang-cn h3 {
    font-size: 1.5em;
}

.lang-cn h4 {
    font-size: 1.2em;
}

.lang-cn .nav a {
    font-size: 16px;
}

.lang-cn .section-title {
    font-size: 32px;
}

.lang-cn .content {
    font-size: 17px;
    line-height: 2;
}

.lang-cn .data-item .label {
    font-size: 16px;
    font-weight: 500;
}

.lang-cn .product-category h3 {
    font-size: 22px;
}

.lang-cn .product-category p {
    font-size: 14px;
}

.lang-cn .footer-desc {
    font-size: 14px;
    line-height: 1.8;
}

.lang-cn .footer-col h4 {
    font-size: 18px;
}

.lang-cn .footer-col li {
    font-size: 14px;
}

/* 英文状态下保持标准字体大小 */
.lang-en p,
.lang-en span,
.lang-en li,
.lang-en label {
    font-size: 1em;
    line-height: 1.6;
}

.lang-en h1 {
    font-size: 2.2em;
}

.lang-en h2 {
    font-size: 1.8em;
}

.lang-en h3 {
    font-size: 1.3em;
}

.lang-en h4 {
    font-size: 1.1em;
}

.lang-en .nav a {
    font-size: 14px;
}

.lang-en .section-title {
    font-size: 28px;
}

.lang-en .content {
    font-size: 15px;
    line-height: 1.7;
}

.lang-en .data-item .label {
    font-size: 14px;
    font-weight: 400;
}

.lang-en .product-category h3 {
    font-size: 20px;
}

.lang-en .product-category p {
    font-size: 13px;
}

.lang-en .footer-desc {
    font-size: 13px;
    line-height: 1.6;
}

.lang-en .footer-col h4 {
    font-size: 16px;
}

.lang-en .footer-col li {
    font-size: 13px;
}

/* 确保语言切换按钮样式 */
.lang-switch a {
    cursor: pointer;
    padding: 2px 8px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.lang-switch a.active {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

.lang-switch a:hover {
    background-color: var(--primary-light);
    color: white;
}

