/* 酷站推荐页 */
.cool-sites-page {
    padding: 32px 0 48px;
}

.cool-sites-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 55%, #f8fafc 100%);
    border: 1px solid #e5edf9;
    border-radius: 24px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.cool-sites-hero::before,
.cool-sites-hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.cool-sites-hero::before {
    width: 240px;
    height: 240px;
    right: -60px;
    top: -100px;
    background: rgba(59, 130, 246, 0.10);
}

.cool-sites-hero::after {
    width: 180px;
    height: 180px;
    left: -40px;
    bottom: -80px;
    background: rgba(96, 165, 250, 0.10);
}

.cool-sites-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.9fr);
    gap: 24px;
    align-items: center;
}

.cool-sites-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.10);
    color: var(--primary-color, #2563eb);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cool-sites-heading {
    margin: 0 0 12px;
    font-size: 34px;
    line-height: 1.2;
    color: #0f172a;
}

.cool-sites-desc {
    margin: 0;
    max-width: 760px;
    color: #475569;
    font-size: 15px;
    line-height: 1.8;
}

.cool-sites-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.cool-stat-card {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 18px;
    padding: 18px 16px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
    text-align: center;
}

.cool-stat-value {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}

.cool-stat-label {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: #64748b;
}

.cool-sites-notice {
    display: flex;
    gap: 12px;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 18px 20px;
    margin-bottom: 28px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.cool-sites-notice i {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    color: var(--primary-color, #3b82f6);
}

.cool-sites-notice-text {
    flex: 1;
    color: #475569;
    font-size: 14px;
    line-height: 1.8;
}

.cool-sites-notice-text p {
    margin: 0;
}

.cool-sites-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.cool-sites-section-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #111827;
}

.cool-sites-section-subtitle {
    margin: 6px 0 0;
    font-size: 13px;
    color: #6b7280;
}

.cool-sites-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cool-filter-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cool-filter-chip:hover {
    border-color: rgba(59, 130, 246, 0.35);
    color: var(--primary-color, #2563eb);
    background: #ffffff;
}

.cool-filter-chip.is-active {
    background: var(--primary-color, #3b82f6);
    border-color: var(--primary-color, #3b82f6);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(59, 130, 246, 0.22);
}

.cool-sites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.cool-site-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.cool-site-card:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow: 0 18px 36px rgba(59, 130, 246, 0.12);
}

.cool-site-card.is-hidden {
    display: none;
}

.cool-site-card.is-featured {
    border-color: rgba(250, 204, 21, 0.45);
    box-shadow: 0 14px 32px rgba(250, 204, 21, 0.10);
}

.cool-site-top {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}

.cool-site-logo {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cool-site-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cool-site-head {
    min-width: 0;
    flex: 1;
}

.cool-site-name-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.cool-site-name {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
}

.cool-site-name a {
    color: #111827;
    text-decoration: none;
}

.cool-site-name a:hover {
    color: var(--primary-color, #2563eb);
}

.cool-site-featured,
.cool-site-category {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.cool-site-featured {
    background: #fef3c7;
    color: #b45309;
}

.cool-site-category {
    background: #eff6ff;
    color: #2563eb;
}

.cool-site-url {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    color: #64748b;
    font-size: 13px;
    text-decoration: none;
}

.cool-site-url span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cool-site-url:hover {
    color: var(--primary-color, #2563eb);
}

.cool-site-description {
    margin: 0 0 18px;
    color: #475569;
    font-size: 14px;
    line-height: 1.8;
    flex: 1;
    min-height: 76px;
}

.cool-site-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.cool-site-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #f8fafc;
    border-radius: 12px;
    color: #64748b;
    font-size: 12px;
    border: 1px solid #eef2f7;
}

.cool-site-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
}

.cool-site-hint {
    color: #94a3b8;
    font-size: 12px;
}

.cool-site-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    background: var(--primary-color, #3b82f6);
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.18);
}

.cool-site-btn:hover {
    opacity: 1;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(59, 130, 246, 0.24);
}

.cool-site-btn:hover i,
.cool-site-btn:hover span {
    color: #ffffff;
}

.empty-cool-sites {
    text-align: center;
    padding: 72px 20px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    color: #64748b;
}

.empty-cool-sites i {
    display: block;
    font-size: 62px;
    color: #cbd5e1;
    margin-bottom: 16px;
}

.empty-cool-sites p {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 700;
    color: #334155;
}

.empty-cool-sites span {
    font-size: 14px;
}

.cool-sites-filter-empty {
    display: none;
    margin-top: 20px;
    padding: 18px 20px;
    border-radius: 18px;
    border: 1px dashed #dbe3ef;
    background: #f8fafc;
    color: #64748b;
    font-size: 14px;
    text-align: center;
}

@media (max-width: 991px) {
    .cool-sites-hero-inner {
        grid-template-columns: 1fr;
    }

    .cool-sites-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .cool-sites-page {
        padding: 20px 0 36px;
    }

    .cool-sites-hero {
        padding: 22px 18px;
        border-radius: 20px;
    }

    .cool-sites-heading {
        font-size: 26px;
    }

    .cool-sites-desc {
        font-size: 14px;
    }

    .cool-sites-stats {
        grid-template-columns: 1fr;
    }

    .cool-sites-notice {
        padding: 16px;
        border-radius: 16px;
    }

    .cool-sites-toolbar {
        align-items: flex-start;
    }

    .cool-sites-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .cool-site-card {
        padding: 18px;
        border-radius: 18px;
    }

    .cool-site-top {
        gap: 12px;
    }

    .cool-site-logo {
        width: 56px;
        height: 56px;
        border-radius: 16px;
    }

    .cool-site-description {
        min-height: auto;
    }

    .cool-site-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cool-site-btn {
        justify-content: center;
    }
}

@media (prefers-color-scheme: dark) {
    .cool-sites-hero {
        background: linear-gradient(135deg, #0f172a 0%, #111827 55%, #0b1220 100%);
        border-color: #1e293b;
        box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35);
    }

    .cool-sites-heading {
        color: #f8fafc;
    }

    .cool-sites-desc,
    .cool-sites-notice-text,
    .cool-sites-section-subtitle,
    .cool-site-description,
    .cool-site-url,
    .cool-site-hint,
    .cool-stat-label,
    .empty-cool-sites,
    .cool-site-meta-item {
        color: #94a3b8;
    }

    .cool-stat-card,
    .cool-sites-notice,
    .cool-site-card,
    .empty-cool-sites {
        background: #111827;
        border-color: #1f2937;
        box-shadow: none;
    }

    .cool-stat-value,
    .cool-sites-section-title,
    .cool-site-name a,
    .empty-cool-sites p {
        color: #f8fafc;
    }

    .cool-site-logo,
    .cool-site-meta-item,
    .cool-filter-chip {
        background: #0f172a;
        border-color: #1f2937;
    }

    .cool-site-category {
        background: rgba(59, 130, 246, 0.18);
        color: #93c5fd;
    }

    .cool-site-featured {
        background: rgba(245, 158, 11, 0.18);
        color: #fcd34d;
    }

    .cool-filter-chip {
        color: #cbd5e1;
    }

    .cool-filter-chip:hover {
        background: #111827;
    }

    .cool-filter-chip.is-active {
        color: #ffffff;
    }

    .cool-sites-filter-empty {
        background: #111827;
        border-color: #1f2937;
        color: #94a3b8;
    }
}
