/* 橙子文游主界面 App
   目标：完全采用 demo 的手机壳、雾蓝色、玻璃卡片和底部 tab 结构。 */

:root {
  --app-bg: #eaf1f5;
  --phone-bg: #f7f9fa;
  --paper: #fcfbf6;
  --card: rgba(255, 255, 255, 0.78);
  --solid: #ffffff;
  --text: #263238;
  --muted: #6f7d86;
  --faint: #9aa7ad;
  --primary: #6e9db7;
  --primary-deep: #3f6f8a;
  --primary-soft: #e6f0f5;
  --lavender: #b9aecf;
  --warm: #c6a36a;
  --line: #dce6e8;
  --shadow: 0 18px 45px rgba(52, 81, 96, 0.15);
  --small-shadow: 0 10px 28px rgba(52, 81, 96, 0.1);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 20%, color-mix(in srgb, var(--primary) 16%, transparent), transparent 28%),
    radial-gradient(circle at 78% 12%, color-mix(in srgb, var(--warm) 14%, transparent), transparent 26%),
    linear-gradient(135deg, #f5f8fa 0%, var(--app-bg) 46%, #f7efe8 100%);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.phone-shell {
  width: min(100vw, 448px);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 12px;
}

.phone-app {
  position: relative;
  min-height: calc(100vh - 24px);
  min-height: calc(100dvh - 24px);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent);
  border-radius: 34px;
  background:
    radial-gradient(circle at 84% 12%, rgba(185, 174, 207, 0.28), transparent 20%),
    radial-gradient(circle at 16% 36%, color-mix(in srgb, var(--primary) 18%, transparent), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), var(--phone-bg));
  box-shadow: var(--shadow);
}

.phone-app::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background-image:
    radial-gradient(circle, color-mix(in srgb, var(--primary) 20%, transparent) 1px, transparent 1.5px),
    radial-gradient(circle, color-mix(in srgb, var(--warm) 16%, transparent) 1px, transparent 1.5px);
  background-position:
    28px 84px,
    120px 180px;
  background-size:
    120px 180px,
    150px 210px;
  opacity: 0.42;
}

.screen {
  position: relative;
  z-index: 2;
  display: none;
  height: calc(100vh - 24px);
  height: calc(100dvh - 24px);
  min-height: 700px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 16px 96px;
  scrollbar-width: none;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.screen::-webkit-scrollbar,
.app-panel::-webkit-scrollbar,
.horizontal-row::-webkit-scrollbar,
.filter-chips::-webkit-scrollbar,
.hero-scroll::-webkit-scrollbar {
  display: none;
}

.screen--active {
  display: block;
}

.app-panel {
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.top-brand {
  position: sticky;
  top: 0;
  z-index: 8;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 8px;
  place-items: center;
  min-height: 72px;
  margin: 0 -16px;
  padding: 14px 16px 13px;
  border-bottom: 1px solid rgba(220, 230, 232, 0.72);
  background: rgba(247, 249, 250, 0.88);
  text-align: center;
  backdrop-filter: blur(18px);
}

.top-brand__copy {
  min-width: 0;
}

.top-brand__spacer {
  width: 42px;
  height: 42px;
}

.top-brand__notice {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--primary-deep);
}

.top-brand__notice:hover,
.top-brand__notice:focus-visible {
  background: var(--primary-soft);
  outline: none;
}

.top-brand h1 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.top-brand p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.top-brand__notice .icon-svg {
  width: 21px;
  height: 21px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 22px 0 12px;
}

.section-title h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.25;
}

.section-title span {
  color: var(--muted);
  font-size: 12px;
}

.section-title__action {
  min-height: 34px;
  border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent);
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--primary-deep);
  font-size: 12px;
  font-weight: 900;
}

.soft-panel {
  border: 1px solid rgba(220, 230, 232, 0.8);
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--small-shadow);
  backdrop-filter: blur(18px);
}

.primary-button,
.ghost-button,
.mini-button,
.chip,
.tabbar__item,
.app-tile,
.creator-option,
.workshop-entry,
.shop-plan,
.game-card,
.quick-card,
.top-brand__notice {
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.primary-button:active,
.ghost-button:active,
.mini-button:active,
.chip:active,
.tabbar__item:active,
.app-tile:active,
.creator-option:active,
.workshop-entry:active,
.shop-plan:active,
.game-card:active,
.quick-card:active,
.top-brand__notice:active {
  transform: translateY(1px);
}

.primary-button,
.ghost-button,
.mini-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}

.primary-button {
  border: 0;
  padding: 0 18px;
  background: linear-gradient(135deg, var(--primary), #86b6c8);
  color: var(--solid);
  box-shadow: 0 12px 24px color-mix(in srgb, var(--primary) 25%, transparent);
}

.ghost-button {
  border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent);
  padding: 0 15px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--primary-deep);
}

.mini-button {
  min-height: 36px;
  padding: 0 13px;
  background: var(--primary-soft);
  color: var(--primary-deep);
  font-size: 13px;
}

.field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  outline: none;
}

input {
  height: 42px;
  padding: 0 13px;
}

textarea {
  min-height: 90px;
  padding: 12px 13px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: color-mix(in srgb, var(--primary) 58%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 14%, transparent);
}

.search-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 16px;
}

.hero-scroll,
.horizontal-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 88%;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.featured-card {
  position: relative;
  display: block;
  min-height: 174px;
  overflow: hidden;
  border-radius: 24px;
  color: var(--solid);
  scroll-snap-align: start;
  box-shadow: var(--small-shadow);
}

