/* 加载特效样式 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loading-modal {
    text-align: center;
    background: white;
    padding: 3rem 2rem;
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(40, 167, 69, 0.2);
    border: 2px solid #28a745;
    max-width: 400px;
    width: 90%;
    animation: modalSlideIn 0.6s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.loading-spinner {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
}

.spinner-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    border-top: 4px solid #28a745;
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

.spinner-ring:nth-child(2) {
    animation-delay: -0.5s;
    border-top-color: #20c997;
    transform: scale(0.8);
}

.spinner-ring:nth-child(3) {
    animation-delay: -1s;
    border-top-color: #17a2b8;
    transform: scale(0.6);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text h4 {
    color: #28a745;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.loading-text p {
    color: #6c757d;
    margin: 0;
    font-size: 0.9rem;
}

/* 脉冲动画 */
.loading-modal {
    animation: modalSlideIn 0.6s ease-out, pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 20px 60px rgba(40, 167, 69, 0.2);
    }
    50% {
        box-shadow: 0 25px 80px rgba(40, 167, 69, 0.3);
    }
}

/* 渐变文字效果 */
.text-gradient {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 统计卡片样式 */
.stat-card {
    padding: 1.5rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.stat-icon {
    font-size: 2.5rem;
}

/* 紧凑版统计卡片样式 */
.stat-card-compact {
    padding: 1rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transition: all 0.3s ease;
}

.stat-card-compact:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.stat-icon-compact {
    font-size: 1.8rem;
}

/* 迷你版统计卡片样式 */
.stat-card-mini {
    padding: 0.5rem;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transition: all 0.3s ease;
}

.stat-card-mini:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.stat-icon-mini {
    font-size: 1.2rem;
}

/* 排行榜样式优化 */
.leaderboard-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.leaderboard-item:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transform: translateX(5px);
}

.leaderboard-item:last-child {
    border-bottom: none;
}

.rank-badge {
    width: 45px;
    text-align: center;
    margin-right: 1rem;
}

.rank-medal {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.rank-medal.gold {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: white;
}

.rank-medal.silver {
    background: linear-gradient(45deg, #C0C0C0, #A0A0A0);
    color: white;
}

.rank-medal.bronze {
    background: linear-gradient(45deg, #CD7F32, #B8860B);
    color: white;
}

.rank-number {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #6c757d;
    margin: 0 auto;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.author-info {
    flex: 1;
    min-width: 0;
}

.author-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease;
    cursor: pointer;
}

.leaderboard-item:hover .author-name {
    color: #28a745;
}

.author-username {
    font-size: 0.85rem;
    color: #6c757d;
}

.tool-count {
    text-align: center;
    margin-left: 1rem;
}

.count-badge {
    color: #6b7280;
    font-size: 0.7rem;
    font-weight: 500;
    background: transparent;
    border: 1px solid #e5e7eb;
    padding: 2px 6px;
    border-radius: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 20px;
    text-align: center;
    display: inline-block;
    line-height: 1.2;
}

.count-label {
    display: block;
    font-size: 0.7rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

/* 统计数字样式 */
.stat-number {
    font-size: 2rem;
    font-weight: bold;
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 0.5rem;
}

/* 紧凑版统计数字样式 */
.stat-number-compact {
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1;
}

.stat-label-compact {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

/* 分类筛选栏样式优化 - 简洁紧凑版 */
.category-filter-wrapper {
    background: #f8f9fa;
    border-radius: 0.5rem;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #dee2e6;
}

.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.category-pill {
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.category-pill.inactive {
    background: white;
    color: #6c757d;
    border-color: #dee2e6;
}

.category-pill.inactive:hover {
    background: #f8f9fa;
    color: #28a745;
    border-color: #28a745;
}

.category-pill.active {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.category-pill.active:hover {
    background: #20c997;
}

.category-badge {
    font-size: 0.75rem;
    padding: 0.125rem 0.375rem;
    border-radius: 0.5rem;
    margin-left: 0.375rem;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.1);
}

.category-pill.active .category-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* 管理员精选推荐卡片样式 */
.admin-featured-card {
    border: 2px solid #28a745;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.admin-featured-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #28a745, #20c997, #17a2b8);
}

.admin-featured-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(40, 167, 69, 0.2);
}

.admin-featured-card .badge {
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* 工具卡片样式 */
.tool-card {
    border: 1px solid #e9ecef;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    position: relative;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #28a745, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tool-card:hover::before {
    opacity: 1;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(40, 167, 69, 0.1);
    border-color: #28a745;
}

.tool-card .card-body {
    padding: 1.25rem;
}

.tool-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.tool-card:hover .tool-title {
    color: #28a745;
}

.tool-description {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tool-meta {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.tool-meta .d-flex {
    width: 100%;
    min-height: 1.2rem;
    flex-wrap: nowrap;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tool-meta .font-size-075 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 45%;
}

/* 工具卡片元信息布局 - 参考插件卡片实现 */
.tool-meta .d-flex {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
}

/* 强制覆盖所有可能的样式 */
.card .tool-meta .d-flex {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
}

.featured-tools-page .tool-meta .d-flex {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
}

.tool-author {
    font-size: 0.85rem;
    color: #6c757d;
}

.tool-clicks {
    font-size: 0.8rem;
    color: #28a745;
    font-weight: 500;
}

/* 关键词标签样式 */
.keyword-tags {
    margin: 0.75rem 0;
}

.keyword-tag {
    display: inline-block;
    background: #f8f9fa;
    color: #6c757d;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    margin: 0.125rem;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.keyword-tag:hover {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

/* 搜索表单样式 */
.search-form {
    position: relative;
}

.search-input {
    border-radius: 2rem;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.search-input:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.1);
    outline: none;
}

.search-btn {
    border-radius: 2rem;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

/* 推荐工具卡片样式 */
.recommendation-card {
    border: 1px dashed #28a745;
    background: linear-gradient(135deg, #f8fffe 0%, #e8f5e8 100%);
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.recommendation-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.15);
    background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 100%);
}

.recommendation-card .bi-lightbulb {
    font-size: 2rem;
    color: #28a745;
    margin-bottom: 1rem;
}

/* 加载更多按钮样式 */
.load-more-btn {
    border-radius: 2rem;
    padding: 1rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    color: white;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.2);
}

.load-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.3);
    background: linear-gradient(135deg, #20c997 0%, #17a2b8 100%);
}

.load-more-btn:disabled {
    opacity: 0.6;
    transform: none;
    cursor: not-allowed;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .category-pills {
        justify-content: center;
    }
    
    .category-pill {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .tool-card {
        margin-bottom: 1rem;
    }
    
    .search-input {
        font-size: 0.85rem;
        padding: 0.6rem 1rem;
    }
    
    .search-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .stat-card-mini {
        padding: 0.75rem 0.5rem;
    }
    
    .leaderboard-item {
        padding: 0.75rem 1rem;
    }
    
    .rank-badge {
        width: 35px;
        margin-right: 0.75rem;
    }
    
    .rank-medal, .rank-number {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    /* 手机端按钮组样式 */
    .d-flex.gap-2.flex-wrap {
        flex-direction: column;
        gap: 0.5rem !important;
    }
    
    .d-flex.gap-2.flex-wrap .btn {
        width: 100%;
        text-align: center;
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }
    
    /* 手机端插件卡片徽章样式 */
    .plugin-card .badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
    
    /* 手机端插件商店标签样式 */
    .plugin-store {
        font-size: 0.75rem;
        padding: 0.15rem 0.5rem;
    }
    
    /* 手机端插件元信息样式 */
    .plugin-meta {
        font-size: 0.7rem;
    }
    
    .plugin-meta .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.25rem;
    }
}

/* 动画延迟效果 */
.tool-card:nth-child(1) { animation-delay: 0.1s; }
.tool-card:nth-child(2) { animation-delay: 0.2s; }
.tool-card:nth-child(3) { animation-delay: 0.3s; }
.tool-card:nth-child(4) { animation-delay: 0.4s; }
.tool-card:nth-child(5) { animation-delay: 0.5s; }
.tool-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 分批加载相关样式 */
.tool-card {
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.loading-more {
    opacity: 0.7;
    pointer-events: none;
}

/* 排行榜卡片样式 */
.leaderboard-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(40, 167, 69, 0.1);
    backdrop-filter: blur(10px);
}

.leaderboard-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px rgba(40, 167, 69, 0.15);
}

/* 排行榜列表样式 */
.leaderboard-list {
    max-height: 1000px;
    overflow-y: auto;
    padding: 8px 0;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    margin: 4px 8px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    background: #ffffff;
    transition: background-color 0.2s ease;
}

.leaderboard-item:hover {
    background-color: #f8f9fa;
}

/* 排名徽章样式 */
.rank-badge {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    border-radius: 50%;
    font-weight: bold;
    flex-shrink: 0;
}

.rank-medal {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
}

.rank-medal.gold {
    background: #ffd700;
}

.rank-medal.silver {
    background: #c0c0c0;
}

.rank-medal.bronze {
    background: #cd7f32;
}

.rank-number {
    font-weight: 700;
    color: #495057;
    font-size: 0.9rem;
    background: #f8f9fa;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid #dee2e6;
}

/* 作者信息样式 */
.author-info {
    flex: 1;
    min-width: 0;
    margin-right: 8px;
}

.author-info .author-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #212529;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.author-info .author-username {
    font-size: 0.8rem;
    color: #6c757d;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 工具数量样式 */
.tool-count-modal {
    text-align: center;
    min-width: 60px;
}

.tool-count-modal .badge {
    font-size: 0.9rem;
    padding: 6px 10px;
}

/* 滚动条样式 */
.leaderboard-list::-webkit-scrollbar {
    width: 6px;
}

.leaderboard-list::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 3px;
}

.leaderboard-list::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.leaderboard-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #20c997 0%, #17a2b8 100%);
}

/* 加载动画延迟 */
.leaderboard-item:nth-child(1) { animation-delay: 0.1s; }
.leaderboard-item:nth-child(2) { animation-delay: 0.2s; }
.leaderboard-item:nth-child(3) { animation-delay: 0.3s; }
.leaderboard-item:nth-child(4) { animation-delay: 0.4s; }
.leaderboard-item:nth-child(5) { animation-delay: 0.5s; }
.leaderboard-item:nth-child(6) { animation-delay: 0.6s; }
.leaderboard-item:nth-child(7) { animation-delay: 0.7s; }
.leaderboard-item:nth-child(8) { animation-delay: 0.8s; }

/* 脉冲效果 */
.leaderboard-card {
    position: relative;
}

.leaderboard-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #28a745, #20c997, #17a2b8, #28a745);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    animation: pulse-border 3s ease-in-out infinite;
}

@keyframes pulse-border {
    0%, 100% {
        opacity: 0;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.02);
    }
}

/* 模态框相关样式 */
.leaderboard-modal-content {
    max-height: 80vh;
    overflow-y: auto;
}

.leaderboard-modal-content::-webkit-scrollbar {
    width: 6px;
}

.leaderboard-modal-content::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 3px;
}

.leaderboard-modal-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-radius: 3px;
}

.leaderboard-modal-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #20c997 0%, #17a2b8 100%);
}

