/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

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

/* 头部样式 */
header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    font-weight: 700;
}

/* 分类样式 */
.category {
    background: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.category h2 {
    font-size: 1.8rem;
    color: #3498db;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-description {
    color: #666;
    margin-bottom: 20px;
    font-size: 1rem;
}

/* 项目样式 */
.items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    transition: transform 0.3s ease, background-color 0.3s ease;
    border: 1px solid #e9ecef;
}

.item:hover {
    transform: translateY(-3px);
    background-color: #e8f4fd;
    border-color: #3498db;
}

.item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.item h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.item:hover h3 {
    color: #3498db;
}

.item p {
    color: #666;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.link {
    font-size: 0.85rem;
    color: #3498db;
    word-break: break-all;
}

/* 页脚样式 */
footer {
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    color: #666;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .logo-container {
        flex-direction: column;
        gap: 10px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .category h2 {
        font-size: 1.5rem;
    }
    
    .items {
        grid-template-columns: 1fr;
    }
}

/* 加载动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category {
    animation: fadeIn 0.5s ease-out;
}

.category:nth-child(1) {
    animation-delay: 0.1s;
}

.category:nth-child(2) {
    animation-delay: 0.2s;
}

.category:nth-child(3) {
    animation-delay: 0.3s;
}