.featured-card__link,
.hot-card__link {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.featured-card__art,
.game-cover,
.hot-card__cover {
  position: absolute;
  inset: 0;
  background-color: color-mix(in srgb, var(--primary) 22%, white);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.cover-night {
  background: linear-gradient(135deg, #2b4660, #7a5270);
}

.cover-space {
  background: linear-gradient(135deg, #335a78, #9e8cc8);
}

.cover-xiuxian {
  background-color: #4a5568;
  background-image:
    linear-gradient(180deg, rgba(30, 40, 60, 0.1), rgba(30, 40, 60, 0.3)),
    url("/修仙传.png");
  background-size: cover;
  background-position: center;
}

.cover-sea {
  background: linear-gradient(135deg, #477e8a, #9fc4c2);
}

.cover-starjourney {
  background-color: #526f79;
  background-image: url("data:image/svg+xml,%3Csvg width='560' height='360' viewBox='0 0 560 360' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='560' height='360' fill='%23526f79'/%3E%3Cpath d='M52 78h180M52 108h132M52 138h92M356 96h110M356 122h86' stroke='%23f8faf8' stroke-opacity='.5' stroke-width='3' stroke-linecap='round'/%3E%3Crect x='330' y='76' width='160' height='96' rx='18' fill='%23f8faf8' fill-opacity='.16'/%3E%3Crect x='82' y='202' width='156' height='82' rx='18' fill='%23f8faf8' fill-opacity='.16'/%3E%3Cpath d='M96 226h92M96 250h64' stroke='%23f8faf8' stroke-opacity='.6' stroke-width='3' stroke-linecap='round'/%3E%3Ccircle cx='420' cy='230' r='58' fill='%23b18f83' fill-opacity='.32'/%3E%3Cpath d='M388 230h64M420 198v64' stroke='%23f8faf8' stroke-opacity='.55' stroke-width='4' stroke-linecap='round'/%3E%3Cpath d='M280 34v292' stroke='%23f8faf8' stroke-opacity='.18' stroke-width='2'/%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
}

.cover-live-streamer {
  background-color: #2a2520;
  background-image:
    linear-gradient(180deg, rgba(40, 30, 20, 0.1), rgba(40, 30, 20, 0.3)),
    url("/直播神豪.png");
  background-size: cover;
  background-position: center;
}

.cover-kuaichuan {
  background-color: #6b5c8f;
  background-image:
    linear-gradient(180deg, rgba(35, 27, 55, 0.02), rgba(35, 27, 55, 0.26)),
    url("/快穿系统.png");
  background-size: cover;
  background-position: center;
}

.cover-yulequan {
  background-color: #4a3a5c;
  background-image:
    linear-gradient(180deg, rgba(50, 30, 60, 0.1), rgba(50, 30, 60, 0.3)),
    url("/娱乐圈.png");
  background-size: cover;
  background-position: center;
}

.cover-school {
  background: linear-gradient(135deg, #8bb6b0, #d8c28e);
}

.cover-tianju {
  background-color: #4a5a3a;
  background-image:
    linear-gradient(180deg, rgba(40, 50, 30, 0.1), rgba(40, 50, 30, 0.3)),
    url("/古代种田模拟器.png");
  background-size: cover;
  background-position: center;
}

.cover-violet {
  background: linear-gradient(135deg, #706aa7, #b9aecf);
}

.cover-manhuangji {
  background-color: #5a4a3a;
  background-image:
    linear-gradient(180deg, rgba(50, 40, 30, 0.1), rgba(50, 40, 30, 0.3)),
    url("/蛮荒纪.png");
  background-size: cover;
  background-position: center;
}

.cover-nvzu {
  background-color: #5c4a6a;
  background-image:
    linear-gradient(180deg, rgba(60, 40, 70, 0.1), rgba(60, 40, 70, 0.3)),
    url("/女尊世界.png");
  background-size: cover;
  background-position: center;
}

.cover-campus-romance {
  background-color: #4a6a5a;
  background-image:
    linear-gradient(180deg, rgba(40, 60, 50, 0.1), rgba(40, 60, 50, 0.3)),
    url("/校园恋爱.png");
  background-size: cover;
  background-position: center;
}

.cover-letter-for-you {
  background-color: #6a4a7a;
  background-image:
    linear-gradient(180deg, rgba(60, 40, 70, 0.1), rgba(60, 40, 70, 0.3)),
    url("/我在快穿世界收情书.png");
  background-size: cover;
  background-position: center;
}

.cover-saozimoniqi {
  background-color: #8B5A6B;
  background-image:
    linear-gradient(180deg, rgba(80, 40, 50, 0.1), rgba(80, 40, 50, 0.3)),
    url("/嫂子模拟器.png");
  background-size: cover;
  background-position: center;
}

.featured-card__overlay,
.game-cover__overlay,
.hot-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(24, 42, 52, 0), rgba(24, 42, 52, 0.36));
}

.hot-card__overlay {
  display: none;
}

.featured-card__content {
  position: relative;
  z-index: 2;
  display: flex;
  height: 100%;
  min-height: 174px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
}

.label-pill {
  width: max-content;
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.22);
  color: inherit;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(14px);
}

.featured-card h3,
.game-card h3,
.hot-card h3 {
  margin: 10px 0 6px;
  font-size: 19px;
  line-height: 1.2;
}

.featured-card p,
.game-card p,
.hot-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  line-height: 1.55;
}

.hot-row {
  grid-auto-columns: 138px;
}

.hot-card {
  position: relative;
  display: block;
  min-height: 164px;
  overflow: hidden;
  border: 1px solid rgba(220, 230, 232, 0.8);
  border-radius: 18px;
  background: var(--card);
  scroll-snap-align: start;
}

.hot-card__cover {
  inset: 0 0 54px;
}

.hot-card__body {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 10px;
  background: rgba(255, 255, 255, 0.9);
}

.hot-card h3 {
  margin: 0 0 4px;
  color: var(--text);
  font-size: 14px;
}

.hot-card p {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-drawer {
  display: none;
  margin-bottom: 14px;
  padding: 14px;
}

.filter-drawer--open {
  display: block;
}

.filter-row {
  margin-bottom: 12px;
}

.filter-row:last-child {
  margin-bottom: 0;
}

.filter-row__label {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.filter-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.chip {
  flex: 0 0 auto;
  min-height: 34px;
  border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent);
  border-radius: 999px;
  padding: 0 13px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.chip--active {
  border-color: color-mix(in srgb, var(--primary) 72%, transparent);
  background: var(--primary-soft);
  color: var(--primary-deep);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.game-card {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(220, 230, 232, 0.86);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--text);
  text-align: left;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(52, 81, 96, 0.08);
}

.game-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.favorite-button {
  width: calc(100% - 18px);
  min-height: 32px;
  margin: 0 9px 9px;
  border: 1px solid color-mix(in srgb, var(--primary) 20%, transparent);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--primary-deep);
  font-size: 12px;
  font-weight: 900;
  position: relative;
  z-index: 5;
}

.favorite-button--floating {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  width: auto;
  min-height: 30px;
  margin: 0;
  padding: 0 11px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
}

.favorite-button--active {
  border-color: color-mix(in srgb, var(--primary-deep) 42%, transparent);
  background: var(--primary-soft);
}

.game-cover {
  position: relative;
  height: auto;
  aspect-ratio: 1 / 1.08;
  border-radius: 18px 18px 0 0;
}

.game-card .game-cover__overlay,
.game-card .game-cover__title {
  display: none;
}

.game-cover__title {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 2;
  color: var(--solid);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.25;
  text-shadow: 0 2px 10px rgba(24, 42, 52, 0.3);
}

.game-card__body {
  padding: 10px 10px 9px;
}

.game-card__meta,
.hot-card h3,
.featured-card h3 {
  display: flex;
  align-items: center;
  gap: 7px;
}

.game-card__meta {
  justify-content: space-between;
}

.featured-card h3,
.hot-card h3 {
  justify-content: space-between;
}

.featured-card h3 {
  flex-wrap: wrap;
}

.game-card h3 {
  min-width: 0;
  margin: 0;
  color: var(--text);
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-card p {
  display: -webkit-box;
  min-height: 34px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.tag-line {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}

.game-count-badge {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 3px 7px;
  background: var(--primary-soft);
  color: var(--primary-deep);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}

.game-count-badge--light {
  background: rgba(255, 255, 255, 0.22);
  color: inherit;
}

.tag {
  border-radius: 999px;
  padding: 4px 8px;
  background: var(--primary-soft);
  color: var(--primary-deep);
  font-size: 11px;
  font-weight: 800;
}

.creator-page {
  margin: 0 -16px;
  min-height: calc(100vh - 116px);
  background:
    linear-gradient(180deg, rgba(247, 249, 250, 0.94), rgba(236, 243, 246, 0.76) 34%, transparent);
}

.creator-topbar {
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(220, 230, 232, 0.72);
  background: rgba(247, 249, 250, 0.92);
  backdrop-filter: blur(18px);
}

.creator-topbar__label {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.creator-topbar h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
  text-align: left;
}

.creator-topbar__action {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 14px;
  padding: 0 14px;
  background: #263238;
  color: var(--solid);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.creator-content {
  display: grid;
  gap: 18px;
  padding: 18px 16px 112px;
}

.creator-brief {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 102px;
  gap: 12px;
  overflow: hidden;
  border-radius: 22px;
  padding: 18px;
  background:
    radial-gradient(circle at 92% 14%, rgba(255, 255, 255, 0.2), transparent 26%),
    linear-gradient(145deg, #263238, #4f768a);
  color: var(--solid);
}

.creator-brief__copy {
  min-width: 0;
}

.creator-brief__copy span {
  display: block;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.creator-brief h2 {
  margin: 0;
  max-width: 10em;
  font-size: 24px;
  line-height: 1.22;
  text-wrap: balance;
}

.creator-brief p {
  margin: 12px 0 0;
  max-width: 26ch;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.65;
}

.creator-brief__panel {
  display: grid;
  align-content: center;
  justify-items: center;
  border-radius: 16px;
  padding: 12px 8px;
  background: rgba(255, 255, 255, 0.12);
}

.creator-brief__panel strong,
.creator-brief__panel span {
  display: block;
}

.creator-brief__panel strong {
  font-size: 42px;
  line-height: 1;
}

.creator-brief__panel span {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  font-weight: 800;
}

.creator-workbench {
  display: grid;
  gap: 12px;
}

.creator-workbench__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.creator-workbench__header h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

.creator-workbench__header span {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.creator-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.creator-option {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 166px;
  padding: 14px;
  border: 1px solid rgba(220, 230, 232, 0.9);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  text-align: left;
  text-decoration: none;
  box-shadow: var(--small-shadow);
}

.creator-option--primary {
  grid-column: 1 / -1;
  min-height: 148px;
  border-color: color-mix(in srgb, var(--primary) 38%, transparent);
  background:
    radial-gradient(circle at 90% 12%, color-mix(in srgb, var(--primary) 20%, transparent), transparent 28%),
    rgba(255, 255, 255, 0.92);
}

.creator-option__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.creator-option__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary-deep);
}

.creator-option__title {
  display: block;
  margin: 0;
  font-size: 16px;
  font-weight: 900;
}

.creator-option__desc {
  display: block;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.creator-option__pill {
  justify-self: start;
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--primary-soft);
  color: var(--primary-deep);
  font-size: 11px;
  font-weight: 800;
}

.creator-option__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  color: var(--primary-deep);
  font-size: 13px;
  font-weight: 900;
}

.creator-option__cta svg {
  width: 16px;
  height: 16px;
}

.works-card {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  padding: 16px;
  border: 1px solid rgba(220, 230, 232, 0.9);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  text-decoration: none;
  box-shadow: var(--small-shadow);
}

.works-card--ledger {
  margin-top: 0;
  border-color: rgba(38, 50, 56, 0.16);
  background: #263238;
  color: var(--solid);
}

.works-card__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary-deep);
}

.works-card--ledger .works-card__icon {
  background: rgba(255, 255, 255, 0.12);
  color: var(--solid);
}

.works-card__body {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.works-card h3 {
  margin: 0 0 4px;
  font-size: 19px;
}

.works-card p {
  margin: 0;
  color: var(--muted);
}

.works-card__body strong {
  font-size: 17px;
  line-height: 1.2;
}

.works-card__body span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.works-card__action {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 900;
}

.works-card__arrow {
  margin-left: auto;
  color: var(--faint);
}

.works-card--ledger .works-card__arrow {
  margin-left: 0;
  color: rgba(255, 255, 255, 0.62);
}

.workshop-home .creator-content {
  gap: 16px;
}

.workshop-section {
  display: grid;
  gap: 12px;
}

.workshop-entry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.workshop-entry {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 164px;
  border: 1px solid rgba(220, 230, 232, 0.9);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  text-align: left;
  text-decoration: none;
  box-shadow: var(--small-shadow);
}

.workshop-entry--primary {
  grid-column: 1 / -1;
  min-height: 150px;
  border-color: color-mix(in srgb, var(--primary) 36%, transparent);
  background:
    radial-gradient(circle at 90% 10%, color-mix(in srgb, var(--primary) 20%, transparent), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(236, 243, 246, 0.78));
}

.workshop-entry__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.workshop-entry__pill {
  justify-self: start;
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--primary-soft);
  color: var(--primary-deep);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.workshop-entry__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(38, 50, 56, 0.08);
  color: #4f768a;
}

.workshop-entry__title {
  display: block;
  margin: 0;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.3;
}

.workshop-entry__desc {
  display: block;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.workshop-entry__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  color: var(--primary-deep);
  font-size: 13px;
  font-weight: 900;
}

.workshop-entry__cta svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 374px) {
  .creator-brief {
    grid-template-columns: 1fr;
  }

  .creator-brief__panel {
    justify-items: start;
  }

  .workshop-entry-grid {
    grid-template-columns: 1fr;
  }

  .workshop-entry--primary {
    grid-column: auto;
  }
}

.balance-card {
  margin-top: 16px;
  padding: 18px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 82% 24%, rgba(255, 255, 255, 0.3), transparent 22%),
    linear-gradient(135deg, var(--primary-deep), var(--primary));
  color: var(--solid);
  box-shadow: var(--small-shadow);
}

.balance-card span {
  font-size: 13px;
  opacity: 0.88;
}

.balance-card strong {
  display: block;
  margin-top: 8px;
  font-size: 34px;
  line-height: 1;
}

.shop-list,
.quick-list,
.card-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.shop-card,
.quick-card,
.settings-block {
  padding: 15px;
}

.shop-card h3,
.quick-card h3,
.settings-block h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.shop-card p,
.quick-card p,
.settings-block p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.redeem-history__list {
  display: grid;
  gap: 10px;
}

.redeem-history__item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  padding: 12px;
  border: 1px solid rgba(220, 230, 232, 0.86);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.64);
}

.redeem-history__main,
.redeem-history__side {
  display: grid;
  gap: 3px;
}

.redeem-history__main strong,
.redeem-history__side strong {
  color: var(--text);
  font-size: 14px;
}

.redeem-history__main span,
.redeem-history__side span {
  color: var(--muted);
  font-size: 12px;
}

.redeem-history__side {
  text-align: right;
}

.redeem-history__item code {
  grid-column: 1 / -1;
  width: fit-content;
  max-width: 100%;
  padding: 4px 7px;
  overflow-wrap: anywhere;
  border-radius: 6px;
  background: rgba(226, 236, 239, 0.72);
  color: var(--text);
  font-size: 12px;
}

.redeem-history__empty {
  padding: 14px 12px;
  border-radius: 10px;
  background: rgba(226, 236, 239, 0.55);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.redeem-history__empty--error {
  color: #b42318;
}

.quick-card {
  width: 100%;
  border: 1px solid rgba(220, 230, 232, 0.8);
  color: var(--text);
  text-align: left;
}

.form-card {
  display: grid;
  gap: 14px;
  margin-top: 16px;
  padding: 16px;
}

.form-card h3 {
  margin: 0;
  font-size: 17px;
}

.muted-line {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

select {
  width: 100%;
  height: 42px;
  border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent);
  border-radius: 14px;
  padding: 0 13px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  outline: none;
}

.inline-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button-row--compact {
  gap: 7px;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 16px;
  padding: 6px;
  border: 1px solid rgba(220, 230, 232, 0.84);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 10px 24px rgba(52, 81, 96, 0.08);
}

.segmented__button {
  min-height: 38px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.segmented__button--active {
  background: var(--primary-soft);
  color: var(--primary-deep);
}

.segmented--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.switch-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.switch-row strong,
.switch-row small {
  display: block;
}

.switch-row strong {
  font-size: 15px;
}

.switch-row small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.switch-control {
  position: relative;
  display: inline-flex;
  width: 52px;
  height: 30px;
  flex: 0 0 auto;
}

.switch-control input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}

.switch-control span {
  width: 100%;
  border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.56);
}

.switch-control span::before {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--solid);
  box-shadow: 0 5px 12px rgba(52, 81, 96, 0.18);
  content: "";
  transition: transform 160ms ease;
}

.switch-control input:checked + span {
  border-color: color-mix(in srgb, var(--primary) 45%, transparent);
  background: linear-gradient(135deg, var(--primary), #86b6c8);
}

.switch-control input:checked + span::before {
  transform: translateX(22px);
}

.beauty-preview {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 86px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent);
  border-radius: 20px;
  background:
    radial-gradient(circle at 82% 20%, color-mix(in srgb, var(--warm) 22%, transparent), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), var(--primary-soft));
}

