/* 魔云腾官方 WEB 群控 — 管理端 + 用户群控 1:1 复刻样式 */
:root {
  --myt-green: #60a5fa;
  --myt-green-dark: #3b82f6;
  --myt-green-light: #e8f5ec;
  --myt-red: #f56c6c;
  --myt-sidebar: #2d343f;
  --myt-sidebar-text: #bfcbd9;
  --myt-bg: #f0f2f5;
  --myt-border: #e4e7ed;
  --myt-text: #303133;
  --myt-muted: #909399;
  --myt-checkbox-border: #606266;
  --control-side-header: #1e3a8a;
}

* { box-sizing: border-box; }

html, body, #app {
  margin: 0; padding: 0; height: 100%;
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 14px; color: var(--myt-text);
}

/* ========== 登录 ========== */
.myt-login {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #2d343f 0%, #1e3a8a 100%);
}
.myt-login-box {
  width: 400px; background: #fff; border-radius: 24px; padding: 40px 36px 32px;
  box-shadow: 0 18px 50px rgba(0,0,0,.18);
}
.myt-login-box h1 { text-align: center; font-size: 26px; margin: 0 0 22px; font-weight: 700; }
.myt-login-box .login-tabs {
  display: flex; margin-bottom: 22px; border-bottom: 1px solid #ebeef5;
}
.myt-login-box .login-tabs button {
  flex: 1; border: 0; background: none; padding: 10px 0; cursor: pointer;
  color: #303133; font-size: 15px;
}
.myt-login-box .login-tabs button.active {
  color: #3b82f6; font-weight: 600; border-bottom: 2px solid #60a5fa; margin-bottom: -1px;
}
.myt-login-box .login-stack { display: flex; flex-direction: column; gap: 14px; }
.myt-login-box .login-hint {
  margin: 14px 0 0; text-align: center; font-size: 12px; color: var(--myt-muted); line-height: 1.6;
}
.myt-login-box .captcha-row,
.myt-login-box .sms-row { display: flex; gap: 10px; align-items: center; width: 100%; }
.myt-login-box .captcha-row .el-input,
.myt-login-box .sms-row .el-input { flex: 1; min-width: 0; }
.myt-login-box .captcha-img {
  width: 112px; height: 44px; border: 1px solid #e4e7ed; border-radius: 22px;
  cursor: pointer; background: #f5f7fa; flex-shrink: 0; object-fit: fill;
}
.myt-login-box .sms-row .el-button {
  width: 112px; height: 44px; margin: 0; flex-shrink: 0; border-radius: 22px;
}
.myt-login-box .el-input__wrapper { border-radius: 22px; min-height: 44px; background: #fafafa; box-shadow: 0 0 0 1px #e4e7ed inset; }
.myt-login-box .login-agree { margin: 0; font-size: 13px; color: #606266; }
.myt-login-box .login-extra {
  display: flex; align-items: center; justify-content: space-between; font-size: 13px;
}
.myt-login-box .reset-back { margin: 0; text-align: center; font-size: 13px; }
.myt-login-box .login-submit { width: 100%; height: 46px; border-radius: 23px; }
.myt-login-box a { color: #3b82f6; text-decoration: none; }
.myt-login-box a:hover { text-decoration: underline; }

/* ========== 管理端（整体略缩小） ========== */
.myt-admin { height: 100vh; display: flex; overflow: hidden; font-size: 12px; }

.myt-admin-aside {
  width: 168px; flex-shrink: 0; background: var(--myt-sidebar);
  display: flex; flex-direction: column; overflow: hidden;
}

.myt-admin-aside .brand {
  height: 36px; line-height: 36px; text-align: center; color: #fff;
  font-size: 14px; font-weight: 700; background: #252b33;
}

.myt-admin-menu { border-right: none !important; flex: 1; overflow-y: auto; font-size: 12px; }
.myt-admin-menu .el-menu-item,
.myt-admin-menu .el-sub-menu__title { height: 36px !important; line-height: 36px !important; }
.myt-admin-menu .el-menu-item.is-active {
  background-color: var(--myt-green) !important; color: #fff !important;
}
.myt-admin-menu .el-sub-menu__title:hover,
.myt-admin-menu .el-menu-item:hover { background: rgba(255,255,255,.06) !important; }

.admin-aside-footer {
  flex-shrink: 0;
  padding: 8px 10px 12px;
  font-size: 10px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
  word-break: break-word;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.myt-admin-main { flex: 1; display: flex; flex-direction: column; min-width: 0; background: var(--myt-bg); }

.myt-admin-topbar {
  height: 36px; padding: 0 10px; background: #fff; border-bottom: 1px solid var(--myt-border);
  display: flex; align-items: center; justify-content: space-between; flex-shrink: 0;
}
.myt-admin-topbar .topbar-title { font-size: 13px; font-weight: 600; }
.myt-admin-topbar .topbar-right { display: flex; align-items: center; gap: 8px; }
.myt-admin-topbar .topbar-user { color: var(--myt-muted); font-size: 11px; }

.myt-admin-content { flex: 1; padding: 0; overflow: auto; }

/* 设备结构页 */
.myt-structure { height: 100%; display: flex; flex-direction: column; }

.myt-structure-tabs {
  background: #fff; padding: 0 12px; border-bottom: 1px solid var(--myt-border);
}
.myt-structure-tabs .el-tabs__item { font-size: 12px; height: 32px; line-height: 32px; }
.myt-structure-tabs .el-tabs__item.is-active { color: var(--myt-green); }
.myt-structure-tabs .el-tabs__active-bar { background: var(--myt-green); }

.myt-structure-body { flex: 1; display: flex; gap: 8px; min-height: 0; padding: 8px; }
/* 设备结构左栏略宽，容纳「WebRTC修复」等工具按钮 */
.myt-structure-body > .myt-panel-side:first-child {
  flex: 0 0 312px;
  width: 312px;
  max-width: 312px;
  min-width: 312px;
}
.myt-structure .myt-panel-side .myt-toolbar-one-row {
  flex-wrap: wrap;
  overflow: visible;
  row-gap: 4px;
}
.myt-btn-webrtc-heal.el-button--small {
  min-width: 78px;
  padding: 1px 8px !important;
  white-space: nowrap;
}

.myt-panel-side { flex: 0 0 280px; width: 280px; max-width: 280px; min-width: 280px; }
.myt-panel-main { flex: 1; min-width: 0; }

.myt-panel {
  flex: 1; background: #fff; border: 1px solid var(--myt-border); border-radius: 2px;
  display: flex; flex-direction: column; min-width: 0;
}
.myt-panel + .myt-panel { margin-left: 8px; }

.myt-panel-toolbar {
  padding: 4px 5px; border-bottom: 1px solid var(--myt-border);
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px;
}
.myt-toolbar-one-row {
  flex-wrap: nowrap;
  gap: 3px;
  overflow: hidden;
}
.myt-toolbar-one-row .el-checkbox { margin-right: 0; height: 21px; flex-shrink: 0; }
.myt-toolbar-one-row .el-checkbox__label { font-size: 10px; padding-left: 3px; }
.myt-toolbar-one-row .el-button--small {
  padding: 1px 5px; font-size: 10px; height: 21px; line-height: 19px; flex-shrink: 0;
}
.myt-panel-toolbar .el-button--small { padding: 2px 6px; font-size: 11px; height: 22px; }
.myt-panel-toolbar .panel-hint { font-size: 11px; color: var(--myt-muted); margin-left: auto; }
.myt-panel-toolbar .format-board-btn { margin-left: auto; }

.myt-panel-body { flex: 1; overflow: auto; padding: 6px; }

.myt-board-card {
  border: 1px solid var(--myt-border); border-radius: 2px; padding: 4px 6px;
  margin-bottom: 4px; cursor: pointer; background: #fff;
}
.myt-board-card:hover { border-color: #bfdbfe; }
.myt-board-card.active { border-color: var(--myt-green); background: var(--myt-green-light); }
.myt-board-card.is-checked:not(.active) { border-color: #93c5fd; background: #f6fbf7; }
.myt-board-check { flex-shrink: 0; height: auto; margin-right: 0; }
.myt-board-check .el-checkbox__inner { width: 14px; height: 14px; }
.myt-orphan-hint {
  margin: 0 8px 6px; padding: 6px 10px; font-size: 11px; color: #b88230;
  background: #fdf6ec; border: 1px solid #f5dab1; border-radius: 2px;
}
.myt-board-row1 { display: flex; align-items: center; gap: 4px; min-height: 22px; }
.myt-board-ip {
  font-size: 11px; font-weight: 500; flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.myt-board-remark { color: var(--myt-muted); font-weight: normal; font-size: 10px; }
.myt-board-index {
  font-size: 11px; color: var(--myt-muted); flex-shrink: 0; min-width: 18px; text-align: right;
}
.myt-board-status {
  font-size: 9px; color: var(--myt-green); border: 1px solid var(--myt-green);
  padding: 0 3px; border-radius: 2px; background: #fff; flex-shrink: 1; line-height: 15px;
  max-width: 168px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.create-op-hint {
  margin-left: 10px; font-size: 12px; color: #409eff; max-width: 52vw;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 8px;
}
.create-op-bar {
  width: 72px; height: 4px; border-radius: 2px; background: #e4e7ed;
  overflow: hidden; flex-shrink: 0;
}
.create-op-bar > i { display: block; height: 100%; background: currentColor; }
.create-op-hint.is-creating { color: #e6a23c; }
.create-op-hint.is-error { color: #f56c6c; }
.create-op-hint.is-downloading, .create-op-hint.is-importing { color: #409eff; }
.myt-board-status.is-error {
  color: #f56c6c; border-color: #f56c6c;
}
.myt-board-status.is-checking {
  color: #e6a23c; border-color: #e6a23c;
}
.myt-board-status.is-downloading {
  color: #409eff; border-color: #409eff;
}
.myt-board-status.is-offline {
  color: #909399; border-color: #c0c4cc;
}
.myt-board-row1 .icon-btn {
  width: 14px; height: 14px; border: none; background: none; cursor: pointer; padding: 0;
  font-size: 12px; line-height: 1; flex-shrink: 0; color: var(--myt-green);
}
.myt-empty { padding: 28px 10px; font-size: 12px; }

.sync-interval-row {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px;
}
.sync-interval-hint { color: var(--myt-muted); font-size: 11px; }
.sync-cfg-hint { margin: 12px 0 0; font-size: 11px; color: var(--myt-muted); line-height: 1.5; }
.create-net-hint { font-size: 12px; color: #e6a23c; }

.myt-create-dlg .el-dialog__body { padding: 12px 16px 4px; }
.myt-create-form .el-form-item { margin-bottom: 10px; }
.myt-create-form .el-form-item__label { font-size: 12px; }
.myt-create-form .el-input__inner,
.myt-create-form .el-select__wrapper { font-size: 12px; }

.create-net-hint { font-size: 12px; color: #909399; line-height: 1.5; }

.mirror-opt-badge { color: #409eff; font-weight: 500; }
.myt-hw-badge { display: inline-block; margin-left: 6px; padding: 0 5px; font-size: 10px; line-height: 16px; border-radius: 3px; font-weight: 600; vertical-align: middle; }
.myt-hw-badge.is-v2 { color: #409eff; background: #ecf5ff; border: 1px solid #b3d8ff; }
.myt-hw-badge.is-v3 { color: #3b82f6; background: #f0f9eb; border: 1px solid #bfdbfe; }
.myt-hw-badge.is-inline { margin-left: 4px; }
.tpl-mirror-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; margin-bottom: 6px; font-size: 12px; color: #666; }
.tpl-mirror-board { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tpl-catalog-tag { font-size: 13px; color: #1d4ed8; font-weight: 600; }
.myt-create-form .el-select-dropdown__item.is-selected .mirror-opt-badge { color: #409eff; }
.create-batch-hint { margin: 0 0 8px; font-size: 12px; color: #409eff; line-height: 1.5; }

.myt-admin .el-table { font-size: 11px; }
.myt-admin .el-table .el-input__inner { font-size: 11px; }
.myt-admin .el-table .cell { padding: 4px 6px; }

.myt-btn-green {
  background: var(--myt-green) !important; border-color: var(--myt-green) !important; color: #fff !important;
}
.myt-btn-green:hover { background: var(--myt-green-dark) !important; border-color: var(--myt-green-dark) !important; }
.myt-btn-red {
  background: var(--myt-red) !important; border-color: var(--myt-red) !important; color: #fff !important;
}
.myt-btn-outline-green {
  background: #fff !important; border-color: var(--myt-green) !important; color: var(--myt-green) !important;
}

.myt-empty { text-align: center; color: #c0c4cc; padding: 60px 16px; font-size: 14px; }

/* ========== 用户群控端 ========== */
.myt-control { height: 100vh; display: flex; flex-direction: column; overflow: hidden; background: #fff; }
.myt-control-topbar {
  height: 44px; padding: 0 16px; background: var(--control-side-header); color: #fff;
  display: flex; align-items: center; justify-content: space-between; flex-shrink: 0;
}
.myt-control-topbar .topbar-actions { display: flex; align-items: center; gap: 8px; }
.myt-control-body { flex: 1; display: flex; min-height: 0; overflow: hidden; }

/* 左侧栏 */
.myt-control-side {
  width: 280px; flex-shrink: 0; display: flex; flex-direction: column;
  border-right: 1px solid var(--myt-border); background: #fff;
  transition: width .2s;
}
.myt-control-side.collapsed { width: 40px; }
.myt-control-side.collapsed .side-head { justify-content: center; border-bottom: none; }

.side-head {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  min-height: 40px;
  padding-right: 4px;
}
.side-collapse-btn {
  flex-shrink: 0; width: 32px; height: 32px; margin-left: auto;
  border: none; background: none; cursor: pointer;
  color: var(--myt-muted); font-size: 14px; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
}
.side-collapse-btn:hover { color: var(--myt-text); background: #f5f7fa; }
.myt-control-side.collapsed .side-collapse-btn { margin-left: 0; }

.side-inner { flex: 1; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }

.myt-side-tabs { flex: 1; min-width: 0; padding: 0 0 0 8px; }
.myt-side-tabs .el-tabs__header { margin: 0; }
.myt-side-tabs .el-tabs__item { font-size: 15px; padding: 0 10px; font-weight: 700; }
.myt-side-tabs .el-tabs__item.is-active { color: var(--myt-green); font-weight: 800; }
.myt-side-tabs .el-tabs__active-bar { background: var(--myt-green); }

.side-section { padding: 12px 14px; border-bottom: 1px solid #f0f0f0; }
.side-account-section {
  padding-top: 10px;
  padding-bottom: 8px;
  border-bottom: none;
}
.side-account-row {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 4px;
  font-size: 13px;
}
.side-account-row .label { color: var(--myt-muted); }
.side-account-name { color: var(--myt-text); font-weight: 500; }
.side-expire-soon {
  margin-left: 8px;
  color: #f56c6c;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.side-account-section .renew-soon-btn {
  padding: 2px 8px;
  border-radius: 4px;
}
.side-section-title { font-size: 13px; color: var(--myt-text); margin-bottom: 10px; font-weight: 500; }
.install-job-section .install-job-name {
  font-size: 12px;
  color: #606266;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.install-job-section .install-job-status {
  margin-top: 6px;
  font-size: 12px;
  color: #909399;
}

.side-radio-row { margin-bottom: 10px; }
.side-radio-row .label { font-size: 13px; color: var(--myt-muted); margin-bottom: 6px; }
.side-radio-row.side-radio-inline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
}
.side-radio-row.side-radio-inline .label {
  margin-bottom: 0;
  flex-shrink: 0;
}
.side-radio-row .el-radio { margin-right: 16px; }
.side-radio-row.side-radio-inline .el-radio { margin-right: 12px; }
.side-radio-row.side-radio-inline .el-radio:last-child { margin-right: 0; }
.side-radio-row .el-radio__input.is-checked + .el-radio__label { color: var(--myt-green); }
.side-radio-row .el-radio__input.is-checked .el-radio__inner { border-color: var(--myt-green); background: var(--myt-green); }

.side-slider-row { margin-bottom: 14px; }
.side-slider-row .label { font-size: 13px; color: var(--myt-muted); margin-bottom: 4px; }

.side-slider-compact {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 6px;
}
.side-slider-compact .label {
  flex-shrink: 0; width: 56px; margin-bottom: 0;
  font-size: 12px; color: var(--myt-muted);
}
.side-slider-compact .el-slider { flex: 1; min-width: 0; }
.side-slider-compact .el-slider__runway { margin: 0; }

.group-side-panel { padding-top: 8px; padding-bottom: 10px; }
.group-side-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; font-weight: 500; margin-bottom: 8px;
}
.group-side-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.link-btn {
  border: none; background: none; color: var(--myt-muted);
  font-size: 12px; cursor: pointer; padding: 0;
}
.link-btn:hover { color: var(--myt-green); }

.tag-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.tag-add { color: var(--myt-green); font-size: 13px; cursor: pointer; border: none; background: none; }
.tag-add:hover { text-decoration: underline; }

.tag-tree { font-size: 13px; max-height: 200px; overflow-y: auto; }
.tag-tree .tag-row { display: flex; align-items: center; gap: 6px; padding: 4px 0; }
.tag-badges { display: flex; gap: 4px; flex-wrap: wrap; margin-left: 4px; }
.tag-badge {
  display: inline-block; min-width: 22px; height: 18px; line-height: 18px; text-align: center;
  font-size: 11px; color: var(--myt-green); border: 1px solid var(--myt-green); border-radius: 2px;
  padding: 0 4px; background: #fff;
}

.side-help { padding: 12px 14px; font-size: 12px; color: var(--myt-muted); line-height: 1.8; }
.side-shortcuts { padding: 8px 14px; font-size: 12px; color: var(--myt-muted); line-height: 2; }

/* 主工作区 — 统一白板背景 */
.myt-control-main { flex: 1; display: flex; flex-direction: column; min-width: 0; background: #fff; overflow: hidden; }

.control-canvas {
  flex: 1; position: relative; min-height: 0; overflow-x: auto; overflow-y: auto;
  background: #fff;
  user-select: none;
  -webkit-user-select: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.control-canvas::-webkit-scrollbar { width: 0; height: 0; display: none; }

.phone-grid {
  display: flex; flex-wrap: wrap; gap: 12px;
  padding: 12px 16px; align-content: flex-start;
  user-select: none;
  -webkit-user-select: none;
}
.thumb-item {
  flex-shrink: 0; position: relative; cursor: pointer;
  border-radius: 10px; overflow: hidden;
  border: 2px solid #2b2b2b; background: rgba(54, 52, 52, 0.23);
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  transition: border-color .15s, box-shadow .15s;
  display: flex;
  flex-direction: column;
  user-select: none;
  -webkit-user-select: none;
  content-visibility: auto;
  contain-intrinsic-size: auto 200px;
}
.thumb-item:hover { border-color: #444; }
.thumb-item.active {
  border-color: var(--myt-green);
  box-shadow: 0 0 0 2px rgba(96,165,250,.35), 0 4px 14px rgba(0,0,0,.18);
}
.thumb-item.thumb-host-busy .thumb-media img {
  filter: brightness(0.72);
}
.thumb-busy-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(10, 14, 27, 0.52);
  pointer-events: none;
  user-select: none;
}
.thumb-busy-text {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}
.thumb-busy-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: var(--myt-green);
  border-radius: 50%;
  animation: thumb-busy-spin 0.85s linear infinite;
}
@keyframes thumb-busy-spin {
  to { transform: rotate(360deg); }
}
.focus-action-overlay {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(10, 14, 27, 0.58);
  color: #fff;
  pointer-events: none;
}
.focus-action-overlay p {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.focus-action-overlay .thumb-busy-spinner {
  width: 22px;
  height: 22px;
}
.thumb-item.selected {
  border-color: var(--myt-green);
  box-shadow: 0 0 0 2px rgba(96,165,250,.4);
}
.thumb-item.selected.multi {
  box-shadow: 0 0 0 2px rgba(96,165,250,.55), 0 4px 14px rgba(96,165,250,.15);
}
.thumb-check {
  position: absolute; top: 4px; right: 4px; z-index: 3;
  width: 18px; height: 18px; line-height: 18px; text-align: center;
  font-size: 11px; font-weight: 700; color: #fff;
  background: var(--myt-green); border-radius: 50%;
  pointer-events: none;
}
.thumb-badge {
  position: absolute; top: 4px; left: 4px; z-index: 3;
  font-size: 11px; font-weight: 700; color: #fff;
  background: rgba(0,0,0,.78); border-radius: 6px 0 6px 0;
  padding: 1px 5px; line-height: 1.5; pointer-events: none;
}
.thumb-health-badge {
  position: absolute; bottom: 4px; left: 4px; right: 4px; z-index: 4;
  font-size: 10px; text-align: center; color: #fff;
  background: rgba(245, 108, 108, 0.92); border-radius: 4px;
  padding: 2px 4px; line-height: 1.3; pointer-events: none;
}
.thumb-item.unhealthy .thumb-media { opacity: 0.55; }
.control-load-err {
  margin: 8px 12px 0; padding: 8px 12px; font-size: 13px; color: #e6a23c;
  background: #fdf6ec; border: 1px solid #f5dab1; border-radius: 4px;
}
.phone-grid-empty {
  padding: 48px 24px; text-align: center; color: #909399; font-size: 14px;
}
.thumb-media {
  position: relative;
  flex: 1; width: 100%; min-height: 0; overflow: hidden; background: #000;
}
.thumb-sku-overlay {
  position: absolute;
  top: 4px;
  left: 0;
  right: 0;
  z-index: 3;
  pointer-events: none;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.15;
  color: rgba(255, 255, 255, 0.78);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.92);
  letter-spacing: 0.02em;
}
.thumb-sku-overlay.tier-parked {
  color: rgba(255, 200, 120, 0.85);
}
.thumb-item img {
  width: 100%; height: 100%; object-fit: fill; display: block;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
.thumb-placeholder { width: 100%; height: 100%; background: #111; border-radius: 11px; }

/* 可拖动主控浮窗（对齐官方 BigTermPannel） */
.float-term-panel {
  position: absolute; z-index: 30; user-select: none;
}
.float-term-panel:focus { outline: none; }
.float-term-body { display: flex; align-items: flex-start; }

.focus-screen-wrap {
  border: 8px solid var(--myt-green); border-radius: 28px; overflow: hidden;
  position: relative; background: #000;
  box-shadow: 0 8px 28px rgba(0,0,0,.22);
  flex-shrink: 0;
}
.focus-screen-stage {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  background: #000;
  clip-path: inset(0);
}
.focus-screen-inner { position: relative; width: 100%; height: 100%; overflow: hidden; }
.focus-screen-inner.is-land-rot { overflow: visible; }
.focus-rtc-stack {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.focus-webrtc-stack {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: #000;
}
.focus-webrtc-stack .stream-boot-layer {
  z-index: 6;
}
.focus-webrtc-clip {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.focus-webrtc-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.focus-webrtc-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  pointer-events: auto;
  background: #000;
}
.focus-webrtc-frame.is-group-pass {
  pointer-events: none;
}
.focus-webrtc-boot {
  z-index: 4;
  cursor: default;
  pointer-events: none;
  background: rgba(18, 18, 18, 0.42);
}
.focus-shot-img {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
.focus-shot-img.focus-shot-img--cover {
  z-index: 2;
}
.focus-rtc-stack.focus-rtc-stack--shot {
  z-index: 1;
  pointer-events: auto;
}
/* S 阶段：RTC 在截图底下；未出画藏 iframe；出画后 is-ready 在底下播（渐入被截图挡住） */
.focus-rtc-stack.focus-rtc-stack--shot .stream-frame--shot-ctrl {
  opacity: 0;
  pointer-events: none !important;
  touch-action: none;
  cursor: default;
}
.focus-rtc-stack.focus-rtc-stack--shot .stream-frame--shot-ctrl.is-ready,
.focus-rtc-stack.focus-rtc-stack--shot .stream-frame.is-ready {
  opacity: 1 !important;
  transition: none !important;
}
.focus-mode-badge,
.term-action-icons li.focus-group-badge,
.focus-group-badge {
  width: auto;
  min-width: 0;
  height: auto;
  padding: 0;
  background: none !important;
  border: none;
  border-radius: 0;
  box-shadow: none;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  color: #3b82f6;
  cursor: default;
  user-select: none;
}
.term-action-icons li.focus-group-badge:hover {
  background: none !important;
  color: #3b82f6;
}
.focus-screen-inner.is-shot-mode { position: relative; }
.focus-screen-inner.interactive { cursor: default; touch-action: none; user-select: none; }
.shot-mctrl-input-frame {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  border: 0;
  left: 0;
  top: 0;
  z-index: 1;
}
.screenshot-ime-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  border: 0;
  padding: 0;
  margin: 0;
  font-size: 16px;
  z-index: 5;
  background: transparent;
  caret-color: transparent;
  color: transparent;
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.screenshot-ime-input--webrtc-pass {
  pointer-events: none;
}
.stream-frame {
  width: 100%; height: 100%; border: 0; display: block;
  background: #0a0a0a;
  opacity: 0;
  transition: opacity 0.15s ease;
}
/* 出画 instant：禁渐入（含 S 叠截图、T0 首开）；--live 同规则 */
.stream-frame.is-ready,
.focus-rtc-stack .stream-frame.is-ready {
  opacity: 1;
  transition: none !important;
}

.stream-boot-layer {
  cursor: pointer;
  position: absolute; inset: 0; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background: #121212;
  transition: opacity 0.15s ease, visibility 0.15s ease;
}
.stream-boot-layer.is-hidden {
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: none !important;
}
.stream-boot-bg {
  position: absolute; inset: -8px;
  width: calc(100% + 16px); height: calc(100% + 16px);
  object-fit: cover;
  filter: blur(10px) brightness(0.45) saturate(1.05);
  transform: scale(1.04);
  pointer-events: none;
}
.stream-boot-content {
  position: relative; z-index: 1;
  text-align: center; padding: 16px 20px;
  max-width: 90%;
}
.stream-boot-spinner {
  width: 34px; height: 34px; margin: 0 auto 14px;
  border: 3px solid rgba(255,255,255,.18);
  border-top-color: #60a5fa;
  border-radius: 50%;
  animation: myt-stream-spin 0.75s linear infinite;
}
.stream-boot-title {
  margin: 0; color: #f5f5f5; font-size: 14px; font-weight: 600;
  letter-spacing: 0.02em;
}
.stream-boot-hint {
  margin: 8px 0 0; color: rgba(255,255,255,.55); font-size: 12px; line-height: 1.5;
}
@keyframes myt-stream-spin { to { transform: rotate(360deg); } }

.stream-placeholder {
  width: 100%; height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: #888; font-size: 13px; background: #111; text-align: center; padding: 12px;
}

.drag-bar {
  position: absolute; top: 0; left: 0; right: 0; height: 32px; z-index: 6;
  cursor: move; display: flex; align-items: center; justify-content: space-between;
  padding: 0 10px;
  background: linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,0));
}
.drag-title {
  color: #fff; font-size: 12px; font-weight: 700;
  background: rgba(0,0,0,.45); border-radius: 6px 0 6px 0; padding: 1px 6px;
}

.float-toolbar {
  display: flex; gap: 6px; align-items: center;
  background: rgba(0,0,0,.45); border-radius: 16px; padding: 2px 6px;
}
.float-toolbar button {
  background: none; border: none; color: #fff; cursor: pointer; font-size: 13px;
  width: 24px; height: 24px; display: flex; align-items: center; justify-content: center;
  border-radius: 4px;
}
.float-toolbar button:hover { background: rgba(255,255,255,.15); }

.assist-touch {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%; background: rgba(200,200,200,.35);
  border: 1px solid rgba(255,255,255,.3); pointer-events: none;
}

/* 右侧操作菜单 */
.focus-actions {
  width: 130px; background: #fff; border: 1px solid var(--myt-green);
  border-left: none; border-radius: 0 16px 16px 0; overflow: hidden;
  box-shadow: 2px 4px 12px rgba(0,0,0,.08);
  min-height: 100%;
}
.action-head {
  height: 36px; background: var(--myt-green-light); border-bottom: 1px solid var(--myt-border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 10px; font-weight: 600; font-size: 14px; color: var(--myt-text);
}
.action-head .close-btn {
  border: none; background: none; cursor: pointer; font-size: 16px; color: var(--myt-muted);
  line-height: 1; padding: 0;
}
.action-list { padding: 4px 0; }
.action-item {
  display: flex; align-items: center; gap: 8px; padding: 9px 12px;
  font-size: 13px; color: var(--myt-text); cursor: pointer; border: none;
  background: none; width: 100%; text-align: left;
}
.action-item:hover { background: #f5f7fa; }
.action-item .ico { width: 16px; text-align: center; color: var(--myt-muted); font-size: 14px; }

/* Element Plus 全局微调 */
.el-button--success { --el-button-bg-color: var(--myt-green); --el-button-border-color: var(--myt-green); }
/* 勾选框：未选中加深边框，全站 el-checkbox / 表格多选 / 管理端列表 */
:root {
  --el-checkbox-input-border: var(--myt-checkbox-border);
  --el-checkbox-input-border-color-hover: #303133;
}
.el-checkbox__inner {
  border: 1px solid var(--myt-checkbox-border);
}
.el-checkbox:hover .el-checkbox__inner,
.el-checkbox__input.is-focus:not(.is-checked) .el-checkbox__inner {
  border-color: #303133;
}
.el-checkbox__input.is-checked .el-checkbox__inner,
.el-checkbox__input.is-indeterminate .el-checkbox__inner {
  background: var(--myt-green);
  border-color: var(--myt-green);
}
.el-slider__bar { background: var(--myt-green); }
.side-slider-compact .el-slider__runway { height: 4px; }
.side-slider-compact .el-slider__bar { height: 4px; }
.side-slider-compact .el-slider__button { width: 12px; height: 12px; border-color: var(--myt-green); }

/* ========== 群控端官方 MYTLMS 对齐（覆盖上文旧布局） ========== */
.myt-control.myt-left-control,
.myt-control.myt-left-control * {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}
.myt-control.myt-left-control input,
.myt-control.myt-left-control textarea {
  user-select: text;
  -webkit-user-select: text;
}

.myt-control.myt-left-control {
  flex-direction: row;
  background: #f8fbff;
  position: relative;
}
.myt-control-topbar { display: none !important; }
.myt-control-body { display: contents; }

.myt-control-side {
  position: fixed;
  left: 0;
  top: 10px;
  width: 306px;
  height: calc(100vh - 20px);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  border-right: none;
  border-radius: 0 8px 8px 0;
  box-shadow: 2px 0 14px rgba(15, 23, 42, 0.14);
  transition: left 0.2s ease;
}
.myt-control-side.myt-left-collapsed { left: -276px; width: 306px; }
.myt-control-side.collapsed { width: 306px; }

.side-head { position: relative; padding-right: 38px; }
.side-collapse-btn {
  position: absolute;
  right: 0;
  top: 0;
  margin: 8px 8px 0 0;
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  color: #303133;
}
.side-collapse-btn:hover {
  color: #111;
  background: #f0f0f0;
}
.collapse-arrow {
  display: inline-block;
  width: 16px;
  height: 16px;
  position: relative;
}
.collapse-arrow.is-expanded::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  border: 6px solid transparent;
  border-right-color: #303133;
}
.collapse-arrow.is-collapsed::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 3px;
  border: 6px solid transparent;
  border-left-color: #303133;
}
.side-collapse-btn:hover .collapse-arrow.is-expanded::before {
  border-right-color: #111;
}
.side-collapse-btn:hover .collapse-arrow.is-collapsed::before {
  border-left-color: #111;
}

.myt-side-tabs { padding: 0 38px 0 6px; }
.side-head-tabs-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  min-width: 0;
  padding-left: 6px;
}
.side-head-tabs-wrap .myt-side-tabs {
  flex: 1;
  min-width: 0;
  padding: 0;
}
.side-head-user {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  padding: 4px 6px 4px 8px;
  line-height: 1.25;
  max-width: 92px;
}
.side-head-account {
  font-size: 12px;
  font-weight: 600;
  color: #303133;
  max-width: 86px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.side-head-logout {
  font-size: 12px;
  font-weight: 400;
  color: #909399;
  cursor: pointer;
  padding: 0;
  white-space: nowrap;
  line-height: 1.25;
  user-select: none;
}
.side-head-logout:hover {
  color: #2563eb;
}
.myt-control-side.myt-left-collapsed .side-head-user {
  display: none;
}
.myt-control-side .myt-side-tabs .el-tabs__item {
  font-size: 15px;
  font-weight: 700;
  padding: 0 8px;
  height: 44px;
  line-height: 44px;
}
.myt-control-side .myt-side-tabs .el-tabs__item.is-active {
  color: #2563eb;
  font-weight: 800;
}
.myt-side-tabs .el-tabs__active-bar { background: #2563eb; }

.side-scroll { flex: 1; min-height: 0; }
.side-scroll:not(.side-purchase-nav) {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.side-scroll.side-purchase-nav { overflow-y: auto; }
.side-scroll.side-purchase-nav::-webkit-scrollbar { width: 2px; }
.side-scroll:not(.side-purchase-nav) > .side-section:first-of-type {
  flex-shrink: 0;
}
.side-radio-row .el-radio__input.is-checked + .el-radio__label { color: #2563eb; }
.side-radio-row .el-radio__input.is-checked .el-radio__inner { border-color: #2563eb; background: #2563eb; }
.side-slider-compact .label { width: 56px; font-size: 13px; }
.side-slider-compact .el-slider__bar { background: #796b6b; }

.group-count-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 20px;
  padding: 0 7px;
  margin-right: 8px;
  border-radius: 999px;
  background: #e8e8e8;
  font-size: 12px;
  font-weight: 600;
  color: #303133;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.group-count-badge.is-all-selected {
  background: #b8b8b8;
  color: #111;
}
.group-count-badge:hover {
  background: #dedede;
}
.group-count-badge.is-all-selected:hover {
  background: #a8a8a8;
}

.term-tag-title .group-filter-reset {
  margin-right: auto;
  margin-left: 8px;
}

.side-footer {
  flex-shrink: 0;
  padding: 10px 14px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
}
.side-footer-link { color: #2563eb; cursor: pointer; }
.side-footer-link:hover { text-decoration: underline; }
.side-footer-brand {
  color: #909399;
  font-size: 11px;
  line-height: 1.5;
  word-break: break-word;
}

.site-brand-footer,
.myt-login .brand-footer {
  margin-top: 16px;
  text-align: center;
  font-size: 11px;
  color: #909399;
  line-height: 1.6;
}

.purchase-shop .site-brand-footer {
  margin: 24px 0 8px;
  padding-top: 16px;
  border-top: 1px solid #eef0f3;
}

.tag-add { color: #2563eb; text-align: right; }
.tag-tree { max-height: calc(100vh - 420px); }
.tag-badge { border-color: #e2e2e2; color: #2563eb; border-radius: 4px; min-width: 24px; }

.side-help, .side-shortcuts { font-size: 13px; color: var(--myt-text); flex: 1; overflow-y: auto; }
.help-item, .shortcut-item { padding-bottom: 5px; }
.shortcut-title { font-weight: bold; margin-bottom: 5px; }

.myt-control-main {
  margin-left: 318px;
  height: 100vh;
  flex: 1;
  min-width: 0;
  width: calc(100vw - 318px);
  box-sizing: border-box;
  transition: margin-left 0.2s ease, width 0.2s ease;
  background: #f8fbff;
  overflow: hidden;
}
.myt-control-main.side-collapsed {
  margin-left: 42px;
  width: calc(100vw - 42px);
}

.control-canvas {
  height: 100%;
  background: #f8fbff;
  padding-left: 14px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.control-canvas::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.selection-tip {
  position: sticky;
  top: 8px;
  z-index: 5;
  margin: 8px auto;
  width: fit-content;
  padding: 4px 14px;
  font-size: 13px;
  color: #fff;
  background: rgba(10, 170, 0, 0.85);
  border-radius: 14px;
  pointer-events: none;
}

.box-select-rect {
  position: fixed;
  z-index: 10000;
  border: none;
  background: rgba(0, 200, 0, 0.3);
  pointer-events: none;
  box-sizing: border-box;
}

body.myt-box-selecting,
body.myt-box-selecting * {
  user-select: none !important;
  -webkit-user-select: none !important;
  cursor: default !important;
}
body.myt-box-selecting .thumb-item,
body.myt-box-selecting .thumb-item * {
  cursor: pointer !important;
}
body.myt-box-selecting .thumb-item img {
  pointer-events: none;
}

.phone-grid { padding: 12px 16px 12px 0; min-height: auto; }

.thumb-item.selected { border-color: inherit; box-shadow: none; }
.thumb-item.selected.single {
  border: 3px solid #7654E5;
  box-shadow: 0 0 0 2px rgba(118, 84, 229, 0.5);
}
.thumb-item.selected.multi {
  border: 4px solid #2563eb;
  box-shadow: none;
}
.thumb-check { display: none; }

.big-term-overlay {
  position: fixed;
  inset: 0;
  z-index: 800;
  pointer-events: none;
  background: transparent;
}
.big-term-overlay .float-term-panel {
  position: fixed;
  z-index: 810;
  pointer-events: auto;
  width: fit-content;
  height: fit-content;
}
.big-term-overlay .float-term-body,
.big-term-overlay .focus-device-unit {
  pointer-events: auto;
  width: fit-content;
}
.float-term-panel { position: fixed; z-index: auto; width: fit-content; }
.float-term-body { display: flex; align-items: flex-start; justify-content: flex-start; width: fit-content; }

.focus-screen-wrap {
  border: 6px solid #2563eb;
  border-radius: 24px;
  overflow: hidden;
  background: #000;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.12));
  display: flex;
  flex-direction: column;
  position: relative;
}

/* 官方 BigTermPannelMoveBar：仅顶部 10px 可拖动 */
.focus-drag-strip {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 10px;
  z-index: 6;
  cursor: move;
  background: transparent;
}

.focus-device-body {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  min-height: 0;
  overflow: hidden;
}

.focus-screen-stage {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  background: #000;
  clip-path: inset(0);
}

.selection-tip { display: none; }

.mouse-tips {
  position: fixed;
  z-index: 99997;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: #1e40af;
  color: #fff;
  border-radius: 10px;
  font-size: 12px;
  pointer-events: none;
  transform: translate(0, 0);
}
.mouse-tips .phone-icon {
  width: 10px;
  height: 18px;
  border: 2px solid #fff;
  border-radius: 4px;
  position: relative;
  flex-shrink: 0;
}
.mouse-tips .phone-icon::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 2px;
  border: 1px solid #fff;
  border-radius: 50%;
}
.mouse-tips .tips-text { font-size: 16px; font-weight: 600; line-height: 1; }

.float-toolbar { display: none; }

.term-side-panel {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  width: 36px;
  flex-shrink: 0;
  min-height: 0;
  max-height: 100%;
  border: none;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.92);
  overflow: hidden;
  border-left: 1px solid rgba(37, 99, 235, 0.25);
  padding-top: 16px;
  box-sizing: border-box;
}
.focus-screen-wrap.landscape .term-side-panel {
  padding-top: 8px;
}
.focus-screen-wrap.landscape .term-action-icons li {
  height: 28px;
}
.focus-screen-wrap.landscape .android-nav-bar {
  padding: 2px 2px 6px;
  gap: 2px;
}
.focus-screen-wrap.landscape .android-nav-bar button {
  height: 28px;
}

.android-nav-bar {
  flex-shrink: 0;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  padding: 4px 2px 10px;
  background: transparent;
}
.android-nav-bar button {
  width: 100%;
  height: 44px;
  border: none;
  background: transparent;
  color: rgba(0, 0, 0, 0.45);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  line-height: 1;
  padding: 0;
  border-radius: 5px;
}
.android-nav-bar button:hover {
  color: rgba(0, 0, 0, 0.72);
  background: rgba(255, 255, 255, 0.25);
}
.android-nav-bar button i { font-size: 22px; }

.term-action-icons {
  list-style: none;
  margin: 0;
  padding: 4px 1px;
  flex: 1;
  width: 100%;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  justify-content: flex-start;
  overflow-y: auto;
  min-height: 0;
}
.term-tool-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 4px;
}
.term-tool-hint {
  margin: 0 0 12px;
  font-size: 12px;
  color: #909399;
}
.term-action-icons li {
  width: 32px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 5px;
  color: #5c6670;
  transition: color .15s, background .15s;
}
.term-action-icons li i { font-size: 20px; line-height: 1; }
.term-action-icons li:hover { background: rgba(255, 255, 255, 0.45); color: #2563eb; }
.term-action-icons li.ico-close:hover { background: rgba(254, 240, 240, 0.6); color: #f56c6c; }
.term-action-icons li.is-audio-off { opacity: 0.42; color: rgba(0, 0, 0, 0.45); }

.group-pick-pop { display: none; }
.ctx-menu-group-empty { font-size: 12px; color: #c0c4cc; padding: 6px 14px; cursor: default; flex-shrink: 0; }

.focus-device-unit {
  position: relative;
  display: flex;
  align-items: stretch;
  width: fit-content;
}

.group-static-label { font-size: 13px; color: var(--myt-text); padding-left: 2px; }
.group-static-label.dim { color: var(--myt-muted); }
.group-filter-reset {
  margin-left: 8px;
  border: none;
  background: none;
  color: #2563eb;
  font-size: 12px;
  cursor: pointer;
  padding: 0;
}
.group-filter-reset:hover { text-decoration: underline; }

.my-min-term-menu {
  position: fixed;
  z-index: 10000;
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 2px;
  box-shadow: 1px 1px 10px rgba(0,0,0,.15);
  min-width: 160px;
  max-width: min(320px, calc(100vw - 16px));
  max-height: calc(100vh - 16px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.ctx-menu-actions { list-style: none; margin: 0; padding: 4px 0; flex-shrink: 0; }
.my-min-term-menu li {
  font-size: 13px;
  padding: 8px 15px 8px 10px;
  cursor: pointer;
}
.ctx-menu-actions li:hover { background: #f0f0f0; }
.ctx-menu-divider {
  height: 1px;
  margin: 4px 0;
  background: #eee;
  flex-shrink: 0;
}
.ctx-menu-group-title {
  font-size: 12px;
  color: #909399;
  padding: 4px 15px 2px 10px;
  cursor: default;
  flex-shrink: 0;
  user-select: none;
}
.ctx-menu-group-scroll {
  list-style: none;
  margin: 0;
  padding: 0 0 4px;
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1 1 auto;
  min-height: 0;
  max-height: min(320px, calc(100vh - 200px));
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.ctx-menu-group-item { padding: 2px 10px 2px 8px !important; cursor: default; }
.ctx-menu-group-item .el-checkbox { height: 28px; }
.ctx-menu-group-item:hover { background: #f0f0f0; }

.group-hint {
  font-size: 12px;
  color: #2563eb;
  margin: -4px 0 8px;
  line-height: 1.4;
}

/* 官方 term-tag 分组树 */
.term-tag-section {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 6px 8px 8px !important;
  margin-top: 0;
  border-top: 1px solid #f0f0f0;
  border-bottom: none;
}
.renew-soon-bar {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  padding: 6px 10px;
  background: #fff5f5;
  border-radius: 8px;
  border: 1px solid #fbc4c4;
}
.renew-soon-text {
  flex: 1;
  min-width: 0;
  color: #f56c6c;
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.renew-soon-btn {
  flex-shrink: 0;
  border: none;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity 0.15s;
}
.renew-soon-btn-phone { background: #409eff; }
.renew-soon-btn-phone:hover { background: #66b1ff; }
.renew-soon-btn-board { background: #e6a23c; }
.renew-soon-btn-board:hover { background: #ebb563; }
.term-tag-title {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e2e2e2;
  padding: 8px 8px;
  margin-bottom: 2px;
}
.term-tag-title .side-section-title { font-size: 13px; }
.term-tag-title .tag-add { font-size: 13px; }
.term-tag-box {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}
.term-tag-box::-webkit-scrollbar { width: 2px; }

.add-tag-form {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 42px;
  z-index: 10;
  background: #fff;
  box-shadow: 1px 1px 10px rgba(0,0,0,.15);
  padding: 10px;
  border-radius: 5px;
}
.add-tag-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  padding: 6px 8px;
  font-size: 13px;
}
.add-tag-btns { text-align: right; margin-top: 8px; }
.add-tag-btns button {
  border: 1px solid #dcdfe6;
  background: #fff;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
  margin-left: 6px;
}
.add-tag-btns .btn-confirm { background: #2563eb; border-color: #2563eb; color: #fff; }

.term-group-row {
  padding: 6px 10px;
  position: relative;
  border-radius: 2px;
}
.term-group-row:hover { background: #f6f6f6; }
.term-group-row._active_item { background: rgba(0, 247, 222, 0.06); }

.tag-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  min-height: 24px;
}
.tag-head-left {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
}
.group-row-hit {
  cursor: pointer;
  gap: 0;
}
.group-tri-icon {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  margin-right: 4px;
  position: relative;
  display: inline-block;
  cursor: pointer;
}
.group-tri-icon.is-closed::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 2px;
  border: 4px solid transparent;
  border-left-color: #606266;
}
.group-tri-icon.is-open::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 4px;
  border: 4px solid transparent;
  border-top-color: #606266;
}
.group-tri-icon.is-all-selected.is-closed::before {
  border-left-color: #111;
}
.group-tri-icon.is-all-selected.is-open::before {
  border-top-color: #111;
}
.group-name-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  color: #303133;
  line-height: 1.3;
  cursor: pointer;
}
.group-name-text:hover {
  color: #2563eb;
}
.tag-head-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  width: 40px;
  justify-content: flex-end;
}
.tag-head-actions .act-icon {
  opacity: 0.45;
  width: 16px;
  height: 16px;
  font-size: 13px;
}
.term-group-row:hover .tag-head-actions .act-icon { opacity: 1; }

.tag-expand-icon {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  cursor: pointer;
  position: relative;
  display: inline-block;
}
.tag-expand-icon.is-collapsed::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 1px;
  border: 5px solid transparent;
  border-left-color: #796b6b;
}
.tag-expand-icon.is-expanded::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 4px;
  border: 5px solid transparent;
  border-top-color: #796b6b;
}
.tag-expand-icon.is-static { opacity: 0.35; cursor: default; }

.display-type {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.act-icon {
  width: 18px;
  height: 18px;
  cursor: pointer;
  opacity: 0;
  font-style: normal;
  font-size: 14px;
  color: #796b6b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.term-group-row:hover .act-icon { opacity: 1; }
.act-icon.act-edit::before { content: "✎"; }
.act-icon.act-delete::before { content: "🗑"; color: #f56c6c; }
.act-icon.act-eye::before { content: "👁"; }

.tag-term-box {
  display: flex;
  flex-flow: row wrap;
  gap: 2px;
  margin: 4px 0 0 18px;
}
.tag-term-box ._lst {
  padding: 4px 5px;
  border: 0.5px solid #e2e2e2;
  border-radius: 4px;
  min-width: 22px;
  text-align: center;
  font-size: 12px;
  line-height: 1.2;
  cursor: pointer;
}
.tag-term-box ._lst._active {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}
.tag-term-empty {
  font-size: 12px;
  color: #c0c4cc;
  padding: 4px 0;
}

.ctx-group-pick { display: block; padding: 2px 0; }
.ctx-group-pick.picked { color: #2563eb; font-weight: 600; }
.ctx-group-pick.picked::before { content: "✓ "; }

@media screen and (max-width: 900px) {
  .myt-control-main {
    margin-left: 42px;
    width: calc(100vw - 42px);
  }
  .myt-control-side { width: 300px; }
  .myt-control-side.myt-left-collapsed { left: -270px; }
}

/* ========== 设备列表 — 整屏铺满（相对顶栏 36px） ========== */
.myt-admin-content.is-devlist {
  overflow: hidden;
}

.devlist-page {
  /* 顶栏 36px，铺满剩余视口，避免半屏/贴底 */
  height: calc(100vh - 36px);
  max-height: calc(100vh - 36px);
  display: flex;
  flex-direction: column;
  padding: 12px 16px;
  box-sizing: border-box;
  gap: 10px;
  overflow: hidden;
}

.devlist-page > .devlist-stats {
  flex-shrink: 0;
  margin-bottom: 0 !important;
}

.devlist-phone-panel {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.devlist-table-wrap {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.devlist-pager {
  flex-shrink: 0;
  padding: 10px 12px;
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid var(--myt-border);
  background: #fff;
}

/* 核心板列表：硬盘寿命列下方的探测进度 */
.devlist-disk-progress {
  flex-shrink: 0;
  padding: 10px 14px 12px;
  border-top: 1px solid var(--myt-border);
  background: #fafbfc;
}
.devlist-disk-progress-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.devlist-disk-progress-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--myt-text);
}
.devlist-disk-progress-meta {
  font-size: 12px;
  color: var(--myt-muted);
  text-align: right;
  flex: 1;
  min-width: 0;
}
.devlist-disk-progress-sub {
  margin-top: 6px;
  font-size: 11px;
  color: #909399;
}

.devlist-phone-panel .el-table { border-top: none; }

.devlist-phone-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--myt-border);
  background: #fafbfc;
  flex-shrink: 0;
}

.devlist-phone-toolbar-left {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 120px;
}

.devlist-phone-title {
  font-weight: 600;
  font-size: 13px;
  color: var(--myt-text);
}

.devlist-phone-meta {
  font-size: 11px;
  color: var(--myt-muted);
}

.devlist-phone-toolbar-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
}

.devlist-filter-label {
  font-size: 11px;
  color: var(--myt-muted);
}

.devlist-phone-toolbar-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: auto;
}

.devlist-sel-info {
  font-size: 11px;
  color: var(--myt-muted);
  white-space: nowrap;
  margin-right: 4px;
}

.devlist-sel-info b {
  color: var(--myt-text);
  font-weight: 600;
}

.devlist-sel-deletable {
  color: var(--myt-red) !important;
}

.devlist-stats .el-statistic__head {
  font-size: 11px;
  color: var(--myt-muted);
}

.devlist-stats .el-statistic__content {
  font-size: 20px;
}

.devlist-auth-hint {
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--myt-muted);
}

@media screen and (max-width: 1100px) {
  .devlist-phone-toolbar-actions {
    margin-left: 0;
    width: 100%;
    padding-top: 4px;
    border-top: 1px dashed var(--myt-border);
  }
}

/* ========== 授权云机页 ========== */
.auth-page-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding: 10px 12px;
  margin-bottom: 12px;
  background: #fafbfc;
}

.auth-page-toolbar-left {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.auth-page-title {
  font-weight: 600;
  font-size: 13px;
}

.auth-page-meta {
  font-size: 11px;
  color: var(--myt-muted);
}

.auth-page-toolbar-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  flex: 1;
}

.auth-filter-label {
  font-size: 11px;
  color: var(--myt-muted);
}

.auth-dlg-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.auth-dlg-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.auth-dlg-sel-count {
  font-size: 12px;
  color: var(--myt-muted);
}

.auth-dlg-phone-list {
  max-height: 320px;
  overflow-y: auto;
  border: 1px solid var(--myt-border);
  border-radius: 2px;
  padding: 8px 12px;
  background: #fafbfc;
}

.auth-dlg-phone-item {
  margin: 6px 0;
  line-height: 1.5;
}

.auth-dlg-ip {
  margin-left: 8px;
  font-size: 11px;
  color: var(--myt-muted);
}

.auth-dlg-taken {
  margin-left: 6px;
  font-size: 11px;
  color: #e6a23c;
}

.auth-dlg-toolbar-actions {
  flex-wrap: wrap;
  gap: 8px 12px;
}

.auth-group-scroll {
  max-height: 340px;
  overflow-y: auto;
}

.auth-mgr-toolbar-row {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  margin-bottom: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.auth-mgr-toolbar-spacer {
  flex: 1;
  min-width: 8px;
}

.auth-mgr-dlg .el-dialog__body {
  padding-top: 8px;
}

.auth-mgr-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  padding: 10px 14px;
  margin-bottom: 12px;
  background: #f5f7fa;
  border-radius: 8px;
  font-size: 13px;
  color: #606266;
}
.auth-mgr-dlg .auth-phone-row-taken {
  background: rgb(201, 201, 201) !important;
}
.auth-mgr-stats b {
  color: #303133;
  font-size: 15px;
  margin-left: 4px;
}

.auth-mgr-type-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.auth-mgr-type-label {
  font-size: 13px;
  color: #606266;
  font-weight: 600;
}

.auth-mgr-body {
  display: flex;
  gap: 12px;
  min-height: 420px;
}
.auth-board-panel {
  flex: 0 0 220px;
  border: 1px solid #ebeef5;
  border-radius: 8px;
  background: #fafbfc;
  display: flex;
  flex-direction: column;
  max-height: 430px;
}
.auth-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #303133;
  border-bottom: 1px solid #ebeef5;
}
.auth-board-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}
.auth-board-item {
  padding: 10px;
  margin-bottom: 8px;
  border: 1px solid #e4e7ed;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.auth-board-item:hover {
  border-color: #b3d8ff;
}
.auth-board-item.active {
  border-color: #409eff;
  box-shadow: 0 0 0 1px rgba(64, 158, 255, 0.2);
}
.auth-board-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 4px;
}
.auth-board-item-top strong {
  font-size: 13px;
  color: #303133;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.auth-board-item-ip {
  font-size: 12px;
  color: #909399;
  margin-bottom: 4px;
}
.auth-board-item-meta {
  font-size: 12px;
  color: #606266;
  margin-bottom: 4px;
}
.auth-board-empty {
  padding: 24px 8px;
  text-align: center;
  font-size: 12px;
  color: #909399;
}
.auth-mgr-main {
  flex: 1;
  min-width: 0;
}

.users-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.auth-edit-hint {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--myt-muted);
}

/* ========== 购买云机 ========== */
.myt-control-main.purchase-mode {
  overflow: hidden;
  background: #eef4ff;
  display: flex;
  flex-direction: column;
}

.myt-control-main.help-mode {
  overflow: hidden;
  background: #f0f4f8;
  display: flex;
  flex-direction: column;
}

.purchase-shop {
  flex: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  background: linear-gradient(180deg, #eef4ff 0%, #f8faf9 240px, #f3f7fd 100%);
  scrollbar-width: thin;
}

.purchase-hero {
  position: relative;
  color: #fff;
  padding: 36px 32px 40px;
  overflow: hidden;
}
.purchase-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, #172554 0%, #1e40af 35%, #2563eb 70%, #38bdf8 100%);
}
.purchase-hero-bg::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -60px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}
.purchase-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 0 24px;
  box-sizing: border-box;
}
.purchase-hero-badge {
  display: inline-block;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  margin-bottom: 12px;
}
.purchase-hero h1 {
  margin: 0 0 10px;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.purchase-hero p {
  margin: 0 0 22px;
  font-size: 15px;
  opacity: 0.95;
}
.purchase-hero-notices {
  margin-top: 4px;
  width: 100%;
}
.purchase-hero-notices p {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.65;
  opacity: 0.95;
  padding-left: 0;
}
.purchase-hero-notices p:last-child { margin-bottom: 0; }

.purchase-layout {
  width: 100%;
  margin: -16px 0 0;
  padding: 0 24px 48px;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
}
.purchase-layout.has-sidebar {
  grid-template-columns: 1fr 280px;
}
.purchase-content { min-width: 0; width: 100%; }

.purchase-nav-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
  background: #fff;
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
  border: 1px solid #dfe8fb;
}
.purchase-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: none;
  background: transparent;
  border-radius: 8px;
  padding: 11px 12px;
  font-size: 14px;
  font-weight: 600;
  color: #606266;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, color 0.15s;
}
.purchase-nav-item i {
  font-size: 16px;
  color: #909399;
}
.purchase-nav-item:hover {
  background: #f5f9f6;
  color: #2563eb;
}
.purchase-nav-item:hover i { color: #2563eb; }
.purchase-nav-item.active {
  background: #dbeafe;
  color: #2563eb;
}
.purchase-nav-item.active i { color: #2563eb; }

.purchase-placeholder {
  background: #fff;
  border-radius: 14px;
  padding: 48px 24px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.08);
}
.purchase-placeholder i {
  font-size: 48px;
  color: #c0c4cc;
  display: block;
  margin-bottom: 12px;
}
.purchase-placeholder h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: #303133;
}
.purchase-placeholder p {
  margin: 0;
  font-size: 14px;
  color: #909399;
}

.purchase-guide-panel { margin-bottom: 0; }
.purchase-guide-list p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.75;
  color: #606266;
}
.purchase-guide-list p:last-child { margin-bottom: 0; }

/* 开发 API 文档页 */
.api-docs-panel .purchase-section-head { margin-bottom: 16px; }
.api-doc-banner {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #eff6ff 0%, #e8f4fd 100%);
  border: 1px solid #d3e5fd;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: #303133;
}
.api-doc-banner > i { font-size: 22px; color: #60a5fa; flex-shrink: 0; margin-top: 2px; }
.api-doc-banner p { margin: 6px 0 0; color: #606266; }
.api-doc-banner strong { color: #1e3a8a; }
.api-doc-block {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #ebeef5;
}
.api-doc-block:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.api-doc-block h3 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 600;
  color: #303133;
}
.api-doc-block > p { margin: 0 0 12px; font-size: 14px; line-height: 1.7; color: #606266; }
.api-doc-hint {
  margin: 10px 0 0 !important;
  font-size: 13px !important;
  color: #909399 !important;
}
.api-doc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 8px;
}
.api-doc-table th,
.api-doc-table td {
  border: 1px solid #ebeef5;
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}
.api-doc-table th { background: #f5f7fa; color: #606266; font-weight: 600; }
.api-doc-table code { font-size: 12px; word-break: break-all; }
.api-doc-table-compact td:first-child { white-space: nowrap; width: 120px; }
.api-doc-links p { margin: 0 0 8px; }
.api-doc-links a { color: #60a5fa; text-decoration: none; }
.api-doc-links a:hover { text-decoration: underline; }

.api-doc-banner-strong {
  border-color: #f5c06a;
  background: linear-gradient(135deg, #fff8e8 0%, #eff6ff 100%);
}
.api-doc-banner-strong > i { color: #e6a23c; }
.api-doc-subtitle {
  margin: 14px 0 8px;
  font-size: 15px;
  font-weight: 600;
  color: #303133;
}
.api-doc-steps {
  margin: 0;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.75;
  color: #606266;
}
.api-doc-steps li { margin-bottom: 6px; }
.api-doc-steps li:last-child { margin-bottom: 0; }

.myt-api-official-doc-wrap {
  max-height: calc(100vh - 320px);
  overflow: auto;
  padding: 4px 2px 24px;
  border-top: 1px solid #ebeef5;
  margin-top: 16px;
}
.myt-api-official-doc h1 {
  font-size: 22px;
  margin: 0 0 16px;
  color: #303133;
}
.myt-api-official-doc h2 {
  font-size: 18px;
  margin: 28px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid #ebeef5;
  color: #303133;
}
.myt-api-official-doc h3 {
  font-size: 15px;
  margin: 20px 0 10px;
  color: #409eff;
}
.myt-api-official-doc p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.75;
  color: #606266;
}
.myt-api-official-doc ul,
.myt-api-official-doc ol {
  margin: 0 0 12px;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.7;
  color: #606266;
}
.myt-api-official-doc .api-md-pre,
.myt-api-official-doc pre {
  margin: 8px 0 14px;
  padding: 12px 14px;
  background: #f5f7fa;
  border: 1px solid #ebeef5;
  border-radius: 6px;
  overflow-x: auto;
  font-size: 12px;
  line-height: 1.55;
  color: #303133;
}
.myt-api-official-doc code {
  font-family: Consolas, Monaco, monospace;
  font-size: 12px;
  background: #f5f7fa;
  padding: 1px 5px;
  border-radius: 3px;
}
.myt-api-official-doc pre code { background: none; padding: 0; }

.purchase-order-section { margin-bottom: 0; }
.purchase-order-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.purchase-order-info { flex: 1; min-width: 280px; }
.purchase-order-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.purchase-order-head h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #1f2937;
}
.purchase-order-lines {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
}
.purchase-order-lines .order-line {
  flex: 0 0 auto;
  min-width: 140px;
  padding: 6px 0;
  border-bottom: none;
}
.purchase-order-action {
  flex: 0 0 auto;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.purchase-order-action .order-total {
  width: 100%;
  justify-content: flex-end;
}
.purchase-order-action .order-submit { width: 100%; max-width: 280px; }
.purchase-order-action .order-note { text-align: right; max-width: 280px; }

.purchase-guide-panel { margin-bottom: 0; }

.rent-mgmt-head {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.rent-mgmt-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.rent-mgmt-empty {
  text-align: center;
  padding: 48px 24px;
  color: #909399;
}
.rent-mgmt-empty i {
  font-size: 48px;
  color: #c0c4cc;
  display: block;
  margin-bottom: 12px;
}
.rent-mgmt-empty h3 {
  margin: 0 0 8px;
  color: #303133;
  font-size: 18px;
}

.wallet-account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.wallet-card {
  background: #fff;
  border: 1px solid #e6eeea;
  border-radius: 10px;
  padding: 16px 18px;
}
.wallet-card-label {
  color: #909399;
  font-size: 12px;
  margin-bottom: 6px;
}
.wallet-card-name,
.wallet-card-amount {
  font-size: 22px;
  font-weight: 650;
  color: #1f2d3d;
  line-height: 1.2;
}
.wallet-card-amount { color: #2563eb; }
.wallet-card-meta {
  margin-top: 8px;
  color: #909399;
  font-size: 12px;
}
.wallet-card-recharge,
.wallet-card-pwd {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.wallet-recharge-chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.wallet-recharge-chip {
  min-width: 0;
  padding: 11px 8px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  text-align: center;
  font-size: 15px;
  font-weight: 650;
  color: #303133;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.wallet-recharge-chip:hover {
  border-color: #93c5fd;
  background: #f5faff;
}
.wallet-recharge-chip.active {
  border-color: #2563eb;
  background: #dbeafe;
  color: #1d4ed8;
}
.wallet-recharge-custom,
.wallet-recharge-action {
  display: flex;
  align-items: center;
  gap: 10px;
}
.wallet-recharge-custom-label {
  flex: 0 0 auto;
  font-size: 14px;
  color: #606266;
  white-space: nowrap;
}
.wallet-recharge-custom .el-input-number {
  flex: 1 1 180px;
  width: auto;
  max-width: none;
}
.wallet-recharge-action {
  justify-content: flex-start;
}
.wallet-recharge-pays {
  display: flex;
  align-items: center;
  gap: 8px;
}
.wallet-pay-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  color: #606266;
  font-size: 14px;
  font-weight: 650;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.wallet-pay-chip i { font-size: 17px; line-height: 1; }
.wallet-pay-chip:hover {
  border-color: #93c5fd;
  background: #f5faff;
}
.wallet-pay-chip.pay-chip-wechat.active {
  border-color: #07c160;
  background: #edfaf3;
  color: #06ad56;
}
.wallet-pay-chip.pay-chip-alipay.active {
  border-color: #1677ff;
  background: #f0f6ff;
  color: #1677ff;
}
.wallet-recharge-action .el-button {
  flex: 0 0 auto;
  min-width: 108px;
  height: 36px;
}
.wallet-ledger-wrap h3,
.wallet-pending-wrap h3 {
  margin: 0 0 10px;
  font-size: 15px;
  color: #303133;
}
.wallet-pending-wrap { margin-bottom: 16px; }
.wallet-ledger-empty { color: #909399; font-size: 13px; }
.wallet-ledger-more { margin-top: 10px; text-align: center; }
.wallet-plus { color: #2563eb; font-weight: 600; }
.wallet-minus { color: #c45656; font-weight: 600; }
.wallet-short-note { color: #c45656 !important; }
@media (max-width: 900px) {
  .wallet-account-grid { grid-template-columns: 1fr; }
}

.purchase-shop.purchase-compact {
  background: #f8fbff;
}
.purchase-compact .purchase-layout {
  margin: 0;
  padding: 0;
}
.purchase-compact .rent-mgmt-layout {
  padding: 0;
}
.purchase-compact .rent-mgmt-content {
  padding: 0;
  background: transparent;
}
.rent-board-panel {
  min-height: calc(100vh - 120px);
}
.rent-orders-table {
  width: 100%;
}
.rent-orders-table .order-status-col .cell {
  padding-left: 10px;
  padding-right: 6px;
}
.rent-orders-table .order-status-tag {
  max-width: 100%;
  white-space: normal;
  height: auto;
  line-height: 1.35;
  padding: 2px 8px;
  text-align: center;
}

.side-purchase-nav { padding: 8px 10px 12px; }
.side-purchase-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.side-purchase-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: none;
  background: transparent;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 700;
  color: #303133;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, color 0.15s;
}
.side-purchase-menu-item i {
  font-size: 18px;
  color: #909399;
  flex-shrink: 0;
}
.side-purchase-menu-item:hover {
  background: #eff6ff;
  color: #1e40af;
}
.side-purchase-menu-item:hover i { color: #2563eb; }
.side-purchase-menu-item.active {
  background: linear-gradient(90deg, #dbeafe 0%, #f0f7ff 100%);
  color: #1e40af;
  box-shadow: inset 3px 0 0 #2563eb;
}
.side-purchase-menu-item.active i { color: #2563eb; }

/* 续费管理 */
.renew-hub-panel { padding-top: 4px; }
.renew-sub-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.renew-sub-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border: 1px solid #e4e7ed;
  border-radius: 10px;
  background: #fafafa;
  font-size: 15px;
  font-weight: 600;
  color: #606266;
  cursor: pointer;
  transition: all 0.15s;
}
.renew-sub-tab i { font-size: 18px; }
.renew-sub-tab:hover {
  border-color: #d3e5fd;
  background: #eff6ff;
  color: #1e40af;
}
.renew-sub-tab.active {
  border-color: #2563eb;
  background: linear-gradient(135deg, #dbeafe 0%, #f0f7ff 100%);
  color: #1e40af;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.12);
}
.renew-hub-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
}
.renew-hub-empty { margin-top: 24px; }
.renew-group-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.renew-group-block {
  border: 1px solid #e8eeea;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
.renew-group-block.is-collapsed .renew-group-head {
  border-bottom: none;
}
.renew-group-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: linear-gradient(180deg, #f8fbff 0%, #f0f7ff 100%);
  border-bottom: 1px solid #dbeafe;
  cursor: pointer;
  user-select: none;
}
.renew-group-head:hover {
  background: linear-gradient(180deg, #eff6ff 0%, #eaf6ef 100%);
}
.renew-group-chevron {
  font-size: 18px;
  color: #909399;
  flex-shrink: 0;
}
.renew-group-title {
  font-size: 15px;
  font-weight: 700;
  color: #1e40af;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.renew-group-body {
  border-top: 1px solid #dbeafe;
}
.renew-group-table { border: none !important; }
.renew-group-empty {
  margin: 0;
  padding: 14px 16px 16px;
  font-size: 13px;
  color: #909399;
}

/* 帮助 — 左侧导航 */
.side-help-nav .side-purchase-menu-item {
  align-items: flex-start;
  padding: 14px 12px;
}
.side-help-nav-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.side-help-nav-text em {
  font-style: normal;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}
.side-help-nav-text small {
  font-size: 11px;
  font-weight: 400;
  color: #909399;
  line-height: 1.3;
}
.side-purchase-menu-item.active .side-help-nav-text small { color: #60a5fa; }

/* 帮助 — 右侧全屏 */
.help-fullpage {
  flex: 1;
  width: 100%;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  background: linear-gradient(180deg, #eef2f7 0%, #f8fafc 280px, #f4f6f8 100%);
  scrollbar-width: thin;
}
.help-hero {
  position: relative;
  color: #fff;
  padding: 32px 40px 36px;
  overflow: hidden;
}
.help-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, #1e3a5f 0%, #2563eb 40%, #3b82f6 75%, #60a5fa 100%);
}
.help-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 90% 10%, rgba(255,255,255,0.15) 0%, transparent 55%);
}
.help-hero-inner { position: relative; z-index: 1; max-width: 960px; }
.help-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(255,255,255,0.18);
  margin-bottom: 12px;
}
.help-hero-badge i { font-size: 14px; }
.help-hero h1 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.help-hero p {
  margin: 0;
  font-size: 15px;
  opacity: 0.92;
  line-height: 1.6;
}
.help-fullpage--plain {
  background: #f4f6f8;
}
.help-fullpage--plain .help-fullpage-body {
  max-width: none;
  margin: 0;
  padding: 12px 16px 32px;
}
.help-ops-page {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.help-ops-head h2 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
}
.help-ops-head p {
  margin: 0;
  font-size: 13px;
  color: #64748b;
}
.help-ops-page .help-ops-layout {
  grid-template-columns: 1fr;
}
.help-ops-page .help-ops-section:last-child:nth-child(odd) {
  grid-column: auto;
  max-width: none;
}
.help-api-minimal .help-api-doc-card {
  margin-top: 4px;
}
.help-api-minimal .help-api-doc-inner {
  padding: 16px 18px 24px;
}
.api-doc-block-bridge {
  margin: 0 0 16px;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.75;
  color: #475569;
}
.api-doc-block-bridge ul {
  margin: 8px 0 0;
  padding-left: 20px;
}
.api-doc-block-bridge li { margin-bottom: 4px; }
.api-doc-block-bridge .api-doc-hint {
  margin: 10px 0 0;
  font-size: 13px;
  color: #64748b;
}
.help-api-minimal .help-ops-section p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.75;
  color: #475569;
}
.help-api-lead { margin-bottom: 0 !important; }
.help-api-note { font-size: 13px !important; color: #64748b !important; }
.help-api-cmd {
  margin: 8px 0 12px;
  padding: 10px 12px;
  background: #1e293b;
  color: #e2e8f0;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.6;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
}
.api-doc-steps-plain {
  margin: 6px 0 10px;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.7;
  color: #475569;
}
.api-doc-steps-plain li { margin-bottom: 4px; }
.purchase-state-compact {
  padding: 32px 16px;
  text-align: left;
}
.help-api-full--plain .help-api-doc-inner {
  padding: 16px 18px 24px;
}

.help-content-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 900px) {
  .help-content-grid { grid-template-columns: 1fr; }
}

/* 帮助 — 系统使用（单列分区） */
.help-usage-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.help-notice-strip {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 20px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 12px;
  color: #92400e;
}
.help-notice-strip > i {
  font-size: 22px;
  flex-shrink: 0;
  margin-top: 2px;
  color: #d97706;
}
.help-notice-strip ul {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.75;
}
.help-notice-strip li { margin-bottom: 4px; }
.help-section-block {
  background: #fff;
  border-radius: 14px;
  padding: 22px 26px;
  border: 1px solid #e8ecf0;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
}
.help-section-block h2 {
  margin: 0 0 16px;
  font-size: 17px;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 8px;
}
.help-section-block h2 i { color: #2563eb; font-size: 20px; }
.help-section-compact { margin-bottom: 0; }
.help-menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 800px) {
  .help-menu-grid { grid-template-columns: 1fr; }
}
.help-menu-item {
  padding: 14px 16px;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}
.help-menu-item strong {
  display: block;
  font-size: 14px;
  color: #1e293b;
  margin-bottom: 6px;
}
.help-menu-item p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #64748b;
}
.help-flows-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 800px) {
  .help-flows-row { grid-template-columns: 1fr; }
}
.help-flow-block {
  background: #fff;
  border-radius: 14px;
  padding: 22px 24px;
  border: 1px solid #e8ecf0;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
}
.help-flow-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.help-flow-head i {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.help-flow-head.phone i { background: #dbeafe; color: #2563eb; }
.help-flow-head.board i { background: #ffedd5; color: #ea580c; }
.help-flow-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
}
.help-flow-steps {
  margin: 0 0 12px;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.8;
  color: #475569;
}
.help-flow-steps em {
  font-style: normal;
  font-weight: 600;
  color: #334155;
}
.help-expire-hint {
  margin: 0;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.55;
  color: #b45309;
  background: #fffbeb;
  border-radius: 8px;
  border-left: 3px solid #f59e0b;
}
.help-bullet-list {
  margin: 0;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.8;
  color: #475569;
}
.help-bullet-list em {
  font-style: normal;
  font-weight: 600;
  color: #334155;
}

/* 帮助 — 云机操作（分区列表） */
.help-ops-layout {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
@media (max-width: 900px) {
  .help-ops-layout { grid-template-columns: 1fr; }
}
.help-ops-section {
  background: #fff;
  border-radius: 14px;
  padding: 20px 22px;
  border: 1px solid #e8ecf0;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
}
.help-ops-section h3 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 8px;
}
.help-ops-section h3 i {
  font-size: 18px;
  color: #2563eb;
}
.help-ops-section ul {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.75;
  color: #475569;
}
.help-ops-section li { margin-bottom: 6px; }
.help-ops-section:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  max-width: 50%;
}
@media (max-width: 900px) {
  .help-ops-section:last-child:nth-child(odd) { max-width: none; }
}

/* 续费弹窗 */
.renew-dlg-hint {
  margin: 0 0 18px;
  font-size: 14px;
  color: #606266;
}
.renew-dlg-section { margin-bottom: 18px; }
.renew-dlg-label {
  font-size: 13px;
  font-weight: 600;
  color: #303133;
  margin-bottom: 10px;
}
.renew-duration-row { margin-bottom: 0; }
.renew-dlg-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 14px 16px;
  background: #f5faff;
  border: 1px solid #d3e5fd;
  border-radius: 10px;
  margin-bottom: 12px;
}
.renew-dlg-total span {
  font-size: 14px;
  color: #606266;
}
.renew-dlg-total em {
  font-style: normal;
  font-size: 24px;
  font-weight: 700;
  color: #2563eb;
}
.renew-dlg-warn {
  margin: 0 0 12px;
  font-size: 13px;
  color: #e6a23c;
}
.renew-dlg-total-warn em { color: #e6a23c; }
.renew-dlg-note {
  margin: 0;
  font-size: 12px;
  color: #909399;
  line-height: 1.5;
}
.pay-countdown {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  margin-bottom: 12px;
  background: #ecf5ff;
  border: 1px solid #b3d8ff;
  border-radius: 10px;
  font-size: 13px;
  color: #409eff;
  line-height: 1.5;
}
.pay-countdown.urgent {
  background: #fef0f0;
  border-color: #fbc4c4;
  color: #f56c6c;
}
.pay-countdown i { font-size: 18px; flex-shrink: 0; }
.renew-load-err { margin: 16px 0; }
.help-card {
  background: #fff;
  border-radius: 14px;
  padding: 22px 24px;
  border: 1px solid #e8ecf0;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.2s, transform 0.2s;
}
.help-card:hover {
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.1);
  transform: translateY(-2px);
}
.help-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 14px;
}
.help-card h3 {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 700;
  color: #1e293b;
}
.help-card ul {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.75;
  color: #475569;
}
.help-card ul li { margin-bottom: 6px; }
.help-card-warn .help-card-icon { background: #fef3c7; color: #d97706; }
.help-card-phone .help-card-icon { background: #dbeafe; color: #2563eb; }
.help-card-board .help-card-icon { background: #ffedd5; color: #ea580c; }
.help-card-tip .help-card-icon { background: #dbeafe; color: #1d4ed8; }
.help-card-tip { grid-column: 1 / -1; }
.help-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 2px;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}
.help-flow span {
  padding: 4px 10px;
  background: #f1f5f9;
  border-radius: 6px;
}
.help-flow i { color: #94a3b8; font-size: 16px; }
.help-card-note {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: #64748b;
}
.help-card-note strong { color: #dc2626; }

.help-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 1000px) {
  .help-steps-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .help-steps-grid { grid-template-columns: 1fr; }
}
.help-step-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #fff;
  border-radius: 12px;
  padding: 18px 20px;
  border: 1px solid #e8ecf0;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
}
.help-step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.help-step-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #475569;
  padding-top: 4px;
}

.help-api-full { display: flex; flex-direction: column; gap: 20px; }
.help-api-banner { margin-bottom: 0; }
.help-api-doc-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e8ecf0;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}
.help-api-doc-inner {
  max-height: none;
  padding: 20px 24px 32px;
  margin-top: 0;
  border-top: none;
}

.side-purchase-empty { flex: 1; min-height: 40px; }

.purchase-offline-banner {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 24px;
  background: #fff8e6;
  border-bottom: 1px solid #faecd8;
  color: #e6a23c;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.purchase-offline-banner i { font-size: 18px; flex-shrink: 0; }

.purchase-state {
  padding: 64px 24px;
  text-align: center;
  color: #909399;
}
.purchase-state i {
  font-size: 40px;
  color: #f56c6c;
  display: block;
  margin-bottom: 12px;
}
.purchase-state-err p { margin-bottom: 16px; color: #f56c6c; }
.purchase-spinner {
  width: 36px;
  height: 36px;
  margin: 0 auto 14px;
  border: 3px solid #dce8e0;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: purchase-spin 0.8s linear infinite;
}
@keyframes purchase-spin { to { transform: rotate(360deg); } }

.purchase-body {
  max-width: 1200px;
  margin: -20px auto 0;
  padding: 0 24px 48px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
  position: relative;
  z-index: 2;
}

.purchase-section {
  background: #fff;
  border-radius: 14px;
  padding: 22px 24px;
  margin-bottom: 18px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.08);
}
.purchase-section-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 18px;
}
.purchase-section-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #1f2937;
}
.purchase-section-sub {
  font-size: 12px;
  color: #909399;
}

/* 购买页 · 产品线 Tab（安卓×标准版/XP版） */
.purchase-line-tabs {
  margin-bottom: 18px;
}
.purchase-line-tabs .el-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 50%;
  max-width: 520px;
  min-width: 280px;
}
.purchase-line-tabs .el-radio-button {
  flex: 1 1 calc(50% - 4px);
  min-width: 0;
}
.purchase-line-tabs .el-radio-button__inner {
  width: 100%;
  box-sizing: border-box;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1px;
  padding: 10px 12px;
  height: auto;
  min-height: 40px;
  line-height: 1.35;
  border-radius: 14px !important;
  border: 2px solid #dfe8e2 !important;
  background: #fff !important;
  color: #374151 !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
  transition: border-color 0.18s, background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.15s;
}
.purchase-line-tabs .el-radio-button:first-child .el-radio-button__inner,
.purchase-line-tabs .el-radio-button:last-child .el-radio-button__inner {
  border-radius: 14px !important;
}
.purchase-line-tabs .el-radio-button + .el-radio-button .el-radio-button__inner {
  border-left: 2px solid #dfe8e2 !important;
}
.purchase-line-tabs .el-radio-button__original-radio:checked + .el-radio-button__inner {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 55%, #38bdf8 100%) !important;
  border-color: #2563eb !important;
  color: #fff !important;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.32);
  transform: translateY(-1px);
}
.purchase-line-tabs .el-radio-button:not(.is-active) .el-radio-button__inner:hover {
  border-color: #93c5fd !important;
  color: #1d4ed8 !important;
  background: linear-gradient(180deg, #fff 0%, #f0fdf4 100%) !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.12);
}
@media (max-width: 900px) {
  .purchase-line-tabs .el-radio-group {
    width: 100%;
    max-width: none;
  }
  .purchase-line-tabs .el-radio-button {
    flex: 1 1 calc(50% - 4px);
  }
}

.purchase-plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 640px;
}
.plan-specs-wrap {
  flex-wrap: wrap;
}
.plan-specs-wrap span {
  flex: 1 1 45%;
  min-width: 120px;
}
.purchase-machine-card .plan-features li {
  font-size: 12px;
  line-height: 1.55;
}
.purchase-plan-card {
  position: relative;
  border: 2px solid #dbeafe;
  border-radius: 14px;
  padding: 20px 16px 16px;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
  background: linear-gradient(180deg, #fff 0%, #f9fcfa 100%);
}
.purchase-plan-card:hover {
  transform: translateY(-2px);
  border-color: #93c5fd;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.14);
}
.purchase-plan-card.active {
  border-color: #2563eb;
  background: linear-gradient(180deg, #f3fbf6 0%, #dbeafe 100%);
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.22);
}
.purchase-plan-card.hot .plan-badge { background: linear-gradient(90deg, #ff6b35, #ff8f5a); }
.plan-badge {
  position: absolute;
  top: 0;
  right: 14px;
  font-size: 11px;
  color: #fff;
  background: #2563eb;
  padding: 3px 10px;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
}
.plan-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #e8f7ed;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 10px;
}
.purchase-plan-card.active .plan-icon {
  background: #2563eb;
  color: #fff;
}
.plan-name {
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 4px;
}
.plan-sub {
  font-size: 12px;
  color: #909399;
  margin-bottom: 12px;
  min-height: 18px;
}
.plan-board-tag {
  font-size: 12px;
  font-weight: 600;
  color: #2563eb;
  margin: -4px 0 10px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.plan-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.plan-specs span {
  font-size: 12px;
  padding: 5px 10px;
  background: #f0f4f2;
  border-radius: 8px;
  color: #374151;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
}
.plan-specs i { color: #2563eb; font-size: 14px; }
.plan-res {
  font-size: 12px;
  color: #606266;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.plan-res i { color: #909399; }
.plan-price-block {
  margin-bottom: 10px;
}
.plan-price-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 10px;
}
.plan-price {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin-bottom: 8px;
}
.plan-price-from {
  font-size: 11px;
  color: #909399;
  line-height: 1;
}
.plan-price-amount {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
}
.plan-price em {
  font-style: normal;
  font-size: 26px;
  font-weight: 800;
  color: #2563eb;
}
.plan-price-amount small,
.plan-price small {
  font-size: 12px;
  color: #909399;
}
.plan-stock {
  font-size: 11px;
  font-weight: 600;
}
.plan-stock.combined-stock {
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 8px;
  color: #1d4ed8;
  background: #ecfdf5;
  text-align: left;
  line-height: 1.45;
  width: 100%;
  box-sizing: border-box;
}
.plan-stock.combined-stock.zero {
  color: #909399;
  background: #f4f4f5;
}
.plan-stock.dual-stock {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  padding: 0;
  background: transparent;
  border-radius: 0;
}
.plan-stock .stock-line {
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.plan-stock .stock-line.spot {
  color: #2563eb;
  background: #e8f7ed;
}
.plan-stock .stock-line.spot.zero {
  color: #909399;
  background: #f4f4f5;
}
.plan-stock .stock-line.alloc {
  color: #2563eb;
  background: #eff6ff;
}
.plan-stock .stock-line.alloc.zero {
  color: #909399;
  background: #f4f4f5;
}
.plan-stock.empty { color: #f56c6c; background: #fef0f0; }
.plan-features {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: #4b5563;
  line-height: 1.65;
  border-top: 1px dashed #dfe8fb;
  padding-top: 10px;
}
.plan-features li::before {
  content: "✓ ";
  color: #2563eb;
  font-weight: 700;
}

.purchase-duration-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.duration-chip {
  min-width: 80px;
  padding: 12px 18px;
  border: 2px solid #dbeafe;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
}
.duration-chip:hover {
  border-color: #93c5fd;
  background: #f5faff;
}
.duration-chip.active {
  border-color: #2563eb;
  background: #dbeafe;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}
.duration-label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #303133;
}
.duration-chip.active .duration-label { color: #2563eb; }
.duration-off {
  display: block;
  font-size: 10px;
  color: #ff6b35;
  margin-top: 4px;
  font-weight: 700;
}

.purchase-qty-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.purchase-qty-hint { font-size: 13px; color: #909399; }

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.faq-item {
  padding: 16px;
  background: #f8faf9;
  border-radius: 10px;
  border: 1px solid #dbeafe;
}
.faq-item > i {
  font-size: 20px;
  color: #2563eb;
  margin-bottom: 8px;
  display: block;
}
.faq-q {
  font-size: 14px;
  font-weight: 600;
  color: #303133;
  margin-bottom: 6px;
}
.faq-a {
  font-size: 12px;
  color: #606266;
  line-height: 1.65;
}

.purchase-sidebar {
  position: sticky;
  top: 16px;
}
.order-card {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.1);
  border: 1px solid #dfe8fb;
}
.order-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}
.order-card-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}
.order-user {
  font-size: 12px;
  color: #909399;
  padding: 2px 8px;
  background: #f5f7fa;
  border-radius: 4px;
}
.order-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  padding: 10px 0;
  border-bottom: 1px dashed #dbeafe;
  color: #606266;
}
.order-line strong { color: #303133; font-weight: 600; }
.order-line.order-sub { font-size: 12px; color: #909399; }
.order-field {
  padding: 12px 0 10px;
  border-bottom: 1px dashed #dbeafe;
}
.order-field-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 13px;
  color: #606266;
}
.order-field-label strong {
  color: #303133;
  font-weight: 600;
}
.order-field-label em {
  font-style: normal;
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
}
.order-duration-field {
  padding-top: 14px;
}
.order-duration-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.order-card .duration-chip {
  min-width: 0;
  padding: 10px 2px;
  border-radius: 10px;
}
.order-card .duration-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.2px;
  white-space: nowrap;
}
.order-card .duration-off {
  font-size: 9px;
  margin-top: 2px;
}
.order-qty-row {
  display: flex;
}
.order-qty-row .el-input-number {
  width: 100%;
}
.order-qty-hint {
  margin: 8px 0 0;
  font-size: 11px;
  color: #909399;
  line-height: 1.45;
}
.order-pay-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.pay-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  padding: 10px 4px 8px;
  border: 2px solid #dbeafe;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  color: #606266;
  transition: border-color 0.15s, background 0.15s, color 0.15s, box-shadow 0.15s;
}
.pay-chip i {
  font-size: 20px;
  line-height: 1;
}
.pay-chip span {
  font-size: 12px;
  font-weight: 600;
}
.pay-chip:hover {
  border-color: #93c5fd;
  background: #f5faff;
}
.pay-chip.active {
  border-color: #2563eb;
  background: #dbeafe;
  color: #1d4ed8;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}
.pay-chip-wechat.active {
  border-color: #07c160;
  background: #edfaf3;
  color: #06ad56;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.16);
}
.pay-chip-alipay.active {
  border-color: #1677ff;
  background: #f0f6ff;
  color: #1677ff;
  box-shadow: 0 4px 12px rgba(22, 119, 255, 0.14);
}
.order-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 16px 0 18px;
  font-size: 14px;
  color: #303133;
}
.order-total em {
  font-style: normal;
  font-size: 30px;
  font-weight: 800;
  color: #2563eb;
}
.order-submit {
  width: 100%;
  height: 46px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  background: linear-gradient(90deg, #2563eb, #2563eb) !important;
  border: none !important;
  border-radius: 10px !important;
}
.order-submit:hover {
  background: linear-gradient(90deg, #1e40af, #1d4ed8) !important;
}
.order-submit i { margin-right: 6px; font-size: 16px; vertical-align: -2px; }
.order-note {
  margin: 14px 0 0;
  font-size: 11px;
  color: #c0c4cc;
  line-height: 1.55;
  text-align: center;
}

/* 侧栏购买简要说明 */
.side-purchase-brief { padding: 16px 12px; }
.side-purchase-card {
  background: linear-gradient(180deg, #eff6ff 0%, #fff 100%);
  border: 1px solid #eff6ff;
  border-radius: 10px;
  padding: 16px 14px;
  text-align: center;
}
.side-purchase-icon {
  font-size: 32px;
  color: #2563eb;
  display: block;
  margin-bottom: 10px;
}
.side-purchase-card h4 {
  margin: 0 0 8px;
  font-size: 15px;
  color: #303133;
}
.side-purchase-card p {
  margin: 0 0 12px;
  font-size: 12px;
  color: #606266;
  line-height: 1.6;
  text-align: left;
}
.side-purchase-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
  font-size: 12px;
  color: #606266;
  line-height: 1.8;
}
.side-purchase-card li::before {
  content: "• ";
  color: #2563eb;
  font-weight: 700;
}

@media screen and (max-width: 1100px) {
  .purchase-layout { padding: 0 16px 40px; }
  .purchase-layout.has-sidebar { grid-template-columns: 1fr; }
  .purchase-hero-inner { padding: 0 16px; }
  .purchase-plans { grid-template-columns: 1fr; }
  .purchase-sidebar { position: static; }
  .purchase-hero h1 { font-size: 24px; }
}
