/* ===== 云控制台风格 首页 ===== */
:root {
  --tc-primary: #0058ff;
  --tc-primary-hover: #004bd6;
  --tc-primary-light: #eef5ff;
  --tc-ink: #181c25;
  --tc-muted: #6b778c;
  --tc-bg: #f2f4f7;
  --tc-line: #dfe3eb;
  --tc-success: #00a870;
  --tc-warning: #ff7200;
  --tc-danger: #e34d59;
  --tc-radius: 0;
}

.el-main {
  padding: 0;
}

.main-card.home-console {
  max-width: none;
  margin: 0;
  padding: 0 20px 36px;
  background: var(--tc-bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 13px;
}

/* ---------- 页级 tab 条 ---------- */
.tc-tabs {
  display: flex;
  align-items: center;
  height: 52px;
  margin: 0 -20px 20px;
  padding: 0 20px;
  background: #fff;
  border-bottom: 1px solid var(--tc-line);
}

.tc-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  box-sizing: border-box;
  height: 52px;
  padding: 0 22px;
  line-height: 52px;
  font-size: 13px;
  color: var(--tc-ink);
  cursor: pointer;
  border-right: 1px solid transparent;
  border-left: 1px solid transparent;
  transition: color 0.15s, background 0.15s;
}

.tc-tab i {
  font-size: 15px;
  color: var(--tc-muted);
}

.tc-tab:hover {
  color: var(--tc-primary);
}

.tc-tab:hover i {
  color: var(--tc-primary);
}

.tc-tab.active {
  color: var(--tc-primary);
  font-weight: 600;
  border-right-color: var(--tc-line);
  border-left-color: var(--tc-line);
  border-top: 2px solid var(--tc-primary);
  background: #f4f7fb;
}

.tc-tab.active i {
  color: var(--tc-primary);
}

/* ---------- 公告横条 ---------- */
.tc-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  box-sizing: border-box;
  margin-bottom: 20px;
  padding: 8px 16px;
  background: #e8f2ff;
  border: 1px solid #d2e3ff;
  border-radius: var(--tc-radius);
  font-size: 12px;
  color: var(--tc-ink);
}

.tc-banner-left {
  display: flex;
  align-items: center;
  min-width: 0;
}

.tc-banner-left .el-icon-warning {
  flex-shrink: 0;
  margin-right: 8px;
  font-size: 15px;
  color: var(--tc-primary);
}

.tc-banner-tag {
  flex-shrink: 0;
  font-weight: 600;
}

.tc-banner-text {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  cursor: pointer;
}

.tc-banner-text:hover {
  color: var(--tc-primary);
}

.tc-banner-link {
  flex-shrink: 0;
  margin-left: 12px;
  color: var(--tc-primary);
  cursor: pointer;
}

.tc-banner-close {
  flex-shrink: 0;
  margin-left: 16px;
  color: var(--tc-muted);
  cursor: pointer;
  font-size: 14px;
}

.tc-banner-close:hover {
  color: var(--tc-ink);
}

/* ---------- 双列布局 ---------- */
.tc-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(420px, 1fr);
  align-items: flex-start;
  gap: 18px;
}

.tc-main-col {
  flex: 1;
  min-width: 0;
}

.tc-side-col {
  min-width: 0;
}

/* ---------- 通用面板 ---------- */
.tc-panel {
  box-sizing: border-box;
  margin-bottom: 18px;
  padding: 24px;
  background: #fff;
  border: 1px solid #e5e8ef;
  border-radius: var(--tc-radius);
  box-shadow: none;
}

.tc-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 26px;
  margin-bottom: 18px;
}

.tc-panel-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--tc-ink);
}

.tc-panel-extra {
  font-size: 13px;
  color: var(--tc-primary);
  cursor: pointer;
}

.tc-panel-extra:hover {
  color: var(--tc-primary-hover);
}

.tc-link {
  color: var(--tc-primary);
  cursor: pointer;
}

.tc-link:hover {
  color: var(--tc-primary-hover);
}

/* ---------- 搜索 + 快捷入口 ---------- */
.tc-search-row {
  margin-bottom: 14px;
}

.tc-search-row .el-input__inner {
  height: 46px;
  padding-right: 38px;
  padding-left: 0;
  line-height: 46px;
  border-width: 0 0 1px;
  border-color: #ccd3df;
  border-radius: 0;
  font-size: 12px;
}

