:root {
    --primary-color: #2563eb;
    --secondary-color: #3b82f6;
    --accent-color: #60a5fa;
    --background-color: #f8fafc;
    --card-background: rgba(255, 255, 255, 0.95);
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --border-color: rgba(226, 232, 240, 0.8);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px 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);
}

body {
    background: var(--background-color);
    background-image: 
        radial-gradient(at 40% 20%, rgba(56, 189, 248, 0.08) 0px, transparent 50%),
        radial-gradient(at 80% 0%, rgba(99, 102, 241, 0.08) 0px, transparent 50%),
        radial-gradient(at 0% 50%, rgba(236, 72, 153, 0.08) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
}

.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
    position: relative;
    padding-left: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-title i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.advertisement {
    margin-bottom: 2rem;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    position: relative;
    height: 25vh;
    background: white;
}

.advertisement:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.advertisement img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.advertisement:hover img {
    transform: scale(1.05);
}

.website-card {
    background: var(--card-background);
    border-radius: 1rem;
    padding: 1.5rem;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

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

.website-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.website-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: contain;
    background: white;
    padding: 0.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
}

.website-card:hover .website-logo {
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.website-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
}

.website-title a {
    color: inherit;
    text-decoration: none;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    background-size: 0 2px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: all 0.3s ease;
    padding-bottom: 2px;
}

.website-card:hover .website-title a {
    background-size: 100% 2px;
}

.website-brief {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    position: relative;
    padding-left: 1rem;
    border-left: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.website-card:hover .website-brief {
    border-left-color: var(--primary-color);
    padding-left: 1.25rem;
}

.articles-section {
    background: var(--card-background);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.articles-section:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.article-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid transparent;
}

.article-link:hover {
    color: var(--primary-color);
    transform: translateX(10px);
    background: rgba(37, 99, 235, 0.05);
    border-color: rgba(37, 99, 235, 0.1);
}

.article-link i {
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.article-link:hover i {
    transform: translateX(5px);
}

.article-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: inline-block;
}

.friend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.friend-link {
    background: var(--card-background);
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.friend-link:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.friend-link a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
}

.friend-link:hover a {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.5rem;
    }
    
    .website-card {
        margin-bottom: 1rem;
    }
    
    .website-title {
        font-size: 1.1rem;
    }
    
    .website-brief {
        font-size: 0.9rem;
    }
    
    .article-title {
        font-size: 0.95rem;
    }
    
    .friend-link {
        padding: 0.35rem 0.75rem;
    }
    
    .friend-link a {
        font-size: 0.9rem;
    }
}

/* 导航推荐列表样式 */
.navs-section {
    background-color: var(--card-background);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.navs-section:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.85rem 0.75rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.3s ease;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    position: relative;
}

.nav-link:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.05);
    transform: translateX(10px);
    padding-left: 1rem;
    border-color: rgba(37, 99, 235, 0.1);
}

.nav-link i {
    color: var(--primary-color);
    margin-right: 0.75rem;
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.nav-link:hover i {
    transform: translateX(3px) scale(1.1);
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-title {
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* 文章卡片样式 */
.article-card {
    background-color: var(--bg-panel);
    border-radius: 0.5rem;
    padding: 1.2rem;
    height: 100%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.article-card-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.article-card-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-card-title a:hover {
    color: var(--primary-color);
}

.article-card-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.article-card-summary {
    font-size: 0.9rem;
    color: var(--text-description);
    margin-bottom: 1rem;
    flex-grow: 1;
    line-height: 1.6;
}

.article-card-more {
    display: inline-block;
    color: var(--primary-color);
    font-size: 0.9rem;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
}

.article-card-more:hover {
    color: var(--primary-color-dark);
}

.article-card-more:after {
    content: "→";
    margin-left: 0.25rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

.article-card-more:hover:after {
    transform: translateX(3px);
} 