/* ====================
   直播间页面 - 独立隔离样式
   仅作用于 .room-wrapper 内部
==================== */

/* 全局重置 + 独立作用域 */
.room-wrapper {
  all: unset;
  display: block;
  width: 100%;
  padding: 20px 0;
}

.room-wrapper * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segue UI', 'Microsoft YaHei', sans-serif;
}

/* 搜索卡片 */
.room-wrapper .glass-card {
  background: rgba(22, 22, 44, 0.7);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 30px;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 8px 32px rgba(31,38,135,0.37);
  margin-bottom: 30px;
}

/* 客户页：搜索框下方状态区 */
.room-wrapper .status-panel {
  margin-top: 10px;
  color: #fff;
  font-size: 13px;
}
.room-wrapper .status-panel + .status-panel {
  margin-top: 12px;
}

/* 搜索框容器 */
.room-wrapper .search-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* 搜索输入框 */
.room-wrapper .search-input {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 14px 18px;
  color: #fff;
  font-size: 15px;
  outline: none;
  transition: all 0.3s;
}
.room-wrapper .search-input:focus {
  border-color: #ff0050;
  box-shadow: 0 0 10px rgba(255,0,80,0.2);
}
.room-wrapper .search-input::placeholder {
  color: rgba(255,255,255,0.4);
}

/* 添加按钮 */
.room-wrapper .btn-add {
  padding: 14px 28px;
  background: linear-gradient(90deg, #ff0050, #ff3366);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(255,0,80,0.25);
  white-space: nowrap;
}
.room-wrapper .btn-add:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255,0,80,0.35);
  color: #fff;
}

/* 表格标题 */
.room-wrapper .table-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #fff;
}

/* 表格容器 */
.room-wrapper .fixed-table-container {
  background: transparent !important;
  border: none !important;
}

/* 表格 */
.room-wrapper .table {
  color: #fff;
  background: transparent;
  width: 100%;
}
.room-wrapper .table th {
  background: rgba(40,40,80,0.8) !important;
  border-color: rgba(255,255,255,0.1) !important;
  color: #fff !important;
  font-weight: 500;
  padding: 14px 8px;
  text-align: center;
}
.room-wrapper .fixed-table-header {
  display: none !important;
}
.room-wrapper .table th .th-inner {
  width: 100%;
  overflow: visible;
}
.room-wrapper .table th .th-inner.sortable {
  cursor: pointer;
  position: relative;
  display: block;
  width: 100%;
  padding-right: 16px !important;
  background-image: none !important;
}
.room-wrapper .table th .th-inner.sortable:before,
.room-wrapper .table th .th-inner.sortable:after {
  content: "";
  position: absolute;
  right: 0;
  pointer-events: none;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
}
.room-wrapper .table th .th-inner.sortable:before {
  top: 50%;
  margin-top: -7px;
  border-bottom: 5px solid rgba(255,255,255,0.35);
}
.room-wrapper .table th .th-inner.sortable:after {
  top: 50%;
  margin-top: 2px;
  border-top: 5px solid rgba(255,255,255,0.35);
}
.room-wrapper .table th .th-inner.sortable.asc:before {
  border-bottom-color: #fff;
}
.room-wrapper .table th .th-inner.sortable.asc:after {
  border-top-color: rgba(255,255,255,0.2);
}
.room-wrapper .table th .th-inner.sortable.desc:before {
  border-bottom-color: rgba(255,255,255,0.2);
}
.room-wrapper .table th .th-inner.sortable.desc:after {
  border-top-color: #fff;
}
.room-wrapper .table td {
  background: rgba(30,30,60,0.6) !important;
  border-color: rgba(255,255,255,0.08) !important;
  color: rgba(255,255,255,0.85);
  padding: 12px 8px;
  text-align: center;
}
.room-wrapper .table tr:hover td {
  background: rgba(50,50,100,0.6) !important;
}

