/* ==========================================================================
   桃源人生 (OneLife) 官方网站响应式样式表 (PC / 平板 / 手机自适应)
   ========================================================================== */
:root {
  color-scheme: dark;
  --bg-primary: #0f1715;
  --bg-secondary: #15211e;
  --bg-elevated: rgba(22, 34, 30, 0.88);
  --bg-warm-card: rgba(31, 46, 40, 0.78);
  --bg-glass: rgba(15, 23, 21, 0.28);
  --accent-gold: #f0c46c;
  --accent-gold-strong: #ffda85;
  --accent-jade: #52d1a0;
  --accent-coral: #f27d65;
  --text-primary: #f5f2eb;
  --text-secondary: #a9b8b2;
  --text-muted: #71857d;
  --border-subtle: rgba(240, 196, 108, 0.18);
  --border-jade: rgba(82, 209, 160, 0.28);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.45);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --max-width: 1260px;
  --header-height: 70px;
  --bottom-nav-height: 0px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(240, 196, 108, 0.26) transparent;
}

/* 全局定制深色极细滚动条，彻底消除原生白色滚动条 */
*::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background: rgba(240, 196, 108, 0.24);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb:hover {
  background: rgba(240, 196, 108, 0.48);
}

*::-webkit-scrollbar-corner {
  background: transparent;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 12px);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 12%, rgba(240, 196, 108, 0.08), transparent 40%),
    radial-gradient(circle at 82% 28%, rgba(82, 209, 160, 0.07), transparent 42%),
    var(--bg-primary);
  overflow-wrap: anywhere;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

.site-enter.animate__animated {
  --animate-duration: 360ms;
  animation-fill-mode: backwards;
}

.hero-content.site-enter {
  --animate-duration: 520ms;
}

.modal-card.site-enter,
.toast-msg.site-enter {
  --animate-duration: 220ms;
}

@media (prefers-reduced-motion: reduce) {
  .site-enter.animate__animated {
    animation: none;
  }
}

.icon,
.svg-icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex-shrink: 0;
}

.svg-icon.lg {
  width: 22px;
  height: 22px;
}

.svg-icon.sm {
  width: 14px;
  height: 14px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

body:not(.craft-fullscreen-page) {
  padding-top: var(--header-height);
}

/* 顶部导航栏 (沉稳低亮度 LiquidGlass 液态玻璃) */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  background: linear-gradient(
    180deg,
    rgba(16, 26, 22, 0.72) 0%,
    rgba(13, 22, 18, 0.80) 60%,
    rgba(11, 19, 16, 0.86) 100%
  );
  backdrop-filter: blur(20px) saturate(150%) brightness(0.92);
  -webkit-backdrop-filter: blur(20px) saturate(150%) brightness(0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.34),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06);
}

.header-inner {
  max-width: var(--max-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo {
  height: 46px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
  transition: transform 0.2s ease;
}

.brand-link:hover .brand-logo {
  transform: scale(1.03);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 0.94rem;
  white-space: nowrap;
  color: var(--text-secondary);
  border: 1px solid transparent;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-links a:hover {
  color: #fff8e2;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05));
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.32);
}

.nav-links a.active,
.nav-links a[aria-current] {
  color: #fff6dc;
  font-weight: 600;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.22) 0%, rgba(240, 196, 108, 0.16) 55%, rgba(255, 255, 255, 0.1) 100%);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border-color: rgba(255, 255, 255, 0.26);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.52),
    inset 0 -1px 1px rgba(255, 255, 255, 0.14),
    0 4px 12px rgba(0, 0, 0, 0.28);
}

.nav-links a:active {
  transform: scale(0.95);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.auth-user-box {
  align-items: center;
  gap: 8px;
}

#profile-name,
#mobile-account-label {
  max-width: 12ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 通用按钮体系（干净哑光质感，不使用高光玻璃效果） */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    filter 0.2s ease;
  white-space: nowrap;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.btn:active:not(:disabled) {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  color: #1c1608;
  box-shadow: 0 4px 12px rgba(240, 196, 108, 0.2);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 6px 16px rgba(240, 196, 108, 0.28);
}

.btn-jade {
  background: var(--accent-jade);
  border-color: var(--accent-jade);
  color: #0b1c15;
  box-shadow: 0 4px 12px rgba(82, 209, 160, 0.2);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--text-primary);
}

.btn-outline:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(240, 196, 108, 0.55);
  color: var(--accent-gold);
  background: rgba(240, 196, 108, 0.08);
}

.btn-sm {
  padding: 6px 13px;
  font-size: 0.84rem;
}

.btn-lg {
  padding: 13px 26px;
  font-size: 1.0rem;
}

/* 首屏 Hero 与实时循环弹幕墙 */
.hero-section {
  --hero-cover: url("/img/cover-art.webp");
  position: relative;
  margin-top: calc(-1 * var(--header-height));
  min-height: calc(100vh - var(--bottom-nav-height));
  min-height: calc(100svh - var(--bottom-nav-height));
  padding: calc(var(--header-height) + 162px) 0 44px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
  background:
    linear-gradient(180deg, rgba(15, 23, 21, 0.56), rgba(15, 23, 21, 0.34) 45%, var(--bg-primary)),
    radial-gradient(circle at center, rgba(0, 0, 0, 0.52) 25%, rgba(15, 23, 21, 0.84)),
    var(--hero-cover) center / cover no-repeat var(--bg-primary);
}

[data-night-cover] .hero-section {
  --hero-cover: url("/img/cover-art-night.webp");
}

/* 循环弹幕舞台 */
.danmaku-stage {
  position: absolute;
  top: calc(var(--header-height) + 8px);
  left: 0;
  right: 0;
  height: 168px;
  pointer-events: none;
  z-index: 6;
  overflow: hidden;
}

.danmaku-item {
  position: absolute;
  top: calc(6px + 40px * var(--lane));
  left: 100%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: rgba(14, 22, 19, 0.82);
  border: 1px solid rgba(240, 196, 108, 0.3);
  backdrop-filter: blur(8px);
  color: var(--text-primary);
  font-size: 0.88rem;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  will-change: transform;
  animation: danmakuFly linear forwards;
}

.danmaku-item.tier-jade {
  border-color: rgba(82, 209, 160, 0.58);
  background: linear-gradient(90deg, rgba(16, 46, 35, 0.86), rgba(14, 24, 21, 0.88));
}

.danmaku-item.tier-gold {
  border-color: rgba(240, 196, 108, 0.65);
  background: linear-gradient(90deg, rgba(58, 43, 18, 0.86), rgba(22, 34, 30, 0.88));
}

.danmaku-item.tier-legend {
  border-color: #ff9c6e;
  background: linear-gradient(90deg, rgba(78, 28, 22, 0.88), rgba(45, 32, 16, 0.9));
  box-shadow: 0 4px 20px rgba(242, 125, 101, 0.32);
}

.danmaku-author {
  color: var(--accent-gold);
  font-weight: 700;
  margin-right: -4px;
}

.donation-badge {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(240, 196, 108, 0.2);
  color: var(--accent-gold);
}

.danmaku-nick {
  font-weight: 600;
  color: var(--accent-gold-strong);
}

@keyframes danmakuFly {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(var(--danmaku-dist, calc(-100vw - 120%)), 0, 0);
  }
}

.hero-content {
  position: relative;
  z-index: 5;
  text-align: center;
  width: 100%;
  max-width: 868px;
}

.hero-controls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 21, 0.74);
  border: 1px solid var(--border-subtle);
  margin-bottom: 18px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.hero-online::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--accent-jade);
  box-shadow: 0 0 10px var(--accent-jade);
}

.hero-online strong {
  color: var(--accent-jade);
}

.danmaku-toggle {
  min-height: 32px;
  background: none;
  border: none;
  color: var(--accent-gold);
  cursor: pointer;
  font-weight: 600;
}

