* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f7fa;
    color: #1a1a1a;
}

/* Header */
.header {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.logo {
    font-size: 20px;
    font-weight: 600;
    background: linear-gradient(90deg, #16a4da, #6366f1);
    -webkit-background-clip: text;
    color: transparent;
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #1a1a1a;
    padding: 0;
}

@media (max-width: 768px) {
    .nav {
        padding: 0 16px;
    }

    .logo {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        order: 1;
    }

    .nav-right {
        display: flex;
        gap: 8px;
        align-items: center;
        order: 2;
    }

    .nav-right .btn-text {
        padding: 6px 12px;
        font-size: 13px;
    }

    .nav-right .btn-primary {
        padding: 6px 12px;
        font-size: 13px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        gap: 0;
        padding: 20px;
        border-bottom: 1px solid #e5e7eb;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        padding: 12px 0;
        border-bottom: 1px solid #f5f5f5;
    }
}

.nav-links a {
    color: #0f172a;
    text-decoration: none;
    font-size: 15px;
    padding: 6px 10px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
}

.nav-links a i {
    margin-right: 6px;
    font-size: 14px;
    color: #0f172a;
}

.nav-links a.active {
    background: #eff6ff;
    color: #2563eb;
}

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

.nav-links a:hover {
    color: #1a1a1a;
}

.nav-right {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    border: none;
    text-decoration: none;
    display: inline-block;
}

.btn-text {
    background: none;
    color: #666;
}

.btn-primary {
    background: #2563eb;
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.user-avatar i {
    font-size: 16px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #374151;
    font-size: 14px;
}

.user-info .user-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.user-info .user-name {
    font-weight: 500;
}

.user-info .user-points {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

.user-info .user-points i {
    color: #f59e0b;
}

/* Footer */
.footer {
    background: white;
    border-top: 1px solid #e5e7eb;
    padding: 48px 0;
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
}

@media (max-width: 768px) {
    .footer {
        padding: 32px 0;
    }

    .footer-content {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
        padding: 0 20px;
    }

    .footer-content > :first-child {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        padding: 20px 20px 0;
        font-size: 13px;
    }
}

.footer h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 12px;
}

.footer a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.footer a:hover {
    color: #1a1a1a;
}

.footer-bottom {
    max-width: 1280px;
    margin: 32px auto 0;
    padding: 24px 24px 0;
    border-top: 1px solid #e5e7eb;
    text-align: center;
    color: #999;
    font-size: 14px;
}
