/* 
 * main.css - 额外的样式代码
 * 主要用于 Tailwind CSS 无法完全覆盖的特殊样式
 */

/* 精美语言切换器样式 */
.language-dropdown {
    position: relative;
    z-index: 1000;
}

/* 语言切换按钮 */
.language-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.language-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.language-toggle:hover::before {
    left: 100%;
}

.language-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.language-toggle:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* 语言图标 */
.language-icon {
    font-size: 16px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

/* 语言文本 */
.language-text {
    font-weight: 600;
    letter-spacing: 0.025em;
}

/* 语言箭头 */
.language-arrow {
    font-size: 10px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.8;
}

.language-toggle:hover .language-arrow {
    transform: rotate(180deg);
}

/* 语言下拉菜单 */
.language-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 140px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 8px 16px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.language-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* 语言选项 */
.language-item {
    list-style: none;
    margin: 0;
}

.language-item span {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.language-item span::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: -1;
}

.language-item span:hover {
    color: white;
    transform: translateX(4px);
}

.language-item span:hover::before {
    opacity: 1;
}

/* 语言名称 */
.language-name {
    flex: 1;
    font-weight: 600;
}

/* 移动端菜单样式 */
#mobileMenu {
    display: none;
}

#mobileMenu.show {
    display: block;
}

/* 移动端菜单显示状态 */
.mobile-menu.show {
    display: block;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .language-toggle {
        padding: 8px 12px;
        min-width: 120px;
    }
    
    .language-text {
        display: block;
        font-size: 12px;
    }
    
    .language-menu {
        right: -20px;
        min-width: 120px;
    }
}

/* ===== 从 inc_header.html 迁移的样式 ===== */

/* 导航链接下划线效果 */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* 导航链接激活状态 */
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: #bfdbfe; /* 激活状态文字颜色 */
}

/* 移动端导航链接激活状态 */
.mobile-nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    color: #bfdbfe;
    border-left: 3px solid white;
    padding-left: 1rem;
}

/* 汉堡菜单动画 */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== 从 inc_footer.html 迁移的样式 ===== */

/* 页脚导航链接箭头效果 */
.footer-nav a {
    position: relative;
}

.footer-nav a::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: all 0.3s ease;
    color: #3b82f6;
}

.footer-nav a:hover::before {
    opacity: 1;
    left: -15px;
}

/* 页脚标题下划线效果 */
.footer-section h3 {
    position: relative;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: #3b82f6;
    border-radius: 1px;
}

/**  faq  */
.contact-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 8px;
}

.contact-link:hover {
    background: #f8f9fa;
    transform: translateX(5px);
}

.contact-link i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.highlight-text {
    font-weight: 700;
    color: #667eea;
    transition: all 0.3s ease;
}

.faq a {
    font-weight: 700;
    color: #667eea;
    transition: all 0.3s ease;
}