.hero-title {
  font-size: clamp(1.95rem, 4.1vw, 3.25rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.03em;
  margin-bottom: 16px;
  text-wrap: balance;
  background: linear-gradient(135deg, #fffaf0 15%, #f6d488 60%, #e4ac4c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.45));
}

.hero-subtitle {
  font-size: clamp(0.95rem, 1.75vw, 1.04rem);
  line-height: 1.82;
  color: rgba(232, 239, 234, 0.93);
  max-width: 720px;
  margin: 0 auto;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.hero-origin {
  font-size: clamp(0.84rem, 1.45vw, 0.92rem);
  line-height: 1.76;
  color: rgba(201, 214, 205, 0.86);
  max-width: 720px;
  margin: 12px auto 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.hero-origin a {
  color: var(--accent-gold);
  text-decoration: underline;
  text-decoration-color: rgba(240, 196, 108, 0.45);
  text-underline-offset: 3px;
  transition: color 0.18s ease, text-decoration-color 0.18s ease;
}

.hero-origin a:hover {
  color: var(--accent-gold-strong);
  text-decoration-color: var(--accent-gold-strong);
}

.hero-features {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 18px auto 0;
  padding: 0;
  max-width: 700px;
}

.hero-features li {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(242, 245, 243, 0.88);
  background: rgba(16, 27, 22, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-actions .btn-outline {
  background: rgba(16, 27, 22, 0.68);
  border-color: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* 通用区块标题與独立子页面头部 */
.page-main {
  padding-top: 94px;
  min-height: calc(100vh - 100px);
}

.section-block {
  padding: 68px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-jade);
  margin-bottom: 4px;
}

.section-title {
  font-size: clamp(1.45rem, 2.8vw, 2.0rem);
  color: var(--text-primary);
}

.section-desc {
  color: var(--text-secondary);
  font-size: 0.94rem;
  max-width: 640px;
}

/* 首页游戏介绍 4 大支柱卡片 */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

.pillar-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.pillar-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-gold);
}

.pillar-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(240, 196, 108, 0.14);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.pillar-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--accent-gold-strong);
}

.pillar-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* 实时世界状态列表 */
.hero-worlds {
  max-width: 720px;
  margin: 26px auto 0;
}

.hero-worlds h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 2px 10px;
  color: var(--accent-gold);
  font-size: 0.92rem;
}

.hero-worlds h2::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border-subtle), transparent);
}

.worlds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(255px, 100%), 1fr));
  gap: 12px;
}

.world-card {
  background: rgba(18, 29, 24, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 14px 16px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  box-shadow: 0 10px 28px rgba(5, 11, 8, 0.34);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.world-card:hover {
  transform: translateY(-2px);
}

.world-card-online {
  background: linear-gradient(145deg, rgba(25, 44, 35, 0.78), rgba(16, 28, 22, 0.76));
  border-color: rgba(82, 209, 160, 0.36);
}

.world-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.world-card h3 {
  font-size: 0.97rem;
  line-height: 1.35;
}

.world-description {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.world-badge {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(82, 209, 160, 0.15);
  color: var(--accent-jade);
  white-space: nowrap;
}

.world-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.world-badge.offline {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.world-population {
  margin-top: auto;
  padding-top: 4px;
}

.world-population-label {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.world-population-label strong {
  color: var(--accent-jade);
}

.world-population meter {
  display: block;
  width: 100%;
  height: 5px;
  margin-top: 5px;
  appearance: none;
  overflow: hidden;
  border-radius: 999px;
  background: #33473c;
  border: none;
}

.world-population meter::-webkit-meter-bar {
  background: #33473c;
  border: none;
}

.world-population meter::-webkit-meter-optimum-value {
  background: var(--accent-jade);
}

.world-population meter::-moz-meter-bar {
  background: var(--accent-jade);
}

/* ==========================================================================
   独立页面：树状合成百科 (OneLifeData7 Transitions Tree)
   ========================================================================== */
#crafting {
  padding-block: clamp(28px, 5vw, 54px);
  background: radial-gradient(ellipse at 22% 0%, rgba(240, 196, 108, 0.06), transparent 54%);
}

.crafting-heading {
  display: grid;
  gap: 6px;
  margin-bottom: 24px;
}

.crafting-heading .section-title {
  color: var(--text-primary);
  font-size: clamp(1.7rem, 3.8vw, 2.45rem);
}

.crafting-layout {
  --craft-list-height: clamp(310px, calc(100svh - 310px), 620px);
  display: grid;
  grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.crafting-layout:has(.craft-empty) {
  align-items: stretch;
}

.craft-sidebar {
  background: linear-gradient(165deg, #1c2923, #14201c 70%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 14px;
  overflow: hidden;
  min-width: 0;
}

.craft-sidebar h2 {
  margin: 0 2px 10px;
  color: var(--accent-gold);
  font-size: 0.95rem;
}

.search-box {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.input-field {
  width: 100%;
  min-width: 0;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 16, 14, 0.75);
  color: var(--text-primary);
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s;
}

.input-field:focus {
  border-color: var(--accent-gold);
}

.quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(20, 32, 28, 0.36) 55%, rgba(255, 255, 255, 0.06) 100%);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.32), 0 3px 10px rgba(0, 0, 0, 0.22);
  color: rgba(242, 245, 243, 0.85);
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tag-chip:active {
  transform: scale(0.95);
}

.tag-chip:hover {
  border-color: rgba(255, 240, 195, 0.48);
  color: #fff8e2;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(240, 196, 108, 0.15) 100%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.5), 0 5px 14px rgba(0, 0, 0, 0.3);
}

.tag-chip.active {
  background: linear-gradient(145deg, rgba(255, 224, 138, 0.9) 0%, rgba(235, 178, 72, 0.74) 55%, rgba(208, 146, 44, 0.8) 100%);
  border-color: rgba(255, 240, 195, 0.68);
  color: #1c1608;
  font-weight: 700;
  box-shadow:
    inset 0 1.5px 1px rgba(255, 255, 255, 0.78),
    inset 0 -1px 1.5px rgba(155, 95, 10, 0.22),
    0 6px 16px rgba(240, 196, 108, 0.26);
}

/* 修复左侧合成列表横向与白色滚动条问题 */
.craft-search-results {
  max-height: var(--craft-list-height);
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 4px;
}

.craft-results-items {
  display: grid;
  gap: 6px;
}

.craft-search-status:not(:empty) {
  padding: 12px 0;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

#btn-craft-more[hidden],
.craft-search-status:empty {
  display: none;
}

#btn-craft-more {
  flex-shrink: 0;
  align-self: center;
}

.craft-item-row {
  width: 100%;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 9px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  cursor: pointer;
  text-align: left;
  overflow: hidden;
  flex-shrink: 0;
  transition: all 0.16s ease;
}

.craft-item-row:focus-visible,
.craft-search-results:focus-visible,
.craft-tree-viewport:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: -2px;
}

.craft-item-row:hover,
.craft-item-row.active {
  border-color: var(--accent-gold);
  background: rgba(240, 196, 108, 0.12);
}

.craft-item-row img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.28);
  border-radius: 6px;
  flex-shrink: 0;
}

.craft-item-meta {
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.craft-item-meta b {
  display: block;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.craft-item-meta small {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.craft-main-panel {
  background: linear-gradient(150deg, #202d25, #14201c 62%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 14px;
  min-width: 0;
  overflow: hidden;
}

.craft-main-panel:has(.craft-empty) {
  display: flex;
  flex-direction: column;
}

.craft-toolbar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 18px;
}

.craft-toolbar[hidden] {
  display: none;
}

.craft-toolbar-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
}

.craft-tabs-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* 游戏同款制作/使用切换胶囊与视图切换胶囊（干净哑光扁平分段控制条） */
.guide-mode-tabs,
.craft-view-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--border-subtle);
}

.guide-mode-tab,
.craft-view-tab {
  min-height: 32px;
  padding: 4px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.guide-mode-tab:hover,
.craft-view-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.guide-mode-tab:active,
.craft-view-tab:active {
  transform: scale(0.96);
}

.guide-mode-tab.is-active,
.craft-view-tab.is-active {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  color: #1c1608;
  font-weight: 700;
}

.steps-selector {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}

[hidden],
[hidden="true"],
#craft-tree-controls[hidden],
#craft-steps-controls[hidden],
#craft-tree-viewport[hidden],
#craft-steps-viewport[hidden],
#craft-usages-section[hidden],
.depth-selector[hidden],
.steps-selector[hidden],
.craft-steps-viewport[hidden],
.craft-tree-viewport[hidden],
.usages-section[hidden] {
  display: none !important;
}

.craft-steps-count-badge {
  font-size: 0.82rem;
  color: var(--accent-gold);
  background: rgba(240, 196, 108, 0.12);
  border: 1px solid rgba(240, 196, 108, 0.25);
  padding: 4px 12px;
  border-radius: 999px;
}

/* 横向步骤方程式视口与卡片 */
.craft-steps-viewport {
  width: 100%;
  max-height: 680px;
  overflow-y: auto;
  padding-right: 4px;
}

.guide-recipes-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.guide-recipe-card {
  background: rgba(16, 26, 22, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.guide-recipe-card:hover {
  border-color: rgba(240, 196, 108, 0.35);
}

.guide-recipe-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.guide-recipe-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.guide-recipe-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-gold);
  background: rgba(240, 196, 108, 0.15);
  border: 1px solid rgba(240, 196, 108, 0.3);
  padding: 2px 8px;
  border-radius: 999px;
}

.guide-recipe-method {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.guide-recipe-time-tag {
  font-size: 0.72rem;
  color: var(--accent-jade);
  background: rgba(135, 215, 177, 0.12);
  border: 1px solid rgba(135, 215, 177, 0.28);
  padding: 2px 8px;
  border-radius: 999px;
}

.guide-equation {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) 28px minmax(110px, 1fr) 36px minmax(110px, 1fr) 28px minmax(110px, 1fr);
  align-items: center;
  gap: 8px;
}

@media (max-width: 900px) {
  .guide-equation {
    grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr);
    gap: 6px;
  }
  .guide-equation .guide-arrow {
    grid-column: 1 / -1;
    transform: rotate(90deg);
    margin: 4px auto;
  }
}

.guide-operator,
.guide-arrow {
  color: rgba(255, 255, 255, 0.65);
  font-size: 1.15rem;
  font-weight: 700;
  text-align: center;
  user-select: none;
}

.guide-arrow {
  color: var(--accent-gold);
  font-size: 1.35rem;
}

.guide-object-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  transition: all 0.18s ease;
  min-width: 0;
}