/* 搜索区域样式 */
.search-section {
    margin-bottom: 1rem;
}

/* 搜索框容器样式 */
.search-container {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    border-radius: 25px;
    padding: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.search-input-wrapper {
    position: relative;
    flex: 1;
    min-width: 0;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    z-index: 2;
    pointer-events: none;
    font-size: 16px;
}

.search-input {
    width: 100%;
    padding: 12px 16px 12px 48px;
    border: 2px solid #28a745;
    border-radius: 20px;
    font-size: 14px;
    background: white;
    transition: all 0.3s ease;
    outline: none;
    box-shadow: inset 0 1px 3px rgba(40, 167, 69, 0.1);
}

.search-input:focus {
    border-color: #20c997;
    box-shadow: inset 0 1px 3px rgba(40, 167, 69, 0.2), 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.search-input::placeholder {
    color: #adb5bd;
    font-size: 14px;
}

.search-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.search-button:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

.search-button:active {
    transform: translateY(0);
}

.reset-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: white;
    color: #28a745;
    border: 2px solid #28a745;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.reset-button:hover {
    background: #28a745;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    text-decoration: none;
}

.reset-button:active {
    transform: translateY(0);
}

/* 搜索结果显示样式 */
.search-results-info {
    margin-top: 16px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #f8fffe 0%, #e8f5e8 100%);
    border: 1px solid #d4edda;
    border-radius: 12px;
    color: #155724;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.search-results-info i {
    color: #28a745;
    font-size: 16px;
}

.search-results-info strong {
    color: #28a745;
    font-weight: 600;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .search-container {
        flex-direction: column;
        gap: 8px;
        padding: 12px;
    }
    
    .search-input-wrapper {
        width: 100%;
    }
    
    .search-button,
    .reset-button {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }
    
    .search-results-info {
        margin-top: 12px;
        padding: 10px 16px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .search-container {
        padding: 8px;
        border-radius: 20px;
    }
    
    .search-input {
        padding: 10px 14px 10px 44px;
        font-size: 13px;
        border-radius: 16px;
    }
    
    .search-icon {
        left: 14px;
        font-size: 14px;
    }
    
    .search-button,
    .reset-button {
        padding: 12px 16px;
        font-size: 13px;
        border-radius: 16px;
    }
}

/* 分类点击提示样式 */
.category-click-hint {
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.category-link:hover .category-click-hint {
    opacity: 1;
    color: #28a745;
}

/* 插件卡片样式 - 与插件页面保持一致 */
.plugin-card {
    border-left: 4px solid #17a2b8 !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border: 1px solid #e9ecef;
    border-radius: 0.75rem;
    overflow: hidden;
    position: relative;
}

.plugin-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    border-left-color: #138496 !important;
}

/* 插件卡片标题样式 - 统一绿色渐变 */
.plugin-card .card-title a {
    color: #28a745 !important;
    font-weight: 600;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.plugin-card .card-title a:hover {
    background: linear-gradient(135deg, #20c997 0%, #17a2b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transform: scale(1.02);
}

/* 商店徽章样式 - 与插件页面保持一致 */
.store-chrome {
    background: linear-gradient(135deg, #4285f4 0%, #34a853 100%);
    color: white;
}

.store-firefox {
    background: linear-gradient(135deg, #ff7139 0%, #ff9500 100%);
    color: white;
}

.store-edge {
    background: linear-gradient(135deg, #0078d4 0%, #106ebe 100%);
    color: white;
}

.store-safari {
    background: linear-gradient(135deg, #007aff 0%, #5856d6 100%);
    color: white;
}

.store-other {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
}

/* 插件商店标签样式 */
.plugin-store {
    display: inline-flex;
    align-items: center;
    background: #f8f9fa;
    color: #6c757d;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* 插件元信息样式 */
.plugin-meta {
    border-top: 1px solid #e9ecef;
    padding-top: 0.5rem;
}

/* 从内联样式提取的样式定义 */
/* 插件教程按钮样式 */
.category-pill.plugin-tutorial {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
}

/* 粘性定位样式 */
.position-sticky-custom {
    top: 6rem;
}

/* 加载动画样式 */
.spinner-border-custom {
    width: 3rem;
    height: 3rem;
}

/* 工具卡片样式 */
.tool-card-min-height {
    min-height: 200px;
}

.admin-featured-card-border {
    border: 2px solid #ffc107;
}

.plugin-card-border {
    border-left: 4px solid #17a2b8;
}

/* 文本截断样式 */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.text-truncate-2-with-height {
    min-height: 60px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.text-truncate-2-with-height-pre {
    min-height: 60px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
    white-space: pre-line;
}

/* 小字体样式 */
.font-size-075 {
    font-size: 0.75rem;
}

/* 工具卡片元信息小字体样式 */
.tool-meta .font-size-065 {
    font-size: 0.6rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 45%;
}

.font-size-07 {
    font-size: 0.7rem;
}

/* 按钮样式 */
.btn-sm-custom {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
}

/* 图标样式 */
.icon-4rem {
    font-size: 4rem;
    color: #6c757d;
}

.icon-2rem {
    font-size: 2rem;
}

/* 背景色样式 */
.bg-light-blue {
    background-color: #f0f7ff;
    cursor: pointer;
}

/* 搜索图标样式 */
.search-icon-custom {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    z-index: 2;
    pointer-events: none;
}

/* 搜索输入框样式 */
.search-input-custom {
    padding-left: 2.5rem;
}

/* 渐变背景样式 - 最高优先级 - 改为绿色系 */
.card-header.bg-gradient-primary {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    position: relative !important;
    overflow: hidden !important;
    color: white !important;
}

.card-header.bg-gradient-primary::before {
    content: '' !important;
    position: absolute !important;
    top: -50% !important;
    left: -50% !important;
    width: 200% !important;
    height: 200% !important;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%) !important;
    animation: shimmer 3s ease-in-out infinite !important;
}

@keyframes shimmer {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
}

/* 工具元信息右对齐样式 - 最高优先级 */
/* 已移除 tool-meta-right 相关样式，使用统一的 space-between 布局 */

/* 按钮文字清晰度优化 - 最高优先级 */
.btn.btn-success {
    color: white !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2) !important;
    font-weight: 500 !important;
    background-color: #28a745 !important;
    border-color: #28a745 !important;
}

.btn.btn-success:hover {
    color: white !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3) !important;
    background-color: #218838 !important;
    border-color: #1e7e34 !important;
}

/* 确保统计卡片样式生效 */
.stat-card-mini {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 0.5rem !important;
    padding: 0.5rem !important;
    transition: all 0.3s ease !important;
}

.stat-card-mini:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
}

/* 强制覆盖所有可能的样式冲突 - 改为绿色系 */
.featured-tools-page .card-header.bg-gradient-primary {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    color: white !important;
}

/* 左侧卡片高度调整 - 与右侧区域保持一致 */
.featured-tools-page .col-lg-4 .card {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.featured-tools-page .col-lg-4 .card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 确保左侧卡片与右侧搜索区域高度一致 */
@media (min-width: 992px) {
    .featured-tools-page .col-lg-4 {
        display: flex;
        flex-direction: column;
    }
    
    .featured-tools-page .col-lg-4 .card {
        flex: 1;
        min-height: 100%;
    }
}

.featured-tools-page .btn.btn-success {
    color: white !important;
    background-color: #28a745 !important;
    border-color: #28a745 !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2) !important;
}

/* 已移除 tool-meta-right 相关样式，使用统一的 space-between 布局 */

