/*
 * v70 页面结构校正版
 * 仅修正：快捷入口、热门/最近浏览、充值、提现、任务、收入、邀请好友。
 * 保留现有深蓝金主题和轻量交互，不再叠加大面积模糊。
 */

:root {
  --v70-page: #050b18;
  --v70-card: rgba(255, 255, 255, .055);
  --v70-card-strong: rgba(255, 255, 255, .082);
  --v70-line: rgba(255, 255, 255, .105);
  --v70-text: rgba(255, 255, 255, .94);
  --v70-muted: rgba(255, 255, 255, .54);
  --v70-gold: #f2c84b;
  --v70-gold-soft: #f2d891;
  --v70-blue-button: #112d5b;
}

/* 快捷入口使用参考源码里的原图，图标本身不套第二层黑框。 */
html body .phone-shell .quick-reference-icon {
  position: relative;
  display: grid;
  width: 50px;
  height: 50px;
  margin: 0;
  place-items: center;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

html body .phone-shell .quick-reference-icon > img {
  display: block;
  width: 50px !important;
  height: 50px !important;
  max-width: none;
  object-fit: contain;
  border: 0 !important;
  border-radius: 12px !important;
  background: transparent !important;
  box-shadow: none !important;
  filter: saturate(1.06) contrast(1.04) drop-shadow(0 7px 11px rgba(0, 0, 0, .42)) !important;
}

html body .phone-shell .quick-item > span:last-child {
  margin: 0 !important;
  color: var(--v70-text) !important;
  -webkit-text-fill-color: var(--v70-text) !important;
  font-size: 15px !important;
  font-weight: 520 !important;
  line-height: 20px !important;
}

/* 热门恢复原站的窄竖卡比例；媒体厂商卡保留更宽比例。 */
html body .phone-shell .hot-row {
  height: 145px !important;
  gap: 8px !important;
}

html body .phone-shell .hot-card {
  width: min(24vw, 103px) !important;
  min-width: min(24vw, 103px) !important;
  height: 145px !important;
  flex: 0 0 min(24vw, 103px) !important;
  border: 0 !important;
  border-radius: 7px !important;
  background: transparent !important;
  box-shadow: 0 7px 15px rgba(0, 0, 0, .30) !important;
}

html body .phone-shell .media-row {
  height: min(34.933vw, 150px) !important;
}

html body .phone-shell .media-card {
  width: min(34.933vw, 150px) !important;
  min-width: min(34.933vw, 150px) !important;
  height: min(34.933vw, 150px) !important;
  flex-basis: min(34.933vw, 150px) !important;
  border-radius: 8px !important;
}

/* 首页最近浏览始终存在；有记录展示真卡片，无记录展示明确空态。 */
html body .phone-shell .recent-home-section {
  min-height: 78px;
}

html body .phone-shell .title-badge.recent {
  border: 0 !important;
  background: rgba(111, 76, 225, .22) !important;
}

html body .phone-shell .title-badge.recent img {
  width: 19px;
  height: 19px;
}

html body .phone-shell .recent-home-row[hidden],
html body .phone-shell .recent-home-empty[hidden] {
  display: none !important;
}

html body .phone-shell .recent-home-empty {
  width: 100%;
  min-height: 74px;
  display: grid;
  grid-template-columns: 34px 1fr;
  grid-template-rows: 1fr 1fr;
  column-gap: 11px;
  align-items: center;
  padding: 12px 15px;
  border: 1px solid var(--v70-line);
  border-radius: 12px;
  color: var(--v70-text);
  text-align: left;
  background: linear-gradient(145deg, rgba(255, 255, 255, .052), rgba(4, 12, 30, .36));
  box-shadow: none;
}

html body .phone-shell .recent-home-empty > span {
  grid-row: 1 / 3;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: #bda6ff;
  font-size: 23px;
  background: rgba(111, 76, 225, .16);
}

html body .phone-shell .recent-home-empty > strong {
  align-self: end;
  color: var(--v70-text);
  font-size: 14px;
  line-height: 19px;
}

html body .phone-shell .recent-home-empty > small {
  align-self: start;
  color: var(--v70-muted) !important;
  font-size: 11px;
  line-height: 17px;
}

/* 五个独立页面共用同一套标题栏和页面底色。 */
html body .phone-shell .detail-overlay[data-page-layout="task"],
html body .phone-shell .detail-overlay[data-page-layout="income"],
html body .phone-shell .detail-overlay:has(.detail-page[data-generic-layout="money"].active),
html body .phone-shell .detail-overlay:has(.detail-page[data-generic-layout="invite"].active) {
  background:
    radial-gradient(circle at 84% 2%, rgba(219, 177, 63, .09), transparent 21%),
    linear-gradient(160deg, #071a3a 0%, #050b18 47%, #02050b 100%) !important;
}

html body .phone-shell .detail-topbar {
  position: sticky !important;
  top: 0 !important;
  z-index: 80 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  height: 58px !important;
  min-height: 58px !important;
  padding: 8px 15px !important;
  border: 0 !important;
  background: rgba(3, 8, 18, .66) !important;
  box-shadow: none !important;
}

html body .phone-shell .detail-topbar > h1 {
  color: #f7f7f5 !important;
  -webkit-text-fill-color: #f7f7f5 !important;
  font-size: 20px !important;
  font-weight: 650 !important;
  letter-spacing: 0 !important;
}

html body .phone-shell #detailOverlay .detail-topbar h1 {
  color: #f7f7f5 !important;
  -webkit-text-fill-color: #f7f7f5 !important;
  text-shadow: none !important;
}

html body .phone-shell .detail-back,
html body .phone-shell .detail-record-button {
  width: 38px !important;
  height: 38px !important;
  padding: 0 !important;
  border: 1px solid rgba(255, 255, 255, .12) !important;
  border-radius: 50% !important;
  color: rgba(255, 255, 255, .86) !important;
  background: rgba(255, 255, 255, .075) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, .08) !important;
}

