/**
 * product-override.css — 首页放大 + 隐藏充值相关 UI
 * 产品方向：反馈与奖励优先，非充值
 */

/* ========== 首页 Hero 放大 ========== */
.atlas-home-hero {
  background: linear-gradient(180deg, #0a0a0a 0%, #111 55%, #000 100%);
  color: #fff;
  padding: 1.25rem 1rem 2rem;
  margin: 0 auto;
  border-bottom: 2px solid var(--bg-color, #daff45);
}

@media (min-width: 768px) {
  .atlas-home-hero {
    padding: 2.5rem 2rem 3rem;
    max-width: 1200px;
  }
}

.atlas-home-hero__inner {
  max-width: 960px;
  margin: 0 auto;
}

.atlas-home-hero__eyebrow {
  color: var(--bg-color, #daff45);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
}

.atlas-home-hero__title {
  font-size: clamp(2rem, 6vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 1rem;
}

.atlas-home-hero__lead {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  line-height: 1.55;
  color: #d4d4d4;
  max-width: 42rem;
  margin: 0 0 1.5rem;
}

.atlas-home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.atlas-home-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.atlas-home-hero__cta:active {
  transform: scale(0.98);
}

.atlas-home-hero__cta--primary {
  background: var(--bg-color, #daff45);
  color: #000;
}

.atlas-home-hero__cta--secondary {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.atlas-home-hero__points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .atlas-home-hero__points {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

.atlas-home-hero__points li {
  background: rgba(218, 255, 69, 0.08);
  border: 1px solid rgba(218, 255, 69, 0.25);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* 放大首页原有标题区块（Vue home 组件） */
#app .text-\[25px\].md\:text-\[60px\] {
  font-size: clamp(1.75rem, 5vw, 4rem) !important;
}

#app .text-\[16px\].md\:text-\[30px\] {
  font-size: clamp(1rem, 2.5vw, 1.75rem) !important;
}

/* 首页 Start Work 按钮加大（仅限主 CTA，不影响 field 内小按钮） */
#app a[href="/starting"] .van-button,
#app .button-item .van-button {
  min-height: 2.75rem;
}

body:has(.atlas-home-hero) .van-button--large {
  min-width: 10rem !important;
  font-size: 1.1rem !important;
}

/* ========== 隐藏充值入口（兜底 CSS） ========== */
a[href="/deposit"],
a[href*="/deposit/"] {
  display: none !important;
}

/* ========== Hide language switcher (English-only) ========== */
.van-popup.task_modal {
  display: none !important;
}

/* Legacy bundle: globe/flag icon in navbar opens language picker */
.navbar .flex.items-center.gap-3.mt-2 > div:last-child img[src^="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAY"] {
  display: none !important;
}

.navbar .flex.items-center.gap-3.mt-2 > div:last-child:has(img[src^="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAY"]) {
  display: none !important;
  pointer-events: none !important;
}

/* ========== 会员端底部导航（Tasks → Withdraw → Wallet → Profile）========== */
body.atlas-member-view {
  padding-bottom: calc(4.25rem + env(safe-area-inset-bottom, 0px));
}

.atlas-member-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2300;
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  gap: 0;
  padding: 0.35rem 0.5rem calc(0.45rem + env(safe-area-inset-bottom, 0px));
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
}

.atlas-member-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.35rem 0.25rem;
  border-radius: 0.75rem;
  text-decoration: none;
  color: #666;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.1;
  min-width: 0;
  transition: background 0.15s ease, color 0.15s ease;
}

.atlas-member-nav__item--active {
  color: #111;
  background: rgba(218, 255, 69, 0.22);
}

.atlas-member-nav__icon {
  font-size: 1.15rem;
  line-height: 1;
}

.atlas-member-nav__label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* 登录后会员页隐藏营销 footer（原 tab-bar：Home/PPC/SEO 等） */
body.atlas-member-view #app div.bg-black:has(a[href="/ppc"]),
body.atlas-member-view #app div.bg-black:has(a[href="/wdd"]),
body.atlas-member-view .atlas-marketing-footer {
  display: none !important;
}

/* 抽奖 FAB 上移，避免与底部导航重叠 */
body.atlas-member-view .atlas-lottery-fab {
  bottom: calc(5.25rem + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 768px) {
  .atlas-member-nav {
    max-width: 480px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 1rem 1rem 0 0;
  }
}

/* ========== 幸运大抽奖 — 登录后浮动入口 + 弹窗 ========== */
.atlas-lottery-fab {
  position: fixed;
  right: 1rem;
  bottom: 5rem;
  z-index: 2400;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem 1rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  color: #1a1a2e;
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: 0 8px 24px rgba(255, 215, 0, 0.35);
  cursor: pointer;
  animation: atlas-lottery-pulse 2s ease-in-out infinite;
}

.atlas-lottery-fab span {
  font-size: 0.8rem;
}

@keyframes atlas-lottery-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

.atlas-lottery-modal {
  position: fixed;
  inset: 0;
  z-index: 2500;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(4px);
}

.atlas-lottery-modal__card {
  background: linear-gradient(145deg, #1e293b, #0f172a);
  border: 2px solid #ffd700;
  border-radius: 1.25rem;
  padding: 2rem 1.5rem;
  max-width: 360px;
  width: 100%;
  text-align: center;
  color: #fff;
}

.atlas-lottery-modal__icon {
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
}

.atlas-lottery-modal__card h2 {
  color: #ffd700;
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.atlas-lottery-modal__card p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.atlas-lottery-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.atlas-lottery-modal__go {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  color: #1a1a2e;
  font-weight: 800;
  cursor: pointer;
}

.atlas-lottery-modal__skip {
  padding: 0.5rem;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  font-size: 0.85rem;
}

/* ========== 表单文字对齐（登录/注册 Vant Field） ========== */
#app .van-cell {
  align-items: center;
}

#app .van-field__body {
  align-items: center;
}

#app .van-field__control {
  line-height: 1.4 !important;
}

#app .van-field__button {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding-left: 8px;
}

#app .van-field__button .van-button--small {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 32px !important;
  min-height: 32px !important;
  line-height: 1 !important;
  padding: 0 12px !important;
  vertical-align: middle;
}

#app .van-field__button .van-button__text {
  line-height: 1 !important;
  display: inline-flex;
  align-items: center;
  min-height: 0 !important;
  height: auto !important;
}

