/* base.css - 基础样式文件，包含通用样式、头部样式和页脚样式 */

/* 通用重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', 'Microsoft YaHei', sans-serif;
    color: #333;
    line-height: 1.6;
}

/* 通用按钮样式 */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 207px;
    height: 54px;
    border-radius: 26px;
    background: #0057B7;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #7da4cb;color: #c1eaff;
}

.btn-primary img {
    margin-left: 10px;
}

/* 透明按钮 */
.btn-transparent {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 207px;
    height: 54px;
    border-radius: 26px;
    background: transparent;
    color: #fff;
    border: 1px solid #fff;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
}

.btn-transparent:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #002f5e;
}

/* 清除浮动 */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* ===== 头部样式 ===== */
.header {
    background: #004C98;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 77px;
}

.header.scrolled {
    height: 80px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.header-container {
    width: 100%;
    margin: 0 auto;
    padding: 0 6%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1800px;
}

.header-left {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
    transition: height 0.3s ease;
}

.header.scrolled .logo img {
    height: 30px;
}

.main-nav {
    margin-left: 80px;
}

/* 移动端菜单按钮，默认隐藏 */
.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 10px;
    padding: 0;
    margin: 0;
}

/* 桌面端导航菜单样式 */
.desktop-nav {
    display: flex;
}

.nav-item {
    margin: 0 15px;
    position: relative;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    padding: 24px 5px;
    transition: color 0.3s ease;
    position: relative;
    display: inline-block;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #FFD700;
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #FFD700;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.language-switch {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #fff;
    transition: color 0.3s ease;
}

.language-switch:hover {
    color: #FFD700;
}

.lang-icon {
    width: 22px;
    height: 22px;
    margin-right: 8px;
    border-radius: 3px;
    transition: transform 0.3s ease;
}

.language-switch:hover .lang-icon {
    transform: scale(1.1);
}

.lang-selector {
    position: relative;
}

