:root {
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --background-color: #f8fafc;
    --text-color: #1f2937;
    --card-background: #ffffff;
    --gradient-start: #3b82f6;
    --gradient-end: #2563eb;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

/* 导航栏样式 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 4rem;
    background-color: var(--card-background);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links a {
    margin-left: 2rem;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    background-color: var(--primary-color);
    color: white;
}

.nav-links a.active {
    background-color: var(--primary-color);
    color: white;
}

/* Hero区域样式 */
.hero {
    margin-top: 80px;
    padding: 6rem 2rem;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.main-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* 搜索框样式 */
.search-box {
    width: 100%;
    max-width: 600px;
    margin: 2rem auto;
}

.search-box form {
    display: flex;
    width: 100%;
}

.search-box input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 8px 0 0 8px;
    font-size: 1rem;
    outline: none;
}

.search-box button {
    padding: 1rem 2rem;
    background: var(--primary-dark);
    border: none;
    color: white;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

/* 统计数据样式 */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* 资源卡片样式 */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.resource-card {
    background: var(--card-background);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.card-icon {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.resource-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.resource-card p {
    margin-bottom: 1.5rem;
    color: #4b5563;
}

.resource-card ul {
    list-style-type: none;
    margin-bottom: 1.5rem;
}

.resource-card ul li {
    margin-bottom: 0.8rem;
    color: #4b5563;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.resource-card ul li i {
    color: var(--primary-color);
}

.resource-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.resource-link:hover {
    background-color: var(--primary-dark);
    transform: translateX(5px);
}

/* 页脚样式 */
footer {
    background-color: var(--card-background);
    padding: 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--text-color);
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--primary-color);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
        flex-direction: column;
    }
    
    .nav-links {
        margin-top: 1rem;
    }
    
    .nav-links a {
        margin: 0 0.5rem;
        font-size: 0.9rem;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }
    
    .resources-grid {
        grid-template-columns: 1fr;
        padding: 2rem 1rem;
    }
    
    .footer-info {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

} 