/* 导航增强优化 CSS - 只优化选中效果和交互，不改变位置 */

/* ========== 桌面端导航选中效果 ========== */

/* 当前页面导航链接高亮效果 - 添加底部指示线 */
.nav-center li.active a,
.nav-center a.active {
    color: #0782c1 !important;
    font-weight: 700 !important;
    position: relative;
}

/* 当前页面导航链接底部指示线 */
.nav-center li.active a::after,
.nav-center a.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #09a2e6, #0782c1);
    border-radius: 2px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        width: 0;
        left: 50%;
        right: 50%;
    }
    to {
        width: 100%;
        left: 0;
        right: 0;
    }
}

/* 增强导航链接hover效果 - 添加hover时的底部线条 */
.nav-center a {
    position: relative;
    transition: color 0.3s ease !important;
    cursor: pointer !important;
}

.nav-center a:hover {
    color: #0782c1 !important;
}

/* hover时的底部线条效果 */
.nav-center a:not(.active):hover::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(9, 162, 230, 0.5);
    border-radius: 1px;
    animation: hoverSlide 0.2s ease-out;
}

@keyframes hoverSlide {
    from {
        width: 0;
        left: 50%;
        right: 50%;
    }
    to {
        width: 100%;
        left: 0;
        right: 0;
    }
}

/* ========== 手机端导航修复和优化 ========== */

/* 修复手机端导航链接 - 只优化交互效果，不改变布局 */
@media (max-width: 768px) {
    
    /* 移动端导航链接样式 - 只改变颜色和字重 */
    .mobile-nav a {
        cursor: pointer;
        transition: color 0.3s ease, background-color 0.3s ease;
    }
    
    .mobile-nav a:hover {
        background-color: #f8f9fa;
        color: #09a2e6;
    }
    
    /* 移动端当前页面高亮 - 只改变颜色和字重 */
    .mobile-nav li.active a,
    .mobile-nav a.active {
        background-color: #09a2e6;
        color: white !important;
        font-weight: 600;
    }
    
    /* 移动端菜单按钮优化 - 只改变鼠标指针 */
    .mobile-menu-toggle {
        cursor: pointer;
    }
}

/* ========== 通用交互优化 ========== */

/* 移除所有a链接的下划线和焦点框 */
a {
    text-decoration: none !important;
    outline: none !important;
}

a:hover {
    text-decoration: none !important;
}

a:focus {
    outline: none !important;
    box-shadow: none !important;
}

a:active {
    outline: none !important;
}

/* 所有可点击元素的鼠标指针 */
.nav-center a,
.mobile-nav a,
.mobile-menu-toggle,
.contact-btn,
.language-button {
    cursor: pointer !important;
}

/* Contact按钮增强效果 - 只改变颜色，不改变位置 */
.contact-btn {
    transition: background-color 0.3s ease !important;
}

.contact-btn:hover {
    background: #0782c1 !important;
}

/* ========== 语言选择器优化 ========== */

.language-button {
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.language-button:hover {
    border-color: #09a2e6;
}

/* ========== 可访问性优化 ========== */

/* 移除焦点状态的框 */
.nav-center a:focus,
.mobile-nav a:focus,
.mobile-menu-toggle:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* 减少动画支持 */
@media (prefers-reduced-motion: reduce) {
    .nav-center a,
    .contact-btn {
        transition: none;
    }
}

/* ========== 底部留言板文字大小恢复 ========== */

/* 恢复底部留言板标题大小 */
.footer-contact-title {
    font-size: 36px !important;
    line-height: 1.2 !important;
}

.footer-contact-subtitle {
    font-size: 18px !important;
    line-height: 1.4 !important;
}

/* 恢复底部留言板表单文字大小 */
.footer-contact-input,
.footer-contact-textarea {
    font-size: 16px !important;
    line-height: 1.5 !important;
}

.footer-contact-submit-btn {
    font-size: 16px !important;
    font-weight: 600 !important;
}

/* 恢复成功提示框文字大小 */
.footer-success-content h3 {
    font-size: 24px !important;
    line-height: 1.3 !important;
}

.footer-success-content p {
    font-size: 16px !important;
    line-height: 1.5 !important;
}

.footer-close-success-btn {
    font-size: 14px !important;
}

/* 手机端底部留言板文字适配 */
@media (max-width: 768px) {
    .footer-contact-title {
        font-size: 28px !important;
    }
    
    .footer-contact-subtitle {
        font-size: 16px !important;
    }
    
    .footer-success-content h3 {
        font-size: 20px !important;
    }
}
