/* Loreva 桌面门户深色主题 */

:root {
  --bg-deep: #0a0709;
  --bg-main: #0f0a0d;
  --bg-topbar: rgba(15, 10, 13, 0.94);
  --bg-card: #181116;
  --bg-card-hover: #221820;
  --bg-card-glass: rgba(24, 17, 22, 0.75);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(236, 72, 153, 0.35);

  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;

  --accent-pink: #ec4899;
  --accent-rose: #f43f5e;
  --accent-purple: #a855f7;
  --accent-amber: #f59e0b;
  --accent-blue: #38bdf8;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 9999px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max-w: 1680px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* 滚动条 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #0a0709; }
::-webkit-scrollbar-thumb { background: #261921; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #3b2734; }

.portal-container {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

/* 页头导航 */
.portal-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg-topbar);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 0 8px;
}

.header-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-text {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-glow-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f43f5e, #ec4899);
  box-shadow: 0 0 10px #f43f5e;
}

.brand-social-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.2s ease;
}
.brand-social-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.brand-social-btn svg { width: 16px; height: 16px; fill: currentColor; }

.channel-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.tab-pill {
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  display: inline-block;
}
.tab-pill:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}
.tab-pill.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 页头一行放不下时只让频道栏收缩（可横向滑动），品牌与右侧账号区不收缩，头像永远在视口内 */
.brand-group,
.header-actions {
  flex-shrink: 0;
}
.header-top-row > nav {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.header-top-row > nav::-webkit-scrollbar { display: none; }
.channel-tabs { flex-wrap: nowrap; }
.tab-pill { white-space: nowrap; }
@media (max-width: 1440px) {
  .tab-pill { padding: 7px 12px; font-size: 13px; }
  .search-box-wrap { width: 150px; }
  .search-box-wrap:focus-within { width: 200px; }
}
@media (max-width: 1280px) {
  .header-actions { gap: 8px; }
  .search-box-wrap { width: 120px; }
  .btn-create-top-pill span { display: none; }
  .btn-create-top-pill { padding: 7px 10px; }
}

.search-box-wrap {
  position: relative;
  width: 200px;
  transition: width 0.3s ease;
}
.search-box-wrap:focus-within {
  width: 260px;
}

.search-input-field {
  width: 100%;
  padding: 8px 14px 8px 36px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  color: #fff;
  font-size: 13px;
  outline: none;
}
.search-input-field:focus {
  border-color: var(--accent-pink);
  background: rgba(255, 255, 255, 0.08);
}
.search-icon-svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--text-dim);
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-create {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
}
.btn-create:hover { background: rgba(255, 255, 255, 0.12); }
.btn-login {
  background: #fff;
  color: #0f0a0d;
}
.btn-login:hover { background: #f1f5f9; }

/* 语言与性别下拉菜单 */
.gender-select-wrap { position: relative; }
.lang-toggle-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
}
.lang-toggle-btn:hover { color: #fff; border-color: rgba(255,255,255,0.2); }
.fiat-toggle-btn {
  min-width: 48px;
  height: 34px;
  padding: 0 10px;
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.fiat-toggle-btn:hover { color: #fff; border-color: rgba(255,255,255,0.2); }

.gender-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #191216;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  display: none;
  min-width: 140px;
  max-height: min(60vh, 420px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  z-index: 210;
}
.gender-dropdown-menu.show { display: block; }
.gender-item {
  padding: 8px 16px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
}
.gender-item:hover, .gender-item.selected {
  background: rgba(236, 72, 153, 0.15);
  color: #fff;
}

/* 页头的用户资料菜单 */
.user-profile-widget {
  display: flex;
  align-items: center;
  gap: 10px;
}
.gems-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(236, 72, 153, 0.12);
  border: 1px solid rgba(236, 72, 153, 0.3);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
}
.gems-pill-badge:hover {
  background: rgba(236, 72, 153, 0.22);
  transform: translateY(-1px);
}
.gem-red-num { color: #f43f5e; font-size: 11px; }
.btn-quick-add {
  background: #f43f5e;
  color: #fff;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  margin-left: 3px;
}

.user-avatar-wrap {
  position: relative;
  cursor: pointer;
}
.header-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(236, 72, 153, 0.5);
}
.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #191216;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 36px rgba(0,0,0,0.8);
  min-width: 190px;
  display: none;
  padding: 6px 0;
  z-index: 220;
}
.user-dropdown-menu.show { display: block; }
.dropdown-header {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-subtle);
}
.dropdown-name { font-size: 14px; font-weight: 700; color: #fff; }
.dropdown-email { font-size: 11px; color: var(--text-dim); }
.dropdown-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 16px;
  font-size: 13px;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
}
.dropdown-item:hover { background: rgba(255,255,255,0.06); color: #fff; }
.dropdown-item.text-danger { color: #f43f5e; }
.dropdown-divider { height: 1px; background: var(--border-subtle); margin: 6px 0; }

/* 次级导航行 */
.header-sub-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding-top: 2px;
}
.limitless-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.limitless-text-box { text-align: right; line-height: 1.15; }
.limitless-label { font-size: 12px; font-weight: 700; color: #fff; display: block; }
.limitless-sub { font-size: 10px; color: var(--text-dim); display: block; }
.switch-toggle {
  width: 34px;
  height: 18px;
  background: #2b1f26;
  border-radius: var(--radius-pill);
  position: relative;
  transition: background 0.25s ease;
}
.switch-knob {
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform 0.25s ease;
}
.switch-toggle.active { background: linear-gradient(135deg, #f43f5e, #ec4899); }
.switch-toggle.active .switch-knob { transform: translateX(16px); }

/* 移动端导航抽屉与菜单按钮 */
.mobile-hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 9px 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.mobile-hamburger-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(236, 72, 153, 0.4);
}
.hamburger-bar {
  width: 100%;
  height: 2px;
  background-color: #fff;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-hamburger-btn.active .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-hamburger-btn.active .hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.mobile-hamburger-btn.active .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 5, 8, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
}
.mobile-drawer-overlay.show {
  opacity: 1;
  visibility: visible;
}
.mobile-drawer-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 88%;
  max-width: 380px;
  height: 100%;
  background: #140d12;
  border-left: 1px solid rgba(236, 72, 153, 0.25);
  box-shadow: -10px 0 50px rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  padding: 20px 20px 32px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-drawer-overlay.show .mobile-drawer-content {
  transform: translateX(0);
}
.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.mobile-drawer-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.mobile-drawer-close:hover {
  background: rgba(236, 72, 153, 0.2);
  border-color: var(--accent-pink);
}
.mobile-search-bar {
  position: relative;
  margin-bottom: 20px;
}
.mobile-search-bar .search-input-field {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border-radius: 12px;
  font-size: 14px;
}
.mobile-search-bar .search-icon-svg {
  left: 12px;
}
.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 24px;
}
.mobile-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  color: var(--text-main);
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s;
}
.mobile-nav-item:hover, .mobile-nav-item.active {
  background: rgba(236, 72, 153, 0.12);
  border-color: rgba(236, 72, 153, 0.3);
  color: #fff;
}
.mobile-nav-item .nav-icon {
  font-size: 18px;
  width: 24px;
  text-align: center;
}
.mobile-badge-new {
  margin-left: auto;
  font-size: 10px;
  font-weight: 800;
  background: linear-gradient(135deg, #f43f5e, #ec4899);
  color: #fff;
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0.05em;
}
.mobile-drawer-section {
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.mobile-section-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.mobile-lang-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.mobile-lang-chip {
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
.mobile-lang-chip:hover, .mobile-lang-chip.active {
  background: rgba(236, 72, 153, 0.18);
  border-color: var(--accent-pink);
  color: #fff;
  font-weight: 600;
}
.mobile-limitless-btn {
  justify-content: space-between;
  width: 100%;
  padding: 6px 0;
}
.mobile-drawer-footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.mobile-user-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mobile-user-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mobile-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--accent-pink);
  object-fit: cover;
}
.mobile-name {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}
.mobile-email {
  font-size: 12px;
  color: var(--text-dim);
}
.mobile-gems-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(236, 72, 153, 0.08);
  border: 1px solid rgba(236, 72, 153, 0.25);
  border-radius: 10px;
  font-size: 12px;
}
.btn-mobile-topup {
  background: var(--accent-pink);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
}
.btn-mobile-logout {
  width: 100%;
  padding: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: #f43f5e;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.mobile-guest-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.btn-mobile-login {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f43f5e, #ec4899);
  color: #fff;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
}
.btn-mobile-signup {
  width: 100%;
  padding: 11px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
}

/* 首页聚光灯主视觉 */
.portal-hero-strip {
  position: relative;
  padding: 56px 0 44px;
  border-bottom: 1px solid var(--border-subtle);
  background: #0d070b url('/assets/images/backgrounds/hero_ambient_bg.webp') no-repeat center top;
  background-size: cover;
  overflow: hidden;
}
/* 背景图要看得见：只在左侧文案区压暗，右侧和顶部保留图片；底部渐变到页面底色，接住下一段 */
.portal-hero-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 10, 13, 0) 55%, #0f0a0d 100%),
    linear-gradient(90deg, rgba(15, 10, 13, 0.78) 0%, rgba(15, 10, 13, 0.42) 50%, rgba(15, 10, 13, 0.2) 100%);
  pointer-events: none;
}
.hero-dual-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 1024px) {
  .hero-dual-grid { grid-template-columns: 1fr; }
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(236, 72, 153, 0.1);
  border: 1px solid rgba(236, 72, 153, 0.3);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  color: #ec4899;
  margin-bottom: 18px;
}
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ec4899;
  box-shadow: 0 0 8px #ec4899;
}

.hero-h1-heading {
  font-size: 44px;
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.5px;
  color: #fff;
  margin-bottom: 18px;
}
.gradient-text {
  background: linear-gradient(135deg, #f43f5e 0%, #ec4899 50%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-p-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 620px;
  margin-bottom: 28px;
}

.hero-cta-button-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #f43f5e, #ec4899);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(236, 72, 153, 0.35);
  transition: all 0.25s ease;
}
.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(236, 72, 153, 0.5);
}
.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.25s ease;
}
.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}

.hero-stats-line {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}
.stat-value { font-size: 20px; font-weight: 800; color: #fff; }
.stat-label { font-size: 12px; color: var(--text-dim); }

/* Spotlight：首页右侧「最多人玩」轮播。竖版卡片（素材多为竖屏），3 张淡入淡出自动轮播。
   卡片高度由舞台的 3:4 比例决定，与左侧文案列对齐；视频 / 图片按 cover 裁切，尽量保留人物头部。 */
.hero-right-spotlight {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.spotlight-stage {
  position: relative;
  width: min(100%, 360px);
  aspect-ratio: 3 / 4;
}
.spotlight-card {
  position: absolute;
  inset: 0;
  display: block;
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid rgba(236, 72, 153, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(236, 72, 153, 0.15);
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0s linear 0.6s, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}
.spotlight-card.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s ease, visibility 0s, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}
.spotlight-card.is-active:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(236, 72, 153, 0.3);
}
.spotlight-card:focus-visible {
  outline: 2px solid var(--accent-pink);
  outline-offset: 4px;
}
.spotlight-card .spotlight-poster {
  object-position: center 20%;
}
.spotlight-play-count {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.spotlight-play-count svg {
  width: 10px;
  height: 10px;
  fill: currentColor;
}
.spotlight-dots {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}
.spotlight-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition: width 0.3s ease, background 0.3s ease;
}
.spotlight-dot:hover {
  background: rgba(255, 255, 255, 0.55);
}
.spotlight-dot.is-active {
  width: 24px;
  background: var(--accent-pink);
}
.spotlight-dot:focus-visible {
  outline: 2px solid var(--accent-pink);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  .spotlight-card,
  .spotlight-dot {
    transition: none;
  }
}
.spotlight-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.spotlight-gradient-layer {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 10, 13, 0.98) 0%, rgba(15, 10, 13, 0.6) 40%, transparent 100%);
}
.spotlight-badge-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(244, 63, 94, 0.85);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.5px;
}
.spotlight-info-box {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  z-index: 2;
}
.spotlight-title { font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 6px; }
.spotlight-hook {
  font-size: 13px;
  color: #e5e7eb;
  line-height: 1.45;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.spotlight-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.spotlight-star-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #d1d5db;
}
.spotlight-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--accent-pink);
}
.btn-spotlight-enter {
  background: #fff;
  color: #0f0a0d;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 18px;
  border-radius: var(--radius-pill);
}

/* 剧本与角色的筛选和网格 */
.stories-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

/* 带更多入口的推荐区标题 */
.featured-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}
.featured-title-wrap h2 {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.featured-subtitle {
  font-size: 14px;
  color: var(--text-dim);
}
.btn-more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
}
.btn-more-link:hover {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.2), rgba(236, 72, 153, 0.2));
  border-color: rgba(236, 72, 153, 0.5);
  color: var(--accent-pink);
  transform: translateX(3px);
}
.btn-more-link svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  transition: transform 0.2s;
}
.btn-more-link:hover svg {
  transform: translateX(2px);
}

/* 浏览全部剧本的横幅 */
.view-all-stories-bar {
  margin-top: 36px;
  text-align: center;
}
.btn-view-all-stories {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(236, 72, 153, 0.35);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.btn-view-all-stories:hover {
  background: linear-gradient(135deg, #f43f5e, #ec4899);
  border-color: transparent;
  box-shadow: 0 10px 30px rgba(236, 72, 153, 0.4);
  transform: translateY(-2px);
  color: #fff;
}
.channel-pill-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-tab {
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  transition: all 0.2s ease;
}
.filter-tab:hover, .filter-tab.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}
.stories-count-hint { font-size: 13px; color: var(--text-dim); }

.portal-main { padding: 32px 0 60px; }

.character-card-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
@media (max-width: 1599px) and (min-width: 1360px) {
  .character-card-grid { grid-template-columns: repeat(6, 1fr); gap: 18px; }
}
@media (max-width: 1359px) and (min-width: 1080px) {
  .character-card-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
}
@media (max-width: 1079px) and (min-width: 768px) {
  .character-card-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}
@media (max-width: 767px) {
  .character-card-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* 剧本与角色卡片 */
.tipsy-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 9 / 14.5;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  user-select: none;
}
.tipsy-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(236, 72, 153, 0.4);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.8), 0 0 20px rgba(236, 72, 153, 0.2);
}
.tipsy-card-poster,
.tipsy-card-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.tipsy-card:hover .tipsy-card-poster,
.tipsy-card:hover .tipsy-card-video {
  transform: scale(1.05);
}

.tipsy-card-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14, 9, 11, 0.98) 0%, rgba(14, 9, 11, 0.72) 35%, rgba(14, 9, 11, 0.2) 65%, transparent 100%);
}
.tipsy-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 12px 12px;
  z-index: 2;
  display: flex;
  flex-direction: column;
}
.tipsy-card-name {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.tipsy-card-badge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  background: rgba(244, 63, 94, 0.2);
  color: #f43f5e;
  border: 1px solid rgba(244, 63, 94, 0.4);
}
/* 未解锁的剧本卡：画面压暗、角标用灰色，点开后只看得到说明，没有进入按钮 */
.tipsy-card.is-locked .tipsy-card-poster,
.tipsy-card.is-locked .tipsy-card-video { filter: grayscale(0.7) brightness(0.55); }
.tipsy-card-badge.scene-card-lock {
  background: rgba(15, 23, 42, 0.6);
  color: #e5e7eb;
  border-color: rgba(229, 231, 235, 0.35);
}
.tipsy-card-video-indicator {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all 0.25s ease;
}
.tipsy-card:hover .tipsy-card-video-indicator {
  background: rgba(244, 63, 94, 0.9);
  border-color: transparent;
  transform: scale(1.1);
}
.tipsy-card-video-indicator svg {
  width: 10px;
  height: 10px;
  fill: currentColor;
  margin-left: 1px;
}
.tipsy-card-tagline {
  font-size: 11px;
  color: #d1d5db;
  line-height: 1.35;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}
.tipsy-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-dim);
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.creator-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
}
.creator-avatar {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.creator-handle {
  color: #e5e7eb;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90px;
}
.play-count-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #9ca3af;
  flex-shrink: 0;
}
.play-count-meta svg { width: 12px; height: 12px; fill: currentColor; }

