/* ============================================
   通用样式 - 两个页面共享
   ============================================ */

body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #2d3748;
}

/* Header 样式 - 两个页面共享 */
.header-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
    text-align: center;
}

.header-section.compact {
    padding: 2rem 0;
}

.header-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.header-subtitle {
    font-weight: 300;
    opacity: 0.9;
}

/* Footer 样式 - 两个页面共享 */
.footer {
    background-color: #2d3436;
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
    text-align: center;
}

/* ============================================
   Index 页面特有样式
   ============================================ */

.site-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    margin-bottom: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
    border: none;
}

.site-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.rank-badge {
    width: 40px;
    height: 40px;
    background-color: #e9ecef;
    color: #495057;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    border-radius: 50%;
    margin-right: 1rem;
    flex-shrink: 0;
}

.rank-1 { 
    background-color: #ffd700; 
    color: #fff; 
    text-shadow: 0 1px 2px rgba(0,0,0,0.2); 
}

.rank-2 { 
    background-color: #c0c0c0; 
    color: #fff; 
    text-shadow: 0 1px 2px rgba(0,0,0,0.2); 
}

.rank-3 { 
    background-color: #cd7f32; 
    color: #fff; 
    text-shadow: 0 1px 2px rgba(0,0,0,0.2); 
}

.card-img-wrapper {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.site-card:hover .card-img-wrapper img {
    transform: scale(1.05);
}

.site-title {
    font-weight: 600;
    color: #2d3748;
    text-decoration: none;
}

.site-desc {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Index 页面响应式调整 */
@media (min-width: 768px) {
    .card-body-wrapper {
        display: flex;
        align-items: center;
    }
    .card-img-wrapper {
        height: 100%;
        min-height: 200px;
    }
}

/* ============================================
   Single 页面特有样式
   ============================================ */

.content-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: none;
    overflow: hidden;
    margin-bottom: 2rem;
}

.site-meta-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.rank-badge-lg {
    width: 60px;
    height: 60px;
    background-color: #ffd700;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.8rem;
    border-radius: 50%;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    flex-shrink: 0;
}

.main-screenshot {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background-color: #e2e8f0;
    color: #4a5568;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.2rem;
}

.pros-box, .cons-box {
    padding: 1.5rem;
    border-radius: 8px;
    height: 100%;
}

.pros-box {
    background-color: #f0fff4;
    border: 1px solid #c6f6d5;
}

.cons-box {
    background-color: #fff5f5;
    border: 1px solid #fed7d7;
}

.pros-title { 
    color: #2f855a; 
    font-weight: 600; 
    display: flex; 
    align-items: center; 
}

.cons-title { 
    color: #c53030; 
    font-weight: 600; 
    display: flex; 
    align-items: center; 
}

.sidebar-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: none;
    overflow: hidden;
}

.sidebar-header {
    background-color: #fff;
    padding: 1.25rem;
    border-bottom: 1px solid #edf2f7;
    font-weight: 600;
    font-size: 1.1rem;
}

.mini-site-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f7fafc;
    transition: background-color 0.2s;
    text-decoration: none;
    color: inherit;
}

.mini-site-item:hover {
    background-color: #f8f9fa;
}

.mini-site-item:last-child {
    border-bottom: none;
}

.mini-rank {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #e2e8f0;
    color: #718096;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    font-weight: 600;
}

.mini-rank.top-3 {
    background-color: #feebc8;
    color: #d69e2e;
}
