/* 添加动态渐变背景 */
body {
    background: linear-gradient(-45deg, #f9faff, #f0f8ff, #f5f9ff, #fafbff);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    min-height: 100vh;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.container {
    margin: 0 auto;
    padding: 20px;
}

.category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 20px 0;
    margin: 0;
    list-style: none;
    justify-content: center;
}

.category-list li {
    padding: 8px 20px;
    background: white;
    border-radius: 6px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #eee;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
    list-style: none;
    margin: 0 !important;
}

.category-list li:first-child,
.category-list li:last-child {
    margin: 0 !important;
    padding: 8px 20px !important;
    border-radius: 6px !important;
    background: white !important;
    border: 1px solid #eee !important;
}

.category-list li:hover {
    background: #f0f7ff !important;
    border-color: #e6e9ff !important;
    transform: translateY(-1px);
    color: #1890ff;
}

.category-list li.active {
    background: #e6f4ff !important;
    color: #1890ff !important;
    border-color: #91caff !important;
    box-shadow: 0 2px 8px rgba(24,144,255,0.1);
}

/* 添加响应式布局 */
@media (max-width: 768px) {
    .category-list {
        gap: 8px;
        padding: 15px 0;
    }
    
    .category-list li {
        padding: 6px 16px;
        font-size: 13px;
    }
}

.api-list {
/*    display: flex;*/
    flex-wrap: wrap;
    justify-content: left;
}

.api-card {
    max-width: 353px; /* 固定宽度 */
    height: 153px; /* 固定高度 */
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: left;
    font-size: 14px;
    transition: box-shadow 0.3s, border-color 0.3s;
    background-color: #fff;
    display: flex;
    align-items: flex-start;
    position: relative;
}

.api-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-color: #1890ff; /* 鼠标悬停时边框变蓝 */
}

.api-card .api-icon {
    width: 60px; /* 图标稍微大一点 */
    height: 60px;
    margin-right: 15px;
    margin-top: -16px; /* 图标稍微靠上一点 */
}

.api-card-content {
    flex-grow: 1;
}

.api-card h3 {
    font-size: 18px;
    margin: 0;
    color: #333; /* 标题颜色 */
    font-weight: bold;
}

.api-card .free-tag {
    font-size: 12px;
    color: #28a745;
    font-weight: bold;
    background-color: #e6f7e6; /* 浅绿色背景 */
    border: 1px solid #28a745; /* 绿色边框 */
    border-radius: 4px;
    padding: 2px 6px;
    margin-top: 1px;
    display: inline-block;
}

.api-card p {
    font-size: 12px;
    color: #666;
    margin: 5px 0;
}

.api-meta {
    font-size: 12px;
    color: #999;
    position: absolute;
    bottom: 10px;
    display: flex;
    gap: 10px; /* 增加调用量和申请量之间的距离 */
}