html body .phone-shell .detail-record-button {
  top: 10px !important;
  right: 15px !important;
}

html body .phone-shell .detail-overlay,
html body .phone-shell .detail-page,
html body .phone-shell #genericContent,
html body .phone-shell .money-center,
html body .phone-shell .money-tab-panel,
html body .phone-shell .money-tabs {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
}

html body .phone-shell .detail-page[data-generic-layout="money"] .generic-hero,
html body .phone-shell .detail-page[data-generic-layout="task"] .generic-hero,
html body .phone-shell .detail-page[data-generic-layout="income"] .generic-hero,
html body .phone-shell .detail-page[data-generic-layout="invite"] .generic-hero {
  display: none !important;
}

html body .phone-shell .detail-page[data-generic-layout="money"] #genericContent,
html body .phone-shell .detail-page[data-generic-layout="task"] #genericContent,
html body .phone-shell .detail-page[data-generic-layout="income"] #genericContent,
html body .phone-shell .detail-page[data-generic-layout="invite"] #genericContent {
  padding: 14px 15px 30px !important;
}

/* 旧任务样式曾故意隐藏标题栏；v70 恢复标准独立页标题与返回键。 */
html body .phone-shell #detailOverlay[data-page-layout="task"] .detail-topbar {
  position: sticky !important;
  top: 0 !important;
  left: auto !important;
  z-index: 80 !important;
  display: grid !important;
  grid-template-columns: 38px 1fr 38px !important;
  width: 100% !important;
  height: 58px !important;
  min-height: 58px !important;
  padding: 10px 15px !important;
  overflow: visible !important;
  pointer-events: auto !important;
  background: rgba(3, 8, 18, .92) !important;
}

html body .phone-shell #detailOverlay[data-page-layout="task"] .detail-topbar h1 {
  display: block !important;
  grid-column: 2;
  margin: 0 !important;
  color: #f7f7f5 !important;
  -webkit-text-fill-color: #f7f7f5 !important;
  font-size: 20px !important;
  font-weight: 650 !important;
  text-align: center;
}

html body .phone-shell #detailOverlay[data-page-layout="task"] .detail-back {
  position: static !important;
  grid-column: 1;
  width: 38px !important;
  height: 38px !important;
  padding: 0 0 2px !important;
  pointer-events: auto !important;
}

