/* 全局通用样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "微软雅黑", Microsoft Yahei, Arial, sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    font-size: 14px;
}

.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;
    text-decoration: none;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-list a {
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s;
}

.nav-list a:hover, .nav-list a.active {
    color: #2581dc;
}

/* 移动端菜单按钮 */
.menu-btn {
    display: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

/* 移动端导航默认隐藏，PC端flex显示 */
@media (max-width:768px) {.nav-list{display:none; width:100%;} .menu-btn{display:block;}}
@media (min-width:769px) {.nav-list{display:flex !important;} .menu-btn{display: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%;
    height: auto;
    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 {
    background-color: #2c3e50;
    color: #fff;
    padding: 30px 0;
    text-align: center;
    margin-top: 50px;
    font-size: 14px;
}

/* 语言切换内容控制 */
.lang-zh {
    display: block;
}

.lang-en {
    display: none;
}

body.en .lang-zh {
    display: none;
}

body.en .lang-en {
    display: block;
}

html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
}

main, .content-card, .page {
  flex: 1;
}

/* 响应式适配（移动端） */
@media (max-width: 768px) {
    .header-nav {
        margin-top: 0;
    }
    
    .menu-btn {
        display: block;
    }
    
    .nav-list {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #2c3e50;
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        display: none;
    }
    
    .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;
    }
    
    .product-img {
        height: 150px;
    }
}
.lang-switch {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  background: #f8f9fa !important;
  z-index: 9999 !important;
  padding: 8px 20px !important;
  margin: 0 !important;
}

.header-nav {
  position: fixed !important;
  top: 46px !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 9998 !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
}

body {
  padding-top: 110px !important;
}