.beauty-preview__mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: var(--solid);
  color: var(--primary-deep);
  box-shadow: 0 10px 22px rgba(52, 81, 96, 0.12);
}

.beauty-preview strong,
.beauty-preview span {
  display: block;
}

.beauty-preview strong {
  font-size: 17px;
}

.beauty-preview span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.beauty-section {
  display: grid;
  gap: 9px;
}

.beauty-section h4 {
  margin: 2px 0 0;
  color: var(--primary-deep);
  font-size: 13px;
}

.color-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.color-field {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.color-field input {
  height: 42px;
  padding: 5px;
  border-radius: 14px;
}

.color-field .color-code-input {
  height: 34px;
  padding: 0 8px;
  font-family: Consolas, "Microsoft YaHei", monospace;
  font-size: 12px;
  text-transform: lowercase;
}

.beauty-presets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.beauty-preset {
  display: grid;
  justify-items: center;
  gap: 7px;
  min-width: 0;
  min-height: 78px;
  border: 1px solid color-mix(in srgb, var(--primary) 16%, transparent);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.beauty-preset--active {
  border-color: color-mix(in srgb, var(--primary-deep) 42%, transparent);
  background: var(--primary-soft);
}

.beauty-swatch {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(52, 81, 96, 0.15);
}

.code-textarea {
  min-height: 190px;
  font-family: Consolas, "Microsoft YaHei", monospace;
  font-size: 12px;
  line-height: 1.6;
}

.api-float {
  position: absolute;
  right: 16px;
  bottom: 96px;
  z-index: 42;
  width: 62px;
  height: 62px;
  pointer-events: none;
  touch-action: none;
}

.api-float[hidden] {
  display: none;
}

.api-float__button,
.api-float__panel {
  pointer-events: auto;
}

.api-float__button {
  display: grid;
  place-items: center;
  gap: 2px;
  width: 62px;
  height: 62px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  color: var(--primary-deep);
  box-shadow:
    0 18px 30px rgba(52, 81, 96, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  user-select: none;
}

.api-float--dragging .api-float__button {
  cursor: grabbing;
  transform: scale(1.03);
}

.api-float__button span {
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.api-float__button .icon-svg {
  width: 19px;
  height: 19px;
}

.api-float__panel {
  position: absolute;
  left: 0;
  right: auto;
  bottom: 74px;
  width: min(330px, calc(100vw - 32px));
  padding: 14px;
}

.api-float--panel-below .api-float__panel {
  top: 74px;
  bottom: auto;
}

.api-float--panel-left .api-float__panel {
  right: 0;
  left: auto;
}

.api-float__panel[hidden] {
  display: none;
}

.api-float__header {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.api-float__header > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary-deep);
}

.api-float__header strong,
.api-float__header small {
  display: block;
}

.api-float__header strong {
  font-size: 15px;
}

.api-float__header small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary-deep);
  font-size: 20px;
  line-height: 1;
}

.api-preset-name {
  margin-bottom: 10px;
}

.api-preset-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.api-preset-manager {
  display: grid;
  gap: 10px;
}

.api-float .api-preset-manager {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.api-mode-card {
  display: grid;
  gap: 10px;
}

.api-mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.api-mode-switch__button {
  display: grid;
  gap: 4px;
  min-height: 58px;
  border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent);
  border-radius: 15px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--muted);
  text-align: left;
}

