/* H5「我的-历史」Figma 51046:334000 */
:root { color-scheme: dark; font-family: "PingFang SC", "Microsoft YaHei", sans-serif; }
* { box-sizing: border-box; }
html, body { width: 100%; margin: 0; min-height: 100%; background: #010406; }
body { color: #f5f5f5; }
button, a { font: inherit; -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
.mobile-profile-page { min-width: 320px; overflow-x: hidden; }
.mobile-profile-shell { position: relative; width: 100%; min-height: 1511px; margin: 0; overflow: hidden; background: #010406; }
.mobile-profile-glow { position: absolute; z-index: 0; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.mobile-profile-glow--orange { top: -120px; right: -110px; width: 250px; height: 250px; background: rgba(241, 204, 30, .22); }
.mobile-profile-glow--violet { top: 410px; left: -40px; width: 280px; height: 280px; background: rgba(255, 165, 0, .12); }
.mobile-profile-main { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 18px; padding: 24px 16px 112px; }

/* 用户行 */
.mobile-profile-user { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 60px; }
.mobile-profile-user__avatar { position: relative; width: 60px; height: 60px; overflow: hidden; border: 2px solid #ffd24d; border-radius: 50%; background: #161719; }
.mobile-profile-user__avatar > img:first-child { width: 100%; height: 100%; object-fit: cover; }
.mobile-profile-user__avatar img[data-image-state="loading"] { visibility: hidden; }
.mobile-profile-page[data-server-logged-in="true"]:not(.mobile-profile-identity-ready) #mobile-profile-name,
.mobile-profile-page[data-server-logged-in="true"]:not(.mobile-profile-identity-ready) #mobile-profile-id { visibility: hidden; }
.mobile-profile-user__copy { min-width: 0; }
.mobile-profile-user__name-row { display: flex; align-items: center; gap: 4px; min-width: 0; }
.mobile-profile-user__name-row strong { max-width: 92px; overflow: hidden; color: rgba(255,255,255,.9); font-size: 16px; font-weight: 500; line-height: 22px; text-overflow: ellipsis; white-space: nowrap; }
.mobile-profile-user__vip { box-sizing: border-box; width: 24px; height: 24px; padding: 3px; }
.mobile-profile-user__member-tip { max-width: 82px; overflow: hidden; color: #bdbdbd; font-size: 10px; line-height: 16px; text-overflow: ellipsis; white-space: nowrap; }
.mobile-profile-user__id-row { display: flex; gap: 4px; margin-top: 4px; color: rgba(255,255,255,.55); font-size: 12px; line-height: 18px; }
.mobile-profile-user__id-row button { padding: 0; border: 0; background: none; color: inherit; text-decoration: underline; }
/* 「立即登录」Figma 51073:431860（未登录态：#ffb800 底 + 白字 12/18，胶囊 72×28） */
.mobile-profile-user__session {
  display: inline-flex;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  height: 28px;
  padding: 0 12px;
  border: 0;
  border-radius: 100px;
  background: rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .9);
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  white-space: nowrap;
  cursor: pointer;
}
.mobile-profile-user__session[data-session-state="login"] {
  background: #ffb800;
  color: #fff;
}
.mobile-profile-user__session:disabled {
  cursor: default;
  opacity: .85;
}
.mobile-profile-user__session:focus-visible {
  outline: 2px solid #ffb800;
  outline-offset: 2px;
}

/* 资产四列 */
.mobile-profile-stats { display: grid; grid-template-columns: repeat(4, 1fr); height: 44px; color: inherit; text-decoration: none; }
.mobile-profile-stats:focus-visible { outline: 2px solid #f8de72; outline-offset: -2px; }
.mobile-profile-stats div { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.mobile-profile-stats strong { font-size: 16px; line-height: 22px; font-weight: 500; }
.mobile-profile-stats span { color: rgba(255,255,255,.7); font-size: 12px; line-height: 18px; }

/* 会员 / 金币双卡 Figma 51054:363547（标题白字 + Mask 金/橙/青色点） */
.mobile-profile-wallets { display: flex; height: 66px; gap: 0; }
.mobile-profile-wallet {
  position: relative;
  flex: 1 1 0;
  height: 66px;
  overflow: hidden;
  border-radius: 12px;
  color: #fff;
  text-decoration: none;
  background: rgba(0, 0, 0, .1);
  background-color: #0a0a0a;
  box-shadow: inset 0 0 0 0.5px rgba(255, 211, 1, .5);
}
.mobile-profile-wallet--member { margin-right: -3px; z-index: 1; }
.mobile-profile-wallet--coins { z-index: 0; }
.mobile-profile-wallet::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: -40px;
  right: -20px;
  width: 140px;
  height: 130px;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(255, 211, 1, .55) 0%, rgba(197, 108, 255, 0) 72%);
  opacity: .85;
}
.mobile-profile-wallet--coins::before {
  background: radial-gradient(circle at 50% 50%, rgba(255, 211, 1, .55) 0%, rgba(250, 235, 102, 0) 72%);
}
.mobile-profile-wallet::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 10px;
  left: 0;
  width: 50px;
  height: 56px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(197, 108, 255, .35) 0%, rgba(255, 211, 1, .12) 100%);
  opacity: .7;
  filter: blur(8px);
}
.mobile-profile-wallet--coins::after {
  top: 20px;
  width: 54px;
  height: 46px;
  background: linear-gradient(180deg, rgba(255, 120, 149, .35) 0%, rgba(255, 211, 1, .14) 100%);
}
.mobile-profile-wallet__copy {
  position: absolute;
  z-index: 2;
  left: 10px;
  top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: calc(100% - 78px);
}
.mobile-profile-wallet--coins .mobile-profile-wallet__copy { left: 22px; top: 10px; }
.mobile-profile-wallet__title {
  position: relative;
  display: block;
  width: 75px;
  height: 22px;
  margin: 0;
  overflow: hidden;
  font-size: 0;
  line-height: 0;
}
.mobile-profile-wallet__title > img {
  display: block;
  width: 75px;
  height: 22px;
  object-fit: contain;
  object-position: left center;
  pointer-events: none;
}
.mobile-profile-wallet__title-label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  white-space: nowrap;
}
.mobile-profile-wallet small {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: rgba(255,255,255,.55);
  font-size: 10px;
  font-weight: 400;
  line-height: 14px;
  white-space: nowrap;
}
.mobile-profile-wallet small b { color: rgba(255,255,255,.55); font-weight: 400; }
.mobile-profile-wallet em {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #ffc426;
  font-size: 10px;
  font-style: normal;
  font-weight: 400;
  line-height: 14px;
}
.mobile-profile-wallet--member em {
  background: linear-gradient(90deg, #ffd301 0%, #ffe9a0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.mobile-profile-wallet__art {
  position: absolute;
  z-index: 1;
  right: 8px;
  top: -3px;
  width: 73px;
  height: 73px;
  object-fit: contain;
  pointer-events: none;
}
.mobile-profile-wallet--coins .mobile-profile-wallet__art {
  right: 0;
  top: 1px;
  width: 63px;
  height: 63px;
}

/* 下载 + 回家的路 Figma 51054:363597（「快看」#ffb800，「APP」橙金渐变） */
.mobile-profile-promo {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 12px 16px;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(180deg, #1f1f20 0%, #151415 100%);
  -webkit-font-smoothing: antialiased;
}
.mobile-profile-promo::before,
.mobile-profile-promo::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: 95px;
  height: 95px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(60px);
}
.mobile-profile-promo::before { top: -40px; left: -40px; background: rgba(241, 204, 30, .35); }
.mobile-profile-promo::after { right: -30px; bottom: -50px; background: rgba(255, 165, 0, .3); }
.mobile-profile-download {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  color: #fff;
  text-decoration: none;
  transition-property: transform, opacity;
  transition-duration: .15s;
  transition-timing-function: cubic-bezier(.2, 0, 0, 1);
}
.mobile-profile-download:active { transform: scale(.96); }
.mobile-profile-download:focus-visible { outline: 2px solid #ffe199; outline-offset: 3px; }
.mobile-profile-download__logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  outline: 1px solid rgba(255, 255, 255, .1);
  outline-offset: -1px;
}
.mobile-profile-download > span { display: flex; flex-direction: column; min-width: 0; }
.mobile-profile-download strong {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: nowrap;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
  white-space: nowrap;
  text-wrap: balance;
}
/* 「下载」「短剧」白银渐变；「快看」品牌金 #ffb800；「APP」橙金渐变 */
.mobile-profile-download__plain {
  background: linear-gradient(180deg, #fff 0%, #dbe0eb 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.mobile-profile-download__brand {
  color: #ffb800;
  -webkit-text-fill-color: #ffb800;
}
.mobile-profile-download strong em {
  margin-left: 2px;
  background: linear-gradient(135deg, #fe571e 0%, #ffab65 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-style: normal;
}
.mobile-profile-download small { color: rgba(255,255,255,.55); font-size: 12px; line-height: 18px; white-space: nowrap; }
.mobile-profile-download__btn {
  display: block;
  width: 127px;
  height: 40px;
  max-width: 36vw;
  object-fit: contain;
}
.mobile-profile-home-route {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  min-height: 40px;
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: .5px solid #303030;
  line-height: 0;
  text-decoration: none;
  transition-property: filter, transform;
  transition-duration: .2s;
  transition-timing-function: ease;
}
.mobile-profile-home-route img {
  display: block;
  width: min(294px, 100%);
  height: auto;
  margin: 0 auto;
  border-radius: 22px;
  outline: 1px solid rgba(255, 255, 255, .1);
  outline-offset: -1px;
}
.mobile-profile-home-route:active { transform: scale(.96); }
.mobile-profile-home-route:focus-visible { outline: 2px solid #ffe199; outline-offset: 3px; }
@media (hover: hover) { .mobile-profile-home-route:hover { filter: brightness(1.13); } }

/* 活动专区 51058:363652 */
.mobile-profile-activities {
  position: relative;
  min-height: 302px;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  background:
    linear-gradient(#18110b, #18110b) padding-box,
    linear-gradient(135deg, #ffd300 0%, rgba(255, 106, 0, 0) 42%, #a64500 100%) border-box;
  box-shadow: 0 0 5px rgba(0, 0, 0, .1);
}
.mobile-profile-activities h1 {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 12px;
  color: #e8b57a;
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
}
.mobile-profile-activities h1 span {
  background: linear-gradient(180deg, #fff 0%, #de9e6a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.mobile-profile-activities h1 i {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  background: center / contain no-repeat;
}
.mobile-profile-activities h1 i:first-child {
  background-image: url("/static/images/desktop-profile-figma/activity-title-star-left.svg");
}
.mobile-profile-activities h1 i:last-child {
  width: 14px;
  height: 14px;
  background-image: url("/static/images/desktop-profile-figma/activity-title-star-right.svg");
}
.mobile-profile-activities a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid transparent;
  border-radius: 12px;
  background:
    linear-gradient(180deg, #523316 0%, #0f0a08 100%) padding-box,
    linear-gradient(to top left, rgba(245, 215, 152, .55) 0%, rgba(233, 181, 75, .18) 42%, rgba(254, 87, 30, .42) 100%) border-box;
  color: #ffe7bd;
  text-decoration: none;
  transition-property: transform, filter;
  transition-duration: .15s;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}
.mobile-profile-activities a:active { transform: scale(0.96); }
/* Figma 51053:363317 图标光晕：深金 #C06632 星芒，尺寸/透明度按稿收束，禁止白芒 */
.mobile-profile-activities a::before,
.mobile-profile-activities a::after {
  content: none;
  position: absolute;
  left: 50%;
  z-index: 0;
  pointer-events: none;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  transform: translateX(-50%);
}
.mobile-profile-activities a:has(> img)::before { content: ""; }
.mobile-profile-activities__large { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mobile-profile-activities__large a { height: 130px; padding-bottom: 14px; }
/* 大卡：Star4 约 66×61 + 内层暖金；介于满稿与过曝之间 */
.mobile-profile-activities__large a:has(> img)::before {
  top: 14px;
  width: 66px;
  height: 61px;
  opacity: .78;
  background-image: url("/static/images/mobile-profile-figma/activity-glow-star-amber-lg.svg?v=20261012-glow-5");
}
.mobile-profile-activities__large a:has(> img)::after {
  content: "";
  top: 22px;
  width: 46px;
  height: 43px;
  opacity: .28;
  background-image: url("/static/images/mobile-profile-figma/activity-glow-star-gold-lg.svg?v=20261012-glow-5");
}
.mobile-profile-activities__large img {
  position: absolute;
  z-index: 1;
  top: 17px;
  left: 50%;
  width: 64px;
  height: 64px;
  object-fit: contain;
  transform: translateX(-50%);
}
.mobile-profile-activities b {
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, #fff 0%, #ffecc6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
}
.mobile-profile-badge {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  display: grid;
  width: 42px;
  height: 32px;
  place-items: center;
  padding: 0 11px 9px 0;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  line-height: 12px;
  background-position: 0 0;
  background-repeat: no-repeat;
  background-size: 42px 32px;
}
.mobile-profile-badge__text { display: block; transform: rotate(-15deg); transform-origin: center; white-space: nowrap; }
.mobile-profile-badge--hot { background-image: url("/static/images/mobile-profile-badge-hot.svg"); }
.mobile-profile-badge--daily { background-image: url("/static/images/mobile-profile-badge-daily.svg"); }
.mobile-profile-badge--recommended { background-image: url("/static/images/mobile-profile-badge-recommended.svg"); }
.mobile-profile-activities__small { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.mobile-profile-activities__small a {
  height: 96px;
  padding-bottom: 10px;
  background:
    linear-gradient(180deg, #513216 0%, #120c09 100%) padding-box,
    linear-gradient(to top left, rgba(245, 215, 152, .55) 0%, rgba(233, 181, 75, .18) 42%, rgba(254, 87, 30, .42) 100%) border-box;
}
/* 小卡：深金 Star4 主层 + 同色紧星内层（禁止 white SVG） */
.mobile-profile-activities__small a:has(> img)::before {
  top: 8px;
  width: 48px;
  height: 45px;
  opacity: .82;
  background-image: url("/static/images/mobile-profile-figma/activity-glow-star-amber-sm.svg?v=20261012-glow-5");
}
.mobile-profile-activities__small a:has(> img)::after {
  content: "";
  top: 14px;
  width: 34px;
  height: 32px;
  opacity: .4;
  background-image: url("/static/images/mobile-profile-figma/activity-glow-star-gold-sm.svg?v=20261012-glow-5");
}
.mobile-profile-activities__small img {
  position: absolute;
  z-index: 1;
  top: 9px;
  left: 50%;
  width: 52px;
  height: 52px;
  object-fit: contain;
  transform: translateX(-50%);
}
.mobile-profile-activities__small b {
  background: linear-gradient(180deg, #fff 0%, #e5c499 100%);
  -webkit-background-clip: text;
  background-clip: text;
  font-size: 12px;
  line-height: 18px;
}
.mobile-profile-activities a.is-unavailable { opacity: .5; filter: grayscale(.45); cursor: not-allowed; }
.mobile-profile-activities__large[hidden], .mobile-profile-activities__small[hidden] { display: none; }

/* 历史 / 收藏 / 点赞 51046:335721 */
.mobile-profile-library { min-height: 342px; padding: 18px 12px; border-radius: 12px; background: #0e1012; }
.mobile-profile-library.has-pagination { padding-bottom: 0; }
/* 选中条复用 .mobile-channel-tabs（前黄后红 16×4）；间距保持「我的」稿 */
.mobile-profile-library__tabs.mobile-channel-tabs {
  width: auto;
  gap: 28px;
  padding: 0;
}
.mobile-profile-library__tabs.mobile-channel-tabs button { padding: 0; }
.mobile-profile-library__filters { display: flex; gap: 12px; margin-top: 12px; }
.mobile-profile-library__filters button {
  width: 58px;
  height: 24px;
  padding: 0;
  border: 1px solid #989898;
  border-radius: 999px;
  background: transparent;
  color: #989898;
  font-size: 12px;
  font-weight: 500;
}
.mobile-profile-library__filters button.is-active {
  border-color: #ffb800;
  background: #ffb800;
  color: #fff;
}
.mobile-profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 9px; margin-top: 12px; }
.mobile-profile-card { position: relative; }
.mobile-profile-card__action {
  position: absolute;
  z-index: 3;
  top: 2px;
  right: 2px;
  display: flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0,0,0,.42);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.mobile-profile-card__action:focus-visible { outline: 2px solid #e9b54b; outline-offset: 2px; }
.mobile-profile-card__action:disabled { cursor: wait; }
/* 点赞与收藏图标同为 24px，对齐封面右上角操作视觉 */
.mobile-profile-card__unlike .mobile-like-motion-graphic { width: 24px; height: 24px; flex: 0 0 24px; }
.mobile-profile-card__unlike[data-mobile-like-motion] .mobile-like-motion-frame { width: 24px; height: 24px; }
.mobile-profile-card__unlike[data-mobile-like-motion] .mobile-like-motion-frame[data-mobile-like-frame="1"],
.mobile-profile-card__unlike[data-mobile-like-motion] .mobile-like-motion-frame[data-mobile-like-frame="2"] { height: 26px; }
.mobile-profile-card__unlike[data-mobile-like-motion] .mobile-like-motion-frame[data-mobile-like-frame="0"],
.mobile-profile-card__unlike[data-mobile-like-motion] .mobile-like-motion-frame[data-mobile-like-frame="1"],
.mobile-profile-card__unlike[data-mobile-like-motion] .mobile-like-motion-frame[data-mobile-like-frame="2"],
.mobile-profile-card__unlike[data-mobile-like-motion] .mobile-like-motion-frame[data-mobile-like-frame="3"] {
  transform: translate(-50%, calc(-50% + 6px));
}
.mobile-profile-card__like-count { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.mobile-profile-card__unfavorite .favorite-motion--card { --favorite-motion-icon-size: 24px; }
.mobile-profile-grid[hidden] { display: none; }
.mobile-profile-loading { min-height: 238px; padding-top: 104px; color: #777b80; font-size: 12px; text-align: center; }
.mobile-profile-loading[hidden] { display: none; }
.mobile-profile-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 238px; padding-top: 6px; text-align: center; }
.mobile-profile-empty[hidden] { display: none; }
.mobile-profile-empty > img { width: 120px; height: 120px; object-fit: contain; }
.mobile-profile-empty strong { margin-top: 8px; font-size: 14px; line-height: 20px; }
.mobile-profile-empty p { margin: 8px 0; color: #55595e; font-size: 12px; line-height: 18px; }
.mobile-profile-empty button { height: 24px; padding: 0 12px; border: .5px solid #e9b54b; border-radius: 99px; background: transparent; color: #e9b54b; font-size: 10px; }