.tc-search-row .el-input__inner:focus {
  border-color: var(--tc-primary);
}

.tc-search-row .el-input__suffix {
  right: 2px;
  color: var(--tc-ink);
}

.tc-quick-title {
  margin-bottom: 9px;
  font-size: 12px;
  color: #3d4859;
}

.tc-quick-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.tc-quick-item {
  box-sizing: border-box;
  height: 32px;
  padding: 0 14px;
  overflow: hidden;
  background: #f6f7f9;
  border: 1px solid #f6f7f9;
  border-radius: 0;
  font-size: 12px;
  line-height: 30px;
  color: var(--tc-ink);
  white-space: nowrap;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.tc-quick-item:hover {
  color: var(--tc-primary);
  border-color: #a8c8ff;
  background: #f7faff;
}

/* ---------- 我的资源 ---------- */
.tc-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  min-height: 40px;
  border-bottom: 1px solid var(--tc-line);
  margin-bottom: 0;
}

.tc-section-tabs {
  display: flex;
  align-items: flex-end;
  height: 40px;
}

.tc-section-tab {
  display: inline-block;
  height: 40px;
  box-sizing: border-box;
  padding: 10px 0 9px;
  font-size: 15px;
  font-weight: 600;
  color: var(--tc-ink);
}

.tc-section-help {
  height: 40px;
  padding: 0 2px;
  color: #3d4859;
  font-size: 12px;
  line-height: 40px;
  cursor: pointer;
}

.tc-section-help:hover {
  color: var(--tc-primary);
}

.tc-section-help i {
  margin-right: 4px;
}

.tc-resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-left: 1px solid var(--tc-line);
  border-top: 1px solid var(--tc-line);
  margin-top: -1px;
}

.tc-resource-item {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  min-height: 68px;
  padding: 14px 18px;
  border-right: 1px solid var(--tc-line);
  border-bottom: 1px solid var(--tc-line);
  cursor: pointer;
  transition: background 0.15s;
}

.tc-resource-item:hover {
  background: #f7faff;
}

.tc-resource-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  margin-right: 12px;
  border: 1px solid #d8e7ff;
  border-radius: 50%;
  background: linear-gradient(135deg, #e9f3ff, #f8fbff);
  color: #2d78ea;
  font-size: 16px;
}

.tc-resource-icon.icon-teal,
.tc-resource-icon.icon-cyan {
  color: #1869d7;
  background: linear-gradient(135deg, #edf4ff, #f9fbff);
}

.tc-resource-icon.icon-orange,
.tc-resource-icon.icon-green,
.tc-resource-icon.icon-purple {
  color: #397ce2;
  background: linear-gradient(135deg, #e4efff, #f8fbff);
}

.tc-resource-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 13px;
  color: var(--tc-ink);
}

.tc-resource-num {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  flex-shrink: 0;
  margin-left: 8px;
  font-size: 19px;
  font-weight: 500;
  color: var(--tc-ink);
}

.tc-resource-go {
  font-size: 14px;
  color: var(--tc-muted);
}

/* ---------- 产品列表表格 ---------- */
.tc-product-panel {
  padding-bottom: 18px;
}

.tc-product-groups {
  min-height: 120px;
}

.tc-product-group + .tc-product-group {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--tc-line);
}

.tc-product-group-head,
.tc-product-group-title {
  display: flex;
  align-items: center;
}

.tc-product-group-head {
  justify-content: space-between;
  min-height: 34px;
  margin-bottom: 12px;
}

.tc-product-group-title {
  gap: 9px;
  font-size: 14px;
  color: var(--tc-ink);
}

.tc-product-group-title strong {
  font-weight: 600;
}

.tc-product-group-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid #cfe0ff;
  background: #edf4ff;
  color: var(--tc-primary);
  font-size: 15px;
}

.tc-product-group-icon.panel {
  border-color: #cdeee4;
  background: #ecfaf6;
  color: #008f65;
}

.tc-product-group-count {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  box-sizing: border-box;
  border-radius: 10px;
  background: #f0f2f5;
  color: var(--tc-muted);
  font-size: 12px;
  line-height: 20px;
  text-align: center;
}

.tc-product-table-scroll {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #e5e8ef;
}

.tc-table {
  width: 100%;
  border-collapse: collapse;
}

.tc-product-table {
  min-width: 980px;
  table-layout: fixed;
}