html body .phone-shell #detailOverlay[data-page-layout="task"] .detail-page[data-detail="generic"] {
  padding-top: 0 !important;
}

html body .phone-shell #detailOverlay[data-page-layout="task"] #genericContent {
  padding: 14px 15px 30px !important;
}

/* 充值/提现：导航、内容、说明三层，避免又方又厚。 */
html body .phone-shell .money-center {
  width: 100% !important;
  max-width: 398px !important;
  margin: 0 auto !important;
  padding: 0 0 28px !important;
}

html body .phone-shell .money-tabs {
  height: 43px !important;
  margin: 0 0 14px !important;
  padding: 3px !important;
  border: 1px solid var(--v70-line) !important;
  border-radius: 22px !important;
  background: rgba(255, 255, 255, .055) !important;
  box-shadow: none !important;
}

html body .phone-shell .money-tabs button {
  height: 35px !important;
  border: 0 !important;
  border-radius: 18px !important;
  color: var(--v70-muted) !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body .phone-shell .money-tabs button.active {
  color: var(--v70-gold-soft) !important;
  background: var(--v70-blue-button) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, .10) !important;
}

html body .phone-shell .recharge-wallet-card,
html body .phone-shell .withdraw-wallet-overview,
html body .phone-shell .withdraw-form-card,
html body .phone-shell .money-aba-panel {
  border: 1px solid var(--v70-line) !important;
  border-radius: 17px !important;
  background:
    radial-gradient(circle at 88% 0%, rgba(242, 200, 75, .10), transparent 26%),
    linear-gradient(145deg, rgba(255, 255, 255, .068), rgba(5, 15, 36, .72)) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .24) !important;
}

html body .phone-shell .recharge-wallet-card {
  padding: 16px 15px 18px !important;
}

html body .phone-shell .recharge-wallet-card header,
html body .phone-shell .withdraw-wallet-overview {
  min-height: 48px;
}

html body .phone-shell .withdraw-wallet-overview {
  padding: 14px 15px 15px !important;
}

html body .phone-shell .withdraw-wallet-overview > header {
  min-height: 31px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

html body .phone-shell .withdraw-wallet-overview > header > span {
  display: flex;
  align-items: center;
  gap: 7px;
}

html body .phone-shell .withdraw-wallet-overview > header strong {
  color: #f7f7f5 !important;
  font-size: 15px;
}

html body .phone-shell .withdraw-wallet-overview > header button {
  min-width: 26px;
  height: 26px;
  padding: 0 9px;
  border: 0 !important;
  border-radius: 13px !important;
  color: var(--v70-gold-soft) !important;
  background: rgba(255, 255, 255, .075) !important;
  box-shadow: none !important;
}

html body .phone-shell .withdraw-wallet-overview > div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 13px;
}

html body .phone-shell .withdraw-wallet-overview > div > span {
  display: grid;
  gap: 5px;
  text-align: center;
}

html body .phone-shell .withdraw-wallet-overview > div > span + span {
  border-left: 1px solid rgba(255, 255, 255, .10);
}

html body .phone-shell .withdraw-wallet-overview small {
  color: rgba(255, 255, 255, .56) !important;
  font-size: 11px;
}

html body .phone-shell .withdraw-wallet-overview > div strong {
  color: #24e78d !important;
  font-size: 16px;
}

html body .phone-shell .recharge-wallet-card h2,
html body .phone-shell .withdraw-form-card label > span {
  color: var(--v70-text) !important;
}

html body .phone-shell .recharge-wallet-card code {
  display: block !important;
  width: 100% !important;
  padding: 11px 12px !important;
  border: 1px solid rgba(255, 255, 255, .10) !important;
  border-radius: 11px !important;
  color: var(--v70-gold-soft) !important;
  font-size: 12px !important;
  line-height: 19px !important;
  overflow-wrap: anywhere;
  background: rgba(0, 0, 0, .22) !important;
}

html body .phone-shell .demo-qr {
  width: 176px !important;
  height: 176px !important;
  margin: 15px auto 12px !important;
  padding: 8px !important;
  border: 0 !important;
  border-radius: 13px !important;
  background: #fff !important;
  box-shadow: 0 9px 24px rgba(0, 0, 0, .32) !important;
}

