/* 直播模块统一视觉 —— 简洁、轻量、少彩色标签 */

$live-border: #e8eaed;
$live-text: #1f2329;
$live-sub: #8a919f;
$live-accent: #1a6d5b;
$live-soft: #f4f6f8;
$live-radius: 10px;

.live-page {
  --live-border: #{$live-border};
  --live-text: #{$live-text};
  --live-sub: #{$live-sub};
  --live-accent: #{$live-accent};
  --live-soft: #{$live-soft};
}

.live-page__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.live-page__title {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  color: $live-text;
  letter-spacing: 0.02em;
}

.live-page__desc {
  margin: 4px 0 0;
  font-size: 13px;
  color: $live-sub;
}

.live-page__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-panel {
  background: #fff;
  border: 1px solid $live-border;
  border-radius: $live-radius;
  padding: 14px 16px 4px;
  margin-bottom: 14px;
}

.live-panel--table {
  padding: 12px 12px 4px;
}

.live-search-form .el-form-item {
  margin-bottom: 12px;
}

/* 未手工包 panel 的列表页：直接美化第一层表单/工具条/表格 */
.live-page > .el-form,
.live-page > form.el-form {
  background: #fff;
  border: 1px solid $live-border;
  border-radius: $live-radius;
  padding: 14px 16px 4px;
  margin-bottom: 14px;
}

.live-page > .el-row.mb8,
.live-page > .mb8,
.live-page > .selection-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid $live-border;
  border-radius: $live-radius;
  padding: 10px 12px;
  margin-bottom: 12px !important;
}

.live-page > .el-row.mb8 .el-col {
  width: auto !important;
  float: none !important;
}

.live-page .el-table {
  border-radius: 8px;
  overflow: hidden;
}

.live-page .el-table th,
.live-table th {
  background: $live-soft !important;
  color: #5c6470;
  font-weight: 500;
}

.live-page .el-table td,
.live-table td {
  padding: 10px 0;
  color: $live-text;
}

.live-page .el-table--border,
.live-page .el-table--border th,
.live-page .el-table--border td {
  border-color: #eef0f3;
}

.live-page .el-tag {
  border-radius: 4px;
  border: none;
  font-weight: 500;
}

.live-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.live-cell__cover {
  width: 56px;
  height: 74px;
  border-radius: 8px;
  flex-shrink: 0;
  background: $live-soft;
  overflow: hidden;
  object-fit: cover;
}

.live-cell__cover--square {
  width: 48px;
  height: 48px;
}

.live-cell__meta {
  min-width: 0;
  text-align: left;
}

.live-cell__name {
  font-size: 14px;
  font-weight: 600;
  color: $live-text;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-cell__sub {
  margin-top: 4px;
  font-size: 12px;
  color: $live-sub;
}

.live-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: $live-text;
}

.live-status__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c0c4cc;
}

