/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
}

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

/* 导航栏样式 */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    transition: all 0.3s ease;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

.logo {
    display: flex;
    flex-direction: column;   /* 强制上下排列 */
    align-items: flex-start;
    line-height: 1.2;
}

.logo-text-cn {
    font-size: 22px;
    font-weight: 600;
    color: #2c3e50;
    white-space: normal;
}

.logo-text-en {
    font-size: 11px;
    color: #6c757d;
    letter-spacing: 0.5px;
    white-space: normal;
}

/* 如果你以后要用图片 logo */
.logo-image {
    display: inline-block;
}

.logo-image img {
    height: 40px;
    width: auto;
    vertical-align: middle;
}

/* 汉堡菜单按钮（默认隐藏，移动端显示） */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* 汉堡菜单激活状态 - X形 */
.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #007bff;
    transition: width 0.3s ease;
}

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

/* 首页横幅样式 */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    min-height: 600px;
    position: relative;
    background-color: transparent;
    padding: 120px 0 60px;
    text-align: center;
    color: #fff;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.8;
    z-index: -1;
    filter: brightness(0.7);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.hero h1 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    position: relative;
    font-size: 24px;
    margin-bottom: 40px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
    font-size: 18px;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
}

.cta-button i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.cta-button:hover i {
    transform: translateX(5px);
}

