/* ===== 智简魔方 V10 超现代会员中心响应式样式 (home.css) ===== */
.home-main {
  background: #f8fafc !important;
  padding: 20px 24px !important;
}

.boxyun-dashboard-container {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 1. 用户信息卡片 */
.boxyun-user-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 22px 26px;
  border: 1px solid #edf2f7;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.03);
}

.user-profile-left {
  display: flex;
  align-items: center;
  gap: 22px;
}

.boxyun-avatar-box {
  cursor: pointer;
  flex-shrink: 0;
}

.avatar-penguin-circle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.28);
}

.avatar-text-badge {
  color: #ffffff;
  font-size: 26px;
  font-weight: 800;
}

.user-meta-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.user-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.company-user-name {
  font-size: 19px;
  font-weight: 800;
  color: #0f172a;
}

.user-sub-tag {
  font-size: 13px;
  color: #64748b;
}

.user-role-tag {
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
}

.user-badge-tag.gold {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}

.user-fields-row {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.field-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #475569;
}

.field-label {
  color: #64748b;
}

.field-label i {
  margin-right: 2px;
}

.field-value {
  color: #1e293b;
}

.font-bold {
  font-weight: 700;
}

.field-action {
  color: #2563eb;
  font-size: 12px;
  cursor: pointer;
  margin-left: 4px;
}

.field-action:hover {
  text-decoration: underline;
}

.cert-pill {
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
  cursor: pointer;
}

.cert-pill.certified {
  background: #dbeafe;
  color: #1d4ed8;
}

.cert-pill.uncertified {
  background: #fee2e2;
  color: #dc2626;
}