#app .van-button__text {
  line-height: 1.2;
}

#app .agree-row {
  line-height: 1.5;
  align-items: flex-start;
}

#app .agree-row label,
#app .agree-row span {
  line-height: 1.5;
}

/* ========== Mobile: marketing landing layout (home / seo / ppc / wdd) ========== */
@media (max-width: 767px) {
  html,
  body {
    overflow-x: hidden;
    max-width: 100%;
  }

  #app {
    overflow-x: hidden;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Keep desktop-only blocks hidden (hidden md:block) */
  #app .hidden.md\:block {
    display: none !important;
  }

  /*
   * Marketing copy blocks — px-3 (12px) is too tight on 375px; icons/text clip.
   * Covers /seo gray+white stacks, home mobile SEO column, hero feature lists.
   */
  #app .text-white.px-3,
  #app .flex-1.px-3,
  #app .md\:hidden.w-full.px-3.bg-white {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
  }

  #app .flex-1.px-3 .text-\[25px\],
  #app .md\:hidden.w-full.px-3 .text-\[25px\],
  #app .md\:hidden.w-full.px-3 .text-\[40px\] {
    max-width: 100% !important;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-break: normal !important;
    hyphens: auto;
  }

  /* Hero + SEO feature rows (icon + label) */
  #app .text-white.px-3 .mt-4 .flex,
  #app .flex-1.px-3 .mt-3.flex,
  #app .flex-1.px-3 .mt-4.flex,
  #app .flex-1.px-3 .flex.items-center {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
    align-items: flex-start !important;
    gap: 0.5rem;
  }

  #app .text-white.px-3 .mt-4 .flex > img,
  #app .flex-1.px-3 .mt-3.flex > img,
  #app .flex-1.px-3 .mt-4.flex > img {
    flex-shrink: 0 !important;
  }

  /*
   * Scoped wdd/home fix: only full-width mobile stack wrappers — not every .md:hidden.
   * Prevents regressions on hero marquee / partner logo blocks.
   */
  #app .md\:hidden.w-full.bg-white,
  #app .md\:hidden.w-full.bg-cover {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: visible;
    box-sizing: border-box;
  }

  #app .md\:hidden.w-full.bg-white > .flex-1,
  #app .md\:hidden.w-full.bg-cover > .flex-1 {
    flex: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
  }

  /* Goal / features headline blocks inside mobile stack wrappers */
  #app .md\:hidden.w-full .text-\[25px\],
  #app .md\:hidden.w-full .text-\[40px\] {
    font-size: clamp(1.25rem, 5.5vw, 1.75rem) !important;
    line-height: 1.3 !important;
    max-width: 100% !important;
    word-break: normal !important;
    overflow-wrap: break-word;
  }

  /* Checkmark feature rows inside mobile stack wrappers */
  #app .md\:hidden.w-full .mt-3.flex,
  #app .md\:hidden.w-full .mt-4.flex {
    flex-direction: row !important;
    align-items: flex-start !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 0.5rem;
  }

  #app .md\:hidden.w-full .mt-3.flex > img,
  #app .md\:hidden.w-full .mt-4.flex > img {
    flex-shrink: 0 !important;
  }

  #app .md\:hidden.w-full .mt-3.flex > .flex-col,
  #app .md\:hidden.w-full .mt-4.flex > .flex-col {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  /* Home mobile SEO service grid — prevent left-column letter clipping */
  #app .md\:hidden.w-full.px-3.bg-white .grid.grid-cols-2 {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  #app .md\:hidden.w-full.px-3.bg-white .grid.grid-cols-2 > div {
    min-width: 0 !important;
    box-sizing: border-box;
    padding-left: 0.375rem !important;
    padding-right: 0.25rem !important;
    overflow-wrap: break-word;
  }

  #app .flex-1.px-3 > div {
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Fallback: desktop flex row with fixed w-[500px] leaking onto small screens */
  #app .bg-white.bg-cover .flex.justify-center {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 1rem;
  }

  #app .bg-white.bg-cover .w-\[500px\] {
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
    box-sizing: border-box;
  }
}