.current-lang {
    font-size: 16px;
    font-weight: 500;
    padding: 10px 15px;
    position: relative;
    display: inline-flex;
    align-items: center;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.current-lang:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.current-lang::after {
    content: '▼';
    font-size: 10px;
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.lang-selector:hover .current-lang::after {
    transform: rotate(180deg);
}

.lang-options {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    display: none;
    z-index: 1001;
    margin-top: 0;
    padding-top: 5px; /* 替代margin-top，保持视觉间距但创建连续的hover区域 */
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

/* 通过JavaScript控制显示，添加CSS规则确保鼠标在内移动时悬浮框保持显示 */
/* 优化hover规则，确保鼠标移动路径连续 */
.lang-selector:hover .lang-options,
.lang-options:hover {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* 添加伪元素作为桥接区域，确保鼠标从current-lang到lang-options的路径连续 */
.current-lang::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 5px;
    /* 透明但可点击，确保鼠标移动路径连续 */
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lang-option {
    display: block;
    padding: 12px 25px;
    color: #333;
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 15px;
}

.lang-option:hover {
    background: #f8f9fa;
    color: #004C98;
    padding-left: 28px;
}


/* ===== 页脚样式 ===== */
footer {
    background: #fff;
    padding: 5% 2% 1%;
    transition: opacity 0.8s ease, transform 0.8s ease;
    opacity: 1;
    transform: translateY(0);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    max-width: 356px;
}

.share-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-text {
    font-size: 16px;
    color: #333;
}

.share-img {
    cursor: pointer;
    width: auto;
    height: 24px;
}

.footer-center {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-hotline {
    font-size: 16px;
    color:#888888;
    margin: 0;
}

.footer-phone{
    font-size: 30px;
    margin: 0 0 5%;
    color: #333;
    font-weight: bold;
}
.footer-email,
.footer-address {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
    margin: 0;
}

.footer-right {
    display: flex;
    gap: 40px;
}

.qrcode-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.qrcode-img {
    width: 120px;
    height: 120px;
}

.qrcode-text {
    font-size: 15px;
    color: #333;
    margin: 0;
}

.footer-divider {
    margin: 30px 0;
    height: 1px;
    background: #e0e0e0;
}

.footer-bottom {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    text-align: center;
}

.footer-copyright {
    font-size: 15px;
    color: #666;
    margin-bottom: 10px;
}

/* newsletter-section 样式 */
.newsletter-section {
    background: url("../img/emailBg.jpg") no-repeat center center/cover;
    padding: 8% 0;
    text-align: center;
}

.newsletter-content {
    max-width: 960px;
    margin: 0 auto;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.newsletter-title, .newsletter-desc, .newsletter-form {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
    transition-delay: 0.1s;
}

.newsletter-title {
    font-size: 36px;
    color: #fff;
    margin-bottom: 20px;
    font-weight: 600;
}

.newsletter-desc {
    font-size: 18px;
    color: #fff;
    margin-bottom: 30px;
    line-height: 1.6;
}

.newsletter-form {
    display: inline-block;
    width: 100%;
    max-width: 800px;
}

.newsletter-input {
    width: 100%;
    min-width: 280px;
    height: 57px;
    padding: 0 20px;
	border-radius: 28px;
	border: solid 1px #ffffff;
    font-size: 16px;
    color: #fff;
    outline: none;
    background: transparent;
    transition: border-color 0.3s ease;
}

.newsletter-input:focus {
    border-color: #4a77bd;
    border-width: 3px;
}

.newsletter-input::placeholder {
    color: #fff;
    opacity: 1;
}

.newsletter-input::-webkit-input-placeholder {
    color: #fff;
}

.newsletter-input:-moz-placeholder {
    color: #fff;
    opacity: 1;
}

.newsletter-input::-moz-placeholder {
    color: #fff;
    opacity: 1;
}

.newsletter-input:-ms-input-placeholder {
     color: #fff;
 }
.newsletter-form  .am-btn-primary{
    background-color: #00344a;
    border-color: #fff;
}
/* 响应式设计 */
@media (max-width: 1200px) {
    .newsletter-title {
        font-size: 32px;
    }
    
    .newsletter-desc {
        font-size: 16px;
    }
}

@media (max-width: 992px) {
    .newsletter-section {
        padding: 6% 0;
    }
    
    .newsletter-title {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .newsletter-section {
        padding: 40px 0;
    }
    
    .newsletter-title {
        font-size: 24px;
    }
    
    .newsletter-desc {
        font-size: 14px;
        padding: 0 10px;
    }
    
    .newsletter-input {
        height: 50px;
        font-size: 14px;
        width: 95%;
        max-width: 400px;
    }
}

@media (max-width: 480px) {
    .newsletter-title {
        font-size: 20px;
    }
    
    .newsletter-input {
        height: 45px;
        padding: 0 15px;
        font-size: 13px;
    }
}

.footer-links {
    font-size: 15px;
    color: #999;
}

.footer-link {
    color: #999;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #004C98;
}

.footer-link-separator {
    margin: 0 5px;
}

/* 响应式设计 - 头部和内容区域 */
@media (max-width: 1440px) {
    .header-container {
        padding: 0 3%;
    }
    
    .main-nav {
        margin-left: 60px;
    }
    
    .nav-item {
        margin: 0 12px;
    }
    
    .nav-link {
        font-size: 17px;
        padding: 25px 5px;
    }
}

@media (max-width: 1200px) {
    
    .main-nav {
        margin-left: 40px;
    }
    
    .nav-item {
        margin: 0 10px;
    }
    
    .nav-link {
        font-size: 16px;
        padding: 20px 5px;
    }
    
    /* 页脚响应式 */
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-left,
    .footer-center,
    .footer-right {
        margin-bottom: 30px;
        align-items: center;
    }
    .footer-logo{
        max-width: 260px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* 响应式设计 - 顶部导航 */
@media (max-width: 1024px) {
    .header {
        height: 70px;
    }
    
    .header-container {
        padding: 0 20px;
    }
    
    .main-nav {
        margin-left: 50px;
    }
    
    .nav-item {
        margin: 0 12px;
    }
    
    .nav-link {
        font-size: 15px;
    }
}
@media (max-width: 992px) {
    .main-nav {
        margin-left: 20px;
    }
    
    .nav-item {
        margin: 0 8px;
    }
    .logo img{
        height:50px;
    }
    .current-lang{
        padding: 10px 0;
    }
    
    .nav-link {
        font-size: 15px;
        padding: 15px 0;
    }
}

/* 移动端响应式设计 */
@media (max-width: 768px) {
    
    /* 在移动端设备上才显示菜单容器 */
    .mobile-nav {
        display: block;
    }
    .header {
        height: 70px;
    }
    
    .header-container {
        padding: 0 15px;
    }
    
    .main-nav {
        margin-left: 30px;
    }
    
    .nav-list {
        gap: 5px;
    }
    
    .nav-item {
        margin: 0 8px;
    }
    
    .nav-link {
        font-size: 14px;
        padding: 8px 3px;
    }
    
    .current-lang {
        font-size: 14px;
        padding: 8px 12px;
    }
    
    .lang-icon {
        width: 20px;
        height: 20px;
    }
    
    .main-nav {
        margin-left: auto;
        margin-right: 10px;
        order: 1;
    }
    .newsletter-input{
        width: 90%;
    }
    /* 隐藏桌面端导航菜单，显示移动端菜单按钮 */
    .desktop-nav {
        display: none;
    }
    
    /* 显示移动端菜单按钮 */
    .menu-toggle {
        display: block;
        order: 2;
    }
    
    .header-right {
        order: 3;
        gap: 5px;
    }
    
    /* AmazeUI 按钮样式调整 */
    .am-btn-primary {
        background-color: transparent;
        border: 1px solid #fff;
        border-radius: 4px;
        padding: 8px 12px;
        font-size: 14px;
        color: #fff;
    }
    
    .am-btn-primary:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: #fff;
    }
    
    /* 移动端菜单项样式 */
    .mobile-nav {
        position: fixed;
        top: 71px;
        left: 0;
        right: 0;
        background: #004C98;
        z-index: 999;
        padding: 0;
        /* 使用visibility替代display，确保transition效果正常工作 */
        visibility: hidden;
        opacity: 0;
        transform: translateY(-10px);
        /* 统一设置transition属性 */
        transition: visibility 0.3s ease, opacity 0.3s ease, transform 0.3s ease, max-height 0.3s ease;
        max-height: 0;
        overflow: hidden;
        /* AmazeUI 样式覆盖 - 提高优先级 */
        border: none !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    
    .mobile-nav .nav-list {
        margin: 0;
        padding: 0;
    }
    
    .mobile-nav.active {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
        max-height: 80vh; /* 与之前的最大高度保持一致 */
        overflow-y: auto;
        padding: 15px;
    }
    
    /* 移除原有的@keyframes，因为我们现在使用transition */
    
    .mobile-nav .nav-list {
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    
    .mobile-nav .nav-item {
        margin: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .mobile-nav .nav-link {
        display: block;
        padding: 15px 0;
        font-size: 16px;
    }
    
    .header-right {
        gap: 10px;
    }
    
    .current-lang {
        font-size: 14px;
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    
    .header {
        height: 65px;
    }
    
    .main-nav {
        margin-left: 15px;
    }
    
    .nav-item {
        margin: 0 5px;
    }
    
    .nav-link {
        font-size: 13px;
        padding: 6px 2px;
    }
    
    .header-right {
        gap: 10px;
    }
    
    .current-lang {
        font-size: 13px;
        padding: 6px 10px;
    }
    
    .mobile-nav {
        top: 70px;
    }
    
    .mobile-nav.active {
        padding: 15px;
    }
    
    .mobile-nav .nav-link {
        padding: 12px 0;
        font-size: 15px;
    }
}
