/* Aelu home — visual match for https://view.kuafuai.net/157166046/pagesA/home/index
   Scope: .aelu-home only. Brand text + right menu control stay intact. */

.aelu-home {
  /* ??????????????????????????? */
  --aelu-bg: linear-gradient(175deg, #fffdfb 0%, #fff4ec 50%, #fff7ef 100%);
  --aelu-text: #333130;
  --aelu-muted: #77706e;
  --aelu-muted-2: #807a78;
  --aelu-muted-3: #8b8582;
  --aelu-border: rgba(238, 218, 207, 0.3);
  --aelu-border-soft: rgba(220, 200, 190, 0.28);
  --aelu-card: rgba(255, 255, 255, 0.72);
  --aelu-grad: linear-gradient(135deg, #bf7a5e 0%, #a56c60 100%);
  --aelu-accent: #a56c60;
  --aelu-accent-hot: #c45c38;
  --aelu-chip-bg: #f8ede8;
  --aelu-chip-text: #9b6256;
  --aelu-green-bg: #edf7ef;
  --aelu-green-text: #559e5f;
  --aelu-pending-bg: #f5f0ed;
  --aelu-pending-text: #8b8582;
  --aelu-shadow-sm: 0 2px 8px rgba(170, 111, 79, 0.06);
  --aelu-shadow-md:
    0 3px 10px rgba(170, 111, 79, 0.06),
    0 1px 3px rgba(170, 111, 79, 0.04);
  --aelu-shadow-pill:
    0 2px 6px rgba(170, 111, 79, 0.05),
    inset 0 1px rgba(255, 255, 255, 0.9);
  --aelu-radius-lg: 26px;
  --aelu-radius-md: 20px;
  --aelu-gap: 12px;
  --aelu-page-x: 16px;
}

.aelu-home.bot-dash,
.aelu-home .ss-content-col,
.aelu-home .bot-dash-main {
  background: transparent;
}

.page-landing:has(.aelu-home) {
  background: var(--aelu-bg, linear-gradient(175deg, #fef6f0 0%, #ffefe4 46%, #fff5ec 100%));
}

/* Homepage only — floating capsule top */
.aelu-home .bot-dash-top {
  position: fixed !important;
  top: max(10px, env(safe-area-inset-top)) !important;
  /* 与内容列同宽：窄屏 16px，宽屏跟随 480 内容柱 */
  left: max(16px, calc(50% - 240px + 16px)) !important;
  right: max(16px, calc(50% - 240px + 16px)) !important;
  z-index: 40 !important;
  margin: 0 !important;
  padding: 8px 10px 8px 14px !important;
  min-height: 52px;
  border-radius: 999px !important;
  border: 1px solid rgba(220, 200, 190, 0.28) !important;
  background: rgba(255, 255, 255, 0.82) !important;
  box-shadow:
    0 8px 28px rgba(170, 111, 79, 0.14),
    0 2px 8px rgba(170, 111, 79, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(14px) saturate(1.15) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.15) !important;
  overflow: visible;
}

.aelu-home .bot-dash-top::after {
  display: none !important;
}

.aelu-home .bot-dash-top.is-scrolled {
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow:
    0 10px 32px rgba(170, 111, 79, 0.16),
    0 3px 10px rgba(170, 111, 79, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

@media (min-width: 769px) {
  .aelu-home .bot-dash-top {
    top: 16px !important;
    left: calc(248px + 20px) !important;
    right: 20px !important;
  }

  .aelu-home .ss-content-col {
    padding-top: calc(16px + 52px + 14px) !important;
  }
}

.aelu-home .bot-dash-top__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.aelu-home .bot-dash-top__mark {
  width: 30px !important;
  height: 30px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #bf7a5e 0%, #a56c60 100%) !important;
  color: #fff !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(165, 108, 96, 0.3) !important;
  flex-shrink: 0;
}

.aelu-home .bot-dash-top__mark svg {
  display: block;
}

.aelu-home .bot-dash-top__name {
  font-size: 17px !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em !important;
  color: #333130 !important;
  line-height: 1.2;
}

.aelu-home .bot-dash-menu-btn {
  min-width: 52px !important;
  height: 34px !important;
  padding: 0 14px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(220, 200, 190, 0.35) !important;
  background: rgba(255, 255, 255, 0.72) !important;
  color: #53504c !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.9) !important;
}

.aelu-home .bot-dash-menu-btn__label {
  display: inline !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: inherit !important;
  letter-spacing: 0.02em;
}

.aelu-home .bot-dash-menu-btn[aria-expanded="true"],
.aelu-home .bot-dash-menu-btn.is-fan-open {
  background: #f8ede8 !important;
  color: #9b6256 !important;
  border-color: rgba(155, 98, 86, 0.18) !important;
}

/* Single-column home flow */
.aelu-home .bot-dash-main.ss-main {
  padding: 0 var(--aelu-page-x) calc(88px + env(safe-area-inset-bottom, 0px));
  gap: var(--aelu-gap);
  max-width: 480px;
  margin-inline: auto;
  box-sizing: border-box;
}

/* 压过 portal 的 ss-main 移动端 padding/max-width，保证顶栏与卡片同宽 */
html.portal-scroll .aelu-home.bot-dash .bot-dash-main.ss-main,
html.portal-scroll .aelu-home .ss-main.bot-dash-main {
  padding-left: var(--aelu-page-x, 16px) !important;
  padding-right: var(--aelu-page-x, 16px) !important;
  max-width: 480px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
  width: 100% !important;
}

.aelu-home .ss-content-col {
  padding-top: calc(max(10px, env(safe-area-inset-top)) + 52px + 14px) !important;
}

.aelu-home .bot-dash-grid {
  display: flex !important;
  flex-direction: column;
  gap: var(--aelu-gap);
}

.aelu-home .bot-dash-grid__primary,
.aelu-home .bot-dash-grid__secondary {
  display: flex !important;
  flex-direction: column;
  gap: var(--aelu-gap);
  width: 100%;
}

/* Hero card */
.aelu-home .bot-profile-card {
  margin: 0;
  padding: 20px !important;
  border-radius: var(--aelu-radius-lg) !important;
  border: 1px solid rgba(238, 218, 207, 0.35) !important;
  /* ???????????????????? */
  background: rgba(255, 255, 255, 0.72) !important;
  box-shadow: var(--aelu-shadow-md) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.aelu-home .bot-profile-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.aelu-home .bot-profile-card__head {
  gap: 10px;
  margin-bottom: 0;
}

.aelu-home .bot-profile-card__name {
  font-size: 22px !important;
  font-weight: 800 !important;
  line-height: 1.2;
  color: var(--aelu-text) !important;
}

.aelu-home .bot-profile-card__badge,
.aelu-home .bot-live-badges .bot-profile-card__badge,
.aelu-home .bot-live-badges span {
  font-size: 11px !important;
  font-weight: 500 !important;
  padding: 3px 12px !important;
  border-radius: 999px !important;
  border: none !important;
}

.aelu-home .bot-profile-card__badge--bound,
.aelu-home .bot-profile-card__badge.bot-profile-card__badge--bound {
  background: var(--aelu-green-bg) !important;
  color: var(--aelu-green-text) !important;
}

.aelu-home .bot-profile-card__badge--pending,
.aelu-home .bot-profile-card__badge--frozen {
  background: var(--aelu-pending-bg) !important;
  color: var(--aelu-pending-text) !important;
}

.aelu-home .bot-profile-card__sub {
  margin: 6px 0 0 !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  color: var(--aelu-muted-2) !important;
  line-height: 1.45 !important;
  display: block !important;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.aelu-home .bot-profile-card__points {
  align-items: flex-end;
  gap: 0;
}

.aelu-home .bot-profile-card__points-num {
  font-size: 20px !important;
  font-weight: 800 !important;
  line-height: 1.2;
  color: var(--aelu-text) !important;
}

.aelu-home .bot-profile-card__points-label {
  margin-top: 2px;
  font-size: 11px !important;
  font-weight: 400 !important;
  color: var(--aelu-muted-2) !important;
}

.aelu-home .bot-profile-card__points-link {
  margin-top: 8px !important;
  padding: 4px 14px !important;
  border-radius: 999px !important;
  background: var(--aelu-grad) !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 6px rgba(165, 108, 96, 0.25) !important;
}

.aelu-home .bot-profile-card__actions {
  width: 100%;
}

.aelu-home .bot-profile-card__actions .bot-agent-item__btn,
.aelu-home .bot-profile-card .bot-agent-item__btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  min-height: 42px;
  padding: 11px 0 !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid rgba(238, 218, 207, 0.35) !important;
  box-shadow: 0 1px 4px rgba(170, 111, 79, 0.05), inset 0 1px rgba(255, 255, 255, 0.9) !important;
  color: var(--aelu-text) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

.aelu-home .bot-profile-card--empty .bot-profile-card__row {
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
}

.aelu-home .bot-profile-card--empty .bot-agent-item__btn--wechat {
  width: 100%;
  border-radius: 999px !important;
  background: var(--aelu-grad) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 2px 6px rgba(165, 108, 96, 0.25) !important;
}

/* Task mid-cards */
.aelu-home .bot-reward-entry {
  margin: 0 !important;
  padding: 16px !important;
  padding-right: 16px !important;
  border-radius: var(--aelu-radius-md) !important;
  border: 1px solid var(--aelu-border) !important;
  background: var(--aelu-card) !important;
  box-shadow: var(--aelu-shadow-md) !important;
  gap: 14px;
  backdrop-filter: none;
}

.aelu-home .bot-reward-entry__icon {
  width: 56px !important;
  height: 56px !important;
  border-radius: var(--aelu-radius-md) !important;
}

.aelu-home .bot-reward-entry--video .bot-reward-entry__icon {
  background: #f7ece6 !important;
  color: #c45c38 !important;
}

.aelu-home .bot-reward-entry:not(.bot-reward-entry--video) .bot-reward-entry__icon {
  background: #f8f1ee !important;
  color: #a98275 !important;
}

.aelu-home .bot-reward-entry__body {
  padding-right: 84px;
  gap: 4px;
}

.aelu-home .bot-reward-entry__title {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--aelu-text) !important;
}

.aelu-home .bot-reward-entry__sub {
  margin-top: 4px;
  font-size: 11px !important;
  font-weight: 400 !important;
  color: var(--aelu-muted) !important;
  line-height: 1.4 !important;
}

.aelu-home .bot-reward-entry__tag {
  top: 50% !important;
  right: 16px !important;
  transform: translateY(-50%) !important;
  padding: 7px 18px !important;
  border-radius: 999px !important;
  background: var(--aelu-chip-bg) !important;
  color: var(--aelu-chip-text) !important;
  border: 1px solid rgba(155, 98, 86, 0.1) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}

/* Action pills */
.aelu-home .bot-action-grid {
  display: flex !important;
  gap: 12px;
  margin: 0 !important;
}

.aelu-home .bot-action-btn {
  flex: 1;
  min-height: auto !important;
  padding: 14px 0 !important;
  border-radius: 999px !important;
  border: 1px solid var(--aelu-border) !important;
  background: var(--aelu-card) !important;
  box-shadow: var(--aelu-shadow-pill) !important;
  color: var(--aelu-text) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  gap: 8px;
}

.aelu-home .bot-action-btn.is-active {
  background: var(--aelu-card) !important;
  color: var(--aelu-text) !important;
  border: 1px solid var(--aelu-border) !important;
  box-shadow: var(--aelu-shadow-pill) !important;
}

.aelu-home .aelu-action-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(196, 92, 56, 0.08);
  color: var(--aelu-accent-hot);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.aelu-home .aelu-action-icon svg {
  display: block;
}

/* Home stats stay hidden */
.aelu-home .bot-stat-grid,
.aelu-home #botDashStatGrid {
  display: none !important;
}

/* Recent 14 days — list rows (reference), not chart */
.aelu-home .bot-chart-card {
  margin: 0 !important;
  padding: 20px 20px 16px !important;
  border-radius: var(--aelu-radius-lg) !important;
  border: 1px solid var(--aelu-border) !important;
  background: var(--aelu-card) !important;
  box-shadow: var(--aelu-shadow-md) !important;
}

.aelu-home .bot-chart-card__title {
  margin: 0 0 14px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--aelu-text) !important;
}

.aelu-home .bot-chart-card__canvas {
  display: block !important;
  width: 100%;
  height: 120px;
}

.aelu-home .bot-chart-svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Bottom nav colors */
.aelu-home ~ .bot-dash-bottom-nav .bot-dash-bottom-nav__item.is-active,
.aelu-home .bot-dash-bottom-nav__item.is-active {
  color: #9b6256 !important;
}

/* ===== 全站卡片框规格（对齐首页） ===== */
.aelu-home .bot-profile-card,
.aelu-home .bot-chart-card,
.aelu-home .bot-agent-page,
.aelu-home .bot-bind-page,
.aelu-home .bot-agents-empty,
.aelu-home .bot-agent-detail__card,
.aelu-home .bot-warehouse-card,
.aelu-home .bot-recharge-hero,
.aelu-home .bot-recharge-balance,
.aelu-home .bot-recharge-pack,
.aelu-home .bot-recharge-redeem,
.aelu-home .bot-recharge-tips__box {
  border-radius: var(--aelu-radius-lg) !important;
  border: 1px solid var(--aelu-border) !important;
  background: #fff !important;
  box-shadow: var(--aelu-shadow-md) !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.aelu-home .bot-recharge-pack.is-selected {
  border-color: #a56c60 !important;
  background: #f3ddd4 !important;
  box-shadow: 0 0 0 2px rgba(165, 108, 96, 0.28) !important;
}
.aelu-home .bot-sticker-page__card,
.aelu-home .cr-intro,
.aelu-home .cr-card,
.aelu-home .cr-like-list,
.aelu-home .iv-hero,
.aelu-home .iv-card,
.aelu-home .vq-hero,
.aelu-home .vq-card,
.aelu-home .me-card,
.aelu-home .me-promo {
  border-radius: var(--aelu-radius-lg) !important;
  border: 1px solid rgba(238, 218, 207, 0.35) !important;
  background: rgba(255, 255, 255, 0.72) !important;
  box-shadow: var(--aelu-shadow-md) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.aelu-home .bot-reward-entry,
.aelu-home .bot-agent-item,
.aelu-home .bot-stat-card,
.aelu-home .bot-create-card,
.aelu-home .bot-upload-zone,
.aelu-home .bot-sticker-page__row,
.aelu-home .cr-tier,
.aelu-home .cr-work,
.aelu-home .cr-plat,
.aelu-home .cr-empty,
.aelu-home .iv-stat,
.aelu-home .iv-record,
.aelu-home .iv-empty,
.aelu-home .me-tile,
.aelu-home .me-logout {
  border: 1px solid rgba(238, 218, 207, 0.35) !important;
  background: rgba(255, 255, 255, 0.72) !important;
  box-shadow: var(--aelu-shadow-md) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.aelu-home .me-share {
  background: var(--aelu-grad) !important;
  border: none !important;
  color: #fff !important;
  box-shadow: 0 2px 6px rgba(165, 108, 96, 0.25) !important;
}

.aelu-home .bot-warehouse-card__btn,
.aelu-home .bot-recharge-pack__btn,
.aelu-home .cr-btn,
.aelu-home .iv-btn,
.aelu-home .vq-cta,
.aelu-home .me-dialog__btn,
.aelu-home .bot-agent-form__btn {
  border-radius: 999px !important;
}

.aelu-home .bot-modal,
.aelu-home .me-pack-dialog,
.aelu-home .me-invite-layer__card,
.aelu-home .bot-pay-dialog {
  border-radius: var(--aelu-radius-lg) !important;
}

.aelu-home .bot-dash-subhead {
  display: block !important;
  align-self: stretch !important;
  width: 100% !important;
  max-width: 480px !important;
  margin: 0 auto 12px !important;
  padding: 14px 18px !important;
  box-sizing: border-box !important;
  border-radius: var(--aelu-radius-lg) !important;
  border: 1px solid var(--aelu-border) !important;
  background: #fff !important;
  box-shadow: var(--aelu-shadow-md) !important;
}

/* 详情页：副标题卡与下方详情卡同宽（与 main 内容区对齐） */
.aelu-home:has(.bot-dash-main--detail) .bot-dash-subhead {
  width: calc(100% - 2 * var(--aelu-page-x)) !important;
  max-width: calc(480px - 2 * var(--aelu-page-x)) !important;
}

.aelu-home:has(.bot-dash-main--detail) .bot-dash-main--detail.ss-main {
  padding-left: var(--aelu-page-x) !important;
  padding-right: var(--aelu-page-x) !important;
}

@media (min-width: 769px) {
  .aelu-home .bot-dash-top {
    margin: 16px 20px 14px;
  }

  .aelu-home .bot-dash-main.ss-main {
    padding-top: 0;
    max-width: 480px;
  }

  .aelu-home .bot-dash-grid {
    grid-template-columns: none !important;
  }
}

/* Mobile: drop glass blur — major WeChat WebView cost */
@media (max-width: 768px) {
  .aelu-home .bot-dash-top,
  .aelu-home .bot-dash-top.is-scrolled,
  .aelu-home * {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .aelu-home .bot-dash-top {
    background: rgba(255, 255, 255, 0.96) !important;
  }
}


/* CARD MIX: all app cards slightly translucent (bg tint bleeds in) */
.aelu-home .bot-profile-card,
.aelu-home .bot-agent-item,
.aelu-home .bot-stat-card,
.aelu-home .bot-create-card,
.aelu-home .bot-reward-entry,
.aelu-home .bot-chart-card,
.aelu-home .bot-agents-empty,
.aelu-home .bot-agent-detail__card,
.aelu-home .bot-agent-form__section,
.aelu-home .bot-warehouse-card,
.aelu-home .bot-recharge-hero,
.aelu-home .bot-recharge-balance,
.aelu-home .bot-recharge-pack,
.aelu-home .bot-recharge-payway,
.aelu-home .bot-recharge-pay-agree,
.aelu-home .bot-recharge-tips__box,
.aelu-home .bot-upload-zone,
.aelu-home .bot-sticker-page__card,
.aelu-home .bot-sticker-page__row,
.aelu-home .bot-bind-card,
.aelu-home .cr-intro,
.aelu-home .cr-card,
.aelu-home .cr-tier,
.aelu-home .cr-work,
.aelu-home .cr-plat,
.aelu-home .cr-empty,
.aelu-home .cr-like-list,
.aelu-home .iv-hero,
.aelu-home .iv-card,
.aelu-home .iv-stat,
.aelu-home .iv-record,
.aelu-home .iv-empty,
.aelu-home .iv-claimed,
.aelu-home .iv-code-box code,
.aelu-home .vq-hero,
.aelu-home .vq-card,
.aelu-home .me-card,
.aelu-home .me-tile,
.aelu-home .me-promo,
.aelu-home .me-logout,
.aelu-home .bot-dash-top,
.aelu-home .bot-dash-top.is-scrolled {
  background: rgba(255, 255, 255, 0.72) !important;
  background-image: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* keep share CTA gradient */
.aelu-home .me-share {
  background: var(--aelu-grad) !important;
  background-image: var(--aelu-grad) !important;
}

/* video quota card: same soft translucent white as other cards */
.aelu-home .bot-reward-entry--video {
  background: rgba(255, 255, 255, 0.72) !important;
  background-image: none !important;
  border-color: rgba(238, 218, 207, 0.35) !important;
}