.guide-object-btn:hover {
  background: rgba(240, 196, 108, 0.14);
  border-color: rgba(240, 196, 108, 0.4);
  transform: translateY(-1px);
}

.guide-object-btn.is-focus-object {
  border-color: var(--accent-gold);
  background: rgba(240, 196, 108, 0.18);
}

.guide-object-btn img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.guide-object-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.guide-object-meta b {
  font-size: 0.84rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
}

.guide-object-meta small {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.guide-object-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  color: var(--text-muted);
  font-size: 0.8rem;
  text-align: center;
}

.guide-natural-card,
.guide-empty-card {
  padding: 36px 20px;
  text-align: center;
  background: rgba(16, 26, 22, 0.6);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.guide-natural-card span {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-gold);
}

.guide-natural-card strong,
.guide-empty-card strong {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.selected-object-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.selected-object-banner img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 4px;
  flex-shrink: 0;
}

.selected-object-banner h2 {
  font-size: 1.2rem;
  color: var(--accent-gold-strong);
}

.selected-object-banner p {
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.depth-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

.craft-zoom-controls {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  background: rgba(10, 16, 14, 0.65);
}

.craft-zoom-controls button {
  min-width: 36px;
  min-height: 34px;
  padding-inline: 7px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.craft-zoom-controls button + button {
  border-inline-start: 1px solid var(--border-subtle);
}

.craft-zoom-controls button:hover,
.craft-zoom-controls button:focus-visible {
  background: rgba(240, 196, 108, 0.12);
}

.craft-zoom-controls button:disabled {
  opacity: 0.45;
  cursor: default;
}

#btn-craft-zoom-reset {
  min-width: 56px;
  font-variant-numeric: tabular-nums;
}

/* 树状结构画布 */
.craft-tree-viewport {
  position: relative;
  width: 100%;
  overflow: auto;
  padding: 16px 8px 22px;
  background:
    radial-gradient(circle, rgba(193, 216, 197, 0.14) 0.75px, transparent 1px) center / 22px 22px,
    #111c18;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
  user-select: none;
}

.craft-tree-viewport:has(.craft-tree-stage) {
  max-height: clamp(300px, 65svh, 680px);
  cursor: grab;
  touch-action: none;
}

.craft-tree-viewport.is-panning,
.craft-tree-viewport.is-panning * {
  cursor: grabbing;
}

.craft-tree-viewport:has(.craft-empty) {
  display: grid;
  flex: 1;
  width: 100%;
  padding: 0;
  cursor: default;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(240, 196, 108, 0.09), transparent 54%),
    radial-gradient(circle, rgba(193, 216, 197, 0.12) 0.75px, transparent 1px) center / 22px 22px,
    #111c18;
}

.craft-empty {
  display: flex;
  min-height: calc(var(--craft-list-height) + 72px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  text-align: center;
  color: var(--text-secondary);
}

.craft-empty-icon {
  display: grid;
  place-items: center;
  width: 64px;
  aspect-ratio: 1;
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  background: rgba(240, 196, 108, 0.08);
  color: var(--accent-gold);
  font-size: 1.6rem;
}

.craft-tree-stage {
  display: flex;
  justify-content: center;
  min-width: max-content;
  padding: 8px 16px;
  zoom: var(--craft-zoom, 1);
}

.tree-node-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.tree-node-card {
  display: inline-flex;
  cursor: pointer;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-warm-card);
  border: 1px solid var(--border-subtle);
  min-width: 176px;
  max-width: 248px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
  transition: all 0.18s ease;
}

.tree-node-card.is-root {
  border-color: var(--accent-gold);
  background: linear-gradient(135deg, rgba(52, 41, 20, 0.85), rgba(25, 38, 33, 0.9));
}

.tree-node-card.is-natural {
  border-color: var(--border-jade);
}

.tree-node-card:hover {
  border-color: var(--accent-gold-strong);
  transform: translateY(-2px);
}

.tree-node-card img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  padding: 3px;
  flex-shrink: 0;
}

.tree-node-info {
  min-width: 0;
  flex: 1;
}

.tree-node-info b {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 0.88rem;
  line-height: 1.3;
  color: var(--text-primary);
  white-space: normal;
  word-break: break-word;
  overflow: hidden;
}

.tree-node-info small {
  display: block;
  font-size: 0.73rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.node-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 7px;
  border-radius: 4px;
  font-size: 0.7rem;
  margin-top: 3px;
  background: rgba(82, 209, 160, 0.16);
  color: var(--accent-jade);
}

.node-tag.cycle {
  background: rgba(242, 125, 101, 0.18);
  color: var(--accent-coral);
}

.recipe-switcher {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  margin-top: 6px;
}

.recipe-tab-btn {
  padding: 3px 10px;
  font-size: 0.72rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.recipe-tab-btn:hover {
  border-color: rgba(240, 196, 108, 0.55);
  color: var(--text-primary);
  background: rgba(240, 196, 108, 0.1);
}

.recipe-tab-btn:active {
  transform: scale(0.95);
}

.recipe-tab-btn.active {
  background: var(--accent-gold);
  color: #1c1608;
  border-color: var(--accent-gold);
  font-weight: 700;
}

.tree-step-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 4px 0 0;
}

.tree-vline {
  width: 2px;
  height: 14px;
  background: rgba(240, 196, 108, 0.42);
}

.tree-method-pill {
  padding: 5px 12px;
  border-radius: 10px;
  font-size: 0.75rem;
  line-height: 1.45;
  text-align: center;
  background: rgba(54, 43, 21, 0.72);
  border: 1px solid rgba(240, 196, 108, 0.36);
  color: var(--accent-gold-strong);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  max-width: 290px;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
}

.byproduct-inline {
  display: inline-block;
}

.tree-children-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  position: relative;
  padding-top: 0;
}

.tree-child-col {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 10px 0;
}

/* 每个子节点顶部的垂直连接线，精准接入横线 */
.tree-child-col::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 18px;
  background: rgba(240, 196, 108, 0.42);
}

/* 子节点之间的水平分叉线，精准止步于首尾子节点卡片中心 */
.tree-child-col::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(240, 196, 108, 0.42);
}

.tree-child-col:first-child::after {
  left: 50%;
}

.tree-child-col:last-child::after {
  right: 50%;
}

.tree-child-col:only-child::after {
  display: none;
}

.child-role-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

/* 下游用途网格 */
.usages-section {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.usages-section h3 {
  color: var(--accent-gold);
  font-size: 0.98rem;
}

.usages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(225px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.usage-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  cursor: pointer;
  transition: all 0.16s ease;
}

.usage-card:hover {
  border-color: var(--accent-gold);
  background: rgba(240, 196, 108, 0.08);
}

.usage-card img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.28);
  border-radius: 6px;
  flex-shrink: 0;
}

/* ==========================================================================
   充电页面 · 桃源在线商城 & 捐赠充电
   ========================================================================== */
.store-main {
  position: relative;
  padding: 28px 0 84px;
  background:
    radial-gradient(ellipse 75% 420px at 50% -40px, rgba(240, 196, 108, 0.1), transparent 72%),
    radial-gradient(ellipse 48% 360px at 90% 36%, rgba(82, 209, 160, 0.045), transparent 72%),
    radial-gradient(ellipse 52% 400px at 10% 78%, rgba(240, 196, 108, 0.045), transparent 72%);
}

/* ---------- 通用分区头部 ---------- */
.store-section {
  padding: 0;
  scroll-margin-top: calc(var(--header-height) + 20px);
}