/* 活动推广卡片 */
.promo-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 9 / 14.8;
  background: linear-gradient(180deg, #c26922 0%, #4a210b 50%, #150a04 100%);
  border: 1px solid rgba(245, 158, 11, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 16px 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: transform 0.3s ease;
}
.promo-card:hover { transform: translateY(-4px); }
.promo-badge-tag { font-size: 11px; font-weight: 800; letter-spacing: 1px; color: #fed7aa; text-transform: uppercase; }
.promo-title-gold {
  font-size: 24px;
  font-weight: 900;
  line-height: 1.1;
  color: #fff;
  margin: 12px 0 8px;
  font-family: Impact, "Arial Black", sans-serif;
}
.promo-subtitle-text { font-size: 12px; color: #ffedd5; line-height: 1.4; margin-bottom: 16px; }
.promo-countdown {
  display: inline-flex;
  gap: 4px;
  background: rgba(0, 0, 0, 0.4);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  color: #fde047;
  margin: 0 auto 16px;
}
.promo-btn-action {
  background: #38bdf8;
  color: #032b43;
  font-size: 13px;
  font-weight: 800;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  display: inline-block;
}

/* 功能介绍与常见问题 */
.features-section {
  position: relative;
  padding: 88px 0;
  background: #090508 url('/assets/images/backgrounds/features_ambient_bg.webp') no-repeat center center;
  background-size: cover;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}
.features-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(15, 10, 13, 0.72) 0%, rgba(9, 5, 8, 0.94) 100%);
  pointer-events: none;
}
.features-section .portal-container {
  position: relative;
  z-index: 1;
}
.section-header-center { text-align: center; margin-bottom: 48px; }
.badge-pill-center {
  display: inline-block;
  background: rgba(236, 72, 153, 0.1);
  color: var(--accent-pink);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}
.section-h2-large { font-size: 32px; font-weight: 800; color: #fff; margin-bottom: 10px; }
.section-p-sub { font-size: 15px; color: var(--text-muted); max-width: 600px; margin: 0 auto; }

.features-four-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 1024px) {
  .features-four-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .features-four-grid { grid-template-columns: 1fr; }
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: all 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(236, 72, 153, 0.3);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}
.feat-icon-box { font-size: 36px; margin-bottom: 16px; }
.feat-title { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.feat-desc { font-size: 13px; color: var(--text-muted); line-height: 1.55; }

/* 下载横幅 */
.download-cta-banner {
  padding: 48px 0;
  background: linear-gradient(135deg, rgba(244,63,94,0.15) 0%, rgba(168,85,247,0.1) 100%);
  border-bottom: 1px solid var(--border-subtle);
}
.download-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.banner-title { font-size: 26px; font-weight: 800; color: #fff; margin-bottom: 6px; }
.banner-sub { font-size: 14px; color: #cbd5e1; }
.banner-btn-group { display: flex; gap: 14px; }

/* 常见问题 */
.faq-section { padding: 64px 0; }
.faq-accordion-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-q {
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
}
.faq-arrow { font-size: 12px; color: var(--text-dim); transition: transform 0.25s ease; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-a {
  padding: 0 20px 16px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  display: none;
}
.faq-item.open .faq-a { display: block; }

/* 角色扮演预览与开局抽屉 */
.roleplay-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.roleplay-drawer-backdrop.show { display: flex; }
.roleplay-drawer-box {
  background: #150d11;
  border: 1px solid rgba(236, 72, 153, 0.3);
  border-radius: 20px;
  max-width: 860px;
  width: 100%;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.8), 0 0 30px rgba(236, 72, 153, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  max-height: 85vh;
}
/* 只有带海报侧栏的抽屉（剧本 / 角色详情）才是「海报 + 信息」双栏；礼物、记忆、登录提示等普通弹窗是单列卡片 */
.roleplay-drawer-box.drawer-two-col {
  display: grid;
  grid-template-columns: 340px 1fr;
}
@media (max-width: 768px) {
  .roleplay-drawer-box { max-height: 90vh; }
  .roleplay-drawer-box.drawer-two-col { grid-template-columns: 1fr; }
  .drawer-poster-side { display: none; }
}
.drawer-poster-side { position: relative; background: #0f0a0c; overflow: hidden; }
.drawer-poster-img { width: 100%; height: 100%; object-fit: cover; }
.drawer-poster-overlay { position: absolute; inset: 0; background: linear-gradient(to top, #150d11 0%, transparent 40%); }
.drawer-info-side { padding: 36px 32px; display: flex; flex-direction: column; overflow-y: auto; }
.drawer-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
.drawer-close-btn:hover { background: rgba(255, 255, 255, 0.15); color: #fff; }
.drawer-title { font-size: 26px; font-weight: 800; color: #fff; margin-bottom: 6px; }
.drawer-creator-line { font-size: 13px; color: var(--text-dim); margin-bottom: 18px; }
.drawer-tagline-box {
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid var(--accent-pink);
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 14px;
  color: #e5e7eb;
  line-height: 1.5;
  margin-bottom: 20px;
}
.drawer-section-h {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.drawer-opening-text { font-size: 13px; color: #9ca3af; line-height: 1.6; margin-bottom: 24px; }
.drawer-cta-action { margin-top: auto; display: flex; flex-wrap: wrap; gap: 12px; }
.drawer-lock-note {
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(229, 231, 235, 0.3);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  color: #e5e7eb;
  margin-bottom: 16px;
}
.btn-drawer-chat {
  flex: 1;
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #f43f5e, #ec4899);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(236, 72, 153, 0.4);
}

/* 同玩入口：剧本抽屉与角色卡弹窗共用（与 .btn-hero-secondary 同一套玻璃按钮） */
.btn-co-play {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
}
.btn-co-play:hover {
  background: rgba(255, 255, 255, 0.14);
}
@media (max-width: 768px) {
  #sceneDrawerModal .drawer-cta-action { flex-direction: column; }
  #sceneDrawerModal .btn-drawer-chat,
  #sceneDrawerModal .btn-co-play { width: 100%; }
}

/* 抽屉内的角色相关剧本 */
.char-related-scenes-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.scene-mini-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  transition: all 0.2s ease;
}
.scene-mini-card:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(236, 72, 153, 0.4); }
.scene-mini-thumb { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; }
.scene-mini-info { flex: 1; overflow: hidden; }
.scene-mini-title { font-size: 13px; font-weight: 700; color: #fff; }
.scene-mini-hook { font-size: 11px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scene-mini-btn { font-size: 12px; font-weight: 700; color: var(--accent-pink); }

/* 桌面剧本游玩页 */
/* 游玩室背景与半透明聊天区 */
.play-room-body {
  background: #0d060a;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* 游玩室的模糊背景 */
.play-ambient-backdrop {
  position: fixed;
  inset: -10px;
  background-image: url('/assets/images/backgrounds/play_ambient_bg.webp');
  background-size: cover;
  background-position: center 30%;
  filter: blur(4px) brightness(0.96) saturate(118%);
  opacity: 0.96;
  z-index: 0;
  transform: scale(1.02);
  pointer-events: none;
}
.play-ambient-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 35%, rgba(14, 8, 12, 0.12) 0%, rgba(9, 4, 8, 0.58) 90%);
  z-index: 0;
  pointer-events: none;
}

/* 独立游玩窗口的顶部导航 */
.play-standalone-topbar {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(9, 4, 8, 0.75) 0%, rgba(9, 4, 8, 0) 100%);
  backdrop-filter: blur(8px);
}
.play-topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.btn-play-back {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e5e7eb;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}
.btn-play-back:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  transform: scale(1.05);
}
.brand-play-logo {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
}
.play-topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.btn-play-close-window {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #9ca3af;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-play-close-window:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.5);
  color: #fca5a5;
  transform: rotate(90deg);
}

/* 游玩主舞台 */
.play-stage-wrapper {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px 28px;
}
.play-stage-container {
  width: 100%;
  max-width: 1320px;
  height: 84vh;
  max-height: 860px;
  min-height: 580px;
  display: grid;
  grid-template-columns: 440px 1fr;
  gap: 24px;
}
@media (max-width: 1080px) {
  .play-stage-container {
    grid-template-columns: 1fr;
    height: auto;
    max-height: none;
  }
}

/* 左侧角色海报 */
.stage-poster-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  height: 100%;
  background: #140b11;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(236, 72, 153, 0.12);
}
@media (max-width: 1080px) {
  .stage-poster-card { height: 420px; }
}

.stage-media-wrap {
  width: 100%;
  height: 100%;
  position: relative;
}
.stage-poster-img,
.stage-poster-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.poster-top-bar {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 4;
}
.poster-cid-pill {
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #e5e7eb;
  letter-spacing: 0.04em;
}
.btn-toggle-profile {
  padding: 5px 12px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-toggle-profile:hover {
  background: rgba(236, 72, 153, 0.4);
  border-color: rgba(236, 72, 153, 0.6);
}

.poster-bottom-watermark {
  position: absolute;
  bottom: 14px;
  right: 16px;
  z-index: 3;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.4);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  pointer-events: none;
}

/* 覆盖海报的角色资料抽屉 */
.poster-profile-overlay {
  position: absolute;
  inset: 0;
  background: rgba(14, 8, 12, 0.88);
  backdrop-filter: blur(16px);
  z-index: 3;
  padding: 60px 24px 24px;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.poster-profile-overlay.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.profile-overlay-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.overlay-char-name { font-size: 22px; font-weight: 850; color: #fff; }
.overlay-char-tagline { font-size: 13px; color: var(--accent-pink); line-height: 1.45; }
.overlay-section-label { font-size: 11px; font-weight: 700; color: var(--text-dim); text-transform: uppercase; margin-top: 6px; }
.overlay-section-text { font-size: 13px; color: #cbd5e1; line-height: 1.55; }
.overlay-section-text.highlight { color: #fde047; font-weight: 600; }

/* 右侧半透明聊天区 */
.stage-chat-window {
  position: relative;
  border-radius: 20px;
  background: rgba(14, 10, 12, 0.78);
  backdrop-filter: blur(32px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  --play-gold: #c4b08a;
  --play-ink: #f4efe6;
  --play-mute: rgba(244, 239, 230, 0.58);
  --play-dim: rgba(244, 239, 230, 0.36);
}

/* 聊天区标题 */
.chat-window-header {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.3);
}
.header-star-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.chat-header-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(236, 72, 153, 0.4);
}
.chat-star-name {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

/* 亲密度阶段徽章 */
.badge-rel-level {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: rgba(37, 99, 235, 0.25);
  border: 1px solid rgba(96, 165, 250, 0.5);
  color: #bfdbfe;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}
.badge-rel-level:hover {
  background: rgba(37, 99, 235, 0.4);
  border-color: rgba(147, 197, 253, 0.8);
  transform: scale(1.04);
}
.badge-rel-level .level-icon {
  font-size: 11px;
}

.chat-status-indicator {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #9ca3af;
  margin-top: 2px;
}
.status-dot-green {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.chat-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

/* 白噪音、点赞和收藏按钮 */
.btn-chat-chip {
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #d1d5db;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-chat-chip:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}
.btn-chat-chip.active {
  background: rgba(236, 72, 153, 0.25);
  border-color: rgba(236, 72, 153, 0.6);
  color: #f472b6;
}
.btn-chat-chip .chip-svg {
  width: 14px;
  height: 14px;
}
.btn-chat-action-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d1d5db;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-chat-action-circle:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}
.chat-menu-dropdown {
  position: absolute;
  top: 40px;
  right: 0;
  background: #1a0f16;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.8);
  min-width: 170px;
  padding: 6px;
  z-index: 20;
  display: none;
  flex-direction: column;
  gap: 2px;
}
.chat-menu-dropdown.show { display: flex; }
.chat-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #e5e7eb;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  transition: background 0.2s ease;
}
.chat-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* 访客提示横幅 */
.chat-guest-banner {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.15), rgba(244, 63, 94, 0.15));
  border-bottom: 1px solid rgba(245, 158, 11, 0.3);
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #fef3c7;
}
.guest-banner-icon { font-size: 16px; flex-shrink: 0; }
.guest-banner-text { flex: 1; line-height: 1.4; }
.guest-banner-btns { display: flex; gap: 8px; flex-shrink: 0; }
.btn-guest-login {
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: #f59e0b;
  color: #000;
  font-weight: 700;
  font-size: 11px;
  text-decoration: none;
}
.btn-guest-signup {
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-weight: 600;
  font-size: 11px;
  text-decoration: none;
}

/* 可滚动的消息列表 */
.chat-messages-viewport {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
}
.chat-messages-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
}

/* 开场标语 */
.chat-tagline-card {
  padding: 0 0 6px;
  font-size: 13px;
  color: var(--play-mute);
  line-height: 1.65;
}
.tagline-badge {
  display: block;
  color: var(--play-gold);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

/* 开场旁白 */
.opening-narration-row {
  width: 100%;
}
.narration-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 0 8px;
}
.narration-head-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sound-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--play-gold);
  cursor: pointer;
  opacity: 0.75;
}
.sound-icon-btn:hover { opacity: 1; }
.narration-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--play-gold);
}
.narration-paragraphs {
  font-size: 15px;
  color: var(--play-mute);
  line-height: 1.8;
  font-style: italic;
}
.narration-stats-pill {
  font-size: 11px;
  color: var(--play-dim);
  letter-spacing: 0.02em;
  margin-top: 2px;
}
.narration-stats-pill:empty { display: none; }

/* 文学样式的对话消息 */
.message-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.bubble-avatar-box { flex-shrink: 0; padding-top: 2px; }
.bubble-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(196, 176, 138, 0.28);
}
.bubble-content-box {
  max-width: 82%;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.bubble-sender {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--play-gold);
  margin-bottom: 6px;
}

.message-user {
  flex-direction: row-reverse;
}
.message-user .bubble-content-box {
  align-items: flex-end;
}
.message-user .bubble-sender {
  color: var(--play-dim);
  letter-spacing: 0.06em;
}
.message-user .bubble-text,
.message-assistant .bubble-text {
  background: none;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  color: var(--play-ink);
  font-size: 15px;
  line-height: 1.8;
  word-break: break-word;
}
.message-user .bubble-text {
  color: var(--play-mute);
  text-align: right;
}

.part-narration {
  color: var(--play-mute);
  font-style: italic;
  font-size: 14.5px;
  line-height: 1.8;
  margin: 0 0 10px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
}
.part-narration .narration-star { display: none; }

.part-dialogue {
  color: var(--play-ink);
  font-weight: 400;
  font-size: 15.5px;
  line-height: 1.8;
  margin: 0 0 10px;
  text-shadow: none;
}
.part-dialogue .dialogue-quote {
  color: inherit;
  font-weight: 400;
  margin: 0;
}

.part-thought {
  color: var(--play-dim);
  font-style: italic;
  font-size: 13.5px;
  line-height: 1.7;
  margin: 0 0 10px;
}

.part-speaker {
  margin: 0 0 10px;
}
.part-speaker .speaker-tag {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--play-gold);
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  margin: 0 0 4px;
}

.bubble-actions-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
  padding-top: 0;
  border-top: 0;
}
.bubble-act-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border-radius: 0;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--play-dim);
  background: none;
  border: 0;
  cursor: pointer;
  transition: color 0.2s ease;
  user-select: none;
}
.bubble-act-btn:hover {
  color: var(--play-ink);
  background: none;
  border: 0;
}
.bubble-act-btn.active,
.bubble-act-btn.busy {
  color: var(--play-gold);
  border: 0;
  background: none;
  box-shadow: none;
}
.bubble-act-btn.busy { cursor: wait; opacity: 0.7; }
.bubble-act-btn .act-svg {
  width: 12px;
  height: 12px;
}

.bubble-media-slot:empty { display: none; }
.bubble-media-slot { margin-top: 8px; }
.bubble-media-card {
  position: relative;
  display: block;
  max-width: 320px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0b0710;
}
.bubble-media-card img,
.bubble-media-card video {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  cursor: pointer;
}
.bubble-media-card video { cursor: default; }
.bubble-media-badge {
  position: absolute;
  left: 8px;
  top: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: rgba(9, 5, 12, 0.7);
  backdrop-filter: blur(4px);
}
.bubble-media-loading {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(236, 72, 153, 0.28);
  background: rgba(236, 72, 153, 0.08);
  color: var(--play-dim, #b9a8c6);
  font-size: 12px;
  max-width: 320px;
}
.bubble-media-failed {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(224, 92, 92, 0.4);
  background: rgba(224, 92, 92, 0.1);
  font-size: 12px;
  max-width: 320px;
}
.media-fail-mark {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  line-height: 16px;
  text-align: center;
  border-radius: 50%;
  border: 1px solid #e05c5c;
  color: #e05c5c;
  font-weight: 700;
}
.media-fail-text { flex: 1; color: #f3c9c9; }
.media-fail-retry {
  flex-shrink: 0;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(236, 72, 153, 0.5);
  background: none;
  color: var(--accent-pink, #ec4899);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

/* 输入中的省略号动画 */
.typing-dots span {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #9ca3af;
  border-radius: 50%;
  margin-right: 4px;
  animation: typingBounce 1.2s infinite ease-in-out;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1.1); opacity: 1; }
}

/* 底部输入区 */
.chat-bottom-console {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 5, 9, 0.65);
  padding: 12px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 工具栏 */
.chat-tools-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tools-left, .tools-right {
  display: flex;
  align-items: center;
  gap: 6px;
}
.tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #d1d5db;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.tool-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.tool-sym { font-weight: 700; color: var(--accent-pink); }

.tool-btn-icon {
  height: 28px;
  padding: 0 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #9ca3af;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}
.tool-btn-icon .tool-chip-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.tool-btn-icon:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.16);
}
.tool-btn-icon.active {
  background: rgba(236, 72, 153, 0.18);
  border-color: rgba(236, 72, 153, 0.55);
  color: #f472b6;
  box-shadow: 0 0 10px rgba(236, 72, 153, 0.25);
}

/* 灵感选项展开栏 */
.chat-inspiration-bar {
  background: rgba(26, 12, 22, 0.95);
  border: 1px solid rgba(236, 72, 153, 0.35);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.inspiration-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-pink);
}
.inspiration-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-close-choices {
  background: transparent;
  border: none;
  color: #9ca3af;
  cursor: pointer;
}
.btn-refresh-hints {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: #f9a8d4;
  background: rgba(236, 72, 153, 0.12);
  border: 1px solid rgba(236, 72, 153, 0.4);
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-refresh-hints:hover {
  background: rgba(236, 72, 153, 0.25);
  color: #fff;
}
.btn-refresh-hints:disabled {
  opacity: 0.5;
  cursor: wait;
}
.inspiration-pills {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.inspiration-pill-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.inspiration-pill-btn:disabled:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
  color: #e5e7eb;
}
.inspiration-footer {
  font-size: 11px;
  color: #6b7280;
  text-align: right;
}
.inspiration-pill-btn {
  text-align: left;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e5e7eb;
  font-size: 13px;
  cursor: pointer;
  line-height: 1.4;
  transition: all 0.2s ease;
}
.inspiration-pill-btn:hover {
  background: rgba(244, 63, 94, 0.2);
  border-color: rgba(244, 63, 94, 0.5);
  color: #fff;
}

/* 底部输入行 */
.chat-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(24, 14, 21, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 6px 10px 6px 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.chat-input-row:focus-within {
  border-color: rgba(236, 72, 153, 0.5);
  box-shadow: 0 0 16px rgba(236, 72, 153, 0.15);
}
.btn-inspiration-bulb {
  background: transparent;
  border: none;
  color: #a855f7;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.btn-inspiration-bulb:hover {
  transform: scale(1.15);
  color: #c084fc;
}
.chat-text-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  resize: none;
  line-height: 1.4;
}
.btn-chat-send {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f43f5e, #ec4899);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-chat-send:hover {
  transform: scale(1.06);
  box-shadow: 0 4px 14px rgba(236, 72, 153, 0.4);
}

/* 身份验证弹窗 */
.auth-prompt-modal-box {
  max-width: 480px;
  padding: 36px 30px;
  text-align: center;
}
.auth-prompt-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(244, 63, 94, 0.2);
  color: #f43f5e;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.auth-prompt-h2 {
  font-size: 24px;
  font-weight: 850;
  color: #fff;
  margin-bottom: 8px;
}
.auth-prompt-p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 24px;
}
.auth-prompt-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.btn-prompt-login {
  display: block;
  padding: 12px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #f43f5e, #ec4899);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.btn-prompt-signup {
  display: block;
  padding: 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
button.btn-prompt-login,
button.btn-prompt-signup {
  width: 100%;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
}
button.btn-prompt-signup {
  border: 1px solid var(--border-subtle);
}

/* 游玩室页脚 */
.play-room-footer {
  position: relative;
  z-index: 1;
  padding: 14px 0 20px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
}
.play-footer-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.play-footer-nav a {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: color 0.2s;
}
.play-footer-nav a:hover { color: #fff; }
.play-footer-copy { margin-left: auto; }

/* ==========================================================================
   剧本玩的页面（play.php）单屏布局：头部与脚部固定，整页不滚动，只有聊天消息区内部滚动。
   只作用于 body.play-single-screen；一起玩页面（party.php）复用了同名基础类，不受影响。
   ========================================================================== */
html:has(> body.play-single-screen) {
  min-height: 0;
  overflow: hidden;
}
body.play-single-screen {
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  margin: 0;
  overflow: hidden;
}
body.play-single-screen > #root > .play-standalone-topbar,
body.play-single-screen > #root > .play-room-footer {
  flex: 0 0 auto;
}
body.play-single-screen > #root > .play-stage-wrapper {
  flex: 1 1 auto;
  min-height: 0;
  align-items: stretch;
  padding: 16px 24px;
}
body.play-single-screen .play-stage-container {
  height: 100%;
  min-height: 0;
  max-height: 860px;
  margin: auto;
  grid-template-rows: minmax(0, 1fr);
}
body.play-single-screen .stage-poster-card {
  height: 100%;
  min-height: 0;
}
body.play-single-screen .stage-chat-window {
  min-height: 0;
}
body.play-single-screen .chat-window-header,
body.play-single-screen .chat-bottom-console {
  flex: 0 0 auto;
}
body.play-single-screen .chat-messages-viewport {
  min-height: 0;
}
/* 未登录：登录遮罩占用中间区域，内容超出时在该区域内滚动，页面本身不动 */
body.play-single-screen > #root > .auth-barrier-wrapper {
  flex: 1 1 auto;
  min-height: 0;
  margin: 0 auto;
  padding: 24px 20px;
  overflow-y: auto;
}
@media (max-width: 1080px) {
  body.play-single-screen .play-stage-container {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 38%) minmax(0, 1fr);
    gap: 14px;
  }
}
@media (max-width: 768px) {
  body.play-single-screen > #root > .play-stage-wrapper {
    padding: 8px 8px 12px !important;
    align-items: stretch !important;
  }
  body.play-single-screen .play-stage-container {
    grid-template-rows: auto minmax(0, 1fr) !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    gap: 12px !important;
  }
  body.play-single-screen .stage-chat-window {
    height: auto !important;
  }
}