html body .phone-shell .recharge-copy-action,
html body .phone-shell .generic-action {
  min-height: 44px !important;
  border: 1px solid rgba(242, 216, 145, .20) !important;
  border-radius: 22px !important;
  color: var(--v70-gold-soft) !important;
  background: var(--v70-blue-button) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, .10) !important;
}

html body .phone-shell .withdraw-form-card {
  margin-top: 12px !important;
  padding: 15px !important;
}

html body .phone-shell .money-input {
  min-height: 47px !important;
  border: 1px solid rgba(255, 255, 255, .105) !important;
  border-radius: 12px !important;
  background: rgba(0, 0, 0, .20) !important;
  box-shadow: none !important;
}

html body .phone-shell .money-input input {
  color: var(--v70-text) !important;
}

html body .phone-shell .money-rules {
  margin-top: 14px !important;
  padding: 14px 15px !important;
  border: 0 !important;
  border-radius: 13px !important;
  background: rgba(255, 255, 255, .038) !important;
  box-shadow: none !important;
}

html body .phone-shell .money-rules li {
  color: var(--v70-muted) !important;
  line-height: 1.58 !important;
}

/* 任务/收入：保留参考源码的卡片结构，去掉后期叠出来的厚框。 */
html body .phone-shell .detail-page[data-generic-layout="task"] .jb-task-card,
html body .phone-shell .detail-page[data-generic-layout="income"] .income-royal-card {
  border: 1px solid var(--v70-line) !important;
  border-radius: 15px !important;
  background:
    radial-gradient(circle at 94% 100%, rgba(83, 63, 123, .19), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, .066), rgba(9, 8, 17, .72)) !important;
  box-shadow: 0 12px 27px rgba(0, 0, 0, .25) !important;
}

html body .phone-shell .detail-page[data-generic-layout="task"] .jb-task-card .top_box {
  min-height: 80px !important;
  padding: 12px 14px !important;
  border-bottom: 0 !important;
  background: rgba(0, 0, 0, .16) !important;
}

html body .phone-shell .detail-page[data-generic-layout="task"] .jb-task-card .bottom_box {
  padding: 12px 14px 14px !important;
  background: rgba(255, 255, 255, .025) !important;
}

html body .phone-shell .detail-page[data-generic-layout="task"] .jb-task-card .title,
html body .phone-shell .detail-page[data-generic-layout="income"] .income-royal-card-head > strong,
html body .phone-shell .detail-page[data-generic-layout="income"] .income-royal-settlement-head > strong {
  color: var(--v70-text) !important;
  -webkit-text-fill-color: var(--v70-text) !important;
}

html body .phone-shell .detail-page[data-generic-layout="task"] .jb-task-card .des,
html body .phone-shell .detail-page[data-generic-layout="task"] .jb-task-card .txt {
  color: var(--v70-muted) !important;
  -webkit-text-fill-color: var(--v70-muted) !important;
}

html body .phone-shell .detail-page[data-generic-layout="task"] .jb-task-card .circle span {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .24) !important;
}

html body .phone-shell .detail-page[data-generic-layout="income"] .income-royal-card {
  padding: 18px 16px !important;
}

html body .phone-shell .detail-page[data-generic-layout="income"] .income-royal-stat-grid > span {
  border: 0 !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, .055) !important;
  box-shadow: none !important;
}

html body .phone-shell .detail-page[data-generic-layout="income"] .income-royal-card-head > strong,
html body .phone-shell .detail-page[data-generic-layout="income"] .income-royal-settlement-head > strong,
html body .phone-shell .detail-page[data-generic-layout="income"] .income-royal-rows button > span,
html body .phone-shell .detail-page[data-generic-layout="income"] .income-invite-link strong,
html body .phone-shell .detail-page[data-generic-layout="income"] .income-other-share > span {
  color: #f7f7f5 !important;
  -webkit-text-fill-color: #f7f7f5 !important;
}

html body .phone-shell .detail-page[data-generic-layout="income"] .income-royal-card-head > span,
html body .phone-shell .detail-page[data-generic-layout="income"] .income-royal-settlement-head > button,
html body .phone-shell .detail-page[data-generic-layout="income"] .income-other-share > button {
  color: #16b8e8 !important;
  -webkit-text-fill-color: #16b8e8 !important;
}