.store-section + .store-section {
  margin-top: 56px;
}

.store-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.store-section-title {
  position: relative;
  margin: 0;
  padding-left: 14px;
  font-size: clamp(1.35rem, 2.2vw, 1.6rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(120deg, #fff6df 0%, #f5d38d 68%, #e2a447 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.store-section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16%;
  bottom: 16%;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, #f8dc9c, #e2a447);
  box-shadow: 0 0 10px rgba(240, 196, 108, 0.5);
}

/* ---------- 发放世界切换栏 (位于商城标题下方，与商品卡片左对齐) ---------- */
.shop-world-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-bottom: 24px;
}

.shop-world-bar-label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.shop-world-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.shop-world-tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1.5px solid rgba(255, 255, 255, 0.09);
  color: var(--text-secondary);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.shop-world-tab:hover {
  transform: translateY(-1px);
  color: var(--text-primary);
  border-color: rgba(240, 196, 108, 0.42);
  background: rgba(240, 196, 108, 0.06);
}

.shop-world-tab.is-active {
  color: var(--text-primary);
  border-color: var(--accent-gold);
  background: linear-gradient(135deg, rgba(240, 196, 108, 0.18), rgba(240, 196, 108, 0.05));
  box-shadow:
    0 6px 18px rgba(240, 196, 108, 0.14),
    inset 0 1px 0 rgba(255, 236, 190, 0.22);
}

.shop-world-name {
  font-size: 0.9rem;
  font-weight: 700;
}

.shop-world-online {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
}

.shop-world-tab.is-active .shop-world-online {
  color: var(--accent-jade);
  background: rgba(82, 209, 160, 0.14);
}

.shop-world-empty {
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* ---------- 商品橱窗网格 ---------- */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(264px, 1fr));
  gap: 22px;
}

.shop-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 0%, rgba(240, 196, 108, 0.08), transparent 58%),
    linear-gradient(180deg, rgba(24, 37, 31, 0.94) 0%, rgba(12, 20, 17, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.26s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.26s ease, box-shadow 0.26s ease;
}

/* 顶部细微鎏金折光线 */
.shop-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240, 196, 108, 0.55), transparent);
  opacity: 0.45;
  transition: opacity 0.26s ease, left 0.26s ease, right 0.26s ease;
}

.shop-card:hover {
  transform: translateY(-5px);
  border-color: rgba(240, 196, 108, 0.52);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.45),
    0 0 32px rgba(240, 196, 108, 0.13);
}

.shop-card:hover::before {
  left: 10%;
  right: 10%;
  opacity: 1;
}

/* 秘宝展示台 */
.shop-card-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  margin: 12px 12px 0;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  background:
    radial-gradient(circle at 50% 52%, rgba(240, 196, 108, 0.2) 0%, rgba(240, 196, 108, 0.04) 44%, transparent 68%),
    radial-gradient(circle, rgba(193, 216, 197, 0.08) 1px, transparent 1px) center / 16px 16px,
    linear-gradient(180deg, rgba(26, 40, 34, 0.86) 0%, rgba(9, 16, 13, 0.96) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(240, 196, 108, 0.1),
    inset 0 -18px 36px rgba(0, 0, 0, 0.4);
}

/* 展示台光环底纹 */
.shop-card-media::before {
  content: "";
  position: absolute;
  width: 126px;
  height: 126px;
  border-radius: 50%;
  border: 1px dashed rgba(240, 196, 108, 0.14);
  pointer-events: none;
  transition: transform 0.45s ease, border-color 0.26s ease;
}

/* 道具底部悬空投影 */
.shop-card-media::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 14%;
  width: 44%;
  height: 10px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.62), transparent 72%);
  transition: width 0.26s ease, opacity 0.26s ease;
}

.shop-card:hover .shop-card-media::before {
  transform: rotate(24deg) scale(1.06);
  border-color: rgba(240, 196, 108, 0.3);
}

.shop-card-media img {
  position: relative;
  z-index: 1;
  width: 78px;
  height: 78px;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.52));
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.28s ease;
}

.shop-card:hover .shop-card-media img {
  transform: translateY(-6px) scale(1.09);
  filter: drop-shadow(0 14px 20px rgba(240, 196, 108, 0.28));
}

.shop-card:hover .shop-card-media::after {
  width: 34%;
  opacity: 0.72;
}

.shop-card-hint {
  position: absolute;
  z-index: 2;
  right: 10px;
  bottom: 10px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent-gold);
  background: rgba(8, 14, 12, 0.78);
  border: 1px solid rgba(240, 196, 108, 0.28);
  opacity: 0;
  transform: translateY(3px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.shop-card-media:hover .shop-card-hint {
  opacity: 1;
  transform: translateY(0);
}

.shop-badge {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #fff8eb;
  background: linear-gradient(135deg, rgba(242, 125, 101, 0.94), rgba(204, 72, 65, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 4px 12px rgba(204, 72, 65, 0.36);
}

.shop-card-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px 0;
}

.shop-card-name {
  margin: 0;
  font-size: 1.04rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.shop-card-qty {
  flex-shrink: 0;
  padding: 3px 9px;
  border-radius: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--accent-gold);
  background: rgba(240, 196, 108, 0.1);
  border: 1px solid rgba(240, 196, 108, 0.24);
}

.shop-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding: 14px 18px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.shop-price {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  font-size: 1.48rem;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--accent-gold);
  text-shadow: 0 0 18px rgba(240, 196, 108, 0.22);
}

.shop-price-currency {
  font-size: 0.88rem;
  font-weight: 700;
}

.shop-buy-btn {
  padding: 8px 18px;
  border-radius: 10px;
  font-weight: 700;
}

/* 空状态 */
.shop-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 60px 20px;
  border-radius: 20px;
  text-align: center;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(240, 196, 108, 0.18);
}

.shop-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 4px;
  border-radius: 16px;
  color: var(--accent-gold);
  background: rgba(240, 196, 108, 0.08);
  border: 1px solid rgba(240, 196, 108, 0.2);
}

.shop-empty-icon .icon {
  width: 24px;
  height: 24px;
}

.shop-empty p {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.shop-empty span:last-child {
  font-size: 0.82rem;
}

/* ---------- 捐赠充电专区 ---------- */
.donate-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.95fr);
  gap: 24px;
  align-items: stretch;
}

.donate-tiers-panel,
.donate-checkout {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(240, 196, 108, 0.18);
  background:
    radial-gradient(circle at 12% 0%, rgba(240, 196, 108, 0.08), transparent 46%),
    linear-gradient(180deg, rgba(24, 37, 31, 0.94) 0%, rgba(12, 20, 17, 0.98) 100%);
  box-shadow:
    0 20px 44px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.donate-tiers-panel::before,
.donate-checkout::before {
  content: "";
  position: absolute;
  top: 0;
  left: 28px;
  right: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240, 196, 108, 0.68), transparent);
}

.donate-tiers-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 26px 28px;
}

.donate-panel-head h3,
.donate-checkout-head h3 {
  margin: 0;
  font-size: 1.04rem;
  font-weight: 700;
  color: var(--accent-gold);
}

.donate-panel-head {
  margin-bottom: 0;
}

.donate-presets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
}

.preset-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 126px;
  padding: 26px 16px 22px;
  border-radius: 16px;
  text-align: center;
  color: inherit;
  cursor: pointer;
  background:
    radial-gradient(circle at 50% 0%, rgba(240, 196, 108, 0.06), transparent 70%),
    rgba(255, 255, 255, 0.025);
  border: 1.5px solid rgba(255, 255, 255, 0.09);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

/* 卡片底部能量光条 */
.preset-card::before {
  content: "";
  position: absolute;
  left: 24%;
  right: 24%;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: transparent;
  transition: background 0.2s ease, left 0.2s ease, right 0.2s ease;
}

.preset-card:hover {
  transform: translateY(-3px);
  border-color: rgba(240, 196, 108, 0.48);
  background:
    radial-gradient(circle at 50% 0%, rgba(240, 196, 108, 0.14), transparent 70%),
    rgba(255, 255, 255, 0.035);
}

.preset-card.active {
  border-color: var(--accent-gold);
  background:
    radial-gradient(circle at 50% 0%, rgba(240, 196, 108, 0.26), transparent 72%),
    linear-gradient(180deg, rgba(240, 196, 108, 0.13), rgba(240, 196, 108, 0.03));
  box-shadow:
    0 12px 28px rgba(240, 196, 108, 0.16),
    inset 0 1px 0 rgba(255, 236, 190, 0.28);
}

.preset-card.active::before {
  left: 16%;
  right: 16%;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}

