.recommend .main-card-title {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
}

/* 头部 Banner 卡片 */
.recommend-banner {
  background: linear-gradient(135deg, #f8faff 0%, #edf3ff 100%);
  border: 1px solid #dce8ff;
  border-radius: 10px;
  padding: 22px 28px;
  margin-bottom: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.recommend-banner .banner-content {
  flex: 1;
  min-width: 0;
}
.recommend-banner .banner-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 6px;
}
.recommend-banner .title {
  font-size: 17px;
  font-weight: bold;
  color: #1e293b;
  white-space: nowrap;
}
.recommend-banner .desc {
  font-size: 13px;
  color: #64748b;
  margin-top: 4px;
  line-height: 1.5;
}
.recommend-banner .banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* 专属推介链接 */
.aff-link-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #3b82f6;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 22px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.aff-link-box .label {
  font-size: 14px;
  font-weight: bold;
  color: #2563eb;
  margin-bottom: 8px;
}
.aff-link-row {
  display: flex;
  gap: 12px;
  align-items: center;
}
.aff-link-input {
  flex: 1;
}
.aff-link-btn {
  flex-shrink: 0;
}
.aff-link-tip {
  font-size: 12px;
  color: #909399;
  margin-top: 8px;
  line-height: 1.5;
}

/* 统计卡片网格 */
.aff-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.aff-stat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 18px 14px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.02);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.aff-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.aff-stat-card .c-label {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 8px;
}
.aff-stat-card .c-val {
  font-size: 24px;
  font-weight: bold;
  color: #0f172a;
}
.aff-stat-card .c-val.green {
  color: #10b981;
}
.aff-stat-card .c-val.orange {
  color: #f59e0b;
}

/* 提现弹窗专属样式 */
.withdraw-modal .el-dialog {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.withdraw-modal .el-dialog__header {
  padding: 18px 24px;
  border-bottom: 1px solid #f1f5f9;
  background: #fafbfc;
}
.withdraw-modal .el-dialog__title {
  font-weight: bold;
  font-size: 16px;
  color: #1e293b;
}
.withdraw-modal .el-dialog__body {
  padding: 24px;
}
.withdraw-asset-card {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1px solid #a7f3d0;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.withdraw-asset-card .asset-title {
  font-size: 13px;
  color: #065f46;
  margin-bottom: 4px;
}
.withdraw-asset-card .asset-amount {
  font-size: 26px;
  font-weight: 800;
  color: #047857;
}

/* 提现通道卡片单选框 */
.withdraw-type-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
}
.type-card {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #fff;
  position: relative;
}
.type-card:hover {
  border-color: #93c5fd;
}
.type-card.active {
  border-color: #3b82f6;
  background: #eff6ff;
  box-shadow: 0 0 0 1px #3b82f6;
}
.type-card .type-title {
  font-weight: bold;
  font-size: 14px;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 6px;
}
.type-card .type-desc {
  font-size: 12px;
  color: #64748b;
  margin-top: 4px;
  line-height: 1.4;
}

/* 金额输入与实时计算条 */
.amount-calc-summary {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  padding: 10px 14px;
  margin-top: 10px;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  color: #475569;
}
.amount-calc-summary .highlight {
  font-weight: bold;
  color: #10b981;
}

/* 收款码上传区美化 */
.qrcode-uploader-box {
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  padding: 18px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.qrcode-uploader-box:hover {
  border-color: #3b82f6;
  background: #f0f7ff;
}
.qrcode-preview-img {
  max-width: 140px;
  max-height: 140px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.qrcode-upload-placeholder i {
  font-size: 32px;
  color: #94a3b8;
  margin-bottom: 6px;
}
.qrcode-upload-placeholder .tip {
  font-size: 12px;
  color: #64748b;
}

/* ================= 移动端 / 窄屏响应式适配 ================= */
@media screen and (max-width: 768px) {
  /* 移动端顶部导航栏与主体布局保障 */
  .el-header {
    width: 100% !important;
    height: 1rem !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 1000 !important;
  }
  .el-aside {
    display: none !important;
  }
  .template.recommend .el-main {
    padding-top: 1.66rem !important;
    padding-left: 0.3rem !important;
    padding-right: 0.3rem !important;
  }
  .menu-img {
    display: inline-block !important;
    cursor: pointer !important;
    height: 0.56rem !important;
  }
  .header-right {
    margin-right: 0px !important;
  }
  .right-item img {
    width: 0.56rem !important;
    height: 0.56rem !important;
  }

  /* Banner 改为纵向流，按钮置于下方整洁排列 */
  .recommend-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 16px 16px;
    gap: 14px;
    margin-bottom: 16px;
  }
  .recommend-banner .banner-title-row {
    gap: 8px;
    margin-bottom: 6px;
  }
  .recommend-banner .title {
    font-size: 16px;
  }
  .recommend-banner .desc {
    font-size: 12px;
    margin-top: 2px;
  }
  .recommend-banner .banner-actions {
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 8px;
  }
  .recommend-banner .banner-actions .el-button {
    flex: 1;
    margin: 0 !important;
    padding: 10px 8px;
    font-size: 13px;
    text-align: center;
  }

  /* 推介链接行自适应 */
  .aff-link-box {
    padding: 14px 16px;
    margin-bottom: 16px;
  }
  .aff-link-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .aff-link-btn {
    width: 100%;
  }

  /* 统计卡片 2 列排列 */
  .aff-stat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 16px;
  }
  .aff-stat-card {
    padding: 12px 8px;
  }
  .aff-stat-card .c-label {
    font-size: 12px;
    margin-bottom: 4px;
  }
  .aff-stat-card .c-val {
    font-size: 18px;
  }

  /* 提现弹窗移动端适配 */
  .withdraw-modal .el-dialog {
    width: 92% !important;
    max-width: 480px;
    margin: 6vh auto !important;
  }
  .withdraw-modal .el-dialog__body {
    padding: 16px;
  }
  .withdraw-type-options {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .withdraw-asset-card {
    padding: 12px 14px;
    margin-bottom: 16px;
  }
  .withdraw-asset-card .asset-amount {
    font-size: 20px;
  }
}

@media screen and (max-width: 420px) {
  .recommend-banner .banner-actions {
    flex-direction: column;
  }
  .recommend-banner .banner-actions .el-button {
    width: 100%;
  }
}
