/* ==========================================
   嘟嘟小助手 — 官网样式
   ========================================== */

:root {
    --primary: #6C5CE7;
    --primary-light: #A29BFE;
    --bg: #FAFAFE;
    --text: #2D3436;
    --text-light: #636E72;
    --card-bg: #FFFFFF;
    --border: #E8E8F0;
    --radius: 16px;
    --shadow: 0 4px 24px rgba(108, 92, 231, 0.08);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Navbar ---- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 250, 254, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}

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

.logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.nav-links a {
    margin-left: 28px;
    text-decoration: none;
    color: var(--text-light);
    font-size: 15px;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary);
}

/* ---- Hero ---- */
.hero {
    text-align: center;
    padding: 100px 0 80px;
    background: linear-gradient(180deg, #F8F7FF 0%, var(--bg) 100%);
}

.hero h1 {
    font-size: 52px;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(135deg, var(--primary), #FD79A8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .subtitle {
    font-size: 22px;
    color: var(--text-light);
    margin-top: 12px;
}

.hero .description {
    font-size: 16px;
    color: var(--text-light);
    margin-top: 24px;
    line-height: 1.8;
}

.badges {
    margin-top: 40px;
}

.badge img {
    height: 50px;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.badge img:hover {
    opacity: 0.8;
}

/* ---- Features ---- */
.features {
    padding: 80px 0;
}

.features h2 {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 48px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(108, 92, 231, 0.12);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

/* ---- Legal Pages ---- */
.legal-page {
    padding: 60px 0;
    max-width: 720px;
    margin: 0 auto;
}

.legal-page h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.legal-page .update-date {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 36px;
}

.legal-page h2 {
    font-size: 20px;
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 12px;
    color: var(--primary);
}

.legal-page p,
.legal-page ul {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 16px;
}

.legal-page ul {
    padding-left: 24px;
}

.legal-page li {
    margin-bottom: 6px;
}

/* ---- Footer ---- */
.footer {
    border-top: 1px solid var(--border);
    padding: 32px 0;
    text-align: center;
}

.footer p {
    color: var(--text-light);
    font-size: 13px;
}

.footer-links {
    margin-top: 12px;
}

.footer-links a {
    margin: 0 16px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 13px;
}

.footer-links a:hover {
    color: var(--primary);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 36px;
    }

    .hero .subtitle {
        font-size: 18px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .nav-links a {
        margin-left: 16px;
        font-size: 13px;
    }
}