/* 商城与价格 */
.shop-hero-section {
  padding: 48px 0;
  background: radial-gradient(circle at 50% 0%, rgba(236, 72, 153, 0.1) 0%, transparent 70%);
  border-bottom: 1px solid var(--border-subtle);
}
.shop-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.shop-main-title { font-size: 34px; font-weight: 800; color: #fff; margin-bottom: 6px; }
.shop-subtitle { font-size: 15px; color: var(--text-muted); }

.user-assets-box {
  background: var(--bg-card);
  border: 1px solid rgba(236, 72, 153, 0.3);
  border-radius: var(--radius-md);
  padding: 16px 24px;
}
.asset-title { font-size: 12px; font-weight: 700; color: var(--text-dim); text-transform: uppercase; margin-bottom: 8px; }
.asset-badges-row { display: flex; gap: 20px; }
.asset-badge { display: flex; align-items: center; gap: 8px; }
.asset-val { font-size: 18px; font-weight: 800; color: #fff; display: block; line-height: 1; }
.asset-lbl { font-size: 11px; color: var(--text-dim); }

.shop-section-heading { margin-bottom: 24px; }
.section-h2 { font-size: 24px; font-weight: 800; color: #fff; }
.section-desc { font-size: 13px; color: var(--text-dim); }

.gems-pack-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1024px) {
  .gems-pack-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .gems-pack-grid { grid-template-columns: 1fr; }
}
.gem-sku-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}
.gem-sku-card:hover {
  transform: translateY(-4px);
  border-color: rgba(236, 72, 153, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
}
.sku-ribbon {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #f43f5e;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
}
.sku-gem-large { font-size: 42px; display: block; margin-bottom: 12px; }
.sku-title { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.sku-amount-total { font-size: 22px; font-weight: 900; color: #38bdf8; margin-bottom: 4px; }
.sku-amount-split { font-size: 12px; color: var(--text-dim); margin-bottom: 20px; }
.sku-bonus-line { font-size: 13px; font-weight: 700; color: #f3d59a; margin: 2px 0 6px; }
.plan-perks-list .plan-bonus-line { color: #f3d59a; font-weight: 700; }
.highlight-bonus { color: #f43f5e; font-weight: 700; }
.sku-price-row { margin-bottom: 20px; }
.currency-sign { font-size: 16px; color: var(--text-muted); }
.sku-price-num { font-size: 28px; font-weight: 900; color: #fff; }
.currency-code { font-size: 12px; color: var(--text-dim); }

.btn-buy-sku {
  margin-top: auto;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-buy-sku:hover {
  background: linear-gradient(135deg, #f43f5e, #ec4899);
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(236, 72, 153, 0.4);
}

/* 订阅方案网格 */
.billing-cycle-switch {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 4px;
  gap: 4px;
}
.cycle-btn {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.cycle-btn.active {
  background: linear-gradient(135deg, #f43f5e, #ec4899);
  color: #fff;
  box-shadow: 0 2px 12px rgba(236, 72, 153, 0.4);
}
.badge-save {
  font-size: 10px;
  background: rgba(255, 255, 255, 0.25);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 4px;
}
.pending-order-banner {
  background: rgba(236, 72, 153, 0.15);
  border: 1px solid rgba(236, 72, 153, 0.4);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  margin-bottom: 24px;
  font-size: 14px;
  color: #fff;
}
.pending-order-banner a {
  color: #f43f5e;
  text-decoration: underline;
  font-weight: 700;
  margin-left: 8px;
}

.subscription-plans-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1200px) {
  .subscription-plans-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .subscription-plans-grid { grid-template-columns: 1fr; }
}
.sub-plan-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
}
.sub-plan-card.featured-plan {
  border-color: rgba(236, 72, 153, 0.5);
  box-shadow: 0 0 30px rgba(236, 72, 153, 0.2);
}
.plan-title { font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.plan-price { font-size: 32px; font-weight: 900; color: #fff; margin-bottom: 24px; }
.plan-price span { font-size: 14px; font-weight: 500; color: var(--text-dim); }
.plan-perks-list { list-style: none; margin-bottom: 32px; display: flex; flex-direction: column; gap: 12px; }
.plan-perks-list li { font-size: 13px; color: #cbd5e1; }
.btn-subscribe {
  margin-top: auto;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.btn-subscribe.btn-featured {
  background: linear-gradient(135deg, #f43f5e, #ec4899);
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(236, 72, 153, 0.4);
}
.btn-subscribe:disabled,
.sub-plan-card.current-plan .btn-subscribe {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: default;
}

/* 站内结账弹窗（氛围图顶栏 + 宝石装饰 + 渠道卡片 + 扫码面板） */
.checkout-modal-box {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  overflow-x: hidden;
  overflow-y: auto;
  background: #17101a;
  border: 1px solid rgba(236, 72, 153, 0.35);
  border-radius: 22px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.85), 0 0 48px rgba(236, 72, 153, 0.12);
}
.checkout-hero {
  position: relative;
  height: 156px;
  padding: 28px 28px 0;
  overflow: hidden;
  background: #0d070b url('/assets/images/backgrounds/hero_ambient_bg.webp') no-repeat center center / cover;
}
.checkout-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 7, 11, 0.2) 0%, rgba(23, 16, 26, 0.55) 60%, #17101a 100%);
  pointer-events: none;
}
/* 宝石的光晕用独立的径向渐变铺在下面：不能给宝石本身加 filter，否则 mix-blend-mode 失效，黑底会露出来 */
.checkout-hero::before {
  content: "";
  position: absolute;
  right: -10px;
  top: -16px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.42), rgba(236, 72, 153, 0) 68%);
  pointer-events: none;
}
.checkout-hero-gem {
  position: absolute;
  right: 20px;
  top: 14px;
  z-index: 1;
  width: 130px;
  height: 130px;
  mix-blend-mode: screen;
  animation: checkoutGemFloat 5.5s ease-in-out infinite;
  pointer-events: none;
}
.checkout-kicker {
  position: relative;
  z-index: 1;
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f9a8d4;
}
.checkout-modal-title {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
}
.checkout-body { padding: 22px 28px 26px; }
.checkout-item-summary {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
  padding: 14px 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.16), rgba(168, 85, 247, 0.06));
  border: 1px solid rgba(236, 72, 153, 0.22);
}
.checkout-item-summary::before,
.checkout-item-summary::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border-radius: 50%;
  background: #17101a;
}
.checkout-item-summary::before { left: -8px; }
.checkout-item-summary::after { right: -8px; }
.checkout-item-gem {
  flex: 0 0 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: radial-gradient(circle at 50% 40%, rgba(236, 72, 153, 0.35), rgba(236, 72, 153, 0.04) 72%);
}
.checkout-item-gem img {
  display: block;
  width: 40px;
  height: 40px;
  mix-blend-mode: screen;
}
.checkout-item-info { flex: 1; min-width: 0; }
.checkout-item-name { font-size: 15px; font-weight: 700; color: #fff; }
.checkout-item-desc { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.checkout-item-price {
  font-size: 22px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(90deg, #fbcfe8, #f472b6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pay-method-group { margin-bottom: 18px; }
.pay-method-label {
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.pay-method-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.pay-method-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.pay-method-option:hover { border-color: rgba(236, 72, 153, 0.45); transform: translateY(-1px); }
.pay-method-option:focus-within { outline: 2px solid rgba(236, 72, 153, 0.6); outline-offset: 2px; }
.pay-method-option.selected {
  border-color: rgba(236, 72, 153, 0.9);
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(236, 72, 153, 0.05));
  box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.12), 0 10px 28px rgba(236, 72, 153, 0.18);
}
.pay-method-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}
.pay-method-badge {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.pay-method-badge[hidden] { display: none; }
.pay-method-badge svg { width: 24px; height: 24px; }
.pay-method-badge.is-wechat { background: linear-gradient(135deg, #3ddc84, #07c160); }
.pay-method-badge.is-alipay { background: linear-gradient(135deg, #38a2ff, #1677ff); }
.pay-method-badge.is-generic { background: linear-gradient(135deg, #f472b6, #a855f7); }
.pay-method-badge .pay-badge-dot { fill: rgba(0, 0, 0, 0.28); }
.pay-badge-glyph { font-size: 20px; font-weight: 900; line-height: 1; }
.pay-method-text { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 3px; }
.method-name { font-size: 14px; font-weight: 700; color: #fff; }
.method-sub { font-size: 11px; line-height: 1.4; color: var(--text-dim); }
.pay-method-check {
  position: relative;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.pay-method-option.selected .pay-method-check { background: #ec4899; border-color: #ec4899; }
.pay-method-option.selected .pay-method-check::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 4px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.btn-submit-pay {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 18px;
  overflow: hidden;
  border: none;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #f43f5e, #ec4899 55%, #a855f7);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 8px 26px rgba(236, 72, 153, 0.38);
  transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.btn-submit-pay::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  animation: checkoutShine 3.6s ease-in-out infinite;
  pointer-events: none;
}
.btn-submit-pay:hover { transform: translateY(-1px); box-shadow: 0 12px 32px rgba(236, 72, 153, 0.5); }
.btn-submit-pay:disabled { opacity: 0.65; cursor: wait; transform: none; }
.btn-submit-pay:disabled::after { display: none; }
.btn-submit-pay[hidden] { display: none; }
.btn-lock-icon { flex: 0 0 16px; width: 16px; height: 16px; }
.checkout-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 14px 0 0;
  font-size: 11px;
  color: var(--text-dim);
  text-align: center;
}
.checkout-trust[hidden] { display: none; }
.checkout-trust svg { flex: 0 0 13px; width: 13px; height: 13px; color: #f9a8d4; }
.pay-qr-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}
.pay-qr-panel[hidden] { display: none; }
.pay-qr-head { display: flex; align-items: center; gap: 10px; }
.pay-qr-head .pay-method-badge { flex-basis: 32px; width: 32px; height: 32px; border-radius: 10px; }
.pay-qr-head .pay-method-badge svg { width: 18px; height: 18px; }
.pay-qr-title { margin: 0; font-size: 16px; font-weight: 800; color: #fff; }
.pay-qr-frame {
  position: relative;
  padding: 18px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(236, 72, 153, 0.35), 0 18px 50px rgba(236, 72, 153, 0.25);
}
.qr-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 3px solid #ec4899;
  pointer-events: none;
}
.qr-corner-tl { top: 8px; left: 8px; border-right: none; border-bottom: none; border-top-left-radius: 8px; }
.qr-corner-tr { top: 8px; right: 8px; border-left: none; border-bottom: none; border-top-right-radius: 8px; }
.qr-corner-bl { bottom: 8px; left: 8px; border-right: none; border-top: none; border-bottom-left-radius: 8px; }
.qr-corner-br { bottom: 8px; right: 8px; border-left: none; border-top: none; border-bottom-right-radius: 8px; }
.pay-qr-code { width: 200px; height: 200px; }
.pay-qr-code img, .pay-qr-code canvas, .pay-qr-code table {
  display: block;
  margin: 0 auto;
}
.pay-qr-amount {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(236, 72, 153, 0.12);
  border: 1px solid rgba(236, 72, 153, 0.28);
  font-size: 13px;
  font-weight: 700;
  color: #fbcfe8;
}
.pay-qr-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}
.pulse-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ec4899;
}
.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid rgba(236, 72, 153, 0.6);
  animation: pulseRing 1.6s ease-out infinite;
}
.pay-qr-hint {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-dim);
  text-align: center;
  text-wrap: balance;
}
.pay-qr-hint[hidden] { display: none; }

@keyframes checkoutGemFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(4deg); }
}
@keyframes checkoutShine {
  0%, 60% { left: -60%; }
  100% { left: 130%; }
}
@keyframes pulseRing {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .checkout-hero-gem, .btn-submit-pay::after, .pulse-dot::after { animation: none; }
}
@media (max-width: 560px) {
  .checkout-modal-box { border-radius: 18px; }
  .checkout-hero { height: 128px; padding: 22px 20px 0; }
  .checkout-hero-gem { right: 12px; top: 34px; width: 84px; height: 84px; }
  .checkout-hero::before { right: -21px; top: 1px; width: 150px; height: 150px; }
  .checkout-modal-title { font-size: 22px; }
  .checkout-body { padding: 18px 18px 20px; }
  .pay-method-list { grid-template-columns: 1fr; }
}

/* 登录与注册页 */
.auth-page-body {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: #0c080d url('/assets/images/backgrounds/auth_ambient_bg.webp') no-repeat center center fixed;
  background-size: cover;
  padding: 24px;
  overflow-x: hidden;
}
.auth-page-body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(12, 8, 13, 0.52) 0%, rgba(8, 5, 9, 0.88) 100%);
  pointer-events: none;
  z-index: 0;
}
.auth-card-container {
  position: relative;
  z-index: 1;
  max-width: 440px;
  width: 100%;
  text-align: center;
}
.auth-brand-logo { margin-bottom: 24px; display: inline-block; }
.auth-card-box {
  background: rgba(22, 14, 19, 0.82);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(236, 72, 153, 0.35);
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.85), 0 0 40px rgba(236, 72, 153, 0.15);
  text-align: left;
}
.auth-card-title { font-size: 24px; font-weight: 800; color: #fff; margin-bottom: 6px; }
.auth-card-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }
.auth-field-group { margin-bottom: 18px; }
.auth-label { font-size: 12px; font-weight: 700; color: #d1d5db; display: block; margin-bottom: 6px; }
.auth-input {
  width: 100%;
  padding: 11px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 14px;
  outline: none;
}
.auth-input:focus { border-color: var(--accent-pink); background: rgba(255, 255, 255, 0.08); }
.captcha-input-group {
  display: flex;
  gap: 10px;
  align-items: center;
}
.captcha-img-box {
  width: 120px;
  height: 42px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
  transition: border-color 0.2s;
}
.captcha-img-box:hover {
  border-color: var(--accent-pink);
}
.captcha-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.btn-email-code {
  height: 42px;
  padding: 0 14px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.btn-email-code:hover:not(:disabled) {
  border-color: var(--accent-pink);
}
.btn-email-code:disabled {
  opacity: 0.45;
  cursor: default;
}
.btn-auth-submit {
  width: 100%;
  padding: 13px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #f43f5e, #ec4899);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  margin-top: 10px;
  box-shadow: 0 4px 18px rgba(236, 72, 153, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(236, 72, 153, 0.5);
}
.btn-auth-submit:active {
  transform: translateY(1px);
}

/* 密码输入与显示切换 */
.auth-password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.auth-password-wrapper .auth-input {
  width: 100%;
  padding-right: 42px;
}
.btn-toggle-password {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}
.btn-toggle-password:hover {
  color: #fff;
}
.btn-toggle-password.active {
  color: var(--accent-pink);
}

/* 记住登录与找回密码 */
.auth-options-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 14px 0 6px;
  font-size: 13px;
}
.auth-remember-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}
.auth-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  display: grid;
  place-content: center;
  transition: border-color 0.2s, background 0.2s;
}
.auth-checkbox:checked {
  background: var(--accent-pink);
  border-color: var(--accent-pink);
}
.auth-checkbox:checked::before {
  content: "";
  width: 8px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
}
.auth-forgot-link {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.auth-forgot-link:hover {
  color: var(--accent-pink);
}

/* 第三方授权登录 */
.oauth-section-container {
  margin-top: 24px;
}
.auth-divider-line {
  position: relative;
  text-align: center;
  margin-bottom: 18px;
}
.auth-divider-line::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}
.auth-divider-line span {
  position: relative;
  background: #111115;
  padding: 0 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.oauth-actions-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.btn-oauth-main {
  width: 100%;
  padding: 11px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-oauth-main:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}
.btn-oauth-main:active {
  transform: translateY(1px);
}
.oauth-icon-slot {
  display: flex;
  align-items: center;
  justify-content: center;
}
.oauth-svg-icon {
  width: 20px;
  height: 20px;
  display: block;
}
.oauth-btn-text {
  font-size: 14px;
  letter-spacing: 0.01em;
}

/* 登录渠道图标网格 */
.oauth-grid-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: 8px;
}
.btn-oauth-icon {
  padding: 9px 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: #fff;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-oauth-icon .oauth-svg-icon {
  width: 17px;
  height: 17px;
}
.oauth-icon-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}
.btn-oauth-icon:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}
.btn-oauth-icon:hover .oauth-icon-label {
  color: #fff;
}

/* 品牌按钮的悬停效果 */
.btn-oauth-google:hover { border-color: rgba(66, 133, 244, 0.4); }
.btn-oauth-apple:hover { border-color: rgba(255, 255, 255, 0.5); }
.btn-oauth-discord:hover { border-color: rgba(88, 101, 242, 0.5); box-shadow: 0 4px 14px rgba(88, 101, 242, 0.2); }
.btn-oauth-twitter:hover { border-color: rgba(255, 255, 255, 0.4); }
.btn-oauth-facebook:hover { border-color: rgba(24, 119, 242, 0.5); }
.btn-oauth-microsoft:hover { border-color: rgba(0, 164, 239, 0.5); }
.btn-oauth-line:hover { border-color: rgba(6, 199, 85, 0.5); }

.auth-footer-switch { text-align: center; margin-top: 24px; font-size: 13px; color: var(--text-dim); }
.auth-link-highlight { color: var(--accent-pink); font-weight: 600; margin-left: 6px; }

/* 账号表单的登录方式、手机号、提示与微信二维码 */
.auth-card-box [hidden] { display: none !important; }
.auth-tabs { display: flex; gap: 6px; padding: 4px; margin-bottom: 22px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border-subtle); }
.auth-tabs-sub { margin: 0 0 18px; }
.auth-tab { flex: 1; padding: 8px 10px; border: none; border-radius: var(--radius-pill); background: transparent; color: var(--text-muted); font-size: 13px; font-weight: 600; cursor: pointer; transition: color 0.2s, background 0.2s; }
.auth-tab:hover { color: #fff; }
.auth-tab.active { color: #fff; background: rgba(236, 72, 153, 0.22); box-shadow: inset 0 0 0 1px rgba(236, 72, 153, 0.45); }
.auth-phone-group { display: flex; align-items: center; gap: 10px; }
.auth-phone-group .auth-input { flex: 1; min-width: 0; }
.auth-phone-prefix { flex-shrink: 0; height: 42px; padding: 0 12px; display: inline-flex; align-items: center; border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border-subtle); color: var(--text-muted); font-size: 14px; font-weight: 600; }
.auth-notice { font-size: 13px; line-height: 1.6; color: var(--text-muted); margin: 0 0 18px; }
.auth-hint { font-size: 12px; line-height: 1.6; color: var(--text-dim); margin: 6px 0 12px; }
.auth-adult-label { margin-top: 4px; }
.auth-qr-box { margin-top: 12px; padding: 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border-subtle); text-align: center; }
.auth-qr-hint { font-size: 12px; line-height: 1.6; color: var(--text-muted); margin: 0 0 10px; }
.auth-qr-frame iframe { display: block; width: 300px; max-width: 100%; height: 330px; margin: 0 auto; border: 0; border-radius: 10px; background: #fff; }
.btn-auth-ghost { margin-top: 10px; padding: 8px 16px; border-radius: var(--radius-pill); border: 1px solid var(--border-subtle); background: rgba(255, 255, 255, 0.06); color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; }
.btn-auth-ghost:hover { border-color: var(--accent-pink); }
.btn-oauth-wechat:hover { border-color: rgba(7, 193, 96, 0.5); }

/* 下载中心 */
.download-hero-section {
  padding: 56px 0 80px;
  background: radial-gradient(circle at 50% 10%, rgba(236, 72, 153, 0.08) 0%, transparent 60%);
}
.download-hero-inner { text-align: center; max-width: 700px; margin: 0 auto 48px; }
.download-main-title { font-size: 38px; font-weight: 900; color: #fff; margin-bottom: 12px; }
.download-subtitle { font-size: 16px; color: var(--text-muted); }

.download-platforms-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 1024px) {
  .download-platforms-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .download-platforms-grid { grid-template-columns: 1fr; }
}
.platform-download-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
}
.platform-download-card.featured-download {
  border-color: rgba(236, 72, 153, 0.5);
  box-shadow: 0 0 30px rgba(236, 72, 153, 0.2);
}
.platform-icon-wrap {
  width: 54px;
  height: 54px;
  margin: 0 auto 16px;
  color: #fff;
}
.platform-name { font-size: 18px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.platform-desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin-bottom: 20px; }
.apk-meta-row { font-size: 11px; color: var(--text-dim); display: flex; justify-content: center; gap: 12px; margin-bottom: 24px; }
.btn-download-action {
  margin-top: auto;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-download-action.is-soon {
  background: rgba(255, 255, 255, 0.03);
  border-style: dashed;
  color: var(--text-dim);
  cursor: default;
}
.btn-download-action.primary {
  background: linear-gradient(135deg, #f43f5e, #ec4899);
  border-color: transparent;
  box-shadow: 0 4px 18px rgba(236, 72, 153, 0.4);
}

/* 角色库 */
.gallery-hero-strip {
  padding: 32px 0 20px;
  border-bottom: 1px solid var(--border-subtle);
}
.gallery-hero-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.gallery-title { font-size: 28px; font-weight: 800; color: #fff; margin-bottom: 4px; }
.gallery-subtitle { font-size: 14px; color: var(--text-muted); }
.gender-pill-group { display: flex; gap: 8px; }
.gender-tab {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  font-size: 12px;
  color: var(--text-muted);
}
.gender-tab.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

/* 剧本目录 */
.stories-catalog-hero {
  padding: 36px 0 24px;
  border-bottom: 1px solid var(--border-subtle);
  background: radial-gradient(circle at 15% 30%, rgba(244, 63, 94, 0.08), transparent 60%);
}
.catalog-hero-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.catalog-main-title {
  font-size: 32px;
  font-weight: 850;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.catalog-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 700px;
}
.gender-pill-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
}
.gender-tag-btn {
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  transition: all 0.2s ease;
}
.gender-tag-btn:hover, .gender-tag-btn.active {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

/* 全局提示 */
.loreva-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.loreva-toast-item {
  background: #1f141b;
  border: 1px solid rgba(236, 72, 153, 0.4);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  pointer-events: auto;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.loreva-toast-item.toast-success { border-color: #10b981; }
.loreva-toast-item.toast-warning { border-color: #f59e0b; }
.loreva-toast-item.toast-error { border-color: #f43f5e; }
.loreva-toast-item.fade-out { opacity: 0; transform: translateY(10px); }

/* 页脚 */
.portal-footer {
  border-top: 1px solid var(--border-subtle);
  background: #090608;
  padding: 28px 0;
  font-size: 12px;
  color: var(--text-dim);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-links-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-links-row a { color: var(--text-dim); transition: color 0.2s ease; }
.footer-links-row a:hover { color: var(--text-main); }

/* 页头快速创作入口与角色工作台 */
.btn-create-top-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.2), rgba(236, 72, 153, 0.2));
  border: 1px solid rgba(236, 72, 153, 0.45);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.15);
}
.btn-create-top-pill:hover {
  background: linear-gradient(135deg, #f43f5e, #ec4899);
  border-color: transparent;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(236, 72, 153, 0.35);
}
.btn-guide-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e5e7eb;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.btn-guide-top:hover,
.btn-guide-top.active {
  color: #fff;
  border-color: rgba(196, 176, 138, 0.7);
  background: rgba(196, 176, 138, 0.12);
}
@media (max-width: 1280px) {
  .btn-guide-top span { display: none; }
  .btn-guide-top { padding: 7px 10px; }
}

.guide-lead { max-width: 720px; }
.guide-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.guide-toc a {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: #e5e7eb;
  font-size: 13px;
  font-weight: 700;
}
.guide-toc a:hover { border-color: rgba(236, 72, 153, 0.5); color: #fff; }
.guide-main { padding: 28px 24px 80px; display: flex; flex-direction: column; gap: 22px; }
.guide-section {
  padding: 26px 28px 22px;
  border-radius: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
}
.guide-section h2 { font-size: 22px; font-weight: 850; margin-bottom: 8px; }
.guide-section-lead { color: var(--text-muted); max-width: 760px; margin-bottom: 18px; line-height: 1.6; }
.guide-steps { list-style: none; display: flex; flex-direction: column; gap: 14px; margin: 0 0 18px; }
.guide-steps li { display: flex; gap: 14px; align-items: flex-start; }
.guide-step-no {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #f43f5e, #ec4899);
}
.guide-steps h3 { font-size: 16px; font-weight: 800; margin-bottom: 6px; }
.guide-steps p { font-size: 14.5px; color: var(--text-muted); line-height: 1.75; max-width: 820px; }
.guide-steps p + p { margin-top: 8px; }
.guide-section { scroll-margin-top: 88px; }
.guide-section.is-film {
  border-color: rgba(196, 176, 138, 0.45);
  background: linear-gradient(180deg, rgba(196, 176, 138, 0.08), transparent 120px);
}
.guide-section.is-film h2 { color: var(--play-gold, #c4b08a); }
.guide-links { display: flex; flex-wrap: wrap; gap: 8px; }
.guide-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(236, 72, 153, 0.35);
  background: rgba(236, 72, 153, 0.08);
  color: #f9a8d4;
  font-size: 13px;
  font-weight: 700;
}
.guide-link:hover { background: rgba(236, 72, 153, 0.2); color: #fff; }
@media (max-width: 640px) {
  .guide-section { padding: 20px 16px; }
}

/* 创作页主体 */
.create-page-body {
  background: #0d060a;
  min-height: 100vh;
  position: relative;
}
.create-workspace-main {
  padding: 32px 0 80px;
}

/* 登录提示 */
.auth-barrier-wrapper,
.create-login-barrier,
.play-login-barrier {
  max-width: 600px;
  margin: 50px auto 80px;
  position: relative;
  z-index: 10;
  padding: 0 20px;
}
.play-barrier-card {
  padding: 44px 36px;
}
.barrier-character-lead {
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 14px 18px;
  margin-bottom: 24px;
}
.barrier-avatar-ring {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  flex-shrink: 0;
}
.barrier-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.barrier-meta-texts {
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
}
.barrier-scene-badge {
  font-size: 10px;
  font-weight: 800;
  color: #f472b6;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.barrier-scene-name {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}
.barrier-scene-char {
  font-size: 13px;
  color: var(--text-muted);
}
.barrier-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  margin-bottom: 24px;
}
.barrier-card-box {
  background: rgba(22, 12, 19, 0.85);
  backdrop-filter: blur(28px);
  border: 1px solid rgba(236, 72, 153, 0.3);
  border-radius: 24px;
  padding: 50px 40px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
}
.barrier-icon-badge {
  font-size: 38px;
  margin-bottom: 16px;
}
.barrier-title {
  font-size: 28px;
  font-weight: 850;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.barrier-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 30px;
}
.barrier-btn-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
}
.barrier-btn-group .btn-hero-primary,
.barrier-btn-group .btn-hero-secondary {
  padding: 12px 28px;
  font-size: 14px;
}
.barrier-perks-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 16px 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.perk-item {
  font-size: 13px;
  color: #cbd5e1;
}

/* 已登录的创作工作区 */
.create-studio-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 36px;
  align-items: start;
}
@media (max-width: 1080px) {
  .create-studio-grid {
    grid-template-columns: 1fr;
  }
}

/* 工作台表单 */
.studio-form-card {
  background: rgba(20, 11, 18, 0.75);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 32px 36px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* 表单分区标题 */
.form-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.section-title-label {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}
.section-top-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}
.counter-text {
  font-size: 12px;
  color: var(--text-dim);
}
.switch-inline-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #e5e7eb;
  cursor: pointer;
}
.hidden-chk { display: none; }
.custom-toggle {
  width: 38px;
  height: 22px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.15);
  position: relative;
  transition: background 0.25s ease;
  cursor: pointer;
}
.custom-toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.custom-toggle.active {
  background: #f43f5e;
}
.custom-toggle.active::after {
  transform: translateX(16px);
}

/* 头像拖放上传区 */
.avatar-drop-zone {
  width: 130px;
  height: 175px;
  border: 2px dashed rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.25s, background 0.25s;
}
.avatar-drop-zone:hover {
  border-color: rgba(236, 72, 153, 0.6);
  background: rgba(236, 72, 153, 0.05);
}
.avatar-preview-box {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.avatar-empty-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  text-align: center;
  padding: 12px;
}
.upload-camera-icon { font-size: 26px; }
.upload-prompt-text { font-size: 12px; font-weight: 600; color: #d1d5db; }
.avatar-uploaded-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-action-btns {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}
.btn-studio-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-studio-action:hover {
  background: rgba(255, 255, 255, 0.15);
}
.btn-studio-action.ghost {
  background: transparent;
  color: var(--text-muted);
}
.btn-studio-action.ghost:hover {
  color: #fff;
}
.btn-studio-action:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.gem-cost {
  font-style: normal;
  color: #f5c76b;
  font-weight: 700;
  margin-left: 4px;
}
.asset-group {
  margin-top: 6px;
}

.link-btn {
  background: none;
  border: 0;
  padding: 0;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
}
.link-btn:hover {
  color: #fff;
}

.form-row-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.row-toggle-label {
  font-size: 13px;
  font-weight: 600;
  color: #e5e7eb;
}

/* 规则提示横幅 */
.studio-rules-banner {
  background: rgba(244, 63, 94, 0.08);
  border-left: 3px solid #f43f5e;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 12px;
  color: #fca5a5;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.warning-icon { color: #f43f5e; font-size: 11px; margin-top: 2px; }

/* 表单字段 */
.form-field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.field-label {
  font-size: 13px;
  font-weight: 700;
  color: #f3f4f6;
}
.char-count {
  font-size: 11px;
  color: var(--text-dim);
}
.studio-text-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 11px 14px;
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.studio-text-input:focus {
  border-color: rgba(236, 72, 153, 0.5);
  background: rgba(255, 255, 255, 0.07);
}
.studio-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 12px 14px;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  line-height: 1.55;
  outline: none;
  resize: vertical;
  transition: border-color 0.2s, background 0.2s;
}
.studio-textarea:focus {
  border-color: rgba(236, 72, 153, 0.5);
  background: rgba(255, 255, 255, 0.07);
}
.field-hint-text {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.4;
}

/* 胶囊式选项 */
.capsule-pill-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.capsule-pill {
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.capsule-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.capsule-pill.active {
  background: linear-gradient(135deg, #f43f5e, #ec4899);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 12px rgba(244, 63, 94, 0.3);
}

/* 成年确认复选框 */
.compliance-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 6px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
}
.compliance-checkbox {
  margin-top: 3px;
  cursor: pointer;
  accent-color: #f43f5e;
}
.compliance-label {
  font-size: 12px;
  color: #d1d5db;
  line-height: 1.45;
  cursor: pointer;
}

/* 工作台底部操作区 */
.studio-actions-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  gap: 14px;
}
.actions-left-group, .actions-right-group {
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn-footer-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-footer-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
.btn-footer-primary {
  padding: 10px 32px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #f43f5e, #ec4899);
  border: none;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 18px rgba(244, 63, 94, 0.35);
}
.btn-footer-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(244, 63, 94, 0.5);
}
.btn-footer-guide {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.btn-footer-guide:hover { color: #fff; }
.creator-guide-box { max-width: 560px; width: 100%; padding: 28px; }
.role-picker-box { max-width: 520px; width: 100%; padding: 26px; max-height: 86vh; overflow-y: auto; }
.role-sec-title { margin: 14px 0 8px; font-size: 12px; font-weight: 800; letter-spacing: 0.04em; color: var(--text-dim); }
.role-option-list { display: flex; flex-direction: column; gap: 8px; }
.role-option {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 10px 12px; border-radius: 12px; cursor: pointer;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1); color: #fff;
}
.role-option.on { border-color: var(--accent-pink); background: rgba(236, 72, 153, 0.12); }
.role-option-av {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(236, 72, 153, 0.2); font-weight: 800;
}
.role-option-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.role-option-info b { font-size: 14px; }
.role-option-info small { font-size: 12px; color: var(--text-muted); line-height: 1.4; }
.role-picker-note { font-size: 12px; color: var(--text-dim); }
.creator-guide-list { margin: 16px 0; padding-left: 20px; display: flex; flex-direction: column; gap: 12px; }
.creator-guide-list li { color: var(--text-muted); font-size: 13px; line-height: 1.55; }
.creator-guide-list b { display: block; color: #fff; font-size: 14px; margin-bottom: 2px; }
.creator-guide-link { display: inline-block; margin-top: 4px; color: var(--accent-pink); font-size: 13px; font-weight: 700; }

/* 右栏移动端预览 */
.preview-sticky-wrap {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.preview-title-bar {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

/* 设备预览边框 */
.mobile-phone-frame {
  width: 320px;
  height: 600px;
  border-radius: 36px;
  background: #000;
  border: 8px solid #251a23;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(236, 72, 153, 0.15);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.phone-notch {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 14px;
  background: #140d12;
  border-radius: 8px;
  z-index: 10;
}
.phone-model-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  padding: 3px 8px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 700;
  color: #e5e7eb;
  display: flex;
  align-items: center;
  gap: 4px;
}

.phone-screen-content {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.phone-backdrop-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  transition: background-image 0.4s ease;
}
.phone-gradient-layer {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14, 8, 12, 0.96) 0%, rgba(14, 8, 12, 0.75) 50%, rgba(14, 8, 12, 0.3) 100%);
  z-index: 1;
}

/* 设备预览内容 */
.phone-chat-feed {
  position: relative;
  z-index: 2;
  flex: 1;
  padding: 46px 14px 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.preview-tagline-box {
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  font-size: 11px;
  color: #d1d5db;
  line-height: 1.35;
}
.preview-tagline-tag {
  color: #f43f5e;
  font-weight: 700;
  margin-right: 4px;
}
.preview-msg-bubble {
  background: rgba(26, 16, 23, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px 14px 14px 14px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.prev-sender-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-pink);
}
.prev-msg-text {
  font-size: 12px;
  color: #f1f5f9;
  line-height: 1.5;
  white-space: pre-wrap;
}

/* 设备预览底部输入框 */
.phone-bottom-input-bar {
  position: relative;
  z-index: 2;
  margin: 0 12px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.phone-fake-input {
  font-size: 12px;
  color: #9ca3af;
}
.phone-fake-send-arrow {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(244, 63, 94, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

/* 首页的创作工作台入口 */
.creator-studio-section {
  position: relative;
  padding: 88px 0;
  background: #09060b url('/assets/images/backgrounds/creator_ambient_bg.webp') no-repeat center center;
  background-size: cover;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}
.creator-studio-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 6, 11, 0.9) 0%, rgba(14, 8, 15, 0.84) 50%, rgba(10, 6, 11, 0.95) 100%);
  pointer-events: none;
}
.creator-studio-section .portal-container {
  position: relative;
  z-index: 1;
}
.creator-studio-dual {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.creator-p-desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 28px;
}
.creator-perks-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}
.creator-perk-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.perk-icon {
  font-size: 20px;
  color: var(--accent-pink);
  line-height: 1.2;
}
.creator-perk-row strong {
  font-size: 15px;
  color: #fff;
  display: block;
  margin-bottom: 4px;
}
.creator-perk-row p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}
.creator-cta-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.creator-glass-card {
  background: rgba(22, 14, 20, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(236, 72, 153, 0.3);
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}
.glass-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  color: var(--accent-pink);
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}
.glow-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
}
.glass-stat-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.stat-number {
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 12px;
  color: var(--text-dim);
}
.glass-preview-character {
  padding: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}
.preview-mini-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-pink);
  margin-bottom: 6px;
}
.preview-mini-body {
  font-size: 13px;
  color: #e2e8f0;
  font-style: italic;
  line-height: 1.5;
  display: flex;
  gap: 6px;
}

/* 移动端和平板布局断点（992、768 和 480 像素） */

@media (max-width: 992px) {
  /* 平板与手机页头 */
  .portal-header {
    padding: 10px 0 10px;
  }
  .portal-container {
    padding: 0 16px;
  }
  .header-top-row nav,
  .channel-tabs {
    display: none !important;
  }
  .header-actions .search-box-wrap {
    display: none !important;
  }
  .header-sub-row {
    display: none !important;
  }
  .mobile-hamburger-btn {
    display: flex !important;
  }
  .btn-create-top-pill span {
    display: none;
  }
  .btn-create-top-pill {
    padding: 7px 10px;
  }
  .hero-dual-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .creator-studio-dual {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 768px) {
  /* 分类筛选栏横向滚动 */
  .filter-bar-row {
    overflow-x: auto;
    white-space: nowrap;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    gap: 8px;
  }
  .filter-bar-row::-webkit-scrollbar {
    display: none;
  }
  .filter-tab {
    flex-shrink: 0;
    padding: 6px 14px;
    font-size: 13px;
  }

  /* 移动端双列剧本与角色卡片 */
  .character-card-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .tipsy-card-content {
    padding: 10px 8px 8px !important;
  }
  .tipsy-card-name {
    font-size: 13px !important;
    margin-bottom: 2px !important;
  }
  .tipsy-card-hook {
    font-size: 11px !important;
    -webkit-line-clamp: 2 !important;
    margin-bottom: 4px !important;
  }
  .tipsy-card-badge {
    padding: 1px 4px !important;
    font-size: 9px !important;
  }

  /* 主视觉标题与操作按钮 */
  .portal-hero-strip {
    padding: 36px 0 28px;
  }
  /* 手机端文案通栏，统一压暗，保证可读 */
  .portal-hero-strip::before {
    background: linear-gradient(180deg, rgba(15, 10, 13, 0.6) 0%, rgba(15, 10, 13, 0.66) 60%, #0f0a0d 100%);
  }
  .hero-h1-heading {
    font-size: 28px !important;
    line-height: 1.18 !important;
  }
  .hero-p-subtitle {
    font-size: 14px !important;
    margin-bottom: 22px !important;
  }
  .hero-cta-button-row {
    flex-direction: column;
    width: 100%;
    gap: 10px !important;
  }
  .hero-cta-button-row .btn-hero-primary,
  .hero-cta-button-row .btn-hero-secondary {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
  }
  .hero-spotlight-card {
    height: 380px !important;
  }

  /* 移动端剧本预览抽屉 */
  .roleplay-drawer-box {
    max-width: 95vw !important;
    width: 95vw !important;
    max-height: 90vh !important;
    border-radius: 16px !important;
    overflow-y: auto !important;
  }
  .roleplay-drawer-box.drawer-two-col {
    grid-template-columns: 1fr !important;
  }
  .drawer-poster-side {
    height: 200px !important;
    flex-shrink: 0;
  }
  .drawer-info-side {
    padding: 18px 16px 22px !important;
  }
  .drawer-title {
    font-size: 20px !important;
  }
  .drawer-close-btn {
    top: 10px !important;
    right: 10px !important;
    background: rgba(0, 0, 0, 0.7) !important;
  }

  /* 移动端游玩舞台 */
  .play-stage-wrapper {
    padding: 8px 8px 16px !important;
    align-items: flex-start !important;
  }
  .play-stage-container {
    grid-template-columns: 1fr !important;
    height: auto !important;
    min-height: auto !important;
    gap: 12px !important;
  }
  .stage-poster-card {
    height: 180px !important;
    border-radius: 14px !important;
  }
  .poster-bottom-watermark {
    display: none !important;
  }
  .stage-chat-window {
    height: 72vh !important;
    border-radius: 14px !important;
  }
  .chat-messages-viewport {
    padding: 12px 10px !important;
  }
  .chat-bubble-card {
    max-width: 94% !important;
  }
  .chat-quick-choices-row {
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 6px !important;
  }
  .btn-quick-choice-pill {
    flex-shrink: 0 !important;
    max-width: 85% !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    overflow: hidden !important;
  }
  .chat-input-bar-area {
    padding: 10px 10px !important;
  }

  /* 移动端角色创作工作台 */
  .create-studio-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }
  .studio-form-card {
    padding: 18px 14px !important;
    border-radius: 16px !important;
  }
  .form-header-row {
    flex-wrap: wrap;
    gap: 8px;
  }
  .studio-actions-footer {
    flex-wrap: wrap !important;
    gap: 8px !important;
  }
  .btn-studio-primary {
    width: 100% !important;
    order: -1;
  }

  /* 移动端商城与钱包 */
  .shop-hero-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .user-assets-box {
    width: 100%;
  }
  .gems-pack-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .gem-sku-card {
    padding: 20px 12px !important;
  }
  .sku-amount-total {
    font-size: 18px !important;
  }
  .sku-price-num {
    font-size: 22px !important;
  }

  /* 移动端登录与注册卡片 */
  .auth-card-box {
    padding: 24px 18px !important;
    border-radius: 16px !important;
  }
  .auth-options-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }
  .auth-barrier-wrapper .barrier-card-box {
    padding: 24px 16px !important;
    margin: 14px !important;
    border-radius: 16px !important;
  }
  .barrier-btn-group {
    flex-direction: column !important;
  }
}

@media (max-width: 480px) {
  .brand-logo-text {
    font-size: 20px !important;
  }
  .gems-pack-grid {
    grid-template-columns: 1fr !important;
  }
  .mobile-drawer-content {
    width: 92% !important;
  }
  .features-section,
  .creator-studio-section {
    padding: 56px 0 !important;
  }
  .section-h2-large {
    font-size: 24px !important;
  }
}

/* 礼物与固定记忆弹窗 */
.modal-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.modal-head-title {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}
.modal-sub-desc {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.5;
  margin-bottom: 16px;
}
.btn-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #9ca3af;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-modal-close:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  transform: rotate(90deg);
}

/* 礼物选择弹窗 */
.gift-picker-modal-box {
  display: flex !important;
  flex-direction: column !important;
  grid-template-columns: none !important;
  width: 90%;
  max-width: 520px;
  background: #140b12;
  border: 1px solid rgba(236, 72, 153, 0.35);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7), 0 0 32px rgba(236, 72, 153, 0.15);
}
.gift-grid-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 4px;
  margin-bottom: 18px;
}
.gift-item-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  position: relative;
}
.gift-item-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(236, 72, 153, 0.4);
  transform: translateY(-2px);
}
.gift-item-card.selected {
  background: rgba(236, 72, 153, 0.18);
  border-color: #ec4899;
  box-shadow: 0 0 16px rgba(236, 72, 153, 0.35);
}
.gift-item-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: radial-gradient(circle at 50% 35%, rgba(236, 72, 153, 0.22) 0%, rgba(236, 72, 153, 0.04) 70%);
  font-size: 28px;
  margin-bottom: 8px;
}
.gift-item-icon img,
.gift-item-icon svg {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
}
.gift-loading-state {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 28px 0;
  color: #94a3b8;
  font-size: 13px;
}
.gift-item-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.gift-item-gems {
  font-size: 11px;
  color: #f472b6;
  font-weight: 600;
}
.gift-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
}
.gift-user-balance {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 600;
}
.btn-gift-send-action {
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #f43f5e, #ec4899);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(244, 63, 94, 0.3);
}
.btn-gift-send-action:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

/* 电影（剧终成片） */
/* 剧本进行中每一轮都能出视频；只收起自动出视频的开关（整场电影只在落幕后出现） */
body.play-scripted #btnToolAutoVideo { display: none !important; }
.tool-film-btn {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.22), rgba(168, 85, 247, 0.22));
  border-color: rgba(244, 114, 182, 0.55);
  color: #fbcfe8;
  box-shadow: 0 0 12px rgba(236, 72, 153, 0.25);
}
.tool-film-btn:hover { color: #fff; border-color: #f472b6; }
.film-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(26, 12, 22, 0.95);
  border: 1px solid rgba(236, 72, 153, 0.35);
  font-size: 12px;
  color: #fbcfe8;
}
.film-strip-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.film-strip-btn {
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(244, 114, 182, 0.6);
  background: rgba(236, 72, 153, 0.18);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.film-strip.is-ready { border-color: rgba(52, 211, 153, 0.5); color: #a7f3d0; }
.film-strip.is-ready .film-strip-btn { border-color: rgba(52, 211, 153, 0.6); background: rgba(16, 185, 129, 0.2); }
.film-modal-box {
  width: 90%;
  max-width: 560px;
  background: #140b12;
  border: 1px solid rgba(236, 72, 153, 0.35);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7), 0 0 32px rgba(236, 72, 153, 0.15);
  gap: 14px;
}
.film-opt-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.film-opt-label { font-size: 12px; font-weight: 700; color: #94a3b8; letter-spacing: 0.04em; text-transform: uppercase; }
.film-opt-list { display: flex; flex-wrap: wrap; gap: 8px; }
.film-opt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 96px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}
.film-opt:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(236, 72, 153, 0.4); }
.film-opt.selected { background: rgba(236, 72, 153, 0.18); border-color: #ec4899; box-shadow: 0 0 14px rgba(236, 72, 153, 0.3); }
.film-opt-main { font-size: 14px; font-weight: 800; color: #fff; }
.film-opt-sub { font-size: 11px; color: #f472b6; font-weight: 600; }
.film-cost-note {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.3);
  color: #fde68a;
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 14px;
}
.film-progress-bar { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; margin: 8px 0 10px; }
.film-progress-fill { height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, #f43f5e, #ec4899, #a855f7); transition: width 0.6s ease; }
.film-progress-text { font-size: 13px; color: #e2e8f0; margin-bottom: 12px; }
.film-title-line { font-size: 18px; font-weight: 700; color: #f3e6cf; letter-spacing: 0.5px; margin: 10px 0 2px; }
.film-logline { font-size: 12.5px; color: rgba(255, 255, 255, 0.6); line-height: 1.5; margin-bottom: 8px; }
.film-result-video { width: 100%; max-height: 60vh; border-radius: 12px; background: #000; display: block; margin-bottom: 12px; }
/* 镜头表（与 App FilmSheet 同源 film.shots） */
.film-shots { margin-top: 8px; max-height: 32vh; overflow-y: auto; padding-right: 4px; }
.film-shots-label { font-size: 11px; font-weight: 700; letter-spacing: 1px; color: rgba(201, 163, 106, 0.9); margin-bottom: 6px; }
.film-shot {
  padding: 8px 10px;
  margin-bottom: 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid rgba(255, 255, 255, 0.14);
}
.film-shot.keyframe, .film-shot.keyframe_ready, .film-shot.rendering { border-left-color: #c9a36a; }
.film-shot.ready { border-left-color: #6fcf97; }
.film-shot-head { display: flex; align-items: center; gap: 8px; font-size: 11.5px; }
.film-shot-n { color: #c9a36a; font-weight: 700; }
.film-shot-people { flex: 1; color: rgba(255, 255, 255, 0.55); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.film-shot-state { color: rgba(255, 255, 255, 0.5); }
.film-shot.ready .film-shot-state { color: #6fcf97; }
.film-shot-beat { margin-top: 3px; font-size: 12.5px; color: rgba(255, 255, 255, 0.85); line-height: 1.45; }
.film-shot-line { margin-top: 2px; font-size: 12px; color: #f3e6cf; line-height: 1.45; }
.film-footer-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.btn-film-later {
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.btn-film-later:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.film-result-card {
  margin: 14px auto 6px;
  max-width: 420px;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(236, 72, 153, 0.4);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5), 0 0 24px rgba(236, 72, 153, 0.2);
  position: relative;
}
.film-result-card video { width: 100%; max-height: 70vh; display: block; background: #000; }

/* 固定记忆弹窗 */
.memory-modal-box {
  width: 90%;
  max-width: 560px;
  background: #120914;
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7), 0 0 32px rgba(168, 85, 247, 0.15);
}
.memory-items-container {
  max-height: 380px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.memory-item-card {
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  border-left: 3px solid #a855f7;
  font-size: 13px;
  color: #e2e8f0;
  line-height: 1.6;
}
.memory-item-card .memory-tag {
  font-size: 10px;
  font-weight: 700;
  color: #c084fc;
  background: rgba(168, 85, 247, 0.15);
  padding: 1px 6px;
  border-radius: 4px;
  margin-right: 6px;
}
.memory-empty-state {
  text-align: center;
  padding: 36px 0;
  color: #64748b;
  font-size: 13px;
}

/* 消息流内赠送礼物互动卡片 */
.message-gift-row {
  margin: 10px 0;
  display: flex;
  justify-content: center;
}
.gift-bubble-card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
  border-radius: 0;
  background: none;
  border: 0;
  box-shadow: none;
  color: var(--play-gold, #c4b08a);
  font-size: 13px;
  letter-spacing: 0.02em;
}
.gift-bubble-card .gift-icon-anim {
  width: 26px;
  height: 26px;
  display: inline-flex;
  flex-shrink: 0;
  animation: giftBounce 1.5s infinite ease-in-out;
}
.gift-bubble-card .gift-icon-anim img,
.gift-bubble-card .gift-icon-anim svg {
  width: 100%;
  height: 100%;
  display: block;
}
@keyframes giftBounce {
  0%, 100% { transform: scale(1) rotate(0); }
  50% { transform: scale(1.15) rotate(6deg); }
}



/* 会话、排行榜、角色和个人主页 */

/* 共用样式 */
.history-loading {
  display: flex; align-items: center; gap: 12px;
  padding: 40px 0; color: var(--text-dim); font-size: 13px; grid-column: 1 / -1;
}
.history-empty {
  grid-column: 1 / -1; text-align: center; padding: 56px 20px;
  background: var(--bg-card); border: 1px dashed var(--border-subtle); border-radius: 18px;
}
.history-empty.small { padding: 28px 16px; }
.history-empty-icon { font-size: 40px; margin-bottom: 10px; }
.history-empty-title { font-size: 17px; font-weight: 800; color: #fff; }
.history-empty-sub { font-size: 13px; color: var(--text-dim); margin-top: 6px; }
.btn-hero-primary.small { padding: 9px 18px; font-size: 13px; display: inline-flex; }
.btn-me-ghost {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.05); border: 1px solid var(--border-subtle); color: var(--text-muted);
  font-size: 12px; font-weight: 600; cursor: pointer; text-decoration: none; transition: all .2s ease;
}
.btn-me-ghost:hover { color: #fff; border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.1); }
.btn-me-ghost.danger { color: #fda4af; border-color: rgba(244,63,94,0.35); }
.btn-me-ghost.danger:hover { background: rgba(244,63,94,0.15); color: #fff; }
.dd-unread, .me-side-badge {
  display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--accent-rose); color: #fff; font-size: 10px; font-weight: 800; margin-left: 6px;
}
.me-side-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-rose); margin-left: 6px; }
.gem-orb { display: inline-block; width: 14px; height: 14px; border-radius: 50%; box-shadow: 0 0 10px rgba(255,255,255,0.25) inset; }
.gem-orb.red { background: radial-gradient(circle at 30% 30%, #fda4af, #e11d48); }
.gem-orb.blue { background: radial-gradient(circle at 30% 30%, #bae6fd, #0284c7); }
.gem-orb.coin { background: radial-gradient(circle at 30% 30%, #fde68a, #d97706); }
.lb-official {
  display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 6px; background: rgba(56,189,248,0.15); color: #7dd3fc; margin-left: 6px; vertical-align: middle;
}
.tag-chip {
  display: inline-block; padding: 4px 10px; border-radius: var(--radius-pill); font-size: 12px; color: var(--text-muted);
  background: rgba(255,255,255,0.05); border: 1px solid var(--border-subtle); text-decoration: none;
}
.tag-chip:hover { color: #fff; border-color: var(--accent-pink); }

/* 会话历史 */
.history-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 22px 0 14px; flex-wrap: wrap; }
.history-search-wrap {
  display: flex; align-items: center; gap: 8px; flex: 1; max-width: 420px; padding: 8px 14px; border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.05); border: 1px solid var(--border-subtle);
}
.history-search-wrap svg { width: 16px; height: 16px; color: var(--text-dim); }
.history-search-wrap input { flex: 1; background: none; border: none; outline: none; color: #fff; font-size: 13px; }
.history-meta { font-size: 12px; color: var(--text-dim); }
.history-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.history-card {
  display: flex; flex-direction: column; background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 18px;
  overflow: hidden; transition: transform .2s ease, border-color .2s ease;
}
.history-card:hover { transform: translateY(-3px); border-color: var(--border-glow); }
.history-cover { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.history-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.history-cover-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(10,7,9,0.85) 100%); }
.history-rel-badge {
  position: absolute; left: 12px; bottom: 10px; font-size: 11px; font-weight: 800; color: #fff; padding: 4px 10px; border-radius: 8px;
  background: linear-gradient(135deg, rgba(236,72,153,0.85), rgba(168,85,247,0.85));
}
.history-kind-badge {
  position: absolute; right: 10px; top: 10px; font-size: 10px; font-weight: 800; color: #fff; padding: 3px 8px; border-radius: 6px;
  background: rgba(0,0,0,0.55); border: 1px solid rgba(255,255,255,0.2);
}
.history-kind-badge.free { background: rgba(56,189,248,0.35); }
.history-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.history-title-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.history-name { font-size: 16px; font-weight: 800; color: #fff; }
.history-time { font-size: 11px; color: var(--text-dim); white-space: nowrap; }
.history-scene { font-size: 12px; color: var(--accent-pink); font-weight: 600; }
.history-scene.muted { color: var(--text-dim); font-weight: 500; }
.history-last { font-size: 13px; color: var(--text-muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.history-last-role { color: var(--text-dim); font-weight: 600; }
.history-threads { display: flex; gap: 6px; flex-wrap: wrap; }
.history-thread-chip { font-size: 11px; color: #fcd34d; background: rgba(245,158,11,0.12); border: 1px solid rgba(245,158,11,0.3); padding: 2px 8px; border-radius: 6px; }
.history-xp { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--text-dim); margin-top: 4px; }
.history-xp-bar { flex: 1; height: 5px; border-radius: 3px; background: rgba(255,255,255,0.08); overflow: hidden; }
.history-xp-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent-pink), var(--accent-purple)); border-radius: 3px; transition: width .4s ease; }
.history-actions { display: flex; gap: 8px; margin-top: 8px; }
.btn-history-continue {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; padding: 9px 12px; border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple)); color: #fff; font-weight: 800; font-size: 13px; text-decoration: none;
}
.btn-history-continue.disabled { opacity: .45; pointer-events: none; }
.btn-history-ghost {
  display: inline-flex; align-items: center; justify-content: center; width: 38px; border-radius: 12px; background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-subtle); color: var(--text-muted); cursor: pointer; text-decoration: none; font-size: 14px;
}
.btn-history-ghost:hover { color: #fff; border-color: rgba(255,255,255,0.3); }
.btn-history-ghost.danger:hover { background: rgba(244,63,94,0.2); border-color: var(--accent-rose); }

/* 排行榜 */
.lb-range-row { display: flex; gap: 8px; padding: 22px 0 18px; flex-wrap: wrap; }
.lb-podium {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.16fr) minmax(0, 1fr);
  align-items: end;
  gap: 22px;
  max-width: 1040px;
  margin: 8px auto 32px;
}
.lb-podium-card {
  /* 固定在第 1 行，列由 rank-N 决定。不写 grid-row 时，grid 按 DOM 顺序自动放置，会把第 2 名挤到第 2 行 */
  grid-row: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #120e14;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px 22px 14px 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .22s ease, box-shadow .22s ease;
}
.lb-podium-card:hover { transform: translateY(-6px); }
.lb-podium-card:focus-visible { outline: 2px solid var(--accent-pink); outline-offset: 3px; }
.lb-podium-card.rank-2 { grid-column: 1; border-color: rgba(198, 206, 216, 0.28); }
.lb-podium-card.rank-1 {
  grid-column: 2;
  border-color: rgba(232, 195, 106, 0.62);
  box-shadow: 0 18px 48px rgba(232, 195, 106, 0.12);
}
.lb-podium-card.rank-3 { grid-column: 3; border-color: rgba(196, 132, 90, 0.4); }
.lb-podium-portrait {
  position: relative;
  aspect-ratio: 3 / 3.85;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 18%, rgba(214, 220, 230, 0.22), transparent 52%),
    linear-gradient(165deg, #2a3038 0%, #14161a 72%);
}
.lb-podium-card.rank-1 .lb-podium-portrait {
  aspect-ratio: 3 / 4.7;
  background:
    radial-gradient(ellipse at 50% 16%, rgba(232, 195, 106, 0.34), transparent 54%),
    linear-gradient(165deg, #3d2c16 0%, #16110c 72%);
}
.lb-podium-card.rank-3 .lb-podium-portrait {
  aspect-ratio: 3 / 3.45;
  background:
    radial-gradient(ellipse at 50% 18%, rgba(196, 132, 90, 0.32), transparent 52%),
    linear-gradient(165deg, #3a2418 0%, #140f0c 72%);
}
.lb-podium-portrait img,
.lb-podium-portrait video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}
.lb-podium-portrait.is-look img { object-position: 16% 40%; }
.lb-podium-portrait video { z-index: 1; opacity: 0; transition: opacity .2s ease; }
.lb-podium-portrait video.is-on { opacity: 1; }
.lb-podium-letter {
  position: absolute;
  inset: 0 0 30% 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 255, 255, 0.94);
}
.lb-podium-card.rank-1 .lb-podium-letter { font-size: 96px; }
.lb-podium-portrait.is-round img,
.lb-podium-portrait.is-round .lb-podium-letter {
  inset: auto;
  top: 16%;
  left: 50%;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  transform: translateX(-50%);
  object-fit: cover;
  font-size: 42px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(198, 206, 216, 0.85), 0 14px 28px rgba(0, 0, 0, 0.35);
}
.lb-podium-card.rank-1 .lb-podium-portrait.is-round img,
.lb-podium-card.rank-1 .lb-podium-portrait.is-round .lb-podium-letter {
  top: 14%;
  width: 142px;
  height: 142px;
  font-size: 54px;
  box-shadow: 0 0 0 3px #e8c36a, 0 16px 32px rgba(0, 0, 0, 0.38);
}
.lb-podium-card.rank-3 .lb-podium-portrait.is-round img,
.lb-podium-card.rank-3 .lb-podium-portrait.is-round .lb-podium-letter {
  box-shadow: 0 0 0 3px #c4845a, 0 14px 28px rgba(0, 0, 0, 0.35);
}
.lb-podium-medal {
  position: absolute;
  z-index: 3;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e7eef6;
  filter: drop-shadow(0 1px 0 rgba(20, 12, 6, 0.7)) drop-shadow(0 5px 8px rgba(0, 0, 0, 0.45));
}
.lb-crown { width: 100%; height: 100%; display: block; fill: currentColor; }
.lb-podium-card.rank-1 .lb-podium-medal { top: 6px; width: 52px; height: 46px; color: #ffd76a; }
.lb-podium-card.rank-3 .lb-podium-medal { color: #e89658; }
.lb-podium-shade {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 48px 16px 14px;
  text-align: center;
  background: linear-gradient(180deg, rgba(18, 14, 20, 0) 0%, rgba(18, 14, 20, 0.78) 42%, #120e14 100%);
}
.lb-podium-name {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lb-podium-card.rank-1 .lb-podium-name { font-size: 20px; }
.lb-podium-sub {
  margin-top: 4px;
  min-height: 2.5em;
  font-size: 12px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.72);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lb-podium-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.82);
}
.lb-podium-actions {
  display: flex;
  justify-content: center;
  padding: 0 14px 12px;
  background: #120e14;
}
.lb-podium-plinth { height: 22px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.lb-podium-card.rank-2 .lb-podium-plinth { background: linear-gradient(180deg, #e4e9f0 0%, #8d97a6 48%, #5c6572 100%); }
.lb-podium-card.rank-1 .lb-podium-plinth { height: 36px; background: linear-gradient(180deg, #ffe7a8 0%, #e0b14a 42%, #8a621c 100%); }
.lb-podium-card.rank-3 .lb-podium-plinth { height: 14px; background: linear-gradient(180deg, #f0c2a2 0%, #c4845a 48%, #6e3f28 100%); }
.lb-list { display: flex; flex-direction: column; gap: 8px; }
.lb-row {
  display: flex; align-items: center; gap: 14px; padding: 10px 14px; background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: 14px; text-decoration: none; color: inherit; transition: border-color .2s ease, background .2s ease;
}
.lb-row:hover { border-color: var(--border-glow); background: var(--bg-card-hover); }
.lb-rank { width: 40px; text-align: center; font-weight: 800; color: var(--text-muted); font-size: 14px; }
.lb-thumb { width: 48px; height: 64px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.lb-thumb.round { width: 48px; height: 48px; border-radius: 50%; }
.lb-main { flex: 1; min-width: 0; }
.lb-name { font-size: 15px; font-weight: 700; color: #fff; }
.lb-sub { font-size: 12px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-stats { display: flex; gap: 14px; font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.lb-cta { font-size: 12px; font-weight: 800; color: var(--accent-pink); }
.lb-covers { display: flex; gap: 4px; }
.lb-covers img { width: 28px; height: 38px; object-fit: cover; border-radius: 6px; }
.btn-lb-follow {
  padding: 6px 14px; border-radius: var(--radius-pill); border: 1px solid var(--accent-pink); background: transparent; color: var(--accent-pink);
  font-size: 12px; font-weight: 700; cursor: pointer; transition: all .2s ease;
}
.btn-lb-follow.on { background: var(--accent-pink); color: #fff; }
.btn-lb-follow:disabled { opacity: .5; }

/* 角色详情 */
.char-detail-page { padding: 28px 0 80px; }
.char-detail-grid { display: grid; grid-template-columns: 340px 1fr; gap: 32px; align-items: start; }
.char-detail-media { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 14px; }
.char-detail-cover-wrap { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 3 / 4; background: var(--bg-card); }
.char-detail-cover { width: 100%; height: 100%; object-fit: cover; display: block; }
.char-detail-rating {
  position: absolute; left: 12px; top: 12px; font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 8px;
  background: rgba(0,0,0,0.6); color: #fff; border: 1px solid rgba(255,255,255,0.2);
}
.char-detail-rating.limitless { background: rgba(244,63,94,0.75); }
.char-detail-styles { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 14px; }
.char-style-chip {
  padding: 6px 14px; border-radius: var(--radius-pill); font-size: 12px; color: var(--text-muted); cursor: pointer;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border-subtle); transition: all .2s ease;
}
.char-style-chip:hover { color: #fff; border-color: var(--border-glow); }
.char-style-chip.active { color: #fff; border-color: var(--accent-pink); background: rgba(255,255,255,0.12); }
.char-detail-social { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.char-social-btn {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; border-radius: 14px; background: var(--bg-card);
  border: 1px solid var(--border-subtle); color: var(--text-muted); cursor: pointer; transition: all .2s ease;
}
.char-social-btn.static { cursor: default; }
.char-social-btn:not(.static):hover { border-color: var(--border-glow); }
.char-social-btn.on { border-color: var(--accent-pink); background: rgba(236,72,153,0.12); color: #fff; }
.char-social-btn .ico { font-size: 16px; }
.char-social-btn .num { font-size: 15px; font-weight: 800; color: #fff; }
.char-social-btn .lbl { font-size: 10px; text-transform: uppercase; letter-spacing: .04em; }
.char-detail-cta { justify-content: center; width: 100%; }
.char-detail-rel { padding: 12px 14px; border-radius: 14px; background: var(--bg-card); border: 1px solid var(--border-subtle); }
.char-rel-top { display: flex; justify-content: space-between; font-size: 13px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.char-rel-top span:last-child { color: var(--accent-pink); }
.char-rel-sub { font-size: 11px; color: var(--text-dim); margin-top: 6px; text-align: right; }
.char-detail-name { font-size: 32px; font-weight: 900; color: #fff; letter-spacing: -0.01em; }
.char-detail-tagline { font-size: 16px; color: var(--accent-pink); margin: 8px 0 14px; line-height: 1.5; }
.char-detail-creator { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-muted); margin-bottom: 14px; }
.char-detail-creator .creator-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
/* 与 App 角色页一致：创作者以首字母徽记展示 */
.char-detail-creator .creator-initial {
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(236,72,153,0.35), rgba(139,92,246,0.35));
  color: #fff; font-weight: 800; font-size: 13px;
}
.tag-pill-tabs { margin-top: 14px; flex-wrap: wrap; }
.char-detail-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.char-detail-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--border-subtle); margin-bottom: 18px; }
.char-tab {
  padding: 10px 16px; background: none; border: none; border-bottom: 2px solid transparent; color: var(--text-muted); font-size: 14px; font-weight: 700; cursor: pointer;
}
.char-tab.active { color: #fff; border-bottom-color: var(--accent-pink); }
.char-tab-n { font-size: 11px; color: var(--text-dim); margin-left: 4px; }
.char-tab-panel { display: none; }
.char-tab-panel.active { display: block; }
.char-detail-opening {
  font-size: 15px; line-height: 1.75; color: var(--text-main); padding: 16px 18px; border-radius: 14px; background: var(--bg-card);
  border-left: 3px solid var(--accent-pink); margin-bottom: 18px; white-space: pre-wrap;
}
.char-detail-desc { font-size: 14px; line-height: 1.75; color: var(--text-muted); white-space: pre-wrap; }
.char-scenes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.char-scene-card { display: flex; flex-direction: column; background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 16px; overflow: hidden; text-decoration: none; color: inherit; transition: transform .2s ease; }
.char-scene-card:hover { transform: translateY(-3px); border-color: var(--border-glow); }
.char-scene-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.char-scene-body { padding: 12px 14px; }
.char-scene-title { font-size: 14px; font-weight: 800; color: #fff; }
.char-scene-hook { font-size: 12px; color: var(--text-dim); margin: 4px 0 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.char-scene-meta { font-size: 11px; color: var(--accent-pink); font-weight: 700; }
/* 未解锁的剧本（角色页）：不可点、不上浮，封面压暗，角标贴右上角 */
.char-scene-card.is-locked { position: relative; cursor: default; }
.char-scene-card.is-locked:hover { transform: none; border-color: var(--border-subtle); }
.char-scene-card.is-locked img { filter: grayscale(0.7) brightness(0.55); }
.char-scene-card.is-locked .char-scene-meta { color: var(--text-dim); }
.char-scene-card .scene-card-lock { position: absolute; top: 10px; right: 10px; }
.char-comment-form { display: flex; gap: 10px; align-items: flex-end; margin-bottom: 18px; }
.char-comment-form textarea {
  flex: 1; resize: vertical; padding: 10px 14px; border-radius: 12px; background: rgba(255,255,255,0.05); border: 1px solid var(--border-subtle); color: #fff; font-size: 13px; outline: none;
}
.char-comment-form textarea:focus { border-color: var(--accent-pink); }
.char-comments-list { display: flex; flex-direction: column; gap: 12px; }
.char-comment { display: flex; gap: 12px; padding: 12px 14px; background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 14px; }
.char-comment-av { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.char-comment-body { flex: 1; min-width: 0; }
.char-comment-head { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-dim); }
.char-comment-name { font-weight: 800; color: #fff; font-size: 13px; }
.char-comment-pending { color: #fcd34d; }
.char-comment-text { font-size: 14px; color: var(--text-main); line-height: 1.6; margin: 4px 0 6px; white-space: pre-wrap; }
.char-comment-acts { display: flex; gap: 12px; }
.char-comment-like, .char-comment-del { background: none; border: none; color: var(--text-dim); font-size: 12px; cursor: pointer; padding: 0; }
.char-comment-like.on { color: var(--accent-rose); }
.char-comment-del:hover { color: #fda4af; }
.char-related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.char-related-card { display: block; background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 14px; overflow: hidden; text-decoration: none; color: inherit; }
.char-related-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; }
.char-related-body { padding: 10px 12px; }
.char-related-name { font-size: 13px; font-weight: 800; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.char-related-tag { font-size: 11px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.char-related-meta { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.btn-drawer-profile {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 14px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--border-subtle); color: #fff; font-weight: 700; font-size: 14px; text-decoration: none;
}
.btn-drawer-profile:hover { border-color: var(--accent-pink); }

/* 个人主页 */
.me-page { padding-top: 24px; }
.me-hero { position: relative; border-radius: 24px; overflow: hidden; border: 1px solid var(--border-subtle); background: var(--bg-card); }
.me-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .35; filter: blur(2px) saturate(1.2); }
.me-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,7,9,0.2), rgba(10,7,9,0.92)); }
.me-hero-inner { position: relative; z-index: 1; display: flex; gap: 26px; padding: 34px 32px 28px; align-items: flex-start; }
.me-avatar-wrap { position: relative; width: 112px; height: 112px; flex-shrink: 0; cursor: pointer; }
.me-avatar-wrap img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255,255,255,0.15); background: var(--bg-card); }
.me-avatar-plus {
  position: absolute; right: 2px; bottom: 2px; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--accent-pink); color: #fff; font-weight: 900; border: 2px solid var(--bg-main);
}
.me-hero-main { flex: 1; min-width: 0; }
.me-name-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.me-name { font-size: 28px; font-weight: 900; color: #fff; }
.me-uid-row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-dim); margin: 6px 0 10px; }
.btn-copy-uid { background: none; border: none; color: var(--text-dim); cursor: pointer; font-size: 13px; }
.btn-copy-uid:hover { color: #fff; }
.me-plan-badge { display: inline-flex; padding: 2px 10px; border-radius: 8px; background: rgba(245,158,11,0.15); color: #fcd34d; font-weight: 800; font-size: 11px; }
.me-bio { font-size: 14px; color: var(--text-muted); max-width: 640px; line-height: 1.6; }
.me-stats { display: flex; gap: 28px; margin-top: 16px; flex-wrap: wrap; }
.me-stat { display: flex; flex-direction: column; align-items: flex-start; background: none; border: none; color: inherit; cursor: default; padding: 0; }
.me-stat[data-shelf] { cursor: pointer; }
.me-stat b { font-size: 20px; font-weight: 900; color: #fff; }
.me-stat span { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .04em; }
.me-bind-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 10px 14px; border-radius: 12px;
  background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.35); font-size: 13px; color: #fde68a;
}
.me-gems { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0 22px; }
.me-gem-col {
  position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 18px; background: var(--bg-card);
  border: 1px solid var(--border-subtle); text-decoration: none; color: inherit; cursor: pointer; text-align: left; transition: border-color .2s ease;
}
.me-gem-col:hover { border-color: var(--border-glow); }
.me-gem-col.mid { background: linear-gradient(135deg, rgba(56,189,248,0.08), rgba(168,85,247,0.08)); }
.me-gem-top { display: flex; align-items: center; gap: 10px; }
.me-gem-top b { font-size: 24px; font-weight: 900; color: #fff; }
.me-gem-top .gem-orb { width: 22px; height: 22px; }
.me-gem-label { font-size: 12px; color: var(--text-dim); }
.me-gem-act {
  position: absolute; right: 14px; top: 14px; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08); color: #fff; font-weight: 800; font-size: 14px;
}
.me-gem-act.up { width: auto; padding: 0 10px; border-radius: 8px; font-size: 11px; background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple)); }
.me-layout { display: grid; grid-template-columns: 240px 1fr; gap: 22px; align-items: start; }
.me-side { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 4px; padding: 8px; border-radius: 18px; background: var(--bg-card); border: 1px solid var(--border-subtle); }
.me-side-item {
  display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-radius: 12px; background: none; border: none; text-align: left; color: var(--text-muted);
  font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; transition: all .15s ease;
}
.me-side-item:hover { background: rgba(255,255,255,0.05); color: #fff; }
.me-side-item.active { background: linear-gradient(135deg, rgba(236,72,153,0.2), rgba(168,85,247,0.2)); color: #fff; }
.me-panels { min-width: 0; }
.me-panel { display: none; flex-direction: column; gap: 16px; }
.me-panel.active { display: flex; }
.me-card { padding: 20px 22px; border-radius: 18px; background: var(--bg-card); border: 1px solid var(--border-subtle); }
.me-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.me-card-head h3 { font-size: 16px; font-weight: 800; color: #fff; }
.me-card-sub { font-size: 12px; color: var(--text-dim); }
.me-shelf-tabs, .me-subtabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.me-subtabs-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.me-subtabs-row .me-subtabs { margin-bottom: 0; }
.me-subpane { display: none; }
.me-subpane.active { display: block; }
.me-shelf-tab { padding: 8px 14px; border-radius: var(--radius-pill); background: rgba(255,255,255,0.05); border: 1px solid var(--border-subtle); color: var(--text-muted); font-size: 13px; font-weight: 600; cursor: pointer; }
.me-shelf-tab.active { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.3); }
.shop-switch {
  display: flex;
  justify-content: center;
  width: min(560px, 100%);
  margin: 0 auto 28px;
  padding: 5px;
  gap: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}
.shop-switch-btn {
  flex: 1;
  min-width: 0;
  padding: 11px 22px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.58);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.shop-switch-btn:hover { color: #fff; }
.shop-switch-btn.active {
  background: linear-gradient(135deg, #f43f5e, #ec4899);
  color: #fff;
  box-shadow: 0 6px 18px rgba(236, 72, 153, 0.38);
}
.shop-pane { display: none; }
.shop-pane.active { display: block; }
.shelf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.shelf-card { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden; background: var(--bg-card); border: 1px solid var(--border-subtle); text-decoration: none; color: inherit; transition: transform .2s ease; }
.shelf-card:hover { transform: translateY(-3px); border-color: var(--border-glow); }
.shelf-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shelf-card-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(10,7,9,0.92) 100%); }
.shelf-card-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px; }
.shelf-card-title { font-size: 14px; font-weight: 800; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shelf-card-sub { font-size: 11px; color: var(--text-muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shelf-status { position: absolute; left: 10px; top: 10px; font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 6px; background: rgba(0,0,0,0.6); color: #fff; border: 1px solid rgba(255,255,255,0.2); }
.shelf-status.public { background: rgba(34,197,94,0.6); }
.shelf-status.pending { background: rgba(245,158,11,0.7); }
.shelf-status.rejected { background: rgba(244,63,94,0.75); }
.shelf-list { display: flex; flex-direction: column; gap: 8px; }
.checkin-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-bottom: 16px; }
.checkin-day { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 12px; background: rgba(255,255,255,0.04); border: 1px solid var(--border-subtle); }
.checkin-day.on { background: rgba(236,72,153,0.15); border-color: rgba(236,72,153,0.45); }
.checkin-day.today { border-color: rgba(255,255,255,0.4); }
.cd-wd { font-size: 10px; color: var(--text-dim); text-transform: uppercase; }
.cd-gem { font-size: 18px; }
.cd-date { font-size: 10px; color: var(--text-dim); }
.tasks-list { display: flex; flex-direction: column; gap: 10px; }
.task-row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,0.03); border: 1px solid var(--border-subtle); }
.task-row.done { opacity: .6; }
.task-main { flex: 1; min-width: 0; }
.task-title { font-size: 14px; font-weight: 700; color: #fff; }
.task-kind { font-size: 10px; color: var(--text-dim); text-transform: uppercase; margin-left: 6px; }
.task-bar { height: 5px; border-radius: 3px; background: rgba(255,255,255,0.08); overflow: hidden; margin: 6px 0 4px; }
.task-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent-amber), var(--accent-rose)); }
.task-prog { font-size: 11px; color: var(--text-dim); }
.task-done { font-size: 12px; color: #86efac; font-weight: 700; }
.invite-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.invite-row code { padding: 8px 14px; border-radius: 10px; background: rgba(255,255,255,0.06); color: #fcd34d; font-weight: 800; letter-spacing: .1em; font-size: 15px; }
.invite-redeem { display: flex; gap: 10px; margin-top: 12px; }
.invite-redeem input { flex: 1; padding: 9px 14px; border-radius: 10px; background: rgba(255,255,255,0.05); border: 1px solid var(--border-subtle); color: #fff; font-size: 13px; outline: none; }
.invite-redeem-note { margin-top: 8px; font-size: 12px; min-height: 16px; }
.invite-redeem-note.ok { color: #86efac; }
.invite-redeem-note.err { color: #fca5a5; }
.wallet-balances { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.wb { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; background: rgba(255,255,255,0.03); border: 1px solid var(--border-subtle); font-size: 13px; color: var(--text-muted); }
.wb b { font-size: 18px; font-weight: 900; color: #fff; min-width: 60px; }
.wb .gem-orb { width: 18px; height: 18px; }
.wb.warn { border-color: rgba(245,158,11,0.4); color: #fde68a; }
.wallet-plan { display: flex; flex-direction: column; gap: 6px; }
.wp-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-muted); padding: 6px 0; border-bottom: 1px dashed var(--border-subtle); }
.wp-row b { color: #fff; }
.ledger-list { display: flex; flex-direction: column; gap: 6px; }
.ledger-row { display: grid; grid-template-columns: 1fr auto 70px; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,0.03); }
.ledger-main { display: flex; flex-direction: column; min-width: 0; }
.ledger-main b { font-size: 13px; color: #fff; }
.ledger-main span { font-size: 11px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ledger-delta { font-size: 14px; font-weight: 900; display: flex; align-items: center; gap: 6px; }
.ledger-delta.plus { color: #86efac; }
.ledger-delta.minus { color: #fda4af; }
.ledger-delta .gem-orb { width: 12px; height: 12px; }
.ledger-after { font-size: 12px; color: var(--text-dim); text-align: right; }
.notices-list, .inbox-list { display: flex; flex-direction: column; gap: 8px; }
.notice-row { padding: 12px 14px; border-radius: 12px; background: rgba(245,158,11,0.06); border: 1px solid rgba(245,158,11,0.25); }
.notice-title { font-size: 14px; font-weight: 800; color: #fde68a; }
.notice-body { font-size: 13px; color: var(--text-muted); margin-top: 4px; line-height: 1.55; white-space: pre-wrap; }
.notice-time { font-size: 11px; color: var(--text-dim); margin-top: 6px; }
.inbox-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,0.03); border: 1px solid var(--border-subtle); text-decoration: none; color: inherit; }
.inbox-row.unread { border-color: rgba(236,72,153,0.4); background: rgba(236,72,153,0.06); }
.inbox-ico { font-size: 20px; }
.inbox-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.inbox-main b { font-size: 13px; color: #fff; }
.inbox-main span { font-size: 12px; color: var(--text-muted); }
.inbox-time { font-size: 11px; color: var(--text-dim); white-space: nowrap; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.form-field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--text-dim); }
.form-field.full { grid-column: 1 / -1; }
.form-field input, .form-field select, .form-field textarea {
  padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,0.05); border: 1px solid var(--border-subtle); color: #fff; font-size: 13px; outline: none;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--accent-pink); }
.form-field select option { background: #181116; }
.toggle-list { display: flex; flex-direction: column; gap: 8px; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,0.03); border: 1px solid var(--border-subtle); cursor: pointer; }
.toggle-row div { display: flex; flex-direction: column; }
.toggle-row b { font-size: 14px; color: #fff; }
.toggle-row span { font-size: 12px; color: var(--text-dim); }
.toggle-row input[type="checkbox"] { width: 40px; height: 22px; appearance: none; border-radius: 11px; background: rgba(255,255,255,0.15); position: relative; cursor: pointer; transition: background .2s ease; flex-shrink: 0; }
.toggle-row input[type="checkbox"]::after { content: ''; position: absolute; left: 2px; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s ease; }
.toggle-row input[type="checkbox"]:checked { background: var(--accent-pink); }
.toggle-row input[type="checkbox"]:checked::after { transform: translateX(18px); }
.account-rows { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.acc-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,0.03); font-size: 13px; color: var(--text-dim); }
.acc-row b { color: #fff; flex: 1; font-weight: 600; }
.acc-row b i { color: var(--text-dim); font-style: normal; }
.acc-sub { font-size: 11px; }
.account-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.acc-form { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; padding: 16px; border-radius: 12px; background: rgba(255,255,255,0.03); border: 1px solid var(--border-subtle); }
.acc-form[hidden] { display: none; }
.acc-form-title { margin: 0; font-size: 14px; font-weight: 700; color: #fff; }
.acc-form .auth-field-group { margin-bottom: 0; }
.acc-form-actions { display: flex; gap: 10px; flex-wrap: wrap; }
a.btn-me-ghost { text-decoration: none; }
.mobile-quick-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin: 10px 0; }
.mobile-quick-links a { padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,0.06); color: #fff; font-size: 12px; text-decoration: none; text-align: center; }

@media (max-width: 992px) {
  .char-detail-grid { grid-template-columns: 1fr; }
  .char-detail-media { position: static; }
  .me-layout { grid-template-columns: 1fr; }
  .me-side { position: static; flex-direction: row; flex-wrap: wrap; }
  .lb-podium { gap: 14px; max-width: none; }
  .lb-stats { display: none; }
  .me-hero-inner { flex-direction: column; align-items: center; text-align: center; }
  .me-stat { align-items: center; }
  .me-stats { justify-content: center; }
  .me-gems { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .checkin-days { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 720px) {
  .lb-podium { gap: 8px; margin-bottom: 18px; }
  .lb-podium-sub { display: none; }
  .lb-podium-shade { padding: 24px 6px 8px; }
  .lb-podium-name, .lb-podium-card.rank-1 .lb-podium-name { font-size: 12px; }
  .lb-podium-stats { gap: 2px 6px; margin-top: 4px; font-size: 10px; }
  .lb-podium-medal { top: 6px; width: 30px; height: 26px; }
  .lb-podium-card.rank-1 .lb-podium-medal { top: 4px; width: 36px; height: 32px; }
  .lb-podium-letter { font-size: 36px; }
  .lb-podium-card.rank-1 .lb-podium-letter { font-size: 46px; }
  .lb-podium-portrait.is-round img,
  .lb-podium-portrait.is-round .lb-podium-letter,
  .lb-podium-card.rank-1 .lb-podium-portrait.is-round img,
  .lb-podium-card.rank-1 .lb-podium-portrait.is-round .lb-podium-letter {
    width: 54px;
    height: 54px;
    top: 20%;
    font-size: 22px;
  }
  .lb-podium-card.rank-1 .lb-podium-portrait.is-round img,
  .lb-podium-card.rank-1 .lb-podium-portrait.is-round .lb-podium-letter { width: 68px; height: 68px; font-size: 26px; }
  .lb-podium-plinth, .lb-podium-card.rank-2 .lb-podium-plinth { height: 10px; }
  .lb-podium-card.rank-1 .lb-podium-plinth { height: 18px; }
  .lb-podium-card.rank-3 .lb-podium-plinth { height: 7px; }
  .lb-podium-actions { padding: 0 6px 8px; }
  .lb-podium-actions .btn-lb-follow { padding: 4px 8px; font-size: 11px; }
}

/* ==========================================================================
   角色形象卡片 · 角色库弹层 · 形象编辑器（与 App pkg-create/library、look 同一套界面）
   ========================================================================== */
.create-lib-bar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.create-lib-btn {
  background: none;
  border: 0;
  padding: 0;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.create-lib-btn:hover { color: #e5e7eb; }
.create-lib-sep { width: 1px; height: 14px; background: rgba(255, 255, 255, 0.18); }
/* 角色创建 第一步：形象（照片 / 描述 → 三视图 → 头像与表情） */
.look-step { gap: 10px; }
.look-step-title { font-size: 15px; font-weight: 600; color: #fff; margin: 4px 0 2px; }
.look-step-title-2 { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.look-group { display: flex; flex-direction: column; gap: 8px; }
.look-label { font-size: 13px; color: rgba(255, 255, 255, 0.7); }
.look-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.look-chip {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  cursor: pointer;
}
.look-chip:hover { border-color: rgba(255, 255, 255, 0.3); }
.look-chip.on { background: #fff; border-color: #fff; color: #171717; }
.look-photos { display: flex; flex-wrap: wrap; gap: 10px; }
.look-photo {
  position: relative;
  width: 96px;
  height: 128px;
  border-radius: 12px;
  overflow: hidden;
  background: #262626;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}
.look-photo img { width: 100%; height: 100%; object-fit: cover; }
.look-photo.add {
  flex-direction: column;
  gap: 4px;
  border-style: dashed;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  cursor: pointer;
}
.look-photo-plus { font-size: 22px; line-height: 1; }
.look-photo-x {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  line-height: 1;
  cursor: pointer;
}
.look-result { display: flex; flex-direction: column; gap: 14px; margin-top: 6px; }
.look-figs { display: flex; flex-wrap: wrap; gap: 16px; }
.look-fig { flex: 1 1 240px; margin: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.look-fig figcaption { font-size: 12px; color: rgba(255, 255, 255, 0.6); }
.look-fig-box {
  height: 300px;
  border-radius: 12px;
  background: #262626;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.look-fig-box img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }
.look-fig-portrait img { object-fit: cover; }
.look-empty { font-size: 12px; color: rgba(255, 255, 255, 0.4); }
.look-tweak-row { display: flex; flex-direction: column; gap: 8px; }
.look-tweak-input { display: flex; gap: 8px; }
.look-tweak-input .studio-text-input { flex: 1; min-width: 0; }
.look-zoom {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.86);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
}
.look-zoom img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 12px; }

.lx-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(0, 0, 0, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2vh 2vw;
}
.lx-backdrop.show { display: flex; }
.lx-modal {
  position: relative;
  width: min(1180px, 96vw);
  height: min(780px, 94vh);
  background: #262626;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.lx-backdrop button { font-family: inherit; }
.lx-svg { display: block; flex-shrink: 0; }
.lx-ico {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: rgba(255, 255, 255, 0.85);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.lx-ico:hover { background: rgba(255, 255, 255, 0.08); }
.lx-ico.sm { width: 28px; height: 28px; }
.lx-top { display: flex; justify-content: space-between; padding: 14px 16px 0; }
.lx-body { flex: 1; min-height: 0; display: flex; }
.lx-left { flex: 0 0 220px; display: flex; flex-direction: column; padding: 8px 12px 16px 24px; min-width: 0; }
.lx-name {
  font-size: 22px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, #000 78%, transparent);
  mask-image: linear-gradient(90deg, #000 78%, transparent);
}
.lx-meta { margin-top: 8px; font-size: 12px; color: rgba(255, 255, 255, 0.6); }
.lx-g { font-size: 14px; }
.lx-g.female { color: #ff6b8b; }
.lx-g.male { color: #5ea8ff; }
.lx-nav { margin-top: 24px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.lx-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  background: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  cursor: pointer;
  text-align: left;
}
.lx-nav-item:hover { background: rgba(255, 255, 255, 0.05); }
.lx-nav-item.on { background: #3a3a3a; color: #fff; }
.lx-free {
  font-style: normal;
  font-size: 10px;
  line-height: 16px;
  padding: 0 4px;
  border-radius: 3px;
  color: #5fb3ff;
  background: rgba(64, 150, 255, 0.16);
}
.lx-history { display: flex; align-items: center; gap: 6px; }
.lx-h, .lx-tg {
  width: 28px;
  height: 28px;
  border: 0;
  background: none;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.lx-h.off { opacity: 0.3; pointer-events: none; }
.lx-h.on { background: rgba(255, 255, 255, 0.14); }
.lx-tg { color: rgba(255, 255, 255, 0.45); }
.lx-tg.on { color: #fff; }
.lx-hsep { width: 1px; height: 12px; background: rgba(255, 255, 255, 0.18); }
.lx-stage { position: relative; flex: 1; min-width: 0; overflow: hidden; }
.lx-dots {
  position: absolute;
  inset: 4% 8%;
  background-image: radial-gradient(rgba(255, 255, 255, 0.11) 1px, transparent 1.2px);
  background-size: 14px 14px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 72%);
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 72%);
}
.lx-fig {
  position: absolute;
  inset: 2% 0 52px;
  overflow: hidden;
  transform-origin: 50% 13%;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.lx-fig img { width: 100%; height: 100%; object-fit: contain; transition: filter 0.12s linear; }
/* 三视图的正面在左侧。面部模式把正面的头和肩放大，不另造一张图。 */
.lx-fig.is-face img {
  object-fit: cover;
  object-position: 16% 0%;
  transform: scale(2.7);
  transform-origin: 16% 14%;
}
.lx-zoom {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(10px);
  cursor: zoom-out;
}
.lx-zoom.show { display: flex; }
.lx-zoom img {
  max-width: min(1100px, 92vw);
  max-height: 86vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}
.lx-zoom-x {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}
.lx-empty {
  position: absolute;
  inset: 2% 0 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}
.lx-empty .lx-mq { height: 84%; width: 36%; }
.lx-empty.bare { justify-content: center; }
.lx-empty.bare .lx-mq { display: none; }
.lx-portrait {
  position: absolute;
  left: 50%;
  bottom: 64px;
  z-index: 4;
  transform: translateX(-50%);
  gap: 8px;
}
.lx-portrait em { font-style: normal; opacity: 0.7; }
.lx-tag {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.5);
  font-size: 11px;
}
.lx-busy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(38, 38, 38, 0.5);
  backdrop-filter: blur(3px);
  z-index: 3;
}
.lx-busy b { font-size: 14px; }
.lx-busy span { font-size: 11px; color: rgba(255, 255, 255, 0.6); }
.lx-scan {
  position: absolute;
  left: 18%;
  right: 18%;
  height: 2px;
  top: 10%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.85), transparent);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.4);
  animation: lxScan 2.4s ease-in-out infinite;
}
@keyframes lxScan { 0% { top: 10%; } 50% { top: 86%; } 100% { top: 10%; } }
.lx-toggle { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 4px; z-index: 4; }
.lx-panel { flex: 0 0 320px; display: flex; flex-direction: column; min-height: 0; padding: 4px 24px 16px 8px; }
.lx-loading { padding: 24px 0; color: rgba(255, 255, 255, 0.5); font-size: 13px; }
.lx-subtabs { display: flex; align-items: center; gap: 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); flex: none; }
.lx-subtabs.text { gap: 14px; }
.lx-stab, .lx-ttab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 8px;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  background: none;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.lx-ttab { padding: 0; }
.lx-stab.on, .lx-ttab.on { color: #fff; border-bottom-color: #fff; }
.lx-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 4px 10px 0; scrollbar-width: thin; }
.lx-scroll.tight { padding-top: 8px; }
.lx-sl { margin-bottom: 14px; }
.lx-sl-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: rgba(255, 255, 255, 0.88); }
.lx-sl-head em { font-style: normal; font-size: 11px; color: rgba(255, 255, 255, 0.5); font-variant-numeric: tabular-nums; }
.lx-sl input[type='range'] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 3px;
  margin: 12px 0 4px;
  border-radius: 3px;
  background: linear-gradient(90deg, #fff 0, #fff var(--p, 50%), rgba(255, 255, 255, 0.16) var(--p, 50%));
  outline: none;
  cursor: pointer;
}
.lx-sl input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #262626;
  box-shadow: 0 0 0 1px #fff;
}
.lx-sl input[type='range']::-moz-range-thumb { width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 3px solid #262626; }
.lx-tgrow { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: rgba(255, 255, 255, 0.88); padding: 4px 0; cursor: pointer; }
.lx-switch {
  -webkit-appearance: none;
  appearance: none;
  width: 32px;
  height: 18px;
  border-radius: 999px;
  background: #444;
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
}
.lx-switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: left 0.2s; }
.lx-switch:checked { background: #3d8bff; }
.lx-switch:checked::after { left: 16px; }
.lx-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; }
.lx-chip {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  cursor: pointer;
}
.lx-chip:hover { border-color: rgba(255, 255, 255, 0.3); }
.lx-chip.on { background: #fff; border-color: #fff; color: #111; font-weight: 600; }
.lx-chip.xs { padding: 3px 10px; font-size: 11px; }
.lx-blk { margin-bottom: 14px; }
.lx-blk > b, .lx-h3 { display: block; font-size: 13px; font-weight: 600; color: #fff; }
.lx-blk em, .lx-blk-row em { font-style: normal; font-weight: 400; font-size: 11px; color: rgba(255, 255, 255, 0.45); }
.lx-blk-row { display: flex; justify-content: space-between; align-items: center; }
.lx-blk-row b { font-size: 13px; font-weight: 600; }
.lx-swatches { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.lx-sw { width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.08); cursor: pointer; padding: 0; }
.lx-sw.on { border-color: #fff; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25); }
.lx-ta {
  width: 100%;
  height: 76px;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #2f2f2f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 13px;
  line-height: 1.5;
  resize: none;
  outline: none;
  font-family: inherit;
}
.lx-ta:focus { border-color: rgba(255, 255, 255, 0.25); }
.lx-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  border-radius: 8px;
  border: 0;
  background: #333;
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  cursor: pointer;
}
.lx-ghost.off { opacity: 0.45; pointer-events: none; }
.lx-hint { margin: 8px 0 0; font-size: 11px; line-height: 1.5; color: rgba(255, 255, 255, 0.42); }
.lx-thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.lx-th { border: 0; background: none; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; color: inherit; }
.lx-th-box {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: #333;
  border: 2px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lx-th:hover .lx-th-box { border-color: rgba(255, 255, 255, 0.3); }
.lx-th.on .lx-th-box { border-color: #fff; }
.lx-th-box img { width: 100%; height: 100%; object-fit: cover; }
.lx-th-box i { color: rgba(255, 255, 255, 0.3); }
.lx-th-box s { position: absolute; right: 4px; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: #fff; color: #111; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.lx-th-t { font-size: 11px; color: rgba(255, 255, 255, 0.75); text-align: center; line-height: 1.3; }
.lx-foot { flex: none; display: flex; gap: 8px; padding-top: 10px; }
.lx-foot.col { flex-direction: column; gap: 0; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.lx-foot.col .lx-sl { margin-bottom: 4px; }
.lx-gen {
  flex: 1;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  color: #111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.lx-gen em { font-style: normal; font-size: 11px; opacity: 0.7; }
.lx-gen.off { background: #353535; color: rgba(255, 255, 255, 0.4); cursor: default; }
.lx-wand { width: 40px; height: 40px; border: 0; border-radius: 10px; background: #353535; color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.lx-vtools { flex: none; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; padding-top: 8px; }
.lx-vsearch { flex: 1; min-width: 90px; height: 28px; padding: 0 10px; border-radius: 8px; border: 0; background: #333; color: #fff; font-size: 12px; outline: none; }
.lx-vf { font-size: 11px; color: rgba(255, 255, 255, 0.6); }
.lx-vgroups { display: flex; gap: 4px; margin-left: auto; }
.lx-vrow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px 7px 7px;
  margin-bottom: 6px;
  border-radius: 10px;
  background: #313131;
  border: 1px solid transparent;
  cursor: pointer;
}
.lx-vrow:hover { background: #363636; }
.lx-vrow.on { border-color: #fff; }
.lx-vrow.off { opacity: 0.45; }
.lx-vico { width: 34px; height: 34px; border-radius: 8px; background: #3d3d3d; display: inline-flex; align-items: center; justify-content: center; color: rgba(255, 255, 255, 0.75); flex-shrink: 0; }
.lx-vmeta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lx-vmeta b { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lx-vmeta em { font-style: normal; margin-top: 2px; font-size: 11px; color: rgba(255, 255, 255, 0.45); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lx-vplay { width: 28px; height: 28px; border: 0; background: none; color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.lx-dock {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 68px;
  padding: 12px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.lx-asset {
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  cursor: pointer;
}
.lx-asset em { font-style: normal; color: rgba(255, 255, 255, 0.5); }
.lx-btns { display: flex; gap: 8px; }
.lx-btn {
  height: 36px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.lx-btn.dark { background: #363636; color: #fff; }
.lx-btn.dark:hover { background: #404040; }
.lx-btn.white { background: #fff; color: #111; }
.lx-btn:disabled { opacity: 0.5; cursor: default; }

/* 角色库弹层 */
.lib-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 16px 0 24px; }
.lib-tabs { display: flex; align-items: center; gap: 14px; }
.lib-tab { border: 0; background: none; padding: 0; font-size: 17px; font-weight: 700; color: rgba(255, 255, 255, 0.45); cursor: pointer; }
.lib-tab.on { color: #fff; }
.lib-sep { width: 1px; height: 14px; background: rgba(255, 255, 255, 0.18); }
.lib-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 20px 0 20px; position: relative; z-index: 5; }
.lib-filters { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.lib-pill-wrap { position: relative; }
.lib-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  padding: 0 10px 0 12px;
  border: 0;
  border-radius: 999px;
  background: #333;
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.lib-pill.on { background: #fff; color: #111; }
.lib-pill.round { width: 28px; padding: 0; justify-content: center; }
.lib-pop {
  position: absolute;
  top: 34px;
  left: 0;
  min-width: 130px;
  max-height: 300px;
  overflow-y: auto;
  padding: 6px;
  border-radius: 12px;
  background: #333;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}
.lib-pop button { border: 0; background: none; text-align: left; padding: 8px 12px; border-radius: 8px; font-size: 13px; color: rgba(255, 255, 255, 0.8); cursor: pointer; white-space: nowrap; }
.lib-pop button:hover { background: rgba(255, 255, 255, 0.06); }
.lib-pop button.on { background: rgba(255, 255, 255, 0.12); color: #fff; font-weight: 700; }
.lib-search { height: 28px; width: 160px; padding: 0 12px; border-radius: 999px; border: 0; background: #333; color: #fff; font-size: 12px; outline: none; }
.lib-views { display: flex; align-items: center; gap: 6px; }
.lib-seg { display: flex; padding: 2px; border-radius: 999px; background: #333; }
.lib-v { width: 28px; height: 26px; border: 0; border-radius: 999px; background: none; color: rgba(255, 255, 255, 0.5); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.lib-v.solo { width: 30px; height: 30px; background: #333; }
.lib-v.on { color: #fff; background: rgba(255, 255, 255, 0.14); }
.lib-v.solo.on { background: #4a4a4a; }
.lib-main { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.lib-empty { margin: auto; color: rgba(255, 255, 255, 0.45); font-size: 14px; padding: 40px; text-align: center; }
.lib-stage { position: relative; flex: 1; min-height: 0; }
.lib-track {
  height: 100%;
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 calc(50% - 100px);
}
.lib-track::-webkit-scrollbar { display: none; }
.lib-fig {
  position: relative;
  flex: 0 0 200px;
  height: 100%;
  padding: 28px 6px 8px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0.32;
  transform: scale(0.84);
  transform-origin: 50% 88%;
  transition: opacity 0.3s, transform 0.3s;
  cursor: pointer;
}
.lib-fig.on { opacity: 1; transform: scale(1); cursor: default; }
.lib-fig-img { width: 100%; height: 100%; object-fit: contain; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%); }
.lib-fig-img.mq { display: flex; align-items: flex-end; justify-content: center; -webkit-mask-image: none; mask-image: none; }
.lib-fig-img.mq .lx-mq { width: 62%; height: 92%; }
.lib-fig-img.blank { display: flex; align-items: center; justify-content: center; width: 78%; height: 86%; border-radius: 999px 999px 18px 18px; background: linear-gradient(160deg, #3a3a3a, #555); font-size: 44px; font-weight: 700; -webkit-mask-image: none; mask-image: none; }
.lib-arrow {
  position: absolute;
  top: 44%;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #333;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
}
.lib-arrow.left { left: 16px; }
.lib-arrow.right { right: 16px; }
.lib-caption { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 22px; font-size: 14px; font-weight: 600; }
.lib-caption i { display: inline-flex; color: rgba(255, 255, 255, 0.85); }
.lib-meta { text-align: center; margin-top: 4px; min-height: 16px; font-size: 12px; color: rgba(255, 255, 255, 0.45); }
.lib-bar { position: relative; height: 3px; margin: 12px 24px 12px; }
.lib-bar span { position: absolute; top: 0; height: 100%; border-radius: 3px; background: rgba(255, 255, 255, 0.22); }
.lib-grid { flex: 1; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; padding: 18px 20px 24px; align-content: start; }
.lib-cell { border: 0; background: none; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; color: inherit; }
.lib-cell-box { width: 100%; aspect-ratio: 9 / 14; border-radius: 14px; background: #2e2e2e; border: 1px solid transparent; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; }
.lib-cell:hover .lib-cell-box { border-color: rgba(255, 255, 255, 0.3); }
.lib-cell.on .lib-cell-box { border-color: #fff; }
.lib-cell-img { width: 100%; height: 100%; object-fit: contain; }
.lib-cell-img.mq { display: flex; align-items: flex-end; justify-content: center; }
.lib-cell-img.mq .lx-mq { width: 56%; height: 90%; }
.lib-cell-img.blank { display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: 700; color: rgba(255, 255, 255, 0.6); }
.lib-cell-t { font-size: 12px; color: rgba(255, 255, 255, 0.85); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lib-rows { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 14px 20px 24px; }
.lib-row { display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; border-radius: 12px; border: 1px solid transparent; background: #2e2e2e; cursor: pointer; color: inherit; text-align: left; }
.lib-row:hover { background: #333; }
.lib-row.on { border-color: #fff; }
.lib-row-thumb { width: 52px; height: 52px; border-radius: 10px; overflow: hidden; background: #383838; flex-shrink: 0; display: flex; justify-content: center; align-items: flex-end; }
.lib-row-thumb .lib-row-img { width: 100%; height: 100%; object-fit: cover; }
.lib-row-thumb.face .lib-row-img { width: 200%; max-width: none; height: auto; align-self: flex-start; margin-top: -4%; object-fit: contain; }
.lib-row-img.mq { display: flex; align-items: flex-end; justify-content: center; }
.lib-row-img.mq .lx-mq { width: 60%; height: 90%; }
.lib-row-img.blank { display: flex; align-items: center; justify-content: center; font-weight: 700; }
.lib-row-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lib-row-meta b { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lib-row-meta em { font-style: normal; margin-top: 3px; font-size: 12px; color: rgba(255, 255, 255, 0.45); }
.lib-row-st { font-size: 12px; color: rgba(255, 255, 255, 0.5); flex-shrink: 0; }
.lib-dock { position: relative; flex: none; display: flex; align-items: center; justify-content: center; min-height: 72px; padding: 12px 20px; border-top: 1px solid rgba(255, 255, 255, 0.07); }
.lib-link { position: absolute; left: 24px; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: rgba(255, 255, 255, 0.9); font-size: 13px; cursor: pointer; }
@media (max-width: 860px) {
  .lx-body { flex-direction: column; overflow-y: auto; }
  .lx-left { flex: none; padding: 0 16px; }
  .lx-nav { flex-direction: row; overflow-x: auto; margin-top: 12px; }
  .lx-stage { flex: none; height: 46vh; }
  .lx-panel { flex: none; padding: 0 16px 16px; min-height: 420px; }
}

/* 剧本编辑、数据与个人作品 */
.form-section-group { display: flex; flex-direction: column; gap: 12px; }
.studio-rules-banner.soft { background: rgba(201, 163, 106, 0.08); border-left-color: #c9a36a; color: #e8cfa3; }
.studio-rules-banner.soft a { color: #f3e0bf; font-weight: 700; margin-left: 4px; }
.create-lib-btn.muted { color: var(--text-dim); cursor: default; }
.create-lib-btn.muted:hover { color: var(--text-dim); }
.cast-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.cast-chip { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 84px; padding: 8px 6px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.03); color: #e5e7eb; cursor: pointer; text-align: center; }
.cast-chip:hover { border-color: rgba(255,255,255,0.25); }
.cast-chip.on { border-color: #c9a36a; background: rgba(201, 163, 106, 0.12); }
.cast-chip:disabled { opacity: 0.55; cursor: default; }
.cast-grid.small .cast-chip { width: 72px; }
.cast-fig { width: 52px; height: 68px; border-radius: 8px; overflow: hidden; background: #1c1620; display: flex; align-items: center; justify-content: center; }
.cast-grid.small .cast-fig { width: 44px; height: 58px; }
.cast-fig img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.cast-fig i { font-style: normal; font-weight: 800; color: rgba(255,255,255,0.6); }
.cast-name { font-size: 12px; font-weight: 700; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cast-tag { font-size: 10px; color: var(--text-dim); }
.ai-box { border: 1px dashed rgba(201, 163, 106, 0.35); border-radius: 14px; padding: 16px 18px; background: rgba(201, 163, 106, 0.04); }
.ai-row { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.ai-num { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--text-dim); }
.ai-num .studio-text-input { width: 110px; }
.cover-row { flex-direction: row; align-items: center; gap: 14px; }
.cover-thumb { width: 72px; height: 96px; border-radius: 10px; background: #1c1620; overflow: hidden; flex-shrink: 0; }
.cover-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-acts { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.row-1 { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: center; }
.beat-card .row-2 { grid-template-columns: 1fr 1fr; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.beat-card { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.02); }
.beat-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.beat-head b { font-size: 13px; color: #f3e0bf; }
.beat-head .studio-text-input { flex: 1; }
.link-btn.danger { color: #fda4af; }
.btn-footer-secondary.danger { color: #fda4af; border-color: rgba(253,164,175,0.3); }
.scene-preview-card { position: relative; aspect-ratio: 3 / 4; border-radius: 18px; overflow: hidden; background: #14121c; border: 1px solid rgba(255,255,255,0.08); }
.sp-cover { position: absolute; inset: 0; background-size: cover; background-position: center top; }
.sp-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(10,7,9,0.95) 100%); }
.sp-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px; }
.sp-cast { font-size: 11px; color: #e8cfa3; margin-bottom: 4px; }
.sp-title { font-size: 18px; font-weight: 800; color: #fff; }
.sp-hook { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.sp-meta { margin-top: 10px; font-size: 12px; color: var(--text-dim); text-align: center; }
.stat-funnel { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.funnel-lab { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-muted); margin-bottom: 4px; }
.funnel-lab b { color: #fff; }
.funnel-bar { height: 8px; border-radius: 4px; background: rgba(255,255,255,0.08); overflow: hidden; }
.funnel-bar i { display: block; height: 100%; min-width: 2px; border-radius: 4px; background: linear-gradient(90deg, #c9a36a, #e8cfa3); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.stat-cell { padding: 14px 10px; border-radius: 12px; background: rgba(255,255,255,0.03); text-align: center; }
.stat-cell b { display: block; font-size: 20px; font-weight: 800; color: #fff; }
.stat-cell span { display: block; font-size: 11px; color: var(--text-dim); margin-top: 4px; }
.stat-cell.warn b { color: #fda4af; }
.stat-cell.gold b { color: #e8cfa3; }
.beat-bars { display: flex; align-items: flex-end; gap: 8px; height: 160px; padding: 10px 6px 0; }
.beat-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.beat-bar-wrap { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.beat-bar-wrap i { display: block; width: 60%; min-height: 2px; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, #e8cfa3, #c9a36a); }
.beat-col b { font-size: 12px; color: #fff; margin-top: 4px; }
.beat-col span { font-size: 11px; color: var(--text-dim); }
.shelf-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.scene-stats-page .ledger-row { grid-template-columns: 1fr auto; }
.ledger-amt { font-size: 13px; color: #e8cfa3; font-weight: 700; }

/* 会话设置与记忆编辑弹窗 */
.settings-modal-box { width: 92%; max-width: 640px; background: #120914; border: 1px solid rgba(201, 163, 106, 0.3); border-radius: 20px; padding: 22px 24px; box-shadow: 0 16px 48px rgba(0,0,0,0.7); }
.settings-body { max-height: min(72vh, 720px); overflow-y: auto; display: flex; flex-direction: column; gap: 18px; padding-right: 4px; }
.set-group { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); }
.set-group h4 { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #c9a36a; margin: 0; }
.set-label { font-size: 13px; font-weight: 700; color: #f3f4f6; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.set-label small { font-weight: 400; font-size: 11px; color: var(--text-dim); }
.set-label b { color: #e8cfa3; font-weight: 700; }
.set-hint { font-size: 12px; color: var(--text-dim); line-height: 1.5; }
.set-hint.warn { color: #fca5a5; }
.set-hint.warn a { color: #e8cfa3; font-weight: 700; }
.set-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.set-chip { border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.04); color: #e5e7eb; border-radius: 999px; padding: 6px 14px; font-size: 12px; cursor: pointer; }
.set-chip:hover { border-color: rgba(255,255,255,0.3); }
.set-chip.on { background: rgba(201,163,106,0.2); border-color: #c9a36a; color: #f3e0bf; }
.set-chip.locked { opacity: 0.55; }
.set-range { width: 100%; accent-color: #c9a36a; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid rgba(255,255,255,0.05); cursor: pointer; }
.set-row-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.set-row-main b { font-size: 13px; color: #f3f4f6; }
.set-row-main span { font-size: 11px; color: var(--text-dim); line-height: 1.4; }
.set-tabs { display: flex; gap: 6px; }
.set-tab { flex: 1; border: 0; border-radius: 10px; padding: 8px 0; font-size: 12px; font-weight: 700; background: rgba(255,255,255,0.04); color: var(--text-muted); cursor: pointer; }
.set-tab.on { background: rgba(201,163,106,0.18); color: #f3e0bf; }
.set-models { display: flex; flex-direction: column; gap: 6px; max-height: 220px; overflow-y: auto; }
.set-model { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; text-align: left; border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.03); border-radius: 10px; padding: 10px 12px; color: #e5e7eb; cursor: pointer; }
.set-model.on { border-color: #c9a36a; background: rgba(201,163,106,0.1); }
.set-model-name { font-size: 13px; font-weight: 700; }
.set-model-name em { font-style: normal; font-size: 10px; color: #c9a36a; margin-left: 6px; }
.set-model-price { font-size: 11px; color: var(--text-dim); white-space: nowrap; }
.set-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-studio-action.danger { color: #fda4af; border-color: rgba(253,164,175,0.3); }
.set-report { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.set-report select { flex: 1; min-width: 160px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); color: #e5e7eb; border-radius: 10px; padding: 8px 10px; font-size: 13px; }
.memory-pin-row { display: flex; gap: 8px; margin-bottom: 6px; }
.memory-pin-row input { flex: 1; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); color: #e5e7eb; border-radius: 10px; padding: 9px 12px; font-size: 13px; }
.memory-pin-quota { font-size: 11px; color: var(--text-dim); margin-bottom: 10px; }
.memory-item-card { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.memory-item-card .memory-text { flex: 1 1 60%; min-width: 0; }
.memory-item-card .memory-acts { display: flex; gap: 10px; margin-left: auto; }
.memory-item-card .link-btn { font-size: 11px; }
/* 本机外观偏好：字号 / 行高 */
.chat-messages-list.font-s .bubble-text { font-size: 13px; }
.chat-messages-list.font-l .bubble-text { font-size: 17px; }
.chat-messages-list.lh-tight .bubble-text { line-height: 1.45; }
.chat-messages-list.lh-loose .bubble-text { line-height: 2; }

/* ==========================================================================
   同玩房间（party.php）：与 play.php 同一套舞台 —— 左海报、右玻璃聊天窗
   ========================================================================== */
.party-room-body [hidden] { display: none !important; }
.party-topbar-kicker {
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em; color: var(--text-muted);
  padding: 4px 10px; border-radius: var(--radius-pill); border: 1px solid var(--border-subtle); background: rgba(255,255,255,0.04);
}
.party-wrapper { align-items: stretch; }
.party-center { flex: 1; display: flex; align-items: center; justify-content: center; width: 100%; padding: 24px 0; }
.party-join-box { width: 100%; max-width: 520px; padding: 44px 36px; }
.party-join-form { display: flex; gap: 12px; align-items: stretch; justify-content: center; margin: 4px 0 14px; }
.party-code-input {
  flex: 1; min-width: 0; max-width: 260px; text-align: center; font-size: 26px; font-weight: 800; letter-spacing: 0.32em;
  padding: 10px 14px; border-radius: 14px; color: #fff; outline: none;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.14); font-variant-numeric: tabular-nums;
}
.party-code-input::placeholder { font-size: 13px; letter-spacing: 0.02em; font-weight: 500; color: var(--text-dim); }
.party-code-input:focus { border-color: rgba(236,72,153,0.6); box-shadow: 0 0 0 3px rgba(236,72,153,0.15); }
.party-join-form .btn-hero-primary { padding: 12px 26px; }
.party-link-btn { background: none; border: 0; color: var(--accent-pink); font-size: 13px; font-weight: 600; cursor: pointer; }
.party-link-btn:hover { text-decoration: underline; }
.party-join-or { font-size: 12px; color: var(--text-dim); line-height: 1.6; }
.party-boot { display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--text-muted); font-size: 13px; }

/* 左：海报 */
.party-stage { height: 84vh; }
.party-poster .stage-poster-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.party-poster-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,6,9,0.15) 0%, rgba(10,6,9,0.35) 40%, rgba(10,6,9,0.96) 100%); }
.party-poster-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; max-height: 78%; overflow: auto; }
.party-poster-kicker { font-size: 10px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: #c4b08a; }
.party-poster-title { font-size: 24px; font-weight: 850; color: #fff; letter-spacing: -0.01em; line-height: 1.2; }
.party-poster-hook { font-size: 13px; color: rgba(244,239,230,0.66); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.party-poster-hook:empty { display: none; }
.party-invite {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 12px 14px; border-radius: 14px; background: rgba(0,0,0,0.42); border: 1px solid rgba(255,255,255,0.12); backdrop-filter: blur(8px);
}
.party-invite-copy { display: flex; flex-direction: column; gap: 2px; }
.party-invite-label { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-dim); font-weight: 700; }
.party-invite-code { font-size: 26px; font-weight: 900; letter-spacing: 0.22em; color: #fff; font-variant-numeric: tabular-nums; }
.party-invite-actions { display: flex; gap: 6px; }
.party-members-head { display: flex; align-items: center; justify-content: space-between; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; color: var(--text-dim); text-transform: uppercase; margin-top: 4px; }
.party-members { display: flex; flex-direction: column; gap: 6px; }
.party-member { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); }
.party-member .role-option-av { width: 30px; height: 30px; font-size: 13px; }
.party-member-info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.party-member-info b { font-size: 13px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.party-member-info b em { font-style: normal; font-size: 10px; font-weight: 800; color: #fbcfe8; background: rgba(236,72,153,0.25); border-radius: 6px; padding: 1px 6px; margin-left: 6px; vertical-align: middle; }
.party-member-info small { font-size: 11px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.party-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.18); flex-shrink: 0; }
.party-member.online .party-dot { background: #10b981; box-shadow: 0 0 8px #10b981; }

/* 右：聊天窗 */
.party-window { min-height: 0; }
.party-room-meta { padding: 14px 18px 0; display: flex; flex-direction: column; gap: 8px; }
.party-room-meta .party-invite { background: rgba(255,255,255,0.04); }
.party-room-meta .party-members { max-height: 132px; overflow: auto; }
.party-me-chip small { color: var(--text-dim); font-size: 11px; }
.party-lobby { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.party-lobby-scroll { flex: 1; overflow-y: auto; padding: 22px 24px; display: flex; flex-direction: column; gap: 18px; }
.party-lobby .chat-tagline-card { padding: 14px 16px; border-radius: 14px; background: rgba(196,176,138,0.08); border: 1px solid rgba(196,176,138,0.2); }
.party-lobby .tagline-body { display: block; font-size: 14px; color: var(--play-ink, #f4efe6); line-height: 1.7; }
.party-facts { display: flex; flex-wrap: wrap; gap: 8px; }
.party-facts:empty { display: none; }
.party-fact { display: inline-flex; flex-direction: column; gap: 1px; padding: 8px 12px; border-radius: 10px; background: rgba(255,255,255,0.04); border: 1px solid var(--border-subtle); font-size: 13px; color: #fff; }
.party-fact small { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); font-weight: 700; }
.party-block .role-sec-title { margin-top: 0; }
.party-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.party-chip {
  padding: 9px 16px; border-radius: var(--radius-pill); cursor: pointer; font-size: 13px; font-weight: 600;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.14); color: #e5e7eb; transition: all .18s ease;
}
.party-chip:hover { background: rgba(255,255,255,0.1); color: #fff; }
.party-chip.on { background: rgba(236,72,153,0.18); border-color: var(--accent-pink); color: #fff; box-shadow: 0 0 14px rgba(236,72,153,0.25); }
.party-chip.off { opacity: 0.4; cursor: not-allowed; }
.party-me-row { position: relative; }
.party-row-action { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--accent-pink); white-space: nowrap; }
.role-option.dim { opacity: 0.7; }
.role-option.dim .party-row-action { color: var(--text-muted); }
.party-lobby-dock {
  display: flex; align-items: center; gap: 12px; padding: 14px 24px 18px;
  border-top: 1px solid rgba(255,255,255,0.08); background: rgba(10,5,9,0.65);
}
.party-lobby-dock .btn-hero-primary { padding: 12px 34px; }
.party-lobby-dock .btn-hero-secondary { margin-left: auto; padding: 11px 20px; font-size: 13px; }
.party-wait-host { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-muted); }
.party-wait-host .typing-dots span { width: 5px; height: 5px; }

.party-viewport { position: relative; }
.party-beat { position: sticky; top: -20px; z-index: 2; margin: -8px -8px 14px; padding: 8px 10px 10px; border-radius: 10px; background: rgba(14,10,12,0.9); backdrop-filter: blur(10px); }
.party-beat-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 11px; letter-spacing: 0.06em; color: #c4b08a; font-weight: 700; margin-bottom: 6px; }
.party-beat-where { color: var(--text-dim); font-weight: 500; letter-spacing: 0.02em; }
.party-beat-track { height: 3px; border-radius: 99px; background: rgba(255,255,255,0.08); overflow: hidden; }
.party-beat-track i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #c4b08a, #ec4899); transition: width .4s ease; }
.message-row.pending { opacity: 0.55; }
.party-sys-line { text-align: center; font-size: 12px; color: var(--text-dim); letter-spacing: 0.02em; }
.party-player .bubble-sender { color: #cbd5e1; letter-spacing: 0.04em; }
.party-player .bubble-sender em { font-style: normal; font-size: 10px; font-weight: 800; color: #fbcfe8; background: rgba(236,72,153,0.22); border-radius: 6px; padding: 1px 6px; margin-left: 6px; vertical-align: middle; }
.party-player .party-player-text { color: var(--play-ink, #f4efe6); font-size: 15px; line-height: 1.75; white-space: pre-wrap; }
.party-player.mine .bubble-sender { color: var(--play-gold, #c4b08a); }
.party-player.mine .party-player-text {
  color: var(--play-ink, #f4efe6); text-align: left; padding: 10px 14px; border-radius: 14px 4px 14px 14px;
  background: rgba(236,72,153,0.14); border: 1px solid rgba(236,72,153,0.25);
}

.party-turn { padding: 10px 14px; border-radius: 12px; background: rgba(196,176,138,0.1); border: 1px solid rgba(196,176,138,0.25); }
.party-turn.mine { background: rgba(16,185,129,0.12); border-color: rgba(16,185,129,0.4); }
.party-turn-head { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #fff; }
.party-turn-hold { margin-left: auto; font-size: 11px; color: var(--text-muted); }
.party-turn-goal { margin-top: 4px; font-size: 13px; color: rgba(244,239,230,0.75); line-height: 1.6; }
.party-busy { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-muted); padding: 0 4px; }
.party-busy .typing-dots span { width: 5px; height: 5px; }
.party-busy-sec { margin-left: auto; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.party-input-row { margin: 0; }
.party-role-pill { flex-shrink: 0; max-width: 180px; font-size: 12px; font-weight: 700; color: #c4b08a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.party-input-row .chat-text-input { max-height: 120px; }
.party-input-row .chat-text-input:disabled { opacity: 0.5; }
.btn-chat-send:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; transform: none; }

.party-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; font-size: 12px; font-weight: 700; color: var(--text-muted); letter-spacing: 0.02em; }
.party-field input, .party-field select, .party-field textarea {
  width: 100%; padding: 10px 12px; border-radius: 10px; color: #fff; font-size: 14px; font-weight: 400; font-family: inherit; outline: none;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12);
}
.party-field textarea { resize: vertical; min-height: 56px; line-height: 1.5; }
.party-field input:focus, .party-field select:focus, .party-field textarea:focus { border-color: rgba(236,72,153,0.55); }
.party-field select option { background: #1a0f16; }

@media (max-width: 1080px) {
  .party-stage { height: calc(100vh - 92px); max-height: none; min-height: 0; grid-template-columns: minmax(220px, 34%) 1fr; }
  .party-poster { height: 100%; }
  .party-window { min-height: 0; }
}
@media (max-width: 760px) {
  .party-stage { grid-template-columns: 1fr; height: auto; }
  .party-poster { height: 240px; }
  .party-window { min-height: 68vh; }
}
@media (max-width: 640px) {
  .party-topbar-kicker { display: none; }
  .party-join-box { padding: 32px 22px; }
  .party-join-form { flex-direction: column; }
  .party-code-input { max-width: none; }
}

/* 时光走廊：正在玩的（同玩房间 + 进行中的剧本）横向轨 */
.history-playing { padding: 22px 0 6px; }
.history-playing-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.history-playing-title { display: flex; align-items: baseline; gap: 10px; }
.history-playing-title h2 { font-size: 16px; font-weight: 800; color: #fff; }
.history-playing-title span { font-size: 12px; color: var(--text-dim); }
.history-playing-rail { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; }
.history-playing-rail::-webkit-scrollbar { height: 6px; }
.playing-card {
  position: relative; flex: 0 0 236px; height: 132px; border-radius: 16px; overflow: hidden; scroll-snap-align: start;
  background: var(--bg-card); border: 1px solid var(--border-subtle); color: inherit; text-decoration: none; transition: transform .2s ease, border-color .2s ease;
}
.playing-card:hover { transform: translateY(-3px); border-color: var(--border-glow); }
.playing-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.playing-card-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,7,9,0.1) 0%, rgba(10,7,9,0.92) 100%); }
.playing-card.party .playing-card-shade { background: linear-gradient(160deg, rgba(168,85,247,0.35), rgba(10,7,9,0.94)); }
.playing-card-kind {
  position: absolute; left: 10px; top: 10px; font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 6px;
  background: rgba(0,0,0,0.55); border: 1px solid rgba(255,255,255,0.2); color: #fff;
}
.playing-card.party .playing-card-kind { background: rgba(236,72,153,0.45); }
.playing-card-live { position: absolute; right: 10px; top: 10px; display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 800; color: #86efac; }
.playing-card-live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #10b981; box-shadow: 0 0 8px #10b981; }
.playing-card-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px; }
.playing-card-title { font-size: 14px; font-weight: 800; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.playing-card-sub { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 3px; font-size: 11px; color: var(--text-muted); }
.playing-card-sub b { color: #fff; font-weight: 700; }
.playing-card.join {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center;
  background: rgba(255,255,255,0.03); border: 1px dashed rgba(255,255,255,0.22); cursor: pointer;
}
.playing-card.join:hover { border-color: var(--accent-pink); background: rgba(236,72,153,0.08); }
.playing-card-plus { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; font-weight: 300; color: #fff; background: linear-gradient(135deg, #f43f5e, #ec4899); }
.playing-card.join b { font-size: 13px; color: #fff; }
.playing-card.join small { font-size: 11px; color: var(--text-dim); }
.playing-card.empty { flex: 0 0 300px; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 12px; color: var(--text-dim); border-style: dashed; padding: 0 20px; line-height: 1.6; }
.history-toolbar .btn-hero-primary.small { flex-shrink: 0; }
/* ==========================================================================
   网站公告（首页区块 / 公告列表 / 公告详情）与联系表单
   本文件只放新增的样式。区块头、卡片、标题、空态、按钮、输入框沿用 style.css 已有类：
   .featured-section-header / .featured-title-wrap / .btn-more-link / .feature-card /
   .feat-title / .feat-desc / .history-empty / .gallery-hero-* / .auth-card-box /
   .auth-field-group / .auth-label / .auth-input / .btn-auth-submit
   ========================================================================== */

/* ---- 公告卡片网格（首页 3 列；列表同样式） ---- */
.announcement-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 1024px) {
  .announcement-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .announcement-grid { grid-template-columns: 1fr; }
}

/* feature-card 原本有 28/24 内边距；公告卡封面要贴边，所以内边距移到 body 里 */
.announcement-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}
.announcement-cover {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--bg-card-hover);
}
.announcement-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px 24px 24px;
}
.announcement-tag {
  align-self: flex-start;
  margin-bottom: 12px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(236, 72, 153, 0.1);
  color: var(--accent-pink);
  font-size: 12px;
  font-weight: 700;
}
.announcement-card-body .feat-title { margin-bottom: 8px; word-break: break-word; }
/* 首页卡片摘要最多两行，超出截断；列表页显示完整摘要 */
.announcement-summary.is-clamped {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.announcement-card-body .announcement-date {
  margin-top: auto;
  padding-top: 14px;
}
.announcement-date {
  display: block;
  font-size: 12px;
  color: var(--text-dim);
}

/* 列表分页 */
.announcement-pager {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

/* ---- 公告详情 ---- */
.announcement-page { padding: 48px 0 80px; }
.announcement-article { max-width: 760px; margin: 0 auto; }
.announcement-article-head { margin-bottom: 24px; }
.announcement-article-head .announcement-tag { margin-bottom: 14px; }
.announcement-article-title {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.3;
  color: #fff;
  word-break: break-word;
}
.announcement-article-head .announcement-date { margin-top: 12px; font-size: 13px; }
.announcement-article-cover {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  margin-bottom: 28px;
}
.announcement-article-body {
  font-size: 15px;
  line-height: 1.8;
  color: #d1d5db;
  word-break: break-word;
}
.announcement-article-foot { margin-top: 40px; }

/* 404：与角色详情页的 not-found 同一套空态 */
.announcement-not-found { padding: 80px 0; }
.announcement-not-found-cta { margin-top: 16px; }

/* ---- 联系表单 ---- */
.contact-page { padding: 48px 0 80px; }
.contact-card { max-width: 640px; margin: 0 auto; }
/* [hidden] 要压过下面的 display，成功后才能真正隐藏表单 */
.contact-form[hidden],
.contact-feedback[hidden],
.contact-success[hidden] { display: none; }
.contact-form .auth-input { font-family: inherit; }
.contact-fieldset {
  min-width: 0;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}
.contact-fieldset legend { padding: 0; margin-bottom: 6px; }
.contact-type-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.contact-type-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.contact-type-option input { accent-color: var(--accent-pink); }
.contact-type-option:has(input:checked) {
  border-color: var(--accent-pink);
  background: rgba(236, 72, 153, 0.12);
  color: #fff;
}
.contact-textarea {
  display: block;
  min-height: 140px;
  resize: vertical;
  line-height: 1.5;
}
.contact-feedback {
  margin: 0 0 4px;
  font-size: 13px;
  color: #fda4af;
}
.contact-form .btn-auth-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.contact-success {
  text-align: center;
  padding: 24px 8px;
}
.contact-success-text {
  font-size: 15px;
  line-height: 1.6;
  color: #fff;
}
.contact-direct {
  margin-top: 28px;
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
}
.contact-direct a { color: var(--accent-pink); }

@media (max-width: 640px) {
  .announcement-article-title { font-size: 24px; }
  .announcement-card-body { padding: 18px 20px 20px; }
}
/* 创建角色：两步流程（形象 → 身份与经历）。只放流程相关样式，其余沿用 style.css。 */

[hidden] { display: none !important; }

.create-steps {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.create-step-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.12));
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  opacity: 0.6;
}

.create-step-tab.is-on {
  opacity: 1;
  border-color: currentColor;
}

.create-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid currentColor;
  font-size: 12px;
}

.create-step-line {
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.25;
}

.create-step {
  display: block;
}

.create-step-title {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 600;
}

.create-step-sub {
  margin: 0 0 16px;
  font-size: 13px;
  opacity: 0.7;
  line-height: 1.6;
}

.create-mode-switch {
  display: inline-flex;
  padding: 3px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: rgba(127, 127, 127, 0.14);
}

.create-mode-btn {
  padding: 7px 16px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  opacity: 0.7;
}

.create-mode-btn.is-on {
  background: rgba(255, 255, 255, 0.92);
  color: #222;
  opacity: 1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.create-mode-panel {
  margin-bottom: 14px;
}

.create-link-btn {
  margin-left: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.create-details {
  margin: 4px 0 18px;
  padding: 10px 14px;
  border: 1px dashed rgba(127, 127, 127, 0.4);
  border-radius: 10px;
}

.create-details summary {
  cursor: pointer;
  font-size: 14px;
  opacity: 0.85;
}

.create-details[open] summary {
  margin-bottom: 12px;
}

.create-step-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(127, 127, 127, 0.2);
}

.create-step-footer .field-hint-text {
  flex: 1;
}
/* React 挂载层不参与原站页面的布局。 */
#root {
  display: contents;
}
button.gender-item {
  appearance: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: transparent;
}
button.gender-item {
  width: 100%;
  text-align: start;
}
.catalog-pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin: 32px 0 8px;
  color: var(--text-muted);
  font-size: 15px;
}
.no-results-box {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 0;
  color: var(--text-muted);
}
.no-results-box .btn-more-link {
  margin-top: 14px;
}
.character-card-grid .no-results-box p {
  font-size: 16px;
}
.shop-pane .no-results-box {
  padding: 40px 0;
  font-size: 15px;
}
.status-panel {
  margin: 3rem auto;
  text-align: center;
}
.status-panel button {
  margin-top: 12px;
}
.message-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.dialog {
  margin: auto;
  width: min(520px, 92vw);
  max-height: 90dvh;
  padding: 0;
  box-shadow: 0 20px 80px #0009;
}
.dialog.wide {
  width: min(920px, 94vw);
}
.dialog::backdrop {
  background: #06030bd9;
}
.dialog-inner {
  padding: 24px;
}
.dialog-inner > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.dialog {
  background: var(--surface-bg, #17101a);
  color: var(--text-main, #fff);
  border: 1px solid var(--border-color, #493344);
  border-radius: 16px;
}
.dialog-inner > header button {
  background: transparent;
  color: inherit;
  border: 0;
  font-size: 24px;
  cursor: pointer;
}

.drawer-poster-img {
  display: block;
}
dialog.native-drawer {
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  color: inherit;
  background: rgba(0, 0, 0, 0.75);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
dialog.lx-backdrop.native-drawer {
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
dialog.native-drawer::backdrop {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
fieldset.studio-form-card {
  min-width: 0;
  margin: 0;
}
.look-zoom-image {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
}

.legal-container {
  max-width: 800px;
  margin: 120px auto 80px;
  padding: 0 24px;
  line-height: 1.8;
  color: #cbd5e1;
}
.legal-container h1 {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 24px;
}
.legal-container h2 {
  font-size: 22px;
  font-weight: 700;
  color: #f8fafc;
  margin-top: 36px;
  margin-bottom: 16px;
}
.legal-container p {
  margin-bottom: 16px;
}
.legal-container > a {
  display: inline-block;
  margin-bottom: 24px;
  color: #a855f7;
}
