:root {
    /* 简化的多巴胺风格配色 */
    --primary-color: #FF6B6B; /* 柔和的粉红色 */
    --secondary-color: #4ECDC4; /* 薄荷绿 */
    --accent-color: #7A77FF; /* 淡紫色 */
    --bg-color: #FAFAFA;
    --card-bg: #FFFFFF;
    --text-color: #333333;
    --text-light: #6c757d;
    --text-muted: #8E8E8E;
    --border-color: #EEEEEE;
    --hover-bg: #F8F9FA;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.03);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.05);
    --gradient-bg: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 14px;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background-color: var(--card-bg);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.game-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    border-radius: 8px;
    color: white;
}

.game-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.search-container {
    max-width: 400px;
    width: 100%;
}

.search-box {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: var(--bg-color);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.2);
}

.search-btn {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 40px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 20px 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: var(--accent-color);
}

.search-btn i {
    font-size: 18px;
}

.search-icon svg {
    width: 100%;
    height: 100%;
    vertical-align: middle;
}

/* 新的搜索引擎切换样式 */
.search-engines {
    display: flex;
    margin-top: 10px;
    background-color: var(--hover-bg);
    border-radius: 20px;
    padding: 3px;
    position: relative;
    width: fit-content;
    margin-left: auto;
}

.search-engine-option {
    padding: 5px 12px;
    font-size: 12px;
    color: var(--text-light);
    cursor: pointer;
    border-radius: 16px;
    position: relative;
    z-index: 2;
    text-align: center;
    min-width: 50px;
    user-select: none;
    transition: color 0.3s ease;
}

.search-engine-option.active {
    color: white;
    font-weight: 500;
}

.search-engine-slider {
    position: absolute;
    height: calc(100% - 6px);
    top: 3px;
    left: 3px;
    background-color: var(--primary-color);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1;
}

/* 搜索引擎图标 */
.search-engine-option i {
    margin-right: 4px;
    font-size: 14px;
    vertical-align: -1px;
}

.hero-section {
    background: var(--primary-color);
    color: white;
    padding: 40px 0;
    text-align: center;
    margin-bottom: 30px;
    border-radius: 0 0 20px 20px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-section h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.hero-section p {
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

main {
    padding: 0 0 60px;
}

.category {
    margin-bottom: 30px;
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.category-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-title i {
    font-size: 1.4rem;
    color: var(--primary-color);
}

.site-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.site-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 15px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.site-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.site-card.featured {
    border: 1px solid var(--primary-color);
}

.site-card.featured::before {
    content: "推荐";
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-color);
    color: white;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}

.site-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.site-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background-color: var(--hover-bg);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.site-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.site-card:hover .site-icon {
    transform: scale(1.05);
}
.site-card:hover .site-icon svg {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

.site-info {
    flex: 1;
    min-width: 0;
}

.site-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-color);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-card:hover .site-info h3 {
    color: var(--primary-color);
}

.site-region {
    font-size: 0.8rem;
    color: var(--text-light);
    background-color: var(--hover-bg);
    padding: 2px 6px;
    border-radius: 8px;
    display: inline-block;
}

.site-description {
    margin: 8px 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.site-link {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 16px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
    cursor: pointer;
    margin-top: 8px;
    align-self: flex-start;
}

.site-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(255, 107, 107, 0.3);
}

.featured-section {
    margin-bottom: 30px;
}

.featured-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--primary-color);
}

.featured-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    position: relative;
    z-index: 1;
}

.featured-info {
    flex-grow: 1;
    position: relative;
    z-index: 1;
}

.featured-info h2 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-weight: 700;
}

.featured-info p {
    color: var(--text-muted);
    margin: 0;
    font-size: 1rem;
}

.featured-link {
    white-space: nowrap;
    padding: 8px 20px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.featured-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

footer {
    background-color: var(--card-bg);
    padding: 40px 0 20px;
    color: var(--text-color);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    margin-bottom: 20px;
}

.footer-logo h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    font-weight: 700;
}

.footer-copyright {
    font-size: 0.9rem;
    color: var(--text-light);
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

/* 动画效果 */
.fade-in {
    animation: fadeIn 0.6s ease forwards;
    opacity: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 分类延迟加载 */
.category:nth-child(1) {
    animation-delay: 0.1s;
}

.category:nth-child(2) {
    animation-delay: 0.2s;
}

.category:nth-child(3) {
    animation-delay: 0.3s;
}

.category:nth-child(4) {
    animation-delay: 0.4s;
}

.category:nth-child(5) {
    animation-delay: 0.5s;
}

.category:nth-child(6) {
    animation-delay: 0.6s;
}

.category:nth-child(7) {
    animation-delay: 0.7s;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .site-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .site-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-section h2 {
        font-size: 1.8rem;
    }
    
    .logo h1 {
        font-size: 1.3rem;
    }

    .featured-card {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }

    .featured-link {
        margin-top: 15px;
    }
}

@media (max-width: 600px) {
    .site-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-section {
        padding: 30px 0;
    }
    
    .hero-section h2 {
        font-size: 1.6rem;
    }
    
    .category-title {
        font-size: 1.2rem;
    }
    
    .search-container {
        max-width: 100%;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-engines {
        margin: 10px auto 0;
    }
}y:nth-child(6) {
    animation-delay: 0.6s;
}

.category:nth-child(7) {
    animation-delay: 0.7s;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .site-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .site-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-section h2 {
        font-size: 1.8rem;
    }
    
    .logo h1 {
        font-size: 1.3rem;
    }

    .featured-card {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }

    .featured-link {
        margin-top: 15px;
    }
}

@media (max-width: 600px) {
    .site-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-section {
        padding: 30px 0;
    }
    
    .hero-section h2 {
        font-size: 1.6rem;
    }
    
    .category-title {
        font-size: 1.2rem;
    }
    
    .search-container {
        max-width: 100%;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-engines {
        margin: 10px auto 0;
    }
}