.tc-table thead th {
  height: 44px;
  padding: 0 16px;
  background: #f5f7fa;
  font-size: 12px;
  font-weight: 500;
  color: var(--tc-muted);
  text-align: left;
}

.tc-table tbody td {
  height: 62px;
  padding: 10px 16px;
  border-bottom: 1px solid #edf0f5;
  font-size: 13px;
  color: var(--tc-ink);
  vertical-align: middle;
}

.tc-table tbody tr:last-child td {
  border-bottom: 0;
}

.tc-col-instance {
  width: 238px;
}

.tc-col-region {
  width: 176px;
}

.tc-col-spec {
  width: 215px;
}

.tc-col-billing {
  width: 176px;
}

.tc-col-status {
  width: 105px;
}

.tc-col-action {
  width: 94px;
  text-align: center !important;
}

.tc-table-row {
  cursor: pointer;
  transition: background 0.2s;
}

.tc-table-row:hover {
  background: #f7faff;
}

.tc-td-link {
  color: var(--tc-ink);
}

.tc-product-instance {
  display: flex;
  align-items: center;
  min-width: 0;
}

.tc-product-mark {
  position: relative;
  display: inline-flex;
  flex: 0 0 34px;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-right: 10px;
  border: 1px solid #d6e4ff;
  background: #eff5ff;
  color: var(--tc-primary);
  font-size: 17px;
}

.tc-product-mark.panel {
  border-color: #cdeee4;
  background: #ecfaf6;
  color: #008f65;
}

.tc-product-power-dot {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 8px;
  height: 8px;
  box-sizing: content-box;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #a6adb8;
}

.tc-product-power-dot.tc-status-ok {
  background: var(--tc-success);
}

.tc-product-power-dot.tc-status-off,
.tc-product-power-dot.tc-status-muted {
  background: #8c96a8;
}

.tc-product-power-dot.tc-status-warn {
  background: var(--tc-warning);
}

.tc-product-power-dot.tc-status-danger {
  background: var(--tc-danger);
}

.tc-product-primary,
.tc-product-stack {
  min-width: 0;
}

.tc-product-primary strong,
.tc-product-stack strong {
  display: block;
  overflow: hidden;
  color: var(--tc-ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tc-product-primary p,
.tc-product-stack p {
  overflow: hidden;
  margin: 2px 0 0;
  color: var(--tc-muted);
  font-size: 12px;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tc-product-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tc-product-specs span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  box-sizing: border-box;
  padding: 2px 7px;
  border: 1px solid #dfe5ee;
  background: #f7f9fb;
  color: #526078;
  font-size: 12px;
  line-height: 18px;
  white-space: nowrap;
}

.tc-product-billing p.tc-td-warning,
.tc-td-warning {
  color: var(--tc-warning);
}

.tc-product-billing p.tc-td-danger {
  color: var(--tc-danger);
}

.tc-product-action {
  text-align: center;
}

.tc-product-action .el-button--primary {
  min-width: 56px;
  border-radius: 2px;
  background: var(--tc-primary);
  border-color: var(--tc-primary);
}

.tc-td-muted {
  color: var(--tc-muted);
}

.tc-td-danger {
  color: var(--tc-danger);
}

.tc-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.tc-status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.tc-status-ok {
  color: var(--tc-success);
}

.tc-status-ok .tc-status-dot {
  background: var(--tc-success);
}

.tc-status-warn {
  color: var(--tc-warning);
}

.tc-status-warn .tc-status-dot {
  background: var(--tc-warning);
}

.tc-status-off,
.tc-status-muted {
  color: #68758a;
}

.tc-status-off .tc-status-dot,
.tc-status-muted .tc-status-dot {
  background: #8c96a8;
}

.tc-status-danger {
  color: var(--tc-danger);
}

.tc-status-danger .tc-status-dot {
  background: var(--tc-danger);
}

.tc-empty {
  padding: 48px 0 56px;
  text-align: center;
}

.tc-empty h2 {
  font-size: 18px;
  font-weight: 500;
  color: var(--tc-ink);
}

.tc-empty p {
  margin: 8px 0 16px;
  font-size: 13px;
  color: var(--tc-muted);
}

/* ---------- 公告通知（帮助文档式） ---------- */
.tc-doc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 28px;
}

.tc-doc-item {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 8px;
  border-bottom: 1px solid #edf0f5;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.15s;
}

.tc-doc-item:hover {
  background: #f7faff;
}

.tc-doc-item:hover .tc-doc-title {
  color: var(--tc-primary);
}

.tc-doc-item .el-icon-document {
  flex-shrink: 0;
  margin-right: 8px;
  color: var(--tc-muted);
}

.tc-doc-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 13px;
  color: var(--tc-ink);
}

