/* 全局通用样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "微软雅黑", Microsoft Yahei, Arial, sans-serif;
    /* 优化字体渲染 */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    /* 平滑滚动 */
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    font-size: 14px;
}

a {
    /* 统一链接默认样式 */
    text-decoration: none;
    transition: all 0.3s;
}

img {
    /* 图片自适应 */
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 语言切换按钮 - 固定到右侧 */
.lang-switch {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 10px 0;
}

.lang-btn {
    padding: 6px 15px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
    margin-left: 8px;
}

.lang-btn.active {
    background-color: #2581dc;
    color: #fff;
    border-color: #2581dc;
}

/* 导航栏 */
.header-nav {
    background-color: #2c3e50;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 998;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: #fff;
    font-size: 22px;
    font-weight: bold;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-list a {
    color: #fff;
    font-size: 15px;
}

.nav-list a:hover,
.nav-list a.active {
    color: #2581dc;
}

/* 移动端菜单按钮 */
.menu-btn {
    display: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    user-select: none;
}

/* 页面标题通用样式 */
.page-title {
    font-size: 24px;
    color: #2c3e50;
    margin: 30px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #2581dc;
}

/* 内容卡片样式 */
.content-card {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

/* 公司介绍 */
.company-info {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.company-text,
.company-img {
    flex: 1;
    min-width: 300px;
}

.company-img img {
    width: 100%;
    border-radius: 8px;
}

/* 产品展示布局 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.product-card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.product-desc {
    padding: 15px;
}

.product-name {
    font-weight: bold;
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 8px;
}

/* 应用产品分类卡片 */
.app-card {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.app-card h3 {
    color: #2581dc;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.app-card ul {
    list-style: none;
    padding-left: 10px;
}

.app-card li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 15px;
}

.app-card li::before {
    content: "●";
    color: #2581dc;
    font-size: 10px;
    position: absolute;
    left: 0;
    top: 5px;
}

/* 表单通用样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    transition: border 0.3s;
}

.form-control:focus {
    border-color: #2581dc;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.btn-submit {
    background-color: #2581dc;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit:hover {
    background-color: #1d6fb8;
}

.success-tip {
    display: none;
    background-color: #2ecc71;
    color: #fff;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
}

/* 联系我们 */
.contact-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 20px;
}

.contact-info,
.contact-map {
    flex: 1;
    min-width: 300px;
}

.contact-map iframe {
    width: 100%;
    height: 350px;
    border: 0;
    border-radius: 8px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-icon {
    font-size: 20px;
    color: #2581dc;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border: 1px solid #eee;
    border-radius: 50%;
}

/* 页脚 - 修复全屏背景色 + 内容居中 */
.footer {
  /* 核心：全屏宽度 + 无外边距 */
  width: 100%;
  margin: 0;
  /* 背景色（换成你想要的颜色） */
  background-color: #2c3e50;
  /* 内边距（上下间距） */
  padding: 30px 0;
  /* 文字样式 */
  text-align: center;
  font-size: 12px;
  line-height: 1.8;
  color: #fff;
  /* 盒模型 */
  box-sizing: border-box;
  /* 清除可能的浮动影响 */
  clear: both;
}

/* 页脚容器 - 仅负责内容居中，不承载背景色 */
.footer .container {
  /* 最大宽度（保持内容居中不拉伸） */
  max-width: 1200px;
  /* 左右自动居中 */
  margin: 0 auto;
  /* 左右内边距（适配手机） */
  padding: 0 20px;
  /* 背景色设为透明，让footer的背景色全屏显示 */
  background: transparent !important;
  box-sizing: border-box;
}

/* 页脚邮箱点击样式 */
.footer .email {
  margin-top: 8px;
}
.footer .copy-email {
  color: #415D43;
  cursor: pointer;
  text-decoration: underline;
}

/* 语言切换内容控制 */
.lang-zh {
    display: block;
}

.lang-en {
    display: none;
}

body.en .lang-zh {
    display: none;
}

body.en .lang-en {
    display: block;
}

/* ============== 统一响应式适配（修复原代码冲突/冗余） ============== */
@media (max-width: 768px) {
    /* 移动端菜单按钮显示 */
    .menu-btn {
        display: block;
    }

    /* 导航栏移动端适配 */
    .nav-list {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #2c3e50;
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        /* 默认隐藏，JS控制show类显示 */
        display: none;
        width: 100%;
    }

    .nav-list.show {
        display: flex;
    }

    /* 字体大小适配 */
    .logo {
        font-size: 18px;
    }

    .page-title {
        font-size: 20px;
    }

    /* 卡片内边距适配 */
    .content-card {
        padding: 20px;
    }

    /* 弹性布局垂直排列 */
    .company-info,
    .contact-wrap {
        flex-direction: column;
        gap: 20px;
    }

    /* 产品图片高度适配 */
    .product-img {
        height: 150px;
    }
}