/* ==========================================================================
   盒子云高保真会员中心主样式表 (1:1 参考图1视觉风格)
   特点：蓝白科技质感、大圆角白底阴影卡片、多彩徽章、精美数据指标方块
   ========================================================================== */

:root {
  --boxyun-bg: #f4f6fb;
  --boxyun-card-bg: #ffffff;
  --boxyun-primary-blue: #2f65f6;
  --boxyun-deep-blue: #1e4fd6;
  --boxyun-text-main: #1e293b;
  --boxyun-text-muted: #64748b;
  --boxyun-text-light: #94a3b8;
  --boxyun-border: #edf2f7;
  --boxyun-radius: 12px;
}

.el-main.home-main {
  padding: 0 !important;
  background-color: var(--boxyun-bg);
  min-height: calc(100vh - 40px);
}

.boxyun-dashboard-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 24px;
  box-sizing: border-box;
}

/* ==========================================================================
   1. 顶部用户信息卡片 (图1顶部通栏)
   ========================================================================== */
.boxyun-user-card {
  background: #ffffff;
  border-radius: var(--boxyun-radius);
  padding: 24px 32px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--boxyun-border);
}

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

.avatar-penguin-circle {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 3px solid #e0e7ff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s;
}

.avatar-penguin-circle:hover {
  transform: scale(1.05);
}

.penguin-svg {
  width: 68px;
  height: 68px;
}

.user-meta-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

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

.user-role-tag {
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}

.user-badge-tag.gold {
  background: #ff4d4f;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
}

.user-fields-row {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 13px;
  color: #475569;
}

.field-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

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

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

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

.field-action {
  color: #2563eb;
  cursor: pointer;
  margin-left: 4px;
  text-decoration: none;
}

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

.cert-pill {
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.cert-pill.certified {
  background: #3b82f6;
  color: #ffffff;
}

.cert-pill.uncertified {
  background: #e2e8f0;
  color: #64748b;
  cursor: pointer;
}

.cert-pill.company-pill {
  background: #3b82f6;
  color: #ffffff;
  margin-left: 6px;
}

/* ==========================================================================
   1.5 商务红色系合规卡片公告 (新增于中排卡片上方)
   ========================================================================== */
.boxyun-compliance-banner {
  background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 50%, #fecdd3 100%);
  border: 1px solid #fecdd3;
  border-left: 5px solid #e11d48;
  border-radius: var(--boxyun-radius);
  padding: 14px 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(225, 29, 72, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: all 0.2s ease;
}

.boxyun-compliance-banner:hover {
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.12);
  border-left-color: #be123c;
}

.compliance-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e11d48;
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(225, 29, 72, 0.25);
}

.compliance-badge i {
  font-size: 14px;
}

.compliance-content {
  flex: 1;
  font-size: 13px;
  line-height: 1.6;
  color: #881337;
  text-align: left;
}

.compliance-title {
  font-weight: 800;
  color: #9f1239;
  margin-right: 6px;
}

.compliance-text {
  font-weight: 500;
  color: #4c0519;
}

.compliance-lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.85);
  padding: 3px;
  border-radius: 6px;
  border: 1px solid #fda4af;
  white-space: nowrap;
}

.lang-pill-btn {
  border: none;
  background: transparent;
  color: #9f1239;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.2;
}

.lang-pill-btn:hover {
  color: #e11d48;
  background: #fff1f2;
}

.lang-pill-btn.active {
  background: #e11d48;
  color: #ffffff;
  box-shadow: 0 1px 4px rgba(225, 29, 72, 0.3);
}

/* ==========================================================================
   2. 四张并排特色卡片 (图1中排)
   ========================================================================== */
.boxyun-top-cards-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.boxyun-feature-card {
  border-radius: var(--boxyun-radius);
  padding: 20px 24px;
  min-height: 160px;
  box-sizing: border-box;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* 卡片 1: 余额卡片 (土豪金风格：奢华香槟金/流金质感，文字黑色加粗) */
.balance-privilege-card {
  background: linear-gradient(135deg, #fff3cf 0%, #f9e295 40%, #edd17d 70%, #f6deb0 100%);
  border: 1px solid #d4af37;
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.22), inset 0 1px 1px rgba(255, 255, 255, 0.7);
  position: relative;
  overflow: hidden;
}

.balance-privilege-card::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 70%);
  transform: rotate(25deg);
  pointer-events: none;
}

