/* styles/global.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9ff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 - 所有页面共用 */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.15);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    color: #667eea;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    display: block;
}

.nav-links a:hover,
.nav-links a.active {
    color: white;
    background: linear-gradient(45deg, #667eea, #764ba2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 50%;
    background-color: #667eea;
    transition: all 0.3s ease;
}

.nav-links a:hover::after {
    width: 80%;
    left: 10%;
}

/* 语言切换按钮 */
.language-switcher {
    display: flex;
    gap: 0.5rem;
}

.language-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #667eea;
    background: transparent;
    color: #667eea;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.language-btn:hover,
.language-btn.active {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

/* 通用页面内容样式 */
.page-content {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
    padding: 4rem 0;
}

.content-section {
    background: white;
    margin: 0 auto;
    max-width: 1200px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.content {
    padding: 3rem 2rem;
}

.section-title {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #667eea;
    border-radius: 2px;
}

/* 按钮样式 */
.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    margin: 0.5rem;
}

.btn-primary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

/* 页脚 */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
    }

    .nav-links a {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    .language-switcher {
        gap: 0.3rem;
    }

    .language-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .content {
        padding: 2rem 1rem;
    }
}