/* 智能语音开放平台 - 全局样式 */
* { margin:0; padding:0; box-sizing:border-box; font-family:-apple-system,'Microsoft YaHei',sans-serif; }
body { background:#f0f2f5; min-height:100vh; color:#333; }
/* 布局 */
.layout { display:flex; min-height:100vh; }
.sidebar { width:256px; background:#001529; color:#fff; padding-top:4px; flex-shrink:0; position:fixed; top:0; bottom:0; left:0; z-index:10; overflow-y:auto; }
.sidebar .logo { height:64px; display:flex; align-items:center; padding:0 24px; font-size:16px; font-weight:600; margin-bottom:4px; }
.sidebar .logo span { color:#2F54EB; }
.menu-item { height:40px; line-height:40px; padding:0 16px 0 24px; margin-bottom:8px; cursor:pointer; font-size:14px; color:rgba(255,255,255,.65); transition:.2s; }
.menu-item:hover { color:#fff; background:rgba(255,255,255,.08); }
.menu-item.active { color:#fff; background:#2F54EB; }
.main { flex:1; margin-left:256px; display:flex; flex-direction:column; min-height:100vh; }
.topbar { height:64px; background:#fff; box-shadow:0 1px 4px rgba(0,21,41,.08); padding:0 24px; display:flex; align-items:center; justify-content:flex-end; font-size:13px; color:rgba(0,0,0,.65); flex-shrink:0; position:sticky; top:0; z-index:9; }
.topbar .user-info { display:flex; align-items:center; gap:14px; }
.topbar a { color:#2F54EB; cursor:pointer; }
#page-content { padding:24px; }
/* 卡片 */
.card { background:#fff; border-radius:8px; padding:18px; box-shadow:0 1px 4px rgba(0,0,0,.06); margin-bottom:16px; }
.card-title { font-size:15px; font-weight:600; margin-bottom:14px; color:#222; }
/* 统计卡片 */
.stats-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:14px; margin-bottom:18px; }
.stat-item { background:#fff; border-radius:8px; padding:18px; box-shadow:0 1px 4px rgba(0,0,0,.06); }
.stat-item .num { font-size:26px; font-weight:700; color:#1a73e8; }
.stat-item .label { font-size:12px; color:#888; margin-top:4px; }
/* 表格 */
table { width:100%; border-collapse:collapse; }
th,td { padding:10px 8px; text-align:center; border-bottom:1px solid #eee; font-size:13px; }
th { background:#fafafa; color:#666; font-weight:600; white-space:nowrap; }
tr:hover td { background:#fafcff; }
/* 按钮 */
.btn { background:#1a73e8; color:#fff; border:none; padding:7px 14px; border-radius:5px; cursor:pointer; font-size:13px; }
.btn:hover { opacity:.88; }
.btn:disabled { opacity:.5; cursor:not-allowed; }
.btn-sm { padding:3px 9px; font-size:12px; }
.btn-gray { background:#999; }
.btn-danger { background:#e53935; }
.btn-success { background:#43a047; }
.btn-outline { background:#fff; color:#1a73e8; border:1px solid #1a73e8; }
/* 表单 */
input,select,textarea { padding:8px 10px; border:1px solid #d9d9d9; border-radius:5px; font-size:13px; outline:none; width:100%; }
input:focus,select:focus { border-color:#1a73e8; }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.form-item { margin-bottom:12px; }
.form-item label { display:block; font-size:12px; color:#666; margin-bottom:5px; }
/* 弹窗 */
.modal-mask { position:fixed; inset:0; background:rgba(0,0,0,.45); display:flex; align-items:center; justify-content:center; z-index:99; }
.modal { background:#fff; border-radius:10px; padding:24px; width:92%; max-width:460px; max-height:85vh; overflow-y:auto; }
.modal h3 { margin-bottom:18px; font-size:16px; }
.modal .form-row { display:flex; gap:10px; justify-content:flex-end; margin-top:16px; }
/* 套餐 */
.pkg-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:14px; }
.pkg { border:1px solid #e0e0e0; border-radius:10px; padding:18px; text-align:center; cursor:pointer; transition:.2s; position:relative; }
.pkg:hover { border-color:#1a73e8; box-shadow:0 4px 12px rgba(26,115,232,.15); }
.pkg .pkg-name { font-size:14px; font-weight:600; color:#333; margin-bottom:8px; }
.pkg .pkg-price { font-size:24px; font-weight:700; color:#e53935; margin-bottom:6px; }
.pkg .pkg-quota { font-size:13px; color:#666; }
.pkg .pkg-days { font-size:12px; color:#999; margin-top:4px; }
.pkg.selected { border-color:#1a73e8; background:#f0f6ff; }
/* 图表 */
.bar-row { display:flex; align-items:center; margin-bottom:5px; font-size:12px; }
.bar-row .bar-label { width:90px; text-align:right; margin-right:8px; color:#555; flex-shrink:0; }
.bar-row .bar { height:16px; background:#1a73e8; border-radius:3px; min-width:2px; }
.bar-row .bar-val { margin-left:6px; color:#333; }
.rank-item { display:flex; align-items:center; padding:8px 0; border-bottom:1px solid #f5f5f5; font-size:13px; }
.rank-item .rank { width:28px; height:28px; border-radius:50%; background:#f0f0f0; display:flex; align-items:center; justify-content:center; font-weight:700; margin-right:10px; color:#666; }
.rank-item .rank.top { background:#e53935; color:#fff; }
.rank-item .rank.top2 { background:#ff9800; color:#fff; }
.rank-item .rank.top3 { background:#ffc107; color:#fff; }
.rank-item .rank-name { flex:1; }
.rank-item .rank-val { color:#1a73e8; font-weight:600; }
/* 其他 */
.tab-bar { display:flex; gap:8px; margin-bottom:14px; }
.tab { padding:7px 16px; border-radius:6px; background:#fff; cursor:pointer; font-size:13px; border:1px solid #e0e0e0; }
.tab.active { background:#1a73e8; color:#fff; border-color:#1a73e8; }
.hidden { display:none; }
.page-title { font-size:18px; font-weight:600; margin-bottom:16px; }
.toolbar { display:flex; gap:10px; margin-bottom:14px; align-items:center; }
.toolbar input { width:220px; }
.msg { color:#e53935; font-size:13px; margin-top:8px; }
.msg.ok { color:#43a047; }
.badge { padding:2px 8px; border-radius:10px; font-size:11px; }
.badge-green { background:#e8f5e9; color:#2e7d32; }
.badge-red { background:#fdecea; color:#c62828; }
.badge-blue { background:#e3f2fd; color:#1565c0; }
.badge-orange { background:#fff3e0; color:#e65100; }
.empty { text-align:center; color:#999; padding:30px; font-size:13px; }

/* ============ 购买套餐页（复刻 115.29.195.94 设计语言） ============ */
:root {
  --ref-primary:#526AFF;      /* 主色（tabs 选中 / 卡片选中边框） */
  --ref-btn:#2F54EB;          /* 主按钮 */
  --ref-red:#FF5D5D;          /* 价格 / 强调红 */
  --ref-blue:#0082FF;         /* 应付总额蓝 */
  --ref-text:#3A4354;
  --ref-sub:#818A9F;
  --ref-label:#A5AAB9;
  --ref-border:#DCE2EF;
  --ref-head:#FAFAFA;
  --ref-note:#FFFBF2;
  --ref-strip:#F5F9FF;
}
.pkg-card.el-card { border:none; border-radius:4px; box-shadow:none; }
.pkg-card .el-card__body { padding:24px; }
.pk-tabs .el-tabs__header { margin:0 0 20px; }
.pk-tabs .el-tabs__nav-wrap::after { height:1px; background:var(--ref-border); }
.pk-tabs .el-tabs__item { font-size:14px; height:40px; line-height:40px; color:rgba(0,0,0,.65); }
.pk-tabs .el-tabs__item.is-active { color:var(--ref-primary); }
.pk-tabs .el-tabs__active-bar { height:2px; background-color:var(--ref-primary); }

.pk2-grid { display:flex; flex-wrap:wrap; gap:16px; margin-bottom:24px; }
.pk2 { width:286px; height:110px; box-sizing:border-box; border:1px solid var(--ref-border); border-radius:4px;
  background:#fff; display:flex; flex-direction:column; cursor:pointer; overflow:hidden;
  position:relative; transition:border-color .2s; }
.pk2:hover { border-color:var(--ref-primary); }
.pk2.sel { border-color:var(--ref-primary); }
.pk2.sel::after { content:''; position:absolute; top:0; right:0; width:0; height:0;
  border-top:32px solid var(--ref-primary); border-left:32px solid transparent; }
.pk2.sel::before { content:''; position:absolute; top:6px; right:5px; width:5px; height:9px;
  border:2px solid #fff; border-top:0; border-left:0; transform:rotate(45deg); z-index:2; }
.pk2-head { display:flex; align-items:flex-end; justify-content:space-between; padding:16px 16px 0; gap:10px; }
.pk2-name { font-size:18px; font-weight:700; color:var(--ref-text); line-height:24px;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis; flex:1; }
.pk2-price { font-size:20px; font-weight:700; color:var(--ref-red); line-height:22px; white-space:nowrap; }
.pk2-price i { font-size:14px; font-style:normal; font-weight:700; color:rgba(0,0,0,.65); margin-left:3px; }
.pk2-spec { padding:8px 16px 0; font-size:14px; color:var(--ref-sub); }
.pk2-spec span + span { margin-left:16px; }
.pk2-note { margin-top:auto; background:var(--ref-strip); color:var(--ref-sub); font-size:12px;
  padding:7px 16px; }
.pk2-admin { position:absolute; left:0; bottom:0; width:100%; display:flex; gap:14px; justify-content:flex-end;
  padding:6px 10px; font-size:12px; background:rgba(255,255,255,.94); }
.pk2-admin a { color:var(--ref-primary); cursor:pointer; }
.pk2-admin a.danger { color:var(--ref-red); }
.pk2-custom { background:linear-gradient(135deg,#7CC0F8 0%,#2F6FE0 100%); border:none;
  justify-content:center; padding:18px 16px; }
.pk2-custom:hover { border:none; opacity:.94; }
.pk2-custom::after, .pk2-custom::before { display:none !important; }
.pk2-custom-title { color:#fff; font-size:18px; font-weight:700; line-height:26px; }
.pk2-custom-note { color:#fff; font-size:14px; line-height:22px; margin-top:6px; }
.pk2-add { display:flex; align-items:center; justify-content:center; color:var(--ref-primary);
  font-size:14px; border-style:dashed; }

.pk2-table.el-table { --el-table-border-color:var(--ref-border); --el-table-header-bg-color:var(--ref-head);
  --el-table-header-text-color:rgba(0,0,0,.85); --el-table-text-color:var(--ref-text);
  --el-table-row-hover-bg-color:#F7F9FF; margin-bottom:24px; }
.pk2-table .el-table__cell { text-align:left; font-size:14px; }
.pk2-table th.el-table__cell { font-weight:500; height:44px; }
.pk2-table td.el-table__cell { height:44px; }
.pk2-table .el-table__inner-wrapper::before { display:none; }

.pk2-notice { background:var(--ref-note); border-radius:4px; padding:16px; font-size:12px;
  line-height:20px; color:var(--ref-text); margin-bottom:24px; }
.pk2-notice-title { font-weight:700; }
.pk2-notice .warn { color:var(--ref-red); }

.pk2-sum { width:280px; margin-left:auto; font-size:14px; color:var(--ref-text); }
.pk2-sum-row { display:flex; justify-content:space-between; align-items:center; padding:7px 0; }
.pk2-sum-row .v.gray { color:var(--ref-label); }
.pk2-sum-row.total { margin-top:6px; padding-top:12px; }
.pk2-sum-row .v.big { color:var(--ref-red); font-size:18px; font-weight:700; }
.pk2-sum-btn { margin-top:14px; text-align:right; }
.pk2-sum-btn .el-button { background:var(--ref-btn); border-color:var(--ref-btn); border-radius:2px;
  height:32px; min-width:64px; font-size:14px; }

/* ============ 确认订单信息页（复刻 115.29.195.94 设计语言） ============ */
.pay-card.el-card { border:1px solid var(--ref-border); border-radius:4px; box-shadow:none; }
.pay-card .el-card__body { padding:24px; }
.pay-confirm { padding:4px 0 0; }
.pay-row { display:flex; align-items:center; padding:12px 0; font-size:14px; }
.pay-k { width:110px; color:var(--ref-label); flex-shrink:0; }
.pay-v { color:var(--ref-text); }
.pay-v.red { color:var(--ref-red); }
.pay-total { margin-top:8px; padding-top:20px; }
.pay-total .pay-k { color:var(--ref-text); }
.pay-total-num { color:var(--ref-blue); font-size:18px; font-weight:700; }
.pay-ways-title { font-size:18px; font-weight:700; color:var(--ref-text); margin:28px 0 16px; }
.pay-ways { display:flex; gap:16px; }
.payway { display:inline-flex; align-items:center; gap:8px; border:none; border-radius:4px;
  color:#fff; font-size:14px; height:42px; padding:0 22px; cursor:pointer; transition:.2s; }
.payway:hover { opacity:.92; }
.payway:disabled { opacity:.6; cursor:not-allowed; }
.payway-wechat { background:#24AF41; }
.payway-alipay { background:#009EF2; }
.pay-qr { margin-top:24px; padding:20px; border:1px solid var(--ref-border); border-radius:4px;
  background:#fff; text-align:center; max-width:340px; }
.pay-qr-img { display:inline-block; background:#fff; padding:8px; border:1px solid var(--ref-border); border-radius:4px; }
.pay-qr-img img, .pay-qr-img canvas { display:block; }
.pay-qr-tip { margin-top:12px; font-size:14px; color:var(--ref-text); font-weight:700; }
.pay-qr-line { margin-top:4px; font-size:12px; color:var(--ref-sub); }
.pay-qr-amt { color:var(--ref-red); font-size:14px; }
.pay-qr-wait { margin-top:10px; font-size:12px; color:var(--ref-primary); }
.pay-done { margin-top:20px; padding:12px 16px; border-radius:4px; font-size:14px;
  background:#F2FBF4; color:#24AF41; }
.pay-done.is-expired { background:var(--ref-note); color:#D48806; }
.pay-tips { margin-top:28px; font-size:12px; line-height:19px; color:var(--ref-sub); }
.pay-tips-title { color:var(--ref-sub); }
.pay-actions { margin-top:20px; }

/* ============ 控制台页（复刻 115.29.195.94 控制台） ============ */
.cs-row { display:flex; gap:24px; margin-bottom:24px; align-items:stretch; flex-wrap:wrap; }
.cs-col-8 { flex:1 1 300px; min-width:280px; }
.cs-col-16 { flex:2 1 560px; min-width:320px; }
.cs-card { background:#fff; border:1px solid #e8e8e8; border-radius:2px; padding:24px; }
.cs-card.plain { border:none; }
.cs-title { font-size:16px; font-weight:600; color:rgba(0,0,0,.85); margin-bottom:16px; }
.cs-title.mt { margin-top:24px; }
/* 欢迎横幅（蓝色渐变） */
.cs-welcome { background:linear-gradient(120deg,#2F54EB 0%,#5A87F2 100%); border-radius:4px; padding:16px; color:#fff; margin-bottom:24px; }
.cs-welcome .t1 { font-size:16px; font-weight:600; }
.cs-welcome .t2 { font-size:14px; margin-top:8px; }
.cs-welcome .t3 { font-size:13px; margin-top:4px; opacity:.92; }
/* 接口余量列表 */
.cs-quota { display:flex; align-items:center; padding:12px 0; }
.cs-quota-bar { width:3px; height:16px; border-radius:2px; margin-right:12px; flex-shrink:0; }
.cs-quota-name { font-size:14px; color:rgba(0,0,0,.65); }
.cs-quota-val { margin-left:auto; font-size:14px; color:rgba(0,0,0,.45); }
/* 统计方块 */
.cs-stat-row { display:flex; gap:24px; margin-bottom:24px; }
.cs-stat { flex:1; background:#f0f0f0; border-radius:2px; padding:16px 20px; }
.cs-stat-label { font-size:14px; color:rgba(0,0,0,.65); }
.cs-stat-num { font-size:30px; line-height:1.2; color:rgba(0,0,0,.85); margin-top:8px; }
/* 产品入口 */
.cs-prod { background:#fafafa; border-radius:2px; padding:24px; text-align:center; }
.cs-prod-icon { width:40px; height:40px; border-radius:8px; background:#2F54EB; display:inline-flex; align-items:center; justify-content:center; margin-bottom:10px; }
.cs-prod-name { font-size:14px; color:rgba(0,0,0,.85); }
.cs-prod-desc { font-size:12px; color:rgba(0,0,0,.45); margin-top:4px; line-height:20px; word-break:break-all; }
.cs-actions { text-align:center; margin-top:16px; }
.cs-btn { display:inline-block; background:#2F54EB; color:#fff; border:none; border-radius:28px; height:28px; padding:0 16px; font-size:13px; cursor:pointer; }
.cs-btn:hover { opacity:.9; }
.cs-link { color:#2F54EB; font-size:13px; margin-left:16px; cursor:pointer; }
/* Tab 栏 */
.cs-tabs { display:flex; align-items:center; border-bottom:1px solid #f0f0f0; margin-bottom:24px; }
.cs-tab { padding:16px; font-size:16px; color:rgba(0,0,0,.65); cursor:pointer; border-bottom:2px solid transparent; margin-bottom:-1px; }
.cs-tab.active { color:#526AFF; border-bottom-color:#526AFF; }
/* 图表 */
.cs-chart { position:relative; }
.cs-empty { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; color:rgba(0,0,0,.35); font-size:14px; }
/* 排行榜 */
.cs-rank-item { display:flex; align-items:center; padding:12px 0; font-size:14px; color:rgba(0,0,0,.65); }
.cs-rank-badge { width:24px; height:24px; border-radius:50%; background:#b9bdc7; color:#fff; font-size:12px; display:flex; align-items:center; justify-content:center; margin-right:16px; flex-shrink:0; }
.cs-rank-badge.top { background:#1B2A4A; }
.cs-rank-val { margin-left:16px; color:rgba(0,0,0,.45); }
