/* ============================================================
 * unicom.css —— 号码预约开户 / 团队分销 模块样式（前后台共用）
 * 全部使用 uc- 前缀，避免与商城 / 后台既有类冲突
 * ============================================================ */
.uc-wrap { max-width: 960px; margin: 0 auto; padding: 12px 0 30px; }
.uc-wrap h3.uc-h { font-size: 16px; font-weight: 700; margin: 18px 0 10px; color: #232733; display: flex; align-items: center; gap: 6px; }
.uc-muted { color: #8b95a5; font-size: 12px; }
.uc-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.uc-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.uc-grow { flex: 1; min-width: 0; }

/* 顶部主视觉 */
.uc-hero { border-radius: 16px; padding: 20px; color: #fff; margin-bottom: 14px;
  background: linear-gradient(125deg, #f5333f 0%, #ff7a45 58%, #ff9d5c 100%);
  box-shadow: 0 10px 26px rgba(245, 51, 63, .18); }
.uc-hero h2 { font-size: 21px; margin: 0 0 6px; font-weight: 800; letter-spacing: .5px; }
.uc-hero p { margin: 0; font-size: 12px; opacity: .92; }
.uc-hero-stats { display: flex; gap: 10px; margin-top: 16px; }
.uc-hero-stats > div { flex: 1; background: rgba(255, 255, 255, .16); border-radius: 10px; padding: 10px 12px; }
.uc-hero-stats b { display: block; font-size: 18px; font-weight: 800; }
.uc-hero-stats span { font-size: 11px; opacity: .9; }

/* 卡片 / 面板 */
.uc-card { background: #fff; border: 1px solid #eef0f4; border-radius: 14px; padding: 16px; margin-bottom: 12px;
  box-shadow: 0 2px 10px rgba(30, 40, 80, .04); }
.uc-card.tight { padding: 12px 14px; }
.uc-card h4 { margin: 0 0 12px; font-size: 15px; font-weight: 700; color: #232733; }
.uc-card h4 small { font-weight: 400; color: #8b95a5; font-size: 12px; margin-left: 6px; }

/* 按钮 */
.uc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  border: 1px solid #e3e6ec; background: #fff; color: #3c4353; border-radius: 9px;
  padding: 8px 14px; font-size: 13px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.uc-btn:hover { border-color: #f5333f; color: #f5333f; }
.uc-btn.primary { background: #f5333f; border-color: #f5333f; color: #fff; }
.uc-btn.primary:hover { background: #e02b36; color: #fff; }
.uc-btn.sm { padding: 5px 10px; font-size: 12px; border-radius: 7px; }
.uc-btn.block { width: 100%; }
.uc-btn:disabled, .uc-btn.disabled { opacity: .5; cursor: not-allowed; }
.uc-btn.danger { color: #e0342f; border-color: #f3c9c7; }

/* 表单 */
.uc-field { margin-bottom: 12px; }
.uc-field label { display: block; font-size: 12px; color: #6b7280; margin-bottom: 5px; }
.uc-input, .uc-select, .uc-textarea { width: 100%; box-sizing: border-box; border: 1px solid #e3e6ec;
  border-radius: 9px; padding: 9px 11px; font-size: 14px; background: #fff; color: #232733; outline: none; }
.uc-input:focus, .uc-select:focus, .uc-textarea:focus { border-color: #f5333f; }
.uc-textarea { min-height: 76px; resize: vertical; }
.uc-search { display: flex; gap: 8px; margin-bottom: 12px; }
.uc-search .uc-input { flex: 1; }

/* tabs / chips */
.uc-tabs { display: flex; gap: 4px; border-bottom: 1px solid #eef0f4; margin-bottom: 12px; overflow-x: auto; }
.uc-tabs a { padding: 9px 14px; font-size: 13px; color: #8b95a5; text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; }
.uc-tabs a.on { color: #f5333f; border-bottom-color: #f5333f; font-weight: 700; }
.uc-chips { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 12px; }
.uc-chip { padding: 6px 13px; border-radius: 999px; border: 1px solid #e3e6ec; background: #fff;
  font-size: 12px; color: #5c6270; cursor: pointer; text-decoration: none; }
.uc-chip.on { background: #fff0f1; border-color: #f5333f; color: #f5333f; font-weight: 700; }

/* 号码网格 */
.uc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.uc-num { background: #fff; border: 1px solid #eef0f4; border-radius: 12px; padding: 12px;
  cursor: pointer; transition: .15s; position: relative; text-decoration: none; color: inherit; display: block; }
.uc-num:hover { border-color: #f5333f; transform: translateY(-2px); box-shadow: 0 8px 18px rgba(245, 51, 63, .1); }
.uc-num .no { font-size: 16px; font-weight: 800; letter-spacing: .5px; color: #232733; }
.uc-num .pkg { font-size: 11px; color: #8b95a5; margin-top: 5px; }
.uc-num .price { color: #f5333f; font-size: 13px; font-weight: 700; margin-top: 8px; }
.uc-num .go { font-size: 11px; color: #f5333f; margin-top: 3px; }
.uc-num.off { opacity: .62; }
.uc-num.off .go { color: #9aa0ac; }
.uc-tag { position: absolute; top: 8px; right: 8px; font-size: 10px; padding: 2px 6px;
  border-radius: 5px; background: #fff0f1; color: #f5333f; }

/* 规格选择 */
.uc-specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.uc-spec { border: 1px solid #e3e6ec; border-radius: 11px; padding: 13px 8px; text-align: center; cursor: pointer; }
.uc-spec b { display: block; font-size: 17px; color: #232733; }
.uc-spec span { font-size: 11px; color: #8b95a5; }
.uc-spec.on { border-color: #f5333f; background: #fff6f6; }
.uc-spec.on b { color: #f5333f; }

/* 列表行 */
.uc-list { display: flex; flex-direction: column; }
.uc-item { display: flex; gap: 11px; align-items: center; padding: 11px 0; border-bottom: 1px solid #f2f4f7; }
.uc-item:last-child { border-bottom: 0; }
.uc-avatar { width: 38px; height: 38px; flex: none; border-radius: 50%; background: linear-gradient(135deg, #ff8f7a, #f5333f);
  color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; }
.uc-item .t { font-size: 13px; font-weight: 600; color: #232733; }
.uc-item .s { font-size: 11px; color: #8b95a5; margin-top: 3px; }
.uc-amount { font-size: 15px; font-weight: 800; color: #f5333f; }
.uc-amount.plus { color: #e23b32; }
.uc-amount.minus { color: #17a673; }

/* 徽章 */
.uc-badge { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 6px;
  background: #f2f4f7; color: #6b7280; }
.uc-badge.red { background: #fff0f1; color: #f5333f; }
.uc-badge.green { background: #e8f8f2; color: #17a673; }
.uc-badge.orange { background: #fff4e6; color: #e8871a; }
.uc-badge.blue { background: #eaf3ff; color: #2f7fe0; }

/* 统计格 */
.uc-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.uc-kpi { background: #fff; border: 1px solid #eef0f4; border-radius: 12px; padding: 13px; text-align: center; }
.uc-kpi b { display: block; font-size: 18px; color: #f5333f; font-weight: 800; }
.uc-kpi span { font-size: 11px; color: #8b95a5; }

/* 进度条 */
.uc-prog { height: 7px; border-radius: 99px; background: #f0f2f6; overflow: hidden; margin-top: 6px; }
.uc-prog i { display: block; height: 100%; background: linear-gradient(90deg, #f5333f, #ff9d5c); border-radius: 99px; }

/* 空态 / 提示 */
.uc-empty { text-align: center; padding: 36px 16px; color: #9aa0ac; font-size: 13px; }
.uc-empty b { display: block; font-size: 15px; color: #6b7280; margin-bottom: 6px; }
.uc-note { background: #fff8ec; border: 1px solid #ffe6bd; color: #96631a; border-radius: 10px;
  padding: 10px 13px; font-size: 12px; line-height: 1.7; }
.uc-note.blue { background: #f0f7ff; border-color: #d3e6ff; color: #2b639e; }

/* 表格（后台） */
.uc-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.uc-table th, .uc-table td { padding: 9px 10px; border-bottom: 1px solid #eef0f4; text-align: left; white-space: nowrap; }
.uc-table th { background: #fafbfc; color: #6b7280; font-weight: 600; }
.uc-table td b { color: #232733; }
.uc-table tr:hover td { background: #fcfcfd; }
.uc-scroll { overflow-x: auto; }

/* 导入区 */
.uc-import { border: 1px dashed #cfd6e0; border-radius: 12px; padding: 16px; background: #fafbfd; }
.uc-import .uc-textarea { background: #fff; font-family: Consolas, Monaco, monospace; font-size: 12px; }

@media (max-width: 720px) {
  .uc-grid { grid-template-columns: repeat(2, 1fr); }
  .uc-kpis { grid-template-columns: repeat(2, 1fr); }
  .uc-hero { padding: 16px; }
  .uc-hero h2 { font-size: 18px; }
  .uc-wrap { padding: 10px 0 24px; }
}
@media (max-width: 420px) {
  .uc-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .uc-num { padding: 10px; }
  .uc-num .no { font-size: 14px; }
}

/* ============================================================
 * 号卡选号卡片（参考号卡列表：号码大字 + 归属地|运营商 + 红色角标）
 * 首页模块、/uc 选号页共用
 * ============================================================ */
.uc-card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: #eef0f4;
  border: 1px solid #eef0f4; border-radius: 12px; overflow: hidden; }
.uc-card-cell { position: relative; display: block; background: #fff; padding: 16px 14px 18px;
  text-decoration: none; color: inherit; overflow: hidden; min-height: 84px; transition: background .15s; }
.uc-card-cell:hover { background: #fffaf9; }
.uc-card-cell .no { display: block; font-size: 23px; font-weight: 800; letter-spacing: .4px; color: #3c4250; line-height: 1.15; }
.uc-card-cell .loc { display: block; margin-top: 10px; font-size: 13px; color: #8f96a3; }
.uc-card-cell .price { position: absolute; top: 0; right: 0; min-width: 82px; height: 62px; padding-left: 14px;
  display: flex; align-items: center; justify-content: center; background: #ef2f2d; color: #fff;
  font-style: normal; font-weight: 800; font-size: 16px;
  clip-path: polygon(26% 0, 100% 0, 100% 100%, 0 100%, 12% 76%, 4% 54%, 15% 30%); }
.uc-card-cell.off { opacity: .55; }
.uc-card-cell .sold { position: absolute; right: 10px; bottom: 8px; font-style: normal; font-size: 11px; color: #9aa0ac; }

/* 分类页左侧「号卡预约」入口 */
.cat-side .cat-uc { display: flex; align-items: center; gap: 4px; padding: 14px 8px; font-size: 12.5px; white-space: nowrap;
  color: #f5333f; text-decoration: none; border-top: 1px solid #f2f4f7; }
.cat-side .cat-uc svg { width: 12px; height: 12px; flex: none; }

/* 个人中心「我的预约 / 团队号卡」快捷按钮 */
.me-q2row { display: flex; gap: 10px; padding: 0 14px 14px; }
.me-q2 { flex: 1; display: flex; align-items: center; gap: 7px; padding: 11px 12px; border-radius: 10px;
  background: #fff7f7; border: 1px solid #ffe1e1; color: #f5333f; font-size: 12.5px; text-decoration: none; }
.me-q2 svg { color: #f5333f; }
.me-q2 span { flex: 0 0 auto; }
.me-q2 b { font-size: 14px; margin-left: 2px; }

/* 团队号卡顶部统计（右侧突出当月/近两年总额） */
.uc-team-top { display: flex; gap: 10px; margin-bottom: 12px; }
.uc-team-stat { flex: 1; border-radius: 12px; padding: 12px 14px;
  background: linear-gradient(135deg, #fff3f2, #fff9f5); border: 1px solid #ffe3e0; }
.uc-team-stat b { display: block; font-size: 21px; font-weight: 800; color: #f5333f; line-height: 1.2; }
.uc-team-stat span { font-size: 11px; color: #8b95a5; }
.uc-team-stat.hot { background: linear-gradient(135deg, #f5333f, #ff7a45); border-color: transparent; }
.uc-team-stat.hot b, .uc-team-stat.hot span { color: #fff; }
.uc-item .uc-amount b { display: block; font-size: 15px; }
.uc-item .uc-amount span { display: block; font-size: 11px; font-weight: 400; color: #8b95a5; }

/* 话费透视表（后台 / 前台表格共用） */
.uc-matrix { border-collapse: separate; border-spacing: 0; }
.uc-matrix th, .uc-matrix td { white-space: nowrap; }
.uc-matrix .stick { position: sticky; left: 0; background: #fff; z-index: 2; box-shadow: 1px 0 0 #eef0f4; }
.uc-matrix th.stick { background: #fafbfc; }
.uc-matrix td.zero { color: #c8cdd6; }
.uc-matrix td.sum, .uc-matrix th.sum { font-weight: 800; color: #f5333f; background: #fffaf9; }

@media (max-width: 420px) {
  .uc-card-cell .no { font-size: 19px; }
  .uc-card-cell .price { min-width: 70px; height: 54px; font-size: 14px; }
  .uc-card-cell .loc { font-size: 12px; }
  .uc-team-stat b { font-size: 17px; }
}

/* 按钮在 flex 行里不被压缩，避免文字被挤成两行 */
.uc-row .uc-btn { flex: 0 0 auto; }