/* 2. 合规横幅 */
.boxyun-compliance-banner {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.compliance-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ef4444;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

.compliance-content {
  flex: 1;
  font-size: 12.5px;
  line-height: 1.5;
  color: #991b1b;
}

.compliance-title {
  font-weight: 700;
}

.compliance-lang-switch {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.lang-pill-btn {
  border: 1px solid #fca5a5;
  background: #ffffff;
  color: #991b1b;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 4px;
  cursor: pointer;
}

.lang-pill-btn.active {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
}

/* 3. 四色特色快捷卡片 */
.boxyun-top-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.boxyun-feature-card {
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 156px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
}

/* 卡片 1: 余额卡片 */
.balance-privilege-card {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 1px solid #fcd34d;
  color: #78350f;
}

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

.bp-level-badge {
  background: #ef4444;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}

.bp-level-icon {
  font-size: 18px;
  color: #b45309;
}

.bp-balance-line {
  margin-top: 6px;
  font-size: 12.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.bp-balance-line a {
  color: #2563eb;
  cursor: pointer;
}

.bp-amount-display {
  font-size: 26px;
  font-weight: 900;
  color: #451a03;
  margin: 4px 0;
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.bp-amount-display .curr-symbol {
  font-size: 18px;
}

.bp-level-progress {
  font-size: 11.5px;
  color: #92400e;
}

.bp-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.level-status-text {
  font-size: 11.5px;
  color: #92400e;
}

.bp-btn-group {
  display: flex;
  gap: 6px;
}

.btn-pink-buy {
  background: #ec4899;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  text-decoration: none;
}

.btn-boxyun-charge {
  background: #0f172a !important;
  border-color: #0f172a !important;
  color: #ffffff !important;
  padding: 5px 12px !important;
  border-radius: 6px !important;
}

/* 卡片 2: 渐变蓝账号 */
.blue-gradient-card {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
}

.bg-card-header h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}

.bg-card-center-blank {
  flex: 1;
}

.bg-card-footer-actions {
  display: flex;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.action-btn-item {
  color: #ffffff;
  font-size: 12px;
  cursor: pointer;
  text-decoration: none;
}

/* 卡片 3: 深蓝工单 */
.deep-blue-card {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  color: #ffffff;
}

.ticket-mini-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ticket-active-item {
  display: flex;
  gap: 6px;
  font-size: 12px;
  margin-bottom: 4px;
  cursor: pointer;
}

.ticket-card-bottom-link {
  font-size: 12px;
  text-align: right;
  cursor: pointer;
  opacity: 0.85;
}

/* 卡片 4: QQ群卡片 */
.qq-group-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
}

.qq-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.qq-head-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qq-head-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.qq-head-sub {
  font-size: 11px;
  color: #94a3b8;
}

.qq-count {
  font-size: 11.5px;
  color: #2563eb;
  background: #eff6ff;
  padding: 2px 7px;
  border-radius: 4px;
}

.qq-list {
  margin: 12px 0;
}

.qq-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
}

.qq-item:hover {
  background: #f1f5f9;
}

.qq-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  margin-right: 6px;
}

.qq-name {
  font-size: 12px;
  color: #334155;
  font-weight: 600;
}

.qq-no {
  font-family: Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
  color: #0284c7;
  margin-right: 6px;
}

.qq-copy {
  font-size: 11.5px;
  color: #64748b;
}

.qq-card-foot {
  font-size: 11px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* 4. 统计卡片 */
.boxyun-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.boxyun-stat-tile {
  background: #ffffff;
  border-radius: 12px;
  padding: 18px 20px;
  border: 1px solid #edf2f7;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.boxyun-stat-tile:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
}

.tile-title {
  font-size: 13px;
  color: #64748b;
}

.tile-counter-row {
  margin: 4px 0 2px;
}

.counter-num {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
}

.counter-unit {
  font-size: 13px;
  color: #64748b;
  margin-left: 2px;
}

.tile-subtext {
  font-size: 11.5px;
  color: #94a3b8;
}

.stat-circle-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.icon-blue-glow { background: #eff6ff; color: #3b82f6; }
.icon-green-glow { background: #f0fdf4; color: #22c55e; }
.icon-purple-glow { background: #faf5ff; color: #a855f7; }
.icon-amber-glow { background: #fffbeb; color: #f59e0b; }

/* 5. 左右两栏布局 */
.boxyun-main-split-area {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
}

.boxyun-panel {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #edf2f7;
  padding: 20px 22px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.03);
  margin-bottom: 16px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.panel-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.more-link {
  font-size: 12.5px;
  color: #2563eb;
  cursor: pointer;
}

/* 产品表格 */
.boxyun-custom-table {
  width: 100%;
  border-collapse: collapse;
}

.boxyun-custom-table th {
  text-align: left;
  padding: 10px 12px;
  background: #f8fafc;
  color: #64748b;
  font-size: 12.5px;
  font-weight: 600;
  border-bottom: 1px solid #e2e8f0;
}

.boxyun-custom-table td {
  padding: 14px 12px;
  font-size: 13px;
  color: #334155;
  border-bottom: 1px solid #f1f5f9;
}

.hoverable-row {
  cursor: pointer;
  transition: background 0.15s ease;
}

.hoverable-row:hover {
  background: #f8faff;
}

.text-blue { color: #2563eb; font-weight: 600; }
.text-red { color: #ef4444; font-weight: 600; }
.mr-6 { margin-right: 6px; }

.table-empty {
  text-align: center;
  padding: 36px 0;
  color: #94a3b8;
  font-size: 13px;
}

.table-empty i {
  font-size: 32px;
  margin-bottom: 8px;
}

/* 快速工单支持面板 */
.status-green {
  background: #dcfce7;
  color: #16a34a;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
}

.contact-panel-content {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 22px;
  align-items: center;
}

.contact-left-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-brand-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.brand-blue-icon {
  font-size: 20px;
  color: #2563eb;
}

.btn-scan-contact {
  background: #2563eb !important;
  border-color: #2563eb !important;
  font-weight: 600;
}

.btn-record {
  border: 1px dashed #93c5fd;
  color: #2563eb;
  background: #eff6ff;
}

.support-intro-text p {
  font-size: 12.5px;
  color: #475569;
  line-height: 1.6;
  margin: 0 0 6px;
}

.intro-headline {
  font-size: 13.5px !important;
  font-weight: 700;
  color: #0f172a !important;
}

.support-promise-box {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 6px;
  background: #f8fafc;
  color: #0284c7;
  font-size: 12.5px;
  font-weight: 600;
}

/* 公告中心 */
.notice-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
}

.notice-row:hover .notice-title {
  color: #2563eb;
}

.notice-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #3b82f6;
}

.notice-title {
  flex: 1;
  font-size: 13px;
  color: #334155;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notice-date {
  font-size: 12px;
  color: #94a3b8;
}

.notice-empty {
  text-align: center;
  padding: 32px 0;
  color: #94a3b8;
  font-size: 13px;
}

.notice-empty i {
  font-size: 28px;
  margin-bottom: 6px;
}

/* 推介计划 */
.referral-illustration-wrap {
  text-align: center;
  padding: 10px 0;
}

.shopping-person-svg {
  width: 130px;
  height: auto;
}

.referral-status-bar {
  text-align: center;
  margin-top: 10px;
}

.status-tip-text {
  display: block;
  font-size: 12.5px;
  color: #64748b;
  margin-bottom: 8px;
}

.btn-open-ref {
  background: #3b82f6;
  color: #ffffff;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.referral-content-area {
  margin-top: 10px;
}

.referral-stats-line {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: #475569;
  margin-bottom: 8px;
}

.referral-copy-row {
  display: flex;
  gap: 6px;
}

.ref-input {
  flex: 1;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
  color: #334155;
}

.ref-copy-btn {
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 0 12px;
  font-size: 12px;
  cursor: pointer;
}

/* =========================================================
   移动端与平板响应式深度适配 (Mobile & Tablet Breakpoints)
   ========================================================= */

/* 平板中等屏幕 (≤ 1200px) */
@media screen and (max-width: 1200px) {
  .boxyun-top-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .boxyun-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .boxyun-main-split-area {
    grid-template-columns: 1fr;
  }
}

/* 平板竖屏及大屏手机 (≤ 992px) */
@media screen and (max-width: 992px) {
  .home-main {
    padding: 16px !important;
  }
  .contact-panel-content {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* 核心移动端手机设备 (≤ 768px) */
@media screen and (max-width: 768px) {
  .home-main {
    padding: 12px 10px !important;
  }
  .boxyun-dashboard-container {
    gap: 12px;
  }

  /* 1. 用户信息卡片适配 */
  .boxyun-user-card {
    padding: 16px 14px;
    border-radius: 12px;
  }
  .user-profile-left {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
  }
  .avatar-penguin-circle {
    width: 52px;
    height: 52px;
  }
  .avatar-text-badge {
    font-size: 20px;
  }
  .company-user-name {
    font-size: 16px;
  }
  .user-title-row {
    gap: 6px;
  }
  .user-fields-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-top: 4px;
  }
  .field-item {
    font-size: 12px;
    line-height: 1.4;
  }

  /* 2. 合规通知条适配 */
  .boxyun-compliance-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 14px;
    gap: 8px;
    border-radius: 8px;
  }
  .compliance-content {
    font-size: 12px;
    line-height: 1.55;
  }
  .compliance-lang-switch {
    width: 100%;
    justify-content: flex-end;
  }

  /* 3. 四色特色卡片：手机端单列平铺卡片 */
  .boxyun-top-cards-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .boxyun-feature-card {
    padding: 16px;
    min-height: auto;
    border-radius: 12px;
  }
  .bp-amount-display {
    font-size: 24px;
  }

  /* 4. 统计卡片：手机端 2×2 精准四宫格 */
  .boxyun-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .boxyun-stat-tile {
    padding: 14px 12px;
    border-radius: 10px;
  }
  .counter-num {
    font-size: 20px;
  }
  .stat-circle-icon {
    width: 38px;
    height: 38px;
    font-size: 18px;
    border-radius: 8px;
  }

  /* 5. 产品列表与工单面板 */
  .boxyun-panel {
    padding: 16px 14px;
    border-radius: 12px;
    margin-bottom: 12px;
  }
  /* 表格横向平滑触摸滚动，防止列被挤扁 */
  .table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .boxyun-custom-table {
    min-width: 500px;
  }
  .boxyun-custom-table th,
  .boxyun-custom-table td {
    padding: 10px 8px;
    font-size: 12px;
    white-space: nowrap;
  }

  /* 快速工单支持面板 */
  .contact-btn-wrap {
    flex-direction: row;
    gap: 8px;
  }
  .btn-scan-contact,
  .btn-record {
    flex: 1;
    height: 38px !important;
    font-size: 12px !important;
    padding: 0 8px !important;
  }

  /* 6. 弹窗在手机端自适应宽度 */
  .el-dialog.recharge-boxyun-dialog,
  .el-dialog.open-dialog,
  .el-dialog.client-level-dialog {
    width: 92% !important;
    max-width: 480px !important;
    margin-top: 10vh !important;
  }
}

/* 超窄屏手机 (≤ 480px) */
@media screen and (max-width: 480px) {
  .user-profile-left {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .user-title-row {
    justify-content: center;
  }
  .user-fields-row {
    align-items: center;
  }
  .contact-btn-wrap {
    flex-direction: column;
  }
}