.bp-balance-line {
  font-size: 14px;
  font-weight: 700;
  color: #000000;
  margin-top: 4px;
}

.bp-balance-line .bal-label {
  color: #000000 !important;
  font-weight: 800 !important;
}

.bp-balance-line .remind-link {
  color: #1a1a1a;
  font-weight: 700;
  cursor: pointer;
  margin-left: 6px;
  text-decoration: underline;
  opacity: 0.85;
}

.bp-balance-line .remind-link:hover {
  opacity: 1;
  color: #000000;
}

.bp-amount-display {
  font-size: 18px;
  font-weight: 800;
  color: #000000;
}

.bp-amount-display .curr-symbol {
  font-size: 15px;
  font-weight: 800;
  color: #000000 !important;
}

.bp-amount-display .amount-val {
  font-size: 30px;
  font-weight: 900;
  color: #000000 !important;
  letter-spacing: -0.5px;
}

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

.level-status-text {
  font-size: 13px;
  font-weight: 700;
  color: #000000 !important;
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-boxyun-charge {
  background: linear-gradient(135deg, #18181b 0%, #09090b 100%) !important;
  border: 1px solid #3f3f46 !important;
  color: #fbbf24 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  border-radius: 6px;
  padding: 6px 18px;
  font-weight: 800 !important;
  letter-spacing: 1px;
  transition: all 0.2s ease;
}

.btn-boxyun-charge:hover {
  background: #000000 !important;
  color: #fde047 !important;
  border-color: #d4af37 !important;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.35);
  transform: translateY(-1px);
}

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

.bg-card-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  color: #ffffff;
}

.bg-card-footer-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.bg-card-footer-actions .action-btn-item {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: opacity 0.2s;
}

.bg-card-footer-actions .action-btn-item:hover {
  opacity: 1;
  color: #ffffff;
  text-decoration: underline;
}

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

.ticket-mini-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.ticket-mini-item {
  display: flex;
  align-items: center;
  font-size: 12px;
  color: #ffffff;
  gap: 8px;
}

.status-tag-yellow {
  background: #eab308;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
}

.ticket-no-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticket-time-text {
  color: rgba(255, 255, 255, 0.8);
}

.ticket-card-bottom-link {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  text-align: right;
  margin-top: 6px;
}

/* 卡片 4: 最新动态 (灰白) */
.notice-feed-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
}

.notice-card-header {
  display: flex;
  height: 100%;
  gap: 16px;
}

