:root {
    --primary: #3498db;
    --secondary: #2ecc71;
    --accent: #e74c3c;
    --light: #f8f9fa;
    --dark: #2c3e50;
    --gray: #95a5a6;
}

/* 分类标签 */
.category-tabs {
    display: flex;
    overflow-x: auto;
    padding: 15px 0;
    gap: 10px;
    scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.category-tab {
    padding: 8px 20px;
    background-color: white;
    border-radius: 20px;
    color: var(--dark);
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.category-tab:hover, .category-tab.active {
    background-color: var(--primary);
    color: white;
}

/* 网站卡片 */
.website-section {
    margin: 30px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title {
    font-size: 22px;
    color: var(--dark);
    position: relative;
    padding-left: 15px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 20px;
    background-color: var(--primary);
    border-radius: 3px;
}

.view-all {
    color: var(--gray);
    text-decoration: none;
    font-size: 14px;
}

.view-all:hover {
    color: var(--primary);
}

.website-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.website-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.website-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.card-header {
    height: 120px;
    background-color: var(--primary);
    position: relative;
    overflow: hidden;
}

.card-header::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 150px;
    height: 150px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.card-icon {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background-color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.card-icon img {
    width: 30px;
    height: 30px;
}

.card-body {
    padding: 20px;
}

.website-name {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--dark);
    text-decoration: none;
    display: block;
}

.website-desc {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 15px;
    line-height: 1.5;
}

.visit-btn {
    display: inline-block;
    padding: 8px 15px;
    background-color: var(--primary);
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s;
}

.visit-btn:hover {
    background-color: #2980b9;
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
    }
    
    .search-box {
        width: 100%;
        margin-top: 15px;
    }
    
    .website-grid {
        grid-template-columns: 1fr;
    }
}