/* 公共样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
    color: #000;
    line-height: 1.5;
    background-color: #fff;
    overflow-x: hidden;
}

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

/* 基础标题样式 */
h1 {
    font-size: 36px;
    font-weight: bold;
    line-height: 1.2;
}

h2 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.3;
}

h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
}

/* 基础段落样式 */
p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* 移动端统一字体规范 */
@media (max-width: 768px) {
    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 22px;
        margin-bottom: 18px;
    }

    h3 {
        font-size: 16px;
        margin-bottom: 12px;
    }

    p {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 12px;
        text-align: justify;
    }

    /* 移动端文本对齐优化 */
    .banner-subtitle,
    .brand-text,
    .purpose-text,
    .philosophy-text {
        text-align: center;
    }

    /* 优化移动端文本间距 */
    section {
        margin-bottom: 30px;
    }

    /* 统一移动端按钮样式 */
    .more-btn {
        font-size: 13px;
        padding: 10px 25px;
    }
}

/* 中型手机屏幕优化（480px-768px） */
@media (max-width: 576px) {
    h1 {
        font-size: 26px;
    }

    h2 {
        font-size: 21px;
        margin-bottom: 16px;
    }

    h3 {
        font-size: 15px;
        margin-bottom: 11px;
    }

    p {
        font-size: 13px;
        line-height: 1.5;
        margin-bottom: 11px;
        text-align: justify;
    }

    /* 优化中型手机文本间距 */
    section {
        margin-bottom: 28px;
    }

    /* 统一中型手机按钮样式 */
    .more-btn {
        font-size: 12px;
        padding: 9px 23px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 20px;
        margin-bottom: 15px;
    }

    h3 {
        font-size: 15px;
        margin-bottom: 10px;
    }

    p {
        font-size: 13px;
        line-height: 1.5;
        margin-bottom: 10px;
        text-align: justify;
    }

    /* 移动端文本对齐优化 */
    .banner-subtitle,
    .brand-text,
    .purpose-text,
    .philosophy-text {
        text-align: center;
    }

    /* 优化移动端文本间距 */
    section {
        margin-bottom: 25px;
    }

    /* 统一移动端按钮样式 */
    .more-btn {
        font-size: 12px;
        padding: 9px 22px;
    }
}

/* banner基础样式 */
.banner {
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    overflow: hidden;
    /* 确保容器高度能自适应内容 */
    display: block;
    min-height: 400px;
}

/* 确保banner在移动端也是100%宽度 */
@media (max-width: 768px) {
    .banner {
        width: 100%;
        margin: 0;
        padding: 0;
    }
}

/* 头部样式 */
header {
    background-color: #000;
    color: #fff;
    padding: 25px 0;
    position: relative;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 20px 0;
}

.logo img {
    width: auto;
    height: 44px;
    display: block;
    object-fit: contain;
}



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

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: normal;
}

