/* 推荐站点区块样式 */
.featured-sites-card {
    padding: 14px 16px !important;
    margin-bottom: 20px !important;
}

.featured-color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 8px;
}

.featured-color-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    transition: filter 0.15s, transform 0.15s, box-shadow 0.15s;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.featured-color-card:hover {
    filter: brightness(0.93);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: #333;
}

/* 空推荐位占位样式 */
.featured-empty-slot {
    cursor: pointer;
    border-style: dashed !important;
    border-color: rgba(0, 0, 0, 0.12) !important;
    box-shadow: none !important;
    opacity: 0.7;
}

.featured-empty-slot:hover {
    opacity: 1;
    filter: none !important;
    border-color: #1890ff !important;
    color: #1890ff !important;
}

.featured-empty-slot:hover .featured-color-name {
    color: #1890ff;
}

.featured-empty-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.06);
    font-size: 18px;
    line-height: 1;
    color: #999;
    flex-shrink: 0;
}

.featured-empty-slot:hover .featured-empty-ico {
    background: rgba(24, 144, 255, 0.1);
    color: #1890ff;
}

/* 6种配色循环 */
.color-theme-1 { background: #e8f4ff; }
.color-theme-2 { background: #fff7e6; }
.color-theme-3 { background: #f0fff4; }
.color-theme-4 { background: #f9f0ff; }
.color-theme-5 { background: #fff0f6; }
.color-theme-6 { background: #e6fffb; }

/* 空位使用更淡的背景 */
.featured-empty-slot.color-theme-1 { background: #f5faff; }
.featured-empty-slot.color-theme-2 { background: #fffcf5; }
.featured-empty-slot.color-theme-3 { background: #f7fffa; }
.featured-empty-slot.color-theme-4 { background: #fdf8ff; }
.featured-empty-slot.color-theme-5 { background: #fff8fb; }
.featured-empty-slot.color-theme-6 { background: #f5fffd; }

.featured-color-ico {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    object-fit: contain;
    flex-shrink: 0;
}

.featured-color-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    color: #555;
    font-size: 13px;
}

/* 推荐站点 badge */
.featured-badge {
    position: absolute;
    top: 4px;
    left: 4px;
    background: linear-gradient(135deg, #1890ff, #096dd9);
    color: #fff;
    font-size: 9px;
    padding: 2px 5px;
    border-radius: 3px;
    font-weight: 700;
    line-height: 1;
    z-index: 1;
    pointer-events: none;
}

/* 上推荐按钮 */
.btn-featured-recommend {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #1890ff;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.4;
}
.btn-featured-recommend:hover {
    background: #40a9ff;
    transform: translateY(-1px);
}
.btn-featured-recommend:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .featured-color-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .featured-color-card {
        font-size: 12px;
        padding: 10px 12px;
        gap: 8px;
    }

    .featured-color-ico,
    .featured-empty-ico {
        width: 20px;
        height: 20px;
        font-size: 14px;
    }

    .featured-sites-card {
        padding: 10px 12px !important;
    }

    .btn-featured-recommend {
        font-size: 12px;
        padding: 4px 10px;
    }
}
