/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background-color: #ffffff;
    overflow-x: hidden;
    color: #1a1a1a;
    max-width: 1920px;
    margin: 0 auto;
}

/* 多语言切换 */
[lang="en"] {
    display: none !important;
}

.is-english [lang="zh"] {
    display: none !important;
}

.is-english [lang="en"] {
    display: block !important;
}

/* 头部样式 */
.header {
    padding: 1.2rem 12%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    max-width: 1920px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
}

@media (max-width: 1200px) {
    .header {
        padding: 1.2rem 8%;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: url('../images/logo.png') no-repeat center center;
    background-size: contain;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.logo-icon:hover {
    transform: scale(1.1);
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: -0.5px;
}

.right-section {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #1a1a1a;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.nav-links a:hover {
    color: #2240C4;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #2240C4;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.language-switch {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.6rem 1.2rem;
    border-radius: 24px;
    transition: all 0.3s ease;
    border: 1.5px solid #eee;
    user-select: none;
}

.language-switch:hover {
    background-color: rgba(34, 64, 196, 0.1);
    border-color: #2240C4;
}

.language-switch .divider {
    width: 1px;
    height: 12px;
    background: #eee;
    margin: 0 0.5rem;
}

.language-switch .lang-option {
    font-size: 0.9rem;
    font-weight: 500;
    color: #1a1a1a;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.language-switch .lang-option.active {
    opacity: 1;
}

/* 移动菜单按钮 */
.mobile-menu-btn {
    display: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background: #1a1a1a;
    margin: 6px 0;
    transition: all 0.3s ease;
}

/* 底部区域 */
.footer {
    background: #1a1a1a;
    color: #ffffff;
    padding: 60px 20px 30px;
}

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

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    text-decoration: none;
    color: #ffffff;
}

.footer-logo img {
    width: 40px;
    height: 40px;
    margin-right: 12px;
}

.footer-logo span {
    font-size: 24px;
    font-weight: 700;
}

.footer-desc {
    font-size: 14px;
    color: #999;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 16px;
    align-items: center;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: #999;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: #2240C4;
    color: #ffffff;
    transform: translateY(-2px);
}

.footer-section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #ffffff;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #999;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #2240C4;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* 移动端响应式 */
@media (max-width: 1024px) {
    .header {
        padding: 1rem 5%;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: #fff;
        flex-direction: column;
        padding: 2rem;
        transition: right 0.3s ease;
        overflow-y: auto;
        z-index: 99;
    }

    .nav-links.active {
        right: 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

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

    .language-switch {
        padding: 0.4rem 0.8rem;
        white-space: nowrap;
        min-width: auto;
    }

    .language-switch .lang-option {
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .language-switch .divider {
        margin: 0 0.3rem;
    }

    .nav-links a {
        font-size: 1.2rem;
        padding: 1rem 0;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer {
        padding: 40px 20px 20px;
    }

    .footer-section-title {
        font-size: 15px;
    }
}

/* 通用按钮样式 */
button {
    border: none;
    outline: none;
}

button:focus, a:focus {
    outline: none;
}

/* 优化滚动体验 */
html {
    scroll-behavior: smooth;
}

/* 邮箱复制功能样式 */
.email-copy {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.email-copy:hover {
    transform: scale(1.1);
}

.email-copy::after {
    content: attr(data-email);
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9999;
    pointer-events: none;
}

.email-copy:hover::after {
    opacity: 1;
    visibility: visible;
}

.email-copy.copied::after {
    content: attr(data-email) " 已复制";
    background: #4CAF50;
    bottom: -40px;
}

.email-copy.copied {
    transform: scale(1.1);
}