/* 搜索容器 */
.search-container {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

/* 搜索表单 */
.search-form {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.search-input {
    padding: 10px 15px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 14px;
    width: 250px;
    outline: none;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-submit-btn {
    background: transparent;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.search-submit-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.search-submit-btn img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* 语言切换按钮 */
.language-switcher {
    display: flex;
    gap: 10px;
}

.lang-btn {
    background: none;
    border: 1px solid #fff;
    color: #fff;
    padding: 5px 15px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.lang-btn:hover {
    background-color: gold;
    color: #000;
    border-color: gold;
}

.lang-btn.active {
    background-color: gold;
    color: #000;
    border-color: gold;
}

/* 通用按钮样式 */
.more-btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 25px;
    background-color: gold;
    color: #fff;
    min-width: 150px;
    text-align: center;
}

.more-btn:hover {
    background-color: #ffd700;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

/* 移动端按钮优化 */
@media (max-width: 768px) {
    .more-btn {
        padding: 14px 35px;
        font-size: 13px;
        min-width: 140px;
    }
}

@media (max-width: 480px) {
    .more-btn {
        padding: 12px 30px;
        font-size: 12px;
        min-width: 130px;
    }
}

/* 页脚 */
footer {
    background-color: #000;
    color: #888;
    text-align: center;
    padding: 40px 0;
    font-size: 14px;
    border-top: 1px solid #333;
}

/* 响应式设计 - 中屏幕优化（手机桌面模式） */
@media (max-width: 1200px) {
    nav {
        flex-wrap: wrap;
        gap: 15px;
        align-items: center;
        justify-content: center;
    }

    .nav-links {
        gap: 15px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .nav-links a {
        font-size: 13px;
        padding: 8px 18px;
    }

    .search-container {
        margin-right: 0;
    }
}

/* 汉堡菜单按钮样式 */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 12px;
    z-index: 101;
    flex-shrink: 0;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.menu-icon {
    display: block;
    width: 26px;
    height: 3px;
    background-color: #fff;
    margin: 6px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
    transform-origin: center;
}

/* 移动端菜单容器 - 默认继承桌面端样式 */
.mobile-menu-container {
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
}

/* 响应式设计 - 小屏幕优化 */
@media (max-width: 768px) {
    nav {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 10px 15px;
        position: relative;
        min-height: 60px;
    }

    /* 显示汉堡菜单按钮 */
    .mobile-menu-toggle {
        display: block;
    }

    /* 默认隐藏移动端菜单和搜索 */
    .mobile-menu-container {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: rgba(0, 0, 0, 0.98);
        padding: 20px;
        border-radius: 0 0 12px 12px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
        z-index: 100;
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        backdrop-filter: blur(10px);
    }

    /* 激活状态 - 显示菜单 */
    .mobile-menu-container.active {
        display: flex;
        animation: slideDown 0.3s ease-out;
    }

    /* 菜单滑入动画 */
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* 汉堡菜单激活状态 */
    .mobile-menu-toggle.active .menu-icon:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }

    .mobile-menu-toggle.active .menu-icon:nth-child(2) {
        opacity: 0;
        transform: scale(0.5);
    }

    .mobile-menu-toggle.active .menu-icon:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .logo {
        margin-bottom: 0;
        padding: 5px 0;
        flex-shrink: 0;
    }

    .logo img {
        height: 38px;
    }

    /* 重置导航链接样式 */
    .nav-links {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        font-size: 15px;
        font-weight: 500;
        white-space: nowrap;
        padding: 12px 25px;
        border-radius: 25px;
        transition: all 0.3s ease;
        background-color: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: #fff;
        text-decoration: none;
    }

    .nav-links a:hover,
    .nav-links a:active {
        background-color: rgba(255, 215, 0, 0.2);
        border-color: gold;
        color: gold;
        transform: translateY(-2px);
    }

    /* 重置搜索容器样式 */
    .search-container {
        display: block;
        margin-right: 0;
        margin-bottom: 0;
        width: 100%;
    }

    .search-form {
        width: 100%;
        max-width: 100%;
        border-radius: 25px;
        background-color: rgba(255, 255, 255, 0.1);
        overflow: hidden;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .search-input {
        width: calc(100% - 48px);
        padding: 12px 18px;
        font-size: 14px;
        background: transparent;
        border: none;
        color: #fff;
        outline: none;
    }

    .search-input::placeholder {
        color: rgba(255, 255, 255, 0.7);
    }

    .search-submit-btn {
        padding: 12px 16px;
        background-color: rgba(255, 215, 0, 0.8);
        border: none;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .search-submit-btn:hover {
        background-color: gold;
    }

    .language-switcher {
        justify-content: center;
        gap: 12px;
        flex-shrink: 0;
        margin-top: 5px;
    }

    .lang-btn {
        padding: 8px 20px;
        font-size: 13px;
        font-weight: 500;
        border-radius: 20px;
        border: 1px solid rgba(255, 255, 255, 0.3);
        transition: all 0.3s ease;
    }

    .lang-btn:hover {
        background-color: rgba(255, 215, 0, 0.2);
        border-color: gold;
        color: gold;
    }

    .lang-btn.active {
        background-color: gold;
        color: #000;
        border-color: gold;
    }
}