.live-status.is-1 .live-status__dot { background: #e6a23c; }
.live-status.is-2 .live-status__dot { background: #f56c6c; box-shadow: 0 0 0 3px rgba(245, 108, 108, 0.18); }
.live-status.is-3 .live-status__dot { background: #909399; }
.live-status.is-4 .live-status__dot { background: #409eff; }

.live-muted { color: $live-sub; font-size: 13px; }
.live-ok { color: $live-accent; font-size: 13px; }
.live-warn { color: #c45656; font-size: 13px; }

/* 配置壳 */
.live-config-container {
  padding: 12px 16px 20px;
}

.live-config-container .live-config-header {
  border: 1px solid $live-border !important;
  border-radius: $live-radius !important;
  margin-bottom: 12px;
  box-shadow: none !important;
}

.live-config-container .live-config-header .el-card__body {
  padding: 0;
}

.live-config-container .detail-header {
  padding: 16px 18px !important;
  border-bottom: none !important;
  align-items: center;
}

.live-config-container .header-left-area {
  flex: 0 0 64px !important;
}

.live-config-container .header-left-area img {
  width: 64px !important;
  height: 84px !important;
  border-radius: 8px !important;
  object-fit: cover;
}

.live-config-container .live-info-title .title-text {
  font-size: 18px;
  font-weight: 600;
  color: $live-text;
}

.live-config-container .live-info-desc,
.live-config-container .info-state-text {
  color: $live-sub !important;
  font-size: 13px;
}

.live-config-container .live-config-left {
  border: 1px solid $live-border !important;
  border-radius: $live-radius !important;
  box-shadow: none !important;
}

.live-config-container .live-config-left .el-card__body {
  padding: 0;
}

.live-config-container .left-menu {
  width: 180px !important;
  background: #fafbfc;
  border-right: 1px solid $live-border !important;
  padding: 10px 8px;
  min-height: 560px;
}

.live-config-container .left-menu .el-menu {
  border-right: none !important;
  background: transparent;
}

.live-config-container .el-menu-item {
  height: 40px;
  line-height: 40px;
  margin: 2px 0 !important;
  border-radius: 8px !important;
  color: #5c6470;
}

.live-config-container .el-menu-item.is-active,
.live-config-container .el-menu-item:hover {
  background-color: rgba(26, 109, 91, 0.1) !important;
  color: $live-accent !important;
}

.live-config-container .right-info {
  padding: 16px 18px !important;
  background: #fff;
}

/* 中控台 */
.live-console {
  padding: 10px 12px 16px !important;
  background: $live-soft;
  min-height: calc(100vh - 84px);
  align-items: stretch !important;
}

.live-console .live-console-col {
  background: #fff;
  border: 1px solid $live-border;
  border-radius: $live-radius;
  overflow: hidden;
}

.live-console .msg-box,
.live-console .msg-box-right {
  border-radius: 10px !important;
  line-height: 1.5;
}

.live-console .shuru {
  padding: 12px 14px !important;
  min-height: auto !important;
  border-top: 1px solid $live-border !important;
}

.live-console .shuru .el-textarea__inner {
  min-height: 72px !important;
  border-radius: 8px;
}

.live-console .top-box img {
  width: 36px !important;
  height: 36px !important;
}

.live-console .top-box span {
  margin-top: 6px !important;
  color: #5c6470;
}

.live-console .row-box {
  padding: 8px 4px;
  border-radius: 8px;
}

.live-console .row-box:hover {
  background: $live-soft;
}

/* 数据看板指标卡 */
.live-page .stat-card,
.live-data-page .el-card {
  border: 1px solid $live-border !important;
  border-radius: $live-radius !important;
  box-shadow: none !important;
}

.live-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.live-stats-grid .statistics-item {
  text-align: center;
  padding: 10px 8px;
  background: $live-soft;
  border-radius: 8px;
  border: 1px solid $live-border;
}

.live-stats-grid .statistics-title {
  font-size: 12px;
  color: $live-sub;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  line-height: 1.3;
}

.live-stats-grid .statistics-value {
  font-size: 18px;
  font-weight: 600;
  color: $live-text;
}

.live-video-thumb {
  position: relative;
  width: 48px;
  height: 48px;
  margin: 0 auto;
  cursor: pointer;
}

.live-video-thumb__empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: $live-sub;
  background: $live-soft;
}

.live-video-thumb__play {
  position: absolute;
  right: 2px;
  bottom: 2px;
  font-size: 14px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.live-video-dialog-player {
  width: 100%;
  max-height: 70vh;
  background: #000;
}

/* 商品/媒体列表内过大图片收敛 */
.live-page img[style*="100px"],
.live-page .el-image[style*="100px"] {
  max-width: 56px !important;
  max-height: 56px !important;
  border-radius: 8px;
  object-fit: cover;
}

/* 订单详情通用 */
.live-order-detail {
  background: $live-soft;
  min-height: 100%;
  padding: 16px;
}

.live-order-detail .operate-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.live-order-detail .desct {
  font-size: 15px;
  font-weight: 600;
  color: $live-text;
  margin: 8px 0 12px;
}

.live-order-detail .el-card {
  border: 1px solid $live-border !important;
  border-radius: $live-radius !important;
  box-shadow: none !important;
}
