:root {
    --primary: #4361ee;
    --secondary: #279e62;
    --accent: #4895ef;
    --light: #f8f9fa;
    --dark: #212529;
    --success: #3166cb;
    --warning: #f72585;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, 'Segoe UI', 'Roboto', 'Inter', sans-serif;
    background: #f8fafc;
    color: #0f172a;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 导航栏 */
.navbar {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(8px);
    background: rgba(255,255,255,0.96);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    text-decoration: none;
}
.brand-logo {
    width: 120px;
    height: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 2px 8px rgba(95, 5, 255, 0.4));
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #334155;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #2563eb;
}

/* 移动端菜单 */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #1e293b;
}

/* 主内容 */
main {
    flex: 1;
    padding: 3rem 0 4rem;
}

/* Hero 区域 */
.hero {
    text-align: center;
    padding: 2rem 0 3rem;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(to right, #0f172a, #1e40af);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
}

.hero .tagline {
    font-size: 1.25rem;
    color: #475569;
    max-width: 720px;
    margin: 0 auto 2rem;
    background: white;
    padding: 1.8rem;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    transition: all 0.2s;
    line-height: 1.8;
}

.tagline:hover {
    transform: translateY(-4px);
    border-color: #bfdbfe;
    box-shadow: 0 12px 20px -12px rgba(0,0,0,0.1);
}

.btn-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.8rem;
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-primary {
    background: #2563eb;
    color: white;
    box-shadow: 0 2px 6px rgba(37,99,235,0.2);
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

.btn-outline {
    border: 1px solid #cbd5e1;
    color: #1e293b;
    background: white;
}

.btn-outline:hover {
    border-color: #2563eb;
    color: #2563eb;
}

/* 功能卡片 */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.card {
    background: white;
    padding: 1.8rem;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -2px rgba(0,0,0,0.02);
    transition: all 0.2s;
}

.card:hover {
    transform: translateY(-4px);
    border-color: #bfdbfe;
    box-shadow: 0 12px 20px -12px rgba(0,0,0,0.1);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.card p {
    color: #475569;
}

.badge {
    background: #dbeafe;
    color: #1e40af;
    padding: 0.25rem 0.8rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 1rem;
}

/* 安全提示 */
.alert-note {
    background: #fef9c3;
    border-left: 4px solid #eab308;
    padding: 1.2rem;
    border-radius: 16px;
    margin: 2rem 0;
    color: #854d0e;
}

/* 页脚 */
.footer {
    border-top: 1px solid #e2e8f0;
    background: white;
    padding: 2rem 0;
    text-align: center;
    color: #475569;
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    text-decoration: none;
    color: #3b82f6;
}

/* 法律页面专用 */
.legal-content {
    background: white;
    padding: 2rem;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    margin: 1rem 0;
}
.legal-content h2 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}
.legal-content p, .legal-content li {
    color: #334155;
}

.nav-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.nav-button {
    background: var(--success);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: var(--box-shadow);
}

.nav-button:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 1rem 0;
    }
    .nav-links.show {
        display: flex;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .nav-buttons {
        flex-direction: column;
        align-items: center;
    }
            
    .nav-button {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}