.tc-doc-date {
  flex-shrink: 0;
  margin-left: 12px;
  font-size: 12px;
  color: var(--tc-muted);
}

/* ---------- 账号卡片 ---------- */
.tc-user-card {
  padding: 26px 28px 20px;
}

.tc-user-top {
  display: flex;
  align-items: center;
  min-height: 64px;
}

.tc-avatar-wrap {
  position: relative;
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
}

.tc-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding-bottom: 10px;
  border-radius: 50%;
  background: #20c477 !important;
  color: #fff;
  font-size: 26px;
  font-weight: 500;
}

/* 主账号角标:嵌在圆形头像底部的深色弧形横带 */
.tc-avatar-badge {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 18px;
  background: rgba(0, 0, 0, 0.24);
  color: #fff;
  font-size: 10px;
  line-height: 17px;
  text-align: center;
}

.tc-user-meta {
  flex: 1;
  min-width: 0;
  margin-left: 18px;
}

.tc-user-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--tc-ink);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  cursor: pointer;
}

.tc-user-name:hover {
  color: var(--tc-primary);
}

.tc-user-id {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--tc-muted);
}

.tc-user-id strong {
  color: #313844;
  font-weight: 400;
}

.tc-user-cert {
  flex-shrink: 0;
  margin-left: 18px;
}

.tc-cert-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 0;
  border-radius: 0;
  font-size: 12px;
}

.tc-cert-ok {
  color: var(--tc-success);
  background: transparent;
}

.tc-cert-no {
  color: var(--tc-warning);
  background: transparent;
  cursor: pointer;
}

.tc-user-rows {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  margin-top: 16px;
  padding-top: 10px;
  border-top: 1px solid #edf0f5;
}

.tc-user-row {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 6px 0;
  font-size: 12px;
}

.tc-user-label {
  flex-shrink: 0;
  color: var(--tc-muted);
}

.tc-user-value {
  min-width: 0;
  margin-left: 12px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--tc-ink);
}

/* ---------- 费用信息 ---------- */
.tc-home-fee-card {
  width: 100%;
  padding: 26px 28px 30px;
}

.tc-fee-head {
  align-items: flex-start;
  margin-bottom: 24px;
}

.tc-fee-nav {
  display: flex;
  align-items: center;
  min-width: 0;
}

.tc-fee-nav span {
  position: relative;
  padding: 0 10px;
  color: #313844;
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
}

.tc-fee-nav span + span::before {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 0;
  width: 1px;
  background: #dfe3eb;
  content: "";
}

.tc-fee-nav span:hover {
  color: var(--tc-primary);
}

.tc-balance-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tc-balance-label {
  font-size: 12px;
  color: #3d4859;
}

.tc-balance-num {
  margin-top: 8px;
  font-size: 32px;
  font-weight: 500;
  color: var(--tc-ink);
  line-height: 1.2;
  word-break: break-all;
}

.tc-recharge-btn.el-button {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  height: 40px;
  margin-left: 16px;
  padding: 0 26px;
  background: var(--tc-primary);
  border: 1px solid var(--tc-primary);
  border-radius: 0;
  box-shadow: none;
  color: #fff;
  font-size: 13px;
  font-weight: 400;
  line-height: 38px;
}

.tc-recharge-btn.el-button:hover,
.tc-recharge-btn.el-button:focus {
  background: var(--tc-primary-hover);
  border-color: var(--tc-primary-hover);
  color: #fff;
}

.tc-recharge-btn.el-button:active {
  background: #003eb3;
  border-color: #003eb3;
  color: #fff;
}

.tc-fee-recommend {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  min-height: 40px;
  margin-top: 22px;
  padding: 8px 12px;
  border: 1px solid var(--tc-line);
  color: #313844;
  font-size: 12px;
  cursor: pointer;
}

.tc-fee-recommend-tag {
  flex-shrink: 0;
  margin-right: 8px;
  padding: 2px 7px;
  background: #edf4ff;
  color: var(--tc-primary);
}

