/* ========================================
   显卡云购买页专属样式（rgpu.html）
   通用样式复用 rcs/css/style.css
   ======================================== */

/* 套餐标题旁"流量不限型"小徽章 */
.gpu-section-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 10px;
    border-radius: 4px;
    background: rgba(55, 181, 193, 0.12);
    color: #0e9aaa;
    font-size: 12px;
    font-weight: 600;
    vertical-align: middle;
}

/* ===== 显卡型号卡片 ===== */
.gpu-machine-head {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 12px;
}

.gpu-machine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.gpu-machine-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    padding: 18px 20px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
}

.gpu-machine-card:hover {
    border-color: #37b5c1;
    box-shadow: 0 4px 12px rgba(55, 181, 193, 0.12);
}

.gpu-machine-card.active {
    border-color: #37b5c1;
    background: rgba(55, 181, 193, 0.04);
    box-shadow: 0 0 0 1px #37b5c1 inset;
}

.gpu-machine-card.disabled {
    opacity: 0.55;
    cursor: not-allowed;
    background: #f9fafb;
}

.gpu-machine-card.disabled:hover {
    border-color: #e5e7eb;
    box-shadow: none;
}

.gpu-machine-avatar {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gpu-machine-body {
    flex: 1;
    min-width: 0;
}

.gpu-machine-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.gpu-machine-title {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
}

.gpu-machine-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.6;
}

.gpu-badge-green {
    background: #d1fae5;
    color: #059669;
}

.gpu-badge-dark {
    background: #1f2937;
    color: #fbbf24;
}

.gpu-badge-light {
    background: #e5e7eb;
    color: #4b5563;
}

.gpu-badge-stock {
    background: #f3f4f6;
    color: #9ca3af;
}

.gpu-machine-desc {
    margin-top: 6px;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.6;
}

/* ===== 显卡套餐卡片 ===== */
.gpu-plan-card {
    text-align: left;
}

.gpu-plan-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.gpu-plan-head .plan-name {
    margin-bottom: 0;
    font-size: 17px;
}

.gpu-plan-price {
    white-space: nowrap;
    color: #f59e0b;
    line-height: 1.1;
}

.gpu-plan-price .amount {
    font-size: 28px;
    font-weight: 700;
}

.gpu-plan-price .unit {
    font-size: 13px;
    font-weight: 500;
    margin-left: 2px;
}

/* 库存角标颜色：少于10红色，10-20橙色 */
.stock-badge.stock-low {
    background: #fee2e2;
    color: #dc2626;
}

.stock-badge.stock-middle {
    background: #ffedd5;
    color: #ea580c;
}
