/* ======= 卡片样式 - 优化版 ======= */
.tool-card {
    border-radius: 19px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    background: rgba(255, 255, 255, 0.45); /* 半透明白色 */
    backdrop-filter: blur(15px) saturate(180%); /* 模糊+色彩增强 */
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3); /* 发光边框 */
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* 卡片悬停效果 */
.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* 卡片顶部装饰条 */
.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #4361ee, #FF94A9); /* 渐变效果 */
}

/* ======= 调用次数样式 - 优化版 ======= */
.tool-call-count {
    display: flex;
    align-items: center;
    margin-top: 6px; /* 增大间距 */
    font-size: 13px; /* 稍大字号 */
    color: #555; /* 更深颜色 */
}

.tool-call-count i {
    margin-right: 6px; /* 增大间距 */
    color: #1a73e8;
    font-size: 14px; /* 图标稍大 */
}

.call-count-badge {
    padding: 3px 10px; /* 更大内边距 */
    background-color: #f0f7ff;
    border-radius: 12px; /* 更大圆角 */
    border: 1px solid #d0e3ff;
    font-weight: 500; /* 加粗文字 */
}

/* ======= 卡片内容样式 - 优化版 ======= */
.tool-link {
    display: block;
    padding: 18px; /* 更大内边距 */
    text-decoration: none;
    color: inherit;
}

.tool-header {
    display: flex;
    align-items: center;
    margin-bottom: 14px; /* 增大间距 */
}



.tool-title {
    flex: 1;
}

.tool-name {
    margin: 0;
    font-size: 17px; /* 稍大字号 */
    line-height: 1.4;
    font-weight: 600; /* 加粗标题 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #333; /* 更深颜色 */
}

.tool-description {
    margin: 0 0 14px; /* 增大间距 */
    font-size: 14px;
    color: #555; /* 更深颜色 */
    line-height: 1.6; /* 更大行高 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ======= 卡片元信息 - 优化版 ======= */
.tool-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px; /* 添加顶部间距 */
    border-top: 1px dashed #eee; /* 添加分割线 */
}

.tool-status {
    display: flex;
    align-items: center;
}

.status-dot {
    width: 10px; /* 稍大尺寸 */
    height: 10px;
    border-radius: 50%;
    margin-right: 8px; /* 增大间距 */
}

.status-text {
    font-size: 13px; /* 稍大字号 */
    font-weight: 600; /* 加粗文字 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.status-text.active {
    color: #10b981; /* 更现代的成功色 */
}

.status-text.inactive {
    color: #ef4444; /* 更现代的警告色 */
}

/* ======= 徽章样式 - 优化版 ======= */
.free-badge {
    font-size: 13px; /* 稍大字号 */
    font-weight: 600; /* 加粗文字 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: white;
    background: #10b981; /* 更现代的成功色 */
    border: 1px solid #0d9c6d;
    padding: 2px 8px; /* 更大内边距 */
    border-radius: 6px; /* 更大圆角 */
}

.paid-badge {
    font-size: 13px; /* 稍大字号 */
    font-weight: 600; /* 加粗文字 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: white;
    background: #f59e0b; /* 更现代的警告色 */
    border: 1px solid #d38b09;
    padding: 2px 8px; /* 更大内边距 */
    border-radius: 6px; /* 更大圆角 */
}

/* ======= 动画效果 - 优化版 ======= */
@keyframes status-pulse-normal {
    0% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4) }
    50% { opacity: 0.8; transform: scale(1.05); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0) }
    100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0) }
}

@keyframes status-pulse-warning {
    0% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4) }
    50% { opacity: 0.7; transform: scale(1.05); box-shadow: 0 0 0 8px rgba(239, 68, 68, 0) }
    100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0) }
}

/* 应用动画 */
.status-dot.active {
    animation: status-pulse-normal 2s infinite;
}

.status-dot.inactive {
    animation: status-pulse-warning 2s infinite;
}

/* ======= 移动端适配 ======= */
@media (max-width: 768px) {
    .tool-card {
        border-radius: 10px; /* 移动端稍小圆角 */
    }
    
    .tool-link {
        padding: 14px; /* 移动端稍小内边距 */
    }
    
    .tool-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .tool-name {
        font-size: 16px;
    }
    
    .tool-description {
        font-size: 13px;
    }
    
    .call-count-badge,
    .free-badge,
    .paid-badge {
        font-size: 12px;
    }
}


