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

:root {
    --primary-color: #2563eb;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 12px;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #4f46e5 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 48px;
}

.header .title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.header .subtitle {
    font-size: 24px;
    opacity: 0.95;
    margin-bottom: 8px;
    font-weight: 400;
}

.header .tagline {
    font-size: 18px;
    opacity: 0.85;
    font-weight: 300;
}

/* Intro */
.intro {
    text-align: center;
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 48px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Category Section */
.category-section {
    margin-bottom: 48px;
}

.category-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-title .category-icon {
    font-size: 28px;
}

.category-title .count {
    margin-left: auto;
    background-color: var(--primary-color);
    color: white;
    font-size: 14px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 20px;
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.resource-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    display: block;
}

.resource-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.card-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.card-desc {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

.badge-official {
    background-color: #2563eb;
    color: white;
}

.badge-community {
    background-color: #8b5cf6;
    color: white;
}

.badge-recommended {
    background-color: #10b981;
    color: white;
}

.badge-cloud {
    background-color: #0ea5e9;
    color: white;
}

.badge-team {
    background-color: #f59e0b;
    color: white;
}

.badge-doc {
    background-color: #6366f1;
    color: white;
}

.badge-video {
    background-color: #ef4444;
    color: white;
}

.badge-beta {
    background-color: #8b5cf6;
    color: white;
}

.badge-byte {
    background-color: #000000;
    color: white;
}

.badge-ali {
    background-color: #ff6a00;
    color: white;
}

.badge-baidu {
    background-color: #2962ff;
    color: white;
}

.badge-tencent {
    background-color: #00a870;
    color: white;
}

.badge-zhipu {
    background-color: #2f54eb;
    color: white;
}

.badge-moonshot {
    background-color: #1e293b;
    color: #00ff95;
}

.badge-market {
    background-color: #f59e0b;
    color: white;
}

.badge-github {
    background-color: #1f2328;
    color: white;
}

-beginner {
    background-color: #0ea5e9;
    color: white;
}

.badge-framework {
    background-color: #06b6d4;
    color: white;
}

.badge-crypto {
    background-color: #f59e0b;
    color: white;
}

/* Footer */
.footer {
    background-color: var(--text-primary);
    color: white;
    padding: 48px 0;
    text-align: center;
    margin-top: 80px;
}

.footer p:first-child {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 8px;
}

.footer p:last-child {
    opacity: 0.7;
    font-size: 14px;
}

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

    .header .subtitle {
        font-size: 20px;
    }

    .category-title {
        font-size: 24px;
    }

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

    .container {
        padding: 0 16px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}
