/* YY综合业务网 克隆版 — 全局样式（按提取的设计规范原创实现）
   设计令牌来源：原站侦察（配色/尺寸/布局） */
:root {
  --el-blue: #409eff;
  --el-blue-deep: #337bea;
  --ink-1: #1d2939;
  --ink-2: #344054;
  --ink-3: #475467;
  --ink-4: #667085;
  --ink-5: #98a2b3;
  --hairline: rgba(60, 60, 67, .08);
  --hairline-strong: rgba(60, 60, 67, .14);
  --card-grad: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .76));
  --card-shadow: 0 10px 22px rgba(20, 37, 63, .06);
  --page-bg: #f7f9fc;
  --danger: #f56c6c;
  --warn: #e6a23c;
  --ok: #20966b;
  --ios-blue: #007aff;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "PingFang SC", -apple-system, "Helvetica Neue", "Microsoft YaHei", sans-serif;
  color: var(--ink-2);
  background: var(--page-bg);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
.boot-loading { text-align: center; padding: 100px 0; color: var(--ink-5); font-size: 14px; }
a { color: var(--el-blue); text-decoration: none; }
[class^="el-"] { font-family: "element-icons" !important; }
code { background: #f4f5f7; padding: 1px 6px; border-radius: 4px; font-size: 12px; color: var(--ink-3); }

/* ---------- 通用页面骨架 ---------- */
.page-body { max-width: 1280px; margin: 0 auto; padding: 0 20px 48px; }
.page-head {
  font-size: 15px; padding: 15px 4px; font-weight: 700; color: var(--ink-1);
  border-bottom: 1px solid var(--hairline); display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px; margin-bottom: 4px;
}
.page-head .head-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- 指标卡（cloud-metric 风格） ---------- */
.metric-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; padding: 22px 0 4px; }
@media (max-width: 1080px) { .metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.metric-card {
  position: relative; min-height: 64px; padding: 10px 54px 9px 15px;
  border: 1px solid var(--hairline); border-radius: 14px; background: var(--card-grad);
  box-shadow: var(--card-shadow); cursor: default; transition: box-shadow .2s ease, transform .2s ease;
}
.metric-card:hover { box-shadow: 0 12px 26px rgba(20, 37, 63, .1); transform: translateY(-1px); }
.metric-card .metric-value { font-size: 24px; font-weight: 700; color: var(--ink-1); line-height: 1.3; }
.metric-card .metric-label { font-size: 12px; color: var(--ink-5); margin-top: 2px; }
.metric-card .metric-icon {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--el-blue); background: rgba(64, 158, 255, .1);
}
.metric-card.is-online .metric-icon { color: var(--ok); background: rgba(32, 150, 107, .12); }
.metric-card.is-warn .metric-icon { color: var(--warn); background: rgba(230, 162, 60, .14); }
.metric-card.is-danger .metric-icon { color: var(--danger); background: rgba(245, 108, 108, .12); }
.metric-card.is-filtered { outline: 2px solid rgba(64, 158, 255, .35); }

/* ---------- 工具条 ---------- */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 16px 0 4px; }
.toolbar .el-input { width: 300px; }
.toolbar .el-select { width: 130px; }
.toolbar .grow { flex: 1; }

/* ---------- 卡片 ---------- */
.panel-card {
  background: var(--card-grad); border: 1px solid var(--hairline); border-radius: 14px;
  box-shadow: var(--card-shadow); padding: 18px; margin-top: 16px;
}
.panel-card h3 { margin: 0 0 12px; font-size: 15px; color: var(--ink-1); }