/* 选中对勾微标 */
.preset-card.active::after {
  content: "✓";
  position: absolute;
  right: 10px;
  top: 10px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 900;
  color: #1d1406;
  background: linear-gradient(135deg, #f8dc9c, #e6ad49);
  box-shadow: 0 2px 8px rgba(240, 196, 108, 0.45);
}

.preset-card .amount {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  color: var(--accent-gold);
}

.preset-card.active .amount {
  color: #ffe39e;
  text-shadow: 0 0 18px rgba(240, 196, 108, 0.3);
}

.preset-card .amount small {
  margin-right: 2px;
  font-size: 0.92rem;
}

.preset-card .title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.preset-card.active .title {
  color: var(--text-primary);
}

.preset-card .donation-badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  padding: 2px 10px;
  border-radius: 0 0 8px 8px;
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
  color: #1d1406;
  background: linear-gradient(135deg, #f8dc9c, #e9b456);
  border: none;
}

/* 自定义金额 */
.donate-custom-amount {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px dashed rgba(255, 255, 255, 0.09);
}

.donate-custom-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.donate-custom-meta label {
  margin: 0;
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text-primary);
}

.donate-field-note {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.donate-amount-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 210px;
  flex-shrink: 0;
}

.donate-currency {
  position: absolute;
  left: 16px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-gold);
  pointer-events: none;
}

.donate-amount-input {
  height: 48px;
  padding-left: 36px;
  font-size: 1.2rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
  background: rgba(9, 15, 13, 0.85);
  border-color: rgba(240, 196, 108, 0.24);
  border-radius: 12px;
}

.donate-amount-input:focus {
  box-shadow: 0 0 0 3px rgba(240, 196, 108, 0.14);
}

/* 右侧结算面板 */
.donate-checkout {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 26px 28px;
  border-color: rgba(240, 196, 108, 0.26);
  background:
    radial-gradient(circle at 100% 0%, rgba(240, 196, 108, 0.14), transparent 52%),
    linear-gradient(180deg, rgba(26, 39, 33, 0.96), rgba(12, 20, 17, 0.99));
}

.donate-checkout-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.donate-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-radius: 14px;
  background: rgba(7, 12, 10, 0.56);
  border: 1px solid rgba(240, 196, 108, 0.16);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.32);
}

.donate-summary-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.donate-summary-amount {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-gold);
  font-variant-numeric: tabular-nums;
}

.donate-summary-amount span {
  margin-left: 2px;
  font-size: 2.05rem;
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 0 24px rgba(240, 196, 108, 0.35);
}

.donate-checkout .form-group {
  margin-bottom: 0;
}

.donate-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.donate-label-row label {
  margin-bottom: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.donate-char-count {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.donate-message-input {
  min-height: 98px;
  resize: vertical;
  border-radius: 12px;
  background: rgba(9, 15, 13, 0.85);
}

.donate-message-input:focus {
  box-shadow: 0 0 0 3px rgba(240, 196, 108, 0.14);
}

.donate-anon-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-secondary);
  user-select: none;
}

.donate-anon-toggle input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent-gold);
  cursor: pointer;
}

.donate-submit-btn {
  width: 100%;
  height: 50px;
  margin-top: auto;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

#btn-donate-submit:disabled {
  opacity: 0.5;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

/* 弹窗 Modal 体系 */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(6, 10, 9, 0.78);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop.hidden {
  display: none;
}

.modal-card {
  background: #16221f;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 26px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

/* 登录 / 注册弹窗品牌美化 */
.auth-modal-card {
  max-width: 420px;
  padding: 30px 28px 28px;
  border-radius: 24px;
  background: linear-gradient(155deg, rgba(26, 40, 34, 0.96), rgba(14, 23, 19, 0.98));
  border: 1px solid rgba(240, 196, 108, 0.28);
  box-shadow:
    0 28px 72px rgba(0, 0, 0, 0.68),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.auth-brand-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  margin-bottom: 22px;
}

.auth-brand-logo {
  height: 54px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

.auth-brand-sub {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
}

.auth-tabs-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 20px;
}

.auth-tabs-bar .btn {
  width: 100%;
  padding: 8px 12px;
  font-size: 0.86rem;
}

.auth-tabs-bar .btn-outline {
  background: transparent;
  border-color: transparent;
  color: var(--text-secondary);
}

.auth-tabs-bar .btn-outline:hover:not(:disabled) {
  transform: none;
  background: rgba(255, 255, 255, 0.06);
  border-color: transparent;
  color: var(--text-primary);
}

.auth-modal-card .input-field {
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(9, 15, 13, 0.72);
  border-color: rgba(255, 255, 255, 0.14);
}

.auth-modal-card .input-field:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(240, 196, 108, 0.12);
}

/* 消除浏览器记住密码自动填充时的蓝灰色底框 */
.input-field:-webkit-autofill,
.input-field:-webkit-autofill:hover,
.input-field:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text-primary);
  -webkit-box-shadow: 0 0 0 1000px #0d1714 inset;
  caret-color: var(--text-primary);
  transition: background-color 5000s ease-in-out 0s;
}

/* 商城购买确认弹窗 */
.buy-confirm-card {
  max-width: 440px;
}

.buy-confirm-title {
  margin: 0 0 4px;
  font-size: 1.18rem;
  color: var(--accent-gold-strong);
}

.buy-confirm-sub {
  margin: 0 0 18px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.buy-confirm-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 14px;
}

.buy-confirm-item img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.28);
  border-radius: 10px;
  padding: 4px;
  flex-shrink: 0;
}

.buy-confirm-item strong {
  display: block;
  font-size: 0.96rem;
  color: var(--text-primary);
}

.buy-confirm-item small {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.buy-confirm-summary {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(9, 15, 13, 0.65);
  border: 1px solid rgba(240, 196, 108, 0.22);
  margin-bottom: 20px;
}

.buy-confirm-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9rem;
}

.buy-confirm-row span {
  color: var(--text-secondary);
  flex-shrink: 0;
}

.buy-confirm-row strong {
  color: var(--text-primary);
  font-weight: 600;
  text-align: right;
  word-break: break-all;
}

.buy-confirm-row strong.highlight-jade {
  color: var(--accent-jade);
  font-weight: 700;
}

.buy-confirm-amount-row {
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.buy-confirm-row strong.highlight-gold {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent-gold-strong);
}

.buy-confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.buy-confirm-actions .btn {
  width: 100%;
  padding: 10px 16px;
}

