.status-normal { background-color: #e6f7e6; color: #28a745; }
.status-developing { background-color: #e6f0ff; color: #1e6de8; }
.status-maintaining { background-color: #fff3e0; color: #ff9800; }
.status-abnormal { background-color: #fdecea; color: #f44336; }

.vip-card {
    position: relative;
    border: 2px solid gold;
    background: linear-gradient(135deg, rgba(255,215,0,0.05), rgba(255,255,255,0.95));
}

.vip-card::after {
    content: "VIP";
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(135deg, #ffd700, #ffb700);
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1;
}

.vip-tag {
    display: inline-block;
    background: linear-gradient(135deg, #ffd700, #ffb700);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    margin-left: 10px;
    vertical-align: middle;
}

.api-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}
.api-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}
.api-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.api-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.api-card-title {
    font-size: 1.2em;
    font-weight: bold;
    color: var(--d-color);
}
.api-card-desc {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}
.api-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.api-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: bold;
}
.api-card-button {
    background: var(--color);
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9em;
    transition: background 0.2s;
}
.api-card-button:hover {
    background: var(--d-color);
}
@media (max-width: 768px) {
    .api-list {
        grid-template-columns: 1fr;
    }
}

.scrollable-code {
    overflow-x: auto;
    max-width: 100%;
    max-height: 100%;
    background-color: #f5f5f5;
    border-radius: 4px;
    padding: 10px;
}

.scrollable-code pre {
    margin: 0;
    white-space: pre;
    overflow-x: visible;
    min-width: max-content;
}

.scrollable-code code {
    display: block;
    white-space: pre;
    overflow-x: visible;
}

pre{
    margin: 0;
    white-space: pre-wrap;
}
.api-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}
.stat-item {
    background: #f0f7ff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    border: 1px solid #d0e3ff;
    min-width: 120px;
}
.stat-item strong {
    display: block;
    color: #1a73e8;
    font-size: 12px;
    margin-bottom: 4px;
}
.stat-item .stat-value {
    font-size: 18px;
    font-weight: bold;
}
.stat-item .stat-value.success-rate {
    color: #28a745;
}

.api-call-count {
    font-size: 13px;
    background: #f5f5f5;
    padding: 2px 8px;
    border-radius: 10px;
    color: #666;
}

@media (max-width: 600px) {
    .api-stats {
        flex-direction: column;
    }
    .stat-item {
        width: 100%;
        box-sizing: border-box;
    }
}