/* 通用页面样式 */

/* 确保样式被加载的临时样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: white;
    color: #333;
}

/* 导航栏样式 */
.nav-container {
    height: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #3b82f6;
}

.brand-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #3b82f6;
    border-radius: 50%;
    color: white;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: #3b82f6;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    outline: none;
}

.btn-outline {
    background: transparent;
    color: #3b82f6;
    border: 1px solid #e2e8f0;
}

.btn-outline:hover {
    background: #eff6ff;
    border-color: #3b82f6;
}

.btn-primary {
    background: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background: #2563eb;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* 主内容区域 */
main {
    padding-top: 80px;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

/* 页面Hero区域 */
.page-hero {
    padding: 5rem 0 3rem;
    background: linear-gradient(135deg, #f8fafc, #e0f2fe);
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1e293b;
}

.page-subtitle {
    font-size: 1.125rem;
    color: #64748b;
    max-width: 700px;
    margin: 0 auto 3rem;
}

/* 区域通用样式 */
.section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1e293b;
    text-align: center;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #64748b;
    max-width: 700px;
    margin: 0 auto 3rem;
    text-align: center;
}

/* 移动端菜单切换按钮 */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 30px;
    height: 30px;
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: #1e293b;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-toggle span:nth-child(1) {
    margin-bottom: 5px;
}

.mobile-toggle span:nth-child(3) {
    margin-top: 5px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background: white;
        flex-direction: column;
        padding: 2rem;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .nav-actions {
        display: none;
    }
}