.modal-close {
  font-size: 1.05rem;
  line-height: 1;
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.modal-close:hover {
  border-color: rgba(240, 196, 108, 0.55);
  background: rgba(240, 196, 108, 0.1);
  color: var(--accent-gold);
}

.modal-close:active {
  transform: scale(0.92);
}

.account-page {
  width: 100%;
  max-width: 960px;
  min-height: calc(100svh - var(--header-height) - var(--bottom-nav-height) - 72px);
  padding-block: clamp(28px, 6vw, 64px);
}

.account-page > h1 {
  margin-bottom: 20px;
  font-size: clamp(1.7rem, 4vw, 2.35rem);
}

.account-profile,
.account-guest {
  padding: clamp(14px, 4vw, 24px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #223129, #16231d);
}

.account-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.account-profile {
  justify-content: space-between;
  flex-wrap: wrap;
}

.account-identity {
  flex: 1 1 190px;
  min-width: 0;
}

.account-identity h2,
.account-orders h2 {
  font-size: 1.15rem;
}

.account-identity p,
.account-note,
.account-guest p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.account-guest .btn {
  margin-top: 14px;
}

.account-orders {
  margin-top: 26px;
}

.account-order-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.account-order {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px 14px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
}

.account-order h3 {
  font-size: 0.97rem;
}

.order-reference {
  margin-top: 4px;
  color: var(--text-secondary);
  font-size: 0.78rem;
}

.order-summary {
  display: grid;
  justify-items: end;
  gap: 3px;
  color: var(--accent-gold);
  white-space: nowrap;
}

.order-status {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.73rem;
  background: rgba(240, 196, 108, 0.12);
}

.order-status.paid {
  color: var(--accent-jade);
  background: rgba(82, 209, 160, 0.14);
}

.order-delivery {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.qr-box {
  width: 236px;
  height: 236px;
  margin: 16px auto;
  padding: 10px;
  background: #fff;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 手机端悬浮 LiquidGlass 液态玻璃导航胶囊 (外层 overflow: visible 允许水滴放大真实凸出超出 bar 轮廓) */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: calc(14px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100vw - 24px), 376px);
  z-index: 120;
  padding: 5px 6px;
  gap: 4px;
  border-radius: 999px;
  overflow: visible !important;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

/* 独立圆角折射磨砂玻璃底座层 */
.lg-backdrop {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.14) 0%,
    rgba(24, 38, 33, 0.34) 50%,
    rgba(255, 255, 255, 0.09) 100%
  );
  backdrop-filter: blur(22px) saturate(195%) brightness(1.08);
  -webkit-backdrop-filter: blur(22px) saturate(195%) brightness(1.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.56),
    0 4px 14px rgba(0, 0, 0, 0.32),
    inset 0 1.5px 1px rgba(255, 255, 255, 0.45),
    inset 0 -1.5px 2px rgba(255, 255, 255, 0.14),
    inset 0 0 18px rgba(255, 255, 255, 0.06);
}

.lg-backdrop.has-svg-refraction {
  backdrop-filter: url(#taoyuan-liquid-glass-refract) blur(8px) saturate(185%) brightness(1.06);
  -webkit-backdrop-filter: url(#taoyuan-liquid-glass-refract) blur(8px) saturate(185%) brightness(1.06);
}

.liquid-glass-gl {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: screen;
}

/* iOS 26 物理水滴滑块透镜 (位于 .lg-backdrop 外层之上，扩大时可清晰超出 ButtonBar 轮廓) */
.lg-droplet {
  position: absolute;
  top: 5px;
  left: 0;
  height: 50px;
  border-radius: 999px;
  z-index: 1;
  pointer-events: none;
  transform-origin: center center;
  will-change: transform, width;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.28) 0%,
    rgba(240, 196, 108, 0.16) 52%,
    rgba(255, 255, 255, 0.13) 100%
  );
  box-shadow:
    inset 0 1.5px 1px rgba(255, 255, 255, 0.65),
    inset 0 -1.5px 2px rgba(255, 255, 255, 0.22),
    inset 0 0 12px rgba(255, 255, 255, 0.12),
    0 6px 16px rgba(0, 0, 0, 0.3);
  transition: background 0.18s ease, box-shadow 0.18s ease;
}

.lg-droplet.is-interacting {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.34) 0%,
    rgba(255, 232, 165, 0.18) 50%,
    rgba(255, 255, 255, 0.2) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.48);
  backdrop-filter: blur(4px) brightness(1.24) saturate(1.5);
  -webkit-backdrop-filter: blur(4px) brightness(1.24) saturate(1.5);
  box-shadow:
    inset 0 2px 2px rgba(255, 255, 255, 0.92),
    inset 0 -2px 3px rgba(255, 255, 255, 0.36),
    inset 0 0 18px rgba(255, 255, 255, 0.18),
    0 12px 30px rgba(0, 0, 0, 0.48),
    0 0 20px rgba(255, 240, 190, 0.28);
}

.mobile-bottom-nav a,
.mobile-bottom-nav button {
  position: relative;
  z-index: 2;
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: 50px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(242, 245, 243, 0.74);
  padding: 4px 6px;
  cursor: pointer;
  transition:
    transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
    color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.mobile-bottom-nav a .icon,
.mobile-bottom-nav button .icon {
  width: 19px;
  height: 19px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mobile-bottom-nav a.is-droplet-over,
.mobile-bottom-nav button.is-droplet-over,
.mobile-bottom-nav a[aria-current="page"] {
  color: #fff8e2;
  font-weight: 700;
}

.mobile-bottom-nav a.is-droplet-over .icon,
.mobile-bottom-nav button.is-droplet-over .icon {
  transform: scale(1.1) translateY(-1px);
}

.mobile-bottom-nav:not(.liquid-glass-dock) a.active,
.mobile-bottom-nav:not(.liquid-glass-dock) button.active,
.mobile-bottom-nav:not(.liquid-glass-dock) a[aria-current="page"] {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.28) 0%,
    rgba(240, 196, 108, 0.16) 55%,
    rgba(255, 255, 255, 0.12) 100%
  );
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.58),
    inset 0 -1px 1.5px rgba(255, 255, 255, 0.18),
    0 4px 12px rgba(0, 0, 0, 0.28);
}

.site-footer {
  border-top: 1px solid transparent;
  background:
    radial-gradient(ellipse 65% 90% at 50% 0%, rgba(240, 196, 108, 0.08), transparent 70%) padding-box,
    linear-gradient(180deg, #131f1b 0%, #0b120f 100%) padding-box,
    linear-gradient(90deg, transparent, rgba(240, 196, 108, 0.42), transparent) border-box;
  color: var(--text-secondary);
  font-size: 0.86rem;
}

.footer-shell {
  padding-top: 40px;
  padding-bottom: 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 28px 64px;
  align-items: center;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-self: start;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
}

.footer-brand img {
  display: block;
  width: clamp(112px, 24vw, 138px);
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

.footer-nav-col,
.footer-community-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-col-title {
  margin: 0 0 12px;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-gold);
}

.footer-link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  min-height: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
}

.footer-link-list a {
  display: inline-flex;
  align-items: center;
  height: 32px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  line-height: 1;
  transition: color 0.18s ease;
}

.footer-link-list a:hover {
  color: var(--accent-gold-strong);
}

.footer-qq-link {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.18s ease, transform 0.18s ease;
}

.footer-qq-link:hover {
  color: var(--accent-gold-strong);
  transform: translateY(-1px);
}

.footer-qq-logo {
  display: block;
  width: 122px;
  height: 32px;
}

.footer-bottom {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  flex-wrap: wrap;
}

.footer-copy,
.footer-meta {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Toast 提示 */
.toast-container {
  position: fixed;
  top: 84px;
  right: 20px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast-msg {
  padding: 12px 18px;
  border-radius: var(--radius-md);
  background: #1b2c27;
  border: 1px solid var(--accent-gold);
  color: var(--text-primary);
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
}

/* 响应式断点适配 (Tablet & Mobile) */
@media (min-width: 1101px) {
  .hero-section {
    align-items: flex-start;
    padding-top: calc(var(--header-height) + clamp(192px, 24svh, 250px));
  }
}

@media (max-width: 1023px) {
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .crafting-layout,
  .donate-layout {
    grid-template-columns: 1fr;
  }
  .store-section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .shop-world-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .shop-world-tabs {
    width: 100%;
  }
  .shop-world-tab {
    flex: 1 1 auto;
    justify-content: space-between;
  }
  .donate-tiers-panel,
  .donate-checkout {
    padding: 22px 20px;
  }
  .donate-custom-amount {
    flex-direction: column;
    align-items: stretch;
  }
  .donate-amount-wrap {
    width: 100%;
  }
  .craft-search-results {
    max-height: 280px;
  }
  .craft-empty {
    min-height: 176px;
  }
}

@media (max-width: 1100px) {
  :root {
    --bottom-nav-height: calc(86px + env(safe-area-inset-bottom));
  }

  body:not(.craft-fullscreen-page) {
    padding-bottom: 0;
  }
  .site-footer {
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }
  .footer-shell {
    padding-top: 32px;
    padding-bottom: 18px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }
  .footer-brand-col,
  .footer-nav-col,
  .footer-community-col {
    align-items: center;
    justify-self: center;
  }
  .footer-link-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 18px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    margin-top: 24px;
  }
  .hero-section {
    min-height: 100svh;
    align-items: flex-start;
    padding-top: calc(var(--header-height) + 190px);
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }
  .nav-links,
  .header-account {
    display: none;
  }
  .mobile-bottom-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .mobile-bottom-nav > * {
    min-width: 0;
    padding-inline: 2px;
  }
  #mobile-account-label {
    max-width: 100%;
  }
}

@media (max-width: 767px) {
  :root {
    --header-height: 62px;
  }
  .container {
    padding: 0 16px;
  }
  .header-inner {
    padding: 0 14px;
  }
  .brand-logo {
    height: 38px;
  }
  .hero-section {
    padding: calc(var(--header-height) + 136px) 0 calc(96px + env(safe-area-inset-bottom));
  }
  .hero-controls {
    margin-bottom: 12px;
  }
  .hero-title {
    font-size: clamp(1.65rem, 7vw, 2.6rem);
    margin-bottom: 10px;
  }
  .hero-worlds {
    margin-top: 18px;
  }
  .worlds-grid {
    gap: 8px;
  }
  .danmaku-stage {
    top: calc(var(--header-height) + 10px);
    height: 112px;
  }
  .danmaku-item {
    top: calc(4px + 36px * var(--lane));
    padding: 4px 10px;
    font-size: 0.78rem;
  }
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  .tree-child-col {
    padding: 14px 6px 0;
  }
}