.header-left-feed {
  width: 70px;
  border-right: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.feed-tit {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.feed-all-link {
  font-size: 11px;
  color: #2563eb;
  cursor: pointer;
}

.header-right-article {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.article-badge-title {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 4px;
}

.gold-crown {
  color: #f59e0b;
}

.article-cat {
  font-size: 12px;
  color: #64748b;
}

.article-date {
  font-size: 11px;
  color: #94a3b8;
}

/* ==========================================================================
   3. 四个统计数据方块 (图1中下部横排)
   ========================================================================== */
.boxyun-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.boxyun-stat-tile {
  background: #ffffff;
  border-radius: var(--boxyun-radius);
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  border: 1px solid var(--boxyun-border);
  cursor: pointer;
  transition: all 0.2s;
}

.boxyun-stat-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.tile-title {
  font-size: 15px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 12px;
}

.tile-counter-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 8px;
}

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

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

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

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

.icon-avatar-bg.blue-soft {
  background: #eff6ff;
  color: #3b82f6;
}

.icon-avatar-bg.blue-bright {
  background: #2563eb;
  color: #ffffff;
}

/* ==========================================================================
   4. 下半部分主工作区分栏 (图1底栏)
   ========================================================================== */
.boxyun-main-split-area {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

.split-left-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.boxyun-panel {
  background: #ffffff;
  border-radius: var(--boxyun-radius);
  border: 1px solid var(--boxyun-border);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  overflow: hidden;
}

.panel-header {
  padding: 18px 24px;
  border-bottom: 1px solid #f1f5f9;
}

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

/* 自定义产品表格 */
.boxyun-custom-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.boxyun-custom-table thead tr {
  background: #f1f5f9;
}

.boxyun-custom-table th {
  padding: 12px 24px;
  text-align: left;
  font-weight: 600;
  color: #475569;
  border-bottom: 1px solid #e2e8f0;
}

.boxyun-custom-table td {
  padding: 14px 24px;
  color: #334155;
  border-bottom: 1px solid #f8fafc;
}

.boxyun-custom-table tr.hoverable-row:hover {
  background: #f8fafc;
  cursor: pointer;
}

.col-name.text-blue {
  color: #2563eb;
  font-weight: 600;
}

.col-due.text-red {
  color: #ef4444;
  font-weight: 600;
}

.col-due.text-orange {
  color: #d97706;
  font-weight: 600;
}

/* 联系我们卡片 (图1左下) */
.contact-panel-content {
  padding: 24px 32px;
  display: flex;
  gap: 48px;
}

.contact-left-block {
  width: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

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

.btn-scan-contact {
  background: #eff6ff !important;
  color: #2563eb !important;
  border-color: #bfdbfe !important;
  font-size: 12px;
  font-weight: 600;
  width: 100%;
}

.qr-sublabel {
  font-size: 11px;
  color: #94a3b8;
  text-align: center;
  margin-top: 6px;
}

.contact-right-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.support-intro-text p {
  margin: 0 0 6px 0;
  font-size: 13px;
  color: #475569;
}

.support-promise-box {
  background: #f8fafc;
  border-radius: 8px;
  padding: 14px 18px;
  border-left: 3px solid #2563eb;
}

.promise-header-title {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 4px;
}

.promise-detail {
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
}

/* 右侧推介返利购物人插画卡片 (图1右下) */
.referral-promo-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  height: 100%;
  box-sizing: border-box;
}

.referral-illustration-wrap {
  width: 100%;
  max-width: 260px;
  margin: 20px auto 40px auto;
}

.shopping-person-svg {
  width: 100%;
  height: auto;
}

.referral-status-bar {
  background: #eff6ff;
  border-radius: 6px;
  padding: 8px 24px;
  font-size: 12px;
  color: #64748b;
  text-align: center;
}

.referral-status-bar .text-link {
  color: #2563eb;
  font-weight: 600;
  cursor: pointer;
}

/* 响应式适配 */
@media (max-width: 1200px) {
  .boxyun-top-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .boxyun-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .boxyun-main-split-area {
    grid-template-columns: 1fr;
  }
}

/* 中国大陆用户访问提醒公告弹窗样式 */
.mainland-notice-dialog.el-dialog {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
}

.mainland-notice-dialog .el-dialog__header {
  padding: 16px 20px 0;
}

.mainland-notice-dialog .el-dialog__body {
  padding: 10px 28px 20px;
}

.mainland-notice-wrap {
  text-align: center;
}

.mainland-notice-wrap .notice-icon-box {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #fef2f2;
  color: #dc2626;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  border: 1px solid #fee2e2;
}

.mainland-notice-wrap .notice-main-title {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 12px;
}

.mainland-notice-wrap .notice-headline {
  font-size: 20px;
  font-weight: 900;
  color: #dc2626;
  margin: 0 0 12px;
  letter-spacing: 0.5px;
}

.mainland-notice-wrap .notice-desc {
  font-size: 13px;
  color: #64748b;
  line-height: 1.6;
  margin: 0 0 14px;
  text-align: left;
  background: #f8fafc;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #f1f5f9;
}

.mainland-notice-wrap .notice-ip-tag {
  display: inline-block;
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  font-family: monospace;
}

.mainland-notice-dialog .el-dialog__footer {
  padding: 0 28px 24px;
  text-align: center;
}

.mainland-notice-dialog .btn-confirm-notice {
  width: 100%;
  background: #dc2626;
  border-color: #dc2626;
  font-size: 15px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 8px;
  transition: background-color 0.2s;
}

.mainland-notice-dialog .btn-confirm-notice:hover {
  background: #b91c1c;
  border-color: #b91c1c;
}