/* 产品区域样式 */
.products {
    padding: 80px 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

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

.product-card h3 {
    font-size: 24px;
    margin: 20px 0 10px;
    color: #2c3e50;
}

.product-image {
    overflow: hidden;
    border-radius: 5px;
    margin: -20px -20px 20px -20px;
}

.learn-more {
    display: inline-block;
    color: #007bff;
    text-decoration: none;
    margin-top: 15px;
    font-weight: 500;
}

.learn-more i {
    font-size: 12px;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.learn-more:hover i {
    transform: translateX(5px);
}

/* 关于我们样式 */
.about {
    background-color: #f8f9fa;
    padding: 80px 0;
}

/* 联系方式样式 */
.contact {
    padding: 80px 0;
}

.contact-info {
    margin-top: 30px;
}

/* 页脚样式 */
.footer {
    background-color: #333;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

/* 响应式设计 */
@media (max-width: 768px) {
    /* 显示汉堡菜单按钮 */
    .hamburger {
        display: block;
    }

    /* 导航链接默认隐藏，展开时显示为竖向列表 */
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    /* 激活时显示菜单 */
    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 0;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 12px 20px;
        font-size: 16px;
    }

    .navbar .container {
        position: relative;
    }

    .logo {
        flex-shrink: 1;
        min-width: 0;
        max-width: calc(100% - 55px);
    }

    .logo-text-cn,
    .logo-text-en {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 100%;
    }

    .hero h1 {
        font-size: 32px;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .logo-image img {
        height: 32px;
    }

    .logo-text-cn {
        font-size: 18px;
    }

    .logo-text-en {
        font-size: 10px;
    }

} 

/* 更新其他部分样式 */
section {
    padding: 100px 0;
}

h2 {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: #2c3e50;
} 

/* 关于我们样式更新 */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h3 {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 30px;
    color: #666;
    line-height: 1.8;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 5px;
}

.stat-label {
    color: #666;
    font-size: 14px;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* 联系我们样式更新 */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 50px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.info-item i {
    font-size: 24px;
    color: #007bff;
    margin-right: 20px;
    margin-top: 5px;
}

.info-content h4 {
    font-size: 18px;
    margin-bottom: 5px;
    color: #2c3e50;
}

.info-content p {
    color: #666;
}


/* 核心：控制微信二维码 + 社交图标 整体横向排列 */
.social-weixin-group {
    display: flex;          /* 开启弹性布局，实现横向排列 */
    align-items: center;    /* 垂直居中对齐，避免二维码和图标高低错位 */
    gap: 15px;              /* 微信和社交图标之间的间距（可按需调整） */
    margin: 15px 0;         /* 整体上下间距，替代原有social-links的margin-top */
}

/* 社交图标容器：保留原有核心样式，仅调整顶部外边距 */
.social-links {
    display: flex;
    gap: 25px;
    margin-top: 0; /* 关键修改：去掉顶部30px外边距，避免垂直错位 */
}

/* 单个社交图标样式：修正错误+保留所有原有样式 */
.social-link {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease;
    font-size: 30px; /* 图标字体放大，适配更大的按钮 */
}

/* 抖音官方色：纯黑（抖音APP主色） */
.social-link.douyin {
    background: #000000;
}

/* YouTube官方色：纯红（YouTube品牌主色） */
.social-link.youtube {
    background: #FF0000;
}

/* 保留你原有的hover悬浮效果：图标向上偏移 */
.social-link:hover {
    transform: translateY(-3px);
}

/* 可选：hover时颜色轻微加深（不改变偏移效果，仅优化视觉） */
.social-link.douyin:hover {
    background: #222222;
}
.social-link.youtube:hover {
    background: #CC0000;
}

/* 淘宝官方色：橙色（淘宝品牌主色） */
.social-link.taobao {
    background: #FF5000;
}
.social-link.taobao:hover {
    background: #E04600;
}

/* 微信二维码样式：适配布局，避免尺寸异常 */
.weixin-image {
    width: 150px; /* 二维码宽度，与60px的图标尺寸协调（可按需调整） */
}
.weixin-image img {
    width: 100%;
    height: auto; /* 保持二维码宽高比，防止拉伸变形 */
}

.contact-form {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group textarea {
    height: 150px;
    resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #007bff;
    outline: none;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
}

/* 响应式设计补充 */
@media (max-width: 768px) {
    .about-content,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        text-align: center;
    }
    
    .info-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .info-item i {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .social-links {
        justify-content: center;
        gap: 12px;
    }

    .social-link {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .social-weixin-group {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .weixin-image {
        width: 100px;
    }
}

/* 表单提交状态样式 */
.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
}

.success-message,
.error-message {
    display: none;
    color: #155724;
    font-size: 14px;
}

.success-message i,
.error-message i {
    margin-right: 5px;
}

.success-message {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
}

.error-message {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}

.btn-loading {
    color: #fff;
}

.btn-loading i {
    margin-right: 5px;
}

/* 禁用状态的提交按钮 */
.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
} 

.weixin-image {
    margin: 15px 0; /* 上下间距 */
    max-width: 150px; /* 图片最大宽度，避免撑破容器 */
}
.weixin-image img {
    width: 100%; /* 图片自适应容器宽度 */
    height: auto; /* 保持宽高比，不拉伸 */
}

/* ==================== 语言切换按钮样式 ==================== */

/* 语言切换容器 */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 20px;
}

/* 单个语言链接 */
.lang-link {
    display: inline-block;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 1.5px solid transparent;
}

/* 当前激活的语言 */
.lang-link.active {
    color: #007bff;
    border-color: #007bff;
    background-color: rgba(0, 123, 255, 0.05);
}

/* 非激活语言 hover 效果 */
.lang-link:not(.active):hover {
    background-color: #f8f9fa;
    border-color: #ddd;
}

/* 分隔符 */
.lang-separator {
    color: #ccc;
    font-size: 14px;
}

/* ==================== 布局修正（关键）==================== */

/* 修正桌面端导航栏布局 - 让导航菜单和语言切换按钮靠右对齐 */
.nav-links {
    margin-left: auto; /* 关键修改：让导航菜单及之后的元素靠右对齐 */
}

/* ==================== 移动端响应式适配 ==================== */

@media (max-width: 768px) {
    /* 调整为Grid三栏布局: Logo | 语言切换 | 汉堡菜单 */
    .navbar .container {
        display: grid;
        grid-template-columns: 1fr auto auto;
        gap: 10px;
        align-items: center;
    }

    /* Logo缩小避免挤压 */
    .logo {
        max-width: calc(100% - 100px);
    }

    /* 语言切换按钮调整 */
    .lang-switch {
        margin-left: 10px;
        gap: 4px;
    }

    .lang-link {
        padding: 5px 8px;
        font-size: 12px;
    }

    /* 汉堡菜单保持最右侧 */
    .hamburger {
        margin-left: 5px;
    }

    /* 导航下拉菜单占据整行 */
    .nav-links {
        grid-column: 1 / -1;
        margin-left: 0; /* 移动端重置margin-left */
    }

    .nav-links.active {
        display: flex;
    }
}

/* 平板设备适配 */
@media (min-width: 768px) and (max-width: 1024px) {
    .logo-text-cn {
        font-size: 20px;
    }

    .logo-text-en {
        font-size: 10px;
    }

    .lang-link {
        padding: 5px 10px;
        font-size: 13px;
    }
}