.tc-fee-recommend > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}

.tc-fee-recommend i {
  flex-shrink: 0;
  margin-left: 12px;
  color: var(--tc-muted);
}

.tc-fee-boxes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.tc-fee-box {
  box-sizing: border-box;
  min-height: 88px;
  padding: 18px 20px;
  background: #f5f7fa;
  border-radius: 0;
}

.tc-fee-box-label {
  font-size: 12px;
  color: var(--tc-muted);
}

.tc-fee-box-num {
  margin-top: 9px;
  font-size: 22px;
  font-weight: 500;
  color: var(--tc-ink);
  word-break: break-all;
}

.tc-percent-up {
  display: inline-block;
  margin-left: 4px;
  padding: 0 4px;
  border-radius: 3px;
  background: rgba(10, 191, 91, 0.1);
  color: var(--tc-success);
  font-size: 12px;
  font-weight: 400;
}

.tc-percent-down {
  display: inline-block;
  margin-left: 4px;
  padding: 0 4px;
  border-radius: 3px;
  background: rgba(240, 20, 46, 0.08);
  color: var(--tc-danger);
  font-size: 12px;
  font-weight: 400;
}

.tc-fee-links {
  margin-top: 20px;
}

.tc-fee-link-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  box-sizing: border-box;
  margin-top: 10px;
  padding: 10px 16px 10px 22px;
  border: 1px solid var(--tc-line);
  font-size: 12px;
}

.tc-fee-link-row::before {
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 12px;
  width: 2px;
  background: var(--tc-warning);
  content: "";
}

.tc-fee-link-row.is-empty::before {
  background: #c9ced8;
}

.tc-fee-link-label {
  color: var(--tc-ink);
}

.tc-fee-link-label em {
  font-style: normal;
  color: var(--tc-warning);
}

.tc-fee-link-row.is-empty .tc-fee-link-label em,
.tc-fee-link-empty {
  color: var(--tc-muted);
}

.tc-fee-link-row .tc-link,
.tc-fee-link-row .tc-link:hover {
  color: var(--tc-warning);
}

/* ---------- 最近工单 ---------- */
.tc-ticket-list {
  margin-top: -6px;
}

.tc-ticket-item {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 6px 8px;
  border-bottom: 1px solid #edf0f5;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.15s;
}

.tc-ticket-item:hover {
  background: #f7faff;
}

.tc-ticket-status {
  flex-shrink: 0;
  margin-right: 10px;
  padding: 2px 7px;
  border-radius: 0;
  font-size: 12px;
  color: #fff;
}

.tc-ticket-info {
  flex: 1;
  min-width: 0;
}

.tc-ticket-title {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 13px;
  color: var(--tc-ink);
}

.tc-ticket-name {
  margin-top: 2px;
  font-size: 12px;
  color: var(--tc-muted);
}

.tc-ticket-arrow {
  flex-shrink: 0;
  margin-left: 8px;
  color: var(--tc-muted);
  font-size: 12px;
}

/* ---------- 推介计划 ---------- */
.tc-referral-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.tc-referral-stat {
  box-sizing: border-box;
  padding: 12px 14px;
  background: #f5f7fa;
  border-radius: 0;
}

.tc-referral-num {
  font-size: 18px;
  font-weight: 600;
  color: var(--tc-ink);
  word-break: break-all;
}

.tc-referral-label {
  margin-top: 4px;
  font-size: 12px;
  color: var(--tc-muted);
}

.tc-referral-url {
  display: flex;
  align-items: center;
  margin-top: 12px;
  border: 1px solid var(--tc-line);
  border-radius: 0;
  overflow: hidden;
}

.tc-referral-url-text {
  flex: 1;
  min-width: 0;
  padding: 0 12px;
  height: 36px;
  line-height: 36px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 13px;
  color: var(--tc-muted);
}

.tc-referral-copy {
  flex-shrink: 0;
  padding: 0 16px;
  height: 36px;
  line-height: 36px;
  background: var(--tc-primary-light);
  border-left: 1px solid var(--tc-line);
  font-size: 13px;
  color: var(--tc-primary);
  cursor: pointer;
}

.tc-referral-copy:hover {
  background: #d8e8ff;
}

.tc-referral-closed {
  text-align: center;
}

.tc-referral-closed img {
  width: 180px;
  height: 118px;
  object-fit: contain;
}

