/* 导航列表页面样式 */
:root {
    --primary-color: #2563eb;
    --secondary-color: #3b82f6;
    --accent-color: #60a5fa;
    --primary-rgb: 37, 99, 235;
    --background-color: #f8fafc;
    --card-background: rgba(255, 255, 255, 0.9);
    --border-color: rgba(255,255,255,0.2);
    --shadow-sm: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 15px -3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --text-primary: var(--primary-color);
    --text-secondary: #64748b;
}

body {
    background: var(--background-color);
    background-image: 
        radial-gradient(at 40% 20%, rgba(37,99,235,0.1) 0px, transparent 50%),
        radial-gradient(at 80% 0%, rgba(96,165,250,0.1) 0px, transparent 50%),
        radial-gradient(at 0% 50%, rgba(37,99,235,0.1) 0px, transparent 50%);
    background-attachment: fixed;
    color: #1e293b;
}

.page-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #2c3e50;
    border-bottom: 2px solid #eee;
    padding-bottom: 1rem;
    position: relative;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
}

.advertisement-container {
    margin-bottom: 2rem;
}

.advertisement {
    margin-bottom: 1.5rem;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    position: relative;
    height: 25vh;
}

.advertisement:hover {
    transform: translateY(-5px);
}

.advertisement img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.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;
}

.website-domain {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.website-domain a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.website-domain a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.website-domain i {
    font-size: 0.8rem;
    color: var(--secondary-color);
}

.website-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #64748b;
    font-size: 0.9rem;
}

.website-stats span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.website-stats i {
    color: var(--secondary-color);
}

@media (max-width: 768px) {
    .page-title {
        font-size: 1.5rem;
    }
    
    .website-card {
        margin-bottom: 1rem;
    }
    
    .website-stats {
        flex-wrap: wrap;
    }
}

/* 导航卡片样式 */
.card {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

/* 侧边栏卡片特殊样式 */
.col-lg-4 .card {
    height: auto;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
    padding: 1rem 1.5rem;
}

.card-header h5 {
    color: #2c3e50;
    font-weight: 600;
    margin: 0;
    font-size: 1.1rem;
}

.list-group-item {
    border: none;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
    background: transparent;
}

.list-group-item:last-child {
    margin-bottom: 0;
}

.list-group-item:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
}

.list-group-item a {
    color: #2c3e50;
    transition: all 0.3s ease;
    text-decoration: none;
}

.list-group-item a:hover {
    color: var(--primary-color);
}

.list-group-item.fw-bold a {
    color: var(--primary-color);
}

.badge {
    font-weight: 500;
    padding: 0.5em 0.8em;
    background-color: var(--primary-color);
}

/* 随机推荐样式 */
.random-nav-link {
    color: #2c3e50;
    transition: all 0.3s ease;
    text-decoration: none;
}

.random-nav-link:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* 分页样式 */
.pagination {
    margin-top: 2rem;
}

.page-link {
    color: var(--primary-color);
    border: none;
    padding: 0.5rem 1rem;
    margin: 0 0.2rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.page-link:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    color: #fff;
}

/* 面包屑导航样式 */
.breadcrumb {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--secondary-color);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .page-title {
        font-size: 1.5rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .list-group-item {
        padding: 0.8rem 1rem;
    }
    
    .card-title {
        font-size: 1rem;
    }
} 