/* ---------- 表格容器 ---------- */
.table-card {
  margin-top: 16px; background: var(--card-grad); border: 1px solid var(--hairline);
  border-radius: 14px; box-shadow: var(--card-shadow); overflow: hidden;
}
.table-card .el-table { background: transparent; }
.table-card .el-table th { background: #fafbfd !important; color: var(--ink-4); font-weight: 600; }

/* 状态小标 */
.st-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; padding: 2px 10px; border-radius: 20px; }
.st-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st-tag.on { color: var(--ok); background: rgba(32, 150, 107, .1); }
.st-tag.off { color: var(--ink-5); background: rgba(60, 60, 67, .08); }
.st-tag.warn { color: #d37028; background: rgba(211, 112, 40, .12); }
.st-tag.expired { color: var(--danger); background: rgba(245, 108, 108, .12); }
.st-tag.info { color: var(--el-blue); background: rgba(64, 158, 255, .1); }

/* ---------- 登录页（content.login-page 布局） ---------- */
.login-page {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 16px; background: #fefefd; overflow-x: hidden;
}
/* 登录页选择器统一加 .login-page 前缀提高优先级，
   防止 yy-index.css（原站用户中心样式，同名 .login-wrap/.login-container 类，后加载）劫持登录页布局 */
.login-page .login-wrap {
  display: flex; align-items: flex-start; justify-content: center; gap: 48px; width: 100%; max-width: 1020px; flex-wrap: wrap;
  min-height: 0; padding: 0; box-sizing: border-box; background: transparent;
}
.login-announcement {
  flex: 0 1 460px; width: 100%; min-width: 0; max-width: 460px; padding: 24px; text-align: left;
}
.login-announcement-head { margin-bottom: 28px; }
.login-announcement-icon {
  display: flex; align-items: center; justify-content: center; width: 58px; height: 58px; margin-bottom: 24px;
  border-radius: 18px; background: linear-gradient(135deg, #409eff, #2f7ae5);
  box-shadow: 0 12px 28px rgba(64, 158, 255, .25); color: #fff; font-size: 27px;
}
.login-announcement-head h2 { margin: 0; color: var(--ink-1); font-size: 34px; line-height: 1.25; font-weight: 800; }
.login-announcement-head p { margin: 14px 0 0; color: var(--ink-4); font-size: 15px; line-height: 1.8; }
.login-announcement-body {
  min-width: 0; overflow-wrap: anywhere; background: #fff; border: 1px solid var(--hairline);
  border-radius: 12px; padding: 16px 18px; color: var(--ink-4); font-size: 13px; line-height: 1.8;
  box-shadow: 0 6px 18px rgba(20, 37, 63, .05);
}
.login-announcement-body h3 { color: var(--ink-2); font-size: 14px; margin: 0 0 6px; }
.login-announcement-body ::-webkit-scrollbar { width: 6px; }

.login-page .login-container {
  flex: 0 0 400px; width: 400px; max-width: 100%; margin: 0; background: #fff; border: 1px solid var(--hairline);
  border-radius: 16px; box-shadow: 0 18px 44px rgba(20, 37, 63, .08); padding: 30px 30px 24px; text-align: center; box-sizing: border-box;
}
.login-container .login-title { text-align: center; font-size: 22px; font-weight: 800; color: var(--ink-1); margin-bottom: 4px; }
.login-container .login-subtitle { text-align: center; color: var(--ink-5); font-size: 13px; margin-bottom: 20px; }
.login-actions { display: flex; gap: 8px; margin-bottom: 20px; }
.login-action-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 0; border-radius: 10px; border: 1px solid var(--hairline); background: #fbfcfe;
  color: var(--ink-3); font-size: 14px; cursor: pointer; transition: all .18s ease;
}
.login-action-btn:hover { border-color: rgba(64, 158, 255, .4); color: var(--el-blue); }
.login-action-btn.active {
  background: linear-gradient(135deg, #409eff, #2f7ae5); border-color: transparent; color: #fff;
  box-shadow: 0 8px 18px rgba(64, 158, 255, .28); font-weight: 600;
}
.login-form .el-input { margin-bottom: 14px; }
.login-form .el-input__inner { height: 42px; line-height: 42px; border-radius: 10px; }
.login-page .el-input__inner:focus { border-color: #a0cfff !important; box-shadow: 0 0 0 1px rgba(64, 158, 255, .15) !important; }
.sms-row { display: flex; gap: 8px; }
.sms-row .el-button { flex: none; }
.login-submit { width: 100%; height: 44px; border-radius: 10px; font-size: 15px; font-weight: 600; margin-top: 6px; }
.login-link-row { display: flex; justify-content: center; gap: 18px; margin-top: 14px; font-size: 13px; }
.login-record { margin-top: 18px; text-align: center; color: var(--ink-5); font-size: 12px; }
.login-registration-info { color: var(--ink-4); font-size: 13px; line-height: 1.7; margin-bottom: 12px; }
.login-registration-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; background: #f5f8fc; border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; font-size: 12px; color: var(--ink-4); }
.login-registration-summary strong { display: block; margin-top: 5px; color: #263c55; font-size: 16px; }
.login-initial-loading { padding: 120px 0; text-align: center; color: var(--ink-5); }
@media (max-width: 800px) {
  .login-page .login-wrap { gap: 20px; }
  .login-announcement { flex: none; max-width: none; padding: 20px; }
  .login-announcement-icon { width: 48px; height: 48px; border-radius: 15px; font-size: 24px; }
  .login-announcement-head h2 { font-size: 28px; }
  .login-page .login-container { flex: none; width: 100%; margin: 0; }
}

/* ---------- 播放器面板（index2 · iOS 蓝） ---------- */
.panel-page { background: var(--page-bg); min-height: 100vh; padding-bottom: 60px; }
.panel-head {
  position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline); padding: 0 20px; height: 54px;
  display: flex; align-items: center; gap: 14px;
}
.panel-head .back { color: var(--ios-blue); font-size: 15px; cursor: pointer; display: flex; align-items: center; gap: 4px; }
.panel-head .ph-title { font-size: 16px; font-weight: 700; color: var(--ink-1); flex: 1; text-align: center; }
.panel-head .ph-right { width: 70px; text-align: right; }
.panel-hero {
  background: var(--card-grad); border: 1px solid var(--hairline); border-radius: 16px;
  box-shadow: var(--card-shadow); margin: 16px auto 0; max-width: 960px; padding: 18px;
}
.profile-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.avatar { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, #007aff, #4aa3ff); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; flex: none; }
.profile-name { font-size: 17px; font-weight: 700; color: var(--ink-1); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.profile-meta { font-size: 12px; color: var(--ink-5); margin-top: 4px; }
.profile-actions { flex: 1; display: flex; justify-content: flex-end; gap: 8px; }
.kv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 16px; }
.kv { background: #f8fafd; border: 1px solid var(--hairline); border-radius: 10px; padding: 10px 12px; }
.kv .k { font-size: 12px; color: var(--ink-5); }
.kv .v { font-size: 14px; font-weight: 600; color: var(--ink-2); margin-top: 3px; }
.panel-cols { max-width: 960px; margin: 16px auto 0; display: grid; grid-template-columns: 1fr 340px; gap: 16px; align-items: start; }
@media (max-width: 860px) { .panel-cols { grid-template-columns: 1fr; } }

/* 聊天 */
.chat-box { height: 360px; overflow-y: auto; background: #f7f8fc; border: 1px solid var(--hairline); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.msg { max-width: 78%; padding: 8px 12px; border-radius: 12px; font-size: 13px; line-height: 1.55; word-break: break-all; white-space: pre-wrap; }
.msg.user { align-self: flex-end; background: var(--ios-blue); color: #fff; border-bottom-right-radius: 3px; }
.msg.agent { align-self: flex-start; background: #fff; border: 1px solid var(--hairline); border-bottom-left-radius: 3px; }
.msg.system { align-self: center; background: none; color: var(--ink-5); font-size: 12px; }
.chat-input { display: flex; gap: 8px; margin-top: 10px; }
.chat-meta { font-size: 12px; color: var(--ink-5); margin-bottom: 8px; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--hairline); padding: 12px 2px; }
.faq-item:last-child { border-bottom: none; }
.faq-q { font-weight: 600; color: var(--ink-2); cursor: pointer; display: flex; justify-content: space-between; gap: 10px; }
.faq-a { color: var(--ink-4); font-size: 13px; margin-top: 8px; line-height: 1.7; }

/* ---------- 客服工作台 ---------- */
.svc-layout { display: grid; grid-template-columns: 320px 1fr; gap: 16px; align-items: start; }
@media (max-width: 860px) { .svc-layout { grid-template-columns: 1fr; } }
.queue-item { border: 1px solid var(--hairline); border-radius: 10px; padding: 12px; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; gap: 8px; background: #fff; }
.conv-item { border: 1px solid var(--hairline); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; cursor: pointer; background: #fff; transition: all .15s; }
.conv-item.active, .conv-item:hover { border-color: rgba(64, 158, 255, .45); background: #f6f9ff; }
.conv-item .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); display: inline-block; margin-right: 6px; }
.svc-clock { font-size: 12px; color: var(--ink-5); font-weight: 400; }

/* ---------- 管理后台 ---------- */
.admin-grid { display: grid; grid-template-columns: 210px 1fr; gap: 16px; align-items: start; }
@media (max-width: 860px) { .admin-grid { grid-template-columns: 1fr; } }
.admin-menu { background: #fff; border: 1px solid var(--hairline); border-radius: 14px; box-shadow: var(--card-shadow); padding: 8px; position: sticky; top: 70px; }
.admin-menu a { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-radius: 8px; color: var(--ink-3); margin-bottom: 2px; font-size: 14px; }
.admin-menu a.active, .admin-menu a:hover { background: #eef5ff; color: var(--el-blue); font-weight: 600; }
.admin-menu .badge { background: var(--danger); color: #fff; font-size: 11px; border-radius: 10px; padding: 1px 7px; min-width: 18px; text-align: center; }

/* 更新日志 */
.log-item { border-bottom: 1px solid var(--hairline); padding: 14px 2px; }
.log-item:last-child { border-bottom: none; }
.log-ver { display: inline-block; padding: 1px 10px; border-radius: 6px; background: rgba(64, 158, 255, .1); color: var(--el-blue); font-size: 12px; font-weight: 600; }

/* 时间线 */
.timeline { border-left: 2px solid var(--hairline); margin-left: 8px; padding-left: 16px; }
.tl-item { position: relative; padding: 8px 0; }
.tl-item::before { content: ""; position: absolute; left: -22px; top: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--el-blue); }

/* Toast 顶部安全 */
.el-message { z-index: 3000 !important; }

/* 移动端细节 */
@media (max-width: 640px) {
  .page-body { padding: 0 12px 40px; }
  .toolbar .el-input { width: 100%; }
  .toolbar .el-select { width: 100%; }
  .toolbar .el-button { width: auto; }
}

/* ==================== 播放器云端管理（对齐原站 iOS 管理后台布局） ==================== */
.cloud-admin-page { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; background: #f4f6fb; }
@media (max-width: 900px) { .cloud-admin-page { grid-template-columns: 1fr; } .cloud-sidebar { display: none !important; } }

/* ---- 侧边栏 ---- */
.cloud-sidebar { display: flex; flex-direction: column; background: #fff; border-right: 1px solid rgba(60, 60, 67, .08); padding: 20px 14px; position: sticky; top: 0; height: 100vh; box-sizing: border-box; }
.sidebar-brand { display: flex; align-items: center; gap: 12px; padding: 4px 10px 20px; }
.brand-mark { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 14px; background: linear-gradient(135deg, #409eff, #2f7ae5); color: #fff; font-size: 20px; box-shadow: 0 10px 22px rgba(64, 158, 255, .28); flex-shrink: 0; }
.brand-title { font-size: 16px; font-weight: 800; color: #1d2939; line-height: 1.3; }
.brand-subtitle { font-size: 12px; color: #98a2b3; margin-top: 1px; }
.sidebar-nav { flex: 1; overflow-y: auto; }
.sidebar-nav-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: #475467; font-size: 14px; cursor: pointer; margin-bottom: 2px; transition: all .15s; user-select: none; }
.sidebar-nav-item i:first-child { font-size: 16px; color: #667085; width: 18px; text-align: center; }
.sidebar-nav-item:hover { background: #f2f6ff; color: #337bea; }
.sidebar-nav-item:hover i:first-child { color: #409eff; }
.sidebar-nav-item.is-parent { font-weight: 600; color: #1d2939; }
.sub-arrow { margin-left: auto; font-size: 12px !important; transition: transform .2s; color: #98a2b3 !important; }
.sub-arrow.is-open { transform: rotate(180deg); }
.sidebar-subnav .sidebar-nav-item { padding-left: 30px; font-size: 13px; }
.sidebar-nav-divider { height: 1px; background: rgba(60, 60, 67, .08); margin: 10px 8px; }
.sidebar-footer { font-size: 11px; color: #98a2b3; text-align: center; padding-top: 12px; border-top: 1px solid rgba(60, 60, 67, .08); }

/* ---- 主区与顶栏 ---- */
.cloud-main { display: flex; flex-direction: column; min-width: 0; }
.cloud-topbar { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; padding: 18px 26px; background: #fff; border-bottom: 1px solid rgba(60, 60, 67, .08); }
.topbar-kicker { font-size: 12px; color: #98a2b3; letter-spacing: .04em; }
.topbar-heading { font-size: 21px; font-weight: 800; color: #1d2939; margin-top: 2px; }
.topbar-actions { display: flex; gap: 8px; }
.entry-btn { border-radius: 8px; }
.topbar-credit { display: flex; align-items: center; gap: 8px; padding: 8px 14px; background: #f6f9ff; border: 1px solid rgba(64, 158, 255, .25); border-radius: 12px; }
.credit-label { font-size: 12px; color: #667085; }
.credit-value { font-size: 17px; font-weight: 800; color: #337bea; font-variant-numeric: tabular-nums; }
.topbar-user { display: flex; align-items: center; gap: 8px; margin-left: auto; color: #1d2939; font-size: 14px; font-weight: 600; }
.topbar-user .el-icon-user-solid { color: #409eff; }
.topbar-notice { display: flex; align-items: flex-start; gap: 8px; margin: 14px 26px 0; padding: 10px 14px; background: #fffbeb; border: 1px solid rgba(245, 158, 11, .3); border-radius: 10px; font-size: 13px; color: #92700c; line-height: 1.7; }
.topbar-notice .el-icon-bell { margin-top: 3px; }

.cloud-content { padding: 18px 26px 46px; }
.cloud-card { background: #fff; border: 1px solid rgba(60, 60, 67, .08); border-radius: 16px; box-shadow: 0 10px 22px rgba(16, 24, 40, .05); padding: 20px 22px; }

/* ---- 指标卡（6 色） ---- */
.cloud-metrics { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
@media (max-width: 1200px) { .cloud-metrics { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .cloud-metrics { grid-template-columns: repeat(2, 1fr); } }
.cloud-metric { position: relative; border-radius: 14px; border: 1px solid rgba(60, 60, 67, .08); background: linear-gradient(180deg, #ffffff, #fafbfc); padding: 14px 14px 12px; cursor: pointer; transition: all .18s; overflow: hidden; }
.cloud-metric:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(16, 24, 40, .08); }
.cloud-metric.is-filtered { border-color: rgba(64, 158, 255, .55); box-shadow: 0 0 0 3px rgba(64, 158, 255, .12); }
.metric-icon { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; color: #fff; font-size: 17px; margin-bottom: 10px; }
.cloud-metric.is-blue .metric-icon { background: linear-gradient(135deg, #409eff, #2f7ae5); box-shadow: 0 8px 16px rgba(64, 158, 255, .3); }
.cloud-metric.is-green .metric-icon { background: linear-gradient(135deg, #12b76a, #0e9f5c); box-shadow: 0 8px 16px rgba(18, 183, 106, .28); }
.cloud-metric.is-orange .metric-icon { background: linear-gradient(135deg, #f79009, #e56f00); box-shadow: 0 8px 16px rgba(247, 144, 9, .28); }
.cloud-metric.is-red .metric-icon { background: linear-gradient(135deg, #f04438, #d92d20); box-shadow: 0 8px 16px rgba(240, 68, 56, .28); }
.cloud-metric.is-gray .metric-icon { background: linear-gradient(135deg, #98a2b3, #667085); box-shadow: 0 8px 16px rgba(102, 112, 133, .26); }
.cloud-metric.is-indigo .metric-icon { background: linear-gradient(135deg, #6172f3, #444ce7); box-shadow: 0 8px 16px rgba(97, 114, 243, .3); }
.metric-label { font-size: 12px; color: #667085; }
.metric-value { font-size: 24px; font-weight: 800; color: #1d2939; line-height: 1.25; font-variant-numeric: tabular-nums; }

/* ---- 标签页 / 工具栏 ---- */
.cloud-tabs { margin-top: 6px; }
.cloud-tabs .el-tabs__item { font-size: 15px; font-weight: 600; color: #667085; }
.cloud-tabs .el-tabs__item.is-active { color: #337bea; }
.cloud-admin-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 14px; }
.cloud-admin-toolbar .grow, .grow { flex: 1; }
.cloud-order-export-btn { border: 1px solid rgba(64, 158, 255, .4); color: #337bea; }

/* ---- 状态标签 ---- */
.cloud-status-tag { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 20px; }
.cloud-status-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.cloud-status-tag.is-online { color: #0e9f5c; background: rgba(18, 183, 106, .1); }
.cloud-status-tag.is-creating { color: #1570ef; background: rgba(64, 158, 255, .12); }
.cloud-status-tag.is-offline { color: #b54708; background: rgba(247, 144, 9, .12); }
.cloud-status-tag.is-expiring { color: #d92d20; background: rgba(240, 68, 56, .1); }
.cloud-status-tag.is-expired { color: #475467; background: rgba(102, 112, 133, .14); }

/* ---- 播放器表格单元 ---- */
.player-cell { display: flex; flex-direction: column; line-height: 1.4; }
.player-yy { font-weight: 700; color: #1d2939; font-variant-numeric: tabular-nums; }
.player-nick { font-size: 12px; color: #98a2b3; }
.expire-cell { line-height: 1.45; font-variant-numeric: tabular-nums; }
.expire-sub { font-size: 12px; color: #98a2b3; }
.cloud-empty-state { text-align: center; color: #98a2b3; padding: 34px 0 26px; }
.cloud-empty-state i { font-size: 40px; color: #c2c8d0; }
.cloud-empty-state p { margin: 10px 0 0; font-size: 13px; }

/* ---- 云端数据分区 ---- */
.cloud-section { border: 1px solid rgba(60, 60, 67, .08); border-radius: 14px; padding: 16px 18px 18px; margin-bottom: 18px; background: #fff; }
.section-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.section-title { font-size: 15px; font-weight: 800; color: #1d2939; }
.section-desc { font-size: 12px; color: #98a2b3; }
.channel-keep-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.keep-order-no { font-family: Consolas, Monaco, monospace; font-size: 12px; color: #475467; }
.keep-status-tag { display: inline-block; padding: 1px 9px; border-radius: 999px; background: rgba(18, 183, 106, .1); color: #0e9f5c; font-size: 12px; font-weight: 600; }
.ledger-ref { color: #337bea; cursor: pointer; font-size: 12px; word-break: break-all; }
.ledger-ref:hover { text-decoration: underline; }

/* ---- 管理下拉 ---- */
.index-operation-dropdown-menu .el-dropdown-menu__item { padding: 7px 18px; font-size: 13px; }

/* ==================== 上游开通通道 ==================== */
.upstream-chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; border-radius: 999px; background: rgba(18, 183, 106, .1); color: #0e9f5c; font-size: 12px; font-weight: 700; border: 1px solid rgba(18, 183, 106, .25); }
.upstream-chip i { font-size: 13px; }
.up-tag { display: inline-flex; margin-left: 6px; padding: 0 6px; border-radius: 4px; background: rgba(97, 114, 243, .12); color: #444ce7; font-size: 10px; font-weight: 700; line-height: 16px; vertical-align: middle; }

/* ==================== 后台：套餐管理 / 订单分类管理 ==================== */
.admin-menu-group { padding: 12px 14px 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; color: #98a2b3; text-transform: uppercase; }
.admin-menu-group:not(:first-child) { border-top: 1px solid rgba(60, 60, 67, .07); margin-top: 6px; }

.order-cat-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.order-cat-bar a {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px;
  background: #fff; border: 1px solid rgba(60, 60, 67, .1); color: #475467; font-size: 13px; transition: all .15s;
}
.order-cat-bar a:hover { border-color: rgba(51, 123, 234, .45); color: #337bea; }
.order-cat-bar a.active { background: #eef5ff; border-color: rgba(51, 123, 234, .55); color: #1d63d8; font-weight: 700; }
.order-cat-bar a em { font-style: normal; font-size: 11px; background: rgba(60, 60, 67, .08); color: #667085; border-radius: 999px; padding: 0 6px; min-width: 18px; text-align: center; }
.order-cat-bar a.active em { background: #337bea; color: #fff; }

.order-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid rgba(60, 60, 67, .08); }
.order-toolbar .ot-left { display: flex; align-items: center; color: #1d2939; font-size: 14px; }
.order-toolbar .ot-right { display: flex; align-items: center; gap: 8px; }
.order-no { font-family: Consolas, Monaco, monospace; font-size: 12px; color: #344054; }
.src-tag { display: inline-block; padding: 0 6px; border-radius: 4px; font-size: 10px; font-weight: 700; line-height: 16px; vertical-align: middle; }
.src-tag.up { background: rgba(97, 114, 243, .12); color: #444ce7; }
.src-tag.local { background: rgba(60, 60, 67, .08); color: #667085; }
.order-pager { padding: 12px 16px; display: flex; justify-content: flex-end; }

.plan-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.price { color: #f04438; font-size: 14px; }

.order-dialog-title { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: #1d2939; }
.order-detail-body { padding: 2px 2px 0; }
.order-detail-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 10px; background: #f7f9fc; margin-bottom: 12px; }
.odh-label { font-size: 11px; color: #98a2b3; }
.odh-value { font-size: 14px; color: #1d2939; margin-top: 2px; }
.order-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.od-item { display: flex; flex-direction: column; gap: 3px; padding: 8px 10px; border-radius: 8px; background: #fbfcfe; border: 1px solid rgba(60, 60, 67, .06); }
.od-item.full { grid-column: span 2; }
.od-item span { font-size: 11px; color: #98a2b3; }
.od-item b { font-size: 13px; color: #344054; font-weight: 600; word-break: break-all; }
.order-panel-box { margin-top: 14px; padding: 12px 14px; border-radius: 10px; border: 1px dashed rgba(51, 123, 234, .4); background: #f5f9ff; }
.opb-title { font-size: 13px; font-weight: 700; color: #1d63d8; }
.opb-desc { font-size: 12px; color: #667085; margin-top: 4px; }
.opb-url { font-family: Consolas, Monaco, monospace; font-size: 12px; color: #475467; margin-top: 6px; word-break: break-all; }

.create-order-body { display: flex; flex-direction: column; gap: 10px; }
.co-field { display: flex; flex-direction: column; gap: 5px; }
.co-field label { font-size: 12px; color: #475467; }
.co-hint { font-size: 12px; color: #98a2b3; line-height: 1.6; }
.co-result { margin-top: 4px; padding: 12px; border-radius: 10px; background: #f2fbf6; border: 1px solid rgba(18, 183, 106, .3); }
.cor-title { font-size: 13px; font-weight: 700; color: #0e9f5c; margin-bottom: 6px; }
.cor-line { font-size: 12px; color: #475467; margin-top: 3px; word-break: break-all; }
.cor-url { font-family: Consolas, Monaco, monospace; color: #1d63d8; }
.sync-log { margin-top: 12px; padding: 10px 12px; border-radius: 8px; background: #f7f9fc; font-size: 12px; color: #475467; line-height: 1.9; }