/* 树状与横向步骤互斥显隐最高优先级保障 */
#craft-tree-controls[hidden],
#craft-steps-controls[hidden],
#craft-tree-viewport[hidden],
#craft-steps-viewport[hidden],
#craft-usages-section[hidden],
#craft-toolbar[hidden],
#craft-float-zoom[hidden],
#btn-reopen-sidebar[hidden],
#craft-sidebar-backdrop[hidden],
#modal-craft-usages[hidden] {
  display: none !important;
}

/* ==========================================================================
   全屏无限画布工作台布局 (Craft Fullscreen Canvas Workspace)
   ========================================================================== */
body.craft-fullscreen-page {
  overflow: hidden;
  height: 100dvh;
  padding-top: 0;
}

.craft-workspace {
  position: relative;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  background: #0c1411;
}

.craft-canvas-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* 全屏树状视口 */
.craft-fullscreen-page .craft-tree-viewport {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none !important;
  border: none;
  border-radius: 0;
  padding: 0;
  background:
    radial-gradient(ellipse at 58% 42%, rgba(240, 196, 108, 0.08), transparent 56%),
    radial-gradient(circle, rgba(193, 216, 197, 0.14) 1px, transparent 1px) center / 24px 24px,
    #0d1613;
  scrollbar-width: thin;
  scrollbar-color: rgba(240, 196, 108, 0.25) transparent;
}

.craft-fullscreen-page .craft-tree-viewport:not(:has(.craft-tree-stage)) {
  overflow: hidden;
  cursor: default;
}

.craft-fullscreen-page .craft-tree-viewport:has(.craft-tree-stage) {
  max-height: none !important;
  cursor: grab;
  overflow: auto;
}

.craft-fullscreen-page .craft-tree-viewport.is-panning,
.craft-fullscreen-page .craft-tree-viewport.is-panning * {
  cursor: grabbing;
}

.craft-fullscreen-page .craft-tree-stage {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-width: max-content;
  min-height: max-content;
  /* 四周留出充足无限画布拖拽缓冲区，确保居中时不被顶部工具条遮挡 */
  padding: 400px 48vw 400px;
}

/* 全屏横向步骤视口 */
.craft-fullscreen-page .craft-steps-viewport {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none !important;
  overflow-y: auto;
  padding: 0;
  background:
    radial-gradient(ellipse at 55% 20%, rgba(240, 196, 108, 0.06), transparent 55%),
    radial-gradient(circle, rgba(193, 216, 197, 0.11) 1px, transparent 1px) center / 24px 24px,
    #0d1613;
}

.craft-steps-inner {
  padding: calc(var(--header-height) + 172px) 24px 64px;
}

.craft-steps-inner .guide-recipes-list {
  max-width: 980px;
  margin: 0 auto;
}

/* 物品列表弹窗背景遮罩 (仅覆盖合成百科工作台区域，不遮挡顶部导航栏) */
.craft-sidebar-backdrop {
  position: absolute;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: rgba(6, 11, 9, 0.52);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* 物品选择浮窗 (固定在合成百科页面导航栏下方的最顶部，自适应屏幕可用高度) */
.craft-float-sidebar {
  position: absolute;
  top: calc(var(--header-height) + 14px);
  left: 50%;
  bottom: calc(var(--bottom-nav-height, 0px) + 18px);
  transform: translateX(-50%) scale(1);
  width: min(calc(100% - 32px), 680px);
  height: auto;
  z-index: 50;
  display: flex;
  flex-direction: column;
  padding: 20px 22px;
  border-radius: 24px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.13) 0%,
    rgba(19, 32, 26, 0.72) 42%,
    rgba(12, 21, 18, 0.84) 100%
  );
  backdrop-filter: blur(28px) saturate(190%) brightness(1.04);
  -webkit-backdrop-filter: blur(28px) saturate(190%) brightness(1.04);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.58),
    inset 0 1.5px 1px rgba(255, 255, 255, 0.36),
    inset 0 -1px 1.5px rgba(255, 255, 255, 0.08);
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.18s ease;
}

.craft-workspace.is-sidebar-collapsed .craft-float-sidebar {
  transform: translate(-50%, -12px) scale(0.96);
  opacity: 0;
  pointer-events: none;
}

.craft-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.craft-sidebar-header h2 {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--accent-gold-strong);
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.craft-panel-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(20, 32, 28, 0.42) 100%);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.42), 0 4px 12px rgba(0, 0, 0, 0.28);
  color: rgba(242, 245, 243, 0.9);
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.craft-panel-toggle:hover {
  border-color: rgba(255, 240, 195, 0.55);
  color: #fff6dc;
  transform: scale(1.06);
}

.craft-panel-toggle:active {
  transform: scale(0.92);
}

/* 液态玻璃一体化联想搜索栏 */
.craft-glass-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px 6px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(14, 24, 20, 0.46) 100%);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.28),
    0 8px 24px rgba(0, 0, 0, 0.22);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.craft-glass-search:focus-within {
  border-color: rgba(240, 196, 108, 0.68);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(18, 30, 25, 0.56) 100%);
  box-shadow:
    0 0 0 3px rgba(240, 196, 108, 0.15),
    inset 0 1px 1px rgba(255, 255, 255, 0.36),
    0 10px 26px rgba(0, 0, 0, 0.28);
}

.craft-glass-search-icon {
  color: rgba(240, 196, 108, 0.85);
  flex-shrink: 0;
}

.craft-glass-search-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 0.94rem;
  padding: 6px 0;
  outline: none;
}

.craft-glass-search-input::placeholder {
  color: rgba(210, 222, 214, 0.52);
}

.craft-glass-search-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.12);
  color: rgba(245, 248, 246, 0.85);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.craft-glass-search-clear:hover {
  background: rgba(240, 196, 108, 0.22);
  border-color: rgba(240, 196, 108, 0.55);
  color: #fff6dc;
  transform: scale(1.06);
}

.craft-glass-search-clear[hidden] {
  display: none;
}

.craft-float-sidebar .craft-search-results {
  flex: 1;
  min-height: 0;
  max-height: none;
  margin-top: 14px;
}

.craft-float-sidebar .craft-results-items {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.craft-float-sidebar .craft-item-row {
  padding: 8px 11px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.craft-float-sidebar .craft-item-row:hover,
.craft-float-sidebar .craft-item-row.active {
  border-color: rgba(240, 196, 108, 0.52);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(240, 196, 108, 0.14));
  transform: translateY(-1px);
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.craft-float-sidebar .craft-item-row img {
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* 弹窗收起且未选中物品时的左上角纯图标 LiquidGlass 唤醒按钮 */
.craft-float-reopen-btn {
  position: absolute;
  top: calc(var(--header-height) + 12px);
  left: 16px;
  z-index: 26;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, rgba(24, 38, 33, 0.36) 55%, rgba(255, 255, 255, 0.09) 100%);
  backdrop-filter: blur(20px) saturate(190%) brightness(1.08);
  -webkit-backdrop-filter: blur(20px) saturate(190%) brightness(1.08);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff6dc;
  cursor: pointer;
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.48),
    inset 0 1.5px 1px rgba(255, 255, 255, 0.52),
    inset 0 -1.5px 2px rgba(255, 255, 255, 0.16);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.craft-workspace.has-selection .craft-float-reopen-btn {
  display: none !important;
}

.craft-float-reopen-btn:hover {
  border-color: rgba(255, 240, 195, 0.62);
  transform: translateY(-1px) scale(1.05);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.56),
    inset 0 1.5px 1.5px rgba(255, 255, 255, 0.72),
    inset 0 -1.5px 2px rgba(255, 255, 255, 0.22);
}

.craft-float-reopen-btn:active {
  transform: scale(0.93);
}

/* 顶部悬浮控制条 (全屏居中对齐 高透明 LiquidGlass 磨砂底座) */
.craft-float-toolbar {
  position: absolute;
  top: calc(var(--header-height) + 12px);
  left: 16px;
  right: 16px;
  max-width: 1240px;
  margin: 0 auto;
  z-index: 22;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(16, 26, 22, 0.24) 55%, rgba(255, 255, 255, 0.06) 100%);
  backdrop-filter: blur(24px) saturate(195%) brightness(1.08);
  -webkit-backdrop-filter: blur(24px) saturate(195%) brightness(1.08);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.42),
    inset 0 1.5px 1px rgba(255, 255, 255, 0.46),
    inset 0 -1px 1.5px rgba(255, 255, 255, 0.14);
}

.craft-float-toolbar .craft-toolbar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.craft-toolbar-lead {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 1 auto;
}

.craft-toolbar-list-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.craft-toolbar-list-btn:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  background: rgba(240, 196, 108, 0.08);
}

.craft-toolbar-list-btn:active {
  transform: scale(0.94);
}