/* 状态标签 */
.room-wrapper .label-on {
  background: #00ffaa;
  color: #0a2e22;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}
.room-wrapper .label-off {
  background: #ff6b81;
  color: #fff;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}
.room-wrapper .label-wait {
  background: #f0ad4e;
  color: #3d2a00;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

/* 表格内操作链接（更亮、更易辨认） */
.room-wrapper .table-action-link {
  color: #7dd3fc !important;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}
.room-wrapper .table-action-link:hover {
  color: #bae6fd !important;
  text-shadow: 0 0 8px rgba(125, 211, 252, 0.55);
  text-decoration: none;
}
.room-wrapper .table-action-primary {
  color: #6ee7b7 !important;
}
.room-wrapper .table-action-primary:hover {
  color: #a7f3d0 !important;
  text-shadow: 0 0 8px rgba(110, 231, 183, 0.55);
}
.room-wrapper .table-action-warn {
  color: #fcd34d !important;
}
.room-wrapper .table-action-warn:hover {
  color: #fde68a !important;
  text-shadow: 0 0 8px rgba(252, 211, 77, 0.55);
}
.room-wrapper .table-action-danger {
  color: #fb7185 !important;
}
.room-wrapper .table-action-danger:hover {
  color: #fda4af !important;
  text-shadow: 0 0 8px rgba(251, 113, 133, 0.55);
}

/* 操作按钮 */
.room-wrapper .opt-btn {
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  margin: 0 4px;
  border: none;
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.room-wrapper .opt-btn:hover {
  transform: translateY(-1px);
}
.room-wrapper .opt-open {
  background: #38bdf8;
  box-shadow: 0 2px 8px rgba(56, 189, 248, 0.45);
}
.room-wrapper .opt-open:hover {
  background: #7dd3fc;
  box-shadow: 0 4px 12px rgba(125, 211, 252, 0.55);
}
.room-wrapper .opt-close {
  background: #ff4d8d;
  box-shadow: 0 2px 8px rgba(255, 77, 141, 0.45);
}
.room-wrapper .opt-close:hover {
  background: #ff7eb3;
  box-shadow: 0 4px 12px rgba(255, 126, 179, 0.55);
}
.room-wrapper .opt-del {
  background: #f87171;
  box-shadow: 0 2px 8px rgba(248, 113, 113, 0.45);
}
.room-wrapper .opt-del:hover {
  background: #fca5a5;
  box-shadow: 0 4px 12px rgba(252, 165, 165, 0.55);
}


/* ====================
   分页器美化 - 右对齐 + 玄系AI风格
   直接放入 room-page.css 末尾即可
==================== */

/* 分页容器右对齐 */
.room-wrapper .fixed-table-pagination {
  display: flex;
  justify-content: flex-end !important;
  align-items: center;
  padding: 16px 0;
  margin-top: 10px;
}

/* 分页按钮组 */
.room-wrapper .pagination {
  margin: 0;
  display: flex;
  gap: 6px;
}

/* 分页每一项 */
.room-wrapper .pagination > li > a {
  background: rgba(40,40,80,0.7) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  color: rgba(255,255,255,0.8) !important;
  border-radius: 8px !important;
  min-width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: all 0.25s ease;
}

/* 分页hover */
.room-wrapper .pagination > li > a:hover {
  background: rgba(60,60,120,0.8) !important;
  border-color: rgba(255,0,80,0.4) !important;
  color: #fff !important;
}

/* 当前页高亮 */
.room-wrapper .pagination > li.active > a {
  background: linear-gradient(90deg, #ff0050, #ff3366) !important;
  border-color: rgba(255,0,80,0.5) !important;
  color: #fff !important;
  font-weight: 500;
  box-shadow: 0 3px 10px rgba(255,0,80,0.25);
}

/* 上一页/下一页按钮 */
.room-wrapper .pagination > li:first-child a,
.room-wrapper .pagination > li:last-child a {
  padding: 0 12px;
  font-size: 12px;
}
.room-wrapper .search-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* 搜索下拉 */
.room-wrapper .search-select {
  min-width: 140px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 14px 18px;
  color: #fff;
  font-size: 15px;
  outline: none;
  transition: all 0.3s;
  cursor: pointer;
}
.room-wrapper .search-select:focus {
  border-color: #ff0050;
  box-shadow: 0 0 10px rgba(255,0,80,0.2);
}
.room-wrapper .search-select option {
  background: #1a1a2e;
  color: #fff;
}

/*  */
.room-wrapper .search-input {
  flex: 1;
  max-width: 300px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 14px 18px;
  color: #fff;
  font-size: 15px;
  outline: none;
  transition: all 0.3s;
}