/* 站长自用款推荐卡片样式 - 美化版 */
.featured-recommend-widget {
    margin-bottom: 24px;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    transition: background 0.3s, box-shadow 0.3s;
}
.recommend-container {
    padding: 24px;
}
.recommend-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 16px;
}
.recommend-title {
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.3px;
    background: linear-gradient(135deg, #333 0%, #666 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.dark-theme .recommend-title {
    background: linear-gradient(135deg, #ddd 0%, #aaa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.stara img {
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}
.see-more {
    color: #999;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s;
    font-weight: 500;
}
.see-more:hover {
    color: #e4393c;
    transform: translateX(3px);
}
.recommend-body {
    display: grid;
    gap: 24px;
}
.macg-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}
.macg-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
    position: relative;
    border: 1px solid rgba(0,0,0,0.02);
}
.macg-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 32px -12px rgba(0, 0, 0, 0.12);
    border-color: rgba(0,0,0,0.05);
}
.macg-card-icon {
    width: 100%;
    padding-top: 66.66%; /* 3:2 比例 */
    position: relative;
    overflow: hidden;
    background: #f8f8f8;
}
.macg-card-icon img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.macg-card:hover .macg-card-icon img {
    transform: scale(1.05);
}
.macg-card-title {
    font-size: 16px;
    font-weight: 600;
    margin: 16px 16px 10px;
    line-height: 1.4;
    height: 2.8em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: #1a1a1a;
    transition: color 0.2s;
}
.macg-card-link:hover .macg-card-title {
    color: #e4393c;
}
.macg-card-meta {
    padding: 0 16px 16px;
    display: flex;
    gap: 18px;
    font-size: 12px;
    color: #8c8c8c;
    transition: color 0.2s;
}
.macg-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}
.macg-card-meta svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    opacity: 0.7;
}
.macg-card-label {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 4px 12px;
    border-radius: 40px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: #fff;
    backdrop-filter: blur(4px);
    background-color: rgba(0,0,0,0.6);
    transition: all 0.2s;
}
.orange-label { background: linear-gradient(135deg, #ff9800, #f57c00); }
.red-label { background: linear-gradient(135deg, #e4393c, #c62828); }
.green-label { background: linear-gradient(135deg, #4caf50, #2e7d32); }
.blue-label { background: linear-gradient(135deg, #2196f3, #0b5e9e); }
.purple-label { background: linear-gradient(135deg, #9c27b0, #6a1b9a); }
.zibll-selfused-empty {
    text-align: center;
    padding: 48px;
    color: #aaa;
    font-size: 14px;
}

/* 去除小工具外部框架背景（可选） */
.widget_zibll_selfused_cards_widget {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.zib-widget.zibll_selfused_cards_widget,
.zib-widget[class*="zibll_selfused"] {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ===== 暗色模式适配（使用主题的 .dark-theme 类） ===== */
.dark-theme .featured-recommend-widget,
.night .featured-recommend-widget,
.zib-night .featured-recommend-widget {
    background: #141414;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.dark-theme .recommend-header,
.night .recommend-header,
.zib-night .recommend-header {
    border-bottom-color: #2a2a2a;
}
.dark-theme .see-more,
.night .see-more,
.zib-night .see-more {
    color: #ccc;
}
.dark-theme .see-more:hover,
.night .see-more:hover,
.zib-night .see-more:hover {
    color: #e4393c;
}
.dark-theme .macg-card,
.night .macg-card,
.zib-night .macg-card {
    background: #1f1f1f;
    border-color: #2c2c2c;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.dark-theme .macg-card:hover,
.night .macg-card:hover,
.zib-night .macg-card:hover {
    box-shadow: 0 24px 36px -12px rgba(0,0,0,0.4);
    border-color: #3a3a3a;
}
.dark-theme .macg-card-icon,
.night .macg-card-icon,
.zib-night .macg-card-icon {
    background: #2a2a2a;
}
.dark-theme .macg-card-title,
.night .macg-card-title,
.zib-night .macg-card-title {
    color: #eaeaea;
}
.dark-theme .macg-card-link:hover .macg-card-title,
.night .macg-card-link:hover .macg-card-title,
.zib-night .macg-card-link:hover .macg-card-title {
    color: #ff6b6b;
}
.dark-theme .macg-card-meta,
.night .macg-card-meta,
.zib-night .macg-card-meta {
    color: #aaa;
}
.dark-theme .zibll-selfused-empty,
.night .zibll-selfused-empty,
.zib-night .zibll-selfused-empty {
    color: #aaa;
}