/* platform.css —— 平台管理控制台样式 */

.plat-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 4px 0 16px; }
.plat-toolbar .spacer { flex: 1; }

/* 运营总览：左右两栏 */
.ov-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; margin: 8px 0 20px; }
.ov-panel { background: #fff; border: 1px solid #ececf0; border-radius: 10px; padding: 14px 16px; }
.ov-title { font-size: 14px; font-weight: 600; color: #2b2f38; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.ov-title .dot { width: 8px; height: 8px; border-radius: 50%; background: #2d7ff9; }

/* 告警 */
.alert-list { display: flex; flex-direction: column; gap: 8px; }
.alert-item { display: flex; align-items: flex-start; gap: 8px; padding: 8px 10px; border-radius: 8px; background: #fafafb; border-left: 3px solid #d0d3da; font-size: 13px; color: #3a3f4a; }
.alert-item.lv-red { border-left-color: #e23b3b; background: #fff5f5; }
.alert-item.lv-orange { border-left-color: #f0a020; background: #fffaf0; }
.alert-item.lv-blue { border-left-color: #2d7ff9; background: #f3f8ff; }
.alert-item .ai-ic { font-size: 14px; line-height: 1.3; }
.alert-empty { color: #8a909c; font-size: 13px; padding: 8px 2px; }

/* 套餐卡片 */
.plan-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 6px 0 20px; }
.plan-card { background: linear-gradient(160deg, #ffffff, #f7f9ff); border: 1px solid #e6ebf5; border-radius: 12px; padding: 16px; position: relative; }
.plan-card.flag { border-color: #c9b3f0; background: linear-gradient(160deg, #ffffff, #f6f1ff); }
.plan-card .pc-name { font-size: 15px; font-weight: 700; color: #2b2f38; }
.plan-card .pc-tag { position: absolute; top: 14px; right: 14px; font-size: 11px; color: #8a909c; }
.plan-card ul { list-style: none; padding: 0; margin: 10px 0 0; }
.plan-card li { display: flex; justify-content: space-between; font-size: 12.5px; color: #4a4f5a; padding: 4px 0; border-bottom: 1px dashed #eef0f4; }
.plan-card li:last-child { border-bottom: none; }
.plan-card li b { color: #2b2f38; }

/* 用量进度条 */
.usage-row { margin: 8px 0; }
.usage-row .ur-label { display: flex; justify-content: space-between; font-size: 12px; color: #4a4f5a; margin-bottom: 3px; }
.usage-bar { height: 8px; background: #eef0f4; border-radius: 6px; overflow: hidden; position: relative; }
.usage-fill { height: 100%; border-radius: 6px; transition: width .3s; }
.usage-fill.bar-green { background: #2faf6b; }
.usage-fill.bar-orange { background: #f0a020; }
.usage-fill.bar-red { background: #e23b3b; }
.usage-txt { font-size: 11px; color: #8a909c; margin-left: 6px; }

/* 详情网格 */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; margin: 6px 0; }
.detail-row { display: flex; gap: 8px; font-size: 13px; padding: 3px 0; }
.detail-row .dk { color: #8a909c; min-width: 84px; }
.detail-row .dv { color: #2b2f38; font-weight: 500; }
.detail-section { margin: 14px 0 6px; font-size: 13px; font-weight: 600; color: #2b2f38; border-left: 3px solid #2d7ff9; padding-left: 8px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* 徽标（与 ui.badge 配合） */
.badge.b-green { background: #e6f7ee; color: #1d9e5e; }
.badge.b-red { background: #fdeaea; color: #d83434; }
.badge.b-orange { background: #fdf3e3; color: #c8811a; }
.badge.b-blue { background: #e8f1ff; color: #2d7ff9; }
.badge.b-purple { background: #f1e9ff; color: #8a4fd0; }
.badge.b-gray { background: #eef0f4; color: #6b7280; }

.meta-line { color: #8a909c; font-size: 12px; margin-top: 4px; }


/* ---------- 平台控制台：手机端适配 ---------- */
@media (max-width: 760px) {
  .ov-grid{grid-template-columns:1fr;gap:10px}
  .plan-cards{grid-template-columns:1fr;gap:8px}
  .plan-card{padding:12px 14px}
  .detail-grid{grid-template-columns:1fr;gap:6px}
  .detail-row .dk{min-width:78px}
  .detail-actions .btn{flex:1 1 calc(50% - 4px)}
  .plat-toolbar{flex-direction:column;align-items:stretch}
  .plat-toolbar .spacer{display:none}
  .plat-toolbar .btn{width:100%}
  .kpi-row{gap:8px}
}