.api-mode-switch__button strong,
.api-mode-switch__button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.api-mode-switch__button strong {
  color: var(--text);
  font-size: 13px;
}

.api-mode-switch__button span {
  font-size: 11px;
}

.api-mode-switch__button--active {
  border-color: color-mix(in srgb, var(--primary-deep) 42%, transparent);
  background: var(--primary-soft);
  color: var(--primary-deep);
}

.api-orange-list {
  display: grid;
  gap: 10px;
}

.api-float-settings {
  width: 100%;
  margin-top: 10px;
}

.api-preset-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.api-preset {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent);
  border-radius: 15px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--text);
  text-align: left;
}

.api-preset strong,
.api-preset small {
  display: block;
}

.api-preset strong {
  font-size: 13px;
}

.api-preset small {
  overflow: hidden;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.api-preset > span:last-child {
  color: var(--primary-deep);
  font-size: 12px;
  font-weight: 900;
}

.api-preset--active {
  background: var(--primary-soft);
  border-color: color-mix(in srgb, var(--primary-deep) 38%, transparent);
}

.orange-model-btn--pending {
  opacity: 0.72;
  cursor: wait;
}

.api-preset-delete {
  min-height: 42px;
  border: 1px solid color-mix(in srgb, var(--primary) 14%, transparent);
  border-radius: 14px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.balance-detail span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.balance-detail strong {
  display: block;
  margin: 7px 0 10px;
  color: var(--primary-deep);
  font-size: 34px;
  line-height: 1;
}

.profile-panel {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 22px 16px;
  text-align: center;
}

.avatar--large {
  width: 72px;
  height: 72px;
  border-radius: 24px;
  font-size: 30px;
}

.profile-panel h3 {
  margin: 6px 0 0;
  font-size: 20px;
}

.profile-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.avatar-upload {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  margin-top: 8px;
  border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent);
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--primary-deep);
  font-size: 13px;
  font-weight: 800;
}