.tc-referral-closed h2 {
  margin-top: 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--tc-ink);
}

.tc-referral-closed p {
  margin: 6px 0 14px;
  font-size: 13px;
  color: var(--tc-muted);
}

.tc-referral-tip {
  margin-top: 10px;
  padding: 8px 0;
  background: #f7f8fa;
  border-radius: 3px;
  font-size: 13px;
  color: var(--tc-muted);
}

/* ---------- 充值弹窗（沿用原有结构） ---------- */
.cz-dialog .el-dialog__body {
  padding: 0.3rem 0.8rem;
}

.dialog-form {
  display: flex;
  flex-direction: column;
}

.cz-input {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.cz-input>.btn-ok {
  margin-left: 0.1rem;
  height: 0.46rem;
  background: var(--tc-primary);
  border-radius: 3px;
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pay-html {
  display: flex;
  justify-content: center;
}

.pay-html>img {
  width: 2.5rem;
  height: 2.5rem;
}

.ty-select {
  width: 100%;
}

.open-dialog {
  font-size: 16px;
}

.open-dialog .dialog-footer {
  font-size: 0.16rem;
}

.open-dialog .dialog-footer .btn-ok {
  width: 1.12rem;
  height: 0.46rem;
  background: var(--tc-primary);
  border-radius: 3px;
  color: #FFF;
}

.open-dialog .dialog-footer .btn-no {
  width: 1.12rem;
  height: 0.46rem;
  background: #E7E7E7;
  border-radius: 3px;
  color: var(--tc-ink);
}

/* ---------- 移动端 ---------- */
@media screen and (max-width: 750px) {
  .main-card.home-console {
    padding: 0 12px 90px;
  }

  .tc-tabs {
    margin: 0 -12px 12px;
    padding: 0 6px;
    overflow-x: auto;
  }

  .tc-tab {
    flex-shrink: 0;
    padding: 0 12px;
    height: 42px;
    line-height: 42px;
    font-size: 13px;
  }

  .tc-layout {
    display: block;
  }

  .tc-side-col {
    width: 100%;
  }

  .tc-panel {
    margin-bottom: 12px;
    padding: 16px;
  }

  .tc-quick-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tc-resource-grid {
    grid-template-columns: 1fr;
  }

  .tc-resource-item {
    min-height: 60px;
  }

  .tc-doc-grid {
    grid-template-columns: 1fr;
  }

  .tc-user-card,
  .tc-home-fee-card {
    padding: 18px 16px;
  }

  .tc-user-rows {
    grid-template-columns: 1fr;
  }

  .tc-user-cert {
    margin-left: 10px;
  }

  .tc-fee-head {
    display: block;
  }

  .tc-fee-nav {
    margin: 12px -8px 0;
    overflow-x: auto;
  }

  .tc-fee-nav span {
    flex-shrink: 0;
  }

  .tc-fee-boxes {
    grid-template-columns: 1fr;
  }

  .tc-product-panel {
    padding: 16px 12px;
  }

  .tc-product-group + .tc-product-group {
    margin-top: 18px;
    padding-top: 18px;
  }

  .tc-product-group-head {
    margin-bottom: 10px;
  }

  .tc-product-table {
    min-width: 940px;
  }

  .tc-balance-num {
    font-size: 24px;
  }

  .tc-recharge-btn.el-button {
    min-width: 88px;
    padding: 0 18px;
  }
}

@media screen and (min-width: 751px) and (max-width: 1080px) {
  .tc-layout {
    grid-template-columns: 1fr;
  }

  .tc-user-rows {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.rp-home-panel { padding: 20px; background: #fff; border-radius: 4px; margin-bottom: 16px; }
.tc-account-points {
  margin-top: 20px;
  min-width: 0;
}

.tc-account-points-label {
  color: #3d4859;
  font-size: 12px;
  line-height: 20px;
}

.tc-account-points-value {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin-top: 4px;
}

.tc-account-points-num {
  min-width: 0;
  color: #181c25;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.tc-account-points-approx {
  min-width: 0;
  color: #6b778c;
  font-size: 12px;
  line-height: 20px;
  overflow-wrap: anywhere;
}
.rp-home-panel .tc-referral-stats { display:flex; gap:24px; padding:16px 0; }
.rp-home-panel strong { font-size:22px; overflow-wrap:anywhere; }
.rp-home-panel p { color:#697386; margin:8px 0; }
