/* ============================================================
   标签聚合页 PC 样式 — tag.css
   配合 article.css 使用（左栏面板、文章列表、分页均复用 .art-* 类）
   本页新增：接口卡片栅格 .tag-api-*、分区间距 .tag-section
   ============================================================ */

:root {
    --tag-primary: #1E9FFF;
    --tag-border: #e6e6e6;
    --tag-text: #333;
    --tag-text-light: #888;
    --tag-radius: 6px;
}

/* ===== 分区 ===== */
.tag-section + .tag-section {
    margin-top: 24px;
}
.tag-section .art-list-title span > i {
    color: var(--tag-primary);
    margin-right: 6px;
    font-size: 15px;
}

/* ===== 接口卡片栅格 ===== */
.tag-api-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.tag-api-card {
    display: block;
    background: #fff;
    border: 1px solid var(--tag-border);
    border-radius: var(--tag-radius);
    padding: 14px 16px;
    text-decoration: none;
    transition: box-shadow .25s, transform .25s;
}
.tag-api-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, .1);
    transform: translateY(-2px);
}
.tag-api-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.tag-api-icon {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: #f0f8ff;
    color: var(--tag-primary);
    font-size: 15px;
    overflow: hidden;
}
.tag-api-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.tag-api-name {
    flex: 1;
    min-width: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--tag-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tag-api-card:hover .tag-api-name { color: var(--tag-primary); }
.tag-api-mode {
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    padding: 1px 6px;
    border-radius: 3px;
    white-space: nowrap;
}
.tag-api-mode.sync { background: linear-gradient(135deg, #34d399, #0ea968); }
.tag-api-mode.async { background: linear-gradient(135deg, #38bdf8, #6366f1); }
.tag-api-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 41px;
}
.tag-api-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.tag-api-price {
    font-size: 14px;
    font-weight: 600;
    color: #ff5722;
}
.tag-api-price small {
    font-size: 11px;
    font-weight: 400;
    color: var(--tag-text-light);
}
.tag-api-cat {
    font-size: 12px;
    color: var(--tag-text-light);
    background: #f0f2f5;
    border-radius: 10px;
    padding: 0 8px;
    line-height: 18px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

/* ===== 响应式 ===== */
@media (max-width: 992px) {
    .tag-api-grid { grid-template-columns: minmax(0, 1fr); }
    .tag-api-desc { min-height: 0; }
}