.avatar-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.avatar-upload span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.avatar-upload .icon-svg {
  width: 17px;
  height: 17px;
}

.stats-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
  padding: 15px;
}

.stats-card div {
  border-radius: 16px;
  padding: 12px 8px;
  background: rgba(230, 240, 245, 0.62);
  text-align: center;
}

.stats-card strong,
.stats-card span {
  display: block;
}

.stats-card strong {
  color: var(--primary-deep);
  font-size: 21px;
}

.stats-card span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.empty-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 28px 16px;
  text-align: center;
}

.empty-card__icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 24px;
  background: var(--primary-soft);
  color: var(--primary-deep);
}

.empty-card h3,
.empty-card p {
  margin: 0;
}

.empty-card p {
  color: var(--muted);
}

.work-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
}

.work-thumb {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background-color: color-mix(in srgb, var(--primary) 18%, white);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.work-body h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.work-body p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
}

.model-list {
  display: grid;
  max-height: 46vh;
  overflow-y: auto;
  padding-right: 2px;
}

.result-box--error {
  border-color: rgba(200, 86, 86, 0.24);
  background: rgba(200, 86, 86, 0.08);
  color: #9d4a4a;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 14px;
  padding: 22px 12px 10px;
}

.app-tile {
  display: grid;
  gap: 7px;
  justify-items: center;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  text-decoration: none;
}

