.api-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.api-card {
    background: var(--card-background);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.api-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1);
}

.api-card h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.api-card p {
    color: #6e6e73;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.api-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.api-card .method {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    font-weight: 500;
    color: white;
}

/* 为不同HTTP方法添加颜色 */
.api-card .method.get {
    background: #4CAF50;  /* 绿色 */
}

.api-card .method.post {
    background: #2196F3;  /* 蓝色 */
}

.api-card .method.put {
    background: #FF9800;  /* 橙色 */
}

.api-card .method.delete {
    background: #F44336;  /* 红色 */
}

.api-card .method.patch {
    background: #9C27B0;  /* 紫色 */
}

.api-card .visits {
    font-size: 0.875rem;
    color: #6e6e73;
} 