html body .phone-shell .detail-page[data-generic-layout="income"] .income-royal-stat-grid small,
html body .phone-shell .detail-page[data-generic-layout="income"] .income-invite-link small {
  color: rgba(255, 255, 255, .58) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, .58) !important;
}

/* 邀请好友：复原参考源码的一体插画 + 四个分享条 + 两项数据。 */
html body .phone-shell .invite-rebate-title {
  width: 100%;
  padding: 5px 9px 0;
  color: var(--v70-text);
  -webkit-text-fill-color: var(--v70-text) !important;
  font-size: 21px;
  font-weight: 650;
  line-height: 1.45;
}

html body .phone-shell .invite-rebate-title em {
  color: #18df8c !important;
  -webkit-text-fill-color: #18df8c !important;
  font-style: normal;
}

html body .phone-shell .invite-source-card {
  width: min(78.667vw, 337px);
  min-height: min(92.267vw, 395px);
  margin: -20px auto 0;
  padding: min(49.067vw, 210px) min(10.667vw, 46px) 14px;
  border: 0 !important;
  background: url('./original/img/img_邀请好友.webp') center / 100% 100% no-repeat !important;
  box-shadow: none !important;
}

html body .phone-shell .invite-source-card > h3 {
  margin: 9px 0 8px;
  color: var(--v70-text) !important;
  -webkit-text-fill-color: var(--v70-text) !important;
  font-size: 14px;
  font-weight: 650;
}

html body .phone-shell .invite-source-card .invite-share-panel {
  display: grid !important;
  gap: 9px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body .phone-shell .invite-source-card .invite-share-panel button {
  min-height: 51px !important;
  display: flex !important;
  align-items: center;
  gap: 11px;
  padding: 0 15px !important;
  border: 0 !important;
  border-radius: 9px !important;
  color: var(--v70-text) !important;
  background: rgba(241, 229, 255, .12) !important;
  box-shadow: none !important;
}

html body .phone-shell .invite-source-card .invite-share-panel button > i {
  width: 30px !important;
  height: 30px !important;
  display: grid;
  place-items: center;
  border: 0 !important;
  border-radius: 50% !important;
}

html body .phone-shell .invite-source-card .invite-share-panel button > i svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
}

html body .phone-shell .invite-source-card .invite-share-panel button > span {
  color: var(--v70-text) !important;
  -webkit-text-fill-color: var(--v70-text) !important;
  font-size: 15px;
  font-weight: 620;
}

html body .phone-shell .detail-page[data-generic-layout="invite"] .invite-stat-grid {
  width: calc(100% - 10px) !important;
  min-height: 102px !important;
  display: grid !important;
  grid-template-columns: 1fr 1px 1fr !important;
  align-items: center !important;
  margin: 8px auto 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 9px !important;
  background: rgba(241, 229, 255, .095) !important;
  box-shadow: none !important;
}

html body .phone-shell .detail-page[data-generic-layout="invite"] .invite-stat-grid > i {
  width: 1px;
  height: 46px;
  background: rgba(255, 255, 255, .16);
}

html body .phone-shell .detail-page[data-generic-layout="invite"] .invite-stat-grid article {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px;
  border: 0 !important;
  background: transparent !important;
}

html body .phone-shell .detail-page[data-generic-layout="invite"] .invite-stat-grid strong {
  color: var(--v70-text) !important;
  -webkit-text-fill-color: var(--v70-text) !important;
  font-size: 21px !important;
}

html body .phone-shell .detail-page[data-generic-layout="invite"] .invite-stat-grid small {
  color: rgba(255, 255, 255, .62) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, .62) !important;
  font-size: 13px !important;
}

html::after {
  content: "SF_UI_LOCK_v70_royal_page_parity" !important;
}

@media (max-width: 360px) {
  html body .phone-shell .invite-source-card {
    padding-top: 172px;
  }

  html body .phone-shell .invite-source-card .invite-share-panel button {
    min-height: 46px !important;
  }
}