.app-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 19px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(230, 240, 245, 0.8));
  color: var(--primary-deep);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 10px 22px rgba(85, 92, 117, 0.12);
}

.app-tile span:last-child {
  max-width: 68px;
  color: #526773;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}

.mine-hero {
  position: relative;
  min-height: 250px;
  margin: 12px -4px 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 30px;
  background:
    radial-gradient(circle at 24% 26%, rgba(255, 255, 255, 0.8), transparent 20%),
    radial-gradient(circle at 76% 18%, rgba(185, 174, 207, 0.38), transparent 23%),
    linear-gradient(145deg, #f7edf5, #eaf3f6 58%, #f7efe5);
  box-shadow: var(--small-shadow);
}

.profile-card {
  position: relative;
  margin: 24px 14px 0;
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 34px rgba(85, 92, 117, 0.11);
  backdrop-filter: blur(18px);
}

.profile-card:not(.profile-card--logged) .profile-row {
  padding-right: 112px;
}

.profile-card__eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.profile-card__dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #7ca88f;
}

.profile-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
}

.profile-login-button {
  position: absolute;
  top: 54px;
  right: 22px;
  min-width: 88px;
  min-height: 42px;
  border: 1px solid color-mix(in srgb, var(--primary) 24%, transparent);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--primary-deep);
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(52, 81, 96, 0.1);
  backdrop-filter: blur(16px);
}

.avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  border: 1px solid color-mix(in srgb, var(--primary) 26%, transparent);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(230, 240, 245, 0.85));
  color: var(--primary-deep);
  font-size: 22px;
  font-weight: 800;
  box-shadow: var(--small-shadow);
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-name {
  margin: 0 0 3px;
  font-size: 19px;
}

.profile-id {
  color: var(--muted);
  font-size: 12px;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.profile-stat {
  border-radius: 16px;
  padding: 10px;
  background: rgba(230, 240, 245, 0.62);
}

.profile-stat strong {
  display: block;
  font-size: 16px;
}

.profile-stat span {
  color: var(--muted);
  font-size: 11px;
}

.app-panel {
  position: absolute;
  inset: 0;
  z-index: 34;
  overflow-y: auto;
  padding: 0 16px 96px;
  background:
    radial-gradient(circle at 82% 12%, color-mix(in srgb, var(--primary) 14%, transparent), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), var(--phone-bg));
  scrollbar-width: none;
}

.panel-header {
  position: sticky;
  top: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: 72px 1fr 72px;
  align-items: center;
  min-height: 70px;
  margin: 0 -16px 16px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(220, 230, 232, 0.72);
  background: rgba(247, 249, 250, 0.92);
  backdrop-filter: blur(18px);
}