.craft-toolbar-list-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.craft-history-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.craft-toolbar-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 右下角悬浮 LiquidGlass 缩放与居中控制条 */
.craft-float-zoom {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 24;
  padding: 5px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(24, 38, 33, 0.34) 55%, rgba(255, 255, 255, 0.08) 100%);
  backdrop-filter: blur(20px) saturate(190%) brightness(1.08);
  -webkit-backdrop-filter: blur(20px) saturate(190%) brightness(1.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.5),
    inset 0 1.5px 1px rgba(255, 255, 255, 0.48),
    inset 0 -1.5px 2px rgba(255, 255, 255, 0.14);
}

.craft-float-zoom .craft-zoom-controls {
  border: none;
  background: transparent;
  padding: 0;
}

.craft-float-zoom .craft-zoom-controls button {
  border-radius: 999px;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.craft-float-zoom .craft-zoom-controls button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.craft-float-zoom .craft-zoom-controls button:active:not(:disabled) {
  transform: scale(0.92);
}

.craft-center-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid rgba(255, 255, 255, 0.14) !important;
  margin-left: 2px;
  padding-left: 10px !important;
}

/* 左下角悬浮 LiquidGlass 后续产物弹窗触发按钮 */
.craft-float-usages-btn {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 24;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(24, 38, 33, 0.34) 55%, rgba(255, 255, 255, 0.08) 100%);
  backdrop-filter: blur(20px) saturate(190%) brightness(1.08);
  -webkit-backdrop-filter: blur(20px) saturate(190%) brightness(1.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(248, 250, 248, 0.94);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.48),
    inset 0 1.5px 1px rgba(255, 255, 255, 0.48),
    inset 0 -1.5px 2px rgba(255, 255, 255, 0.14);
  transition: all 0.24s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.craft-float-usages-btn:hover:not(:disabled) {
  border-color: rgba(255, 240, 195, 0.6);
  transform: translateY(-1px) scale(1.03);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.56),
    inset 0 1.5px 1.5px rgba(255, 255, 255, 0.68);
}

.craft-float-usages-btn:active:not(:disabled) {
  transform: scale(0.94);
}

.craft-usages-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-gold);
  box-shadow: 0 0 8px rgba(240, 196, 108, 0.65);
}

.craft-usages-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #2b2311;
  background: #efd166;
}

/* 可合成后续产物大弹窗样式 */
#modal-craft-usages {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(6, 11, 9, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-craft-usages-dialog {
  position: relative;
  width: min(94vw, 720px);
  max-height: 80dvh;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(155deg, rgba(24, 38, 32, 0.96), rgba(14, 24, 20, 0.98));
  border: 1px solid rgba(240, 196, 108, 0.26);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65);
}

.modal-craft-usages-dialog .modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-right: 40px;
}

.modal-craft-usages-dialog .modal-header h3 {
  font-size: 1.12rem;
  color: var(--accent-gold-strong);
  margin: 0;
}

.craft-usages-modal-sub {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.craft-usages-filter-box .input-field {
  width: 100%;
  padding: 9px 14px;
  font-size: 0.88rem;
}

.modal-craft-export-dialog {
  width: min(92vw, 440px);
  gap: 18px;
  padding: 24px;
}

.craft-export-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.craft-export-title-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(240, 196, 108, 0.12);
  border: 1px solid rgba(240, 196, 108, 0.28);
  color: var(--accent-gold);
  flex-shrink: 0;
}

.craft-export-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.craft-export-option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.craft-export-option-row:hover {
  border-color: rgba(240, 196, 108, 0.45);
  background: rgba(240, 196, 108, 0.06);
}

.craft-export-option-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.craft-export-option-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(82, 209, 160, 0.12);
  border: 1px solid rgba(82, 209, 160, 0.28);
  color: var(--accent-jade);
  flex-shrink: 0;
}

.craft-export-option-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.craft-export-option-text strong {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-primary);
}

.craft-export-option-text small {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* 自定义暗金滑动开关 */
.craft-export-switch {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
  margin: 0;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.craft-export-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #f2f5f3;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease;
}

.craft-export-switch:checked {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
}

.craft-export-switch:checked::after {
  transform: translateX(20px);
  background: #1c1608;
}

.craft-export-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-top: 2px;
}

.craft-export-modal-actions .btn {
  width: 100%;
  padding: 10px 16px;
}

.craft-usages-modal-grid {
  flex: 1;
  min-height: 120px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
  padding-right: 4px;
}

.craft-usages-modal-grid .usage-card {
  padding: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.craft-usages-modal-grid .usage-card:hover {
  background: rgba(240, 196, 108, 0.1);
  border-color: rgba(240, 196, 108, 0.4);
}

/* 响应式：平板与手机端全屏工作台适配 */
@media (max-width: 1100px) {
  .craft-workspace {
    height: 100dvh;
  }

  /* 手机端物品列表同样置于导航栏下方页面顶部，自适应屏幕至底部导航上方 */
  .craft-float-sidebar {
    position: absolute;
    top: calc(var(--header-height) + 10px);
    left: 50%;
    bottom: calc(var(--bottom-nav-height, 0px) + 14px);
    transform: translateX(-50%) scale(1);
    width: calc(100% - 24px);
    max-width: 480px;
    height: auto;
    z-index: 50;
    box-shadow: 0 20px 56px rgba(0, 0, 0, 0.68);
  }

  .craft-workspace.is-sidebar-collapsed .craft-float-sidebar {
    transform: translate(-50%, -12px) scale(0.96);
    opacity: 0;
    pointer-events: none;
  }

  .craft-float-sidebar .craft-results-items {
    grid-template-columns: 1fr;
  }

  /* 当未选物品工具条隐藏时，显示顶部纯图标唤醒按钮；选定物品后改由工具条内置图标按钮唤出 */
  .craft-float-reopen-btn {
    top: calc(var(--header-height) + 10px);
    left: 10px;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 999px;
    z-index: 26;
  }

  .craft-workspace.has-selection .craft-float-reopen-btn {
    display: none !important;
  }

  .craft-toolbar-list-btn {
    display: inline-flex;
    width: 34px;
    height: 34px;
    border-radius: 999px;
  }

  /* 手机端超紧凑顶部控制条，绝不压挡根节点 */
  .craft-float-toolbar {
    left: 10px !important;
    right: 10px;
    top: calc(var(--header-height) + 10px);
    padding: 8px 10px;
    gap: 6px;
    border-radius: 16px;
  }

  .craft-float-toolbar .craft-toolbar-top {
    gap: 6px;
  }

  .craft-float-toolbar .selected-object-banner {
    gap: 8px;
    min-width: 0;
    flex: 1;
  }

  .craft-float-toolbar .selected-object-banner img {
    width: 30px;
    height: 30px;
  }

  .craft-float-toolbar .selected-object-banner h2 {
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .craft-float-toolbar .selected-object-banner p {
    display: none;
  }

  .craft-float-toolbar .craft-tabs-group {
    width: 100%;
    justify-content: space-between;
    gap: 6px;
  }

  .craft-float-toolbar .guide-mode-tab,
  .craft-float-toolbar .craft-view-tab {
    padding: 4px 10px;
    font-size: 0.76rem;
  }

  .craft-toolbar-actions {
    padding-top: 6px;
  }

  .craft-depth-label {
    display: none;
  }

  .craft-float-toolbar .depth-selector {
    gap: 6px;
    width: 100%;
  }

  .craft-float-toolbar .depth-selector select {
    flex: 1;
    min-width: 0;
    padding: 4px 8px !important;
    font-size: 0.76rem;
  }

  .craft-float-toolbar .depth-selector .btn {
    padding: 5px 10px;
    font-size: 0.75rem;
  }

  .craft-steps-inner {
    padding-left: 14px;
    padding-right: 14px;
    padding-bottom: calc(104px + env(safe-area-inset-bottom));
  }

  .craft-float-usages-btn {
    left: 12px !important;
    bottom: calc(86px + env(safe-area-inset-bottom));
    height: 40px;
    padding: 0 12px;
    font-size: 0.8rem;
  }

  .craft-float-zoom {
    right: 12px;
    bottom: calc(86px + env(safe-area-inset-bottom));
    padding: 3px;
  }

  .craft-float-zoom .craft-zoom-controls button {
    height: 32px;
    min-width: 30px;
    font-size: 0.84rem;
  }

  .craft-fullscreen-page .craft-tree-stage {
    padding: 360px 35vw 320px;
  }

  .modal-craft-usages-dialog {
    width: calc(100vw - 20px);
    max-height: 78dvh;
    padding: 16px;
    border-radius: 18px;
  }

  .craft-usages-modal-grid {
    grid-template-columns: 1fr;
  }
}