.panel-header h2 {
  margin: 0;
  font-size: 19px;
  text-align: center;
}

.panel-back {
  border: 0;
  background: transparent;
  color: var(--primary-deep);
  font-weight: 800;
  text-align: left;
}

.result-box {
  display: none;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--primary) 20%, transparent);
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary-deep);
  font-size: 13px;
  line-height: 1.6;
}

.result-box--visible {
  display: block;
}

.tabbar {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  min-height: 70px;
  padding: 8px;
  border: 1px solid rgba(220, 230, 232, 0.88);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 14px 35px rgba(52, 81, 96, 0.14);
  backdrop-filter: blur(18px);
}

.tabbar__item {
  display: grid;
  place-items: center;
  gap: 3px;
  min-width: 0;
  border: 0;
  border-radius: 22px;
  background: transparent;
  color: var(--faint);
  font-size: 12px;
  font-weight: 800;
}

.tabbar__item--active {
  background: var(--primary-soft);
  color: var(--primary-deep);
}

.tabbar__icon svg,
.icon-svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  place-items: center;
  padding: 18px;
  overflow-y: auto;
  background: rgba(29, 44, 52, 0.36);
  backdrop-filter: blur(12px);
}

.modal--visible {
  display: grid;
}

.modal__panel {
  width: min(100%, 392px);
  max-height: calc(100dvh - 36px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  background:
    radial-gradient(circle at 85% 12%, color-mix(in srgb, var(--primary) 16%, transparent), transparent 24%),
    var(--paper);
  box-shadow: var(--shadow);
}

.modal__topline {
  width: 48px;
  height: 5px;
  margin: 0 auto 18px;
  border-radius: 999px;
  background: var(--line);
}

.modal h1 {
  margin: 0 0 8px;
  font-size: 22px;
}

.modal p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.content-disclaimer {
  width: min(100%, 420px);
}

.content-disclaimer__list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0 0 0 18px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.6;
}

.notice-modal {
  display: grid;
  gap: 16px;
}

.notice-modal__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.notice-modal__header h1 {
  margin: 0;
}

.notice-modal__header p {
  margin: 5px 0 0;
  color: #526773;
  font-size: 13px;
}

.notice-modal__close {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--primary-deep);
  font-size: 24px;
  line-height: 1;
}

.notice-modal__close:hover,
.notice-modal__close:focus-visible {
  background: var(--primary-soft);
  outline: none;
}

.notice-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(220, 230, 232, 0.92);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
}

.notice-card--pinned {
  border-color: rgba(198, 163, 106, 0.44);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(230, 240, 245, 0.72)),
    color-mix(in srgb, var(--warm) 10%, white);
}

.notice-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--primary-deep);
  font-size: 12px;
  font-weight: 900;
}

.notice-card__meta span {
  border-radius: 999px;
  padding: 4px 9px;
  background: var(--primary-soft);
}

.notice-card__meta time {
  color: #526773;
  font-weight: 800;
}

.notice-card h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.3;
}

.notice-card p {
  margin: 0;
  color: #40515b;
  font-size: 14px;
  line-height: 1.65;
}

.notice-card__link {
  width: 100%;
  margin-top: 2px;
}

.shop-plan {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 10px;
  padding: 13px;
  border: 1px solid rgba(110, 157, 183, 0.2);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--text);
  text-align: left;
}

.shop-plan strong,
.shop-plan small {
  display: block;
}

.shop-plan strong {
  font-size: 14px;
}

.shop-plan small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.shop-plan span:last-child {
  color: var(--primary-deep);
  font-weight: 900;
}

.shop-plan--selected {
  border-color: rgba(63, 111, 138, 0.48);
  background: var(--primary-soft);
  box-shadow: 0 10px 22px rgba(52, 81, 96, 0.12);
}

.shop-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 10px;
  margin-top: 18px;
}

@media (max-width: 460px) {
  html,
  body {
    height: 100%;
    overflow: hidden;
  }

  .phone-shell {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    padding: 0;
  }

  .phone-app {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    border: 0;
    border-radius: 0;
  }

  .screen {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    padding-right: 14px;
    padding-left: 14px;
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }

  .game-grid {
    gap: 12px 10px;
  }

  .game-card {
    border-radius: 16px;
  }

  .game-cover {
    border-radius: 16px 16px 0 0;
  }

  .game-card__body {
    padding: 9px 9px 8px;
  }

  .game-card h3 {
    font-size: 14px;
  }

  .game-count-badge {
    padding-inline: 6px;
    font-size: 10px;
  }

  .tag {
    padding: 3px 7px;
  }

  .modal {
    align-items: end;
    padding: 16px;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }

  .modal__panel {
    max-height: calc(100dvh - 32px - env(safe-area-inset-bottom));
    border-radius: 24px;
  }

  .creator-brief {
    grid-template-columns: minmax(0, 1fr);
  }

  .creator-brief__panel {
    display: none;
  }
}

/* ========== 电脑端响应式布局 - 侧边栏导航 ========== */

/* 侧边栏容器 - 默认折叠状态 */
.desktop-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 100;
  width: 72px;
  height: 100vh;
  padding: 20px 0;
  background: rgba(255, 255, 255, 0.92);
  border-right: 1px solid rgba(220, 230, 232, 0.8);
  box-shadow: 4px 0 24px rgba(52, 81, 96, 0.1);
  backdrop-filter: blur(20px);
  display: none;
  flex-direction: column;
  gap: 8px;
  transition: width 0.3s ease;
}

/* 侧边栏悬停展开 */
.desktop-sidebar:hover,
.desktop-sidebar--expanded {
  width: 220px;
}

/* 侧边栏导航项 */
.desktop-sidebar__item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 56px;
  padding: 0 24px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.desktop-sidebar__item:hover {
  background: rgba(110, 157, 183, 0.12);
  color: var(--primary-deep);
}

.desktop-sidebar__item--active {
  background: var(--primary-soft);
  color: var(--primary-deep);
}

/* 侧边栏图标 */
.desktop-sidebar__icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.desktop-sidebar__icon svg {
  width: 24px;
  height: 24px;
}

/* 侧边栏文字标签 - 默认隐藏 */
.desktop-sidebar__label {
  opacity: 0;
  transition: opacity 0.2s ease 0.1s;
}

.desktop-sidebar:hover .desktop-sidebar__label,
.desktop-sidebar--expanded .desktop-sidebar__label {
  opacity: 1;
}

/* 侧边栏品牌区 */
.desktop-sidebar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 22px 16px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(220, 230, 232, 0.6);
}

.desktop-sidebar__brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--lavender));
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.desktop-sidebar__brand-name {
  font-size: 16px;
  font-weight: 900;
  color: var(--primary-deep);
  opacity: 0;
  transition: opacity 0.2s ease 0.1s;
}

.desktop-sidebar:hover .desktop-sidebar__brand-name,
.desktop-sidebar--expanded .desktop-sidebar__brand-name {
  opacity: 1;
}

/* ========== 768px - 平板及以上 ========== */
@media (min-width: 768px) {
  /* 显示电脑端侧边栏导航，隐藏移动端tabbar */
  .desktop-sidebar {
    display: flex;
  }

  .tabbar {
    display: none;
  }

  /* 主容器调整 - 移除手机壳居中限制 */
  .phone-shell {
    width: 100%;
    max-width: none;
    padding: 0;
    margin: 0;
    padding-left: 72px;
  }

  .phone-app {
    min-height: 100vh;
    border-radius: 0;
    border: none;
  }

  .screen {
    height: auto;
    min-height: 100vh;
    padding: 0 24px 60px;
    padding-left: calc(72px + 24px);
  }

  /* 精选推荐横向滚动 - 强制显示滚动条 */
  .hero-scroll {
    overflow-x: auto;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .hero-scroll::-webkit-scrollbar {
    height: 6px;
    display: block;
  }

  .hero-scroll::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
  }

  .hero-scroll::-webkit-scrollbar-thumb {
    background: rgba(110, 157, 183, 0.4);
    border-radius: 3px;
  }

  .hero-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(110, 157, 183, 0.6);
  }
}

/* ========== 1024px - 桌面及以上 ========== */
@media (min-width: 1024px) {
  /* 主容器左侧偏移 */
  .phone-shell {
    padding-left: 72px;
  }

  .screen {
    padding-left: calc(72px + 24px);
  }

  /* 游戏网格改为3列，更美观的尺寸 */
  .game-grid {
    grid-template-columns: repeat(3, minmax(280px, 1fr));
    gap: 20px;
  }

  /* 游戏卡片优化 */
  .game-card {
    border-radius: 20px;
  }

  .game-cover {
    height: 160px;
  }

  /* 精选推荐横向滚动 - 卡片更大更美观 */
  .hero-scroll {
    grid-auto-columns: minmax(320px, 400px);
    gap: 20px;
    padding-bottom: 12px;
  }

  /* 精选推荐卡片尺寸放大 */
  .featured-card {
    min-height: 180px;
    border-radius: 20px;
  }

  .featured-card__content {
    min-height: 180px;
    padding: 20px;
  }

  .featured-card h3 {
    font-size: 22px;
  }

  .featured-card p {
    font-size: 14px;
  }

  /* 热门游戏横向滚动 */
  .hot-row {
    grid-auto-columns: minmax(140px, 160px);
    gap: 16px;
  }

  .hot-card {
    border-radius: 16px;
  }

  /* 筛选器横向排列 */
  .filter-drawer {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 16px;
  }

  .filter-row {
    margin-bottom: 0;
  }

  .filter-chips {
    flex-wrap: wrap;
    overflow-x: visible;
  }
}

/* ========== 1440px - 大屏限制 ========== */
@media (min-width: 1440px) {
  /* 侧边栏保持展开状态 */
  .desktop-sidebar {
    width: 220px;
  }

  .desktop-sidebar .desktop-sidebar__label {
    opacity: 1;
  }

  .desktop-sidebar__brand-name {
    opacity: 1;
  }

  /* 主容器偏移 */
  .phone-shell {
    padding-left: 220px;
  }

  .screen {
    padding-left: 24px;
    max-width: 1400px;
    margin: 0 auto;
  }

  /* 游戏网格改为4列 */
  .game-grid {
    grid-template-columns: repeat(4, minmax(280px, 1fr));
    gap: 24px;
  }

  /* 游戏卡片进一步优化 */
  .game-cover {
    height: 180px;
  }

  /* 精选推荐横向滚动 */
  .hero-scroll {
    grid-auto-columns: minmax(360px, 450px);
  }

  /* 精选推荐卡片更大 */
  .featured-card {
    min-height: 200px;
  }

  .featured-card__content {
    min-height: 200px;
    padding: 24px;
  }
}

/* 隐藏手机壳装饰元素 - 电脑端 */
@media (min-width: 768px) {
  .phone-app::before {
    display: none;
  }
}
