/**
 * ==================== main.less ====================
 * 样式入口 - 编译后生成 main.css
 * 最后更新：2026-05-11
 * 
 * 编译命令：lessc main.less main.css
 */
/**
 * ==================== base.less ====================
 * 基础层 - 变量、混入、重置、组件、布局、页面
 * 最后更新：2026-05-11
 * 
 * 包含内容：
 * 1. 全局变量（间距、圆角、字体、颜色）
 * 2. 通用混入（flex、卡片、按钮交互、滚动条隐藏）
 * 3. 重置样式
 * 4. 响应式适配
 * 5. 组件（按钮、卡片、弹窗、进度条、toast、滚动条）
 * 6. 布局（导航、悬浮菜单、装备栏）
 * 7. 页面（登录、注册）
 * 8. 通用动画（fadeIn、slideUp、pulse）
 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}
html {
  font-size: 12px;
  background-color: var(--bg-primary);
  scroll-behavior: smooth;
  height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: var(--font-regular);
  line-height: var(--line-normal);
  letter-spacing: var(--letter-normal);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  transition: all var(--transition-normal);
  overflow-x: hidden;
  overflow-y: auto;
  height: 100%;
}
body.modal-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}
.num,
.stat-value,
.jade-value,
.price-value,
.capacity-value,
.capacity-max,
.capacity-percent,
.page-info,
.count-input,
.threshold-input,
.level-input,
.sell-input,
.expand-count-input {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}
.game-container {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.page-module {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.module-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.scroll-area {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}
.scroll-area::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
  background: transparent;
}
.hidden {
  display: none !important;
}
.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}
.flex {
  display: flex;
}
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.flex-column {
  display: flex;
  flex-direction: column;
}
.flex-wrap {
  display: flex;
  flex-wrap: wrap;
}
.gap-4 {
  gap: 4px;
}
.gap-8 {
  gap: 8px;
}
.gap-12 {
  gap: 12px;
}
.gap-16 {
  gap: 16px;
}
.gap-20 {
  gap: 20px;
}
@supports (padding-top: env(safe-area-inset-top)) {
  body {
    padding-top: env(safe-area-inset-top);
  }
}
@media (min-width: 391px) {
  body {
    background: var(--bg-primary);
  }
}
@media (min-width: 391px) and (max-width: 1024px) {
  body {
    background: var(--bg-primary);
  }
  .game-container {
    max-width: 100%;
    width: 100%;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
  }
  .nav-module {
    border-radius: 0;
    max-width: 520px !important;
  }
  .nav-container {
    max-width: 520px !important;
    margin: 0 auto;
  }
  .cultivate-module,
  .battle-module,
  .bag-module,
  .craft-module,
  .sect-module,
  .shop-module,
  .dungeon-module,
  .beast-module,
  .artifact-module,
  .daoist-module,
  .market-module,
  .rank-module,
  .talent-module,
  .enhance-module,
  .card-raid-module,
  .pk-arena-module,
  .lottery-module,
  .title-module,
  .sponsor-module,
  .heir-module {
    width: 100%;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }
}
@media (min-width: 1025px) {
  body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--bg-primary);
  }
  .game-container {
    max-width: 460px;
    width: 100%;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    overflow: hidden;
  }
  .nav-module {
    max-width: 460px !important;
    border-radius: 0 0 12px 12px;
  }
  .nav-container {
    max-width: 460px !important;
    border-radius: 0 0 12px 12px;
  }
}
@media all and (display-mode: standalone) {
  body {
    background-color: var(--bg-primary);
  }
}
@media (max-width: 320px) {
  :root {
    font-size: 12px;
  }
  .login-container,
  .popup-content {
    padding: 16px;
  }
}
.btn-base {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 8px;
  font-weight: var(--font-medium);
  letter-spacing: var(--letter-wide);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}
.btn-base:active {
  transform: scale(0.96);
}
.btn-base:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 8px;
  font-weight: var(--font-medium);
  letter-spacing: var(--letter-wide);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
  background: var(--grad-accent);
  color: var(--bg-primary);
  font-weight: var(--font-bold);
  box-shadow: 0 0 0 1px var(--accent-line), var(--shadow-accent-sm), inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}
.btn-primary:active {
  transform: scale(0.96);
}
.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.btn-primary:hover:not(:disabled) {
  filter: brightness(1.08);
  box-shadow: 0 0 0 1px var(--accent-line), var(--shadow-accent-md), inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}
.btn-success {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 8px;
  font-weight: var(--font-medium);
  letter-spacing: var(--letter-wide);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #13df9b, #10b981, #0c8a60);
  color: white;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}
.btn-success:active {
  transform: scale(0.96);
}
.btn-success:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 8px;
  font-weight: var(--font-medium);
  letter-spacing: var(--letter-wide);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f26a6a, #ef4444, #eb1515);
  color: white;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}
.btn-danger:active {
  transform: scale(0.96);
}
.btn-danger:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.btn-warning {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 8px;
  font-weight: var(--font-medium);
  letter-spacing: var(--letter-wide);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f7ae32, #f59e0b, #c57f08);
  color: white;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}
.btn-warning:active {
  transform: scale(0.96);
}
.btn-warning:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.btn-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 8px;
  font-weight: var(--font-medium);
  letter-spacing: var(--letter-wide);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #629bf8, #3b82f6, #0b63f3);
  color: white;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}
.btn-info:active {
  transform: scale(0.96);
}
.btn-info:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 8px;
  font-weight: var(--font-medium);
  letter-spacing: var(--letter-wide);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.32);
  color: var(--text-secondary);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}
.btn-secondary:active {
  transform: scale(0.96);
}
.btn-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.btn-secondary:hover:not(:disabled) {
  background: rgba(0, 0, 0, 0.5);
  color: var(--accent-primary);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 8px;
  font-weight: var(--font-medium);
  letter-spacing: var(--letter-wide);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}
.btn-ghost:active {
  transform: scale(0.96);
}
.btn-ghost:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.btn-ghost:hover:not(:disabled) {
  border-color: var(--accent-line);
  color: var(--accent-primary);
  background: var(--accent-soft);
}
.btn-sm {
  padding: 4px 12px;
  font-size: 10px;
  min-width: 36px;
  min-height: 32px;
}
.btn-md {
  padding: 8px 16px;
  font-size: 12px;
  min-width: 44px;
  min-height: 36px;
}
.btn-lg {
  padding: 12px 20px;
  font-size: 14px;
  min-width: 52px;
  min-height: 44px;
}
.btn-block {
  width: 100%;
  display: flex;
}
.btn-circle {
  border: none;
  border-radius: 8px;
  font-weight: var(--font-medium);
  letter-spacing: var(--letter-wide);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
  border-radius: 50%;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-circle:active {
  transform: scale(0.96);
}
.btn-circle:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.btn-circle.btn-sm {
  width: 32px;
  height: 32px;
  font-size: 14px;
}
.btn-circle.btn-md {
  width: 40px;
  height: 40px;
  font-size: 16px;
}
.btn-circle.btn-lg {
  width: 48px;
  height: 48px;
  font-size: 18px;
}
.btn-group {
  display: flex;
  gap: 12px;
}
.btn-group.btn-group-vertical {
  flex-direction: column;
}
.btn-group.btn-group-justify > * {
  flex: 1;
}
.card {
  background: var(--grad-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  /* backdrop-filter removed (anti-overheat) */
  transition: all var(--transition-normal);
  position: relative;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: 12px;
}
.card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-line);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.card-simple {
  background: var(--grad-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  /* backdrop-filter removed (anti-overheat) */
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  padding: 12px;
}
.card-container {
  background: var(--bg-card);
  border-radius: 8px;
  /* backdrop-filter removed (anti-overheat) */
  border: 1px solid var(--border-color);
  background-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 4px);
  overflow: hidden;
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}
.card-header .card-icon {
  font-size: 16px;
  flex-shrink: 0;
}
.card-header .card-title {
  font-size: 14px;
  font-weight: bold;
  color: var(--accent-primary);
  text-shadow: 0 0 12px var(--accent-glow);
  flex: 1;
}
.card-header .card-actions {
  flex-shrink: 0;
}
.card-header-noborder {
  justify-content: space-between;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(232, 140, 58, 0.2);
  border-bottom: none;
  margin-bottom: 8px;
  padding-bottom: 0;
}
.card-header-noborder .card-icon {
  font-size: 16px;
  flex-shrink: 0;
}
.card-header-noborder .card-title {
  font-size: 14px;
  font-weight: bold;
  color: var(--accent-primary);
  text-shadow: 0 0 12px var(--accent-glow);
  flex: 1;
}
.card-header-noborder .card-actions {
  flex-shrink: 0;
}
.card-header-noborder .card-icon {
  font-size: 20px;
}
.card-header-noborder .card-title {
  font-size: 14px;
  font-weight: 600;
  color: #e88c3a;
}
.card-body {
  flex: 1;
}
.card-body .card-section {
  margin-bottom: 12px;
}
.card-body .card-section:last-child {
  margin-bottom: 0;
}
.card-body .section-title {
  font-size: 12px;
  color: var(--accent-primary);
  text-shadow: 0 0 10px var(--accent-glow);
  margin-bottom: 8px;
  padding-left: 4px;
  border-left: 3px solid var(--accent-primary);
}
.card-footer {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 12px;
}
.card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 12px;
  border-bottom: 1px solid var(--border-color);
}
.card-row:last-child {
  border-bottom: none;
}
.card-row .row-label {
  color: var(--text-muted);
}
.card-row .row-value {
  color: var(--accent-primary);
  font-weight: bold;
}
.card-row.positive .row-value {
  color: #10b981;
}
.card-row.negative .row-value {
  color: #ef4444;
}
.card-grid {
  display: grid;
  gap: 12px;
}
.card-grid.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.card-grid.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.card-grid.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 375px) {
  .card-grid {
    gap: 8px;
  }
}
.card-stats {
  background: var(--grad-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  /* backdrop-filter removed (anti-overheat) */
  transition: all var(--transition-normal);
  position: relative;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: 12px;
  text-align: center;
}
.card-stats:hover {
  transform: translateY(-2px);
  border-color: var(--accent-line);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.card-stats .stats-value {
  font-size: 20px;
  font-weight: bold;
  color: var(--accent-primary);
  margin: 8px 0;
}
.card-stats .stats-label {
  font-size: 10px;
  color: var(--text-muted);
}
.card-stats .stats-icon {
  font-size: 18px;
  margin-bottom: 8px;
}
.card-info {
  /* backdrop-filter removed (anti-overheat) */
  background: var(--grad-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  /* backdrop-filter removed (anti-overheat) */
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  padding: 12px;
  background: rgba(0, 0, 0, 0.2);
  border-left: 3px solid var(--accent-primary);
}
.card-info .info-title {
  font-size: 12px;
  font-weight: bold;
  color: var(--accent-primary);
  margin-bottom: 4px;
}
.card-info .info-content {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.progress-container {
  background: rgba(0, 0, 0, 0.35);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4), inset 0 -1px 0 rgba(255, 255, 255, 0.04);
  width: 100%;
  height: 8px;
  position: relative;
}
.progress-fill {
  height: 100%;
  background: var(--grad-accent-h);
  border-radius: 8px;
  transition: width 0.3s ease;
  box-shadow: 0 0 8px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  width: 0%;
}
.progress-sm .progress-container {
  height: 4px;
}
.progress-lg .progress-container {
  height: 12px;
}
.progress-with-label .progress-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  font-size: 10px;
  color: var(--text-muted);
}
.progress-with-label .progress-label .progress-value {
  color: var(--accent-primary);
  font-weight: bold;
}
.progress-with-label .progress-container {
  height: 6px;
}
.progress-hp .progress-fill {
  background: linear-gradient(90deg, #ef4444, #f58a8a);
}
.progress-mp .progress-fill {
  background: linear-gradient(90deg, #3b82f6, #84b1f9);
}
.progress-exp .progress-fill {
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
}
.progress-success .progress-fill {
  background: linear-gradient(90deg, #10b981, #29ecac);
}
.progress-warning .progress-fill {
  background: linear-gradient(90deg, #f59e0b, #f8bb54);
}
.progress-animated .progress-fill {
  position: relative;
  overflow: hidden;
}
.progress-animated .progress-fill::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 1.5s infinite;
}
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.78);
  /* backdrop-filter removed (anti-overheat) */
  z-index: 10000;
}
.modal-content {
  position: relative;
  width: 90%;
  max-width: 340px;
  max-height: 80vh;
  overflow-y: auto;
  background: var(--bg-popup);
  border: 1px solid var(--accent-line);
  border-radius: 12px;
  z-index: 10001;
  animation: modalFadeIn 0.2s ease;
  box-shadow: var(--shadow-accent-lg), var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.modal-content::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
  background: transparent;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-secondary);
  background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 3px, rgba(0, 0, 0, 0.03) 3px 4px, transparent 4px 6px);
}
.modal-header .modal-title {
  font-size: 16px;
  font-weight: bold;
  color: var(--accent-bright);
  letter-spacing: 0.1em;
  text-shadow: 0 0 10px var(--accent-glow);
}
.modal-header .modal-close {
  width: 32px;
  height: 32px;
  background: #22323a;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s;
}
.modal-header .modal-close:hover {
  background: var(--color-danger);
  border-color: var(--color-danger);
  color: white;
}
.modal-header .modal-close:active {
  transform: scale(0.96);
}
.modal-body {
  padding: 16px 20px;
}
.modal-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 12px;
}
.modal-footer.single {
  justify-content: center;
}
.modal-footer.single button {
  min-width: 120px;
}
.modal-footer.double button {
  flex: 1;
}
.modal-btn {
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.modal-btn:active {
  transform: scale(0.96);
}
.modal-btn.btn-confirm {
  background: linear-gradient(90deg, #10b981, #0c8a60);
  color: white;
}
.modal-btn.btn-cancel {
  background: rgba(0, 0, 0, 0.3);
  color: var(--text-secondary);
}
.modal-btn.btn-cancel:hover {
  background: rgba(0, 0, 0, 0.5);
  color: var(--accent-primary);
}
.modal-btn.btn-danger {
  background: linear-gradient(90deg, #ef4444, #eb1515);
  color: white;
}
.modal-confirm {
  position: relative;
  width: 90%;
  max-width: 340px;
  max-height: 80vh;
  overflow-y: auto;
  background: var(--bg-popup);
  border: 1px solid var(--accent-line);
  border-radius: 12px;
  z-index: 10001;
  animation: modalFadeIn 0.2s ease;
  box-shadow: var(--shadow-accent-lg), var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  max-width: 280px;
  text-align: center;
}
.modal-confirm::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
  background: transparent;
}
.modal-confirm::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
  background: transparent;
}
.modal-confirm .confirm-icon {
  font-size: 48px;
  margin-bottom: 16px;
}
.modal-confirm .confirm-title {
  font-size: 18px;
  font-weight: bold;
  color: var(--accent-primary);
  margin-bottom: 12px;
}
.modal-confirm .confirm-message {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.5;
}
.modal-large {
  position: relative;
  width: 90%;
  max-width: 340px;
  max-height: 80vh;
  overflow-y: auto;
  background: var(--bg-popup);
  border: 1px solid var(--accent-line);
  border-radius: 12px;
  z-index: 10001;
  animation: modalFadeIn 0.2s ease;
  box-shadow: var(--shadow-accent-lg), var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  max-width: 400px;
  max-height: 85vh;
}
.modal-large::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
  background: transparent;
}
.modal-large::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
  background: transparent;
}
.modal-bottom {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.78);
  /* backdrop-filter removed (anti-overheat) */
  z-index: 10000;
  align-items: flex-end;
}
.modal-bottom .modal-content {
  width: 100%;
  max-width: none;
  border-radius: 12px 12px 0 0;
  animation: modalSlideUp 0.3s ease;
}
.item-detail-popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}
.item-detail-popup.hidden {
  display: none;
}
.item-detail-popup .popup-mask {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  /* backdrop-filter removed (anti-overheat) */
  z-index: 10000;
}
.item-detail-popup .popup-content {
  position: relative;
  width: 90%;
  max-width: 350px;
  max-height: 80vh;
  overflow-y: auto;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 2px solid #e88c3a;
  border-radius: 12px;
  padding: 16px;
  z-index: 10001;
  color: #d9a36a;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.item-detail-popup .popup-content::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
  background: transparent;
}
.item-detail-popup .popup-content.quality-gray {
  border-color: #808080;
}
.item-detail-popup .popup-content.quality-white {
  border-color: #f5f5f5;
}
.item-detail-popup .popup-content.quality-green {
  border-color: #4ade80;
}
.item-detail-popup .popup-content.quality-blue {
  border-color: #60a5fa;
}
.item-detail-popup .popup-content.quality-purple {
  border-color: #c084fc;
}
.item-detail-popup .popup-content.quality-orange {
  border-color: #fb923c;
}
.item-detail-popup .popup-content.quality-red {
  border-color: #ef4444;
}
.item-detail-popup .popup-content.quality-rainbow {
  position: relative;
  border-color: transparent;
  box-shadow: 0 0 14px rgba(255, 107, 255, 0.45);
}
.item-detail-popup .popup-content.quality-rainbow::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}
.item-detail-popup .rainbow-text {
  background: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
@keyframes rainbow-border-rotate {
  0% {
    filter: hue-rotate(0deg);
  }
  100% {
    filter: hue-rotate(360deg);
  }
}
@keyframes rainbow-text-shift {
  0% {
    filter: hue-rotate(0deg);
  }
  100% {
    filter: hue-rotate(360deg);
  }
}
.item-detail-popup .popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(232, 140, 58, 0.2);
  margin-bottom: 12px;
}
.item-detail-popup .popup-header .header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.item-detail-popup .popup-header .item-name {
  font-size: 18px;
  font-weight: bold;
  color: #e88c3a;
}
.item-detail-popup .popup-header .item-level {
  font-size: 12px;
  color: #9ca3af;
}
.item-detail-popup .popup-header .sell-price {
  color: #f59e0b;
}
.item-detail-popup .popup-header .price-value {
  font-weight: bold;
}
.item-detail-popup .popup-body {
  flex: 1;
}
.item-detail-popup .popup-body .item-desc {
  font-size: 12px;
  color: #d9a36a;
  line-height: 1.5;
  margin-bottom: 12px;
  padding: 8px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
}
.item-detail-popup .popup-body .item-slot {
  font-size: 12px;
  color: #9ca3af;
  margin-bottom: 16px;
  padding-left: 8px;
}
.item-detail-popup .popup-body .stat-section {
  margin-bottom: 16px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
}
.item-detail-popup .popup-body .stat-section .section-title {
  font-size: 12px;
  color: #e88c3a;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(232, 140, 58, 0.2);
  padding-bottom: 4px;
}
.item-detail-popup .popup-body .stat-section .stat-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 12px;
}
.item-detail-popup .popup-body .stat-section .stat-row .stat-name {
  color: #9ca3af;
}
.item-detail-popup .popup-body .stat-section .stat-row .stat-value {
  color: #d9a36a;
  font-weight: bold;
}
.item-detail-popup .popup-body .stat-section .stat-row .stat-compare {
  margin-left: 12px;
  font-size: 10px;
}
.item-detail-popup .popup-body .stat-section .stat-row .stat-compare.up {
  color: #10b981;
}
.item-detail-popup .popup-body .stat-section .stat-row .stat-compare.up::after {
  content: "↑";
  margin-left: 2px;
}
.item-detail-popup .popup-body .stat-section .stat-row .stat-compare.down {
  color: #ef4444;
}
.item-detail-popup .popup-body .stat-section .stat-row .stat-compare.down::after {
  content: "↓";
  margin-left: 2px;
}
.item-detail-popup .popup-body .special-section.hidden {
  display: none;
}
.item-detail-popup .popup-footer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(232, 140, 58, 0.2);
}
.item-detail-popup .popup-footer .equip-buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}
.item-detail-popup .popup-footer .equip-buttons .btn-equip {
  flex: 1;
  padding: 8px;
  background: linear-gradient(90deg, #10b981, #0c8a60);
  border: none;
  border-radius: 8px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.item-detail-popup .popup-footer .equip-buttons .btn-equip:active {
  transform: scale(0.96);
}
.item-detail-popup .popup-footer .equip-buttons .btn-equip:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.item-detail-popup .popup-footer .equip-buttons .btn-decompose {
  flex: 1;
  padding: 8px;
  background: linear-gradient(90deg, #8b5cf6, #6d28d9);
  border: none;
  border-radius: 8px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.item-detail-popup .popup-footer .equip-buttons .btn-decompose:active {
  transform: scale(0.96);
}
.item-detail-popup .popup-footer .equip-buttons .btn-decompose:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.item-detail-popup .popup-footer .equip-buttons .btn-decompose:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.item-detail-popup .popup-footer .sell-section {
  margin-bottom: 12px;
}
.item-detail-popup .popup-footer .sell-section .sell-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.item-detail-popup .popup-footer .sell-section .sell-controls span {
  font-size: 12px;
  color: #9ca3af;
}
.item-detail-popup .popup-footer .sell-section .sell-controls .sell-input {
  width: 70px;
  padding: 8px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(232, 140, 58, 0.2);
  border-radius: 8px;
  color: #d9a36a;
  text-align: center;
}
.item-detail-popup .popup-footer .sell-section .sell-controls .btn-max,
.item-detail-popup .popup-footer .sell-section .sell-controls .btn-sell {
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.3);
  color: #d9a36a;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.item-detail-popup .popup-footer .sell-section .sell-controls .btn-max:active,
.item-detail-popup .popup-footer .sell-section .sell-controls .btn-sell:active {
  transform: scale(0.96);
}
.item-detail-popup .popup-footer .sell-section .sell-controls .btn-max:disabled,
.item-detail-popup .popup-footer .sell-section .sell-controls .btn-sell:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.item-detail-popup .popup-footer .btn-close {
  width: 100%;
  padding: 8px;
  background: rgba(0, 0, 0, 0.3);
  color: #d9a36a;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.item-detail-popup .popup-footer .btn-close:active {
  transform: scale(0.96);
}
.item-detail-popup .popup-footer .btn-close:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.item-compare-popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20000;
}
.item-compare-popup .popup-mask {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  /* backdrop-filter removed (anti-overheat) */
}
.item-compare-popup .popup-content {
  position: relative;
  width: 90%;
  max-width: 340px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 2px solid #e88c3a;
  border-radius: 12px;
  padding: 20px;
  z-index: 20001;
}
.item-compare-popup .popup-content .compare-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(232, 140, 58, 0.2);
}
.item-compare-popup .popup-content .compare-header .old-title {
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  flex: 1;
  color: #9ca3af;
}
.item-compare-popup .popup-content .compare-header .new-title {
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  flex: 1;
  color: #e88c3a;
}
.item-compare-popup .popup-content .compare-header .vs {
  font-size: 12px;
  color: #ef4444;
  padding: 0 12px;
  font-weight: bold;
}
.item-compare-popup .popup-content .compare-stats {
  max-height: 400px;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.item-compare-popup .popup-content .compare-stats::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
  background: transparent;
}
.item-compare-popup .popup-content .compare-stats .stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(232, 140, 58, 0.1);
}
.item-compare-popup .popup-content .compare-stats .stat-row .stat-name {
  font-size: 12px;
  color: #9ca3af;
  min-width: 70px;
}
.item-compare-popup .popup-content .compare-stats .stat-row .old-value {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: #9ca3af;
}
.item-compare-popup .popup-content .compare-stats .stat-row .new-value {
  flex: 1;
  text-align: center;
  font-size: 12px;
  font-weight: bold;
  color: #e88c3a;
}
.item-compare-popup .popup-content .compare-stats .stat-row .diff {
  min-width: 55px;
  text-align: right;
  font-size: 10px;
  font-weight: bold;
}
.item-compare-popup .popup-content .compare-stats .stat-row .diff.up {
  color: #10b981;
}
.item-compare-popup .popup-content .compare-stats .stat-row .diff.up::after {
  content: "↑";
  margin-left: 2px;
}
.item-compare-popup .popup-content .compare-stats .stat-row .diff.down {
  color: #ef4444;
}
.item-compare-popup .popup-content .compare-stats .stat-row .diff.down::after {
  content: "↓";
  margin-left: 2px;
}
.item-compare-popup .popup-content .compare-footer {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(232, 140, 58, 0.2);
}
.item-compare-popup .popup-content .compare-footer button {
  flex: 1;
  padding: 8px;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.item-compare-popup .popup-content .compare-footer button:active {
  transform: scale(0.96);
}
.item-compare-popup .popup-content .compare-footer button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.item-compare-popup .popup-content .compare-footer button.btn-equip {
  background: linear-gradient(90deg, #10b981, #0c8a60);
  color: white;
}
.item-compare-popup .popup-content .compare-footer button.btn-cancel {
  background: rgba(0, 0, 0, 0.3);
  color: #9ca3af;
}
.global-toast-container {
  position: fixed;
  top: max(12px, env(safe-area-inset-top, 12px));
  right: max(12px, env(safe-area-inset-right, 12px));
  z-index: 100000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  pointer-events: none;
  max-width: 260px;
}
.toast-item {
  background: rgba(0, 0, 0, 0.85);
  /* backdrop-filter removed (anti-overheat) */
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-md);
  animation: itemSlideIn 0.2s ease;
  pointer-events: none;
  font-weight: 500;
  max-width: 240px;
  border-left: 3px solid var(--accent-primary);
}
.toast-item .toast-icon {
  font-size: 14px;
  flex-shrink: 0;
}
.toast-item .toast-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.toast-item .toast-count {
  background: rgba(255, 255, 255, 0.2);
  padding: 0 6px;
  border-radius: 8px;
  font-weight: bold;
  flex-shrink: 0;
}
.toast-message {
  background: rgba(0, 0, 0, 0.9);
  /* backdrop-filter removed (anti-overheat) */
  border-radius: 12px;
  border-left-width: 4px;
  border-left-style: solid;
  padding: 8px 16px;
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-md);
  max-width: 280px;
  min-width: 180px;
  animation: toastSlideIn 0.3s ease;
}
.toast-message.toast-exit {
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.toast-message .toast-icon {
  font-size: 14px;
  flex-shrink: 0;
}
.toast-message .toast-text {
  flex: 1;
  line-height: 1.4;
}
.toast-success {
  border-left-color: #10b981;
}
.toast-success .toast-icon {
  color: #10b981;
}
.toast-warning {
  border-left-color: #f59e0b;
}
.toast-warning .toast-icon {
  color: #f59e0b;
}
.toast-error {
  border-left-color: #ef4444;
}
.toast-error .toast-icon {
  color: #ef4444;
}
.toast-info {
  border-left-color: #3b82f6;
}
.toast-info .toast-icon {
  color: #3b82f6;
}
html,
body {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
  background: transparent;
}
.scroll-area,
.bag-scroll-content,
.craft-scroll-content,
.sect-scroll-content,
.shop-scroll-content,
.sponsor-scroll-content,
.dungeon-scroll-content,
.cultivate-scroll-content,
.map-list,
.dungeon-map-list,
.modal-content,
.popup-content,
.technique-popup .popup-content,
.sect-disciple-popup .popup-content,
.craft-batch-popup .popup-content,
.battle-log-container,
.theme-submenu,
[class*="-scroll-"],
[class*="list"],
[class*="content"] {
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}
.scroll-area::-webkit-scrollbar,
.bag-scroll-content::-webkit-scrollbar,
.craft-scroll-content::-webkit-scrollbar,
.sect-scroll-content::-webkit-scrollbar,
.shop-scroll-content::-webkit-scrollbar,
.sponsor-scroll-content::-webkit-scrollbar,
.dungeon-scroll-content::-webkit-scrollbar,
.cultivate-scroll-content::-webkit-scrollbar,
.map-list::-webkit-scrollbar,
.dungeon-map-list::-webkit-scrollbar,
.modal-content::-webkit-scrollbar,
.popup-content::-webkit-scrollbar,
.technique-popup .popup-content::-webkit-scrollbar,
.sect-disciple-popup .popup-content::-webkit-scrollbar,
.craft-batch-popup .popup-content::-webkit-scrollbar,
.battle-log-container::-webkit-scrollbar,
.theme-submenu::-webkit-scrollbar,
[class*="-scroll-"]::-webkit-scrollbar,
[class*="list"]::-webkit-scrollbar,
[class*="content"]::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
  background: transparent;
}
* {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
*::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}
.scroll-area,
[class*="-scroll-"],
[class*="list"],
[class*="content"] {
  overflow-y: auto;
  overflow-x: hidden;
}
.page-module > div > h2,
.page-module > div > div > h2,
.battle-header h2,
.bag-fixed-header h2,
.craft-fixed-header h2,
.sect-header h2 {
  font-size: 18px;
  font-weight: bold;
  color: var(--accent-primary);
  text-shadow: 0 0 16px var(--accent-glow);
  text-align: center;
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-highlight);
}
.nav-module {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 9999 !important;
  width: 100%;
  max-width: 390px;
  min-width: 320px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  /* backdrop-filter removed (anti-overheat) */
}
.nav-module.hidden {
  display: none !important;
}
.nav-container {
  width: 100%;
  max-width: 390px;
  background: var(--bg-secondary);
  border-radius: 0;
  border-top: 1px solid var(--border-highlight);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2), 0 -1px 0 var(--border-highlight);
  overflow: hidden;
  position: relative;
}
.nav-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
}
.nav-list {
  height: 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
  width: 100%;
  background: inherit;
}
.nav-item {
  flex: 1;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  min-width: 44px;
  min-height: 44px;
}
.nav-item::before {
  margin-right: 4px;
  font-size: 18px;
  transition: transform var(--transition-fast);
}
.nav-item:hover {
  color: var(--accent-primary);
  transform: translateY(-2px);
}
.nav-item:hover::before {
  transform: scale(1.05);
}
.nav-item:active {
  transform: scale(0.96);
}
.nav-item.nav-item-active {
  color: var(--accent-primary);
  font-weight: bold;
}
.nav-item.nav-item-active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 34px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  border-radius: 1px;
  box-shadow: 0 0 8px var(--accent-glow);
  animation: slideIn 0.2s ease;
}
.nav-item[data-id="1"]::before {
  content: "⚙️";
}
.nav-item[data-id="2"]::before {
  content: "🗡️";
}
.nav-item[data-id="3"]::before {
  content: "💍";
}
.nav-item[data-id="4"]::before {
  content: "🔨";
}
.nav-item[data-id="5"]::before {
  content: "🏯";
}
.fab-menu {
  position: fixed;
  z-index: 99999;
  cursor: grab;
  user-select: none;
  transition: none;
  filter: drop-shadow(var(--shadow-md));
  touch-action: none;
  bottom: calc(80px + env(safe-area-inset-bottom));
  right: calc(16px + env(safe-area-inset-right));
}
.fab-menu.dragging {
  cursor: grabbing;
  transition: none;
  z-index: 99999;
}
.fab-main {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
  position: relative;
  z-index: 99999;
}
.fab-menu-list {
  position: absolute;
  top: 55px;
  right: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s cubic-bezier(0.34, 1.2, 0.64, 1);
  pointer-events: none;
  background: transparent;
  padding: 8px;
  margin: 0;
}
.fab-menu-list.expanded {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.fab-item {
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  position: relative;
  /* backdrop-filter removed (anti-overheat) */
}
.fab-item:hover {
  background: var(--accent-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.fab-item:hover .fab-item-icon {
  color: var(--bg-primary);
}
.fab-item:hover .fab-item-label {
  color: var(--bg-primary);
}
.fab-item:active {
  transform: scale(0.96);
}
.fab-item .fab-item-icon {
  font-size: 19px;
  color: var(--accent-primary);
  pointer-events: none;
  transition: all 0.2s;
}
.fab-item .fab-item-label {
  font-size: 8px;
  font-weight: 500;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.2;
  pointer-events: none;
  max-width: 44px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.2s;
}
.fab-item .fab-item-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 10px;
  height: 10px;
  background: #ef4444;
  border-radius: 50%;
  border: 1.5px solid var(--bg-secondary);
  animation: badgePulse 1s ease-in-out infinite;
}
.fab-item .fab-item-badge.hidden {
  display: none;
}
.fab-item.theme-item {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
}
.fab-item.theme-item .fab-item-icon {
  color: white;
}
.fab-item.theme-item .fab-item-label {
  color: white;
}
.fab-item.theme-item:hover {
  background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
  transform: translateY(-4px);
}
.theme-submenu {
  position: absolute;
  top: 70px;
  right: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2px;
  /* backdrop-filter removed (anti-overheat) */
  box-shadow: var(--shadow-lg);
  z-index: 5001;
  animation: fadeIn 0.2s ease;
}
.theme-submenu .theme-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  margin: 4px 0;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.theme-submenu .theme-option:hover {
  background: rgba(0, 0, 0, 0.2);
}
.theme-submenu .theme-option.active {
  background: var(--accent-primary);
  color: var(--bg-primary);
}
.theme-submenu .theme-option.active .theme-color {
  border: 2px solid white;
}
.theme-submenu .theme-option .theme-color {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  transition: transform var(--transition-fast);
}
.theme-submenu .theme-option .theme-name {
  font-size: 12px;
}
.theme-color-dark {
  background: #0f172a;
}
.theme-color-light {
  background: #f8fafc;
  border: 1px solid #ddd;
}
.theme-color-purple {
  background: #121a21;
}
.theme-color-gold {
  background: #2d2a1a;
}
.equipment-container {
  width: 100%;
  padding: 8px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  margin-bottom: 5px;
  box-sizing: border-box;
}
.equipment-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  gap: 8px;
}
.equipment-slot {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  padding: 4px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.login-module {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #10161c;
}
.login-module .installGuideContainer {
  display: flex;
  justify-content: center;
  gap: 10px;
  pointer-events: none;
}
.login-module .installGuideContainer .installGuideBtn {
  background: rgba(0, 0, 0, 0.75);
  /* backdrop-filter removed (anti-overheat) */
  border: 1px solid var(--accent-line);
  border-radius: 8px;
  padding: 10px 24px;
  color: var(--accent-primary);
  font-size: 13px;
  cursor: pointer;
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.login-module .installGuideContainer .apk-btn {
  border-color: #34d399;
  color: #34d399;
}
.login-module .login-container {
  width: 100%;
  max-width: 390px;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px;
  margin: 0 auto;
}
.login-module .login-container .login-logo {
  font-size: clamp(60px, 20vw, 80px);
  opacity: 0;
  animation: swordFlyTop 0.5s ease-out forwards;
}
.login-module .login-container .login-title {
  font-size: clamp(24px, 8vw, 30px);
  text-shadow: 0 0 8px var(--accent-glow);
  margin-bottom: clamp(30px, 10vw, 40px);
  text-align: center;
  color: #fff;
  opacity: 0;
  animation: swordFlyTop 0.5s ease-out 0.05s forwards;
}
.login-module .login-container .login-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.login-module .login-container .login-form .form-item {
  width: 100%;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.login-module .login-container .login-form .form-item:first-of-type {
  opacity: 0;
  animation: swordFlyLeft 0.5s ease-out 0.1s forwards;
}
.login-module .login-container .login-form .form-item:first-of-type::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(232, 140, 58, 0.4), transparent);
  pointer-events: none;
  animation: swordGlow 0.6s ease-out 0.1s forwards;
}
.login-module .login-container .login-form .form-item:last-of-type {
  opacity: 0;
  animation: swordFlyRight 0.5s ease-out 0.2s forwards;
}
.login-module .login-container .login-form .form-item:last-of-type::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(232, 140, 58, 0.4), transparent);
  pointer-events: none;
  animation: swordGlow 0.6s ease-out 0.2s forwards;
}
.login-module .login-container .login-form .form-label {
  height: 34px;
  line-height: 34px;
  font-size: clamp(12px, 4vw, 14px);
  margin-bottom: 6px;
  margin-right: 6px;
  color: #fff;
}
.login-module .login-container .login-form .form-label .symbol {
  height: 34px;
  line-height: 34px;
  font-size: clamp(12px, 4vw, 14px);
  margin-right: 6px;
  display: inline-block;
}
.login-module .login-container .login-form .input {
  height: clamp(36px, 10vw, 40px);
  border-radius: 8px;
  padding: 0 12px;
  font-size: clamp(12px, 4vw, 14px);
}
.login-module .login-container .login-form .login-tips {
  width: 100%;
  font-size: clamp(10px, 3.5vw, 12px);
  text-align: center;
  margin-bottom: 20px;
  min-height: 15px;
  color: #ccc;
  opacity: 0;
  animation: swordFlyBottom 0.4s ease-out 0.25s forwards;
}
.login-module .login-container .login-form .btn {
  width: 100%;
  height: clamp(40px, 11vw, 44px);
  border-radius: 12px;
  margin-bottom: 12px;
  font-size: clamp(12px, 4vw, 14px);
  font-weight: 500;
}
.login-module .login-container .login-form .btn:active {
  background: #22323a;
  transform: scale(0.98);
}
.login-module .login-container .login-form .register-btn {
  opacity: 0;
  animation: swordFlyLeft 0.5s ease-out 0.3s forwards;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid #3e7c8c;
  color: #8fc3d1;
  border-radius: 8px;
}
.login-module .login-container .login-form .login-btn {
  opacity: 0;
  animation: swordFlyLeft 0.5s ease-out 0.35s forwards;
  background: linear-gradient(90deg, #3e7c8c, #e88c3a);
  color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(232, 140, 58, 0.35);
}
.login-module .symbol {
  font-size: clamp(12px, 4vw, 14px);
  margin-right: 6px;
  display: inline-block;
}
.login-qq {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border: 1px solid rgba(62, 124, 140, 0.45);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.4);
  color: #9fc3cd;
  font-size: 11px;
  letter-spacing: 1px;
  white-space: nowrap;
}
.login-qq .qq-icon {
  font-size: 12px;
}
.login-qq .qq-label {
  opacity: 0.85;
}
.login-qq .qq-num {
  color: #e88c3a;
  font-family: "Consolas", "Courier New", monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-shadow: 0 0 6px rgba(232, 140, 58, 0.45);
}
.register-popup {
  height: 100%;
  width: 100%;
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
}
.register-popup .popup-content {
  width: 100%;
  max-width: 390px;
  height: auto;
  margin: 0 auto;
  color: #ccc;
  padding: clamp(16px, 5vw, 20px);
  z-index: 100;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.35)), linear-gradient(180deg, rgba(22, 28, 34, 0.97), rgba(13, 17, 22, 0.97));
  border: 1px solid var(--border-color);
  border-top: 2px solid var(--accent-primary);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
}
.register-popup .popup-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.4;
  background: linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 8px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 2px 8px, /* 右上 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 8px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 2px 8px, /* 左下 */ linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 8px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 2px 8px, /* 右下 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 8px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 2px 8px;
  background-repeat: no-repeat;
}
.register-popup .popup-content h1:first-child {
  font-size: clamp(60px, 20vw, 80px);
  text-align: center;
  opacity: 0;
  animation: swordFlyTop 0.5s ease-out forwards;
}
.register-popup .popup-content .popup-title {
  font-size: clamp(20px, 6vw, 24px);
  color: var(--accent-bright);
  text-shadow: 0 0 8px var(--accent-glow);
  text-align: center;
  margin-bottom: clamp(16px, 5vw, 20px);
  opacity: 0;
  animation: swordFlyTop 0.5s ease-out 0.05s forwards;
}
.register-popup .popup-content .register-form {
  width: 100%;
}
.register-popup .popup-content .form-item {
  width: 100%;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.register-popup .popup-content .form-item:first-of-type {
  opacity: 0;
  animation: swordFlyLeft 0.5s ease-out 0.1s forwards;
}
.register-popup .popup-content .form-item:first-of-type::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(232, 140, 58, 0.4), transparent);
  pointer-events: none;
  animation: swordGlow 0.6s ease-out 0.1s forwards;
}
.register-popup .popup-content .form-item:nth-of-type(2) {
  opacity: 0;
  animation: swordFlyRight 0.5s ease-out 0.15s forwards;
}
.register-popup .popup-content .form-item:nth-of-type(2)::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(232, 140, 58, 0.4), transparent);
  pointer-events: none;
  animation: swordGlow 0.6s ease-out 0.15s forwards;
}
.register-popup .popup-content .form-item:nth-of-type(3) {
  opacity: 0;
  animation: swordFlyLeft 0.5s ease-out 0.2s forwards;
}
.register-popup .popup-content .form-item:nth-of-type(3)::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(232, 140, 58, 0.4), transparent);
  pointer-events: none;
  animation: swordGlow 0.6s ease-out 0.2s forwards;
}
.register-popup .popup-content .form-label {
  font-size: clamp(12px, 4vw, 14px);
  height: 34px;
  margin-bottom: 6px;
  color: #fff;
}
.register-popup .popup-content .input {
  width: 100%;
  height: clamp(36px, 10vw, 40px);
  border: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.35);
  border-radius: 8px;
  padding: 0 12px;
  color: #fff;
  font-size: clamp(12px, 4vw, 14px);
}
.register-popup .popup-content .input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 1px var(--accent-line);
}
.register-popup .popup-content .reg-tips {
  width: 100%;
  font-size: clamp(10px, 3.5vw, 12px);
  color: #e63946;
  text-align: center;
  margin-bottom: 16px;
  min-height: 15px;
  opacity: 0;
  animation: swordFlyBottom 0.4s ease-out 0.25s forwards;
}
.register-popup .popup-content .popup-btn-group {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.register-popup .popup-content .popup-btn-group .btn {
  flex: 1;
  height: clamp(40px, 11vw, 44px);
  border-radius: 8px;
  font-size: clamp(12px, 4vw, 14px);
  font-weight: 500;
}
.register-popup .popup-content .popup-btn-group .btn:active {
  background: #22323a;
  transform: scale(0.98);
}
.register-popup .popup-content .popup-btn-group .reg-confirm {
  opacity: 0;
  animation: swordFlyLeft 0.5s ease-out 0.3s forwards;
  background: linear-gradient(90deg, #3e7c8c, #e88c3a);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(232, 140, 58, 0.35);
}
.register-popup .popup-content .popup-btn-group .reg-cancel {
  opacity: 0;
  animation: swordFlyRight 0.5s ease-out 0.35s forwards;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid #3e7c8c;
  color: #8fc3d1;
}
@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes modalSlideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(232, 140, 58, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(232, 140, 58, 0);
  }
}
@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}
@keyframes toastSlideIn {
  0% {
    opacity: 0;
    transform: translateX(40px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes itemSlideIn {
  0% {
    opacity: 0;
    transform: translateX(20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes slideIn {
  from {
    width: 0;
    opacity: 0;
  }
  to {
    width: 30px;
    opacity: 1;
  }
}
@keyframes badgePulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.8;
  }
}
@keyframes swordFlyLeft {
  0% {
    opacity: 0;
    transform: translateX(-120px) rotate(-15deg);
  }
  55% {
    opacity: 1;
    transform: translateX(8px) rotate(2deg);
  }
  75% {
    transform: translateX(-2px) rotate(0deg);
  }
  100% {
    opacity: 1;
    transform: translateX(0) rotate(0deg);
  }
}
@keyframes swordFlyRight {
  0% {
    opacity: 0;
    transform: translateX(120px) rotate(15deg);
  }
  55% {
    opacity: 1;
    transform: translateX(-8px) rotate(-2deg);
  }
  75% {
    transform: translateX(2px) rotate(0deg);
  }
  100% {
    opacity: 1;
    transform: translateX(0) rotate(0deg);
  }
}
@keyframes swordFlyTop {
  0% {
    opacity: 0;
    transform: translateY(-80px) rotate(-10deg);
  }
  55% {
    opacity: 1;
    transform: translateY(8px) rotate(2deg);
  }
  75% {
    transform: translateY(-2px) rotate(0deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
  }
}
@keyframes swordFlyBottom {
  0% {
    opacity: 0;
    transform: translateY(80px) rotate(10deg);
  }
  55% {
    opacity: 1;
    transform: translateY(-6px) rotate(-2deg);
  }
  75% {
    transform: translateY(2px) rotate(0deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
  }
}
@keyframes swordGlow {
  0% {
    left: -100%;
    opacity: 0.6;
  }
  50% {
    opacity: 0.8;
  }
  100% {
    left: 200%;
    opacity: 0;
  }
}
.task-entry-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(232, 140, 58, 0.35);
  border-radius: 12px;
  margin: 12px 16px;
  padding: 12px 16px;
  cursor: pointer;
  transition: all var(--transition-fast);
  /* backdrop-filter removed (anti-overheat) */
}
.task-entry-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.task-entry-card .task-entry-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.task-entry-card .task-entry-header .task-entry-icon {
  font-size: 16px;
}
.task-entry-card .task-entry-header .task-entry-title {
  font-size: 12px;
  font-weight: bold;
  color: var(--accent-primary);
  flex: 1;
}
.task-entry-card .task-entry-header .task-entry-arrow {
  font-size: 10px;
  color: var(--text-muted);
}
.task-entry-card .task-entry-body .task-entry-name {
  font-size: 14px;
  font-weight: bold;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.task-entry-card .task-entry-body .task-entry-desc {
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.task-entry-card .task-entry-body .task-entry-progress {
  margin: 8px 0;
}
.task-entry-card .task-entry-body .task-entry-progress .task-progress-bar {
  background: rgba(0, 0, 0, 0.35);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4), inset 0 -1px 0 rgba(255, 255, 255, 0.04);
  height: 6px;
  margin-bottom: 4px;
}
.task-entry-card .task-entry-body .task-entry-progress .task-progress-bar .task-progress-fill {
  background: var(--grad-accent-h);
  border-radius: 8px;
  transition: width 0.3s ease;
  box-shadow: 0 0 8px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #10b981, #29ecac);
}
.task-entry-card .task-entry-body .task-entry-progress .task-progress-text {
  font-size: 10px;
  color: var(--text-muted);
  text-align: right;
}
.task-entry-card .task-entry-body .task-entry-completed {
  font-size: 10px;
  color: #10b981;
  margin: 8px 0;
}
.task-entry-card .task-entry-body .task-entry-reward {
  font-size: 10px;
  color: var(--accent-primary);
  margin-top: 4px;
}
.quest-full-panel {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
}
.quest-full-panel .quest-panel-mask {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  /* backdrop-filter removed (anti-overheat) */
}
.quest-full-panel .quest-panel-content {
  position: relative;
  width: 90%;
  max-width: 380px;
  max-height: 85vh;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 2px solid var(--accent-primary);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: modalFadeIn 0.2s ease;
  z-index: 100001;
}
.quest-full-panel .quest-panel-content .quest-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(232, 140, 58, 0.2);
  background: rgba(0, 0, 0, 0.3);
}
.quest-full-panel .quest-panel-content .quest-panel-header .quest-panel-title {
  font-size: 16px;
  font-weight: bold;
  color: var(--accent-primary);
}
.quest-full-panel .quest-panel-content .quest-panel-header .quest-panel-close {
  width: 32px;
  height: 32px;
  background: rgba(0, 0, 0, 0.3);
  border: none;
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 18px;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.quest-full-panel .quest-panel-content .quest-panel-header .quest-panel-close:hover {
  background: #ef4444;
  color: white;
}
.quest-full-panel .quest-panel-content .quest-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.quest-full-panel .quest-panel-content .quest-panel-body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
  background: transparent;
}
.quest-tabs {
  display: flex;
  gap: 0;
  margin: 0 0 16px 0;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.quest-tabs .quest-tab {
  flex: 1;
  padding: 8px 12px;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.quest-tabs .quest-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}
.quest-tabs .quest-tab.active {
  color: #1f2937;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}
.quest-tabs .quest-tab .tab-badge {
  display: inline-block;
  margin-left: 4px;
  padding: 0 8px;
  background: rgba(239, 68, 68, 0.8);
  color: white;
  font-size: 10px;
  border-radius: 8px;
  font-weight: 700;
  line-height: 18px;
  min-width: 18px;
  text-align: center;
}
.quest-tabs .quest-tab .tab-badge.hidden {
  display: none;
}
.quest-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}
.quest-list .quest-item {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  padding: 12px;
  border-left: 3px solid var(--border-color);
}
.quest-list .quest-item.active {
  border-left-color: var(--accent-primary);
  background: rgba(232, 140, 58, 0.05);
}
.quest-list .quest-item.completed {
  border-left-color: #10b981;
  opacity: 0.8;
}
.quest-list .quest-item.claimable {
  border-left-color: #f59e0b;
  background: rgba(245, 158, 11, 0.08);
}
.quest-list .quest-item.pending {
  border-left-color: #8b5cf6;
  background: rgba(139, 92, 246, 0.05);
  opacity: 0.85;
}
.quest-list .quest-item.locked {
  border-left-color: var(--text-muted);
  opacity: 0.5;
}
.quest-list .quest-item .quest-item-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.quest-list .quest-item .quest-item-header .quest-item-icon {
  font-size: 14px;
}
.quest-list .quest-item .quest-item-header .quest-item-name {
  font-size: 12px;
  font-weight: bold;
  color: var(--text-primary);
  flex: 1;
}
.quest-list .quest-item .quest-item-header .quest-item-status {
  font-size: 10px;
  padding: 2px 8px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  white-space: nowrap;
}
.quest-list .quest-item .quest-item-header .quest-item-status.claimable {
  color: #f59e0b;
  animation: pulse-gold 1.5s ease-in-out infinite;
}
.quest-list .quest-item .quest-item-header .quest-item-status.completed {
  color: #10b981;
}
.quest-list .quest-item .quest-item-header .quest-item-status.active {
  color: var(--accent-primary);
}
.quest-list .quest-item .quest-item-header .quest-item-status.pending {
  color: #8b5cf6;
}
.quest-list .quest-item .quest-item-desc {
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 8px;
  line-height: 1.4;
}
.quest-list .quest-item .quest-item-progress {
  margin: 8px 0;
}
.quest-list .quest-item .quest-item-progress .quest-progress-bar {
  background: rgba(0, 0, 0, 0.35);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4), inset 0 -1px 0 rgba(255, 255, 255, 0.04);
  height: 6px;
  margin-bottom: 4px;
}
.quest-list .quest-item .quest-item-progress .quest-progress-bar .quest-progress-fill {
  background: var(--grad-accent-h);
  border-radius: 8px;
  transition: width 0.3s ease;
  box-shadow: 0 0 8px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  height: 100%;
  width: 0%;
}
.quest-list .quest-item .quest-item-progress .quest-progress-text {
  font-size: 10px;
  color: var(--text-muted);
  text-align: right;
}
.quest-list .quest-item .quest-item-locked-tip {
  font-size: 10px;
  color: var(--text-muted);
  margin: 8px 0;
  font-style: italic;
}
.quest-list .quest-item .quest-item-reward {
  font-size: 10px;
  color: var(--accent-primary);
  margin-top: 4px;
}
.quest-list .quest-item .quest-item-actions {
  margin-top: 8px;
}
.quest-claim-btn,
.daily-quest-claim-btn {
  display: inline-block;
  width: 100%;
  padding: 8px 16px;
  background: linear-gradient(135deg, #f59e0b, #e88c3a);
  border: none;
  border-radius: 8px;
  color: #1f2937;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
  margin-top: 8px;
}
.quest-claim-btn:hover:not(:disabled),
.daily-quest-claim-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.5);
}
.quest-claim-btn:active:not(:disabled),
.daily-quest-claim-btn:active:not(:disabled) {
  transform: scale(0.96);
}
.quest-claim-btn:disabled,
.daily-quest-claim-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}
.daily-quest-section .daily-quest-title {
  font-size: 14px;
  font-weight: bold;
  color: var(--accent-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.daily-quest-section .daily-quest-title .daily-quest-count {
  font-size: 10px;
  padding: 2px 8px;
  background: rgba(232, 140, 58, 0.15);
  border-radius: 8px;
  color: #f59e0b;
  font-weight: normal;
}
.daily-quest-section .daily-quest-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.daily-quest-section .daily-quest-item {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  padding: 12px;
  border-left: 3px solid transparent;
}
.daily-quest-section .daily-quest-item.completed {
  border-left-color: #f59e0b;
  background: rgba(245, 158, 11, 0.05);
}
.daily-quest-section .daily-quest-item.claimed {
  border-left-color: #10b981;
  opacity: 0.7;
}
.daily-quest-section .daily-quest-item .daily-quest-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.daily-quest-section .daily-quest-item .daily-quest-header .daily-quest-icon {
  font-size: 16px;
}
.daily-quest-section .daily-quest-item .daily-quest-header .daily-quest-name {
  font-size: 12px;
  font-weight: bold;
  color: var(--text-primary);
  flex: 1;
}
.daily-quest-section .daily-quest-item .daily-quest-header .daily-quest-status {
  font-size: 10px;
  padding: 2px 8px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  white-space: nowrap;
}
.daily-quest-section .daily-quest-item .daily-quest-header .daily-quest-status.claimable {
  color: #f59e0b;
  animation: pulse-gold 1.5s ease-in-out infinite;
}
.daily-quest-section .daily-quest-item .daily-quest-header .daily-quest-status.done {
  color: #10b981;
}
.daily-quest-section .daily-quest-item .daily-quest-header .daily-quest-status.active {
  color: var(--accent-primary);
}
.daily-quest-section .daily-quest-item .daily-quest-desc {
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.daily-quest-section .daily-quest-item .daily-quest-progress {
  margin: 8px 0;
}
.daily-quest-section .daily-quest-item .daily-quest-progress .quest-progress-bar {
  background: rgba(0, 0, 0, 0.35);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4), inset 0 -1px 0 rgba(255, 255, 255, 0.04);
  height: 6px;
  margin-bottom: 4px;
}
.daily-quest-section .daily-quest-item .daily-quest-progress .quest-progress-bar .quest-progress-fill {
  background: var(--grad-accent-h);
  border-radius: 8px;
  transition: width 0.3s ease;
  box-shadow: 0 0 8px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  height: 100%;
  width: 0%;
}
.daily-quest-section .daily-quest-item .daily-quest-progress .quest-progress-text {
  font-size: 10px;
  color: var(--text-muted);
  text-align: right;
}
.daily-quest-section .daily-quest-item .daily-quest-reward {
  font-size: 10px;
  color: var(--accent-primary);
  margin-bottom: 4px;
}
.daily-quest-section .daily-quest-item .daily-quest-tip {
  font-size: 11px;
  color: #f59e0b;
  margin-top: 4px;
}
.daily-quest-section .daily-quest-item .daily-quest-tip.done {
  color: #10b981;
}
.quest-complete-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100002;
}
.quest-complete-modal .quest-complete-mask {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  /* backdrop-filter removed (anti-overheat) */
}
.quest-complete-modal .quest-complete-content {
  position: relative;
  width: 85%;
  max-width: 300px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 2px solid #10b981;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  animation: bounceIn 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 100003;
}
.quest-complete-modal .quest-complete-content .complete-icon {
  font-size: 48px;
  margin-bottom: 12px;
}
.quest-complete-modal .quest-complete-content .complete-title {
  font-size: 16px;
  font-weight: bold;
  color: #10b981;
  margin-bottom: 8px;
}
.quest-complete-modal .quest-complete-content .complete-name {
  font-size: 14px;
  font-weight: bold;
  color: var(--accent-primary);
  margin-bottom: 12px;
}
.quest-complete-modal .quest-complete-content .complete-reward {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.quest-complete-modal .quest-complete-content .complete-btn {
  width: 100%;
  padding: 8px;
  background: linear-gradient(90deg, #10b981, #0c8a60);
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.quest-complete-modal .quest-complete-content .complete-btn:active {
  transform: scale(0.96);
}
.quest-complete-modal .quest-complete-content .complete-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.quest-prologue-modal,
.quest-ending-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100004;
}
.quest-prologue-modal .quest-prologue-mask,
.quest-ending-modal .quest-prologue-mask,
.quest-prologue-modal .quest-ending-mask,
.quest-ending-modal .quest-ending-mask {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  /* backdrop-filter removed (anti-overheat) */
}
.quest-prologue-modal .quest-prologue-content,
.quest-ending-modal .quest-prologue-content,
.quest-prologue-modal .quest-ending-content,
.quest-ending-modal .quest-ending-content {
  position: relative;
  width: 85%;
  max-width: 320px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 2px solid var(--accent-primary);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  animation: bounceIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 100005;
}
.quest-prologue-modal .quest-prologue-content .prologue-avatar,
.quest-ending-modal .quest-prologue-content .prologue-avatar,
.quest-prologue-modal .quest-ending-content .prologue-avatar,
.quest-ending-modal .quest-ending-content .prologue-avatar,
.quest-prologue-modal .quest-prologue-content .ending-icon,
.quest-ending-modal .quest-prologue-content .ending-icon,
.quest-prologue-modal .quest-ending-content .ending-icon,
.quest-ending-modal .quest-ending-content .ending-icon {
  font-size: 64px;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 10px var(--accent-primary));
}
.quest-prologue-modal .quest-prologue-content .prologue-text,
.quest-ending-modal .quest-prologue-content .prologue-text,
.quest-prologue-modal .quest-ending-content .prologue-text,
.quest-ending-modal .quest-ending-content .prologue-text {
  font-size: 12px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.quest-prologue-modal .quest-prologue-content .prologue-text .prologue-highlight,
.quest-ending-modal .quest-prologue-content .prologue-text .prologue-highlight,
.quest-prologue-modal .quest-ending-content .prologue-text .prologue-highlight,
.quest-ending-modal .quest-ending-content .prologue-text .prologue-highlight {
  color: var(--accent-primary);
  font-weight: bold;
}
.quest-prologue-modal .quest-prologue-content .ending-text,
.quest-ending-modal .quest-prologue-content .ending-text,
.quest-prologue-modal .quest-ending-content .ending-text,
.quest-ending-modal .quest-ending-content .ending-text {
  font-size: 12px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.quest-prologue-modal .quest-prologue-content .ending-text .ending-highlight,
.quest-ending-modal .quest-prologue-content .ending-text .ending-highlight,
.quest-prologue-modal .quest-ending-content .ending-text .ending-highlight,
.quest-ending-modal .quest-ending-content .ending-text .ending-highlight {
  color: var(--accent-primary);
  font-weight: bold;
}
.quest-prologue-modal .quest-prologue-content .prologue-btn,
.quest-ending-modal .quest-prologue-content .prologue-btn,
.quest-prologue-modal .quest-ending-content .prologue-btn,
.quest-ending-modal .quest-ending-content .prologue-btn,
.quest-prologue-modal .quest-prologue-content .ending-btn,
.quest-ending-modal .quest-prologue-content .ending-btn,
.quest-prologue-modal .quest-ending-content .ending-btn,
.quest-ending-modal .quest-ending-content .ending-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  border: none;
  border-radius: 8px;
  color: #1f2937;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.quest-prologue-modal .quest-prologue-content .prologue-btn:active,
.quest-ending-modal .quest-prologue-content .prologue-btn:active,
.quest-prologue-modal .quest-ending-content .prologue-btn:active,
.quest-ending-modal .quest-ending-content .prologue-btn:active,
.quest-prologue-modal .quest-prologue-content .ending-btn:active,
.quest-ending-modal .quest-prologue-content .ending-btn:active,
.quest-prologue-modal .quest-ending-content .ending-btn:active,
.quest-ending-modal .quest-ending-content .ending-btn:active {
  transform: scale(0.96);
}
.quest-prologue-modal .quest-prologue-content .prologue-btn:disabled,
.quest-ending-modal .quest-prologue-content .prologue-btn:disabled,
.quest-prologue-modal .quest-ending-content .prologue-btn:disabled,
.quest-ending-modal .quest-ending-content .prologue-btn:disabled,
.quest-prologue-modal .quest-prologue-content .ending-btn:disabled,
.quest-ending-modal .quest-prologue-content .ending-btn:disabled,
.quest-prologue-modal .quest-ending-content .ending-btn:disabled,
.quest-ending-modal .quest-ending-content .ending-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.quest-guide-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100010;
}
.quest-guide-modal .quest-guide-mask {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  /* backdrop-filter removed (anti-overheat) */
}
.quest-guide-modal .quest-guide-content {
  position: relative;
  width: 90%;
  max-width: 340px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 2px solid #e88c3a;
  border-radius: 12px;
  overflow: hidden;
  animation: bounceIn 0.3s ease;
  z-index: 100011;
}
.quest-guide-modal .quest-guide-content .guide-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(232, 140, 58, 0.2);
}
.quest-guide-modal .quest-guide-content .guide-header .guide-icon {
  font-size: 24px;
}
.quest-guide-modal .quest-guide-content .guide-header .guide-title {
  font-size: 16px;
  font-weight: bold;
  color: #e88c3a;
}
.quest-guide-modal .quest-guide-content .guide-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 400px;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.quest-guide-modal .quest-guide-content .guide-body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
  background: transparent;
}
.quest-guide-modal .quest-guide-content .guide-body .guide-item {
  display: flex;
  gap: 10px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
}
.quest-guide-modal .quest-guide-content .guide-body .guide-item .guide-item-icon {
  font-size: 20px;
  flex-shrink: 0;
}
.quest-guide-modal .quest-guide-content .guide-body .guide-item .guide-item-text {
  font-size: 12px;
  color: #e2e8f0;
  line-height: 1.5;
}
.quest-guide-modal .quest-guide-content .guide-body .guide-item .guide-item-text strong {
  color: #e88c3a;
}
.quest-guide-modal .quest-guide-content .guide-confirm-btn {
  width: calc(100% - 32px);
  margin: 0 16px 16px 16px;
  padding: 12px;
  background: linear-gradient(90deg, #f59e0b, #e88c3a);
  border: none;
  border-radius: 8px;
  color: #1f2937;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s;
}
.quest-guide-modal .quest-guide-content .guide-confirm-btn:hover {
  transform: scale(1.02);
}
@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  80% {
    transform: scale(1.02);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes pulse-gold {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}
.quest-guide-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100010;
}
.quest-guide-mask {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  /* backdrop-filter removed (anti-overheat) */
}
.quest-guide-content {
  position: relative;
  width: 90%;
  max-width: 340px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 2px solid #e88c3a;
  border-radius: 12px;
  overflow: hidden;
  animation: bounceIn 0.3s ease;
}
.guide-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(232, 140, 58, 0.2);
}
.guide-icon {
  font-size: 24px;
}
.guide-title {
  font-size: 16px;
  font-weight: bold;
  color: #e88c3a;
}
.guide-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 400px;
  overflow-y: auto;
}
.guide-item {
  display: flex;
  gap: 10px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
}
.guide-item-icon {
  font-size: 20px;
  flex-shrink: 0;
}
.guide-item-text {
  font-size: 12px;
  color: #e2e8f0;
  line-height: 1.5;
}
.guide-item-text strong {
  color: #e88c3a;
}
.guide-confirm-btn {
  width: calc(100% - 32px);
  margin: 0 16px 16px 16px;
  padding: 12px;
  background: linear-gradient(90deg, #f59e0b, #e88c3a);
  border: none;
  border-radius: 8px;
  color: #1f2937;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s;
}
.guide-confirm-btn:hover {
  transform: scale(1.02);
}
/**
 * ==================== themes.less ====================
 * 主题层 - 7个主题（冷冽钢铁工业风 精修版）
 * 最后更新：2026-08-28
 *
 * 核心设计：
 * - 背景色在所有主题中完全统一（深钢蓝黑基调）
 * - 只改变强调色（accent）和点缀元素
 * - 工业风：冷钢蓝主色 + 警示橙辅色 + 数据青点缀
 * - 新增层次化变量：accent-rgb / accent-bright / accent-deep / grad-* / shadow-accent-*
 *   用于实现金属钢面质感、细线高光、工业辉光等高端效果
 *
 * 主题列表：
 * 1. dark（深色/默认）- 冷钢工业（冷钢蓝 + 警示橙）
 * 2. purple（紫色）- 机械紫（机械紫罗兰）
 * 3. gold（金色）- 黄铜工业（黄铜暖金）
 * 4. pink（粉色）- 铁锈粉（铁锈玫瑰）
 * 5. blue（蓝色）- 深海军蓝（深海工业）
 * 6. orange（橙色）- 熔炉橙（熔炉烈焰）
 * 7. cyan（青色）- 数据青（数据光流）
 */
:root {
  --bg-primary: #0d1216;
  --bg-secondary: #141b21;
  --bg-card: rgba(17, 24, 30, 0.85);
  --bg-popup: linear-gradient(135deg, rgba(18, 26, 32, 0.94), rgba(12, 18, 22, 0.97));
  --grad-card: linear-gradient(160deg, rgba(24, 32, 38, 0.85) 0%, rgba(14, 20, 25, 0.88) 100%);
  --grad-jade: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0.14) 100%);
  --border-color: rgba(95, 157, 181, 0.18);
  --color-success: #34d399;
  --color-warning: #e88c3a;
  --color-danger: #ef4444;
  --color-info: #5a9db5;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.42), 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.48), 0 2px 8px rgba(0, 0, 0, 0.32);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.55), 0 4px 16px rgba(0, 0, 0, 0.38);
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  --transition-slow: 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  --font-regular: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --letter-tight: -0.01em;
  --letter-normal: 0;
  --letter-wide: 0.02em;
  --letter-wider: 0.06em;
  --line-tight: 1.3;
  --line-normal: 1.5;
  --line-relaxed: 1.7;
}
[data-theme="dark"] {
  --bg-primary: #0b1015;
  --bg-secondary: #111920;
  --bg-card: rgba(14, 21, 27, 0.9);
  --bg-popup: linear-gradient(135deg, rgba(13, 20, 26, 0.96) 0%, rgba(8, 13, 17, 0.98) 100%);
  --grad-card: linear-gradient(160deg, rgba(18, 27, 34, 0.9) 0%, rgba(9, 14, 19, 0.92) 100%);
  --grad-jade: linear-gradient(135deg, rgba(62, 124, 140, 0.08) 0%, rgba(0, 0, 0, 0.2) 100%);
  --text-primary: #e8f0f4;
  --text-secondary: #9fb3c0;
  --text-muted: #5c6f7a;
  --border-color: rgba(95, 157, 181, 0.28);
  --accent-primary: #3e7c8c;
  --accent-secondary: #e88c3a;
  --accent-rgb: 62, 124, 140;
  --accent-bright: #8fbcc9;
  --accent-deep: #245a68;
  --accent-soft: rgba(62, 124, 140, 0.14);
  --accent-glow: rgba(62, 124, 140, 0.45);
  --accent-line: rgba(62, 124, 140, 0.6);
  --grad-accent: linear-gradient(135deg, #3e7c8c 0%, #e88c3a 100%);
  --grad-accent-h: linear-gradient(90deg, #3e7c8c 0%, #8fbcc9 50%, #e88c3a 100%);
  --border-highlight: rgba(143, 188, 201, 0.5);
  --shadow-accent-sm: 0 2px 8px rgba(62, 124, 140, 0.25);
  --shadow-accent-md: 0 4px 16px rgba(62, 124, 140, 0.3), 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-accent-lg: 0 8px 32px rgba(62, 124, 140, 0.36), 0 2px 8px rgba(0, 0, 0, 0.28);
}
[data-theme="purple"] {
  --text-primary: #eceaf5;
  --text-secondary: #bdb8d8;
  --text-muted: #7d789a;
  --border-color: rgba(138, 134, 201, 0.28);
  --accent-primary: #8a86c9;
  --accent-secondary: #6a66a8;
  --accent-rgb: 138, 134, 201;
  --accent-bright: #b4b0e8;
  --accent-deep: #4a4688;
  --accent-soft: rgba(138, 134, 201, 0.14);
  --accent-glow: rgba(138, 134, 201, 0.4);
  --accent-line: rgba(138, 134, 201, 0.58);
  --grad-accent: linear-gradient(135deg, #8a86c9 0%, #6a66a8 100%);
  --grad-accent-h: linear-gradient(90deg, #8a86c9 0%, #b4b0e8 50%, #6a66a8 100%);
  --border-highlight: rgba(180, 176, 232, 0.48);
  --shadow-accent-sm: 0 2px 8px rgba(138, 134, 201, 0.2);
  --shadow-accent-md: 0 4px 16px rgba(138, 134, 201, 0.26), 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-accent-lg: 0 8px 32px rgba(138, 134, 201, 0.32), 0 2px 8px rgba(0, 0, 0, 0.22);
}
[data-theme="gold"] {
  --text-primary: #f5f0e6;
  --text-secondary: #cfc4a8;
  --text-muted: #908668;
  --border-color: rgba(201, 160, 92, 0.3);
  --accent-primary: #c9a05c;
  --accent-secondary: #a87a38;
  --accent-rgb: 201, 160, 92;
  --accent-bright: #e8c488;
  --accent-deep: #7a5a20;
  --accent-soft: rgba(201, 160, 92, 0.16);
  --accent-glow: rgba(201, 160, 92, 0.42);
  --accent-line: rgba(201, 160, 92, 0.6);
  --grad-accent: linear-gradient(135deg, #c9a05c 0%, #a87a38 100%);
  --grad-accent-h: linear-gradient(90deg, #c9a05c 0%, #e8c488 50%, #a87030 100%);
  --border-highlight: rgba(232, 196, 136, 0.48);
  --shadow-accent-sm: 0 2px 8px rgba(201, 160, 92, 0.24);
  --shadow-accent-md: 0 4px 16px rgba(201, 160, 92, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-accent-lg: 0 8px 32px rgba(201, 160, 92, 0.36), 0 2px 8px rgba(0, 0, 0, 0.22);
}
[data-theme="pink"] {
  --text-primary: #f6eaf0;
  --text-secondary: #cbb4c0;
  --text-muted: #8a7480;
  --border-color: rgba(201, 128, 154, 0.28);
  --accent-primary: #c9809a;
  --accent-secondary: #a86080;
  --accent-rgb: 201, 128, 154;
  --accent-bright: #e8acbe;
  --accent-deep: #7a4060;
  --accent-soft: rgba(201, 128, 154, 0.14);
  --accent-glow: rgba(201, 128, 154, 0.4);
  --accent-line: rgba(201, 128, 154, 0.58);
  --grad-accent: linear-gradient(135deg, #c9809a 0%, #a86080 100%);
  --grad-accent-h: linear-gradient(90deg, #c9809a 0%, #e8acbe 50%, #a85878 100%);
  --border-highlight: rgba(232, 172, 190, 0.48);
  --shadow-accent-sm: 0 2px 8px rgba(201, 128, 154, 0.2);
  --shadow-accent-md: 0 4px 16px rgba(201, 128, 154, 0.26), 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-accent-lg: 0 8px 32px rgba(201, 128, 154, 0.32), 0 2px 8px rgba(0, 0, 0, 0.22);
}
[data-theme="blue"] {
  --text-primary: #e2ecf5;
  --text-secondary: #a8bccf;
  --text-muted: #68849c;
  --border-color: rgba(90, 138, 184, 0.28);
  --accent-primary: #5a8ab8;
  --accent-secondary: #3a6a98;
  --accent-rgb: 90, 138, 184;
  --accent-bright: #90bce0;
  --accent-deep: #285880;
  --accent-soft: rgba(90, 138, 184, 0.14);
  --accent-glow: rgba(90, 138, 184, 0.4);
  --accent-line: rgba(90, 138, 184, 0.58);
  --grad-accent: linear-gradient(135deg, #5a8ab8 0%, #3a6a98 100%);
  --grad-accent-h: linear-gradient(90deg, #5a8ab8 0%, #9cc8e8 50%, #3a6890 100%);
  --border-highlight: rgba(156, 200, 232, 0.48);
  --shadow-accent-sm: 0 2px 8px rgba(90, 138, 184, 0.2);
  --shadow-accent-md: 0 4px 16px rgba(90, 138, 184, 0.26), 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-accent-lg: 0 8px 32px rgba(90, 138, 184, 0.32), 0 2px 8px rgba(0, 0, 0, 0.22);
}
[data-theme="orange"] {
  --text-primary: #f5e8dc;
  --text-secondary: #cdb89e;
  --text-muted: #968060;
  --border-color: rgba(224, 120, 64, 0.3);
  --accent-primary: #e07840;
  --accent-secondary: #b85828;
  --accent-rgb: 224, 120, 64;
  --accent-bright: #f0a078;
  --accent-deep: #883818;
  --accent-soft: rgba(224, 120, 64, 0.16);
  --accent-glow: rgba(224, 120, 64, 0.44);
  --accent-line: rgba(224, 120, 64, 0.6);
  --grad-accent: linear-gradient(135deg, #e07840 0%, #b85828 100%);
  --grad-accent-h: linear-gradient(90deg, #e07840 0%, #f0a888 50%, #b05028 100%);
  --border-highlight: rgba(240, 168, 136, 0.48);
  --shadow-accent-sm: 0 2px 8px rgba(224, 120, 64, 0.24);
  --shadow-accent-md: 0 4px 16px rgba(224, 120, 64, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-accent-lg: 0 8px 32px rgba(224, 120, 64, 0.36), 0 2px 8px rgba(0, 0, 0, 0.22);
}
[data-theme="cyan"] {
  --text-primary: #e0f0ee;
  --text-secondary: #a8c8c4;
  --text-muted: #68908c;
  --border-color: rgba(64, 168, 160, 0.28);
  --accent-primary: #40a8a0;
  --accent-secondary: #208890;
  --accent-rgb: 64, 168, 160;
  --accent-bright: #80e0d4;
  --accent-deep: #186870;
  --accent-soft: rgba(64, 168, 160, 0.14);
  --accent-glow: rgba(64, 168, 160, 0.4);
  --accent-line: rgba(64, 168, 160, 0.58);
  --grad-accent: linear-gradient(135deg, #40a8a0 0%, #208890 100%);
  --grad-accent-h: linear-gradient(90deg, #40a8a0 0%, #80e8dc 50%, #208880 100%);
  --border-highlight: rgba(128, 232, 216, 0.48);
  --shadow-accent-sm: 0 2px 8px rgba(64, 168, 160, 0.2);
  --shadow-accent-md: 0 4px 16px rgba(64, 168, 160, 0.26), 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-accent-lg: 0 8px 32px rgba(64, 168, 160, 0.32), 0 2px 8px rgba(0, 0, 0, 0.22);
}
/**
 * ==================== cultivate.less ====================
 * 修炼模块
 * 最后更新：2026-05-11
 * 
 * 使用的 base.less 组件：
 * - 按钮：.btn-primary, .btn-success, .btn-warning
 * - 进度条：.progress-container .progress-lg（大进度条）
 * - 卡片：.card, .card-simple
 * - 弹窗：.modal-overlay, .modal-content
 * 
 * 覆盖的 base.less 组件：
 * - 无
 * 
 * 模块特有样式：
 * - 玩家信息区域布局
 * - 修炼详情区域布局
 * - 闭关修炼区域布局（含动态背景图）
 * - 异能加成面板布局
 * - 属性面板布局
 * - waveScan 光波动画
 * - floatGlow 飘动动画
 */
@keyframes infoCornerBreath {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 0.28;
  }
}
@keyframes infoScanSweep {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(300%);
  }
}
@keyframes infoDotBlink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}
.panel-hazard {
  position: relative;
  height: 8px;
  margin: 6px 10px;
  background: repeating-linear-gradient(-45deg, rgba(232, 140, 58, 0.55) 0 6px, rgba(18, 20, 24, 0.85) 6px 12px);
  opacity: 0.85;
}
.panel-hazard span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg-primary);
  padding: 0 8px;
  font-family: monospace;
  font-size: 7px;
  letter-spacing: 2px;
  color: rgba(232, 140, 58, 0.75);
  white-space: nowrap;
  line-height: 10px;
}
@keyframes cursorBlink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}
@keyframes fluidFlow {
  0% {
    background-position-x: 0;
  }
  100% {
    background-position-x: 24px;
  }
}
@keyframes standbyPulse {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}
.cultivate-module {
  background: linear-gradient(rgba(62, 124, 140, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(62, 124, 140, 0.05) 1px, transparent 1px), var(--bg-primary);
  background-size: 22px 22px;
  transition: background var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  padding-bottom: 80px;
}
.cultivate-module::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: repeating-linear-gradient(-45deg, rgba(232, 140, 58, 0.8) 0 6px, rgba(20, 22, 26, 0.9) 6px 12px);
  z-index: 60;
  pointer-events: none;
}
.player-info {
  flex-shrink: 0;
  width: 100%;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.012) 0, rgba(255, 255, 255, 0.012) 1px, transparent 1px, transparent 3px), var(--grad-card);
  backdrop-filter: blur(20px);
  padding: 12px 4px 8px;
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition-normal);
  border-radius: 12px 12px 0 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), inset 0 -1px 0 rgba(0, 0, 0, 0.35);
  z-index: 50;
}
@media (max-width: 390px) {
  .player-info {
    padding: 8px 4px;
  }
}
.player-info::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background: var(--grad-accent-h);
  border-radius: 2px;
  opacity: 0.7;
}
.player-info::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: repeating-linear-gradient(-45deg, rgba(232, 140, 58, 0.6) 0 4px, rgba(20, 22, 26, 0.8) 4px 8px);
  opacity: 0.8;
  pointer-events: none;
}
.player-info .cockpit-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  margin-bottom: 8px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.5));
  border: 1px solid var(--border-color);
  border-top: 2px solid var(--accent-primary);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 2px 8px rgba(0, 0, 0, 0.3);
  background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 3px, rgba(0, 0, 0, 0.06) 3px 4px, transparent 4px 6px);
}
.player-info .cockpit-bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-bright), transparent);
  opacity: 0.5;
}
.player-info .cockpit-bar h1 {
  font-size: 14px;
  font-weight: bold;
  color: var(--accent-bright);
  letter-spacing: 0.15em;
  margin: 0;
  text-shadow: 0 0 10px var(--accent-glow);
  color: transparent;
  background: linear-gradient(180deg, #dff1f4, #7fb3bf);
  background-clip: text;
  -webkit-background-clip: text;
}
.player-info .cockpit-bar .cockpit-id {
  font-family: monospace;
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 1px 5px;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.35);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.4);
}
.player-info .cockpit-bar .cockpit-io {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: monospace;
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--color-success);
}
.player-info .cockpit-bar .cockpit-io .io-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 6px var(--color-success);
  animation: cockpitBlink 2s ease-in-out infinite;
}
@keyframes cockpitBlink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}
.player-info .jade-display {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.06)), var(--grad-jade);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), inset 0 -1px 0 rgba(0, 0, 0, 0.2);
  background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 3px, rgba(0, 0, 0, 0.04) 3px 4px, transparent 4px 6px);
  position: relative;
}
.player-info .jade-display .player-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.player-info .jade-display .player-info-grid .info-cell {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  padding: 8px 11px 7px 13px;
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--accent-line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), inset 0 -1px 0 rgba(0, 0, 0, 0.25), 0 2px 8px rgba(0, 0, 0, 0.25);
  background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 3px, rgba(0, 0, 0, 0.03) 3px 4px, transparent 4px 6px);
  overflow: hidden;
  position: relative;
}
.player-info .jade-display .player-info-grid .info-cell::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.5;
  background: linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 7px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 2px 7px, /* 右上 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 7px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 2px 7px, /* 左下 */ linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 7px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 2px 7px, /* 右下 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 7px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 2px 7px;
  background-repeat: no-repeat;
}
.player-info .jade-display .player-info-grid .info-cell::before {
  animation: infoCornerBreath 3.6s ease-in-out infinite;
}
.player-info .jade-display .player-info-grid .info-cell::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 35%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-bright), transparent);
  transform: translateX(-100%);
  animation: infoScanSweep 5s ease-in-out infinite;
}
.player-info .jade-display .player-info-grid .info-cell .cell-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 2px;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player-info .jade-display .player-info-grid .info-cell .cell-label::before {
  content: "";
  flex-shrink: 0;
  width: 4px;
  height: 4px;
  background: var(--accent-primary);
  box-shadow: 0 0 6px var(--accent-glow);
  animation: infoDotBlink 2.8s ease-in-out infinite;
}
.player-info .jade-display .player-info-grid .info-cell .cell-value {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  font-family: "Consolas", "Courier New", monospace;
  font-weight: bold;
  font-size: 15px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-primary);
}
.player-info .jade-display .player-info-grid .cell-name {
  border-left-color: var(--accent-bright);
}
.player-info .jade-display .player-info-grid .cell-name .cell-value {
  font-family: inherit;
  font-size: 16px;
  letter-spacing: 0.02em;
  background: linear-gradient(180deg, #e4f4f7 0%, #9cc9d4 55%, #4a7d8a 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.25)) drop-shadow(0 0 6px rgba(126, 179, 191, 0.45));
}
.player-info .jade-display .player-info-grid .cell-realm {
  border-left-color: #8a86c9;
}
.player-info .jade-display .player-info-grid .cell-realm .cell-value {
  color: #b4b0e8;
  text-shadow: 0 0 6px rgba(138, 134, 201, 0.55), 0 0 14px rgba(138, 134, 201, 0.3);
}
.player-info .jade-display .player-info-grid .cell-jade {
  border-left-color: #e88c3a;
}
.player-info .jade-display .player-info-grid .cell-jade .cell-value {
  color: #f0a45c;
  text-shadow: 0 0 6px rgba(232, 140, 58, 0.55), 0 0 14px rgba(232, 140, 58, 0.3);
}
.player-info .jade-display .player-info-grid .cell-destiny {
  border-left-color: #f59e0b;
}
.player-info .jade-display .player-info-grid .cell-destiny .cell-value {
  color: #fbbf24;
  text-shadow: 0 0 6px rgba(245, 158, 11, 0.4);
}
.player-info .jade-display .player-title-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-basis: 100%;
  width: 100%;
  margin-top: 2px;
}
.player-info .jade-display .player-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 20px;
  background: linear-gradient(135deg, rgba(192, 160, 128, 0.15), rgba(192, 160, 128, 0.05));
  border: 1px solid rgba(192, 160, 128, 0.4);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(4px);
}
.player-info .jade-display .player-title::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}
.player-info .jade-display .player-title:hover::before {
  left: 100%;
}
.player-info .jade-display .player-title:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, rgba(192, 160, 128, 0.25), rgba(192, 160, 128, 0.1));
}
.player-info .jade-display .player-title .title-icon {
  font-size: 16px;
  filter: drop-shadow(0 0 3px rgba(192, 160, 128, 0.8));
}
.player-info .jade-display .player-title .title-name {
  font-size: 13px;
  font-weight: bold;
  background: linear-gradient(135deg, #c9824d, #d9a06a);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.player-info .jade-display .player-title .title-desc {
  font-size: 11px;
  color: rgba(192, 160, 128, 0.7);
  margin-left: 6px;
  padding-left: 10px;
  border-left: 1px solid rgba(192, 160, 128, 0.3);
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player-info .jade-display .player-title.quality-white {
  border-color: #9ca3af;
  background: linear-gradient(135deg, rgba(156, 163, 175, 0.15), rgba(156, 163, 175, 0.05));
}
.player-info .jade-display .player-title.quality-white .title-name {
  background: linear-gradient(135deg, #d1d5db, #9ca3af);
  background-clip: text;
  -webkit-background-clip: text;
}
.player-info .jade-display .player-title.quality-white .title-desc {
  color: rgba(156, 163, 175, 0.7);
  border-left-color: rgba(156, 163, 175, 0.3);
}
.player-info .jade-display .player-title.quality-white:hover {
  background: linear-gradient(135deg, rgba(156, 163, 175, 0.25), rgba(156, 163, 175, 0.1));
  box-shadow: 0 0 8px rgba(156, 163, 175, 0.3);
}
.player-info .jade-display .player-title.quality-green {
  border-color: #10b981;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
  box-shadow: 0 0 5px rgba(16, 185, 129, 0.2);
}
.player-info .jade-display .player-title.quality-green .title-name {
  background: linear-gradient(135deg, #34d399, #10b981);
  background-clip: text;
  -webkit-background-clip: text;
}
.player-info .jade-display .player-title.quality-green .title-desc {
  color: rgba(16, 185, 129, 0.7);
  border-left-color: rgba(16, 185, 129, 0.3);
}
.player-info .jade-display .player-title.quality-green:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(16, 185, 129, 0.1));
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}
.player-info .jade-display .player-title.quality-blue {
  border-color: #3b82f6;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.05));
  box-shadow: 0 0 5px rgba(59, 130, 246, 0.2);
}
.player-info .jade-display .player-title.quality-blue .title-name {
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  background-clip: text;
  -webkit-background-clip: text;
}
.player-info .jade-display .player-title.quality-blue .title-desc {
  color: rgba(59, 130, 246, 0.7);
  border-left-color: rgba(59, 130, 246, 0.3);
}
.player-info .jade-display .player-title.quality-blue:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(59, 130, 246, 0.1));
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.4);
}
.player-info .jade-display .player-title.quality-purple {
  border-color: #a855f7;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(168, 85, 247, 0.05));
  box-shadow: 0 0 5px rgba(168, 85, 247, 0.2);
}
.player-info .jade-display .player-title.quality-purple .title-name {
  background: linear-gradient(135deg, #c084fc, #a855f7);
  background-clip: text;
  -webkit-background-clip: text;
}
.player-info .jade-display .player-title.quality-purple .title-desc {
  color: rgba(168, 85, 247, 0.7);
  border-left-color: rgba(168, 85, 247, 0.3);
}
.player-info .jade-display .player-title.quality-purple:hover {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(168, 85, 247, 0.1));
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.4);
}
.player-info .jade-display .player-title.quality-orange {
  border-color: #f59e0b;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.05));
  animation: title-glow-orange 2s ease-in-out infinite;
}
.player-info .jade-display .player-title.quality-orange .title-name {
  background: linear-gradient(135deg, #e88c3a, #f59e0b);
  background-clip: text;
  -webkit-background-clip: text;
}
.player-info .jade-display .player-title.quality-orange .title-desc {
  color: rgba(245, 158, 11, 0.8);
  border-left-color: rgba(245, 158, 11, 0.4);
}
.player-info .jade-display .player-title.quality-orange:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(245, 158, 11, 0.1));
  animation: none;
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.6);
}
.player-info .jade-display .player-title.quality-red {
  border-color: #ef4444;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.05));
  animation: title-glow-red 1.5s ease-in-out infinite;
}
.player-info .jade-display .player-title.quality-red .title-name {
  background: linear-gradient(135deg, #f87171, #ef4444);
  background-clip: text;
  -webkit-background-clip: text;
}
.player-info .jade-display .player-title.quality-red .title-desc {
  color: rgba(239, 68, 68, 0.8);
  border-left-color: rgba(239, 68, 68, 0.4);
}
.player-info .jade-display .player-title.quality-red:hover {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.25), rgba(239, 68, 68, 0.1));
  animation: none;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.6);
}
.player-info .jade-display .player-title.quality-rainbow {
  border-image: linear-gradient(135deg, #ef4444, #f59e0b, #10b981, #3b82f6, #a855f7) 1;
  border-image-slice: 1;
  animation: title-glow-rainbow 2s ease-in-out infinite, title-scale 3s ease-in-out infinite;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(59, 130, 246, 0.05));
}
.player-info .jade-display .player-title.quality-rainbow .title-name {
  background: linear-gradient(135deg, #ef4444, #f59e0b, #10b981, #3b82f6, #a855f7);
  background-clip: text;
  -webkit-background-clip: text;
  animation: title-text-rainbow 3s ease-in-out infinite;
}
.player-info .jade-display .player-title.quality-rainbow .title-desc {
  color: rgba(245, 158, 11, 0.9);
  border-left-color: rgba(245, 158, 11, 0.5);
  animation: title-desc-rainbow 3s ease-in-out infinite;
}
.player-info .jade-display .player-title.quality-rainbow:hover {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(59, 130, 246, 0.1));
  transform: scale(1.02);
}
@media (max-width: 390px) {
  .player-info .jade-display {
    gap: 3px;
    padding: 5px;
    margin-bottom: 4px;
  }
  .player-info .jade-display .player-info-grid {
    gap: 3px;
  }
  .player-info .jade-display .info-cell {
    padding: 3px 7px 3px 8px;
    gap: 1px;
  }
  .player-info .jade-display .info-cell .cell-label {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .player-info .jade-display .info-cell .cell-value {
    font-size: 12px;
  }
  .player-info .jade-display .info-cell.cell-name .cell-value {
    font-size: 18px;
  }
  .player-info .jade-display .info-cell .jade-icon,
  .player-info .jade-display .info-cell .destiny-icon {
    font-size: 11px;
  }
  .player-info .jade-display .player-title {
    max-width: 100%;
    padding: 2px 10px;
    flex-wrap: wrap;
    gap: 4px 6px;
    min-width: 0;
  }
  .player-info .jade-display .player-title .title-icon {
    font-size: 13px;
  }
  .player-info .jade-display .player-title .title-name {
    font-size: 12px;
    white-space: nowrap;
  }
  .player-info .jade-display .player-title .title-desc {
    font-size: 9px;
    max-width: 100%;
    flex-shrink: 1;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
  .player-info .jade-display .flow-readout .flow-body {
    padding: 5px 8px;
  }
  .player-info .jade-display .flow-readout .flow-body .flow-value {
    font-size: 19px;
  }
  .player-info .jade-display .exp-tank .exp-tank-body {
    padding: 4px 6px;
  }
  .player-info .jade-display .exp-tank .exp-tank-body .stored-exp-display {
    font-size: 12px;
    min-width: 44px;
  }
  .player-info .jade-display .rebirth-status {
    gap: 3px;
    padding: 0 8px 5px;
  }
  .player-info .jade-display .rebirth-status .rs-cell .rs-val {
    font-size: 10px;
  }
}
@keyframes title-glow-orange {
  0%,
  100% {
    box-shadow: 0 0 5px rgba(245, 158, 11, 0.3);
    border-color: #f59e0b;
  }
  50% {
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.8);
    border-color: #e88c3a;
  }
}
@keyframes title-glow-red {
  0%,
  100% {
    box-shadow: 0 0 5px rgba(239, 68, 68, 0.3);
    border-color: #ef4444;
  }
  50% {
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.8);
    border-color: #f87171;
  }
}
@keyframes title-glow-rainbow {
  0%,
  100% {
    box-shadow: 0 0 5px #ef4444;
    border-image: linear-gradient(135deg, #ef4444, #f59e0b, #10b981, #3b82f6, #a855f7) 1;
  }
  20% {
    box-shadow: 0 0 12px #f59e0b;
  }
  40% {
    box-shadow: 0 0 12px #10b981;
  }
  60% {
    box-shadow: 0 0 12px #3b82f6;
  }
  80% {
    box-shadow: 0 0 12px #a855f7;
  }
}
@keyframes title-scale {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}
@keyframes title-text-rainbow {
  0%,
  100% {
    filter: hue-rotate(0deg);
  }
  50% {
    filter: hue-rotate(30deg);
  }
}
@keyframes title-desc-rainbow {
  0%,
  100% {
    color: rgba(239, 68, 68, 0.8);
  }
  25% {
    color: rgba(245, 158, 11, 0.8);
  }
  50% {
    color: rgba(16, 185, 129, 0.8);
  }
  75% {
    color: rgba(59, 130, 246, 0.8);
  }
}
.player-info .title-unlock-floating {
  position: fixed;
  top: 30%;
  left: 50%;
  transform: translateX(-50%) scale(0);
  background: linear-gradient(135deg, #111920, #16222b);
  border: 2px solid #c9824d;
  border-radius: 8px;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 20000;
  animation: title-unlock-anim 2.5s ease-out forwards;
  box-shadow: 0 0 40px rgba(192, 160, 128, 0.5);
  backdrop-filter: blur(10px);
}
.player-info .title-unlock-floating .title-unlock-icon {
  font-size: 32px;
  animation: title-icon-bounce 0.5s ease-out;
}
.player-info .title-unlock-floating .title-unlock-text {
  font-size: 13px;
  color: #888;
}
.player-info .title-unlock-floating .title-unlock-name {
  font-size: 18px;
  font-weight: bold;
  background: linear-gradient(135deg, #c9824d, #d9a06a);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
@keyframes title-unlock-anim {
  0% {
    transform: translateX(-50%) scale(0);
    opacity: 0;
    top: 30%;
  }
  20% {
    transform: translateX(-50%) scale(1.1);
    opacity: 1;
  }
  30% {
    transform: translateX(-50%) scale(1);
  }
  70% {
    transform: translateX(-50%) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateX(-50%) scale(0.9);
    opacity: 0;
    top: 20%;
  }
}
@keyframes title-icon-bounce {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3);
  }
}
.player-info .hp-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  padding: 5px 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.14));
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-left: 3px solid rgba(239, 68, 68, 0.85);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  position: relative;
}
.player-info .mp-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  padding: 5px 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.14));
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-left: 3px solid rgba(59, 130, 246, 0.85);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  position: relative;
}
.player-info .exp-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.14));
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-left: 3px solid var(--accent-primary);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  position: relative;
}
.player-info .stat-icon {
  min-width: 60px;
  text-align: left;
  font-size: 12px;
  font-weight: normal;
  position: relative;
  padding-left: 17px;
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.player-info .stat-icon::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: monospace;
  font-size: 8px;
  font-weight: bold;
  letter-spacing: 0;
  color: var(--text-muted);
  opacity: 0.7;
  border: 1px solid var(--border-color);
  border-radius: 2px;
  padding: 0 2px;
  line-height: 1.3;
  background: rgba(0, 0, 0, 0.3);
}
.player-info .hp-row .stat-icon::before {
  content: "01";
}
.player-info .mp-row .stat-icon::before {
  content: "02";
}
.player-info .exp-row .stat-icon::before {
  content: "03";
}
.player-info .hp-bar-container,
.player-info .mp-bar-container,
.player-info .exp-bar-container {
  flex: 1;
  position: relative;
  height: 16px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0px, rgba(255, 255, 255, 0.07) 1px, transparent 1px, transparent 8px), rgba(0, 0, 0, 0.7);
  background-size: 8px 100%,
      auto;
  border-radius: 8px;
  overflow: hidden;
  clip-path: polygon(4px 0, 100% 0, 100% 100%, 0 100%, 0 4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.65), inset 0 -1px 0 rgba(255, 255, 255, 0.07), 0 1px 0 rgba(255, 255, 255, 0.05);
}
.player-info .hp-bar-container::before,
.player-info .mp-bar-container::before,
.player-info .exp-bar-container::before {
  content: "";
  position: absolute;
  top: 1px;
  bottom: 1px;
  right: 1px;
  width: 2px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: -1px 0 0 rgba(0, 0, 0, 0.4);
  z-index: 4;
  pointer-events: none;
}
.player-info .hp-bar-container::after,
.player-info .mp-bar-container::after,
.player-info .exp-bar-container::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0px, rgba(0, 0, 0, 0.55) 1px, transparent 1px, transparent 8px);
  pointer-events: none;
  z-index: 3;
}
.player-info .hp-bar-fill {
  height: 100%;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.3) 0px, rgba(255, 255, 255, 0.3) 1px, rgba(255, 255, 255, 0) 1px, rgba(255, 255, 255, 0) 8px), linear-gradient(90deg, #b91c1c, #ef4444);
  background-size: 8px 100%,
      auto;
  border-radius: 8px;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.25);
  z-index: 2;
}
.player-info .mp-bar-fill {
  height: 100%;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.3) 0px, rgba(255, 255, 255, 0.3) 1px, rgba(255, 255, 255, 0) 1px, rgba(255, 255, 255, 0) 8px), linear-gradient(90deg, #1d4ed8, #3b82f6);
  background-size: 8px 100%,
      auto;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.25);
  z-index: 2;
}
.player-info .exp-bar-fill {
  height: 100%;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.3) 0px, rgba(255, 255, 255, 0.3) 1px, rgba(255, 255, 255, 0) 1px, rgba(255, 255, 255, 0) 8px), linear-gradient(90deg, var(--accent-primary), var(--accent-bright), var(--accent-secondary));
  background-size: 8px 100%,
      auto;
  border-radius: 8px;
  box-shadow: 0 0 8px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.25);
  z-index: 2;
}
.player-info .hp-regen,
.player-info .mp-regen,
.player-info .exp-regen {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: white;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  font-weight: bold;
  letter-spacing: 0.02em;
  z-index: 5;
}
.player-info .exp-bar-container {
  position: relative;
  overflow: hidden;
}
.player-info .exp-bar-container .wave-effect {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(232, 140, 58, 0.6), rgba(232, 140, 58, 0.8), rgba(232, 140, 58, 0.6), transparent);
  animation: waveScan 0.6s ease-out forwards;
  pointer-events: none;
  z-index: 2;
}
.player-info .hp-values,
.player-info .mp-values,
.player-info .exp-values {
  font-size: 10px;
  font-family: monospace;
  min-width: 84px;
  text-align: right;
  color: var(--text-secondary);
  font-weight: bold;
  padding: 1px 6px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.55), 0 1px 0 rgba(255, 255, 255, 0.03);
  white-space: nowrap;
}
.player-info .hp-values span,
.player-info .mp-values span,
.player-info .exp-values span {
  color: var(--text-muted);
}
.player-info .hp-values .separator,
.player-info .mp-values .separator,
.player-info .exp-values .separator {
  color: var(--text-muted);
  margin: 0 2px;
}
.player-info .hp-values span:last-child,
.player-info .mp-values span:last-child,
.player-info .exp-values span:last-child {
  color: var(--accent-bright);
  text-shadow: 0 0 6px var(--accent-glow);
}
.player-name-wrapper {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.player-title {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  background: linear-gradient(135deg, rgba(192, 160, 128, 0.2), rgba(192, 160, 128, 0.05));
  border: 1px solid rgba(192, 160, 128, 0.5);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.player-title::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}
.player-title:hover::before {
  left: 100%;
}
.player-title .title-icon {
  font-size: 14px;
  filter: drop-shadow(0 0 2px rgba(192, 160, 128, 0.8));
}
.player-title .title-name {
  font-size: 12px;
  font-weight: bold;
  background: linear-gradient(135deg, #c9824d, #d9a06a);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  text-shadow: 0 0 5px rgba(192, 160, 128, 0.5);
}
.player-title.quality-white {
  border-color: #9ca3af;
  background: linear-gradient(135deg, rgba(156, 163, 175, 0.2), rgba(156, 163, 175, 0.05));
}
.player-title.quality-white .title-name {
  background: linear-gradient(135deg, #d1d5db, #9ca3af);
  background-clip: text;
  -webkit-background-clip: text;
}
.player-title.quality-green {
  border-color: #10b981;
  box-shadow: 0 0 5px rgba(16, 185, 129, 0.3);
}
.player-title.quality-green .title-name {
  background: linear-gradient(135deg, #34d399, #10b981);
  background-clip: text;
  -webkit-background-clip: text;
}
.player-title.quality-blue {
  border-color: #3b82f6;
  box-shadow: 0 0 5px rgba(59, 130, 246, 0.3);
}
.player-title.quality-blue .title-name {
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  background-clip: text;
  -webkit-background-clip: text;
}
.player-title.quality-purple {
  border-color: #a855f7;
  box-shadow: 0 0 5px rgba(168, 85, 247, 0.3);
}
.player-title.quality-purple .title-name {
  background: linear-gradient(135deg, #c084fc, #a855f7);
  background-clip: text;
  -webkit-background-clip: text;
}
.player-title.quality-orange {
  border-color: #f59e0b;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
  animation: title-glow-orange 2s ease-in-out infinite;
}
.player-title.quality-orange .title-name {
  background: linear-gradient(135deg, #e88c3a, #f59e0b);
  background-clip: text;
  -webkit-background-clip: text;
}
.player-title.quality-red {
  border-color: #ef4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
  animation: title-glow-red 1.5s ease-in-out infinite;
}
.player-title.quality-red .title-name {
  background: linear-gradient(135deg, #f87171, #ef4444);
  background-clip: text;
  -webkit-background-clip: text;
}
.player-title.quality-rainbow {
  border-image: linear-gradient(135deg, #ef4444, #f59e0b, #10b981, #3b82f6, #a855f7) 1;
  border-image-slice: 1;
  animation: title-glow-rainbow 1s ease-in-out infinite, title-rotate 3s ease-in-out infinite;
}
.player-title.quality-rainbow .title-name {
  background: linear-gradient(135deg, #ef4444, #f59e0b, #10b981, #3b82f6, #a855f7);
  background-clip: text;
  -webkit-background-clip: text;
  animation: title-text-rainbow 3s ease-in-out infinite;
}
@keyframes title-glow-orange {
  0%,
  100% {
    box-shadow: 0 0 5px rgba(245, 158, 11, 0.3);
    border-color: #f59e0b;
  }
  50% {
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.8);
    border-color: #e88c3a;
  }
}
@keyframes title-glow-red {
  0%,
  100% {
    box-shadow: 0 0 5px rgba(239, 68, 68, 0.3);
    border-color: #ef4444;
  }
  50% {
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.8);
    border-color: #f87171;
  }
}
@keyframes title-glow-rainbow {
  0%,
  100% {
    box-shadow: 0 0 5px #ef4444;
  }
  20% {
    box-shadow: 0 0 15px #f59e0b;
  }
  40% {
    box-shadow: 0 0 15px #10b981;
  }
  60% {
    box-shadow: 0 0 15px #3b82f6;
  }
  80% {
    box-shadow: 0 0 15px #a855f7;
  }
}
@keyframes title-rotate {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}
@keyframes title-text-rainbow {
  0%,
  100% {
    filter: hue-rotate(0deg);
  }
  50% {
    filter: hue-rotate(30deg);
  }
}
.title-unlock-floating {
  position: fixed;
  top: 20%;
  left: 50%;
  transform: translateX(-50%) scale(0);
  background: linear-gradient(135deg, #111920, #16222b);
  border: 2px solid #c9824d;
  border-radius: 8px;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 20000;
  animation: title-unlock-anim 2s ease-out forwards;
  box-shadow: 0 0 30px rgba(192, 160, 128, 0.5);
}
.title-unlock-floating .title-unlock-icon {
  font-size: 28px;
  animation: title-icon-bounce 0.5s ease-out;
}
.title-unlock-floating .title-unlock-text {
  font-size: 14px;
  color: #888;
}
.title-unlock-floating .title-unlock-name {
  font-size: 18px;
  font-weight: bold;
  color: #c9824d;
}
@keyframes title-unlock-anim {
  0% {
    transform: translateX(-50%) scale(0);
    opacity: 0;
    top: 20%;
  }
  20% {
    transform: translateX(-50%) scale(1.1);
    opacity: 1;
  }
  30% {
    transform: translateX(-50%) scale(1);
  }
  70% {
    transform: translateX(-50%) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateX(-50%) scale(0.8);
    opacity: 0;
    top: 10%;
  }
}
@keyframes title-icon-bounce {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3);
  }
}
@keyframes waveScan {
  0% {
    transform: translateX(-100%);
    opacity: 0.8;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateX(100%);
    opacity: 0;
  }
}
@keyframes waveScan {
  0% {
    transform: translateX(-100%);
    opacity: 0.8;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateX(100%);
    opacity: 0;
  }
}
.cultivate-scroll-content {
  flex: 1;
  overflow-y: auto;
  padding: 12px 0;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.cultivate-scroll-content::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
  background: transparent;
}
.cultivationState {
  width: 100%;
  margin-bottom: 12px;
  border: 1px solid var(--border-color);
  border-top: 2px solid var(--accent-primary);
  border-radius: 12px;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.012) 0, rgba(255, 255, 255, 0.012) 1px, transparent 1px, transparent 3px), var(--grad-card);
  backdrop-filter: blur(10px);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.cultivationState::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.5;
  background: linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 10px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 2px 10px, /* 右上 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 10px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 2px 10px, /* 左下 */ linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 10px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 2px 10px, /* 右下 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 10px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 2px 10px;
  background-repeat: no-repeat;
}
.cultivationState h4 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--accent-primary);
  border-bottom: 1px solid var(--border-color);
  background: var(--grad-jade);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.04);
  letter-spacing: 0.02em;
  position: relative;
  clip-path: polygon(12px 0, 100% 0, 100% 100%, 0 100%, 0 12px);
  /* 新手任务按钮动画（和突破按钮一样） */
}
.cultivationState h4 .quest-task-btn.need-attention {
  animation: btnPulse 1s ease-in-out infinite;
  position: relative;
}
.cultivationState h4 .quest-task-btn.need-attention::after {
  content: "";
  position: absolute;
  top: -4px;
  right: -4px;
  width: 10px;
  height: 10px;
  background-color: #ef4444;
  border-radius: 50%;
  animation: reddotPulse 1s ease-in-out infinite;
}
@keyframes btnPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(232, 140, 58, 0.4);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(232, 140, 58, 0);
  }
}
@keyframes reddotPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.8;
  }
}
.cultivationState h4 .quest-task-btn,
.cultivationState h4 .view-technique-btn {
  padding: 4px 12px;
  color: #e4e4e4;
  background: rgba(64, 68, 89, 0.8);
  border-radius: 8px;
  font-size: 10px;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.cultivationState h4 .quest-task-btn:hover,
.cultivationState h4 .view-technique-btn:hover {
  background: var(--accent-primary);
  color: var(--bg-primary);
}
.technique-info {
  padding: 12px 16px;
}
.technique-info .technique-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.technique-info .technique-header .technique-name-wrapper {
  flex: 1;
}
.technique-info .technique-header .technique-name-wrapper .technique-name {
  font-size: 14px;
  font-weight: bold;
  color: var(--accent-primary);
  margin-bottom: 4px;
}
.technique-info .technique-header .technique-name-wrapper .technique-desc {
  font-size: 10px;
  color: var(--text-muted);
}
.technique-info .technique-exp-bar {
  margin-bottom: 8px;
}
.technique-info .technique-exp-bar .technique-exp-container {
  position: relative;
  height: 14px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 8px), rgba(0, 0, 0, 0.5);
  background-size: 8px 100%,
        auto;
  border-radius: 8px;
  overflow: hidden;
  clip-path: polygon(4px 0, 100% 0, 100% 100%, 0 100%, 0 4px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.55), inset 0 -1px 0 rgba(255, 255, 255, 0.05);
}
.technique-info .technique-exp-bar .technique-exp-container .technique-exp-fill {
  height: 100%;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.28) 0 1px, transparent 1px 8px), linear-gradient(90deg, var(--accent-primary), var(--accent-bright), var(--accent-secondary));
  background-size: 8px 100%,
          auto;
  border-radius: 8px;
  transition: width 0.3s ease;
  box-shadow: 0 0 8px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.2);
  animation: fluidFlow 0.9s linear infinite;
}
.technique-info .technique-exp-bar .technique-exp-container .technique-exp-text {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: white;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  font-family: monospace;
  letter-spacing: 1px;
}
.technique-info .cultivation-details {
  position: relative;
}
.technique-info .cultivation-details .cultivation-level {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
  font-size: 10px;
}
.technique-info .cultivation-details .cultivation-level .level-label {
  color: var(--text-muted);
}
.technique-info .cultivation-details .cultivation-level .level-value {
  color: var(--accent-primary);
  font-weight: bold;
}
.technique-info .cultivation-details .jade-label-vip {
  position: absolute;
  right: 120px;
  background: var(--accent-secondary);
  color: var(--bg-primary);
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 8px;
}
.technique-info .cultivation-details .jade-value {
  position: absolute;
  right: 30px;
  color: var(--accent-secondary);
  font-weight: bold;
  font-size: 12px;
  padding-left: 6px;
}
.technique-info .cultivation-details .wakelock-btn {
  position: absolute;
  right: 20px;
  top: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 8px;
  font-size: 10px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid transparent;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
}
.technique-info .cultivation-details .wakelock-btn:active {
  transform: scale(0.96);
}
.technique-info .cultivation-details .wakelock-btn[aria-pressed="true"] {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.35), rgba(6, 182, 212, 0.3));
  border-color: rgba(16, 185, 129, 0.7);
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.technique-info .cultivation-details .wakelock-btn[aria-pressed="true"] span:last-child {
  color: #10b981;
  font-weight: bold;
}
.technique-info .cultivation-details .cultivation-stage-desc {
  margin-bottom: 12px;
}
.technique-info .cultivation-details .cultivation-stage-desc .stage-desc-text {
  font-size: 10px;
  color: var(--text-secondary);
  font-style: italic;
}
.technique-info .cultivation-details .technique-stats {
  margin-bottom: 8px;
}
.technique-info .cultivation-details .technique-stats .flow-readout {
  margin-bottom: 8px;
  border: 1px solid var(--border-color);
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}
.technique-info .cultivation-details .technique-stats .flow-readout .flow-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 8px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.02) 0 2px, transparent 2px 4px), rgba(0, 0, 0, 0.35);
  border-bottom: 1px dashed var(--border-color);
}
.technique-info .cultivation-details .technique-stats .flow-readout .flow-head .flow-tag {
  font-size: 9px;
  letter-spacing: 1px;
  color: #10b981;
  font-weight: bold;
}
.technique-info .cultivation-details .technique-stats .flow-readout .flow-head .flow-seg {
  display: flex;
  gap: 2px;
}
.technique-info .cultivation-details .technique-stats .flow-readout .flow-head .flow-seg i {
  width: 4px;
  height: 9px;
  background: rgba(120, 120, 130, 0.35);
  border-radius: 1px;
  transition: background 0.2s, box-shadow 0.2s;
}
.technique-info .cultivation-details .technique-stats .flow-readout .flow-head .flow-seg i.on {
  background: #10b981;
  box-shadow: 0 0 5px rgba(16, 185, 129, 0.6);
}
.technique-info .cultivation-details .technique-stats .flow-readout .flow-body {
  display: flex;
  align-items: baseline;
  gap: 5px;
  padding: 6px 10px;
}
.technique-info .cultivation-details .technique-stats .flow-readout .flow-body .flow-value {
  font-family: "Consolas", "Courier New", monospace;
  font-size: 22px;
  font-weight: bold;
  line-height: 1;
  color: #10b981;
  text-shadow: 0 0 8px rgba(16, 185, 129, 0.45);
}
.technique-info .cultivation-details .technique-stats .flow-readout .flow-body .flow-unit {
  font-size: 10px;
  color: var(--text-muted);
  font-family: monospace;
}
.technique-info .cultivation-details .technique-stats .flow-readout .flow-body .flow-accel {
  margin-left: auto;
  font-size: 9px;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 2px;
  padding: 1px 6px;
  align-items: center;
  letter-spacing: 0.5px;
}
.technique-info .cultivation-details .technique-stats .cultivation-speed-detail {
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.5;
  font-family: "Consolas", "Courier New", monospace;
  padding: 4px 10px 5px;
  margin: 0 6px 6px;
  background: rgba(0, 0, 0, 0.22);
  border-radius: 2px;
  border-left: 2px solid #10b981;
  word-break: break-all;
}
.technique-info .cultivation-details .technique-stats .cultivation-speed-detail:hover {
  background: rgba(0, 0, 0, 0.4);
  border-left-color: var(--accent-primary);
}
.technique-info .cultivation-details .technique-stats .exp-tank {
  border: 1px solid var(--border-color);
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}
.technique-info .cultivation-details .technique-stats .exp-tank .exp-tank-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 8px;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px dashed var(--border-color);
}
.technique-info .cultivation-details .technique-stats .exp-tank .exp-tank-head .tank-tag {
  font-size: 9px;
  color: #10b981;
  letter-spacing: 1px;
  font-weight: bold;
}
.technique-info .cultivation-details .technique-stats .exp-tank .exp-tank-head .tank-code {
  font-size: 8px;
  font-family: monospace;
  letter-spacing: 2px;
  color: var(--text-muted);
  opacity: 0.7;
}
.technique-info .cultivation-details .technique-stats .exp-tank .exp-tank-body {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
}
.technique-info .cultivation-details .technique-stats .exp-tank .exp-tank-body .tank-segs {
  display: flex;
  flex: 1;
  gap: 2px;
}
.technique-info .cultivation-details .technique-stats .exp-tank .exp-tank-body .tank-segs i {
  flex: 1;
  height: 10px;
  background: rgba(120, 120, 130, 0.3);
  border-radius: 1px;
  transition: background 0.2s, box-shadow 0.2s;
}
.technique-info .cultivation-details .technique-stats .exp-tank .exp-tank-body .tank-segs i.on {
  background: #10b981;
  box-shadow: 0 0 5px rgba(16, 185, 129, 0.55);
}
.technique-info .cultivation-details .technique-stats .exp-tank .exp-tank-body .stored-exp-display {
  font-family: "Consolas", "Courier New", monospace;
  font-size: 13px;
  font-weight: bold;
  color: #10b981;
  min-width: 52px;
  text-align: right;
  white-space: nowrap;
}
.technique-info .cultivation-btn {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  position: relative;
}
.technique-info .cultivation-btn::before {
  content: "⚠ OPERATION-PANEL";
  position: absolute;
  top: -16px;
  left: 0;
  font-family: monospace;
  font-size: 8px;
  letter-spacing: 2px;
  color: var(--text-muted);
  opacity: 0.7;
}
.technique-info .cultivation-btn button {
  flex: 1;
  padding: 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: all var(--transition-fast);
  letter-spacing: 0.02em;
  position: relative;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%);
}
.technique-info .cultivation-btn button::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 4px;
  height: 3px;
  background: repeating-linear-gradient(-45deg, #e88c3a 0 4px, #1a1a1a 4px 8px);
  opacity: 0.9;
  pointer-events: none;
}
.technique-info .cultivation-btn button.array-btn {
  background: linear-gradient(135deg, #3e7c8c, #2a5a68, #1f4a56);
  color: #eaf4f7;
  box-shadow: 0 2px 8px rgba(62, 124, 140, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}
.technique-info .cultivation-btn button.array-btn::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(120, 120, 130, 0.4);
  box-shadow: none;
}
.technique-info .cultivation-btn button.array-btn.active {
  background: linear-gradient(135deg, #3e7c8c, #8fbcc9, #e88c3a);
  animation: pulse 1.5s infinite;
  box-shadow: var(--shadow-accent-md), inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}
.technique-info .cultivation-btn button.array-btn.active::before {
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
  animation: scoreLed 1s ease-in-out infinite;
}
.technique-info .cultivation-btn button.breakthrough-btn {
  background: linear-gradient(135deg, #3f4650, #2b313a);
  color: var(--text-secondary);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}
.technique-info .cultivation-btn button.breakthrough-btn::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(120, 120, 130, 0.4);
  box-shadow: none;
}
.technique-info .cultivation-btn button.breakthrough-btn.can-breakthrough {
  background: linear-gradient(135deg, #e88c3a, #d97706);
  color: #1a1a1a;
  animation: btnPulse 1s infinite;
  box-shadow: var(--shadow-accent-md), inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}
.technique-info .cultivation-btn button.breakthrough-btn.can-breakthrough::before {
  background: #fbbf24;
  box-shadow: 0 0 8px #fbbf24;
  animation: scoreLed 0.8s ease-in-out infinite;
}
.technique-info .cultivation-btn button:active {
  transform: scale(0.96);
}
.meditate {
  width: 100%;
  margin-bottom: 12px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: var(--grad-card);
  backdrop-filter: blur(10px);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  /* ===== 雷达图容器（六边形战术显示器，明日方舟式 hex 屏） ===== */
}
.meditate::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.5;
  background: linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 10px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 2px 10px, /* 右上 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 10px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 2px 10px, /* 左下 */ linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 10px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 2px 10px, /* 右下 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 10px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 2px 10px;
  background-repeat: no-repeat;
}
.meditate .meditate-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0;
  background: var(--grad-jade);
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid var(--border-color);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.04);
}
.meditate .meditate-header .small-world-title {
  flex-basis: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  font-size: 9px;
  color: #f59e0b;
  letter-spacing: 1px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}
.meditate .meditate-header .small-world-title::before {
  content: "";
  width: 4px;
  height: 4px;
  background: #f59e0b;
  box-shadow: 0 0 5px #f59e0b;
  flex-shrink: 0;
}
.meditate .meditate-header h4 {
  padding: 2px 16px;
  font-size: 14px;
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  position: relative;
  clip-path: polygon(12px 0, 100% 0, 100% 100%, 0 100%, 0 12px);
}
.meditate .meditate-header .char-switch-btn {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 4px 5px;
  font-size: 12px;
  margin-left: 10px;
  color: var(--accent-primary);
  cursor: pointer;
  transition: all 0.2s;
}
.meditate .meditate-header .char-switch-btn:hover {
  background: rgba(232, 140, 58, 0.2);
  border-color: #e88c3a;
  color: #e88c3a;
  transform: translateY(-2px);
}
.meditate .meditate-header .rebirth-status {
  flex-basis: 100%;
  width: 100%;
  display: flex;
  align-items: stretch;
  gap: 4px;
  padding: 0 10px 6px;
  box-sizing: border-box;
}
.meditate .meditate-header .rebirth-status .rs-cell {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 3px 2px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--border-color);
  border-top: 2px solid var(--accent-line);
  border-radius: 2px;
}
.meditate .meditate-header .rebirth-status .rs-cell .rs-key {
  font-size: 8px;
  letter-spacing: 1px;
  color: var(--text-muted);
}
.meditate .meditate-header .rebirth-status .rs-cell .rs-val {
  font-family: "Consolas", "Courier New", monospace;
  font-size: 11px;
  font-weight: bold;
  line-height: 1.2;
  white-space: nowrap;
}
.meditate .meditate-header .rebirth-status .rs-rebirth {
  border-top-color: #ffd166;
}
.meditate .spirit-radar-wrapper {
  position: relative;
  width: 100%;
  height: 300px;
  /* 兜底高度（5:4）：旧WebView不支持 aspect-ratio，JS 会按容器宽度动态覆盖 */
  background: radial-gradient(ellipse at center, var(--accent-soft) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0) 80%), linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.1));
  clip-path: polygon(50% 0, 96% 25%, 96% 75%, 50% 100%, 4% 75%, 4% 25%);
  /* 替代 meditate-bg-glow 光效（底部强调色淡光）+ 雷达扫描线 */
  /* 心域入口旋涡 */
}
.meditate .spirit-radar-wrapper canvas {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  height: 300px;
  /* 兜底高度：旧WebView不支持 aspect-ratio，JS 会按容器宽度动态覆盖为正方形 */
  display: block;
  filter: drop-shadow(0 6px 18px var(--accent-glow));
  border: 1px solid var(--border-highlight);
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.45), 0 0 0 3px var(--accent-line), 0 0 16px var(--accent-glow), inset 0 0 24px rgba(0, 0, 0, 0.35);
}
.meditate .spirit-radar-wrapper::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 40px;
  background: radial-gradient(ellipse, var(--accent-glow), transparent 70%);
  filter: blur(12px);
  pointer-events: none;
}
.meditate .spirit-radar-wrapper .radar-corner {
  position: absolute;
  width: 26px;
  height: 26px;
  pointer-events: none;
  z-index: 8;
}
.meditate .spirit-radar-wrapper .radar-corner.tl {
  top: 0;
  left: 0;
  border-top: 2px solid var(--accent-bright);
  border-left: 2px solid var(--accent-bright);
  opacity: 0.8;
}
.meditate .spirit-radar-wrapper .radar-corner.tr {
  top: 0;
  right: 0;
  border-top: 2px solid var(--accent-bright);
  border-right: 2px solid var(--accent-bright);
  opacity: 0.8;
}
.meditate .spirit-radar-wrapper .radar-corner.bl {
  bottom: 0;
  left: 0;
  border-bottom: 2px solid var(--accent-bright);
  border-left: 2px solid var(--accent-bright);
  opacity: 0.8;
}
.meditate .spirit-radar-wrapper .radar-corner.br {
  bottom: 0;
  right: 0;
  border-bottom: 2px solid var(--accent-bright);
  border-right: 2px solid var(--accent-bright);
  opacity: 0.8;
}
.meditate .spirit-radar-wrapper .radar-sweep {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  left: 50%;
  transform-origin: 50% 50%;
  background: linear-gradient(180deg, transparent, var(--accent-glow), transparent);
  pointer-events: none;
  z-index: 7;
  opacity: 0.5;
  animation: radarSweep 4s linear infinite;
}
.meditate .spirit-radar-wrapper .small-world-entrance {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  transition: transform 0.2s ease;
  pointer-events: auto;
}
.meditate .spirit-radar-wrapper .small-world-entrance.locked {
  background: radial-gradient(circle, rgba(100, 100, 120, 0.5), rgba(60, 60, 80, 0.3), transparent 70%);
  border: 2px solid rgba(140, 130, 160, 0.5);
  cursor: not-allowed;
  animation: none;
  box-shadow: 0 0 8px rgba(100, 100, 120, 0.3);
  opacity: 0.75;
  filter: grayscale(0.5);
}
.meditate .spirit-radar-wrapper .small-world-entrance.locked:hover {
  transform: translate(-50%, -50%);
}
.meditate .spirit-radar-wrapper .small-world-entrance.unlocked {
  background: radial-gradient(circle, rgba(168, 85, 247, 0.5), rgba(59, 130, 246, 0.2), transparent 70%);
  border: 2px solid rgba(168, 85, 247, 0.65);
  cursor: pointer;
  animation: vortex-pulse 3s ease-in-out infinite;
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.4);
  opacity: 1;
  filter: none;
}
.meditate .spirit-radar-wrapper .small-world-entrance.unlocked:hover {
  transform: translate(-50%, -50%) scale(1.08);
}
.meditate .spirit-radar-wrapper .small-world-entrance.unlocked:active {
  transform: translate(-50%, -50%) scale(0.92);
}
@keyframes vortex-pulse {
  0%,
  100% {
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
  }
  50% {
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.5);
  }
}
@keyframes radarSweep {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.meditate .spirit-roots-values {
  display: flex;
  justify-content: space-around;
  padding: 10px 8px 14px;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.012) 0, rgba(255, 255, 255, 0.012) 1px, transparent 1px, transparent 3px), rgba(0, 0, 0, 0.45);
  border-top: 1px solid var(--border-color);
  margin-top: 4px;
  position: relative;
  z-index: 6;
  flex-wrap: wrap;
  gap: 10px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}
.meditate .spirit-roots-values::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8px;
  right: 8px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
  opacity: 0.6;
}
.meditate .spirit-roots-values .root-stat {
  text-align: center;
  padding: 12px 4px 8px;
  border-radius: 8px;
  min-width: 54px;
  flex: 1 1 54px;
  backdrop-filter: blur(4px);
  position: relative;
  clip-path: polygon(50% 0, 96% 14%, 96% 86%, 50% 100%, 4% 86%, 4% 14%);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.35)), rgba(0, 0, 0, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), inset 0 -1px 0 rgba(0, 0, 0, 0.4);
  transition: all var(--transition-fast);
  /* ===== 异能能量液位槽（竖条液位 + 激活LED，六边形窗口） ===== */
}
.meditate .spirit-roots-values .root-stat::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 5px currentColor;
  opacity: 0.9;
}
.meditate .spirit-roots-values .root-stat::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 14%;
  right: 14%;
  height: 3px;
  background: repeating-linear-gradient(-45deg, #e88c3a 0 3px, #1a1a1a 3px 6px);
  opacity: 0.85;
}
.meditate .spirit-roots-values .root-stat:hover {
  transform: translateY(-1px);
  filter: brightness(1.15);
}
.meditate .spirit-roots-values .root-stat.gold {
  color: #facc15;
}
.meditate .spirit-roots-values .root-stat.wood {
  color: #4ade80;
}
.meditate .spirit-roots-values .root-stat.water {
  color: #3b82f6;
}
.meditate .spirit-roots-values .root-stat.fire {
  color: #ef4444;
}
.meditate .spirit-roots-values .root-stat.earth {
  color: #8b5a2b;
}
.meditate .spirit-roots-values .root-stat.wind {
  color: #7fdbff;
}
.meditate .spirit-roots-values .root-stat.ice {
  color: #4fc3f7;
}
.meditate .spirit-roots-values .root-stat.thunder {
  color: #fde047;
}
.meditate .spirit-roots-values .root-stat.light {
  color: #fff59d;
}
.meditate .spirit-roots-values .root-stat.dark {
  color: #7e57c2;
}
.meditate .spirit-roots-values .root-stat .root-label {
  font-size: 9px;
  display: block;
  margin-bottom: 2px;
  letter-spacing: 1px;
  font-weight: 600;
}
.meditate .spirit-roots-values .root-stat .root-num {
  font-size: 13px;
  font-weight: bold;
  font-family: "Consolas", "Courier New", monospace;
  text-shadow: 0 0 6px currentColor;
}
.meditate .spirit-roots-values .root-stat .root-num.perfect {
  text-shadow: 0 0 10px currentColor;
}
.meditate .spirit-roots-values .root-stat .root-vial {
  position: relative;
  width: 22px;
  height: 40px;
  margin: 4px auto 3px;
  border-radius: 8px;
  clip-path: polygon(50% 0, 100% 12%, 100% 88%, 50% 100%, 0 88%, 0 12%);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.55));
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  color: inherit;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5), inset 0 -1px 0 rgba(255, 255, 255, 0.05);
}
.meditate .spirit-roots-values .root-stat .vial-grid {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 9px);
  pointer-events: none;
  z-index: 2;
}
.meditate .spirit-roots-values .root-stat .vial-fill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0%;
  background: linear-gradient(180deg, currentColor, rgba(255, 255, 255, 0.45));
  opacity: 0.75;
  filter: drop-shadow(0 0 4px currentColor);
  transition: height 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  z-index: 1;
}
.meditate .spirit-roots-values .root-stat .vial-led {
  position: absolute;
  top: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(120, 120, 130, 0.5);
  box-shadow: none;
  z-index: 3;
  transition: all var(--transition-fast);
}
.meditate .mutant-roots-values {
  background: linear-gradient(90deg, rgba(126, 87, 194, 0.1), rgba(206, 147, 216, 0.08), rgba(126, 87, 194, 0.1));
  border-top: 1px dashed rgba(206, 147, 216, 0.35);
}
.meditate .mutant-roots-values:empty {
  display: none;
}
@keyframes floatGlow {
  0%,
  100% {
    transform: translateY(0);
    filter: brightness(1);
  }
  50% {
    transform: translateY(-8px);
    filter: brightness(1.05);
  }
}
.spirit-bonus-panel {
  width: 100%;
  margin-bottom: 12px;
  padding: 12px;
  background: var(--grad-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  position: relative;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.spirit-bonus-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.5;
  background: linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 10px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 2px 10px, /* 右上 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 10px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 2px 10px, /* 左下 */ linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 10px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 2px 10px, /* 右下 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 10px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 2px 10px;
  background-repeat: no-repeat;
}
.spirit-bonus-panel .bonus-title {
  font-size: 12px;
  color: var(--accent-primary);
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-color);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
}
.spirit-bonus-panel .bonus-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.spirit-bonus-panel .bonus-item {
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  border-left: 3px solid;
  transition: all var(--transition-fast);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  /* ===== 变异异能加成面板配色 ===== */
}
.spirit-bonus-panel .bonus-item:hover {
  transform: translateX(4px);
  background: rgba(0, 0, 0, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 8px var(--accent-soft);
}
.spirit-bonus-panel .bonus-item.gold {
  border-left-color: #facc15;
}
.spirit-bonus-panel .bonus-item.gold .bonus-name {
  color: #facc15;
}
.spirit-bonus-panel .bonus-item.gold .bonus-charge {
  color: #facc15;
}
.spirit-bonus-panel .bonus-item.wood {
  border-left-color: #4ade80;
}
.spirit-bonus-panel .bonus-item.wood .bonus-name {
  color: #4ade80;
}
.spirit-bonus-panel .bonus-item.wood .bonus-charge {
  color: #4ade80;
}
.spirit-bonus-panel .bonus-item.water {
  border-left-color: #3b82f6;
}
.spirit-bonus-panel .bonus-item.water .bonus-name {
  color: #3b82f6;
}
.spirit-bonus-panel .bonus-item.water .bonus-charge {
  color: #3b82f6;
}
.spirit-bonus-panel .bonus-item.fire {
  border-left-color: #ef4444;
}
.spirit-bonus-panel .bonus-item.fire .bonus-name {
  color: #ef4444;
}
.spirit-bonus-panel .bonus-item.fire .bonus-charge {
  color: #ef4444;
}
.spirit-bonus-panel .bonus-item.earth {
  border-left-color: #8b5a2b;
}
.spirit-bonus-panel .bonus-item.earth .bonus-name {
  color: #8b5a2b;
}
.spirit-bonus-panel .bonus-item.earth .bonus-charge {
  color: #8b5a2b;
}
.spirit-bonus-panel .bonus-item.wind {
  border-left-color: #7fdbff;
}
.spirit-bonus-panel .bonus-item.wind .bonus-name {
  color: #7fdbff;
}
.spirit-bonus-panel .bonus-item.wind .bonus-charge {
  color: #7fdbff;
}
.spirit-bonus-panel .bonus-item.ice {
  border-left-color: #4fc3f7;
}
.spirit-bonus-panel .bonus-item.ice .bonus-name {
  color: #4fc3f7;
}
.spirit-bonus-panel .bonus-item.ice .bonus-charge {
  color: #4fc3f7;
}
.spirit-bonus-panel .bonus-item.thunder {
  border-left-color: #fde047;
}
.spirit-bonus-panel .bonus-item.thunder .bonus-name {
  color: #fde047;
  text-shadow: 0 0 4px rgba(253, 224, 71, 0.35);
}
.spirit-bonus-panel .bonus-item.thunder .bonus-charge {
  color: #fde047;
}
.spirit-bonus-panel .bonus-item.light {
  border-left-color: #fff59d;
}
.spirit-bonus-panel .bonus-item.light .bonus-name {
  color: #fff59d;
}
.spirit-bonus-panel .bonus-item.light .bonus-charge {
  color: #fff59d;
}
.spirit-bonus-panel .bonus-item.dark {
  border-left-color: #7e57c2;
}
.spirit-bonus-panel .bonus-item.dark .bonus-name {
  color: #7e57c2;
}
.spirit-bonus-panel .bonus-item.dark .bonus-charge {
  color: #7e57c2;
}
.spirit-bonus-panel .bonus-item .bonus-header {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
  font-size: 12px;
}
.spirit-bonus-panel .bonus-item .bonus-header .bonus-icon {
  font-size: 14px;
  margin-right: 8px;
}
.spirit-bonus-panel .bonus-item .bonus-header .bonus-name {
  flex: 1;
  font-weight: bold;
}
.spirit-bonus-panel .bonus-item .bonus-header .bonus-value {
  padding: 2px 8px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  font-size: 10px;
}
.spirit-bonus-panel .bonus-item .bonus-header .bonus-charge {
  margin-left: auto;
  width: 54px;
  height: 6px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
}
.spirit-bonus-panel .bonus-item .bonus-header .bonus-charge::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 7px, rgba(0, 0, 0, 0.45) 7px 9px);
  pointer-events: none;
}
.spirit-bonus-panel .bonus-item .bonus-header .bonus-charge .bonus-charge-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
  transition: width 0.3s ease;
}
.spirit-bonus-panel .bonus-item .bonus-desc {
  font-size: 10px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.spirit-bonus-panel .bonus-item .bonus-detail {
  font-size: 9px;
  color: var(--text-muted);
  padding-left: 28px;
}
.attribute-panel {
  width: 100%;
  margin-bottom: 12px;
  padding: 12px;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.012) 0, rgba(255, 255, 255, 0.012) 1px, transparent 1px, transparent 3px), var(--grad-card);
  border: 1px solid var(--border-color);
  border-top: 2px solid var(--accent-primary);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  position: relative;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.attribute-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.5;
  background: linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 10px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 2px 10px, /* 右上 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 10px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 2px 10px, /* 左下 */ linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 10px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 2px 10px, /* 右下 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 10px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 2px 10px;
  background-repeat: no-repeat;
}
.attribute-panel .attribute-title {
  font-size: 12px;
  color: var(--accent-primary);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
}
.attribute-panel .attribute-section {
  margin-bottom: 12px;
}
.attribute-panel .attribute-section .section-title {
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 8px;
  padding-left: 6px;
}
.attribute-panel .attribute-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  counter-reset: attr-item;
}
.attribute-panel .attribute-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 2px 8px 16px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  border-left: 2px solid;
  position: relative;
  transition: all var(--transition-fast);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.attribute-panel .attribute-item::before {
  content: counter(attr-item, decimal-leading-zero);
  counter-increment: attr-item;
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 8px;
  font-family: monospace;
  color: var(--text-muted);
  opacity: 0.55;
}
.attribute-panel .attribute-item:hover {
  background: rgba(0, 0, 0, 0.4);
  transform: translateX(2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 8px var(--accent-soft);
}
.attribute-panel .attribute-item:nth-child(1) {
  border-left-color: var(--color-danger);
}
.attribute-panel .attribute-item:nth-child(2) {
  border-left-color: var(--color-info);
}
.attribute-panel .attribute-item:nth-child(3) {
  border-left-color: var(--accent-primary);
}
.attribute-panel .attribute-item:nth-child(4) {
  border-left-color: #10b981;
}
.attribute-panel .attribute-item .attribute-label {
  font-size: 10px;
  color: var(--text-secondary);
}
.attribute-panel .attribute-item .attribute-value {
  font-size: 12px;
  font-weight: bold;
  color: var(--accent-bright);
  font-family: "Consolas", "Courier New", monospace;
  letter-spacing: -0.01em;
  padding: 1px 6px;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 3px), rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 2px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5), inset 0 -1px 0 rgba(255, 255, 255, 0.03);
  text-shadow: 0 0 6px var(--accent-glow);
}
.attribute-panel .main-grid .attribute-item.main {
  flex-direction: column;
  align-items: stretch;
  gap: 3px;
  padding: 6px 8px 6px 16px;
}
.attribute-panel .main-grid .attribute-item.main .attribute-label {
  font-size: 9px;
  color: var(--text-muted);
}
.attribute-panel .main-grid .attribute-item.main .attribute-value {
  align-self: flex-end;
  font-size: 13px;
  border: none;
  background: none;
  box-shadow: none;
  padding: 0;
}
.attribute-panel .main-grid .attribute-item.main .attr-bar {
  height: 6px;
  border-radius: 8px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 12%), rgba(0, 0, 0, 0.55);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  clip-path: polygon(3px 0, 100% 0, 100% 100%, 0 100%, 0 3px);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.6);
}
.attribute-panel .main-grid .attribute-item.main .attr-bar .attr-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 8px;
  transition: width 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.25) 0 1px, transparent 1px 12%), linear-gradient(90deg, var(--accent-primary), var(--accent-bright));
  box-shadow: 0 0 6px var(--accent-glow);
  animation: fluidFlow 1.2s linear infinite;
}
.attribute-panel .main-grid .attribute-item.main .attribute-value {
  align-self: flex-end;
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.3);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
  padding: 1px 5px;
  border-radius: 2px;
  font-family: "Consolas", "Courier New", monospace;
  text-shadow: 0 0 6px var(--accent-glow);
}
.attribute-panel .sub-grid .attribute-item {
  padding-top: 5px;
  padding-bottom: 5px;
}
.attribute-panel .overflow-conversion {
  margin-top: 12px;
  padding: 8px 12px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 12px;
}
.attribute-panel .overflow-conversion .section-title {
  font-size: 10px;
  color: var(--color-warning);
  margin-bottom: 8px;
  padding-left: 6px;
  letter-spacing: 0.02em;
}
.attribute-panel .overflow-conversion .overflow-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.attribute-panel .overflow-conversion .overflow-item {
  font-size: 10px;
  color: var(--color-warning);
  line-height: 1.6;
  padding: 2px 6px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
}
.attribute-panel .combat-score {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 8%), var(--grad-jade);
  border-radius: 8px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
  border: 1px solid var(--accent-line);
  margin-top: 12px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-accent-sm), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.attribute-panel .combat-score::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 6px;
  height: 3px;
  background: repeating-linear-gradient(-45deg, #e88c3a 0 4px, #1a1a1a 4px 8px);
  opacity: 0.8;
  pointer-events: none;
}
.attribute-panel .combat-score::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad-accent-h);
  opacity: 0.8;
}
.attribute-panel .combat-score .score-label {
  font-size: 12px;
  color: var(--accent-primary);
  font-weight: bold;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 6px;
}
.attribute-panel .combat-score .score-label::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-secondary);
  box-shadow: 0 0 6px var(--accent-secondary);
  animation: scoreLed 1.6s ease-in-out infinite;
}
.attribute-panel .combat-score .score-value {
  font-size: 16px;
  font-weight: bold;
  color: var(--accent-bright);
  font-family: "Consolas", "Courier New", monospace;
  letter-spacing: 1px;
  padding: 3px 10px;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 3px), rgba(0, 0, 0, 0.4);
  border: 1px solid var(--accent-line);
  border-radius: 2px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5), 0 0 10px var(--accent-glow);
  text-shadow: 0 0 8px var(--accent-glow);
}
.attribute-panel .combat-score .score-value::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 12px;
  margin-left: 5px;
  vertical-align: -1px;
  background: var(--accent-bright);
  box-shadow: 0 0 6px var(--accent-bright);
  animation: cursorBlink 1.1s steps(1) infinite;
}
@keyframes scoreLed {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}
.technique-popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}
.technique-popup.hidden {
  display: none;
}
.technique-popup .popup-mask {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
}
.technique-popup .popup-content {
  position: relative;
  width: 90%;
  max-width: 340px;
  height: 70vh;
  background: var(--bg-popup);
  border: 2px solid var(--accent-primary);
  border-radius: 12px;
  padding: 16px;
  z-index: 10001;
  animation: modalFadeIn 0.2s ease;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.technique-popup .popup-content::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
  background: transparent;
}
.technique-popup .popup-content h2 {
  text-align: center;
  color: var(--accent-primary);
  margin-bottom: 16px;
  font-size: 18px;
}
.technique-popup .popup-content .technique-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.technique-popup .popup-content .technique-list .technique-item {
  padding: 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: all var(--transition-fast);
}
.technique-popup .popup-content .technique-list .technique-item.current {
  border-color: var(--accent-primary);
  background: rgba(232, 140, 58, 0.1);
}
.technique-popup .popup-content .technique-list .technique-item .technique-item-name {
  font-size: 12px;
  font-weight: bold;
  color: var(--accent-primary);
  margin-bottom: 4px;
}
.technique-popup .popup-content .technique-list .technique-item .technique-item-desc {
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.technique-popup .popup-content .technique-list .technique-item .technique-item-bonus {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 10px;
}
.technique-popup .popup-content .technique-list .technique-item .technique-item-bonus span {
  padding: 2px 8px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  color: var(--text-secondary);
}
.technique-popup .popup-content .technique-list .technique-item .technique-item-exp {
  margin-top: 8px;
  font-size: 10px;
  color: var(--accent-primary);
}
.technique-popup .popup-content .technique-list .technique-item .technique-item-exp.unlocked {
  color: #10b981;
}
.technique-popup .popup-content .close-technique-popup {
  width: 100%;
  padding: 12px;
  background: rgba(0, 0, 0, 0.3);
  color: var(--text-secondary);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.technique-popup .popup-content .close-technique-popup:hover {
  background: var(--accent-primary);
  color: var(--bg-primary);
}
@keyframes btnPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(232, 140, 58, 0.4);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(232, 140, 58, 0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .carousel-3d {
    animation: none !important;
    transform: none !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
  }
  .carousel-canvas {
    position: relative !important;
    transform: none !important;
    margin: 0 8px !important;
  }
  .carousel-wrapper {
    perspective: none !important;
  }
}
.player-title,
#playerTitle {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  background: rgba(26, 26, 42, 0.6);
  border: 2px solid rgba(192, 160, 128, 0.3);
  border-radius: 8px !important;
  padding: 6px 16px 6px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}
.player-title:hover,
#playerTitle:hover {
  background: rgba(26, 26, 42, 0.9);
  border-color: rgba(192, 160, 128, 0.5);
  transform: scale(1.02);
}
.player-title.quality-white,
#playerTitle.quality-white {
  border-color: #9ca3af;
  box-shadow: 0 0 8px rgba(156, 163, 175, 0.3);
}
.player-title.quality-green,
#playerTitle.quality-green {
  border-color: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
}
.player-title.quality-blue,
#playerTitle.quality-blue {
  border-color: #3b82f6;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.3);
}
.player-title.quality-purple,
#playerTitle.quality-purple {
  border-color: #a855f7;
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.3);
}
.player-title.quality-orange,
#playerTitle.quality-orange {
  border-color: #f59e0b;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.3);
}
.player-title.quality-red,
#playerTitle.quality-red {
  border-color: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.3);
}
.player-title.quality-rainbow,
#playerTitle.quality-rainbow {
  border: 2px solid #f59e0b;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.5), 0 0 4px rgba(239, 68, 68, 0.3);
  animation: rainbowGlow 2s ease-in-out infinite;
}
.player-title .title-icon,
#playerTitle .title-icon {
  font-size: 16px;
  line-height: 1;
}
.player-title .title-name,
#playerTitle .title-name {
  font-size: 13px;
  font-weight: bold;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.player-title .title-desc,
#playerTitle .title-desc {
  font-size: 10px;
  color: #888;
  margin-left: 8px;
  padding-left: 8px;
  border-left: 1px solid rgba(192, 160, 128, 0.3);
  display: none;
}
.player-title:hover .title-desc,
#playerTitle:hover .title-desc {
  display: inline-block;
}
@keyframes rainbowGlow {
  0% {
    box-shadow: 0 0 5px #ef4444, 0 0 10px #f59e0b;
  }
  50% {
    box-shadow: 0 0 15px #f59e0b, 0 0 25px #10b981;
  }
  100% {
    box-shadow: 0 0 5px #3b82f6, 0 0 10px #a855f7;
  }
}
/**
 * ==================== battle.less ====================
 * 战斗模块 Canvas 版
 * 最后更新：2026-05-11
 * 
 * 使用的 base.less 组件：
 * - 按钮：.btn (各变体)
 * - 进度条：.progress-container .progress-sm（小进度条）
 * - 弹窗：.modal-overlay, .modal-content
 * - 滚动条：.hide-scrollbar() 混入
 * 
 * 覆盖的 base.less 组件：
 * - 无
 * 
 * 模块特有样式：
 * - 战斗头部区域
 * - BOSS 读条样式
 * - 画布包装器
 * - BUFF 容器
 * - 战斗统计面板
 * - 血条能量条区域
 * - 快捷药剂栏
 * - 底部操控区（摇杆 + 技能按钮）
 * - 地图选择弹窗
 * - castPulse、warningBlink 动画
 */
/**
 * ==================== battle.less ====================
 * 战斗模块 Canvas 版
 * 最后更新：2026-06-02
 * 
 * 修改：添加模块内部滚动，不影响全局布局
 */
.battle-module {
  user-select: none;
  -webkit-user-select: none;
  background: var(--bg-primary);
  z-index: 200;
  transition: background var(--transition-normal);
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  position: relative;
}
.battle-module input,
.battle-module textarea {
  user-select: text;
  -webkit-user-select: text;
}
.battle-module .battle-header {
  flex-shrink: 0;
}
.battle-module .battle-header .battle-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--grad-card);
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
  position: relative;
  background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 3px, rgba(0, 0, 0, 0.04) 3px 4px, transparent 4px 6px);
  justify-content: center;
}
.battle-module .battle-header .battle-title-bar h2 {
  flex: 1;
  font-size: 16px;
  font-weight: bold;
  color: var(--accent-bright);
  margin: 0;
  letter-spacing: 0.15em;
  padding: 4px 16px;
  position: relative;
  background: linear-gradient(90deg, rgba(62, 124, 140, 0.18), transparent 70%);
  border-left: 2px solid var(--accent-primary);
  text-shadow: 0 0 10px var(--accent-glow);
}
.battle-module .battle-buttons-row {
  display: flex;
  gap: 6px;
  padding: 6px 8px;
}
.battle-module .battle-buttons-row button {
  flex: 1;
  padding: 6px 4px;
  background: linear-gradient(135deg, #629bf8, #3b82f6, #0b63f3);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}
.battle-module .battle-buttons-row button:first-child {
  background: linear-gradient(135deg, #13df9b, #10b981, #0c8a60);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}
.battle-module .battle-buttons-row button:last-child {
  background: linear-gradient(135deg, #f26a6a, #ef4444, #eb1515);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}
.battle-module .battle-buttons-row button#dungeonEntryBtn {
  background: var(--grad-accent);
  box-shadow: 0 0 0 1px var(--accent-line), var(--shadow-accent-sm), inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}
.battle-module .battle-buttons-row button:active {
  transform: scale(0.96);
}
.battle-module .battle-buttons-row button.secret-realm-locked,
.battle-module .battle-buttons-row button[disabled] {
  cursor: not-allowed;
  filter: grayscale(1);
  opacity: 0.45;
  box-shadow: none;
}
.battle-module .battle-buttons-row button.secret-realm-locked:active,
.battle-module .battle-buttons-row button[disabled]:active {
  transform: none;
}
.battle-module .battle-stats-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 8px;
  background: var(--grad-jade);
  font-size: 11px;
  color: var(--text-secondary);
  flex-wrap: wrap;
  gap: 6px;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}
.battle-module .battle-stats-row .stat-item {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
  white-space: nowrap;
}
.battle-module .battle-stats-row .stat-item .stat-label {
  color: var(--text-muted);
}
.battle-module .battle-stats-row .stat-item .stat-value {
  color: var(--accent-primary);
  font-weight: bold;
}
.battle-module .battle-stats-row .stat-item.current-map-item .stat-value {
  color: #10b981;
}
.battle-module .boss-cast-bar {
  flex-shrink: 0;
  margin: 1px 5px;
  padding: 4px 8px;
  background: var(--grad-card);
  border-radius: 12px;
  border-left: 3px solid #6b7280;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.battle-module .boss-cast-bar.casting {
  border-left-color: #ef4444;
  animation: castPulse 0.5s ease-in-out infinite;
  box-shadow: 0 2px 12px rgba(239, 68, 68, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.battle-module .boss-cast-bar.casting .cast-skill-name {
  color: #ef4444;
}
.battle-module .boss-cast-bar.casting .cast-tip {
  color: var(--accent-primary);
}
.battle-module .boss-cast-bar .cast-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  font-size: 11px;
}
.battle-module .boss-cast-bar .cast-header .cast-skill-name {
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
}
.battle-module .boss-cast-bar .cast-header .cast-skill-name::before {
  content: "⚠️";
  font-size: 11px;
  animation: warningBlink 1s step-end infinite;
}
.battle-module .boss-cast-bar .cast-header .cast-tip {
  font-size: 9px;
  background: var(--bg-card);
  padding: 2px 8px;
  border-radius: 12px;
  color: var(--text-muted);
}
.battle-module .boss-cast-bar .cast-progress {
  height: 8px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5), inset 0 -1px 0 rgba(255, 255, 255, 0.05);
}
.battle-module .boss-cast-bar .cast-progress .cast-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #ef4444, #f97316, var(--accent-primary));
  transition: width 0.05s linear;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.battle-module .battle-canvas-wrapper {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  overflow: hidden;
  position: relative;
}
.battle-module #battleCanvas {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-primary));
  border-radius: 8px;
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  cursor: crosshair;
  display: block;
  aspect-ratio: 600 / 450;
}
.battle-module .buffs-container {
  position: absolute;
  left: 5px;
  top: 15px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  pointer-events: none;
  z-index: 20;
  max-width: 115px;
}
.battle-module .buffs-container .buff-item {
  background: var(--grad-card);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 3px 8px;
  border-left: 3px solid var(--accent-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  animation: fadeIn 0.2s ease;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.battle-module .buffs-container .buff-item .buff-icon {
  font-size: 12px;
}
.battle-module .buffs-container .buff-item .buff-name {
  color: var(--accent-primary);
  font-weight: 600;
}
.battle-module .buffs-container .buff-item .buff-time {
  color: #10b981;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}
.battle-module .combat-stats-panel {
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  gap: 4px;
  padding: 4px;
  background: var(--grad-card);
  border-radius: 12px;
  backdrop-filter: blur(8px);
  margin: 4px 8px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.battle-module .combat-stats-panel .stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.25);
  padding: 0 12px;
  border-radius: 12px;
  font-size: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.battle-module .combat-stats-panel .stat-item span:first-child {
  color: var(--text-muted);
}
.battle-module .combat-stats-panel .stat-item span:last-child {
  color: var(--accent-primary);
  font-weight: bold;
  font-variant-numeric: tabular-nums;
}
.battle-module .player-status-bars {
  flex-shrink: 0;
  display: flex;
  gap: 12px;
  padding: 6px 8px;
  background: var(--grad-card);
  margin: 0 8px 4px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.battle-module .player-status-bars .hp-bar,
.battle-module .player-status-bars .mp-bar {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
}
.battle-module .player-status-bars .hp-bar .bar-label,
.battle-module .player-status-bars .mp-bar .bar-label {
  font-size: 11px;
  width: 20px;
  font-weight: 600;
}
.battle-module .player-status-bars .hp-bar .bar-container,
.battle-module .player-status-bars .mp-bar .bar-container {
  flex: 1;
  height: 12px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 8px), rgba(0, 0, 0, 0.6);
  background-size: 8px 100%, auto;
  border-radius: 8px;
  overflow: hidden;
  clip-path: polygon(4px 0, 100% 0, 100% 100%, 0 100%, 0 4px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.55), inset 0 -1px 0 rgba(255, 255, 255, 0.06);
}
.battle-module .player-status-bars .hp-bar .bar-container .bar-fill,
.battle-module .player-status-bars .mp-bar .bar-container .bar-fill {
  height: 100%;
  transition: width 0.2s;
}
.battle-module .player-status-bars .hp-bar .bar-container .bar-fill.hp-fill,
.battle-module .player-status-bars .mp-bar .bar-container .bar-fill.hp-fill {
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.28) 0 1px, transparent 1px 8px), linear-gradient(90deg, #ef4444, #f97316);
  background-size: 8px 100%, auto;
  border-radius: 8px;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25), inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}
.battle-module .player-status-bars .hp-bar .bar-container .bar-fill.mp-fill,
.battle-module .player-status-bars .mp-bar .bar-container .bar-fill.mp-fill {
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.28) 0 1px, transparent 1px 8px), linear-gradient(90deg, #3b82f6, #60a5fa);
  background-size: 8px 100%, auto;
  border-radius: 8px;
  box-shadow: 0 0 6px rgba(59, 130, 246, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25), inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}
.battle-module .player-status-bars .hp-bar .bar-text,
.battle-module .player-status-bars .mp-bar .bar-text {
  font-size: 9px;
  min-width: 55px;
  color: var(--text-secondary);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.battle-module .dungeon-quick-use {
  flex-shrink: 0;
  padding: 4px 8px;
  background: var(--grad-card);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.battle-module .dungeon-quick-use .character-btn {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.battle-module .dungeon-quick-use .character-btn button {
  position: relative;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2a2f35, #1e293b);
  border: 1px solid var(--border-color);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}
.battle-module .dungeon-quick-use .character-btn button:hover {
  transform: scale(1.05);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-accent-sm), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.battle-module .dungeon-quick-use .character-btn button .btn-count {
  position: absolute;
  bottom: -2px;
  right: -2px;
  font-size: 10px;
  color: white;
  background: #ef4444;
  padding: 0px 4px;
  border-radius: 12px;
  font-weight: bold;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
.battle-module .dungeon-quick-use .character-btn button:active {
  transform: scale(0.96);
}
.battle-module .dungeon-quick-use .character-btn button.change-character-btn {
  background: linear-gradient(135deg, #a855f7, #7c3aed, #6d28d9);
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.25), inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}
.battle-module .dungeon-quick-use .character-btn button.settings-btn {
  background: linear-gradient(135deg, #629bf8, #3b82f6, #0b63f3);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.25), inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}
.battle-module .battle-controls {
  flex-shrink: 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 12px 12px 80px;
  gap: 5px;
  background: var(--grad-card);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.battle-module .battle-stick-container {
  width: 80px;
  height: 80px;
  position: relative;
  flex-shrink: 0;
}
.battle-module .battle-skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  width: 100%;
  max-width: 200px;
}
.battle-module .battle-skills-grid .skill-btn {
  min-width: 50px;
  min-height: 50px;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-primary));
  border: 2px solid var(--accent-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-accent-sm), inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 -1px 0 rgba(0, 0, 0, 0.25);
  transition: all var(--transition-fast);
}
.battle-module .battle-skills-grid .skill-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: var(--shadow-accent-md), inset 0 1px 0 rgba(255, 255, 255, 0.18), inset 0 -1px 0 rgba(0, 0, 0, 0.25);
}
.battle-module .battle-skills-grid .skill-btn .skill-icon,
.battle-module .battle-skills-grid .skill-btn .skill-name,
.battle-module .battle-skills-grid .skill-btn .skill-cost,
.battle-module .battle-skills-grid .skill-btn .skill-cd {
  pointer-events: none;
}
.battle-module .battle-skills-grid .skill-btn .skill-icon {
  font-size: 18px;
  margin-bottom: 4px;
  filter: drop-shadow(0 0 4px var(--accent-glow));
}
.battle-module .battle-skills-grid .skill-btn .skill-name {
  font-size: 9px;
  font-weight: bold;
  letter-spacing: 0.02em;
}
.battle-module .battle-skills-grid .skill-btn .skill-cost,
.battle-module .battle-skills-grid .skill-btn .skill-cd {
  font-size: 10px;
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}
.battle-module .battle-skills-grid .skill-btn .skill-cost {
  color: #10b981;
}
.battle-module .battle-skills-grid .skill-btn .skill-cd {
  color: #f59e0b;
}
.battle-module .battle-skills-grid .skill-btn:active:not(:disabled) {
  transform: scale(0.96);
}
.battle-module .battle-skills-grid .skill-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(0.4);
}
.battle-stick-container .dungeon-stick-container {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 80px !important;
  height: 80px !important;
  opacity: 0.85;
}
.battle-stick-container .dungeon-stick-container .dungeon-stick-base {
  width: 100%;
  height: 100%;
  background: var(--grad-card);
  border-radius: 50%;
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.battle-stick-container .dungeon-stick-container .dungeon-stick-thumb {
  width: 50px;
  height: 50px;
  background: var(--grad-accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 -1px 0 rgba(0, 0, 0, 0.2);
  transition: transform 0.05s linear;
}
.battle-map-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.battle-map-page.hidden {
  display: none;
}
.battle-map-page .battle-map-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--grad-card);
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
  position: relative;
  background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 3px, rgba(0, 0, 0, 0.04) 3px 4px, transparent 4px 6px);
  justify-content: center;
}
.battle-map-page .battle-map-header h2 {
  flex: 1;
  font-size: 16px;
  font-weight: bold;
  color: var(--accent-bright);
  margin: 0;
  letter-spacing: 0.15em;
  padding: 4px 16px;
  position: relative;
  background: linear-gradient(90deg, rgba(62, 124, 140, 0.18), transparent 70%);
  border-left: 2px solid var(--accent-primary);
  text-shadow: 0 0 10px var(--accent-glow);
}
.battle-map-page .battle-map-tabs {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px 2px;
}
.battle-map-page .battle-map-tabs .battle-map-tab {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 12px;
  background: var(--grad-card);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
}
.battle-map-page .battle-map-tabs .battle-map-tab .tab-icon {
  font-size: 13px;
}
.battle-map-page .battle-map-tabs .battle-map-tab .tab-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}
.battle-map-page .battle-map-tabs .battle-map-tab .tab-count {
  font-size: 9px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0 5px;
  line-height: 14px;
}
.battle-map-page .battle-map-tabs .battle-map-tab:hover {
  border-color: var(--accent-line);
  transform: translateY(-1px);
}
.battle-map-page .battle-map-tabs .battle-map-tab.active {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary, var(--accent-primary)));
  border-color: var(--accent-line);
  box-shadow: var(--shadow-accent-sm);
}
.battle-map-page .battle-map-tabs .battle-map-tab.active .tab-label,
.battle-map-page .battle-map-tabs .battle-map-tab.active .tab-count {
  color: white;
}
.battle-map-page .battle-map-tabs .battle-map-tab.active .tab-count {
  background: rgba(255, 255, 255, 0.22);
}
.battle-map-page .battle-map-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 10px 12px calc(56px + 16px);
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.battle-map-page .battle-map-list::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
  background: transparent;
}
.battle-map-page .battle-map-list .map-option {
  position: relative;
  margin-bottom: 12px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border-color);
  background: var(--grad-card);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: all var(--transition-fast);
}
.battle-map-page .battle-map-list .map-option:hover {
  transform: translateY(-2px);
  border-color: var(--accent-line);
  box-shadow: var(--shadow-accent-sm);
}
.battle-map-page .battle-map-list .map-option:active {
  transform: scale(0.985);
}
.battle-map-page .battle-map-list .map-option::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--mc1, var(--accent-primary)), var(--mc2, var(--accent-primary)));
}
.battle-map-page .battle-map-list .map-option.locked {
  opacity: 0.55;
  cursor: not-allowed;
}
.battle-map-page .battle-map-list .map-option.locked:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
}
.battle-map-page .battle-map-list .map-option.target:not(.locked) {
  border-color: var(--mc1, var(--accent-primary));
  box-shadow: 0 0 0 1px var(--mc1, var(--accent-primary)), 0 4px 18px rgba(250, 204, 21, 0.18);
}
.battle-map-page .battle-map-list .map-option.target:not(.locked) .map-status.target {
  background: linear-gradient(135deg, var(--mc1, #f59e0b), var(--mc2, #f59e0b));
  color: white;
}
.battle-map-page .battle-map-list .map-option .map-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 8px;
}
.battle-map-page .battle-map-list .map-option .map-banner .map-banner-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--border-color);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.battle-map-page .battle-map-list .map-option .map-banner .map-banner-info {
  flex: 1;
  min-width: 0;
}
.battle-map-page .battle-map-list .map-option .map-banner .map-banner-info .map-name {
  font-size: 14px;
  font-weight: bold;
  color: var(--text-primary);
}
.battle-map-page .battle-map-list .map-option .map-banner .map-banner-info .map-level {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
}
.battle-map-page .battle-map-list .map-option .map-banner .map-boss-tag {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
  color: #ffb4a3;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.25), rgba(239, 68, 68, 0.08));
  border: 1px solid rgba(239, 68, 68, 0.3);
  max-width: 96px;
}
.battle-map-page .battle-map-list .map-option .map-banner .map-boss-tag span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.battle-map-page .battle-map-list .map-option .map-body {
  padding: 0 12px 10px;
}
.battle-map-page .battle-map-list .map-option .map-body .map-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 8px;
}
.battle-map-page .battle-map-list .map-option .map-body .map-monsters {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.battle-map-page .battle-map-list .map-option .map-body .map-monsters .monster-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: 10px;
  font-size: 10px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.battle-map-page .battle-map-list .map-option .map-body .map-monsters .monster-chip.normal {
  color: #a3e635;
}
.battle-map-page .battle-map-list .map-option .map-body .map-monsters .monster-chip.elite {
  color: #e88c3a;
}
.battle-map-page .battle-map-list .map-option .map-body .map-monsters .monster-chip.boss {
  color: #fb7185;
  border-color: rgba(251, 113, 133, 0.25);
}
.battle-map-page .battle-map-list .map-option .map-body .map-lock {
  margin-top: 6px;
  font-size: 10px;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  border-radius: 8px;
  padding: 3px 8px;
}
.battle-map-page .battle-map-list .map-option .map-body .map-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 9px;
}
.battle-map-page .battle-map-list .map-option .map-body .map-footer .map-status-wrap {
  min-width: 0;
}
.battle-map-page .battle-map-list .map-option .map-body .map-footer .map-status-wrap .map-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
}
.battle-map-page .battle-map-list .map-option .map-body .map-footer .map-status-wrap .map-status.done {
  color: #10b981;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.battle-map-page .battle-map-list .map-option .map-body .map-footer .map-status-wrap .map-status.ready {
  color: #60a5fa;
  background: rgba(96, 165, 250, 0.15);
  border: 1px solid rgba(96, 165, 250, 0.3);
}
.battle-map-page .battle-map-list .map-option .map-body .map-footer .map-status-wrap .map-status.locked {
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.battle-map-page .battle-map-list .map-option .map-body .map-footer .map-enter-btn {
  flex-shrink: 0;
  padding: 6px 16px;
  background: linear-gradient(135deg, #13df9b, #10b981, #0c8a60);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}
.battle-map-page .battle-map-list .map-option .map-body .map-footer .map-enter-btn:hover {
  transform: scale(1.03);
}
.battle-map-page .battle-map-list .map-option .map-body .map-footer .map-enter-btn:active {
  transform: scale(0.96);
}
.battle-canvas-page {
  flex: 1;
  min-height: 0;
}
.battle-canvas-page.hidden {
  display: none;
}
@keyframes castPulse {
  0%,
  100% {
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
    border-left-color: #ef4444;
  }
  50% {
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.6);
    border-left-color: #ff6666;
  }
}
@keyframes warningBlink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
/**
 * ==================== bag.less ====================
 * 背包模块
 * 最后更新：2026-05-11
 * 
 * 使用的 base.less 组件：
 * - 按钮：.btn-primary, .btn-danger, .btn-success
 * - 卡片：.card, .card-simple
 * - 进度条：.progress-container
 * - 弹窗：.modal-overlay, .modal-content
 * - 滚动条：.hide-scrollbar() 混入
 * 
 * 覆盖的 base.less 组件：
 * - 无
 * 
 * 模块特有样式：
 * - 装备栏布局（16槽位）
 * - 背包网格布局（5列）
 * - 物品格子样式
 * - 品质边框颜色
 * - 装备总属性面板
 * - 分页控件
 */
.bag-module {
  background: var(--bg-primary);
  transition: background var(--transition-normal);
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  position: relative;
}
.bag-container {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.bag-fixed-header {
  flex-shrink: 0;
  padding: 8px 8px 0;
  background: var(--grad-card);
  backdrop-filter: blur(20px);
  z-index: 10;
  border-top: 2px solid var(--accent-primary);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 3px, rgba(0, 0, 0, 0.04) 3px 4px, transparent 4px 6px);
}
.bag-fixed-header .bag-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--grad-card);
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
  position: relative;
  background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 3px, rgba(0, 0, 0, 0.04) 3px 4px, transparent 4px 6px);
  justify-content: center;
  margin: -8px -8px 8px;
}
.bag-fixed-header .bag-title-bar h2 {
  flex: 1;
  font-size: 16px;
  font-weight: bold;
  color: var(--accent-bright);
  margin: 0;
  letter-spacing: 0.15em;
  padding: 4px 16px;
  position: relative;
  background: linear-gradient(90deg, rgba(62, 124, 140, 0.18), transparent 70%);
  border-left: 2px solid var(--accent-primary);
  text-shadow: 0 0 10px var(--accent-glow);
}
.equipment-container {
  background: var(--grad-jade);
  border: 1px solid var(--border-color);
  border-top: 2px solid var(--accent-primary);
  border-radius: 8px;
  padding: 5px 8px;
  margin-bottom: 2px;
  overflow-x: auto;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), inset 0 -1px 0 rgba(0, 0, 0, 0.2);
  position: relative;
  background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 3px, rgba(0, 0, 0, 0.03) 3px 4px, transparent 4px 6px);
}
.equipment-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.4;
  background: linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 8px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 2px 8px, /* 右上 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 8px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 2px 8px, /* 左下 */ linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 8px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 2px 8px, /* 右下 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 8px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 2px 8px;
  background-repeat: no-repeat;
}
.equipment-row {
  display: flex;
  flex-wrap: nowrap;
  height: 60px;
  gap: 2px;
  margin-bottom: 2px;
}
.equipment-row:last-child {
  margin-bottom: 0;
}
.equipment-slot {
  flex: 1;
  min-width: 48px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 8px;
  padding: 5px 4px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid var(--border-color);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), inset 0 -1px 0 rgba(0, 0, 0, 0.2);
  position: relative;
}
.equipment-slot::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.35;
  background: linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 5px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 2px 5px, /* 右上 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 5px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 2px 5px, /* 左下 */ linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 5px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 2px 5px, /* 右下 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 5px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 2px 5px;
  background-repeat: no-repeat;
}
.equipment-slot:hover {
  background: rgba(0, 0, 0, 0.5);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent-sm), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.equipment-slot:not(.empty).quality-rainbow:hover {
  background: rgba(0, 0, 0, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 0 10px rgba(255, 107, 255, 0.45);
}
.equipment-slot.empty .slot-icon {
  opacity: 0.5;
}
.equipment-slot.empty .slot-name {
  color: var(--text-muted);
  font-size: 10px;
}
.equipment-slot:not(.empty) {
  background: linear-gradient(135deg, var(--accent-soft), rgba(0, 0, 0, 0.06));
  border-color: var(--accent-primary);
  box-shadow: 0 2px 8px rgba(62, 124, 140, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.1), inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}
.equipment-slot:not(.empty) .slot-icon {
  display: none;
}
.equipment-slot:not(.empty) .item-name {
  font-size: 10px;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--accent-primary);
  max-width: 45px;
}
.equipment-slot:not(.empty) .item-name-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.equipment-slot:not(.empty) .item-level {
  font-size: 9px;
  color: var(--text-muted);
  margin-top: 2px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.equipment-slot:not(.empty) .equip-enhance-flags {
  font-size: 7px;
  margin-top: 2px;
  color: #a855f7;
}
.equipment-slot .slot-icon {
  font-size: 16px;
  display: block;
  margin-bottom: 4px;
}
.equipment-slot .slot-name {
  font-size: 10px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.equipment-slot:not(.empty).quality-gray {
  border-color: #808080;
}
.equipment-slot:not(.empty).quality-white {
  border-color: #f5f5f5;
}
.equipment-slot:not(.empty).quality-green {
  border-color: #4ade80;
}
.equipment-slot:not(.empty).quality-blue {
  border-color: #60a5fa;
}
.equipment-slot:not(.empty).quality-purple {
  border-color: #c084fc;
}
.equipment-slot:not(.empty).quality-orange {
  border-color: #fb923c;
}
.equipment-slot:not(.empty).quality-red {
  border-color: #ef4444;
}
.equipment-slot:not(.empty).quality-rainbow {
  position: relative;
  border-color: transparent;
  box-shadow: 0 0 10px rgba(255, 107, 255, 0.45);
}
.equipment-slot:not(.empty).quality-rainbow::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}
.equipment-summary {
  background: var(--grad-jade);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 2px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), inset 0 -1px 0 rgba(0, 0, 0, 0.2);
  position: relative;
}
.equipment-summary::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.35;
  background: linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 2px 6px, /* 右上 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 2px 6px, /* 左下 */ linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 2px 6px, /* 右下 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 2px 6px;
  background-repeat: no-repeat;
}
.equipment-summary .summary-title {
  font-size: 10px;
  color: var(--accent-primary);
  margin-bottom: 0;
  font-weight: bold;
  letter-spacing: 0.02em;
}
.equipment-summary .summary-stats {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.equipment-summary .summary-stats .stat-item {
  font-size: 10px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  line-height: 1.4;
}
.equipment-summary .summary-stats .stat-item .stat-value {
  color: #10b981;
  font-weight: bold;
}
.equipment-summary .section-title {
  font-size: 10px;
  color: var(--accent-primary);
  margin: 0;
  font-weight: bold;
}
.bag-info-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--grad-jade);
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--accent-line);
  border-radius: 8px;
  padding: 5px 12px;
  margin-bottom: 5px;
  font-size: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}
.bag-info-bar .bag-capacity {
  color: var(--text-secondary);
}
.bag-info-bar .bag-capacity .capacity-value {
  color: var(--accent-primary);
  font-weight: bold;
  font-variant-numeric: tabular-nums;
}
.bag-info-bar .bag-capacity .capacity-max {
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.bag-info-bar .bag-capacity .capacity-percent {
  color: var(--text-muted);
  font-size: 9px;
  margin-left: 4px;
  font-variant-numeric: tabular-nums;
}
.bag-info-bar .bag-destiny {
  color: var(--text-secondary);
}
.bag-info-bar .bag-destiny .destiny-value {
  color: var(--accent-primary);
  font-weight: bold;
  margin-left: 4px;
  font-variant-numeric: tabular-nums;
}
.bag-info-bar .bag-expand-btn {
  background: linear-gradient(135deg, #4a7d8c, #3e6b79, #2f5461);
  border: 1px solid var(--accent-line);
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 10px;
  color: white;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(62, 124, 140, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}
.bag-info-bar .bag-expand-btn:hover {
  transform: scale(1.02);
}
.bag-info-bar .bag-expand-btn:active {
  transform: scale(0.96);
}
.bag-info-bar #bagFullWarning {
  color: #ff4444;
  font-weight: bold;
  animation: bag-blink 1s ease-in-out infinite;
}
@keyframes bag-blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}
.bag-actions {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 5px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border-color);
}
.bag-actions .bag-actions-btn {
  display: flex;
  justify-content: space-around;
  gap: 5px;
  flex-wrap: wrap;
}
.bag-actions .bag-actions-btn .action-btn {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 10px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  flex: 1;
  text-align: center;
  letter-spacing: 0.02em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}
.bag-actions .bag-actions-btn .action-btn:hover {
  background: rgba(0, 0, 0, 0.5);
  color: var(--accent-primary);
  border-color: var(--accent-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 8px var(--accent-soft);
}
.bag-actions .bag-actions-btn .action-btn.active {
  background: var(--grad-accent);
  color: var(--bg-primary);
  border-color: var(--accent-primary);
  font-weight: 600;
  box-shadow: var(--shadow-accent-sm), inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}
.bag-actions .bag-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 4px 0;
}
.bag-actions .bag-pagination .page-prev,
.bag-actions .bag-pagination .page-next {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 6px 16px;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}
.bag-actions .bag-pagination .page-prev:hover:not(:disabled),
.bag-actions .bag-pagination .page-next:hover:not(:disabled) {
  background: var(--grad-accent);
  color: var(--bg-primary);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-accent-sm), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.bag-actions .bag-pagination .page-prev:disabled,
.bag-actions .bag-pagination .page-next:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.bag-actions .bag-pagination .page-info {
  font-size: 12px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}
.bag-scroll-content {
  flex: 1;
  padding: 12px;
  padding-bottom: 60px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.bag-scroll-content::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
  background: transparent;
}
.bag-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  grid-auto-rows: minmax(80px, auto);
  width: 100%;
}
@media (max-width: 390px) {
  .bag-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.bag-grid-item {
  background: rgba(0, 0, 0, 0.35);
  border-radius: 8px;
  padding: 10px 4px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid var(--border-color);
  min-height: 85px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), inset 0 -1px 0 rgba(0, 0, 0, 0.2);
  position: relative;
}
.bag-grid-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.3;
  background: linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 2px 6px, /* 右上 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 2px 6px, /* 左下 */ linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 2px 6px, /* 右下 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 2px 6px;
  background-repeat: no-repeat;
}
.bag-grid-item:hover {
  transform: translateY(-2px);
  background: rgba(0, 0, 0, 0.5);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-accent-sm), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.bag-grid-item.quality-rainbow:hover {
  background: rgba(0, 0, 0, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 0 10px rgba(255, 107, 255, 0.45);
}
.bag-grid-item.empty {
  background: rgba(0, 0, 0, 0.2);
  cursor: default;
  min-height: 85px;
}
.bag-grid-item.empty:hover {
  transform: none;
}
.bag-grid-item .item-icon {
  font-size: 26px;
  margin-bottom: 2px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}
.bag-grid-item .item-name {
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-secondary);
  max-width: 70px;
}
.bag-grid-item .item-suffix {
  position: absolute;
  top: 4px;
  right: 6px;
  font-size: 8px;
  color: #e88c3a;
  background: rgba(0, 0, 0, 0.6);
  padding: 1px 5px;
  border-radius: 10px;
  white-space: nowrap;
  z-index: 2;
}
.bag-grid-item .item-slot-tag {
  position: absolute;
  top: 4px;
  left: 6px;
  font-size: 9px;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.5);
  padding: 1px 5px;
  border-radius: 10px;
  z-index: 2;
}
.bag-grid-item .item-level-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 2px;
}
.bag-grid-item .item-level {
  font-size: 9px;
  color: var(--text-muted);
}
.bag-grid-item .compare-arrow {
  display: inline-block;
  font-size: 10px;
  font-weight: bold;
}
.bag-grid-item .compare-arrow.upgrade {
  color: #4ade80;
}
.bag-grid-item .compare-arrow.downgrade {
  color: #ef4444;
}
.bag-grid-item .compare-arrow.new {
  color: #e88c3a;
}
.bag-grid-item .item-stack {
  position: absolute;
  bottom: 4px;
  right: 6px;
  font-size: 10px;
  color: var(--accent-primary);
  background: rgba(0, 0, 0, 0.6);
  padding: 0px 5px;
  border-radius: 12px;
  font-weight: bold;
  z-index: 2;
}
.bag-grid-item .item-set-info {
  font-size: 7px;
  color: #a855f7;
  background: rgba(168, 85, 247, 0.2);
  border-radius: 10px;
  padding: 1px 4px;
  margin-top: 2px;
  text-align: center;
  display: inline-block;
}
.bag-grid-item .bag-enhance-flags {
  position: absolute;
  bottom: 0px;
  left: 2px;
  display: flex;
  gap: 0px;
  font-size: 8px;
}
.bag-grid-item .bag-enhance-flags .bag-enhance-flag {
  background: rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  padding: 0px;
}
.bag-grid-item .bag-enhance-flags .bag-enhance-flag.enchant {
  color: #a855f7;
}
.bag-grid-item .bag-enhance-flags .bag-enhance-flag.gem {
  color: #60a5fa;
}
.bag-grid-item .bag-enhance-flags .bag-enhance-flag.socket {
  color: #6b7280;
}
.bag-grid-item .bag-enhance-flags .bag-enhance-flag.affix {
  color: #f59e0b;
}
.bag-grid-item.quality-gray {
  border-color: #808080;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 0 4px rgba(128, 128, 128, 0.15);
}
.bag-grid-item.quality-white {
  border-color: #f5f5f5;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 0 4px rgba(245, 245, 245, 0.15);
}
.bag-grid-item.quality-green {
  border-color: #4ade80;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 0 6px rgba(74, 222, 128, 0.25);
}
.bag-grid-item.quality-blue {
  border-color: #60a5fa;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 0 6px rgba(96, 165, 250, 0.25);
}
.bag-grid-item.quality-purple {
  border-color: #c084fc;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 0 8px rgba(192, 132, 252, 0.3);
}
.bag-grid-item.quality-orange {
  border-color: #fb923c;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 0 8px rgba(251, 146, 60, 0.35);
}
.bag-grid-item.quality-red {
  border-color: #ef4444;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 0 10px rgba(250, 21, 21, 0.4);
}
.bag-grid-item.quality-rainbow {
  position: relative;
  border-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 0 10px rgba(255, 107, 255, 0.45);
}
.bag-grid-item.quality-rainbow::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}
.bag-grid-item.quality-rainbow .item-name {
  background: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent !important;
}
.auto-sell-popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}
.auto-sell-popup.hidden {
  display: none;
}
.auto-sell-popup .popup-mask {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  z-index: 10000;
}
.auto-sell-popup .popup-content {
  position: relative;
  width: 90%;
  max-width: 350px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 2px solid #e88c3a;
  border-radius: 12px;
  z-index: 10001;
  overflow: hidden;
}
.auto-sell-popup .popup-content .popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-secondary);
  background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 3px, rgba(0, 0, 0, 0.03) 3px 4px, transparent 4px 6px);
}
.auto-sell-popup .popup-content .popup-header .popup-title {
  font-size: 16px;
  font-weight: bold;
  color: var(--accent-bright);
  letter-spacing: 0.1em;
  text-shadow: 0 0 10px var(--accent-glow);
}
.auto-sell-popup .popup-content .popup-header .popup-close {
  width: 32px;
  height: 32px;
  background: #22323a;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s;
}
.auto-sell-popup .popup-content .popup-header .popup-close:hover {
  background: var(--color-danger);
  border-color: var(--color-danger);
  color: white;
}
.auto-sell-popup .popup-content .popup-header .popup-close:active {
  transform: scale(0.96);
}
.auto-sell-popup .popup-content .popup-body {
  padding: 16px 20px;
}
.auto-sell-popup .popup-content .popup-body .setting-section {
  margin-bottom: 20px;
}
.auto-sell-popup .popup-content .popup-body .setting-section .setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.auto-sell-popup .popup-content .popup-body .setting-section .setting-row .setting-label {
  font-size: 14px;
  color: #d9a36a;
}
.auto-sell-popup .popup-content .popup-body .setting-section .setting-row .level-input {
  width: 80px;
  padding: 6px;
  background: #2a2f35;
  border: 1px solid #3a4048;
  border-radius: 6px;
  color: #d9a36a;
  text-align: center;
}
.auto-sell-popup .popup-content .popup-body .setting-section .setting-tip {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 4px;
}
.auto-sell-popup .popup-content .popup-body .setting-section .setting-label {
  font-size: 13px;
  color: #e88c3a;
  margin-bottom: 10px;
  display: block;
}
.auto-sell-popup .popup-content .popup-body .setting-section .quality-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.auto-sell-popup .popup-content .popup-body .setting-section .quality-grid .quality-option {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.auto-sell-popup .popup-content .popup-body .setting-section .quality-grid .quality-option input {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #e88c3a;
}
.auto-sell-popup .popup-content .popup-body .setting-section .quality-grid .quality-option span {
  font-size: 13px;
  color: #d9a36a;
}
.auto-sell-popup .popup-content .popup-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 215, 0, 0.2);
}
.auto-sell-popup .popup-content .popup-footer .btn-close {
  width: 100%;
  padding: 10px;
  background: #373e46;
  color: #d9a36a;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
}
.auto-sell-popup .popup-content .popup-footer .btn-close:hover {
  background: #4a525c;
}
#batchDecomposeEquipBtn {
  width: calc(100% - 40px);
  margin: 0 20px 8px 20px;
  padding: 10px;
  background: #ef4444;
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
}
#batchDecomposeEquipBtn:hover {
  background: #dc2626;
  transform: scale(1.02);
}
#batchDecomposeEquipBtn:active {
  transform: scale(0.96);
}
.toggle-switch {
  display: flex;
  gap: 0;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
}
.toggle-switch .toggle-btn {
  padding: 6px 16px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 12px;
  font-weight: 500;
  background: rgba(0, 0, 0, 0.3);
  color: #9ca3af;
}
.toggle-switch .toggle-btn.active {
  background: #e88c3a;
  color: #1f2937;
}
.toggle-switch .toggle-btn:hover:not(.active) {
  background: rgba(0, 0, 0, 0.5);
  color: #d9a36a;
}
.toggle-switch .toggle-btn:active {
  transform: scale(0.96);
}
.expand-bag-popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}
.expand-bag-popup.hidden {
  display: none;
}
.expand-bag-popup .popup-mask {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  z-index: 10000;
}
.expand-bag-popup .popup-content {
  position: relative;
  width: 90%;
  max-width: 320px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 2px solid #e88c3a;
  border-radius: 12px;
  padding: 20px;
  z-index: 10001;
  color: #d9a36a;
}
.expand-bag-popup .popup-content h3 {
  text-align: center;
  color: #e88c3a;
  margin-bottom: 15px;
  font-size: 18px;
}
.expand-bag-popup .popup-content .info-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 14px;
  padding: 5px 0;
}
.expand-bag-popup .popup-content .info-row span span {
  color: #e88c3a;
  font-weight: bold;
}
.expand-bag-popup .popup-content .input-row {
  margin: 20px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: rgba(0, 0, 0, 0.2);
  padding: 15px;
  border-radius: 8px;
}
.expand-bag-popup .popup-content .input-row label {
  font-size: 14px;
  color: #9ca3af;
}
.expand-bag-popup .popup-content .input-row input {
  width: 80px;
  padding: 8px;
  background: #2a2f35;
  border: 1px solid #3a4048;
  border-radius: 4px;
  color: #d9a36a;
  text-align: center;
  font-size: 14px;
}
.expand-bag-popup .popup-content .input-row input:focus {
  outline: none;
  border-color: #e88c3a;
}
.expand-bag-popup .popup-content .input-row .total-cost {
  font-size: 14px;
  color: #f59e0b;
  font-weight: bold;
}
.expand-bag-popup .popup-content .button-row {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.expand-bag-popup .popup-content .button-row button {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
  font-weight: bold;
}
.expand-bag-popup .popup-content .button-row button.btn-confirm {
  background: linear-gradient(90deg, #10b981, #059669);
  color: white;
}
.expand-bag-popup .popup-content .button-row button.btn-confirm:hover {
  transform: scale(1.02);
}
.expand-bag-popup .popup-content .button-row button.btn-confirm:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.expand-bag-popup .popup-content .button-row button.btn-cancel {
  background: #373e46;
  color: #d9a36a;
}
.expand-bag-popup .popup-content .button-row button.btn-cancel:hover {
  background: #4a525c;
}
.item-compare-popup .compare-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13px;
}
.item-compare-popup .compare-stat-row .stat-name {
  width: 70px;
  color: #d9a36a;
}
.item-compare-popup .compare-stat-row .old-value {
  width: 60px;
  text-align: right;
  color: #ef4444;
}
.item-compare-popup .compare-stat-row .arrow {
  width: 30px;
  text-align: center;
  color: #6b7280;
}
.item-compare-popup .compare-stat-row .new-value {
  width: 60px;
  text-align: left;
  color: #4ade80;
}
.item-compare-popup .compare-stat-row .diff {
  width: 60px;
  text-align: right;
  font-weight: bold;
}
.item-compare-popup .compare-stat-row .diff.up {
  color: #4ade80;
}
.item-compare-popup .compare-stat-row .diff.down {
  color: #ef4444;
}
.item-compare-popup .compare-stat-row .diff.equal {
  color: #9ca3af;
}
.item-compare-popup .compare-substats-title,
.item-compare-popup .compare-set-title {
  font-size: 12px;
  font-weight: bold;
  color: #e88c3a;
  margin-bottom: 10px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(232, 140, 58, 0.3);
}
/**
 * ==================== craft.less ====================
 * 百艺阁模块（种植）
 * 最后更新：2026-08-12
 * 
 * 使用的 base.less 组件：
 * - 按钮：.btn-primary, .btn-success, .btn-warning, .btn-danger
 * - 卡片：.card, .card-simple
 * - 进度条：.progress-container
 * - 弹窗：.modal-overlay, .modal-content
 * - 滚动条：.hide-scrollbar() 混入
 * 
 * 覆盖的 base.less 组件：
 * - .progress-container（自定义高度 10px）
 * 
 * 模块特有样式：
 * - 双采控制栏
 * - 主/副搜刮器状态卡片
 * - 制作进度卡片
 * - 熟练度面板
 * - 搜刮/制作技能标签
 * - 搜刮物品卡片
 * - 配方卡片
 * - 批量制作弹窗
 */
.craft-module {
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: background var(--transition-normal);
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}
.craft-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}
.craft-fixed-header {
  flex-shrink: 0;
  padding: 4px 12px 0;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border-top: 2px solid var(--accent-primary);
  border-bottom: 1px solid var(--border-color);
  z-index: 10;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 3px, rgba(0, 0, 0, 0.04) 3px 4px, transparent 4px 6px);
}
.craft-fixed-header .craft-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--grad-card);
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
  position: relative;
  background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 3px, rgba(0, 0, 0, 0.04) 3px 4px, transparent 4px 6px);
  justify-content: center;
  margin: -4px -12px 8px;
}
.craft-fixed-header .craft-title-bar h2 {
  flex: 1;
  font-size: 16px;
  font-weight: bold;
  color: var(--accent-bright);
  margin: 0;
  letter-spacing: 0.15em;
  padding: 4px 16px;
  position: relative;
  background: linear-gradient(90deg, rgba(62, 124, 140, 0.18), transparent 70%);
  border-left: 2px solid var(--accent-primary);
  text-shadow: 0 0 10px var(--accent-glow);
}
.dual-mining-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  margin-bottom: 2px;
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--accent-primary);
  position: relative;
}
.dual-mining-bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.35;
  background: linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 2px 6px, /* 右上 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 2px 6px, /* 左下 */ linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 2px 6px, /* 右下 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 2px 6px;
  background-repeat: no-repeat;
}
.dual-mining-bar .dual-status {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dual-mining-bar .dual-status .dual-label {
  font-size: 12px;
  color: var(--text-muted);
}
.dual-mining-bar .dual-status .dual-switch {
  padding: 2px 12px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 10px;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.dual-mining-bar .dual-status .dual-switch:hover {
  background: rgba(0, 0, 0, 0.7);
  border-color: var(--accent-primary);
}
.dual-mining-bar .dual-status .dual-switch.active {
  background: #10b981;
  color: white;
  border-color: #10b981;
}
.dual-mining-bar .dual-status .dual-time {
  font-size: 10px;
  color: var(--accent-primary);
}
.dual-mining-bar .destiny-info {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}
.dual-mining-bar .destiny-info .destiny-value {
  color: var(--accent-secondary);
  font-weight: bold;
}
.gather-status-row {
  display: flex;
  gap: 2px;
  margin-bottom: 2px;
}
.gather-status-card {
  flex: 1;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  padding: 5px;
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
  position: relative;
}
.gather-status-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.3;
  background: linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 2px 6px, /* 右上 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 2px 6px, /* 左下 */ linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 2px 6px, /* 右下 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 2px 6px;
  background-repeat: no-repeat;
}
.gather-status-card.idle {
  opacity: 0.7;
}
.gather-status-card.active {
  border-color: var(--accent-primary);
  background: rgba(232, 140, 58, 0.05);
}
.gather-status-card .status-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.gather-status-card .status-header .status-title {
  font-size: 10px;
  font-weight: bold;
  color: var(--accent-primary);
}
.gather-status-card .status-header .item-name {
  font-size: 10px;
  font-weight: bold;
  color: #10b981;
}
.gather-status-card .status-header .stop-btn {
  padding: 3px 8px;
  background: var(--color-danger);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 10px;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.gather-status-card .status-header .stop-btn:hover:not(:disabled) {
  background: #ef4444;
}
.gather-status-card .status-header .stop-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.gather-status-card .status-item {
  margin-bottom: 5px;
}
.gather-status-card .status-item .progress-bar {
  height: 10px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 3px;
  overflow: hidden;
}
.gather-status-card .status-item .progress-bar .progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #22c55e);
  width: 0%;
  transition: width 0.1s linear;
}
.gather-status-card .status-details {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 5px;
  padding-top: 5px;
  border-top: 1px solid var(--border-color);
  font-size: 10px;
  color: var(--text-muted);
}
.gather-status-card .status-details span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.craft-progress-card {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  padding: 5px 12px;
  margin-bottom: 5px;
  border: 1px solid var(--border-color);
  position: relative;
}
.craft-progress-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.3;
  background: linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 2px 6px, /* 右上 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 2px 6px, /* 左下 */ linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 2px 6px, /* 右下 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 2px 6px;
  background-repeat: no-repeat;
}
.craft-progress-card.idle {
  opacity: 0.7;
}
.craft-progress-card.active {
  border-color: var(--accent-primary);
  background: rgba(232, 140, 58, 0.05);
}
.craft-progress-card .progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}
.craft-progress-card .progress-header .progress-title {
  font-size: 10px;
  color: var(--accent-primary);
}
.craft-progress-card .progress-header .item-name {
  font-size: 10px;
  font-weight: bold;
  color: #10b981;
}
.craft-progress-card .progress-header .stop-craft-btn {
  padding: 3px 8px;
  background: var(--color-danger);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 10px;
  cursor: pointer;
}
.craft-progress-card .progress-header .stop-craft-btn:hover:not(:disabled) {
  background: #ef4444;
}
.craft-progress-card .progress-header .stop-craft-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.craft-progress-card .progress-item .progress-bar {
  height: 10px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 5px;
}
.craft-progress-card .progress-item .progress-bar .progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  width: 0%;
  transition: width 0.1s linear;
}
.craft-progress-card .progress-item .progress-details {
  display: flex;
  justify-content: space-around;
  gap: 5px;
  font-size: 9px;
  color: var(--text-muted);
}
.craft-progress-card .progress-item .progress-details .progress-count {
  font-size: 10px;
  color: var(--text-muted);
}
.proficiency-panel,
.craft-proficiency-panel {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  padding: 5px 12px;
  margin-bottom: 5px;
  border: 1px solid var(--border-color);
  position: relative;
}
.proficiency-panel::before,
.craft-proficiency-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.3;
  background: linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 2px 6px, /* 右上 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 2px 6px, /* 左下 */ linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 2px 6px, /* 右下 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 2px 6px;
  background-repeat: no-repeat;
}
.proficiency-panel .prof-header,
.craft-proficiency-panel .prof-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  font-size: 10px;
}
.proficiency-panel .prof-header .prof-level,
.craft-proficiency-panel .prof-header .prof-level {
  color: var(--accent-primary);
  font-weight: bold;
}
.proficiency-panel .prof-header .prof-speed,
.craft-proficiency-panel .prof-header .prof-speed {
  color: #10b981;
}
.proficiency-panel .prof-header .prof-success,
.craft-proficiency-panel .prof-header .prof-success {
  color: #8b5cf6;
}
.proficiency-panel .prof-exp-bar,
.craft-proficiency-panel .prof-exp-bar {
  width: 100%;
  height: 10px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 4px;
}
.proficiency-panel .prof-exp-bar .prof-exp-fill,
.craft-proficiency-panel .prof-exp-bar .prof-exp-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  width: 0%;
  transition: width 0.3s ease;
}
.proficiency-panel .prof-exp-text,
.craft-proficiency-panel .prof-exp-text {
  font-size: 9px;
  color: var(--text-muted);
  text-align: right;
}
.gather-skill-tabs,
.craft-skill-tabs {
  display: flex;
  gap: 5px;
  margin-bottom: 5px;
  background: rgba(0, 0, 0, 0.2);
  padding: 6px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}
.gather-skill-tabs .gather-skill-tab,
.craft-skill-tabs .gather-skill-tab,
.gather-skill-tabs .craft-skill-tab,
.craft-skill-tabs .craft-skill-tab {
  flex: 1;
  padding: 8px 0;
  text-align: center;
  background: rgba(0, 0, 0, 0.3);
  border: none;
  border-radius: 12px;
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.gather-skill-tabs .gather-skill-tab:hover,
.craft-skill-tabs .gather-skill-tab:hover,
.gather-skill-tabs .craft-skill-tab:hover,
.craft-skill-tabs .craft-skill-tab:hover {
  background: rgba(0, 0, 0, 0.5);
  color: var(--accent-primary);
}
.gather-skill-tabs .gather-skill-tab.active,
.craft-skill-tabs .gather-skill-tab.active,
.gather-skill-tabs .craft-skill-tab.active,
.craft-skill-tabs .craft-skill-tab.active {
  background: var(--accent-primary);
  color: var(--bg-primary);
  font-weight: bold;
}
.gather-skill-tabs .gather-skill-tab .tab-icon,
.craft-skill-tabs .gather-skill-tab .tab-icon,
.gather-skill-tabs .craft-skill-tab .tab-icon,
.craft-skill-tabs .craft-skill-tab .tab-icon {
  margin-right: 4px;
  font-size: 12px;
}
.craft-scroll-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px;
  padding-bottom: 60px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}
.craft-scroll-content::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
  background: transparent;
}
.craft-content-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.gather-item {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 5px;
  transition: all var(--transition-fast);
  position: relative;
}
.gather-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.25;
  background: linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 2px 6px, /* 右上 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 2px 6px, /* 左下 */ linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 2px 6px, /* 右下 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 2px 6px;
  background-repeat: no-repeat;
}
.gather-item:hover {
  background: rgba(0, 0, 0, 0.5);
  border-color: var(--accent-primary);
  transform: translateX(4px);
}
.gather-item .item-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}
.gather-item .item-info .item-name {
  font-size: 12px;
  font-weight: bold;
}
.gather-item .item-info .item-quality {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.5);
}
.gather-item .item-info .item-quality.white {
  color: #f5f5f5;
}
.gather-item .item-info .item-quality.green {
  color: #4ade80;
}
.gather-item .item-info .item-quality.blue {
  color: #60a5fa;
}
.gather-item .item-info .item-quality.purple {
  color: #c084fc;
}
.gather-item .item-desc {
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 5px;
  line-height: 1.3;
}
.gather-item .item-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  font-size: 9px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.gather-item .item-stats span {
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 8px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.gather-item .gather-actions {
  display: flex;
  gap: 8px;
}
.gather-item .gather-actions .gather-btn {
  flex: 1;
  padding: 8px;
  border: none;
  border-radius: 8px;
  font-size: 10px;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
  background: var(--accent-primary);
}
.gather-item .gather-actions .gather-btn.primary-btn {
  background: #10b981;
  color: white;
}
.gather-item .gather-actions .gather-btn.primary-btn:hover {
  background: #0c8a60;
}
.gather-item .gather-actions .gather-btn.secondary-btn {
  background: #8b5cf6;
  color: white;
}
.gather-item .gather-actions .gather-btn.secondary-btn:hover {
  background: #7c3aed;
}
.gather-item .gather-actions .gather-btn:hover {
  transform: scale(1.02);
}
.gather-item .gather-actions .gather-btn:active {
  transform: scale(0.96);
}
.craft-recipe-item {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px;
  transition: all var(--transition-fast);
  position: relative;
}
.craft-recipe-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.3;
  background: linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 8px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 2px 8px, /* 右上 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 8px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 2px 8px, /* 左下 */ linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 8px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 2px 8px, /* 右下 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 8px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 2px 8px;
  background-repeat: no-repeat;
}
.craft-recipe-item:hover {
  background: rgba(0, 0, 0, 0.5);
  border-color: var(--accent-primary);
  transform: translateX(4px);
}
.craft-recipe-item .recipe-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.craft-recipe-item .recipe-header .recipe-info {
  display: flex;
  align-items: center;
  gap: 8px;
}
.craft-recipe-item .recipe-header .recipe-info .recipe-icon {
  font-size: 18px;
}
.craft-recipe-item .recipe-header .recipe-info .recipe-name {
  font-size: 12px;
  font-weight: bold;
}
.craft-recipe-item .recipe-header .recipe-info .recipe-quality {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.5);
}
.craft-recipe-item .recipe-header .recipe-info .recipe-quality.white {
  color: #f5f5f5;
}
.craft-recipe-item .recipe-header .recipe-info .recipe-quality.green {
  color: #4ade80;
}
.craft-recipe-item .recipe-header .recipe-info .recipe-quality.blue {
  color: #60a5fa;
}
.craft-recipe-item .recipe-header .recipe-info .recipe-quality.purple {
  color: #c084fc;
}
.craft-recipe-item .recipe-header .recipe-stats {
  font-size: 10px;
  color: var(--text-muted);
}
.craft-recipe-item .recipe-desc {
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 8px;
  line-height: 1.3;
}
.craft-recipe-item .recipe-materials {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.craft-recipe-item .recipe-materials .material-tag {
  font-size: 9px;
  padding: 3px 8px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 12px;
  color: var(--text-secondary);
}
.craft-recipe-item .recipe-buttons {
  display: flex;
  gap: 8px;
}
.craft-recipe-item .recipe-buttons .craft-btn,
.craft-recipe-item .recipe-buttons .batch-craft-btn {
  flex: 1;
  padding: 8px;
  border: none;
  border-radius: 8px;
  font-size: 10px;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}
.craft-recipe-item .recipe-buttons .craft-btn:hover,
.craft-recipe-item .recipe-buttons .batch-craft-btn:hover {
  transform: scale(1.02);
}
.craft-recipe-item .recipe-buttons .craft-btn:active,
.craft-recipe-item .recipe-buttons .batch-craft-btn:active {
  transform: scale(0.96);
}
.craft-recipe-item .recipe-buttons .craft-btn {
  background: #10b981;
  color: white;
}
.craft-recipe-item .recipe-buttons .craft-btn:hover {
  background: #0c8a60;
}
.craft-recipe-item .recipe-buttons .batch-craft-btn {
  background: #f59e0b;
  color: white;
}
.craft-recipe-item .recipe-buttons .batch-craft-btn:hover {
  background: #c57f08;
}
.craft-batch-popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20000;
}
.craft-batch-popup.hidden {
  display: none;
}
.craft-batch-popup .popup-mask {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
}
.craft-batch-popup .popup-content {
  position: relative;
  width: 90%;
  max-width: 340px;
  max-height: 70vh;
  overflow-y: auto;
  background: var(--bg-popup);
  border: 2px solid var(--accent-primary);
  border-radius: 12px;
  padding: 0;
  z-index: 20001;
  animation: modalFadeIn 0.2s ease;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.craft-batch-popup .popup-content::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
  background: transparent;
}
.craft-batch-popup .popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-secondary);
  background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 3px, rgba(0, 0, 0, 0.03) 3px 4px, transparent 4px 6px);
}
.craft-batch-popup .popup-header .popup-title {
  font-size: 16px;
  font-weight: bold;
  color: var(--accent-bright);
  letter-spacing: 0.1em;
  text-shadow: 0 0 10px var(--accent-glow);
}
.craft-batch-popup .popup-header .popup-close {
  width: 32px;
  height: 32px;
  background: #22323a;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s;
}
.craft-batch-popup .popup-header .popup-close:hover {
  background: var(--color-danger);
  border-color: var(--color-danger);
  color: white;
}
.craft-batch-popup .popup-header .popup-close:active {
  transform: scale(0.96);
}
.craft-batch-popup .popup-body {
  padding: 16px;
}
.craft-batch-popup .popup-body .item-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 16px;
}
.craft-batch-popup .popup-body .item-info .item-name {
  font-size: 14px;
  font-weight: bold;
  color: var(--accent-primary);
}
.craft-batch-popup .popup-body .item-info .item-quality {
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.5);
}
.craft-batch-popup .popup-body .count-section {
  margin-bottom: 16px;
}
.craft-batch-popup .popup-body .count-section .count-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.craft-batch-popup .popup-body .count-section .count-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}
.craft-batch-popup .popup-body .count-section .count-controls .count-btn {
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.3);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}
.craft-batch-popup .popup-body .count-section .count-controls .count-btn:hover {
  background: rgba(0, 0, 0, 0.5);
}
.craft-batch-popup .popup-body .count-section .count-controls .count-btn:active {
  transform: scale(0.96);
}
.craft-batch-popup .popup-body .count-section .count-controls .count-btn.max-btn {
  background: #f59e0b;
}
.craft-batch-popup .popup-body .count-section .count-controls #batchCount {
  width: 80px;
  height: 40px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-primary);
  text-align: center;
  font-size: 16px;
  font-weight: bold;
}
.craft-batch-popup .popup-body .materials-section {
  margin-bottom: 16px;
}
.craft-batch-popup .popup-body .materials-section .section-title {
  font-size: 12px;
  color: var(--accent-primary);
  margin-bottom: 8px;
}
.craft-batch-popup .popup-body .materials-section .materials-list {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  padding: 8px;
}
.craft-batch-popup .popup-body .materials-section .materials-list .material-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 12px;
  border-bottom: 1px solid var(--border-color);
}
.craft-batch-popup .popup-body .materials-section .materials-list .material-row:last-child {
  border-bottom: none;
}
.craft-batch-popup .popup-body .materials-section .materials-list .material-row.insufficient span:last-child {
  color: #ef4444;
}
.craft-batch-popup .popup-body .craft-info {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  padding: 8px;
}
.craft-batch-popup .popup-body .craft-info .info-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 12px;
}
.craft-batch-popup .popup-body .craft-info .info-row:not(:last-child) {
  border-bottom: 1px solid var(--border-color);
}
.craft-batch-popup .popup-body .craft-info .info-row span:last-child {
  color: var(--accent-primary);
  font-weight: bold;
}
.craft-batch-popup .popup-footer {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  border-top: 1px solid var(--border-color);
}
.craft-batch-popup .popup-footer button {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.craft-batch-popup .popup-footer button.btn-cancel {
  background: rgba(0, 0, 0, 0.3);
  color: var(--text-secondary);
}
.craft-batch-popup .popup-footer button.btn-cancel:hover {
  background: rgba(0, 0, 0, 0.5);
}
.craft-batch-popup .popup-footer button.btn-confirm {
  background: linear-gradient(90deg, #10b981, #0c8a60);
  color: white;
}
.craft-batch-popup .popup-footer button.btn-confirm:hover {
  transform: scale(1.02);
}
.craft-batch-popup .popup-footer button.btn-confirm:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
/**
 * ==================== 基地模块样式 ====================
 * 文件：css/modules/sect.less
 * 功能：星域图、弹窗等样式
 * 最后更新：2026-05-31
 */
@property --__m_angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
#sectGalaxyContainer {
  flex: 1;
  overflow-y: auto !important;
  overflow-x: hidden;
  padding: 12px;
  height: 100%;
  min-height: 0;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
}
.galaxy-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 130px;
}
.sect-module {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}
.sect-module .sect-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
}
.sect-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}
.sect-module .sect-main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--grad-card);
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
  position: relative;
  background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 3px, rgba(0, 0, 0, 0.04) 3px 4px, transparent 4px 6px);
  justify-content: center;
}
.sect-module .sect-main-header h2 {
  flex: 1;
  font-size: 16px;
  font-weight: bold;
  color: var(--accent-bright);
  margin: 0;
  letter-spacing: 0.15em;
  padding: 4px 16px;
  position: relative;
  background: linear-gradient(90deg, rgba(62, 124, 140, 0.18), transparent 70%);
  border-left: 2px solid var(--accent-primary);
  text-shadow: 0 0 10px var(--accent-glow);
}
.sect-manage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--grad-card);
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
  position: relative;
  background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 3px, rgba(0, 0, 0, 0.04) 3px 4px, transparent 4px 6px);
}
.sect-manage-header .back-to-galaxy-btn {
  background: #22323a;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 6px 12px;
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.sect-manage-header .back-to-galaxy-btn:hover {
  background: #2c4048;
  color: var(--text-primary);
}
.sect-manage-header .back-to-galaxy-btn:active {
  transform: scale(0.96);
}
.sect-manage-header .sect-manage-title {
  flex: 1;
  text-align: center;
  font-size: 16px;
  font-weight: bold;
  color: var(--accent-bright);
  margin: 0;
  letter-spacing: 0.15em;
  padding: 4px 16px;
  position: relative;
  background: linear-gradient(90deg, rgba(62, 124, 140, 0.18), transparent 70%);
  border-left: 2px solid var(--accent-primary);
  text-shadow: 0 0 10px var(--accent-glow);
}
.sect-manage-header .quit-sect-header-btn {
  padding: 6px 12px;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 8px;
  color: #fca5a5;
  font-size: 12px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: all 0.2s;
}
.sect-manage-header .quit-sect-header-btn:hover {
  background: linear-gradient(135deg, #f26a6a, #ef4444, #eb1515);
  color: white;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}
.sect-scroll-content {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  padding-bottom: 120px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.sect-scroll-content::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
  background: transparent;
}
.galaxy-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
  background: linear-gradient(155deg, rgba(12, 16, 26, 0.92) 0%, rgba(6, 10, 18, 0.95) 100%);
  border-radius: 8px;
  position: sticky;
  top: 0;
  z-index: 10;
  border: 1px solid var(--border-highlight);
  border-top: 2px solid var(--accent-primary);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  position: relative;
  background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 3px, rgba(0, 0, 0, 0.03) 3px 4px, transparent 4px 6px);
}
.galaxy-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.4;
  background: linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 8px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 2px 8px, /* 右上 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 8px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 2px 8px, /* 左下 */ linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 8px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 2px 8px, /* 右下 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 8px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 2px 8px;
  background-repeat: no-repeat;
}
.galaxy-header .galaxy-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.galaxy-header .galaxy-title {
  font-size: 16px;
  font-weight: bold;
  color: var(--accent-bright);
  letter-spacing: 0.15em;
  padding: 2px 14px 2px 10px;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.16), rgba(62, 124, 140, 0.06));
  border: 1px solid var(--accent-line);
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 10px);
  text-shadow: 0 0 10px var(--accent-glow);
  flex-shrink: 0;
}
.galaxy-header .galaxy-identity-area {
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.identity-badge {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.25s;
}
.identity-badge .identity-icon {
  font-size: 24px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  flex-shrink: 0;
}
.identity-badge .identity-name {
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0.02em;
}
.identity-badge .identity-sub {
  font-size: 10px;
  opacity: 0.75;
  font-variant-numeric: tabular-nums;
}
.identity-badge.identity-free {
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.16), rgba(var(--accent-rgb), 0.05));
  border: 1px solid var(--accent-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 2px 10px var(--accent-glow);
}
.identity-badge.identity-free .identity-icon {
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.3), rgba(var(--accent-rgb), 0.14));
  color: var(--accent-bright);
  box-shadow: inset 0 0 12px var(--accent-soft);
}
.identity-badge.identity-free .identity-name {
  color: var(--accent-bright);
}
.identity-badge.identity-free .identity-sub {
  color: var(--text-secondary);
}
.identity-badge.identity-member {
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.2), rgba(var(--accent-rgb), 0.06));
  border: 1px solid var(--accent-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 2px 10px var(--accent-glow);
}
.identity-badge.identity-member .identity-icon {
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.32), rgba(var(--accent-rgb), 0.16));
  color: var(--accent-bright);
  box-shadow: inset 0 0 12px var(--accent-soft);
}
.identity-badge.identity-member .identity-name {
  color: var(--accent-bright);
}
.identity-badge.identity-member .identity-sub {
  color: var(--text-secondary);
}
.identity-badge.identity-member:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 4px 16px var(--accent-glow);
}
.camp-row-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 6px 0;
}
.camp-row-header .camp-divider {
  flex: 1;
  height: 1px;
}
.camp-row-header .camp-name {
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.02em;
  padding: 2px 12px;
  border-radius: 8px;
  white-space: nowrap;
}
.camp-row-header.camp-good .camp-divider {
  background: linear-gradient(90deg, transparent, var(--accent-primary));
}
.camp-row-header.camp-good .camp-divider:last-child {
  background: linear-gradient(90deg, var(--accent-primary), transparent);
}
.camp-row-header.camp-good .camp-name {
  color: var(--accent-bright);
  border: 1px solid var(--accent-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.camp-row-header.camp-evil .camp-divider {
  background: linear-gradient(90deg, transparent, var(--accent-secondary));
}
.camp-row-header.camp-evil .camp-divider:last-child {
  background: linear-gradient(90deg, var(--accent-secondary), transparent);
}
.camp-row-header.camp-evil .camp-name {
  color: #ff8ab8;
  border: 1px solid rgba(255, 43, 214, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.galaxy-personal-contribution {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(232, 140, 58, 0.18), rgba(217, 119, 6, 0.08));
  border: 1px solid rgba(232, 140, 58, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 2px 10px rgba(232, 140, 58, 0.12);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  transition: all 0.25s;
}
.galaxy-personal-contribution:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 4px 16px rgba(232, 140, 58, 0.22);
}
.galaxy-personal-contribution .contrib-icon {
  font-size: 16px;
  filter: drop-shadow(0 0 4px rgba(232, 140, 58, 0.6));
}
.galaxy-personal-contribution .contrib-value {
  font-size: 13px;
  font-weight: bold;
  color: #e88c3a;
  text-shadow: 0 0 6px rgba(232, 140, 58, 0.25);
  font-variant-numeric: tabular-nums;
}
.galaxy-header-stats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.galaxy-resource-income {
  font-size: 11px;
  color: #6ee7b7;
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.2), rgba(16, 185, 129, 0.08));
  border: 1px solid rgba(52, 211, 153, 0.45);
  padding: 6px 12px;
  border-radius: 8px;
  font-variant-numeric: tabular-nums;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 2px 10px rgba(52, 211, 153, 0.12);
  white-space: nowrap;
  transition: all 0.25s;
}
.galaxy-resource-income:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 4px 16px rgba(52, 211, 153, 0.2);
}
.galaxy-no-sect-tip {
  font-size: 11px;
  color: #fcd34d;
  background: linear-gradient(135deg, rgba(232, 140, 58, 0.18), rgba(234, 88, 12, 0.08));
  border: 1px solid rgba(232, 140, 58, 0.35);
  padding: 6px 12px;
  border-radius: 8px;
  font-variant-numeric: tabular-nums;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 2px 10px rgba(232, 140, 58, 0.1);
  white-space: nowrap;
  transition: all 0.25s;
}
.galaxy-no-sect-tip:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 4px 16px rgba(232, 140, 58, 0.2);
}
.sect-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px 8px;
}
.sect-card {
  background: linear-gradient(165deg, rgba(14, 18, 28, 0.88) 0%, rgba(7, 11, 20, 0.92) 100%);
  border-radius: 8px;
  padding: 10px 4px 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 1px solid var(--border-color);
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 3px, rgba(0, 0, 0, 0.02) 3px 4px, transparent 4px 6px);
}
.sect-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.3;
  background: linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 2px 6px, /* 右上 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 2px 6px, /* 左下 */ linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 2px 6px, /* 右下 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 2px 6px;
  background-repeat: no-repeat;
}
.sect-card .sect-card-shine {
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.08) 50%, transparent 100%);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
  pointer-events: none;
  z-index: 2;
}
.sect-card .sect-card-glow {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: -1;
}
.sect-card:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: var(--accent-primary);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45), 0 0 14px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.sect-card:hover .sect-card-shine {
  left: 130%;
}
.sect-card:hover .sect-card-glow {
  opacity: 1;
}
.sect-card:hover .sect-icon-wrap {
  transform: scale(1.1);
}
.sect-card:hover .sect-name {
  color: var(--accent-bright);
}
.sect-card.camp-good {
  border-color: rgba(59, 130, 246, 0.22);
}
.sect-card.camp-good .sect-card-glow {
  background: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.25), transparent 70%);
}
.sect-card.camp-good:hover {
  border-color: rgba(96, 165, 250, 0.7);
}
.sect-card.camp-good:hover .sect-name {
  color: #93c5fd;
}
.sect-card.camp-evil {
  border-color: rgba(239, 68, 68, 0.22);
}
.sect-card.camp-evil .sect-card-glow {
  background: radial-gradient(circle at 50% 0%, rgba(239, 68, 68, 0.25), transparent 70%);
}
.sect-card.camp-evil:hover {
  border-color: rgba(248, 113, 113, 0.7);
}
.sect-card.camp-evil:hover .sect-name {
  color: #fca5a5;
}
.sect-card.my-sect {
  background: linear-gradient(165deg, rgba(0, 122, 170, 0.4) 0%, rgba(6, 60, 88, 0.55) 100%);
  border: 1px solid var(--accent-primary);
  box-shadow: 0 0 14px var(--accent-glow), 0 4px 16px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.sect-card.my-sect .sect-name {
  color: var(--accent-bright);
}
.sect-card.my-sect::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  z-index: -1;
  opacity: 1;
  background: radial-gradient(circle at 50% 0%, rgba(var(--accent-rgb), 0.45), transparent 70%);
}
.sect-card .sect-icon-wrap {
  width: 42px;
  height: 42px;
  margin: 0 auto 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3), inset 0 -1px 0 rgba(255, 255, 255, 0.04);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.sect-card .sect-icon-wrap .sect-icon {
  font-size: 22px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}
.sect-card .sect-name {
  font-size: 10px;
  font-weight: bold;
  color: var(--text-primary);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
  transition: color 0.25s;
}
.sect-card .sect-level-row {
  margin-bottom: 5px;
}
.sect-card .sect-level-row .sect-level-badge-mini {
  display: inline-block;
  font-size: 9px;
  font-weight: bold;
  padding: 1px 6px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.28), rgba(0, 229, 255, 0.12));
  color: var(--accent-bright);
  border: 1px solid var(--accent-line);
  font-variant-numeric: tabular-nums;
}
.sect-card .sect-pop-bar {
  height: 3px;
  width: 80%;
  margin: 0 auto 4px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5), inset 0 -1px 0 rgba(255, 255, 255, 0.04);
}
.sect-card .sect-pop-bar .sect-pop-fill {
  height: 100%;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-bright));
  box-shadow: 0 0 4px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: width 0.5s ease;
}
.sect-card .sect-members-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}
.sect-card .sect-members-row .sect-members-icon {
  font-size: 9px;
  opacity: 0.7;
}
.sect-card .sect-members-row .sect-members-num {
  font-size: 9px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}
.sect-card .sect-arrow {
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  color: #e88c3a;
  filter: drop-shadow(0 0 4px rgba(232, 140, 58, 0.7));
  animation: bounce 1s ease infinite;
  z-index: 3;
}
@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(5px);
  }
}
.galaxy-resources {
  margin: 8px 0;
}
.resources-row {
  position: relative;
  width: 100%;
  max-width: 360px;
  height: 0;
  padding-bottom: 100%;
  margin: 16px auto;
}
.realm-vortex {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(var(--k, 1));
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: all 0.3s;
}
.realm-vortex:hover {
  transform: translate(-50%, -50%) scale(var(--k, 1)) scale(1.08);
}
.realm-vortex:hover .vortex-core {
  filter: drop-shadow(0 0 12px var(--accent-primary));
}
.realm-vortex:active {
  transform: translate(-50%, -50%) scale(var(--k, 1)) scale(0.96);
}
.realm-vortex .vortex-core {
  font-size: 43px;
  z-index: 3;
  animation: vortex-spin 4s linear infinite;
  filter: drop-shadow(0 0 6px var(--accent-primary));
  transition: filter 0.3s;
}
.realm-vortex .vortex-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px dashed transparent;
}
.realm-vortex .vortex-ring.ring-1 {
  border-color: var(--accent-primary);
  opacity: 0.6;
  animation: vortex-spin 12s linear infinite reverse;
  box-shadow: 0 0 16px rgba(var(--accent-rgb), 0.35), inset 0 0 16px rgba(var(--accent-rgb), 0.2);
}
.realm-vortex .vortex-ring.ring-2 {
  inset: -6px;
  border-color: var(--accent-secondary);
  opacity: 0.4;
  animation: vortex-spin 20s linear infinite;
}
.realm-vortex .vortex-label {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: bold;
  color: var(--accent-primary);
  white-space: nowrap;
  letter-spacing: 0.02em;
  text-shadow: 0 0 6px var(--accent-soft), 0 0 12px var(--accent-glow);
}
@keyframes vortex-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@keyframes border-marquee {
  from {
    --__m_angle: 0deg;
  }
  to {
    --__m_angle: 360deg;
  }
}
.resources-orbit {
  position: absolute;
  inset: 0;
  transform: scale(var(--k, 1));
  transform-origin: center;
}
.resource-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 92px;
  transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-145px) rotate(var(--neg-angle));
  background: rgba(2, 6, 14, 0.55);
  border-radius: 8px;
  padding: 6px 4px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), inset 0 0 8px rgba(var(--accent-rgb), 0.04);
  border: 1px solid var(--border-color);
  z-index: 2;
  isolation: isolate;
}
.resource-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--__m_angle, 0deg), transparent 0%, transparent 62%, rgba(var(--accent-rgb), 0.9) 78%, rgba(var(--accent-rgb), 0.5) 88%, transparent 100%);
  animation: border-marquee 4s linear infinite;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: -1;
}
.resource-card:not(.resource-card-empty):hover {
  transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-155px) rotate(var(--neg-angle)) scale(1.08);
  background: rgba(0, 0, 0, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 12px var(--accent-soft);
  z-index: 10;
}
.resource-card.resource-card-contested {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 0 12px rgba(239, 68, 68, 0.25), 0 0 24px rgba(239, 68, 68, 0.12);
}
.resource-card.resource-card-contested::before {
  background: conic-gradient(from var(--__m_angle, 0deg), transparent 0%, transparent 62%, rgba(239, 68, 68, 0.9) 78%, rgba(239, 68, 68, 0.5) 88%, transparent 100%);
}
.resource-card.resource-card-contested:hover {
  transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-155px) rotate(var(--neg-angle)) scale(1.08);
  background: rgba(0, 0, 0, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 16px rgba(239, 68, 68, 0.4), 0 0 30px rgba(239, 68, 68, 0.2);
  z-index: 10;
}
.resource-card.resource-card-empty {
  cursor: default;
  opacity: 0.2;
  background: transparent;
  box-shadow: none;
}
.resource-card.resource-card-empty::before {
  display: none;
}
.resource-card.resource-card-empty .resource-card-inner {
  padding: 4px;
}
.resource-card.resource-card-empty .resource-icon {
  opacity: 0.3;
}
.resource-card .resource-card-inner {
  padding: 2px;
}
.resource-card .resource-icon {
  font-size: 14px;
  margin-bottom: 2px;
}
.resource-card .resource-name {
  font-size: 9px;
  font-weight: bold;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.2;
}
.resource-card .resource-progress-bar {
  height: 4px;
  display: flex;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 2px;
  background: rgba(0, 0, 0, 0.45);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5), inset 0 -1px 0 rgba(255, 255, 255, 0.05);
}
.resource-card .resource-progress-bar .resource-progress-good {
  background: linear-gradient(90deg, #3b82f6, #60a5fa, #93c5fd);
  box-shadow: 0 0 4px rgba(59, 130, 246, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.resource-card .resource-progress-bar .resource-progress-evil {
  background: linear-gradient(90deg, #ef4444, #f87171, #fca5a5);
  box-shadow: 0 0 4px rgba(239, 68, 68, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.resource-card .resource-percent {
  display: flex;
  justify-content: space-between;
  font-size: 7px;
  font-variant-numeric: tabular-nums;
}
.resource-card .resource-percent .good-percent {
  color: #60a5fa;
}
.resource-card .resource-percent .evil-percent {
  color: #f87171;
}
.resource-card .resource-status {
  font-size: 9px;
  font-weight: bold;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.2;
}
.sect-alliance-row {
  padding-bottom: 16px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: center;
}
.sect-alliance-row .alliance-card {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(var(--accent-secondary-rgb, 255, 43, 214), 0.12);
  border: 1px solid var(--accent-secondary);
  border-radius: 8px;
  padding: 10px 24px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  box-shadow: 0 2px 8px rgba(255, 43, 214, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.sect-alliance-row .alliance-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 43, 214, 0.22);
  box-shadow: 0 4px 16px rgba(255, 43, 214, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.sect-alliance-row .alliance-card .alliance-icon {
  font-size: 24px;
  filter: drop-shadow(0 0 6px rgba(255, 43, 214, 0.5));
}
.sect-alliance-row .alliance-card .alliance-name {
  font-size: 14px;
  font-weight: bold;
  color: var(--accent-secondary);
  letter-spacing: 0.02em;
  text-shadow: 0 0 10px rgba(255, 43, 214, 0.35);
}
.sect-alliance-row .alliance-card .alliance-members {
  font-size: 11px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}
.sect-popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sect-popup .popup-mask {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
}
.sect-popup .popup-content {
  width: 90%;
  max-width: 420px;
  max-height: 85vh;
  overflow-y: auto;
  background: linear-gradient(165deg, rgba(14, 18, 28, 0.96) 0%, rgba(7, 11, 20, 0.98) 100%);
  border: 2px solid var(--accent-primary);
  border-radius: 8px;
  z-index: 20001;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-accent-lg), var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  position: relative;
  background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 3px, rgba(0, 0, 0, 0.02) 3px 4px, transparent 4px 6px);
}
.sect-popup .popup-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.5;
  background: linear-gradient(var(--accent-bright), var(--accent-bright)) 0 0 / 10px 2px, linear-gradient(var(--accent-bright), var(--accent-bright)) 0 0 / 2px 10px, /* 右上 */ linear-gradient(var(--accent-bright), var(--accent-bright)) 100% 0 / 10px 2px, linear-gradient(var(--accent-bright), var(--accent-bright)) 100% 0 / 2px 10px, /* 左下 */ linear-gradient(var(--accent-bright), var(--accent-bright)) 0 100% / 10px 2px, linear-gradient(var(--accent-bright), var(--accent-bright)) 0 100% / 2px 10px, /* 右下 */ linear-gradient(var(--accent-bright), var(--accent-bright)) 100% 100% / 10px 2px, linear-gradient(var(--accent-bright), var(--accent-bright)) 100% 100% / 2px 10px;
  background-repeat: no-repeat;
}
.sect-popup .popup-content.small {
  max-width: 300px;
}
.sect-popup .popup-content.sect-manage-popup {
  max-width: 460px;
}
.sect-popup .popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-secondary);
  background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 3px, rgba(0, 0, 0, 0.03) 3px 4px, transparent 4px 6px);
}
.sect-popup .popup-header .popup-title {
  font-size: 16px;
  font-weight: bold;
  color: var(--accent-bright);
  letter-spacing: 0.1em;
  text-shadow: 0 0 10px var(--accent-glow);
  letter-spacing: 0.15em;
}
.sect-popup .popup-header .popup-close {
  width: 32px;
  height: 32px;
  background: #22323a;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s;
}
.sect-popup .popup-header .popup-close:hover {
  background: var(--color-danger);
  border-color: var(--color-danger);
  color: white;
}
.sect-popup .popup-header .popup-close:active {
  transform: scale(0.96);
}
.sect-popup .popup-body {
  flex: 1;
  padding: 12px 16px;
  max-height: 65vh;
  overflow-y: auto;
}
.sect-popup .popup-footer {
  padding: 10px 16px;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 10px;
}
.sect-popup .popup-footer button {
  flex: 1;
  padding: 8px;
  border: none;
  border-radius: 12px;
  font-size: 13px;
  cursor: pointer;
  letter-spacing: 0.02em;
}
.sect-popup .popup-footer button.btn-confirm {
  background: linear-gradient(135deg, #13df9b, #10b981, #0c8a60);
  color: white;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}
.sect-popup .popup-footer button.btn-cancel,
.sect-popup .popup-footer button.btn-close {
  background: rgba(0, 0, 0, 0.3);
  color: var(--text-secondary);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.sect-popup .popup-footer button.btn-cancel:hover,
.sect-popup .popup-footer button.btn-close:hover {
  background: rgba(0, 0, 0, 0.5);
  color: var(--accent-primary);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 8px var(--accent-soft);
}
#sectGalaxyContainer::-webkit-scrollbar,
.sect-popup .popup-body::-webkit-scrollbar,
.sect-popup .popup-content::-webkit-scrollbar,
.sect-scroll-content::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
#sectGalaxyContainer,
.sect-popup .popup-body,
.sect-popup .popup-content,
.sect-scroll-content {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.empty-tip {
  text-align: center;
  padding: 20px;
  color: var(--text-muted);
  font-size: 12px;
}
.galaxy-loading,
.galaxy-empty {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
  font-size: 12px;
}
.sect-manage-container .sect-position-card {
  --pos-color: #e88c3a;
  --pos-glow: rgba(232, 140, 58, 0.25);
  --pos-border: rgba(202, 138, 4, 0.5);
  --btn-color: #e88c3a;
  --pos-bg-from: rgba(15, 18, 35, 0.92);
  --pos-bg-to: rgba(15, 18, 35, 0.96);
  position: relative;
  margin-bottom: 16px;
}
.sect-manage-container .sect-position-card .pos-card-main {
  position: relative;
  padding: 16px 14px 12px;
  border-radius: 12px;
  border: 1px solid var(--pos-border);
  background: linear-gradient(to bottom, var(--pos-bg-to) 0%, var(--pos-bg-from) 40%, rgba(15, 18, 35, 0) 100%);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}
.sect-manage-container .sect-position-card .pos-card-main::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, var(--pos-glow) 0%, transparent 100%);
  pointer-events: none;
}
.sect-manage-container .sect-position-card .pos-card-main .pos-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.03) 40%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.03) 60%, transparent 100%);
  transform: skewX(-15deg);
  animation: posShine 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}
.sect-manage-container .sect-position-card .pos-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  position: relative;
  z-index: 3;
}
.sect-manage-container .sect-position-card .pos-rank-badge {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--pos-border);
  color: var(--pos-color);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 0.02em;
}
.sect-manage-container .sect-position-card .pos-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sect-manage-container .sect-position-card .pos-icon-wrapper::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 6px;
  background: var(--pos-glow);
  border-radius: 50%;
  filter: blur(4px);
  opacity: 0.5;
  animation: posIconGlow 3s ease-in-out infinite;
}
.sect-manage-container .sect-position-card .pos-icon-big {
  font-size: 38px;
  line-height: 1;
  animation: posIconFloat 4s ease-in-out infinite;
}
.sect-manage-container .sect-position-card .pos-card-body {
  text-align: center;
  margin-bottom: 10px;
  position: relative;
  z-index: 3;
}
.sect-manage-container .sect-position-card .pos-name {
  font-size: 22px;
  font-weight: bold;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
  position: relative;
  z-index: 3;
}
.sect-manage-container .sect-position-card .pos-title-suffix {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 6px;
  font-style: italic;
}
.sect-manage-container .sect-position-card .pos-salary {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  display: inline-block;
  margin-bottom: 4px;
  opacity: 0.85;
  backdrop-filter: blur(2px);
}
.sect-manage-container .sect-position-card .pos-per-sec {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.55);
}
.sect-manage-container .sect-position-card .pos-card-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 3;
}
.sect-manage-container .sect-position-card .pos-card-footer .pos-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.sect-manage-container .sect-position-card .pos-card-footer .pos-stat-label {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.5);
}
.sect-manage-container .sect-position-card .pos-card-footer .pos-stat-value {
  font-size: 13px;
  font-weight: bold;
  color: var(--pos-color);
  font-variant-numeric: tabular-nums;
}
.sect-manage-container .sect-position-card .pos-card-footer .pos-stat-divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.1);
}
.sect-manage-container .sect-position-card .next-position-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.sect-manage-container .sect-position-card .next-position-preview .next-label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
}
.sect-manage-container .sect-position-card .next-position-preview .next-pos-card {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid;
  opacity: 0.7;
  transform: scale(0.95);
  background: rgba(20, 25, 45, 0.6);
}
.sect-manage-container .sect-position-card .next-position-preview .next-pos-card .next-pos-icon {
  font-size: 16px;
}
.sect-manage-container .sect-position-card .next-position-preview .next-pos-card .next-pos-name {
  font-size: 11px;
  font-weight: bold;
  color: #fff;
}
.sect-manage-container .sect-position-card .next-position-preview .next-salary {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.25);
  padding: 2px 8px;
  border-radius: 10px;
}
.sect-manage-container .sect-position-card .next-position-preview .next-cost {
  font-size: 11px;
  color: #e88c3a;
  font-weight: bold;
}
.sect-manage-container .sect-position-card .pos-promote-section {
  padding-top: 6px;
}
.sect-manage-container .sect-position-card .pos-promote-section .pos-promote-btn {
  width: 100%;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--btn-color), var(--btn-color), var(--btn-color));
  color: #1f2937;
  font-weight: bold;
  font-size: 13px;
  cursor: pointer;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 20px var(--pos-glow), inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
}
.sect-manage-container .sect-position-card .pos-promote-section .pos-promote-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4), 0 0 30px var(--pos-glow), inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}
.sect-manage-container .sect-position-card .pos-promote-section .pos-promote-btn:active {
  transform: translateY(0) scale(0.98);
}
.sect-manage-container .sect-position-card .pos-promote-section .pos-promote-btn .promote-icon {
  font-size: 14px;
}
.sect-manage-container .sect-position-card .pos-promote-section .pos-promote-btn .promote-text {
  flex: 1;
}
.sect-manage-container .sect-position-card .pos-promote-section .pos-promote-btn .promote-cost {
  font-size: 11px;
  background: rgba(0, 0, 0, 0.2);
  padding: 2px 8px;
  border-radius: 10px;
  color: #1f2937;
}
.sect-manage-container .sect-position-card .pos-max-level {
  text-align: center;
  padding: 12px;
  background: linear-gradient(135deg, rgba(232, 140, 58, 0.15), rgba(249, 115, 22, 0.15));
  border: 1px solid rgba(232, 140, 58, 0.3);
  border-radius: 12px;
  margin-top: 10px;
  animation: maxLevelGlow 2s ease-in-out infinite;
}
.sect-manage-container .sect-position-card .pos-max-level .max-level-icon {
  font-size: 28px;
  display: block;
  margin-bottom: 4px;
  filter: drop-shadow(0 0 8px rgba(232, 140, 58, 0.6));
}
.sect-manage-container .sect-position-card .pos-max-level .max-level-text {
  font-size: 14px;
  font-weight: bold;
  color: #e88c3a;
  display: block;
  margin-bottom: 2px;
  letter-spacing: 0.02em;
}
.sect-manage-container .sect-position-card .pos-max-level .max-level-desc {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
}
.sect-manage-container .sect-position-card .pos-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.sect-manage-container .sect-position-card .pos-info {
  flex: 1;
  text-align: left;
}
.sect-manage-container .sect-position-card .pos-info .pos-name {
  font-size: 20px;
  text-align: left;
  margin-bottom: 4px;
}
.sect-manage-container .sect-position-card .pos-info .pos-salary {
  font-size: 12px;
  margin-bottom: 0;
}
.sect-manage-container .sect-position-card .pos-stats-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}
.sect-manage-container .sect-position-card .pos-stats-row .pos-stat {
  flex: 1;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.sect-manage-container .sect-position-card .pos-stats-row .pos-stat-label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.55);
  display: block;
  margin-bottom: 3px;
}
.sect-manage-container .sect-position-card .pos-stats-row .pos-stat-value {
  font-size: 15px;
  font-weight: bold;
  color: var(--pos-color);
  font-variant-numeric: tabular-nums;
}
.sect-manage-container .sect-position-card .pos-promote-section .next-pos-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.sect-manage-container .sect-position-card .pos-promote-section .next-pos-info .next-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
}
.sect-manage-container .sect-position-card .pos-promote-section .next-pos-info .next-pos-name {
  font-size: 13px;
  font-weight: bold;
  color: var(--pos-color);
}
.sect-manage-container .sect-position-card .pos-promote-section .next-pos-info .next-cost {
  font-size: 11px;
  color: #e88c3a;
  font-weight: 500;
  background: rgba(232, 140, 58, 0.15);
  padding: 2px 8px;
  border-radius: 8px;
}
.sect-manage-container .sect-position-card.position-frame-wood .pos-card-main {
  border-style: solid;
}
.sect-manage-container .sect-position-card.position-frame-bronze .pos-card-main {
  border-width: 2px;
}
.sect-manage-container .sect-position-card.position-frame-silver .pos-card-main {
  border-width: 2px;
}
.sect-manage-container .sect-position-card.position-frame-gold .pos-card-main {
  border-width: 2px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.sect-manage-container .sect-position-card.position-frame-jade .pos-card-main {
  border-width: 2px;
}
.sect-manage-container .sect-position-card.position-frame-crystal .pos-card-main {
  border-width: 2px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.sect-manage-container .sect-position-card.position-frame-amethyst .pos-card-main {
  border-width: 2px;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.sect-manage-container .sect-position-card.position-frame-ruby .pos-card-main {
  border-width: 2px;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.sect-manage-container .sect-position-card.position-frame-emperor .pos-card-main {
  border-width: 3px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.sect-manage-container .sect-position-card.position-frame-mythic .pos-card-main {
  border-width: 3px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
@keyframes posShine {
  0% {
    left: -100%;
  }
  60%,
  100% {
    left: 150%;
  }
}
@keyframes posIconFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}
@keyframes posIconGlow {
  0%,
  100% {
    opacity: 0.35;
    transform: translateX(-50%) scale(1);
  }
  50% {
    opacity: 0.6;
    transform: translateX(-50%) scale(1.2);
  }
}
@keyframes maxLevelGlow {
  0%,
  100% {
    box-shadow: 0 0 10px rgba(232, 140, 58, 0.15);
  }
  50% {
    box-shadow: 0 0 20px rgba(232, 140, 58, 0.35);
  }
}
@keyframes mythicPulse {
  0%,
  100% {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }
  50% {
    box-shadow: 0 14px 48px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }
}
.sect-manage-container .sect-header-with-level {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}
.sect-manage-container .sect-header-with-level .sect-name-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.sect-manage-container .sect-header-with-level .sect-name-wrapper .sect-name {
  font-size: 18px;
  font-weight: bold;
  color: var(--accent-primary);
  letter-spacing: 0.02em;
}
.sect-manage-container .sect-header-with-level .sect-name-wrapper .sect-level-badge {
  background: linear-gradient(135deg, #f7ae32, #f59e0b, #c57f08);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
  color: #1f2937;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}
.sect-manage-container .sect-header-with-level .sect-name-wrapper .upgrade-btn {
  padding: 4px 16px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  border: none;
  letter-spacing: 0.02em;
}
.sect-manage-container .sect-header-with-level .sect-name-wrapper .upgrade-btn.active {
  background: linear-gradient(135deg, #13df9b, #10b981, #0c8a60);
  color: white;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}
.sect-manage-container .sect-header-with-level .sect-name-wrapper .upgrade-btn.active:hover {
  transform: scale(1.02);
}
.sect-manage-container .sect-header-with-level .sect-name-wrapper .upgrade-btn.disabled {
  background: #4b5563;
  color: #9ca3af;
  cursor: not-allowed;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.sect-manage-container .sect-header-with-level .sect-name-wrapper .upgrade-btn.max-level {
  background: #374151;
  color: #9ca3af;
  cursor: not-allowed;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.sect-manage-container .sect-header-with-level .sect-header-right {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.sect-manage-container .sect-header-with-level .sect-header-right .quit-sect-btn.quit-sect-top {
  padding: 4px 12px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  cursor: pointer;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}
.sect-manage-container .sect-header-with-level .sect-header-right .quit-sect-btn.quit-sect-top:hover {
  transform: scale(1.02);
}
.sect-manage-container .sect-header-with-level .sect-member-limit {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.sect-manage-container .sect-header-with-level .sect-member-limit .claim-salary-btn {
  padding: 4px 12px;
  background: linear-gradient(135deg, #13df9b, #10b981, #0c8a60);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 11px;
  font-weight: bold;
  cursor: pointer;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}
.sect-manage-container .sect-header-with-level .sect-member-limit .claim-salary-btn:hover {
  transform: scale(1.02);
}
.sect-manage-container .sect-header-with-level .sect-member-limit .claim-salary-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.sect-manage-container .sect-header-position {
  margin-bottom: 12px;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  border: 1px solid rgba(232, 140, 58, 0.2);
}
.sect-manage-container .sect-header-position .position-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.sect-manage-container .sect-header-position .position-line .position-label {
  font-size: 11px;
  color: var(--text-muted);
}
.sect-manage-container .sect-header-position .position-line .position-value {
  font-size: 15px;
  font-weight: bold;
  color: #e88c3a;
  letter-spacing: 0.02em;
  text-shadow: 0 0 8px rgba(232, 140, 58, 0.3);
}
.sect-manage-container .sect-header-position .stats-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.sect-manage-container .sect-header-position .stats-line .stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.sect-manage-container .sect-header-position .stats-line .stat-item .stat-label {
  font-size: 10px;
  color: var(--text-muted);
}
.sect-manage-container .sect-header-position .stats-line .stat-item .stat-value {
  font-size: 13px;
  font-weight: bold;
  color: #34d399;
  font-variant-numeric: tabular-nums;
}
.sect-manage-container .sect-header-position .stats-line .stat-item:first-child .stat-value {
  color: #e88c3a;
}
.sect-manage-container .sect-header-position .stats-line .stat-divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.1);
}
.sect-manage-container .sect-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.sect-manage-container .sect-stats .stat-card {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  padding: 8px 4px;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.sect-manage-container .sect-stats .stat-card .stat-label {
  font-size: 9px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.sect-manage-container .sect-stats .stat-card .stat-value {
  font-size: 12px;
  font-weight: bold;
  color: #e88c3a;
  font-variant-numeric: tabular-nums;
}
.sect-manage-container .sect-donate-buttons {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.sect-manage-container .sect-donate-buttons button {
  flex: 1;
  padding: 10px 6px;
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
  transition: transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1), filter 0.2s, box-shadow 0.2s;
  isolation: isolate;
}
.sect-manage-container .sect-donate-buttons button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 45%, rgba(0, 0, 0, 0.18) 100%);
  pointer-events: none;
  z-index: 1;
}
.sect-manage-container .sect-donate-buttons button::after {
  content: "";
  position: absolute;
  top: 0;
  left: -55%;
  width: 30%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.28) 50%, transparent 100%);
  transform: skewX(-18deg);
  transition: left 0.65s ease-out;
  pointer-events: none;
  z-index: 2;
}
.sect-manage-container .sect-donate-buttons button:hover {
  transform: translateY(-2px);
  filter: brightness(1.12);
}
.sect-manage-container .sect-donate-buttons button:hover::after {
  left: 130%;
}
.sect-manage-container .sect-donate-buttons button:active {
  transform: translateY(0) scale(0.97);
}
.sect-manage-container .sect-donate-buttons .donate-btn:nth-child(1) {
  background: linear-gradient(135deg, #34d399 0%, #10b981 50%, #059669 100%);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}
.sect-manage-container .sect-donate-buttons .donate-btn:nth-child(2) {
  background: linear-gradient(135deg, #c084fc 0%, #a855f7 50%, #7e22ce 100%);
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}
.sect-manage-container .sect-donate-buttons .donate-btn:nth-child(3) {
  background: linear-gradient(135deg, #e88c3a 0%, #f59e0b 50%, #d97706 100%);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}
.sect-manage-container .manage-donate-row {
  display: flex;
  gap: 10px;
  margin: 8px 0 4px;
}
.sect-manage-container .manage-donate-row .donate-btn-manage {
  flex: 1;
  padding: 10px 12px;
  background: linear-gradient(145deg, rgba(232, 140, 58, 0.15), rgba(232, 140, 58, 0.05));
  border: 1px solid rgba(232, 140, 58, 0.35);
  border-radius: 10px;
  color: #e88c3a;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
}
.sect-manage-container .manage-donate-row .donate-btn-manage:hover {
  background: linear-gradient(145deg, rgba(232, 140, 58, 0.3), rgba(232, 140, 58, 0.1));
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(232, 140, 58, 0.25);
}
.sect-manage-container .manage-donate-row .donate-btn-manage.destiny-btn {
  background: linear-gradient(145deg, rgba(167, 139, 250, 0.15), rgba(167, 139, 250, 0.05));
  border-color: rgba(167, 139, 250, 0.4);
  color: #c4b5fd;
}
.sect-manage-container .manage-donate-row .donate-btn-manage.destiny-btn:hover {
  background: linear-gradient(145deg, rgba(167, 139, 250, 0.3), rgba(167, 139, 250, 0.1));
  box-shadow: 0 4px 12px rgba(167, 139, 250, 0.3);
}
.sect-manage-container .section-title {
  font-size: 13px;
  font-weight: bold;
  color: var(--accent-primary);
  margin: 14px 0 8px 0;
  padding-left: 10px;
  border-left: 3px solid var(--accent-primary);
  letter-spacing: 0.02em;
  position: relative;
  z-index: 1;
  text-shadow: 0 0 12px rgba(232, 140, 58, 0.18);
}
.sect-manage-container .section-title::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 50%;
  transform: translateY(-50%);
  width: 180px;
  height: 26px;
  background: radial-gradient(ellipse at 10% 50%, rgba(232, 140, 58, 0.22) 0%, rgba(232, 140, 58, 0.08) 35%, transparent 72%);
  filter: blur(2px);
  pointer-events: none;
  z-index: -1;
}
.sect-manage-container .members-header {
  display: grid;
  grid-template-columns: 35px 1fr 50px 60px 40px;
  gap: 4px;
  padding: 8px 10px;
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.18) 0%, rgba(6, 78, 59, 0.28) 45%, rgba(16, 185, 129, 0.12) 100%);
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: 10px;
  font-size: 10px;
  color: rgba(187, 247, 208, 0.9);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 2px 6px rgba(0, 0, 0, 0.18);
}
.sect-manage-container .member-item {
  display: grid;
  grid-template-columns: 35px 1fr 50px 60px 40px;
  gap: 4px;
  padding: 8px 10px;
  background: linear-gradient(135deg, rgba(20, 24, 34, 0.92) 0%, rgba(15, 18, 26, 0.88) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 3px solid #10b981;
  border-radius: 10px;
  margin-bottom: 6px;
  font-size: 11px;
  align-items: center;
  position: relative;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 2px 5px rgba(0, 0, 0, 0.16);
}
.sect-manage-container .member-item:nth-of-type(2) {
  border-left-color: #60a5fa;
}
.sect-manage-container .member-item:nth-of-type(3) {
  border-left-color: #c084fc;
}
.sect-manage-container .member-item:nth-of-type(4) {
  border-left-color: #f59e0b;
}
.sect-manage-container .member-item:nth-of-type(5) {
  border-left-color: #f87171;
}
.sect-manage-container .member-item:nth-of-type(6) {
  border-left-color: #2dd4bf;
}
.sect-manage-container .member-item:nth-of-type(7) {
  border-left-color: #fb923c;
}
.sect-manage-container .member-item:hover {
  transform: translateX(2px);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 4px 12px rgba(0, 0, 0, 0.28);
}
.sect-manage-container .member-item .member-rank {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: bold;
  font-size: 12px;
  background: linear-gradient(135deg, rgba(232, 140, 58, 0.22) 0%, rgba(232, 140, 58, 0.08) 100%);
  color: #e88c3a;
  border: 1px solid rgba(232, 140, 58, 0.3);
}
.sect-manage-container .member-item .member-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
  color: var(--text-primary);
}
.sect-manage-container .member-item .member-position {
  font-size: 10px;
  color: var(--accent-primary);
  font-weight: 600;
  padding: 2px 6px;
  background: rgba(232, 140, 58, 0.1);
  border-radius: 10px;
  text-align: center;
}
.sect-manage-container .member-item .member-contribution {
  color: #e88c3a;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  text-align: right;
}
.sect-manage-container .member-item .member-quota {
  color: #10b981;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  text-align: right;
}
.sect-manage-container .buildings-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sect-manage-container .building-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.sect-manage-container .building-item .building-icon {
  font-size: 28px;
}
.sect-manage-container .building-item .building-info {
  flex: 1;
}
.sect-manage-container .building-item .building-info .building-name {
  font-size: 13px;
  font-weight: bold;
  color: var(--text-primary);
}
.sect-manage-container .building-item .building-info .building-level {
  font-size: 10px;
  color: var(--accent-primary);
  font-variant-numeric: tabular-nums;
}
.sect-manage-container .building-item .building-info .building-effect {
  font-size: 9px;
  color: var(--text-muted);
}
.sect-manage-container .building-item .building-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sect-manage-container .building-item .building-actions .building-toggle-btn {
  padding: 4px 12px;
  border: none;
  border-radius: 8px;
  font-size: 10px;
  cursor: pointer;
}
.sect-manage-container .building-item .building-actions .building-toggle-btn.active {
  background: linear-gradient(135deg, #f26a6a, #ef4444, #eb1515);
  color: white;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}
.sect-manage-container .building-item .building-actions .building-toggle-btn:not(.active) {
  background: linear-gradient(135deg, #13df9b, #10b981, #0c8a60);
  color: white;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}
.sect-manage-container .building-item .building-actions .building-upgrade-btn {
  padding: 4px 12px;
  background: var(--grad-accent);
  border: none;
  border-radius: 8px;
  color: #1f2937;
  font-size: 10px;
  cursor: pointer;
  box-shadow: var(--shadow-accent-sm), inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}
.sect-manage-container .sect-disciple-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  margin-bottom: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.sect-manage-container .sect-disciple-item .disciple-avatar {
  font-size: 24px;
}
.sect-manage-container .sect-disciple-item .disciple-info {
  flex: 2;
}
.sect-manage-container .sect-disciple-item .disciple-info .disciple-name {
  font-size: 12px;
  font-weight: bold;
}
.sect-manage-container .sect-disciple-item .disciple-info .disciple-quality {
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 8px;
  display: inline-block;
}
.sect-manage-container .sect-disciple-item .disciple-info .disciple-quality.white {
  background: #808080;
  color: white;
}
.sect-manage-container .sect-disciple-item .disciple-info .disciple-quality.green {
  background: #22c55e;
  color: white;
}
.sect-manage-container .sect-disciple-item .disciple-info .disciple-quality.blue {
  background: #3b82f6;
  color: white;
}
.sect-manage-container .sect-disciple-item .disciple-info .disciple-quality.purple {
  background: #a855f7;
  color: white;
}
.sect-manage-container .sect-disciple-item .disciple-info .disciple-quality.orange {
  background: #f97316;
  color: white;
}
.sect-manage-container .sect-disciple-item .disciple-info .disciple-stats {
  font-size: 9px;
  color: var(--text-muted);
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}
.sect-manage-container .sect-disciple-item .disciple-hp {
  flex: 1;
}
.sect-manage-container .sect-disciple-item .disciple-hp .hp-bar {
  width: 60px;
  height: 4px;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 2px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5), inset 0 -1px 0 rgba(255, 255, 255, 0.05);
}
.sect-manage-container .sect-disciple-item .disciple-hp .hp-bar .hp-fill {
  height: 100%;
  background: linear-gradient(90deg, #ef4444, #f47c7c, #ec1e1e);
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.sect-manage-container .sect-disciple-item .disciple-hp span {
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}
.sect-manage-container .sect-disciple-item .disciple-actions {
  display: flex;
  gap: 6px;
}
.sect-manage-container .sect-disciple-item .disciple-actions button {
  padding: 4px 10px;
  border: none;
  border-radius: 8px;
  font-size: 10px;
  cursor: pointer;
}
.sect-manage-container .sect-disciple-item .disciple-actions button.dispatch-btn {
  background: var(--grad-accent);
  color: #1f2937;
  box-shadow: var(--shadow-accent-sm), inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}
.sect-manage-container .sect-disciple-item .disciple-actions button.dispatch-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.sect-manage-container .generate-disciple-bar {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  padding: 10px;
  margin-top: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.sect-manage-container .generate-disciple-bar .generate-info {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  margin-bottom: 10px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.sect-manage-container .generate-disciple-bar .generate-info span {
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 8px;
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.sect-manage-container .generate-disciple-bar .generate-buttons {
  display: flex;
  gap: 10px;
}
.sect-manage-container .generate-disciple-bar .generate-buttons button {
  flex: 1;
  padding: 6px;
  border: none;
  border-radius: 12px;
  font-size: 12px;
  cursor: pointer;
  letter-spacing: 0.02em;
}
.sect-manage-container .generate-disciple-bar .generate-buttons button.generate-sect-btn {
  background: linear-gradient(135deg, #f7ae32, #f59e0b, #c57f08);
  color: #1f2937;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}
.sect-manage-container .generate-disciple-bar .generate-buttons button.generate-personal-btn {
  background: linear-gradient(135deg, #13df9b, #10b981, #0c8a60);
  color: white;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}
.sect-manage-container .personal-disciple-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  margin-bottom: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.sect-manage-container .personal-disciple-item .disciple-avatar {
  font-size: 24px;
}
.sect-manage-container .personal-disciple-item .disciple-info {
  flex: 2;
}
.sect-manage-container .personal-disciple-item .disciple-info .disciple-name {
  font-size: 12px;
  font-weight: bold;
}
.sect-manage-container .personal-disciple-item .disciple-info .disciple-quality {
  font-size: 9px;
  color: var(--text-muted);
}
.sect-manage-container .personal-disciple-item .disciple-info .disciple-stats {
  font-size: 9px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.sect-manage-container .personal-disciple-item .disciple-hp-bar {
  width: 60px;
  height: 4px;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5), inset 0 -1px 0 rgba(255, 255, 255, 0.05);
}
.sect-manage-container .personal-disciple-item .disciple-hp-bar .hp-fill {
  height: 100%;
  background: linear-gradient(90deg, #ef4444, #f47c7c, #ec1e1e);
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.sect-manage-container .personal-disciple-item .disciple-actions {
  display: flex;
  gap: 6px;
}
.sect-manage-container .personal-disciple-item .disciple-actions button {
  padding: 4px 10px;
  border: none;
  border-radius: 8px;
  font-size: 10px;
  cursor: pointer;
}
.sect-manage-container .personal-disciple-item .disciple-actions button.disciple-heal-btn {
  background: linear-gradient(135deg, #13df9b, #10b981, #0c8a60);
  color: white;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}
.sect-manage-container .personal-disciple-item .disciple-actions button.disciple-revive-btn {
  background: linear-gradient(135deg, #a783f8, #8b5cf6, #692cf3);
  color: white;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}
.sect-manage-container .personal-disciple-item .disciple-actions button.disciple-recall-btn {
  background: linear-gradient(135deg, #f7ae32, #f59e0b, #c57f08);
  color: #1f2937;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}
.sect-manage-container .personal-disciple-item.empty {
  opacity: 0.7;
}
.sect-manage-container .personal-disciple-item.empty .recruit-personal-btn {
  padding: 5px 14px;
  background: linear-gradient(135deg, #f7ae32, #f59e0b, #c57f08);
  border: none;
  border-radius: 8px;
  color: #1f2937;
  font-size: 11px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}
.sect-manage-container .personal-disciple-item.empty .recruit-personal-btn:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}
.sect-manage-container .personal-disciple-item.empty .recruit-personal-btn:active {
  transform: scale(0.96);
}
.sect-manage-container .personal-disciple-item.dead {
  opacity: 0.6;
}
.sect-manage-container .personal-disciple-item.dead .disciple-name {
  text-decoration: line-through;
}
.sect-manage-container .shop-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sect-manage-container .shop-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.sect-manage-container .shop-slot {
  background: linear-gradient(160deg, rgba(28, 24, 38, 0.92) 0%, rgba(16, 14, 24, 0.96) 100%);
  border-radius: 12px;
  padding: 12px 8px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.25s, box-shadow 0.25s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.sect-manage-container .shop-slot::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(232, 140, 58, 0.18) 0%, rgba(168, 85, 247, 0.1) 45%, rgba(16, 185, 129, 0.12) 100%);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}
.sect-manage-container .shop-slot::after {
  content: "";
  position: absolute;
  top: -40%;
  left: -40%;
  width: 50%;
  height: 180%;
  background: linear-gradient(110deg, transparent 40%, rgba(255, 255, 255, 0.14) 50%, transparent 60%);
  transform: rotate(6deg) translateX(-120%);
  transition: transform 0.7s ease-out;
  pointer-events: none;
  z-index: 2;
}
.sect-manage-container .shop-slot:hover {
  transform: translateY(-3px);
  border-color: rgba(232, 140, 58, 0.25);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(232, 140, 58, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.sect-manage-container .shop-slot:hover::after {
  transform: rotate(6deg) translateX(320%);
}
.sect-manage-container .shop-slot .item-icon {
  font-size: 28px;
  line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
  position: relative;
  z-index: 3;
}
.sect-manage-container .shop-slot .item-name {
  font-size: 12px;
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
  position: relative;
  z-index: 3;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.sect-manage-container .shop-slot .item-price {
  font-size: 11px;
  color: #e88c3a;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  position: relative;
  z-index: 3;
  padding: 2px 10px;
  margin: 0 auto;
  background: linear-gradient(90deg, rgba(232, 140, 58, 0.14) 0%, rgba(232, 140, 58, 0.06) 100%);
  border-radius: 10px;
  border: 1px solid rgba(232, 140, 58, 0.2);
  text-shadow: 0 0 8px rgba(232, 140, 58, 0.3);
}
.sect-manage-container .shop-slot .shop-buy-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 2px 0;
  position: relative;
  z-index: 3;
}
.sect-manage-container .shop-slot .shop-buy-controls .qty-minus-btn,
.sect-manage-container .shop-slot .shop-buy-controls .qty-plus-btn {
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(0, 0, 0, 0.25) 100%);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, transform 0.1s, border-color 0.15s;
}
.sect-manage-container .shop-slot .shop-buy-controls .qty-minus-btn:hover,
.sect-manage-container .shop-slot .shop-buy-controls .qty-plus-btn:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(0, 0, 0, 0.18) 100%);
  border-color: rgba(232, 140, 58, 0.3);
}
.sect-manage-container .shop-slot .shop-buy-controls .qty-minus-btn:active,
.sect-manage-container .shop-slot .shop-buy-controls .qty-plus-btn:active {
  transform: scale(0.9);
}
.sect-manage-container .shop-slot .shop-buy-controls .shop-qty-input {
  width: 42px;
  height: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.5) 100%);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: bold;
  text-align: center;
  font-variant-numeric: tabular-nums;
  appearance: textfield;
  -moz-appearance: textfield;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.sect-manage-container .shop-slot .shop-buy-controls .shop-qty-input::-webkit-outer-spin-button,
.sect-manage-container .shop-slot .shop-buy-controls .shop-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.sect-manage-container .shop-slot .shop-buy-controls .shop-qty-input:focus {
  outline: none;
  border-color: rgba(232, 140, 58, 0.4);
  box-shadow: 0 0 0 2px rgba(232, 140, 58, 0.1);
}
.sect-manage-container .shop-slot .shop-buy-btn {
  padding: 6px 0;
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  z-index: 3;
  background: linear-gradient(135deg, #34d399 0%, #10b981 45%, #047857 100%);
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.32), inset 0 -1px 0 rgba(0, 0, 0, 0.18);
  transition: transform 0.15s, filter 0.15s, box-shadow 0.15s;
}
.sect-manage-container .shop-slot .shop-buy-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 35%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
  transform: skewX(-20deg);
  transition: left 0.5s ease-out;
}
.sect-manage-container .shop-slot .shop-buy-btn:hover {
  filter: brightness(1.1);
  box-shadow: 0 5px 16px rgba(16, 185, 129, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.32), inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}
.sect-manage-container .shop-slot .shop-buy-btn:hover::before {
  left: 140%;
}
.sect-manage-container .shop-slot .shop-buy-btn:active {
  transform: scale(0.95);
}
.sect-manage-container .shop-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.sect-manage-container .shop-item .item-icon {
  font-size: 22px;
}
.sect-manage-container .shop-item .item-info {
  flex: 1;
}
.sect-manage-container .shop-item .item-info .item-name {
  font-size: 12px;
  font-weight: bold;
}
.sect-manage-container .shop-item .item-info .item-price {
  font-size: 10px;
  color: #e88c3a;
  font-variant-numeric: tabular-nums;
}
.sect-manage-container .shop-item .item-info .item-desc {
  font-size: 9px;
  color: var(--text-muted);
}
.sect-manage-container .shop-item .shop-buy-btn {
  padding: 4px 12px;
  background: linear-gradient(135deg, #13df9b, #10b981, #0c8a60);
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 11px;
  cursor: pointer;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}
.sect-manage-container .sect-quit-btn {
  margin-top: 20px;
  padding-bottom: 10px;
}
.sect-manage-container .sect-quit-btn .quit-sect-btn {
  width: 100%;
  padding: 12px;
  margin-bottom: 5px;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid #ef4444;
  border-radius: 12px;
  color: #ef4444;
  font-size: 14px;
  cursor: pointer;
  letter-spacing: 0.02em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.sect-manage-container .sect-quit-btn .quit-sect-btn:hover {
  background: linear-gradient(135deg, #f26a6a, #ef4444, #eb1515);
  color: white;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}
.alliance-container .alliance-contribution {
  text-align: center;
  font-size: 14px;
  font-weight: bold;
  color: #e88c3a;
  padding: 10px;
  background: var(--grad-jade);
  border-radius: 10px;
  margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
  box-shadow: var(--shadow-sm), inset 0 -1px 0 rgba(255, 255, 255, 0.04);
}
.alliance-container .alliance-section {
  margin: 16px 0;
}
.alliance-container .alliance-section .section-title {
  font-size: 13px;
  font-weight: bold;
  color: var(--accent-primary);
  margin-bottom: 10px;
  padding-left: 8px;
  border-left: 3px solid var(--accent-primary);
  letter-spacing: 0.02em;
}
.alliance-container .buildings-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.alliance-container .personal-disciples-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.alliance-container .shop-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.alliance-container .building-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.alliance-container .building-item .building-icon {
  font-size: 28px;
}
.alliance-container .building-item .building-info {
  flex: 1;
}
.alliance-container .building-item .building-info .building-name {
  font-size: 13px;
  font-weight: bold;
  color: var(--text-primary);
}
.alliance-container .building-item .building-info .building-level {
  font-size: 10px;
  color: var(--accent-primary);
  font-variant-numeric: tabular-nums;
}
.alliance-container .building-item .building-info .building-effect {
  font-size: 9px;
  color: var(--text-muted);
}
.alliance-container .building-item .building-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.alliance-container .building-item .building-actions .building-toggle-btn {
  padding: 4px 12px;
  border: none;
  border-radius: 8px;
  font-size: 10px;
  cursor: pointer;
}
.alliance-container .building-item .building-actions .building-toggle-btn.active {
  background: linear-gradient(135deg, #f26a6a, #ef4444, #eb1515);
  color: white;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}
.alliance-container .building-item .building-actions .building-toggle-btn:not(.active) {
  background: linear-gradient(135deg, #13df9b, #10b981, #0c8a60);
  color: white;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}
.alliance-container .building-item .building-actions .building-upgrade-btn {
  padding: 4px 12px;
  background: var(--grad-accent);
  border: none;
  border-radius: 8px;
  color: #1f2937;
  font-size: 10px;
  cursor: pointer;
  box-shadow: var(--shadow-accent-sm), inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}
.alliance-container .personal-disciple-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.alliance-container .personal-disciple-item .disciple-avatar {
  font-size: 24px;
}
.alliance-container .personal-disciple-item .disciple-info {
  flex: 2;
}
.alliance-container .personal-disciple-item .disciple-info .disciple-name {
  font-size: 12px;
  font-weight: bold;
}
.alliance-container .personal-disciple-item .disciple-info .disciple-quality {
  font-size: 9px;
  color: var(--text-muted);
}
.alliance-container .personal-disciple-item .disciple-info .disciple-stats {
  font-size: 9px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.alliance-container .personal-disciple-item .disciple-hp-bar {
  width: 60px;
  height: 4px;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5), inset 0 -1px 0 rgba(255, 255, 255, 0.05);
}
.alliance-container .personal-disciple-item .disciple-hp-bar .hp-fill {
  height: 100%;
  background: linear-gradient(90deg, #ef4444, #f47c7c, #ec1e1e);
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.alliance-container .personal-disciple-item .disciple-actions {
  display: flex;
  gap: 6px;
}
.alliance-container .personal-disciple-item .disciple-actions button {
  padding: 4px 10px;
  border: none;
  border-radius: 8px;
  font-size: 10px;
  cursor: pointer;
}
.alliance-container .personal-disciple-item .disciple-actions button.disciple-cultivate-btn {
  background: var(--grad-accent);
  color: #1f2937;
  box-shadow: var(--shadow-accent-sm), inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}
.alliance-container .personal-disciple-item .disciple-actions button.disciple-revive-btn {
  background: linear-gradient(135deg, #a783f8, #8b5cf6, #692cf3);
  color: white;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}
.alliance-container .personal-disciple-item.empty {
  opacity: 0.7;
}
.alliance-container .personal-disciple-item.empty .recruit-personal-btn {
  padding: 5px 14px;
  background: linear-gradient(135deg, #f7ae32, #f59e0b, #c57f08);
  border: none;
  border-radius: 8px;
  color: #1f2937;
  font-size: 11px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}
.alliance-container .personal-disciple-item.empty .recruit-personal-btn:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}
.alliance-container .personal-disciple-item.empty .recruit-personal-btn:active {
  transform: scale(0.96);
}
.alliance-container .personal-disciple-item.dead {
  opacity: 0.6;
}
.alliance-container .personal-disciple-item.dead .disciple-name {
  text-decoration: line-through;
}
.alliance-container .shop-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.alliance-container .shop-item .item-icon {
  font-size: 22px;
}
.alliance-container .shop-item .item-info {
  flex: 1;
}
.alliance-container .shop-item .item-info .item-name {
  font-size: 12px;
  font-weight: bold;
}
.alliance-container .shop-item .item-info .item-price {
  font-size: 10px;
  color: #e88c3a;
  font-variant-numeric: tabular-nums;
}
.alliance-container .shop-item .item-info .item-desc {
  font-size: 9px;
  color: var(--text-muted);
}
.alliance-container .shop-item .shop-buy-btn {
  padding: 4px 12px;
  background: linear-gradient(135deg, #13df9b, #10b981, #0c8a60);
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 11px;
  cursor: pointer;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}
.raid-status-section {
  margin-bottom: 16px;
  padding: 12px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.08), rgba(220, 38, 38, 0.04));
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 12px;
}
.raid-status-section .section-title {
  font-size: 13px;
  font-weight: bold;
  color: #fca5a5;
  margin-bottom: 10px;
}
.raid-status-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.raid-status-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  border: 1px solid rgba(239, 68, 68, 0.3);
  min-width: 90px;
}
.raid-status-item .rsi-name {
  font-size: 13px;
  font-weight: bold;
}
.raid-status-item .rsi-quality {
  font-size: 10px;
  color: var(--text-muted);
}
.raid-status-item .rsi-timer {
  font-size: 11px;
  color: #e88c3a;
  font-weight: bold;
  font-variant-numeric: tabular-nums;
}
.personal-disciple-item.raiding {
  border-color: rgba(239, 68, 68, 0.4);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(0, 0, 0, 0.3));
}
.raiding-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: bold;
  color: #fff;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  padding: 1px 5px;
  border-radius: 6px;
  margin-left: 4px;
  animation: raidingPulse 1.5s ease-in-out infinite;
}
@keyframes raidingPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}
.raiding-indicator {
  font-size: 11px;
  color: #fca5a5;
  font-weight: bold;
  padding: 4px 8px;
  background: rgba(239, 68, 68, 0.2);
  border-radius: 6px;
}
.raid-container .target-info {
  padding: 10px;
  background: var(--grad-jade);
  border-radius: 10px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm), inset 0 -1px 0 rgba(255, 255, 255, 0.04);
}
.raid-container .target-info .target-title {
  font-size: 12px;
  font-weight: bold;
  color: var(--accent-primary);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.raid-container .target-info .target-stats {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.raid-container .select-disciple-title {
  font-size: 12px;
  margin-bottom: 8px;
}
.raid-container .raid-disciples-list {
  max-height: 200px;
  overflow-y: auto;
  margin-bottom: 12px;
}
.raid-container .raid-disciple-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  margin-bottom: 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.raid-container .raid-disciple-item input {
  width: 18px;
  height: 18px;
}
.raid-container .raid-disciple-item .disciple-info {
  flex: 1;
}
.raid-container .raid-disciple-item .disciple-info .disciple-name {
  font-size: 12px;
  font-weight: bold;
}
.raid-container .raid-disciple-item .disciple-info .disciple-stats {
  font-size: 9px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.raid-container .raid-reward-info,
.raid-container .raid-cd-info {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}
.raid-result-container .result-title {
  font-size: 18px;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
.raid-result-container .result-details {
  margin-bottom: 12px;
}
.raid-result-container .result-details .raid-result-item {
  padding: 6px 8px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  margin-bottom: 6px;
  font-size: 11px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.raid-result-container .result-details .raid-result-item.survived .result-text {
  color: #10b981;
}
.raid-result-container .result-details .raid-result-item.dead .result-text {
  color: #ef4444;
}
.raid-result-container .reward-info {
  text-align: center;
  padding: 8px;
  background: var(--grad-jade);
  border-radius: 8px;
  color: #e88c3a;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.04);
}
.resource-popup-container .resource-progress {
  margin-bottom: 16px;
}
.resource-popup-container .resource-progress .progress-bar {
  height: 16px;
  display: flex;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.45);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5), inset 0 -1px 0 rgba(255, 255, 255, 0.05);
}
.resource-popup-container .resource-progress .progress-bar .progress-good {
  background: linear-gradient(90deg, #3b82f6, #60a5fa, #93c5fd);
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}
.resource-popup-container .resource-progress .progress-bar .progress-evil {
  background: linear-gradient(90deg, #ef4444, #f87171, #fca5a5);
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}
.resource-popup-container .resource-progress .progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.resource-popup-container .resource-powers {
  display: flex;
  gap: 12px;
  margin: 16px 0;
}
.resource-popup-container .resource-powers .good-side,
.resource-popup-container .resource-powers .evil-side {
  flex: 1;
  padding: 10px;
  background: var(--grad-jade);
  border-radius: 10px;
  box-shadow: var(--shadow-sm), inset 0 -1px 0 rgba(255, 255, 255, 0.04);
}
.resource-popup-container .resource-powers .good-side .side-title,
.resource-popup-container .resource-powers .evil-side .side-title {
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.resource-popup-container .resource-powers .good-side .power-list,
.resource-popup-container .resource-powers .evil-side .power-list {
  font-size: 10px;
  margin-bottom: 8px;
  max-height: 100px;
  overflow-y: auto;
  font-variant-numeric: tabular-nums;
}
.resource-popup-container .resource-powers .good-side .power-list .sect-power-item,
.resource-popup-container .resource-powers .evil-side .power-list .sect-power-item {
  padding: 2px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.resource-popup-container .resource-powers .good-side .total-power,
.resource-popup-container .resource-powers .evil-side .total-power {
  font-size: 11px;
  font-weight: bold;
  color: #e88c3a;
  text-align: center;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-variant-numeric: tabular-nums;
}
.resource-popup-container .resource-powers .good-side .side-title {
  color: #60a5fa;
}
.resource-popup-container .resource-powers .evil-side .side-title {
  color: #f87171;
}
.resource-popup-container .battle-result {
  background: var(--grad-jade);
  border-radius: 12px;
  padding: 12px;
  margin: 16px 0;
  box-shadow: var(--shadow-sm), inset 0 -1px 0 rgba(255, 255, 255, 0.04);
}
.resource-popup-container .battle-result .result-title {
  font-size: 13px;
  font-weight: bold;
  color: var(--accent-primary);
  text-align: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
  letter-spacing: 0.02em;
}
.resource-popup-container .battle-result .result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.resource-popup-container .battle-result .result-row:first-of-type {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.resource-popup-container .battle-result .result-row .camp {
  font-weight: bold;
  width: 70px;
}
.resource-popup-container .battle-result .result-row .camp.good {
  color: #60a5fa;
}
.resource-popup-container .battle-result .result-row .camp.evil {
  color: #f87171;
}
.resource-popup-container .battle-result .result-row span {
  flex: 1;
  text-align: center;
}
.resource-popup-container .resource-tip {
  font-size: 10px;
  color: #9ca3af;
  text-align: center;
  padding: 8px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  margin-top: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.resource-popup-container .my-dispatched .section-title {
  font-size: 13px;
  font-weight: bold;
  color: var(--accent-primary);
  margin-bottom: 10px;
  padding-left: 8px;
  border-left: 3px solid var(--accent-primary);
  letter-spacing: 0.02em;
}
.resource-popup-container .my-dispatched .dispatched-disciple {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  margin-bottom: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.resource-popup-container .my-dispatched .dispatched-disciple .disciple-avatar {
  font-size: 22px;
}
.resource-popup-container .my-dispatched .dispatched-disciple .disciple-info {
  flex: 2;
}
.resource-popup-container .my-dispatched .dispatched-disciple .disciple-info .disciple-name {
  font-size: 12px;
  font-weight: bold;
}
.resource-popup-container .my-dispatched .dispatched-disciple .disciple-info .disciple-stats {
  font-size: 9px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.resource-popup-container .my-dispatched .dispatched-disciple .disciple-hp {
  flex: 1;
}
.resource-popup-container .my-dispatched .dispatched-disciple .disciple-hp .hp-bar {
  width: 60px;
  height: 4px;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 2px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5), inset 0 -1px 0 rgba(255, 255, 255, 0.05);
}
.resource-popup-container .my-dispatched .dispatched-disciple .disciple-hp .hp-bar .hp-fill {
  height: 100%;
  background: linear-gradient(90deg, #ef4444, #f47c7c, #ec1e1e);
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.resource-popup-container .my-dispatched .dispatched-disciple .disciple-hp span {
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}
.resource-popup-container .my-dispatched .dispatched-disciple button {
  padding: 4px 12px;
  border: none;
  border-radius: 8px;
  font-size: 10px;
  cursor: pointer;
}
.resource-popup-container .my-dispatched .dispatched-disciple button.recall-personal-btn {
  background: linear-gradient(135deg, #f7ae32, #f59e0b, #c57f08);
  color: #1f2937;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}
.resource-popup-container .my-dispatched .dispatched-disciple button.recall-sect-btn.disabled {
  background: #4b5563;
  color: #9ca3af;
  cursor: not-allowed;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.resource-popup-container .resource-disciples-section {
  margin-top: 16px;
  padding: 12px;
  background: var(--grad-jade);
  border-radius: 12px;
  box-shadow: var(--shadow-sm), inset 0 -1px 0 rgba(255, 255, 255, 0.04);
}
.resource-popup-container .resource-disciples-section .resource-disciples-title {
  font-size: 13px;
  font-weight: bold;
  color: var(--accent-primary);
  margin-bottom: 8px;
  padding-left: 8px;
  border-left: 3px solid var(--accent-primary);
  letter-spacing: 0.02em;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.resource-popup-container .resource-disciples-section .resource-disciples-title .disciple-count {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: normal;
}
.resource-popup-container .resource-disciples-section .resource-generate-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.resource-popup-container .resource-disciples-section .resource-generate-bar .generate-info {
  flex: 1;
  min-width: 120px;
  font-size: 10px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.resource-popup-container .resource-disciples-section .resource-generate-bar .generate-buttons {
  display: flex;
  gap: 6px;
}
.resource-popup-container .resource-disciples-section .resource-generate-bar .generate-buttons button {
  padding: 6px 12px;
  border: none;
  border-radius: 12px;
  font-size: 11px;
  font-weight: bold;
  cursor: pointer;
  letter-spacing: 0.02em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.resource-popup-container .resource-disciples-section .resource-generate-bar .generate-buttons button.generate-sect-btn {
  background: linear-gradient(135deg, #e88c3a, #f59e0b);
  color: #1f2937;
}
.resource-popup-container .resource-disciples-section .resource-generate-bar .generate-buttons button.generate-personal-btn {
  background: linear-gradient(135deg, #a78bfa, #8b5cf6);
  color: #fff;
}
.resource-popup-container .resource-disciples-section .resource-generate-bar .generate-buttons button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.resource-popup-container .resource-disciples-section .resource-generate-bar .generate-card {
  flex: 1;
  min-width: 170px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  background: linear-gradient(160deg, rgba(31, 27, 62, 0.72), rgba(18, 16, 44, 0.85));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 4px 14px rgba(0, 0, 0, 0.25);
}
.resource-popup-container .resource-disciples-section .resource-generate-bar .generate-card.generate-card-sect {
  border-top: 2px solid #e88c3a;
}
.resource-popup-container .resource-disciples-section .resource-generate-bar .generate-card.generate-card-personal {
  border-top: 2px solid #a78bfa;
}
.resource-popup-container .resource-disciples-section .resource-generate-bar .generate-card .gc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}
.resource-popup-container .resource-disciples-section .resource-generate-bar .generate-card .gc-head .gc-label {
  font-size: 12px;
  font-weight: bold;
  color: #e88c3a;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.resource-popup-container .resource-disciples-section .resource-generate-bar .generate-card .gc-head .gc-count {
  font-size: 10px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.resource-popup-container .resource-disciples-section .resource-generate-bar .generate-card.generate-card-personal .gc-head .gc-label {
  color: #a78bfa;
}
.resource-popup-container .resource-disciples-section .resource-generate-bar .generate-card .gc-info {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  font-size: 10px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.resource-popup-container .resource-disciples-section .resource-generate-bar .generate-card .gc-status {
  font-size: 10px;
  font-weight: bold;
}
.resource-popup-container .resource-disciples-section .resource-generate-bar .generate-card .gc-btn {
  width: 100%;
  padding: 7px 12px;
  border: none;
  border-radius: 12px;
  font-size: 11px;
  font-weight: bold;
  cursor: pointer;
  letter-spacing: 0.02em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 2px 8px rgba(0, 0, 0, 0.2);
}
.resource-popup-container .resource-disciples-section .resource-generate-bar .generate-card .gc-btn.generate-sect-btn {
  background: linear-gradient(135deg, #e88c3a, #f59e0b);
  color: #1f2937;
}
.resource-popup-container .resource-disciples-section .resource-generate-bar .generate-card .gc-btn.generate-personal-btn {
  background: linear-gradient(135deg, #a78bfa, #8b5cf6);
  color: #fff;
}
.resource-popup-container .resource-disciples-section .resource-generate-bar .generate-card .gc-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.resource-popup-container .resource-disciples-section .resource-disciples-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 240px;
  overflow-y: auto;
}
.resource-popup-container .resource-disciples-section .resource-disciple-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.resource-popup-container .resource-disciples-section .resource-disciple-item .rd-avatar {
  font-size: 20px;
}
.resource-popup-container .resource-disciples-section .resource-disciple-item .rd-info {
  flex: 1;
  min-width: 0;
}
.resource-popup-container .resource-disciples-section .resource-disciple-item .rd-info .rd-name {
  font-size: 12px;
  font-weight: bold;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.resource-popup-container .resource-disciples-section .resource-disciple-item .rd-info .rd-stats {
  font-size: 10px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.resource-popup-container .resource-disciples-section .resource-disciple-item .rd-actions {
  display: flex;
  gap: 4px;
}
.resource-popup-container .resource-disciples-section .resource-disciple-item .rd-actions button {
  padding: 4px 10px;
  border: none;
  border-radius: 12px;
  font-size: 10px;
  cursor: pointer;
  letter-spacing: 0.02em;
}
.resource-popup-container .resource-disciples-section .resource-disciple-item .rd-actions button.dispatch-btn {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
}
.resource-popup-container .resource-disciples-section .resource-disciple-item .rd-actions button.recall-btn {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
}
.resource-popup-container .resource-disciples-section .resource-disciple-item .rd-actions button.disabled {
  background: #4b5563;
  color: #9ca3af;
  cursor: not-allowed;
}
.resource-popup-container .resource-disciples-section .resource-empty-tip {
  text-align: center;
  padding: 16px;
  font-size: 11px;
  color: var(--text-muted);
}
.join-sect-info {
  text-align: center;
}
.join-sect-info .sect-icon-large {
  font-size: 56px;
  margin-bottom: 8px;
}
.join-sect-info .sect-name-large {
  font-size: 18px;
  font-weight: bold;
  color: var(--accent-primary);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}
.join-sect-info .join-benefits {
  text-align: left;
}
.join-sect-info .join-benefits .benefit-item {
  padding: 5px 0;
  font-size: 12px;
}
.amount-input {
  width: 100%;
  padding: 10px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 14px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.resource-select-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.resource-select-list .resource-select-btn {
  padding: 8px;
  background: rgba(0, 0, 0, 0.3);
  border: none;
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 12px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.resource-select-list .resource-select-btn:hover {
  background: var(--accent-primary);
  color: #1f2937;
  box-shadow: var(--shadow-accent-sm), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.cultivate-popup-container .cultivate-header {
  text-align: center;
  margin-bottom: 16px;
}
.cultivate-popup-container .cultivate-header .disciple-name {
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 0.02em;
}
.cultivate-popup-container .cultivate-header .disciple-quality {
  font-size: 12px;
  color: var(--text-muted);
  margin: 4px 0;
}
.cultivate-popup-container .cultivate-header .disciple-exp {
  font-size: 11px;
  color: var(--accent-primary);
  font-variant-numeric: tabular-nums;
}
.cultivate-popup-container .cultivate-header .disciple-exp-bar {
  height: 6px;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 8px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5), inset 0 -1px 0 rgba(255, 255, 255, 0.05);
}
.cultivate-popup-container .cultivate-header .disciple-exp-bar .exp-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #f7b546, #cf8508);
  width: 0%;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}
.cultivate-popup-container .cultivate-section {
  margin: 16px 0;
}
.cultivate-popup-container .cultivate-section .section-title {
  font-size: 13px;
  font-weight: bold;
  color: var(--accent-primary);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}
.cultivate-popup-container .cultivate-section .cultivate-input-group {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.cultivate-popup-container .cultivate-section .cultivate-input-group .cultivate-input {
  flex: 2;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 12px;
  width: 70px;
  font-variant-numeric: tabular-nums;
  transition: border-color 0.2s;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
}
.cultivate-popup-container .cultivate-section .cultivate-input-group .cultivate-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4), 0 0 6px var(--accent-soft);
}
.cultivate-popup-container .cultivate-section .cultivate-input-group .cultivate-input-small {
  width: 60px;
  padding: 6px 8px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 12px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  transition: border-color 0.2s;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
}
.cultivate-popup-container .cultivate-section .cultivate-input-group .cultivate-input-small:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4), 0 0 6px var(--accent-soft);
}
.cultivate-popup-container .cultivate-section .cultivate-input-group .cultivate-select {
  flex: 3;
  padding: 6px 26px 6px 10px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 11px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-repeat: no-repeat;
  background-position: right 8px center;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
}
.cultivate-popup-container .cultivate-section .cultivate-input-group .cultivate-select:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px rgba(192, 160, 128, 0.2);
}
.cultivate-popup-container .cultivate-section .cultivate-input-group .cultivate-select:hover {
  border-color: var(--accent-primary);
}
.cultivate-popup-container .cultivate-section .cultivate-input-group .cultivate-select option {
  background: #1e293b;
  color: var(--text-primary);
  padding: 4px 8px;
}
.cultivate-popup-container .cultivate-section .cultivate-input-group .cultivate-btn {
  padding: 6px 16px;
  background: linear-gradient(135deg, #f7ae32, #f59e0b, #c57f08);
  border: none;
  border-radius: 8px;
  color: #1f2937;
  font-weight: bold;
  font-size: 12px;
  cursor: pointer;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}
.cultivate-popup-container .breakthrough-section {
  margin: 16px 0;
  padding: 12px;
  background: rgba(168, 85, 247, 0.15);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(168, 85, 247, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.cultivate-popup-container .breakthrough-section .section-title {
  font-size: 13px;
  font-weight: bold;
  color: #a855f7;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.cultivate-popup-container .breakthrough-section .breakthrough-info {
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}
.cultivate-popup-container .breakthrough-section .breakthrough-btn {
  width: 100%;
  padding: 8px;
  background: var(--grad-accent);
  border: none;
  border-radius: 8px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-accent-md), inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}
.cultivate-popup-container .disciple-other-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.cultivate-popup-container .disciple-other-actions .other-btn {
  flex: 1;
  padding: 8px;
  background: rgba(0, 0, 0, 0.3);
  border: none;
  border-radius: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.cultivate-popup-container .disciple-other-actions .other-btn:hover {
  background: var(--accent-primary);
  color: #1f2937;
  box-shadow: var(--shadow-accent-sm), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.realm-popup .popup-content {
  animation: popup-in 0.28s ease;
}
.realm-popup.show .popup-content {
  animation: popup-in 0.28s ease;
}
.realm-popup.hide .popup-content {
  animation: popup-out 0.2s ease forwards;
}
@keyframes popup-in {
  from {
    transform: scale(0.92);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
@keyframes popup-out {
  to {
    transform: scale(0.95);
    opacity: 0;
  }
}
.realm-overview-card {
  background: var(--grad-jade);
  border-radius: 12px;
  padding: 12px;
  box-shadow: var(--shadow-sm), inset 0 -1px 0 rgba(255, 255, 255, 0.04);
}
.realm-overview-card .overview-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  text-align: center;
}
.realm-overview-card .ov-label {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.realm-overview-card .ov-value {
  display: block;
  font-size: 15px;
  font-weight: bold;
  color: #e88c3a;
  font-variant-numeric: tabular-nums;
}
.realm-floor-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.realm-floor-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 8px 4px;
  text-align: center;
  transition: all 0.2s;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.realm-floor-card.cleared {
  border-color: #e88c3a;
  background: rgba(232, 140, 58, 0.12);
  box-shadow: 0 0 8px rgba(232, 140, 58, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.realm-floor-card.locked {
  opacity: 0.45;
}
.realm-floor-card .floor-num {
  font-size: 13px;
  font-weight: bold;
  color: var(--accent-primary);
  margin-bottom: 4px;
}
.realm-floor-card .floor-status {
  font-size: 9px;
  color: var(--text-secondary);
  margin-bottom: 4px;
  line-height: 1.3;
}
.realm-floor-card .floor-time {
  font-size: 8px;
  color: #e88c3a;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}
.realm-floor-card .floor-enter-btn {
  width: 100%;
  padding: 4px 0;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #13df9b, #10b981, #0c8a60);
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  cursor: pointer;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}
.realm-floor-card .floor-enter-btn:hover {
  filter: brightness(1.08);
}
.realm-floor-card .floor-enter-btn:active {
  transform: scale(0.96);
}
.realm-floor-card .floor-enter-btn:disabled {
  background: #4b5563;
  color: #9ca3af;
  cursor: not-allowed;
  filter: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.realm-tip-box {
  margin-top: 16px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  font-size: 10px;
  color: var(--text-secondary);
  line-height: 1.8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.realm-tip-box div {
  margin-bottom: 2px;
}
.realm-tip-box b {
  color: var(--accent-primary);
}
.realm-diff-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.realm-diff-card {
  background: rgba(0, 0, 0, 0.35);
  border: 2px solid;
  border-radius: 8px;
  padding: 14px 10px 12px;
  text-align: center;
  transition: all 0.2s;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.realm-diff-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.realm-diff-card .diff-icon {
  font-size: 32px;
  line-height: 1;
  margin-bottom: 6px;
}
.realm-diff-card .diff-name {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}
.realm-diff-card .diff-stats {
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}
.realm-diff-card .diff-drops {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  margin-bottom: 10px;
}
.realm-diff-card .diff-drops .diff-drop {
  font-size: 10px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  padding: 2px 6px;
  white-space: nowrap;
}
.realm-diff-card .diff-enter-btn {
  width: 100%;
  padding: 6px 0;
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  cursor: pointer;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.2);
  transition: all 0.15s;
}
.realm-diff-card .diff-enter-btn:hover {
  filter: brightness(1.12);
}
.realm-diff-card .diff-enter-btn:active {
  transform: scale(0.96);
}
.boss-skills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px;
  margin-top: 10px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  justify-content: center;
}
.boss-skill-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(59, 130, 246, 0.15));
  border: 1px solid rgba(168, 85, 247, 0.3);
  font-size: 10px;
  color: #c4b5fd;
  cursor: help;
}
.result-info-row {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  background: var(--grad-jade);
  border-radius: 10px;
  font-size: 11px;
  box-shadow: var(--shadow-sm), inset 0 -1px 0 rgba(255, 255, 255, 0.04);
}
.result-info-row b {
  color: var(--accent-primary);
}
.first-clear-banner {
  margin-top: 12px;
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(232, 140, 58, 0.25), rgba(245, 158, 11, 0.15));
  border: 1px dashed #e88c3a;
  border-radius: 10px;
  text-align: center;
  font-size: 12px;
  font-weight: bold;
  color: #e88c3a;
  letter-spacing: 0.02em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.reward-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.reward-card {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  padding: 10px 4px;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  position: relative;
}
.reward-card.q-common {
  border-color: #9ca3af;
}
.reward-card.q-uncommon {
  border-color: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.18);
}
.reward-card.q-rare {
  border-color: #3b82f6;
  box-shadow: 0 0 6px rgba(59, 130, 246, 0.22);
}
.reward-card.q-epic {
  border-color: #a855f7;
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.25);
}
.reward-card.q-legendary {
  border-color: #f97316;
  background: rgba(249, 115, 22, 0.12);
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.3);
}
.reward-card.q-rainbow {
  border-color: transparent;
  background: linear-gradient(#1a1a2e, #1a1a2e) padding-box, linear-gradient(135deg, #ff0080, #ff8c00, #ffd700, #00ff00, #00bfff, #8a2be2) border-box;
  border: 2px solid transparent;
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.15);
}
.reward-card.q-rainbow .reward-name {
  color: #ffd700;
}
.reward-card .reward-icon {
  font-size: 28px;
  margin-bottom: 4px;
}
.reward-card .reward-name {
  font-size: 10px;
  font-weight: bold;
  color: var(--text-primary);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.reward-card .reward-count {
  font-size: 13px;
  font-weight: bold;
  color: #e88c3a;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}
.reward-card .reward-quality {
  font-size: 8px;
  color: var(--text-muted);
}
.lose-tip {
  margin: 24px 0;
  padding: 16px;
  text-align: center;
  font-size: 12px;
  line-height: 1.8;
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.1);
  border-radius: 10px;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.no-key-card {
  text-align: center;
  padding: 16px;
  background: var(--grad-jade);
  border-radius: 12px;
  box-shadow: var(--shadow-sm), inset 0 -1px 0 rgba(255, 255, 255, 0.04);
}
.no-key-card .no-key-icon {
  font-size: 54px;
  margin-bottom: 4px;
}
.no-key-card .no-key-title {
  font-size: 16px;
  font-weight: bold;
  color: var(--accent-primary);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.no-key-card .no-key-desc {
  font-size: 11px;
  color: var(--text-secondary);
}
.key-source-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.key-source-list li {
  padding: 6px 10px;
  font-size: 11px;
  color: var(--text-secondary);
  background: rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  margin-bottom: 4px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.key-current {
  margin-top: 12px;
  text-align: center;
  font-size: 12px;
  color: var(--text-secondary);
}
.key-current b {
  color: var(--accent-primary);
  font-size: 15px;
}
.galaxy-no-sect-tip {
  font-size: 12px;
  color: #e88c3a;
  background: rgba(232, 140, 58, 0.1);
  padding: 4px 12px;
  border-radius: 12px;
  border: 1px solid rgba(232, 140, 58, 0.3);
}
.sect-manage-panel {
  max-width: 520px;
}
.sect-manage-panel .popup-body {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.manage-action-row {
  display: flex;
  gap: 10px;
}
.manage-btn-half {
  flex: 1;
  height: 36px;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
}
.manage-btn-half.back-btn {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.4);
}
.manage-btn-half.back-btn:hover {
  background: rgba(59, 130, 246, 0.35);
}
.manage-btn-half.leave-btn {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.4);
}
.manage-btn-half.leave-btn:hover {
  background: rgba(239, 68, 68, 0.35);
}
.manage-info-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  padding: 10px;
}
.manage-info-row .info-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.manage-info-row .info-label {
  font-size: 10px;
  color: var(--text-muted);
}
.manage-info-row .info-value {
  font-size: 13px;
  font-weight: bold;
  color: var(--accent-primary);
}
.manage-disciples-section {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  padding: 10px;
}
.manage-disciples-section .section-title {
  font-size: 13px;
  font-weight: bold;
  color: var(--accent-primary);
  margin-bottom: 8px;
}
.disciple-status-overview {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  margin-bottom: 8px;
}
.disciple-status-overview .ds-normal {
  color: #34d399;
}
.disciple-status-overview .ds-injured {
  color: #e88c3a;
}
.disciple-status-overview .ds-dead {
  color: #f87171;
}
.disciple-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 180px;
  overflow-y: auto;
}
.disciple-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  border-left: 3px solid var(--accent-primary);
}
.disciple-item.disciple-injured {
  border-left-color: #e88c3a;
  background: rgba(232, 140, 58, 0.08);
}
.disciple-item.disciple-dead {
  border-left-color: #f87171;
  background: rgba(248, 113, 113, 0.08);
  opacity: 0.6;
}
.disciple-info .disciple-name {
  font-size: 13px;
  font-weight: bold;
  color: #fff;
}
.disciple-info .disciple-stats {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}
.quality-tag {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: bold;
  margin-left: 4px;
}
.quality-tag.quality-white {
  background: rgba(209, 213, 219, 0.25);
  color: #f3f4f6;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.quality-tag.quality-green {
  background: rgba(34, 197, 94, 0.25);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.4);
}
.quality-tag.quality-blue {
  background: rgba(59, 130, 246, 0.25);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.4);
}
.quality-tag.quality-purple {
  background: rgba(168, 85, 247, 0.25);
  color: #d8b4fe;
  border: 1px solid rgba(168, 85, 247, 0.4);
}
.quality-tag.quality-orange {
  background: rgba(251, 146, 60, 0.3);
  color: #fed7aa;
  border: 1px solid rgba(251, 146, 60, 0.5);
}
.quality-tag.quality-low {
  background: rgba(156, 163, 175, 0.25);
  color: #d1d5db;
}
.quality-tag.quality-middle {
  background: rgba(34, 197, 94, 0.25);
  color: #86efac;
}
.quality-tag.quality-high {
  background: rgba(59, 130, 246, 0.25);
  color: #93c5fd;
}
.quality-tag.quality-epic {
  background: rgba(168, 85, 247, 0.25);
  color: #d8b4fe;
}
.quality-tag.quality-legendary {
  background: rgba(251, 146, 60, 0.25);
  color: #fed7aa;
}
.disciple-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.heal-btn,
.revive-btn {
  padding: 4px 10px;
  border: none;
  border-radius: 6px;
  font-size: 11px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
}
.heal-btn.heal-btn,
.revive-btn.heal-btn {
  background: rgba(34, 197, 94, 0.3);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.5);
}
.heal-btn.heal-btn:hover,
.revive-btn.heal-btn:hover {
  background: rgba(34, 197, 94, 0.5);
}
.heal-btn.revive-btn,
.revive-btn.revive-btn {
  background: rgba(168, 85, 247, 0.3);
  color: #d8b4fe;
  border: 1px solid rgba(168, 85, 247, 0.5);
}
.heal-btn.revive-btn:hover,
.revive-btn.revive-btn:hover {
  background: rgba(168, 85, 247, 0.5);
}
.heal-btn .status-ok,
.revive-btn .status-ok {
  color: #34d399;
  font-size: 14px;
}
.empty-disciples {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  padding: 16px;
}
.manage-tips {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.manage-tips .tip-item {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
}
.manage-content-header {
  text-align: center;
  margin-bottom: 12px;
  padding-bottom: 12px;
  background: linear-gradient(180deg, rgba(232, 140, 58, 0.08), transparent);
  border-radius: 12px;
  border: 1px solid rgba(232, 140, 58, 0.15);
  padding: 12px;
}
.manage-content-title {
  font-size: 20px;
  font-weight: bold;
  color: var(--accent-primary);
  letter-spacing: 0.02em;
  text-shadow: 0 0 12px rgba(232, 140, 58, 0.3);
  margin-bottom: 4px;
}
.manage-content-subtitle {
  font-size: 12px;
  color: var(--text-muted);
}
.enemy-sect-popup {
  max-width: 460px;
}
.enemy-sect-popup .popup-body {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.enemy-sect-info {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.enemy-info-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 13px;
}
.enemy-info-row b {
  color: var(--accent-primary);
  font-size: 14px;
}
.enemy-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
  padding: 8px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
}
.raid-section {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  padding: 12px;
}
.raid-section .section-title {
  font-size: 13px;
  font-weight: bold;
  color: #f87171;
  margin-bottom: 6px;
}
.raid-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 10px;
  line-height: 1.5;
}
.raid-disciples {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.raid-disciple-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s;
}
.raid-disciple-card.on-cd {
  opacity: 0.5;
  background: rgba(255, 255, 255, 0.02);
}
.rd-info .rd-name {
  font-size: 13px;
  font-weight: bold;
  color: #fff;
}
.rd-info .rd-stats {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}
.rd-info .rd-reward {
  font-size: 11px;
  color: #e88c3a;
  margin-top: 3px;
}
.rd-action {
  display: flex;
  align-items: center;
}
.raid-section-manage {
  margin-bottom: 16px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  border: 1px solid rgba(34, 197, 94, 0.25);
}
.raid-section-manage .section-title {
  font-size: 13px;
  font-weight: bold;
  color: #86efac;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(34, 197, 94, 0.2);
}
.raid-section-manage .raid-disciples {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.raid-section-manage .raid-disciple-card {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(16, 185, 129, 0.05));
  border-color: rgba(34, 197, 94, 0.35);
}
.raid-btn {
  padding: 6px 12px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
}
.raid-btn:hover {
  background: linear-gradient(135deg, #f87171, #ef4444);
  transform: scale(1.05);
}
.raid-btn:active {
  transform: scale(0.95);
}
.cd-text {
  font-size: 11px;
  color: var(--text-muted);
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
}
.empty-tip {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  padding: 20px;
}
.donate-mask {
  background: rgba(5, 3, 15, 0.85);
  backdrop-filter: blur(6px);
}
.donate-popup {
  max-width: 420px;
  background: linear-gradient(168deg, #1c1430 0%, #251a38 40%, #1e1630 100%);
  border: 1px solid rgba(232, 140, 58, 0.3);
  box-shadow: 0 12px 50px rgba(232, 140, 58, 0.15), 0 0 100px rgba(232, 140, 58, 0.05) inset;
  position: relative;
  overflow: hidden;
  animation: donatePopIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes donatePopIn {
  from {
    transform: scale(0.92) translateY(20px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}
.donate-bg-effects {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.donate-glow-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.5;
}
.donate-glow-circle.c1 {
  width: 220px;
  height: 220px;
  top: -80px;
  right: -60px;
  background: radial-gradient(circle, rgba(232, 140, 58, 0.25), transparent 70%);
}
.donate-glow-circle.c2 {
  width: 180px;
  height: 180px;
  bottom: -60px;
  left: -40px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.15), transparent 70%);
}
.donate-popup .popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-secondary);
  background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 3px, rgba(0, 0, 0, 0.03) 3px 4px, transparent 4px 6px);
  position: relative;
  z-index: 1;
}
.donate-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.donate-title-icon {
  font-size: 22px;
  filter: drop-shadow(0 0 8px rgba(232, 140, 58, 0.6));
}
.donate-popup .popup-title {
  font-size: 17px;
  font-weight: bold;
  color: var(--accent-bright);
  letter-spacing: 0.1em;
  text-shadow: 0 0 10px var(--accent-glow);
}
.donate-popup .popup-close {
  width: 32px;
  height: 32px;
  background: #22323a;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s;
}
.donate-popup .popup-close:hover {
  background: var(--color-danger);
  border-color: var(--color-danger);
  color: white;
}
.donate-popup .popup-close:active {
  transform: scale(0.96);
}
.donate-body {
  position: relative;
  z-index: 1;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.donate-asset-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 14px 16px;
  backdrop-filter: blur(10px);
}
.asset-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}
.asset-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.asset-icon.jade {
  background: linear-gradient(135deg, rgba(232, 140, 58, 0.25), rgba(245, 158, 11, 0.1));
  box-shadow: 0 4px 12px rgba(232, 140, 58, 0.2);
}
.asset-icon.contrib {
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.25), rgba(139, 92, 246, 0.1));
  box-shadow: 0 4px 12px rgba(167, 139, 250, 0.2);
}
.asset-info .asset-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 3px;
}
.asset-info .asset-value {
  font-size: 18px;
  font-weight: bold;
  font-variant-numeric: tabular-nums;
}
.asset-divider {
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}
.rate-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  background: linear-gradient(90deg, rgba(232, 140, 58, 0.12), rgba(167, 139, 250, 0.08));
  border: 1px solid rgba(232, 140, 58, 0.2);
  border-radius: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}
.rate-banner b {
  color: #e88c3a;
  font-size: 14px;
  font-weight: bold;
}
.rate-icon {
  font-size: 14px;
}
.section-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}
.section-label::before {
  content: "";
  width: 3px;
  height: 12px;
  background: linear-gradient(180deg, #e88c3a, #a78bfa);
  border-radius: 2px;
}
.quick-amounts {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.quick-amount-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 10px 6px;
  background: linear-gradient(145deg, rgba(232, 140, 58, 0.1), rgba(232, 140, 58, 0.03));
  border: 1.5px solid rgba(232, 140, 58, 0.3);
  border-radius: 12px;
  color: #e88c3a;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.quick-amount-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transition: left 0.6s;
}
.quick-amount-btn:hover:not(.disabled) {
  background: linear-gradient(145deg, rgba(232, 140, 58, 0.25), rgba(232, 140, 58, 0.08));
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(232, 140, 58, 0.25);
}
.quick-amount-btn:hover:not(.disabled)::before {
  left: 100%;
}
.quick-amount-btn.selected {
  background: linear-gradient(145deg, #e88c3a, #f59e0b);
  border-color: #fde68a;
  color: #1f2937;
  box-shadow: 0 6px 20px rgba(232, 140, 58, 0.45);
  transform: translateY(-2px);
}
.quick-amount-btn.disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.quick-amount-btn .qa-num {
  font-size: 15px;
  font-weight: bold;
  font-variant-numeric: tabular-nums;
}
.quick-amount-btn .qa-label {
  font-size: 10px;
  opacity: 0.8;
}
.custom-amount-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}
.custom-amount-input {
  flex: 1;
  padding: 10px 14px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  outline: none;
  font-variant-numeric: tabular-nums;
}
.custom-amount-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}
.conversion-arrow {
  font-size: 20px;
  color: #e88c3a;
  font-weight: bold;
  padding: 0 4px;
}
.preview-box {
  display: flex;
  align-items: baseline;
  gap: 4px;
  padding: 8px 14px;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.2), rgba(139, 92, 246, 0.08));
  border: 1px solid rgba(167, 139, 250, 0.3);
  border-radius: 10px;
}
.preview-box .preview-label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
}
.preview-box .preview-contribution {
  font-size: 18px;
  font-weight: bold;
  color: #c4b5fd;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 10px rgba(167, 139, 250, 0.4);
}
.preview-box .preview-unit {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}
.donate-preview-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(232, 140, 58, 0.1), rgba(167, 139, 250, 0.06));
  border: 1px solid rgba(232, 140, 58, 0.2);
  border-radius: 8px;
  position: relative;
}
.preview-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}
.preview-row.highlight {
  background: linear-gradient(90deg, rgba(167, 139, 250, 0.12), transparent);
  padding: 6px 14px;
  border-radius: 8px;
}
.preview-text {
  min-width: 70px;
}
.preview-num {
  font-size: 20px;
  font-weight: bold;
  color: #e88c3a;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 12px rgba(232, 140, 58, 0.4);
}
.preview-unit-name {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}
.preview-arrow-big {
  font-size: 18px;
  color: #a78bfa;
  margin: 2px 0;
}
.donate-footer {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 10px;
  padding: 14px 18px 18px;
}
.donate-btn-confirm {
  flex: 2;
  padding: 13px 20px;
  background: linear-gradient(135deg, #e88c3a, #f59e0b);
  border: none;
  border-radius: 12px;
  color: #1f2937;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 4px 16px rgba(232, 140, 58, 0.35);
}
.donate-btn-confirm:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232, 140, 58, 0.5);
}
.donate-btn-confirm:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.donate-btn-confirm.active {
  animation: donatePulse 1.5s ease-in-out infinite;
}
@keyframes donatePulse {
  0%,
  100% {
    box-shadow: 0 4px 16px rgba(232, 140, 58, 0.35);
  }
  50% {
    box-shadow: 0 4px 24px rgba(232, 140, 58, 0.6);
  }
}
.donate-btn-cancel {
  flex: 1;
  padding: 13px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}
.donate-btn-cancel:hover {
  background: rgba(255, 255, 255, 0.1);
}
.jade-color {
  color: #e88c3a !important;
  font-weight: bold;
}
.contrib-color {
  color: #a78bfa !important;
  font-weight: bold;
}
.destiny-color {
  color: #c4b5fd !important;
  font-weight: bold;
}
.destiny-mask {
  background: rgba(8, 4, 20, 0.88);
  backdrop-filter: blur(8px);
}
.destiny-exchange-popup {
  max-width: 440px;
  background: linear-gradient(168deg, #1e1435 0%, #261840 45%, #1a1230 100%);
  border: 1px solid rgba(167, 139, 250, 0.35);
  box-shadow: 0 14px 50px rgba(167, 139, 250, 0.2), 0 0 120px rgba(167, 139, 250, 0.08) inset;
  position: relative;
  overflow: hidden;
  animation: destinyPopIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes destinyPopIn {
  from {
    transform: scale(0.9) translateY(25px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}
.destiny-bg-effects {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.destiny-particle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.6), transparent 70%);
}
.destiny-particle.p1 {
  width: 8px;
  height: 8px;
  top: 20%;
  left: 15%;
  animation: particleFloat1 6s ease-in-out infinite;
}
.destiny-particle.p2 {
  width: 6px;
  height: 6px;
  top: 60%;
  right: 20%;
  animation: particleFloat2 8s ease-in-out infinite;
}
.destiny-particle.p3 {
  width: 10px;
  height: 10px;
  top: 40%;
  right: 30%;
  animation: particleFloat1 7s ease-in-out infinite 1s;
}
@keyframes particleFloat1 {
  0%,
  100% {
    transform: translate(0, 0);
    opacity: 0.4;
  }
  50% {
    transform: translate(10px, -20px);
    opacity: 0.8;
  }
}
@keyframes particleFloat2 {
  0%,
  100% {
    transform: translate(0, 0);
    opacity: 0.3;
  }
  50% {
    transform: translate(-15px, 15px);
    opacity: 0.7;
  }
}
.destiny-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  border: 1px solid rgba(167, 139, 250, 0.15);
  border-radius: 50%;
  animation: ringRotate 20s linear infinite;
}
.destiny-ring::before,
.destiny-ring::after {
  content: "";
  position: absolute;
  inset: -20px;
  border: 1px solid rgba(167, 139, 250, 0.1);
  border-radius: 50%;
}
.destiny-ring::after {
  inset: -50px;
  border-color: rgba(232, 140, 58, 0.08);
}
@keyframes ringRotate {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
.destiny-header {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(90deg, rgba(167, 139, 250, 0.2), transparent);
  border-bottom: 1px solid rgba(167, 139, 250, 0.25);
  padding: 14px 18px;
}
.destiny-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.destiny-title-icon {
  font-size: 24px;
  filter: drop-shadow(0 0 10px rgba(167, 139, 250, 0.7));
  animation: taijiSpin 8s linear infinite;
}
@keyframes taijiSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.destiny-exchange-popup .popup-title {
  font-weight: bold;
  font-size: 17px;
  background: linear-gradient(90deg, #ddd6fe, #c4b5fd, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
}
.destiny-exchange-popup .popup-close {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.destiny-exchange-popup .popup-close:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.3);
}
.destiny-body {
  position: relative;
  z-index: 1;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.destiny-core {
  text-align: center;
  padding: 20px 16px;
  background: linear-gradient(145deg, rgba(167, 139, 250, 0.15), rgba(139, 92, 246, 0.05));
  border: 1px solid rgba(167, 139, 250, 0.3);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}
.destiny-core-icon {
  font-size: 42px;
  margin-bottom: 10px;
  filter: drop-shadow(0 0 16px rgba(167, 139, 250, 0.6));
  animation: coreSpin 10s linear infinite;
}
@keyframes coreSpin {
  from {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.1);
  }
  to {
    transform: rotate(360deg) scale(1);
  }
}
.destiny-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.flow-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.flow-item.from .flow-value {
  color: #e88c3a;
}
.flow-item.to .flow-value {
  color: #c4b5fd;
}
.flow-icon {
  font-size: 28px;
  filter: drop-shadow(0 0 8px currentColor);
}
.flow-label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.55);
}
.flow-value {
  font-size: 20px;
  font-weight: bold;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 10px currentColor;
}
.flow-arrow {
  font-size: 24px;
  color: rgba(255, 255, 255, 0.4);
  animation: arrowPulse 2s ease-in-out infinite;
}
@keyframes arrowPulse {
  0%,
  100% {
    opacity: 0.3;
    transform: translateX(0);
  }
  50% {
    opacity: 0.8;
    transform: translateX(4px);
  }
}
.destiny-daily-tip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}
.destiny-daily-tip b {
  color: #a78bfa;
  font-size: 14px;
}
.daily-icon {
  font-size: 16px;
}
.daily-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.daily-dot.green {
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
  animation: dotPulse 2s ease-in-out infinite;
}
.daily-dot.red {
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}
@keyframes dotPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}
.destiny-assets {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.dest-asset {
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
}
.dest-asset .da-label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 4px;
}
.dest-asset .da-value {
  font-size: 16px;
  font-weight: bold;
  font-variant-numeric: tabular-nums;
}
.dest-asset .not-enough {
  color: #ef4444 !important;
  text-shadow: 0 0 6px rgba(239, 68, 68, 0.3);
}
.destiny-result-card {
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.08), rgba(232, 140, 58, 0.04));
  border: 1px dashed rgba(167, 139, 250, 0.3);
  border-radius: 12px;
}
.result-title {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 6px;
}
.result-row:last-child {
  margin-bottom: 0;
}
.result-row .result-value {
  font-size: 16px;
  font-weight: bold;
  color: #e88c3a;
  font-variant-numeric: tabular-nums;
}
.destiny-footer {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 10px;
  padding: 14px 18px 18px;
}
.destiny-btn-confirm {
  flex: 2;
  padding: 13px 20px;
  background: linear-gradient(135deg, #a78bfa, #8b5cf6);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 4px 20px rgba(167, 139, 250, 0.4);
}
.destiny-btn-confirm:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(167, 139, 250, 0.55);
}
.destiny-btn-confirm:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.destiny-btn-cancel {
  flex: 1;
  padding: 13px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}
.destiny-btn-cancel:hover {
  background: rgba(255, 255, 255, 0.1);
}
.raid-disciple-card.on-raiding {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.35);
}
.raiding-timer {
  font-size: 12px;
  font-weight: bold;
  color: #34d399;
  padding: 4px 10px;
  background: rgba(34, 197, 94, 0.2);
  border-radius: 6px;
  font-variant-numeric: tabular-nums;
}
.promote-confirm-popup {
  max-width: 440px;
  background: linear-gradient(168deg, #1a1230 0%, #251a38 45%, #1e1630 100%);
  border: 1px solid rgba(232, 140, 58, 0.4);
  box-shadow: 0 14px 50px rgba(232, 140, 58, 0.2), 0 0 80px rgba(232, 140, 58, 0.06) inset;
  position: relative;
  overflow: hidden;
  animation: promotePopIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes promotePopIn {
  from {
    transform: scale(0.92) translateY(20px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}
.promote-confirm-popup .popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-secondary);
  background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 3px, rgba(0, 0, 0, 0.03) 3px 4px, transparent 4px 6px);
}
.promote-confirm-popup .popup-header .popup-title {
  font-size: 17px;
  font-weight: bold;
  color: var(--accent-bright);
  letter-spacing: 0.1em;
  text-shadow: 0 0 10px var(--accent-glow);
}
.promote-confirm-popup .popup-close {
  width: 32px;
  height: 32px;
  background: #22323a;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s;
}
.promote-confirm-popup .popup-close:hover {
  background: var(--color-danger);
  border-color: var(--color-danger);
  color: white;
}
.promote-confirm-popup .popup-close:active {
  transform: scale(0.96);
}
.promote-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.promote-current-row {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
}
.promote-pos-card {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 2px solid var(--pos-color, #f5f5f5);
  border-radius: 12px;
  transition: all 0.3s;
}
.promote-pos-card.promote-next {
  background: linear-gradient(135deg, rgba(232, 140, 58, 0.12), rgba(232, 140, 58, 0.04));
  box-shadow: 0 4px 16px rgba(232, 140, 58, 0.2);
}
.promote-pos-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  flex-shrink: 0;
}
.promote-pos-info {
  flex: 1;
  min-width: 0;
}
.promote-pos-name {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.promote-pos-suffix {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}
.promote-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.promote-arrow-line {
  width: 2px;
  height: 12px;
  background: linear-gradient(180deg, transparent, #e88c3a, transparent);
}
.promote-arrow-icon {
  font-size: 16px;
  color: #e88c3a;
  font-weight: bold;
  text-shadow: 0 0 8px rgba(232, 140, 58, 0.6);
}
.promote-benefits {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.promote-benefit-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.benefit-label {
  min-width: 90px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
}
.benefit-old {
  color: rgba(255, 255, 255, 0.4);
  font-variant-numeric: tabular-nums;
  text-decoration: line-through;
  text-decoration-color: rgba(255, 255, 255, 0.2);
}
.benefit-arrow {
  color: rgba(255, 255, 255, 0.3);
  font-size: 12px;
}
.benefit-new {
  color: #e88c3a;
  font-weight: bold;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 8px rgba(232, 140, 58, 0.3);
}
.benefit-badge {
  padding: 2px 8px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white;
  font-size: 11px;
  font-weight: bold;
  border-radius: 10px;
  margin-left: auto;
  box-shadow: 0 2px 6px rgba(34, 197, 94, 0.3);
}
.promote-cost-box {
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(232, 140, 58, 0.15), rgba(232, 140, 58, 0.05));
  border: 1px solid rgba(232, 140, 58, 0.3);
  border-radius: 12px;
  text-align: center;
}
.promote-cost-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 6px;
}
.promote-cost-value {
  font-size: 26px;
  font-weight: bold;
  color: #e88c3a;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 16px rgba(232, 140, 58, 0.4);
}
.promote-cost-unit {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: normal;
  margin-left: 4px;
}
.promote-cost-available {
  margin-top: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}
.promote-cost-short {
  margin-top: 6px;
  padding: 6px 10px;
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  font-size: 12px;
  font-weight: bold;
  border-radius: 8px;
  display: inline-block;
}
.promote-amount-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.promote-amount-row label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}
.promote-amount-input {
  flex: 1;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  outline: none;
  font-variant-numeric: tabular-nums;
  transition: all 0.2s;
}
.promote-amount-input:focus {
  border-color: rgba(232, 140, 58, 0.5);
  background: rgba(232, 140, 58, 0.08);
}
.promote-amount-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.promote-amount-input::-webkit-inner-spin-button,
.promote-amount-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.promote-amount-max {
  padding: 6px 14px;
  background: rgba(232, 140, 58, 0.2);
  border: 1px solid rgba(232, 140, 58, 0.3);
  color: #e88c3a;
  font-size: 12px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.promote-amount-max:hover {
  background: rgba(232, 140, 58, 0.35);
  transform: scale(1.05);
}
.promote-amount-max:active {
  transform: scale(0.95);
}
.promote-confirm-popup .popup-footer {
  padding: 14px 18px 18px;
  gap: 12px;
}
.promote-confirm-popup .popup-footer .promote-confirm-btn {
  flex: 2;
  padding: 13px 20px;
  background: linear-gradient(135deg, #e88c3a, #f59e0b);
  border: none;
  border-radius: 12px;
  color: #1f2937;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 4px 16px rgba(232, 140, 58, 0.35);
  letter-spacing: 1px;
}
.promote-confirm-popup .popup-footer .promote-confirm-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232, 140, 58, 0.5);
}
.promote-confirm-popup .popup-footer .promote-confirm-btn:active:not(:disabled) {
  transform: translateY(0);
}
.promote-confirm-popup .popup-footer .promote-confirm-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.promote-confirm-popup .popup-footer .promote-cancel-btn {
  flex: 1;
  padding: 13px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}
.promote-confirm-popup .popup-footer .promote-cancel-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}
.upgrade-sect-mask {
  background: rgba(5, 3, 15, 0.85);
  backdrop-filter: blur(6px);
}
.upgrade-sect-popup {
  max-width: 420px;
  background: linear-gradient(168deg, #1a1430 0%, #221838 40%, #1a1230 100%);
  border: 1px solid rgba(232, 140, 58, 0.35);
  box-shadow: 0 12px 50px rgba(232, 140, 58, 0.2), 0 0 100px rgba(232, 140, 58, 0.06) inset;
  position: relative;
  overflow: hidden;
  animation: upgradePopIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes upgradePopIn {
  from {
    transform: scale(0.92) translateY(20px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}
.upgrade-bg-effects {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.upgrade-glow-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.5;
}
.upgrade-glow-circle.c1 {
  width: 240px;
  height: 240px;
  top: -90px;
  right: -70px;
  background: radial-gradient(circle, rgba(232, 140, 58, 0.3), transparent 70%);
}
.upgrade-glow-circle.c2 {
  width: 200px;
  height: 200px;
  bottom: -70px;
  left: -50px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.2), transparent 70%);
}
.upgrade-sect-popup .popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-secondary);
  background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 3px, rgba(0, 0, 0, 0.03) 3px 4px, transparent 4px 6px);
  position: relative;
  z-index: 1;
}
.upgrade-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.upgrade-title-icon {
  font-size: 20px;
  filter: drop-shadow(0 0 6px rgba(232, 140, 58, 0.5));
}
.upgrade-sect-popup .popup-title {
  font-size: 16px;
  font-weight: bold;
  color: var(--accent-bright);
  letter-spacing: 0.1em;
  text-shadow: 0 0 10px var(--accent-glow);
}
.upgrade-body {
  position: relative;
  z-index: 1;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 70vh;
  overflow-y: auto;
}
.upgrade-bonus-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 16px 12px;
  background: linear-gradient(135deg, rgba(232, 140, 58, 0.08), rgba(232, 140, 58, 0.02));
  border: 1px solid rgba(232, 140, 58, 0.2);
  border-radius: 8px;
}
.upgrade-bonus-card.max {
  flex-direction: column;
  gap: 8px;
  background: linear-gradient(135deg, rgba(232, 140, 58, 0.15), rgba(245, 158, 11, 0.05));
  border-color: rgba(232, 140, 58, 0.4);
}
.upgrade-bonus-card .bonus-current,
.upgrade-bonus-card .bonus-next {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.upgrade-bonus-card .bonus-level {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: bold;
}
.upgrade-bonus-card .bonus-mult {
  font-size: 28px;
  font-weight: bold;
  text-shadow: 0 0 16px currentColor;
}
.upgrade-bonus-card .bonus-mult.next {
  color: #e88c3a !important;
}
.upgrade-bonus-card .bonus-label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
}
.upgrade-bonus-card .bonus-arrow {
  font-size: 22px;
  color: rgba(232, 140, 58, 0.6);
  flex-shrink: 0;
}
.upgrade-bonus-card .bonus-max-tip {
  font-size: 14px;
  font-weight: bold;
  color: #e88c3a;
  text-shadow: 0 0 10px rgba(232, 140, 58, 0.4);
}
.exp-progress-bar {
  width: 100%;
  height: 22px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 11px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
  position: relative;
}
.exp-progress-bar.max {
  height: 26px;
}
.exp-progress-fill {
  height: 100%;
  border-radius: 11px;
  position: relative;
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 12px currentColor;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8px;
}
.exp-progress-fill::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.25), transparent);
  border-radius: 11px 11px 0 0;
}
.exp-progress-percent {
  position: relative;
  z-index: 1;
  font-size: 11px;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  font-variant-numeric: tabular-nums;
}
.exp-progress-text {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  font-variant-numeric: tabular-nums;
}
.exp-progress-text.max {
  justify-content: center;
  color: #e88c3a;
  font-weight: bold;
  font-size: 13px;
}
.upgrade-donate-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.donate-block {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.donate-block.sect {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(59, 130, 246, 0.02));
  border-color: rgba(59, 130, 246, 0.25);
}
.donate-block.personal {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.08), rgba(168, 85, 247, 0.02));
  border-color: rgba(168, 85, 247, 0.25);
}
.donate-block-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.donate-block-icon {
  font-size: 18px;
}
.donate-block-title {
  font-size: 13px;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.9);
  flex: 1;
}
.donate-block-quota {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 8px;
  border-radius: 10px;
  font-variant-numeric: tabular-nums;
}
.donate-block-info {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}
.donate-quick-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.upgrade-quick-btn {
  padding: 5px 12px;
  border: none;
  border-radius: 12px;
  font-size: 11px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(59, 130, 246, 0.15));
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.4);
  font-variant-numeric: tabular-nums;
}
.upgrade-quick-btn.personal {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(168, 85, 247, 0.15));
  color: #c4b5fd;
  border-color: rgba(168, 85, 247, 0.4);
}
.upgrade-quick-btn:hover:not(:disabled) {
  transform: scale(1.05);
  filter: brightness(1.2);
}
.upgrade-quick-btn:active:not(:disabled) {
  transform: scale(0.95);
}
.upgrade-quick-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.no-quick-tip {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.35);
  font-style: italic;
  align-self: center;
}
.donate-custom-row {
  display: flex;
  gap: 8px;
}
.donate-custom-input {
  flex: 1;
  padding: 7px 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #fff;
  font-size: 13px;
  font-weight: bold;
  outline: none;
  font-variant-numeric: tabular-nums;
}
.donate-custom-input::-webkit-inner-spin-button,
.donate-custom-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.donate-custom-input:focus {
  border-color: rgba(232, 140, 58, 0.5);
  background: rgba(0, 0, 0, 0.5);
}
.donate-custom-input:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.donate-confirm-btn {
  padding: 7px 18px;
  border: none;
  border-radius: 10px;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 1px;
}
.donate-confirm-btn.sect {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}
.donate-confirm-btn.personal {
  background: linear-gradient(135deg, #a855f7, #9333ea);
  color: #fff;
  box-shadow: 0 2px 8px rgba(168, 85, 247, 0.3);
}
.donate-confirm-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.15);
}
.donate-confirm-btn:active:not(:disabled) {
  transform: translateY(0);
}
.donate-confirm-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.upgrade-tips {
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tip-row {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.5;
}
.upgrade-max-tip-banner {
  padding: 24px 16px;
  background: linear-gradient(135deg, rgba(232, 140, 58, 0.15), rgba(245, 158, 11, 0.05));
  border: 1px solid rgba(232, 140, 58, 0.3);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.upgrade-max-tip-banner .max-tip-icon {
  font-size: 36px;
  filter: drop-shadow(0 0 12px rgba(232, 140, 58, 0.5));
}
.upgrade-max-tip-banner .max-tip-text {
  font-size: 15px;
  font-weight: bold;
  color: #e88c3a;
  text-shadow: 0 0 10px rgba(232, 140, 58, 0.3);
}
.upgrade-max-tip-banner .max-tip-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}
.upgrade-footer {
  padding: 12px 18px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.upgrade-close-btn {
  flex: 1;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}
.upgrade-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}
/**
 * ==================== dungeon.less ====================
 * 禁区/死亡高塔模块
 * 最后更新：2026-05-11
 * 
 * 使用的 base.less 组件：
 * - 按钮：.btn-primary, .btn-success, .btn-danger
 * - 进度条：.progress-container .progress-sm
 * - 弹窗：.modal-overlay, .modal-content
 * - 滚动条：.hide-scrollbar() 混入
 * 
 * 覆盖的 base.less 组件：
 * - 无
 * 
 * 模块特有样式：
 * - 地图选择界面
 * - 战斗界面
 * - BOSS 读条
 * - BUFF 面板
 * - 血条蓝条
 * - 快捷药剂栏
 * - 底部操控区（摇杆 + 技能按钮）
 * - castPulse、warningBlink 动画
 */
/**
 * ==================== dungeon.less ====================
 * 禁区/死亡高塔模块 - 整个页面可滚动
 * 最后更新：2026-06-02
 */
.dungeon-module {
  user-select: none;
  -webkit-user-select: none;
  background: var(--bg-primary);
  transition: background var(--transition-normal);
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  position: relative;
  padding-bottom: calc(56px + 12px);
}
.dungeon-module input,
.dungeon-module textarea {
  user-select: text;
  -webkit-user-select: text;
}
.dungeon-battle-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0;
}
.dungeon-module .dungeon-battle-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--grad-card);
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
  position: relative;
  background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 3px, rgba(0, 0, 0, 0.04) 3px 4px, transparent 4px 6px);
  justify-content: center;
}
.dungeon-module .dungeon-battle-title h2 {
  flex: 1;
  font-size: 16px;
  font-weight: bold;
  color: var(--accent-bright);
  margin: 0;
  letter-spacing: 0.15em;
  padding: 4px 16px;
  position: relative;
  background: linear-gradient(90deg, rgba(62, 124, 140, 0.18), transparent 70%);
  border-left: 2px solid var(--accent-primary);
  text-shadow: 0 0 10px var(--accent-glow);
}
.dungeon-battle-buttons {
  flex-shrink: 0;
  display: flex;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.dungeon-battle-buttons button {
  flex: 1;
  padding: 6px 8px;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.02em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.dungeon-battle-buttons button:active {
  transform: scale(0.96);
}
.dungeon-battle-buttons .dungeon-btn-back {
  background: linear-gradient(135deg, #5d697a, #4b5563, #353c46);
  color: #e5e7eb;
  box-shadow: 0 2px 8px rgba(75, 85, 99, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}
.dungeon-battle-buttons .dungeon-btn-back:hover {
  background: linear-gradient(135deg, #7f8694, #6b7280, #545964);
}
.dungeon-battle-buttons .dungeon-btn-start {
  background: linear-gradient(135deg, #13df9b, #10b981, #0c8a60);
  color: white;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}
.dungeon-battle-buttons .dungeon-btn-stop {
  background: linear-gradient(135deg, #f26a6a, #ef4444, #eb1515);
  color: white;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}
.dungeon-battle-buttons .dungeon-btn-farm {
  background: linear-gradient(135deg, #a783f8, #8b5cf6, #692cf3);
  color: white;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}
.dungeon-battle-buttons .dungeon-btn-farm.active {
  background: linear-gradient(90deg, #3e7c8c, #e88c3a);
  animation: farmPulse 1s infinite;
}
@keyframes farmPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}
.dungeon-battle-stats {
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  font-size: 11px;
  color: var(--text-secondary);
  flex-wrap: wrap;
  gap: 6px;
}
.dungeon-battle-stats .stat-item {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
  white-space: nowrap;
}
.dungeon-battle-stats .stat-item .stat-icon {
  font-size: 12px;
}
.dungeon-battle-stats .stat-item .stat-label {
  color: var(--text-muted);
}
.dungeon-battle-stats .stat-item .stat-value {
  color: var(--accent-primary);
  font-weight: bold;
  font-variant-numeric: tabular-nums;
}
.dungeon-boss-bar {
  flex-shrink: 0;
  margin: 4px 12px;
  padding: 6px 12px;
  background: linear-gradient(155deg, rgba(12, 16, 26, 0.92) 0%, rgba(6, 10, 18, 0.95) 100%);
  border: 1px solid var(--border-color);
  border-top: 2px solid var(--accent-primary);
  border-radius: 8px;
  border-left: 3px solid #6b7280;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  position: relative;
}
.dungeon-boss-bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.3;
  background: linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 2px 6px, /* 右上 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 2px 6px, /* 左下 */ linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 2px 6px, /* 右下 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 2px 6px;
  background-repeat: no-repeat;
}
.dungeon-boss-bar.casting {
  border-left-color: #ef4444;
  animation: castPulse 0.5s ease-in-out infinite;
}
.dungeon-boss-bar.casting .boss-skill-name {
  color: #ef4444;
}
.dungeon-boss-bar.casting .boss-tip {
  color: var(--accent-primary);
}
.dungeon-boss-bar .boss-bar-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 11px;
}
.dungeon-boss-bar .boss-bar-header .boss-skill-name {
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
}
.dungeon-boss-bar .boss-bar-header .boss-skill-name::before {
  content: "⚠️";
  font-size: 11px;
  animation: warningBlink 1s step-end infinite;
}
.dungeon-boss-bar .boss-bar-header .boss-tip {
  font-size: 9px;
  background: rgba(0, 0, 0, 0.35);
  padding: 2px 8px;
  border-radius: 8px;
  color: var(--text-muted);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.dungeon-boss-bar .boss-bar-header .boss-damage {
  font-size: 10px;
  color: #ef4444;
  font-variant-numeric: tabular-nums;
}
.dungeon-boss-bar .boss-bar-header .boss-damage span:first-child {
  margin-right: 4px;
}
.dungeon-boss-bar .boss-progress {
  height: 4px;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5), inset 0 -1px 0 rgba(255, 255, 255, 0.05);
}
.dungeon-boss-bar .boss-progress .boss-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #ef4444, #f97316, var(--accent-primary));
  transition: width 0.05s linear;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}
.dungeon-canvas-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  position: relative;
}
.dungeon-canvas-wrap canvas {
  width: 100%;
  height: auto;
  max-width: 100%;
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-primary));
  border: 1px solid var(--border-color);
  border-top: 2px solid var(--accent-primary);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  cursor: crosshair;
  display: block;
  aspect-ratio: 600 / 450;
}
.dungeon-canvas-wrap .dungeon-buffs-panel {
  position: absolute;
  left: 8px;
  top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  pointer-events: none;
  z-index: 20;
  max-width: 115px;
}
.dungeon-canvas-wrap .dungeon-buffs-panel .buff-item {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  border-radius: 8px;
  padding: 3px 10px;
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--accent-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  animation: fadeIn 0.2s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.dungeon-canvas-wrap .dungeon-buffs-panel .buff-item .buff-icon {
  font-size: 12px;
}
.dungeon-canvas-wrap .dungeon-buffs-panel .buff-item .buff-name {
  color: var(--accent-primary);
}
.dungeon-canvas-wrap .dungeon-buffs-panel .buff-item .buff-time {
  color: #10b981;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}
.dungeon-stats-bar {
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  gap: 4px;
  padding: 4px 5px;
  background: linear-gradient(155deg, rgba(12, 16, 26, 0.92) 0%, rgba(6, 10, 18, 0.95) 100%);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  border-top: 2px solid var(--accent-primary);
  margin: 4px 5px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  position: relative;
}
.dungeon-stats-bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.3;
  background: linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 5px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 2px 5px, /* 右上 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 5px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 2px 5px, /* 左下 */ linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 5px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 2px 5px, /* 右下 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 5px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 2px 5px;
  background-repeat: no-repeat;
}
.dungeon-stats-bar .stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 5px;
  border-radius: 8px;
  font-size: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.dungeon-stats-bar .stat-item span:first-child {
  color: var(--text-muted);
}
.dungeon-stats-bar .stat-item span:last-child {
  color: var(--accent-primary);
  font-weight: bold;
  font-family: monospace;
  font-variant-numeric: tabular-nums;
}
.dungeon-health-bars {
  flex-shrink: 0;
  display: flex;
  gap: 12px;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  margin: 0 12px 4px;
}
.dungeon-health-bars .health-bar {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
}
.dungeon-health-bars .health-bar .health-icon {
  font-size: 11px;
  width: 20px;
}
.dungeon-health-bars .health-bar .health-progress {
  flex: 1;
  height: 5px;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5), inset 0 -1px 0 rgba(255, 255, 255, 0.05);
}
.dungeon-health-bars .health-bar .health-progress .health-fill {
  height: 100%;
  transition: width 0.2s;
}
.dungeon-health-bars .health-bar .health-progress .health-fill.hp-fill {
  background: linear-gradient(90deg, #ef4444, #f97316, #fbbf24);
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.dungeon-health-bars .health-bar .health-progress .health-fill.mp-fill {
  background: linear-gradient(90deg, #3b82f6, #60a5fa, #93c5fd);
  box-shadow: 0 0 6px rgba(59, 130, 246, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.dungeon-health-bars .health-bar .health-text {
  font-size: 9px;
  min-width: 55px;
  color: var(--text-secondary);
  text-align: right;
  font-family: monospace;
  font-variant-numeric: tabular-nums;
}
.dungeon-items-bar {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 4px 12px;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.dungeon-items-bar .item-btn {
  width: 35px;
  height: 35px;
  min-width: 30px;
  min-height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, #2a2f35, #1e293b);
  border: 1px solid var(--border-color);
  border-top: 2px solid var(--accent-primary);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
}
.dungeon-items-bar .item-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.3;
  background: linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 4px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 2px 4px, /* 右上 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 4px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 2px 4px, /* 左下 */ linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 4px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 2px 4px, /* 右下 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 4px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 2px 4px;
  background-repeat: no-repeat;
}
.dungeon-items-bar .item-btn:hover {
  transform: scale(1.05);
  border-color: var(--accent-primary);
  box-shadow: 0 0 8px var(--accent-soft), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.dungeon-items-bar .item-btn .item-count {
  position: absolute;
  bottom: -2px;
  right: -2px;
  font-size: 10px;
  color: white;
  background: linear-gradient(135deg, #f26a6a, #ef4444, #eb1515);
  padding: 0px 4px;
  border-radius: 12px;
  font-weight: bold;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 1px 4px rgba(239, 68, 68, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.dungeon-items-bar .item-btn:active {
  transform: scale(0.96);
}
.dungeon-items-bar .item-btn.skin-btn {
  background: linear-gradient(135deg, #a783f8, #8b5cf6, #571faf);
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}
.dungeon-items-bar .item-btn.settings-btn {
  background: linear-gradient(135deg, #629bf8, #3b82f6, #134cca);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}
.dungeon-bottom-controls {
  flex-shrink: 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 12px 12px 30px;
  gap: 12px;
  background: rgba(0, 0, 0, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.dungeon-stick-area {
  min-width: 80px;
}
.dungeon-stick-area #dungeonStickContainer {
  width: 100px;
  height: 100px;
  position: relative;
}
.dungeon-stick-area #dungeonStickContainer .control-stick-container {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100px !important;
  height: 100px !important;
  z-index: 100 !important;
  opacity: 0.8;
}
.dungeon-stick-area #dungeonStickContainer .control-stick-container .control-stick-base {
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.5), inset 0 -1px 0 rgba(255, 255, 255, 0.05);
}
.dungeon-stick-area #dungeonStickContainer .control-stick-container .control-stick-thumb {
  width: 35px;
  height: 35px;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent-primary), var(--accent-secondary));
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 -1px 0 rgba(0, 0, 0, 0.2);
  transition: transform 0.05s linear;
}
.dungeon-skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.dungeon-skills-grid .skill-item {
  min-width: 45px;
  min-height: 45px;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  background: linear-gradient(135deg, #2a2f35, #1e293b);
  border: 1px solid var(--border-color);
  border-top: 2px solid var(--accent-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
}
.dungeon-skills-grid .skill-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.3;
  background: linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 4px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 2px 4px, /* 右上 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 4px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 2px 4px, /* 左下 */ linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 4px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 2px 4px, /* 右下 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 4px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 2px 4px;
  background-repeat: no-repeat;
}
.dungeon-skills-grid .skill-item .skill-icon,
.dungeon-skills-grid .skill-item .skill-name,
.dungeon-skills-grid .skill-item .skill-cost,
.dungeon-skills-grid .skill-item .skill-cd {
  pointer-events: none;
}
.dungeon-skills-grid .skill-item .skill-icon {
  font-size: 18px;
  margin-bottom: 2px;
}
.dungeon-skills-grid .skill-item .skill-name {
  font-size: 9px;
  font-weight: bold;
  color: var(--text-secondary);
}
.dungeon-skills-grid .skill-item .skill-cost,
.dungeon-skills-grid .skill-item .skill-cd {
  font-size: 8px;
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}
.dungeon-skills-grid .skill-item .skill-cost {
  color: #10b981;
}
.dungeon-skills-grid .skill-item .skill-cd {
  color: #f59e0b;
}
.dungeon-skills-grid .skill-item:hover:not(:disabled) {
  border-color: var(--accent-bright);
  box-shadow: 0 0 8px var(--accent-soft), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.dungeon-skills-grid .skill-item:active:not(:disabled) {
  transform: scale(0.96);
}
.dungeon-skills-grid .skill-item:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
@keyframes castPulse {
  0%,
  100% {
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
    border-left-color: #ef4444;
  }
  50% {
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.6);
    border-left-color: #ff6666;
  }
}
@keyframes warningBlink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.hidden {
  display: none !important;
}
/**
 * ==================== beast.less ====================
 * 变异兽模块
 * 最后更新：2026-05-11
 * 
 * 使用的 base.less 组件：
 * - 按钮：.btn-primary, .btn-success, .btn-warning, .btn-danger
 * - 卡片：.card, .card-simple
 * - 进度条：.progress-container
 * - 弹窗：.modal-overlay, .modal-content
 * - 滚动条：.hide-scrollbar() 混入
 * 
 * 覆盖的 base.less 组件：
 * - 无
 * 
 * 模块特有样式：
 * - 变异兽模块主容器
 * - 出战变异兽卡片（含品质顶部边框）
 * - 变异兽属性网格
 * - 变异兽经验条
 * - 变异兽技能卡片
 * - 我的变异兽列表网格
 * - 变异兽类型标签
 * - 图鉴面板
 * - 血脉觉醒弹窗
 * - 吞噬/喂养弹窗
 * - 切换变异兽弹窗
 */
.beast-module {
  background: var(--bg-primary);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: -webkit-fill-available;
  overflow: hidden;
  border-top: 2px solid var(--accent-primary);
  background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 3px, rgba(0, 0, 0, 0.03) 3px 4px, transparent 4px 6px);
}
.beast-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}
.beast-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--grad-card);
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
  position: relative;
  background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 3px, rgba(0, 0, 0, 0.04) 3px 4px, transparent 4px 6px);
  justify-content: center;
}
.beast-header h2 {
  font-size: 16px;
  font-weight: bold;
  color: var(--accent-bright);
  margin: 0;
  letter-spacing: 0.15em;
  padding: 4px 16px;
  position: relative;
  background: linear-gradient(90deg, rgba(62, 124, 140, 0.18), transparent 70%);
  border-left: 2px solid var(--accent-primary);
  text-shadow: 0 0 10px var(--accent-glow);
}
.beast-back-btn {
  display: block;
  width: calc(100% - 32px);
  margin: 10px 16px;
  text-align: center;
  padding: 10px 0;
  border: none;
  border-radius: 10px;
  background: #4b5563;
  color: #e5e7eb;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.beast-back-btn:hover {
  background: #6b7280;
}
.beast-back-btn:active {
  transform: scale(0.98);
}
.beast-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.beast-content::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
  background: transparent;
}
.beast-empty {
  text-align: center;
  padding: 60px 20px;
}
.beast-empty .empty-icon {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.5;
}
.beast-empty .empty-text {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.beast-empty .empty-tip {
  font-size: 12px;
  color: var(--text-muted);
}
.active-beast-card {
  background: var(--grad-jade);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
  border-top: 2px solid var(--accent-primary);
  position: relative;
  background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 3px, rgba(0, 0, 0, 0.02) 3px 4px, transparent 4px 6px);
}
.active-beast-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.35;
  background: linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 8px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 2px 8px, /* 右上 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 8px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 2px 8px, /* 左下 */ linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 8px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 2px 8px, /* 右下 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 8px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 2px 8px;
  background-repeat: no-repeat;
}
.active-beast-card.hidden {
  display: none;
}
.active-beast-card.quality-green {
  border-top: 3px solid #4ade80;
}
.active-beast-card.quality-blue {
  border-top: 3px solid #60a5fa;
}
.active-beast-card.quality-purple {
  border-top: 3px solid #c084fc;
}
.active-beast-card.quality-orange {
  border-top: 3px solid #fb923c;
}
.active-beast-card .beast-header-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.active-beast-card .beast-header-row .beast-icon-large {
  font-size: 56px;
}
.active-beast-card .beast-header-row .beast-info {
  flex: 1;
}
.active-beast-card .beast-header-row .beast-info .beast-name {
  font-size: 18px;
  font-weight: bold;
  color: var(--accent-primary);
}
.active-beast-card .beast-header-row .beast-info .beast-star {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0;
}
.active-beast-card .beast-header-row .beast-info .beast-star .stars {
  color: #e88c3a;
  font-size: 12px;
}
.active-beast-card .beast-header-row .beast-info .beast-star .star-text {
  font-size: 11px;
  color: var(--text-muted);
}
.active-beast-card .beast-header-row .beast-info .beast-bloodline {
  font-size: 11px;
  color: #8b5cf6;
}
.active-beast-card .beast-header-row .beast-info .beast-bloodline.active {
  color: #10b981;
}
.active-beast-card .beast-header-row .switch-beast-btn {
  padding: 6px 12px;
  background: #3e7c8c;
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 11px;
  cursor: pointer;
}
.active-beast-card .beast-header-row .switch-beast-btn:hover {
  background: #4a8c9e;
}
.active-beast-card .beast-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  position: relative;
}
.active-beast-card .beast-stats::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.3;
  background: linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 2px 6px, /* 右上 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 2px 6px, /* 左下 */ linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 2px 6px, /* 右下 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 2px 6px;
  background-repeat: no-repeat;
}
.active-beast-card .beast-stats .stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.active-beast-card .beast-stats .stat-item .stat-icon {
  font-size: 14px;
}
.active-beast-card .beast-stats .stat-item .stat-label {
  font-size: 10px;
  color: var(--text-muted);
}
.active-beast-card .beast-stats .stat-item .stat-value {
  font-size: 14px;
  font-weight: bold;
  color: var(--accent-primary);
}
.active-beast-card .beast-stats .stat-item .stat-bonus {
  font-size: 9px;
  color: #10b981;
}
.active-beast-card .beast-exp-section {
  margin-bottom: 16px;
}
.active-beast-card .beast-exp-section .exp-label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.active-beast-card .beast-exp-section .exp-bar {
  height: 8px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 6px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
}
.active-beast-card .beast-exp-section .exp-bar .exp-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #e88c3a);
  width: 0%;
  transition: width 0.3s;
}
.active-beast-card .beast-exp-section .exp-hint {
  font-size: 10px;
  color: var(--text-muted);
  text-align: right;
}
.active-beast-card .beast-exp-section .exp-hint.success {
  color: #10b981;
}
.active-beast-card .beast-skill-section {
  margin-bottom: 16px;
}
.active-beast-card .beast-skill-section .section-title {
  font-size: 13px;
  color: var(--accent-primary);
  margin-bottom: 10px;
}
.active-beast-card .beast-skill-section .skill-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px;
  position: relative;
}
.active-beast-card .beast-skill-section .skill-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.3;
  background: linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 2px 6px, /* 右上 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 2px 6px, /* 左下 */ linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 2px 6px, /* 右下 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 2px 6px;
  background-repeat: no-repeat;
}
.active-beast-card .beast-skill-section .skill-card .skill-name {
  font-size: 14px;
  font-weight: bold;
  color: #e88c3a;
  margin-bottom: 6px;
}
.active-beast-card .beast-skill-section .skill-card .skill-effect {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.active-beast-card .beast-skill-section .skill-card .skill-effect .skill-extra {
  color: #8b5cf6;
}
.active-beast-card .beast-skill-section .skill-card .skill-cd {
  font-size: 10px;
  color: var(--text-muted);
}
.active-beast-card .beast-actions {
  display: flex;
  gap: 12px;
}
.active-beast-card .beast-actions .action-btn {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
}
.active-beast-card .beast-actions .action-btn:active {
  transform: scale(0.96);
}
.active-beast-card .beast-actions .action-btn.bloodline-btn {
  background: linear-gradient(90deg, #7c6f9e, #5d5290);
  color: white;
}
.active-beast-card .beast-actions .action-btn.bloodline-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.active-beast-card .beast-actions .action-btn.devour-btn {
  background: linear-gradient(90deg, #b04545, #8f3535);
  color: white;
}
.active-beast-card .beast-actions .action-btn.devour-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.active-beast-card .beast-actions .action-btn.feed-quick-btn {
  background: linear-gradient(90deg, #3e7c8c, #2f5f6b);
  color: white;
}
.active-beast-card .beast-actions .action-btn.collection-btn {
  background: linear-gradient(90deg, #3e7c8c, #2f5f6b);
  color: white;
}
.my-beasts-section .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.my-beasts-section .section-header .section-title {
  font-size: 14px;
  color: var(--accent-primary);
}
.my-beasts-section .section-header .section-hint {
  font-size: 10px;
  color: var(--text-muted);
}
.my-beasts-section .beast-type-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px 0;
}
.my-beasts-section .beast-type-tabs .type-tab {
  padding: 6px 16px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}
.my-beasts-section .beast-type-tabs .type-tab:hover {
  background: rgba(0, 0, 0, 0.5);
  color: var(--accent-primary);
}
.my-beasts-section .beast-type-tabs .type-tab.active {
  background: linear-gradient(90deg, #3e7c8c, #e88c3a);
  color: #fff;
  border-color: var(--accent-primary);
}
.my-beasts-section .beasts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.my-beasts-section .beast-grid-item {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid var(--border-color);
  position: relative;
}
.my-beasts-section .beast-grid-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.3;
  background: linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 5px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 2px 5px, /* 右上 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 5px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 2px 5px, /* 左下 */ linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 5px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 2px 5px, /* 右下 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 5px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 2px 5px;
  background-repeat: no-repeat;
}
.my-beasts-section .beast-grid-item:hover {
  transform: translateY(-2px);
  background: rgba(0, 0, 0, 0.5);
  border-color: var(--accent-primary);
}
.my-beasts-section .beast-grid-item.active {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.1);
}
.my-beasts-section .beast-grid-item .beast-icon {
  font-size: 32px;
  margin-bottom: 6px;
}
.my-beasts-section .beast-grid-item .beast-name {
  font-size: 12px;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.my-beasts-section .beast-grid-item .beast-star-small {
  font-size: 9px;
  color: #e88c3a;
  margin: 4px 0;
}
.my-beasts-section .beast-grid-item .beast-stats-small {
  font-size: 9px;
  color: var(--text-muted);
}
.my-beasts-section .beast-grid-item .active-tag {
  position: absolute;
  top: 4px;
  right: 4px;
  background: #10b981;
  color: white;
  font-size: 8px;
  padding: 2px 4px;
  border-radius: 4px;
}
.my-beasts-section .beast-grid-item .bloodline-tag {
  position: absolute;
  bottom: 4px;
  right: 4px;
  font-size: 10px;
}
.my-beasts-section .beast-grid-item .beast-quick-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  justify-content: center;
}
.my-beasts-section .beast-grid-item .beast-quick-actions .quick-feed-btn {
  padding: 4px 10px;
  background: #3e7c8c;
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 12px;
  cursor: pointer;
}
.my-beasts-section .beast-grid-item .beast-quick-actions .quick-feed-btn:hover {
  background: #4a8c9e;
}
.my-beasts-section .beast-grid-item .beast-quick-actions .quick-sell-btn {
  background: #b04545 !important;
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 12px;
  padding: 4px 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.my-beasts-section .beast-grid-item .beast-quick-actions .quick-sell-btn:hover {
  background: #8f3535 !important;
  transform: scale(1.02);
}
.my-beasts-section .beast-grid-item .quick-select-btn {
  margin-top: 3px;
  padding: 4px 10px;
  background: #3e7c8c;
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 12px;
  cursor: pointer;
}
.my-beasts-section .beast-grid-item .quick-select-btn:hover {
  background: #4a8c9e;
}
.my-beasts-section .beast-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  padding: 12px;
}
.my-beasts-section .beast-pagination button {
  padding: 6px 16px;
  background: #22323a;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-secondary);
  cursor: pointer;
}
.my-beasts-section .beast-pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.my-beasts-section .beast-pagination button:not(:disabled):hover {
  background: #2c4048;
  color: var(--text-primary);
}
.my-beasts-section .beast-pagination .page-info {
  font-size: 12px;
  color: var(--text-secondary);
}
.collection-section {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}
.collection-section .collection-header {
  background: var(--grad-jade);
  border: 1px solid var(--border-color);
  border-top: 2px solid var(--accent-primary);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  position: relative;
  background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 3px, rgba(0, 0, 0, 0.02) 3px 4px, transparent 4px 6px);
}
.collection-section .collection-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.35;
  background: linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 8px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 2px 8px, /* 右上 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 8px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 2px 8px, /* 左下 */ linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 8px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 2px 8px, /* 右下 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 8px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 2px 8px;
  background-repeat: no-repeat;
}
.collection-section .collection-header .section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: bold;
  color: var(--accent-primary);
  margin-bottom: 12px;
}
.collection-section .collection-header .section-title .collection-count {
  font-size: 12px;
  font-weight: normal;
  color: var(--text-muted);
}
.collection-section .collection-header .progress-bar {
  height: 8px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
}
.collection-section .collection-header .progress-bar .progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #e88c3a);
  border-radius: 8px;
  transition: width 0.3s ease;
}
.collection-section .collection-header .rewards-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}
.collection-section .collection-header .rewards-list .collection-reward-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  border-radius: 8px;
}
.collection-section .collection-header .rewards-list .collection-reward-item .reward-info {
  flex: 1;
  font-size: 11px;
  color: var(--text-secondary);
}
.collection-section .collection-header .rewards-list .collection-reward-item .reward-claim-btn {
  padding: 6px 16px;
  background: linear-gradient(90deg, #3e7c8c, #e88c3a);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
}
.collection-section .collection-header .rewards-list .collection-reward-item .reward-claim-btn:hover {
  opacity: 0.9;
  transform: scale(1.02);
}
.collection-section .collection-header .rewards-list .collection-reward-item .reward-claim-btn:active {
  transform: scale(0.96);
}
.collection-section .collection-header .no-rewards {
  text-align: center;
  padding: 12px;
  font-size: 11px;
  color: var(--text-muted);
}
.collection-section .collection-groups {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.collection-section .collection-groups .collection-group .group-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 8px;
  margin-bottom: 12px;
  border-bottom: 2px solid;
}
.collection-section .collection-groups .collection-group .group-header .group-icon {
  font-size: 14px;
}
.collection-section .collection-groups .collection-group .group-header .group-name {
  flex: 1;
  font-size: 14px;
  font-weight: bold;
}
.collection-section .collection-groups .collection-group .group-header .group-count {
  font-size: 11px;
  opacity: 0.8;
}
.collection-section .collection-groups .collection-group .collection-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.collection-section .collection-groups .collection-group .collection-grid .collection-beast-card {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  border: 1px solid var(--border-color);
  transition: all 0.2s;
  position: relative;
}
.collection-section .collection-groups .collection-group .collection-grid .collection-beast-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.3;
  background: linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 4px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 2px 4px, /* 右上 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 4px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 2px 4px, /* 左下 */ linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 4px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 2px 4px, /* 右下 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 4px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 2px 4px;
  background-repeat: no-repeat;
}
.collection-section .collection-groups .collection-group .collection-grid .collection-beast-card:hover {
  transform: translateY(-2px);
  background: rgba(0, 0, 0, 0.5);
  border-color: var(--accent-primary);
}
.collection-section .collection-groups .collection-group .collection-grid .collection-beast-card.locked {
  opacity: 0.6;
}
.collection-section .collection-groups .collection-group .collection-grid .collection-beast-card .beast-icon {
  font-size: 32px;
}
.collection-section .collection-groups .collection-group .collection-grid .collection-beast-card .beast-name {
  font-size: 11px;
  font-weight: bold;
  margin-top: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.collection-section .collection-groups .collection-group .collection-grid .collection-beast-card .beast-quality {
  font-size: 9px;
  margin-top: 2px;
}
.collection-reward-item.claimed {
  opacity: 0.5;
}
.reward-claimed-tag {
  font-size: 11px;
  color: #10b981;
  padding: 4px 12px;
  background: rgba(16, 185, 129, 0.2);
  border-radius: 12px;
}
.beast-popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20000;
}
.beast-popup .popup-mask {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
}
.beast-popup .popup-content {
  width: 90%;
  max-width: 360px;
  max-height: 70vh;
  overflow-y: auto;
  background: var(--bg-popup);
  background: linear-gradient(155deg, rgba(12, 16, 26, 0.96) 0%, rgba(6, 10, 18, 0.98) 100%);
  border: 1px solid var(--border-color);
  border-top: 2px solid var(--accent-primary);
  border-radius: 8px;
  padding: 16px;
  z-index: 20001;
  scrollbar-width: none;
  -ms-overflow-style: none;
  position: relative;
  background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 3px, rgba(0, 0, 0, 0.03) 3px 4px, transparent 4px 6px);
}
.beast-popup .popup-content::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
  background: transparent;
}
.beast-popup .popup-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.35;
  background: linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 8px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 2px 8px, /* 右上 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 8px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 2px 8px, /* 左下 */ linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 8px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 2px 8px, /* 右下 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 8px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 2px 8px;
  background-repeat: no-repeat;
}
.switch-beasts-list .switch-beast-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  margin-bottom: 8px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: all 0.2s;
}
.switch-beasts-list .switch-beast-item:hover {
  background: rgba(0, 0, 0, 0.5);
}
.switch-beasts-list .switch-beast-item.active {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid #10b981;
}
.switch-beasts-list .switch-beast-item .beast-icon {
  font-size: 36px;
}
.switch-beasts-list .switch-beast-item .beast-info {
  flex: 1;
}
.switch-beasts-list .switch-beast-item .beast-info .beast-name {
  font-size: 14px;
  font-weight: bold;
  color: var(--accent-primary);
}
.switch-beasts-list .switch-beast-item .beast-info .beast-star {
  font-size: 10px;
  color: #e88c3a;
  margin: 2px 0;
}
.switch-beasts-list .switch-beast-item .beast-info .beast-stats {
  font-size: 10px;
  color: var(--text-muted);
}
.switch-beasts-list .switch-beast-item .beast-info .beast-bloodline-small {
  font-size: 9px;
  color: #8b5cf6;
  margin-top: 2px;
}
.switch-beasts-list .switch-beast-item .active-badge {
  background: #10b981;
  color: white;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 10px;
}
.switch-beasts-list .switch-beast-item .select-btn {
  padding: 4px 12px;
  background: #3e7c8c;
  border: none;
  border-radius: 8px;
  color: white;
  cursor: pointer;
}
.switch-beasts-list .switch-beast-item .select-btn:hover {
  background: #4a8c9e;
}
.bloodlines-list .bloodline-item {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
  position: relative;
}
.bloodlines-list .bloodline-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.3;
  background: linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 5px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 2px 5px, /* 右上 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 5px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 2px 5px, /* 左下 */ linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 5px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 2px 5px, /* 右下 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 5px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 2px 5px;
  background-repeat: no-repeat;
}
.bloodlines-list .bloodline-item.unlocked {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid #10b981;
}
.bloodlines-list .bloodline-item.can-awaken {
  border: 1px solid #e88c3a;
}
.bloodlines-list .bloodline-item .bloodline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.bloodlines-list .bloodline-item .bloodline-header .bloodline-name {
  font-size: 14px;
  font-weight: bold;
  color: #e88c3a;
}
.bloodlines-list .bloodline-item .bloodline-header .bloodline-level {
  font-size: 11px;
  background: #10b981;
  padding: 2px 8px;
  border-radius: 8px;
  color: white;
}
.bloodlines-list .bloodline-item .bloodline-header .bloodline-locked {
  font-size: 10px;
  color: #ef4444;
}
.bloodlines-list .bloodline-item .bloodline-desc {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 10px;
  padding: 6px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
}
.bloodlines-list .bloodline-item .bloodline-materials {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 8px;
}
.bloodlines-list .bloodline-item .bloodline-materials .material-tag {
  display: inline-block;
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 8px;
  border-radius: 8px;
  margin-right: 6px;
  margin-bottom: 6px;
  font-size: 10px;
}
.bloodlines-list .bloodline-item .bloodline-materials .spirit-cost {
  color: #e88c3a;
  margin: 8px 0 4px;
}
.bloodlines-list .bloodline-item .bloodline-materials .success-rate {
  color: #10b981;
  margin-bottom: 10px;
}
.bloodlines-list .bloodline-item .bloodline-materials .awaken-btn {
  width: 100%;
  padding: 8px;
  background: linear-gradient(90deg, #7c6f9e, #5d5290);
  border: none;
  border-radius: 8px;
  color: white;
  font-weight: bold;
  cursor: pointer;
}
.bloodlines-list .bloodline-item .bloodline-materials .awaken-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.bloodlines-list .bloodline-item .bloodline-exp-section {
  margin-top: 10px;
}
.bloodlines-list .bloodline-item .bloodline-exp-section .exp-bar {
  height: 6px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  overflow: hidden;
  margin: 6px 0;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
}
.bloodlines-list .bloodline-item .bloodline-exp-section .exp-bar .exp-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #e88c3a);
  width: 0%;
}
.bloodlines-list .bloodline-item .bloodline-exp-section .upgrade-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-top: 10px;
}
.bloodlines-list .bloodline-item .bloodline-exp-section .upgrade-buttons .upgrade-btn {
  padding: 6px;
  background: #3e7c8c;
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 10px;
  cursor: pointer;
}
.bloodlines-list .bloodline-item .bloodline-exp-section .upgrade-buttons .upgrade-btn:hover {
  background: #4a8c9e;
}
.devour-info {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 16px;
  text-align: center;
  position: relative;
}
.devour-info::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.3;
  background: linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 2px 6px, /* 右上 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 2px 6px, /* 左下 */ linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 2px 6px, /* 右下 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 2px 6px;
  background-repeat: no-repeat;
}
.devour-info .warning {
  color: #ef4444;
  font-size: 11px;
  margin-top: 8px;
}
.devour-info .bonus-value {
  color: #e88c3a;
  font-weight: bold;
}
.devour-rules {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 12px;
  font-size: 11px;
  color: #9ca3af;
  line-height: 1.7;
}
.devour-rules .rules-title {
  color: #e88c3a;
  font-weight: bold;
  margin-bottom: 4px;
  font-size: 12px;
}
.devour-rules .rule-item {
  padding-left: 12px;
  position: relative;
}
.devour-rules .rule-item::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #e88c3a;
}
.duplicate-info {
  background: rgba(245, 158, 11, 0.1);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 12px;
  border: 1px solid rgba(245, 158, 11, 0.2);
}
.duplicate-info .duplicate-title {
  font-size: 12px;
  color: #e88c3a;
  margin-bottom: 6px;
}
.duplicate-info .duplicate-item {
  font-size: 11px;
  color: #d9c8ad;
  padding: 2px 0;
  display: flex;
  justify-content: space-between;
}
.duplicate-info .duplicate-item .dup-keep {
  color: #10b981;
}
.duplicate-info .duplicate-item .dup-sacrifice {
  color: #ef4444;
}
.devour-select-all {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  border-radius: 8px;
}
.devour-select-all .select-all-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #d9c8ad;
  font-size: 13px;
  cursor: pointer;
}
.devour-select-all .select-all-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #e88c3a;
}
.devour-select-all .selected-count {
  font-size: 11px;
  color: #9ca3af;
  margin-left: auto;
}
.devour-select-all .selected-count .count-num {
  color: #e88c3a;
  font-weight: bold;
}
.devour-beasts-list {
  max-height: 300px;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.devour-beasts-list::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
  background: transparent;
}
.devour-beasts-list .devour-beast-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  margin-bottom: 6px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  border-left: 3px solid #9ca3af;
}
.devour-beasts-list .devour-beast-item:hover {
  background: rgba(255, 255, 255, 0.05);
}
.devour-beasts-list .devour-beast-item.selected {
  background: rgba(232, 140, 58, 0.1);
  border-left-color: #e88c3a !important;
}
.devour-beasts-list .devour-beast-item .devour-checkbox {
  flex-shrink: 0;
}
.devour-beasts-list .devour-beast-item .devour-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #e88c3a;
}
.devour-beasts-list .devour-beast-item .beast-icon {
  font-size: 28px;
  flex-shrink: 0;
}
.devour-beasts-list .devour-beast-item .beast-info {
  flex: 1;
  min-width: 0;
}
.devour-beasts-list .devour-beast-item .beast-info .beast-name {
  font-size: 13px;
  font-weight: bold;
  color: #e2e8f0;
}
.devour-beasts-list .devour-beast-item .beast-info .beast-star {
  font-size: 10px;
  color: #e88c3a;
  margin: 1px 0;
}
.devour-beasts-list .devour-beast-item .beast-info .beast-stats {
  font-size: 10px;
  color: #9ca3af;
}
.devour-beasts-list .devour-beast-item .duplicate-tag {
  font-size: 10px;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.2);
  padding: 2px 10px;
  border-radius: 8px;
  flex-shrink: 0;
}
.devour-beasts-list .devour-beast-item .devour-single-btn {
  padding: 4px 12px;
  background: #b04545;
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 11px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s;
}
.devour-beasts-list .devour-beast-item .devour-single-btn:hover {
  background: #8f3535;
  transform: scale(1.02);
}
.devour-beasts-list .devour-beast-item .devour-single-btn:active {
  transform: scale(0.95);
}
.devour-beasts-list .devour-beast-item .devour-single-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}
.batch-devour-btn {
  display: block;
  width: 100%;
  margin: 0 0 12px;
  padding: 10px;
  background: linear-gradient(90deg, #3e7c8c, #e88c3a);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}
.batch-devour-btn:hover:not(:disabled) {
  opacity: 0.9;
  transform: scale(1.02);
}
.batch-devour-btn:active:not(:disabled) {
  transform: scale(0.96);
}
.batch-devour-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}
.devour-footer {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.devour-footer .close-devour-btn {
  flex: 1;
  padding: 10px;
  background: #22323a;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: #d9c8ad;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}
.devour-footer .close-devour-btn:hover {
  background: #2c4048;
}
.devour-footer .close-devour-btn:active {
  transform: scale(0.96);
}
.chaos-status {
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 13px;
  text-align: center;
  border: 1px solid var(--border-color);
}
.chaos-status.active {
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
}
.chaos-status.inactive {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}
.feeds-list .feed-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  margin-bottom: 8px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 8px;
}
.feeds-list .feed-item .feed-icon {
  font-size: 28px;
}
.feeds-list .feed-item .feed-info {
  flex: 1;
}
.feeds-list .feed-item .feed-info .feed-name {
  font-size: 13px;
  font-weight: bold;
  color: #e88c3a;
}
.feeds-list .feed-item .feed-info .feed-exp {
  font-size: 10px;
  color: #10b981;
}
.feeds-list .feed-item .feed-info .feed-materials {
  font-size: 9px;
  color: var(--text-muted);
}
.feeds-list .feed-item .feed-info .feed-materials span {
  margin-right: 8px;
}
.feeds-list .feed-item .feed-btn {
  padding: 4px 12px;
  background: #3e7c8c;
  border: none;
  border-radius: 8px;
  color: white;
  cursor: pointer;
}
.feeds-list .feed-item .feed-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.feeds-list .feed-item .feed-btn:not(:disabled):hover {
  background: #4a8c9e;
}
.detail-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 16px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 12px;
  position: relative;
}
.detail-stats::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.3;
  background: linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 2px 6px, /* 右上 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 2px 6px, /* 左下 */ linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 2px 6px, /* 右下 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 2px 6px;
  background-repeat: no-repeat;
}
.detail-skill {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 16px;
  position: relative;
}
.detail-skill::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.3;
  background: linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 2px 6px, /* 右上 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 2px 6px, /* 左下 */ linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 2px 6px, /* 右下 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 2px 6px;
  background-repeat: no-repeat;
}
.detail-skill .skill-name {
  font-size: 13px;
  font-weight: bold;
  color: #e88c3a;
  margin-bottom: 6px;
}
.detail-skill .skill-desc {
  font-size: 11px;
  color: var(--text-secondary);
}
.detail-obtain {
  font-size: 11px;
  color: var(--text-muted);
  padding: 8px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}
.warning-tip {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  padding: 8px;
  border-radius: 8px;
  font-size: 12px;
  margin-bottom: 16px;
  text-align: center;
  border: 1px solid rgba(239, 68, 68, 0.2);
}
/**
 * ==================== artifact.less ====================
 * 生化载具模块
 * 最后更新：2026-05-11
 * 
 * 使用的 base.less 组件：
 * - 按钮：.btn-primary, .btn-success, .btn-warning
 * - 卡片：.card, .card-simple
 * - 进度条：.progress-container
 * - 弹窗：.modal-overlay, .modal-content
 * - 滚动条：.hide-scrollbar() 混入
 * 
 * 覆盖的 base.less 组件：
 * - 无
 * 
 * 模块特有样式：
 * - 生化载具模块主容器
 * - 生化载具主卡片（名称、等级、经验、加成）
 * - 基因核心区域网格
 * - 基因核心卡片（锁定/觉醒状态）
 * - 吞噬装备区域
 * - 装备卡片
 * - 分页控件
 * - 批量操作栏
 */
.artifact-module {
  background: var(--bg-primary);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: -webkit-fill-available;
  overflow: hidden;
  border-top: 2px solid var(--accent-primary);
  background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 3px, rgba(0, 0, 0, 0.03) 3px 4px, transparent 4px 6px);
}
.artifact-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}
.artifact-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--grad-card);
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
  position: relative;
  background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 3px, rgba(0, 0, 0, 0.04) 3px 4px, transparent 4px 6px);
  justify-content: center;
}
.artifact-header-bar h2 {
  font-size: 18px;
  font-weight: bold;
  color: var(--accent-bright);
  margin: 0;
  letter-spacing: 0.15em;
  padding: 4px 16px;
  position: relative;
  background: linear-gradient(90deg, rgba(62, 124, 140, 0.18), transparent 70%);
  border-left: 2px solid var(--accent-primary);
  text-shadow: 0 0 10px var(--accent-glow);
}
.artifact-back-btn {
  display: block;
  width: calc(100% - 32px);
  margin: 10px 16px;
  text-align: center;
  padding: 10px 0;
  border: none;
  border-radius: 10px;
  background: #4b5563;
  color: #e5e7eb;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.artifact-back-btn:hover {
  background: #6b7280;
}
.artifact-back-btn:active {
  transform: scale(0.98);
}
.artifact-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.artifact-content::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
  background: transparent;
}
.artifact-card {
  background: var(--grad-card);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
  border-top: 2px solid var(--accent-primary);
  position: relative;
  background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 3px, rgba(0, 0, 0, 0.02) 3px 4px, transparent 4px 6px);
}
.artifact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.35;
  background: linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 8px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 2px 8px, /* 右上 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 8px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 2px 8px, /* 左下 */ linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 8px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 2px 8px, /* 右下 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 8px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 2px 8px;
  background-repeat: no-repeat;
}
.artifact-card .artifact-header .artifact-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.artifact-card .artifact-header .artifact-info .artifact-name {
  font-size: 20px;
  font-weight: bold;
  color: var(--accent-primary);
}
.artifact-card .artifact-header .artifact-info .artifact-level {
  font-size: 12px;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 8px;
  border-radius: 8px;
}
.artifact-card .artifact-header .artifact-info .rename-btn {
  padding: 4px 12px;
  background: linear-gradient(90deg, #3e7c8c, #e88c3a);
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s;
}
.artifact-card .artifact-header .artifact-info .rename-btn:hover {
  opacity: 0.9;
}
.artifact-card .artifact-header .artifact-info .rename-btn:active {
  transform: scale(0.96);
}
.artifact-card .artifact-header .artifact-exp-section {
  margin-bottom: 16px;
}
.artifact-card .artifact-header .artifact-exp-section .exp-label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.artifact-card .artifact-header .artifact-exp-section .exp-bar {
  height: 8px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
}
.artifact-card .artifact-header .artifact-exp-section .exp-bar .exp-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #e88c3a);
  width: 0%;
  transition: width 0.3s;
}
.artifact-card .artifact-header .artifact-bonus {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px;
  position: relative;
}
.artifact-card .artifact-header .artifact-bonus::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.3;
  background: linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 2px 6px, /* 右上 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 2px 6px, /* 左下 */ linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 2px 6px, /* 右下 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 2px 6px;
  background-repeat: no-repeat;
}
.artifact-card .artifact-header .artifact-bonus .bonus-title {
  font-size: 12px;
  color: var(--accent-primary);
  margin-bottom: 8px;
}
.artifact-card .artifact-header .artifact-bonus .bonus-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.artifact-card .artifact-header .artifact-bonus .bonus-tags .bonus-tag {
  font-size: 11px;
  background: rgba(16, 185, 129, 0.15);
  padding: 4px 10px;
  border-radius: 8px;
  color: #10b981;
}
.artifact-card .artifact-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.artifact-card .artifact-actions .action-btn {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
}
.artifact-card .artifact-actions .action-btn:active {
  transform: scale(0.96);
}
.artifact-card .artifact-actions .action-btn.upgrade-btn {
  background: linear-gradient(90deg, #3e7c8c, #e88c3a);
  color: white;
}
.artifact-card .artifact-actions .action-btn.awaken-btn {
  background: linear-gradient(90deg, #8b5cf6, #6d28d9);
  color: white;
}
.artifact-card .artifact-actions .action-btn.awaken-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.souls-section {
  margin-bottom: 20px;
}
.souls-section .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.souls-section .section-header .section-title {
  font-size: 14px;
  color: var(--accent-primary);
  letter-spacing: 0.15em;
  padding: 2px 8px;
  position: relative;
  background: linear-gradient(90deg, rgba(62, 124, 140, 0.15), transparent 70%);
  border-left: 2px solid var(--accent-primary);
}
.souls-section .section-header .source-btn {
  padding: 6px 12px;
  background: linear-gradient(90deg, #3e7c8c, #e88c3a);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
}
.souls-section .section-header .source-btn:hover {
  transform: scale(1.02);
  opacity: 0.9;
}
.souls-section .section-header .source-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.souls-section .souls-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.souls-section .soul-card {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  padding: 12px;
  border: 1px solid var(--border-color);
  transition: all 0.2s;
  position: relative;
}
.souls-section .soul-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.3;
  background: linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 5px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 2px 5px, /* 右上 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 5px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 2px 5px, /* 左下 */ linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 5px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 2px 5px, /* 右下 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 5px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 2px 5px;
  background-repeat: no-repeat;
}
.souls-section .soul-card:hover {
  background: rgba(0, 0, 0, 0.5);
}
.souls-section .soul-card.locked {
  opacity: 0.6;
}
.souls-section .soul-card.awakened {
  border-left: 3px solid;
}
.souls-section .soul-card .soul-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.souls-section .soul-card .soul-header .soul-icon {
  font-size: 24px;
}
.souls-section .soul-card .soul-header .soul-name {
  font-size: 14px;
  font-weight: bold;
}
.souls-section .soul-card .soul-header .soul-level {
  font-size: 11px;
  background: #10b981;
  padding: 2px 6px;
  border-radius: 8px;
  color: white;
}
.souls-section .soul-card .soul-header .soul-locked {
  font-size: 10px;
  color: #ef4444;
}
.souls-section .soul-card .soul-effects {
  margin-bottom: 8px;
}
.souls-section .soul-card .soul-effects .soul-effect {
  font-size: 10px;
  color: var(--text-muted);
}
.souls-section .soul-card .soul-exp-bar {
  height: 4px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 8px;
}
.souls-section .soul-card .soul-exp-bar .soul-exp-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #e88c3a);
  width: 0%;
}
.souls-section .soul-card .soul-exp-text {
  font-size: 9px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
}
.souls-section .soul-card.selected {
  border: 2px solid #e88c3a !important;
  background: rgba(251, 191, 36, 0.1);
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.25);
}
.souls-section .select-soul-btn {
  transition: all 0.2s;
}
.souls-section .select-soul-btn:hover {
  transform: scale(1.02);
}
.devour-section .section-header {
  margin-bottom: 12px;
}
.devour-section .section-header .section-title {
  font-size: 14px;
  color: var(--accent-primary);
  letter-spacing: 0.15em;
  padding: 2px 8px;
  position: relative;
  background: linear-gradient(90deg, rgba(62, 124, 140, 0.15), transparent 70%);
  border-left: 2px solid var(--accent-primary);
}
.devour-section .section-header .section-hint {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
}
.devour-section .equipment-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.devour-section .equipment-card {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  padding: 8px 10px;
  border: 1px solid var(--border-color);
  transition: all 0.2s;
  position: relative;
}
.devour-section .equipment-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.3;
  background: linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 5px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 2px 5px, /* 右上 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 5px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 2px 5px, /* 左下 */ linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 5px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 2px 5px, /* 右下 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 5px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 2px 5px;
  background-repeat: no-repeat;
}
.devour-section .equipment-card:hover {
  background: rgba(0, 0, 0, 0.5);
  transform: translateY(-2px);
}
.devour-section .equipment-card .equip-checkbox-wrapper {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
}
.devour-section .equipment-card .equip-checkbox-wrapper .equip-checkbox {
  width: 14px;
  height: 14px;
  cursor: pointer;
  accent-color: #e88c3a;
}
.devour-section .equipment-card .equip-icon {
  font-size: 28px;
  margin-left: 20px;
  margin-top: 4px;
}
.devour-section .equipment-card .equip-info {
  flex: 1;
  min-width: 0;
}
.devour-section .equipment-card .equip-info .equip-name {
  font-size: 12px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}
.devour-section .equipment-card .equip-info .equip-name .enhance-tag {
  font-size: 8px;
  display: inline-flex;
  gap: 1px;
}
.devour-section .equipment-card .equip-info .equip-quality {
  font-size: 9px;
  margin-bottom: 2px;
}
.devour-section .equipment-card .equip-info .equip-quality.white {
  color: #f5f5f5;
}
.devour-section .equipment-card .equip-info .equip-quality.green {
  color: #4ade80;
}
.devour-section .equipment-card .equip-info .equip-quality.blue {
  color: #60a5fa;
}
.devour-section .equipment-card .equip-info .equip-quality.purple {
  color: #c084fc;
}
.devour-section .equipment-card .equip-info .equip-quality.orange {
  color: #fb923c;
}
.devour-section .equipment-card .equip-info .equip-quality.red {
  color: #ef4444;
}
.devour-section .equipment-card .equip-info .equip-stats {
  font-size: 9px;
  color: #9ca3af;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.devour-section .equipment-card .equip-info .equip-exp {
  font-size: 9px;
  color: #10b981;
  font-weight: bold;
}
.devour-section .equipment-card .devour-btn {
  position: absolute;
  bottom: 6px;
  right: 8px;
  padding: 3px 10px;
  background: linear-gradient(90deg, #b04545, #8f3535);
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 10px;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 2;
}
.devour-section .equipment-card .devour-btn:hover {
  background: #8f3535;
  transform: scale(1.02);
}
.equipment-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 0;
  margin-top: 8px;
}
.equipment-pagination .page-btn {
  padding: 4px 12px;
  background: #22323a;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: #e2e8f0;
  font-size: 11px;
  cursor: pointer;
}
.equipment-pagination .page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.equipment-pagination .page-btn:hover:not(:disabled) {
  background: #2c4048;
}
.equipment-pagination .page-info {
  font-size: 11px;
  color: #9ca3af;
}
.equipment-batch-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.equipment-batch-bar .batch-check-all {
  font-size: 12px;
  color: #d9c8ad;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.equipment-batch-bar .batch-check-all input {
  width: 14px;
  height: 14px;
  cursor: pointer;
  accent-color: #e88c3a;
}
.equipment-batch-bar .batch-devour-btn {
  padding: 5px 14px;
  background: linear-gradient(90deg, #b04545, #8f3535);
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 11px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
}
.equipment-batch-bar .batch-devour-btn:hover {
  opacity: 0.9;
  transform: scale(1.02);
}
.equipment-batch-bar .batch-count {
  font-size: 11px;
  color: #e88c3a;
}
/**
 * ==================== daoist.less ====================
 * 同伴模块
 * 最后更新：2026-08-05
 * 
 * 使用的 base.less 组件：
 * - 按钮：.btn-primary, .btn-success
 * - 卡片：.card, .card-simple
 * - 进度条：.progress-container .progress-sm
 * - 弹窗：.modal-overlay, .modal-content
 * - 滚动条：.hide-scrollbar() 混入
 * 
 * 模块特有样式：
 * - 同伴模块主容器
 * - 头部
 * - 总览卡片
 * - Tab 切换
 * - 横向轮播（滑动选择）
 * - 同伴卡片（含自定义头像）
 * - 图鉴区域
 * - 收集奖励
 * - 详情弹窗
 */
.daoist-module {
  background: var(--bg-primary);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: -webkit-fill-available;
  overflow: hidden;
}
.daoist-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
  width: 100%;
}
.companions-section {
  width: 100%;
  overflow: hidden;
}
.daoist-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--grad-card);
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
  position: relative;
  background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 3px, rgba(0, 0, 0, 0.04) 3px 4px, transparent 4px 6px);
  justify-content: center;
}
.daoist-header-bar h2 {
  font-size: 16px;
  font-weight: bold;
  color: var(--accent-bright);
  margin: 0;
  letter-spacing: 0.15em;
  padding: 4px 16px;
  position: relative;
  background: linear-gradient(90deg, rgba(62, 124, 140, 0.18), transparent 70%);
  border-left: 2px solid var(--accent-primary);
  text-shadow: 0 0 10px var(--accent-glow);
}
.daoist-back-btn {
  display: block;
  width: calc(100% - 32px);
  margin: 10px 16px;
  text-align: center;
  padding: 10px 0;
  border: none;
  border-radius: 10px;
  background: #4b5563;
  color: #e5e7eb;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.daoist-back-btn:hover {
  background: #6b7280;
}
.daoist-back-btn:active {
  transform: scale(0.98);
}
.daoist-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px;
  -webkit-overflow-scrolling: touch;
}
.daoist-content::-webkit-scrollbar {
  display: none;
}
.overview-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 16px;
  border: 1px solid var(--border-color);
  border-top: 3px solid var(--accent-primary);
}
.overview-card .overview-header {
  font-size: 14px;
  font-weight: bold;
  color: var(--accent-primary);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}
.overview-card .overview-stats {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.overview-card .overview-stats .stat-item {
  flex: 1;
  text-align: center;
  padding: 8px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
}
.overview-card .overview-stats .stat-item .stat-label {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.overview-card .overview-stats .stat-item .stat-value {
  font-size: 16px;
  font-weight: bold;
  color: var(--accent-primary);
}
.overview-card .overview-stats .stat-item .stat-hint {
  font-size: 9px;
  color: #10b981;
  margin-left: 4px;
}
.daoist-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}
.daoist-tabs .tab-btn {
  flex: 1;
  padding: 8px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}
.daoist-tabs .tab-btn:hover {
  background: rgba(232, 140, 58, 0.1);
}
.daoist-tabs .tab-btn.active {
  border-color: var(--accent-primary);
  background: var(--accent-primary) !important;
  color: var(--bg-primary);
  font-weight: bold;
}
.companions-scroll-wrapper {
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  scroll-behavior: smooth !important;
  touch-action: pan-x !important;
  overscroll-behavior: none !important;
  scrollbar-width: none !important;
  position: relative;
  z-index: 1;
}
.companions-scroll-wrapper::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}
.companions-scroll {
  display: flex;
  gap: 16px;
  padding: 8px 4px;
  width: max-content;
  touch-action: pan-x !important;
}
.scroll-card {
  flex: 0 0 auto;
  width: 200px;
  cursor: pointer;
  touch-action: pan-x !important;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
  border-radius: 12px;
  padding: 12px 8px;
  text-align: center;
  transition: all 0.3s;
  border: 1px solid var(--border-color);
  -webkit-touch-callout: none !important;
  -webkit-user-select: none !important;
  user-select: none !important;
}
.scroll-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-primary);
}
.scroll-card .card-custom-avatar {
  width: 180px;
  height: 240px;
  margin: 0 auto 12px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid;
  display: flex;
  align-items: center;
  justify-content: center;
}
.scroll-card .card-custom-avatar .avatar-content {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.scroll-card .card-custom-avatar .avatar-content img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.scroll-card .card-custom-avatar .avatar-content .default-icon {
  font-size: 100px;
}
.scroll-card .card-name {
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.scroll-card .card-level {
  font-size: 9px;
  color: #e88c3a;
  margin-bottom: 4px;
}
.scroll-card .card-favor {
  font-size: 9px;
  color: var(--text-muted);
}
.collection-section {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}
.collection-section .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.collection-section .section-header .section-title {
  font-size: 14px;
  font-weight: bold;
  color: #e88c3a;
}
.collection-section .section-header .collection-progress {
  display: flex;
  align-items: center;
  gap: 8px;
}
.collection-section .section-header .collection-progress .progress-text {
  font-size: 11px;
  color: #e88c3a;
}
.collection-section .section-header .collection-progress .progress-bar-small {
  width: 80px;
  height: 4px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 2px;
  overflow: hidden;
}
.collection-section .section-header .collection-progress .progress-bar-small .progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #e88c3a);
  width: 0%;
  transition: width 0.3s;
}
.collection-rewards {
  margin-bottom: 16px;
}
.collection-rewards .rewards-title {
  font-size: 12px;
  color: #e88c3a;
  margin-bottom: 8px;
  padding-left: 4px;
  border-left: 2px solid #e88c3a;
}
.collection-rewards .rewards-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.collection-rewards .reward-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  transition: all 0.2s;
}
.collection-rewards .reward-item.claimable {
  background: rgba(16, 185, 129, 0.15);
  border-left: 3px solid #10b981;
}
.collection-rewards .reward-item.claimed {
  opacity: 0.6;
}
.collection-rewards .reward-item.locked {
  opacity: 0.5;
}
.collection-rewards .reward-item .reward-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}
.collection-rewards .reward-item .reward-info .reward-icon {
  font-size: 20px;
}
.collection-rewards .reward-item .reward-info .reward-title {
  font-size: 13px;
  font-weight: bold;
  color: #e88c3a;
  margin-bottom: 2px;
}
.collection-rewards .reward-item .reward-info .reward-desc {
  font-size: 11px;
  color: #d9a36a;
}
.collection-rewards .reward-item .reward-claim-btn {
  padding: 6px 16px;
  background: linear-gradient(90deg, #10b981, #059669);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
}
.collection-rewards .reward-item .reward-claim-btn:hover:not(:disabled) {
  transform: scale(1.02);
  filter: brightness(1.05);
}
.collection-rewards .reward-item .reward-claim-btn:disabled {
  background: #4b5563;
  cursor: not-allowed;
  opacity: 0.8;
}
.collection-group {
  margin-bottom: 24px;
  width: 100%;
}
.collection-group .group-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 6px;
  margin-bottom: 12px;
  border-bottom: 1px solid;
  font-size: 13px;
  font-weight: bold;
  width: 100%;
}
.collection-group .group-header .group-icon {
  font-size: 14px;
}
.collection-group .group-header .group-name {
  flex: 1;
}
.collection-group .group-header .group-count {
  font-size: 11px;
  opacity: 0.8;
}
.collection-group .collection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 100%;
}
.collection-group .collection-grid .collection-beast-card,
.collection-group .collection-grid .collection-companion-card {
  text-align: center;
  padding: 8px 4px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  transition: all 0.2s;
  cursor: pointer;
}
.collection-group .collection-grid .collection-beast-card:hover,
.collection-group .collection-grid .collection-companion-card:hover {
  transform: translateY(-2px);
  background: rgba(0, 0, 0, 0.5);
}
.collection-group .collection-grid .collection-beast-card.locked,
.collection-group .collection-grid .collection-companion-card.locked {
  opacity: 0.7;
}
.collection-group .collection-grid .collection-beast-card .companion-icon,
.collection-group .collection-grid .collection-companion-card .companion-icon,
.collection-group .collection-grid .collection-beast-card .beast-icon,
.collection-group .collection-grid .collection-companion-card .beast-icon {
  font-size: 28px;
}
.collection-group .collection-grid .collection-beast-card .companion-name,
.collection-group .collection-grid .collection-companion-card .companion-name,
.collection-group .collection-grid .collection-beast-card .beast-name,
.collection-group .collection-grid .collection-companion-card .beast-name {
  font-size: 10px;
  font-weight: bold;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.collection-group .collection-grid .collection-beast-card .companion-quality,
.collection-group .collection-grid .collection-companion-card .companion-quality,
.collection-group .collection-grid .collection-beast-card .beast-quality,
.collection-group .collection-grid .collection-companion-card .beast-quality {
  font-size: 8px;
  margin-top: 2px;
}
.collection-group .collection-grid .collection-beast-card .companion-obtain-hint,
.collection-group .collection-grid .collection-companion-card .companion-obtain-hint,
.collection-group .collection-grid .collection-beast-card .beast-obtain-hint,
.collection-group .collection-grid .collection-companion-card .beast-obtain-hint {
  font-size: 8px;
  color: #9ca3af;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.collection-group .collection-grid .collection-beast-card .companion-bond-status,
.collection-group .collection-grid .collection-companion-card .companion-bond-status {
  font-size: 9px;
  color: #e88c3a;
  margin-top: 2px;
}
.empty-tip {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 13px;
}
.daoist-popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 30000;
}
.daoist-popup .popup-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
}
.daoist-popup .popup-content {
  position: relative;
  width: 340px;
  max-width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 2px solid #e88c3a;
  border-radius: 12px;
  padding: 16px;
  z-index: 30001;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.daoist-popup .popup-content::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
  background: transparent;
}
/**
 * ==================== market.less ====================
 * 交易行模块
 * 最后更新：2026-05-23
 */
.market-module {
  background: var(--bg-primary);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: -webkit-fill-available;
  overflow: hidden;
}
.market-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}
.market-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  border-top: 2px solid var(--accent-primary);
  background: linear-gradient(155deg, rgba(12, 16, 26, 0.92) 0%, rgba(6, 10, 18, 0.95) 100%);
  flex-shrink: 0;
  position: relative;
  background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 3px, rgba(0, 0, 0, 0.04) 3px 4px, transparent 4px 6px);
}
.market-title-row h2 {
  font-size: 16px;
  font-weight: bold;
  color: var(--accent-bright);
  margin: 0;
  letter-spacing: 0.15em;
  text-shadow: 0 0 10px var(--accent-glow);
}
.market-back-btn {
  display: block;
  width: calc(100% - 32px);
  margin: 10px 16px;
  text-align: center;
  padding: 10px 0;
  border: none;
  border-radius: 10px;
  background: #4b5563;
  color: #e5e7eb;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.market-back-btn:hover {
  background: #6b7280;
}
.market-back-btn:active {
  transform: scale(0.98);
}
.market-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--grad-card);
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
  position: relative;
  background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 3px, rgba(0, 0, 0, 0.04) 3px 4px, transparent 4px 6px);
  flex-wrap: wrap;
  gap: 10px;
}
.market-header-bar .market-resources {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: var(--text-secondary);
  flex-wrap: wrap;
  flex: 1;
}
.market-header-bar .market-resources span {
  white-space: nowrap;
}
.market-header-bar .market-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.market-header-bar .market-actions button {
  padding: 6px 14px;
  border: none;
  border-radius: 8px;
  font-size: 11px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
}
.market-header-bar .market-actions button:hover {
  transform: scale(1.02);
}
.market-header-bar .market-actions .market-sell-btn {
  background: linear-gradient(90deg, #10b981, #059669);
  color: white;
}
.market-header-bar .market-actions .market-sell-beast-btn {
  background: linear-gradient(90deg, #8b5cf6, #a855f7);
  color: white;
}
.market-tabs {
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}
.market-tabs .market-tab {
  flex: 1;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.market-tabs .market-tab:hover {
  background: rgba(62, 124, 140, 0.15);
  border-color: var(--accent-primary);
}
.market-tabs .market-tab.active {
  background: linear-gradient(90deg, #3e7c8c, #e88c3a);
  color: #fff;
  border-color: rgba(232, 140, 58, 0.6);
  box-shadow: 0 0 10px rgba(232, 140, 58, 0.25);
}
.market-tabs .market-tab .badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #ef4444;
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 8px;
  min-width: 18px;
  text-align: center;
}
.market-sub-tabs {
  display: flex;
  gap: 6px;
  padding: 0 12px 12px 12px;
}
.market-sub-tabs .sub-tab {
  flex: 1;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.market-sub-tabs .sub-tab.active {
  background: linear-gradient(90deg, #3e7c8c, #e88c3a);
  color: #fff;
  border-color: rgba(232, 140, 58, 0.6);
}
.market-sub-tabs .sub-tab:hover {
  background: rgba(62, 124, 140, 0.15);
  border-color: var(--accent-primary);
}
.market-content {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.market-content::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
  background: transparent;
}
.market-search-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 2px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  border-top: 2px solid var(--accent-primary);
  border-radius: 8px;
  position: relative;
}
.market-search-bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.3;
  background: linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 2px 6px, /* 右上 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 2px 6px, /* 左下 */ linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 2px 6px, /* 右下 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 2px 6px;
  background-repeat: no-repeat;
}
.market-search-bar input,
.market-search-bar select {
  flex: 1;
  min-width: 100px;
  padding: 8px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 12px;
}
.market-search-bar input:focus,
.market-search-bar select:focus {
  outline: none;
  border-color: var(--accent-primary);
}
.market-search-bar button {
  padding: 8px 16px;
  background: linear-gradient(90deg, #3e7c8c, #e88c3a);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.market-search-bar button:hover {
  opacity: 0.9;
  transform: scale(1.02);
}
.market-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.market-item {
  background: linear-gradient(165deg, rgba(14, 18, 28, 0.88) 0%, rgba(7, 11, 20, 0.92) 100%);
  border-radius: 8px;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-top: 2px solid var(--accent-primary);
  transition: all 0.2s;
  cursor: pointer;
  position: relative;
  background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 3px, rgba(0, 0, 0, 0.02) 3px 4px, transparent 4px 6px);
}
.market-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.3;
  background: linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 2px 6px, /* 右上 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 2px 6px, /* 左下 */ linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 2px 6px, /* 右下 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 2px 6px;
  background-repeat: no-repeat;
}
.market-item:hover {
  transform: translateY(-2px);
  border-color: var(--accent-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.market-item .item-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.market-item .item-header .item-icon {
  font-size: 28px;
  min-width: 36px;
  text-align: center;
}
.market-item .item-header .item-info {
  flex: 1;
}
.market-item .item-header .item-info .item-name {
  font-size: 14px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.market-item .item-header .item-info .item-name .enhance-icons {
  font-size: 10px;
  display: inline-flex;
  gap: 2px;
}
.market-item .item-header .item-info .item-quality-badge {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 12px;
  display: inline-block;
  margin-top: 4px;
}
.market-item .item-header .item-info .item-quality-badge.white {
  background: rgba(245, 245, 245, 0.2);
  color: #f5f5f5;
}
.market-item .item-header .item-info .item-quality-badge.green {
  background: rgba(74, 222, 128, 0.2);
  color: #4ade80;
}
.market-item .item-header .item-info .item-quality-badge.blue {
  background: rgba(96, 165, 250, 0.2);
  color: #60a5fa;
}
.market-item .item-header .item-info .item-quality-badge.purple {
  background: rgba(192, 132, 252, 0.2);
  color: #c084fc;
}
.market-item .item-header .item-info .item-quality-badge.orange {
  background: rgba(251, 146, 60, 0.2);
  color: #fb923c;
}
.market-item .item-header .item-info .item-quality-badge.red {
  background: rgba(250, 204, 21, 0.2);
  color: #ef4444;
}
.market-item .item-header .item-info .item-quality-badge.rainbow {
  background: linear-gradient(90deg, rgba(255, 0, 0, 0.2), rgba(255, 127, 0, 0.2), rgba(255, 255, 0, 0.2), rgba(0, 255, 0, 0.2), rgba(0, 0, 255, 0.2), rgba(75, 0, 130, 0.2), rgba(148, 0, 211, 0.2));
  color: #ff6bff;
  animation: rainbow-glow 2s ease-in-out infinite alternate;
}
.market-item .item-details {
  margin-bottom: 8px;
  font-size: 11px;
  color: #9ca3af;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.market-item .item-details .item-level,
.market-item .item-details .beast-level {
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 6px;
  border-radius: 10px;
}
.market-item .item-details .item-stats {
  display: flex;
  gap: 8px;
}
.market-item .item-details .item-stats .stat {
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 6px;
  border-radius: 10px;
}
.market-item .item-details .sub-stats {
  color: #a855f7;
  font-size: 10px;
}
.market-item .item-details .beast-stars {
  color: #e88c3a;
}
.market-item .item-details .beast-bloodline {
  color: #a855f7;
  font-size: 10px;
}
.market-item .item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 11px;
  color: #d9a36a;
  margin-bottom: 10px;
}
.market-item .item-meta .seller {
  color: #9ca3af;
}
.market-item .item-meta .price {
  color: #e88c3a;
  font-weight: bold;
}
.market-item .item-meta .count {
  color: #60a5fa;
}
.market-item .item-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.market-item .item-actions button {
  padding: 6px 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s;
}
.market-item .item-actions button.detail-btn {
  background: rgba(0, 0, 0, 0.3);
  color: #e2e8f0;
}
.market-item .item-actions button.detail-btn:hover {
  background: rgba(62, 124, 140, 0.4);
  border-color: var(--accent-primary);
}
.market-item .item-actions button.buy-btn {
  background: linear-gradient(90deg, #3e7c8c, #e88c3a);
  color: white;
  font-weight: bold;
  border-color: rgba(232, 140, 58, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.market-item .item-actions button.buy-btn:hover {
  transform: scale(1.02);
}
.my-listings-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.my-listing-item {
  background: linear-gradient(165deg, rgba(14, 18, 28, 0.88) 0%, rgba(7, 11, 20, 0.92) 100%);
  border-radius: 8px;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-top: 2px solid var(--accent-primary);
  transition: all 0.2s;
  position: relative;
  background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 3px, rgba(0, 0, 0, 0.02) 3px 4px, transparent 4px 6px);
}
.my-listing-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.3;
  background: linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 2px 6px, /* 右上 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 2px 6px, /* 左下 */ linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 2px 6px, /* 右下 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 2px 6px;
  background-repeat: no-repeat;
}
.my-listing-item:hover {
  border-color: var(--accent-primary);
}
.my-listing-item .item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.my-listing-item .item-header .item-name {
  font-size: 14px;
  font-weight: bold;
}
.my-listing-item .item-header .item-status {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 12px;
}
.my-listing-item .item-header .item-status.selling {
  color: #10b981;
  background: rgba(16, 185, 129, 0.2);
}
.my-listing-item .item-header .item-status.expired {
  color: #9ca3af;
  background: rgba(107, 114, 128, 0.2);
}
.my-listing-item .item-details {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--text-muted);
  align-items: center;
}
.my-listing-item .item-details .item-detail-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.my-listing-item .item-details .item-time {
  font-size: 10px;
  color: #9ca3af;
}
.my-listing-item .item-details .item-fee {
  font-size: 10px;
  color: #ef4444;
}
.my-listing-item .remove-btn {
  width: 100%;
  padding: 8px;
  background: linear-gradient(90deg, #ef4444, #dc2626);
  border: none;
  border-radius: 8px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.my-listing-item .remove-btn:hover {
  opacity: 0.9;
  transform: scale(1.02);
}
.my-listing-item .expired-tip {
  font-size: 11px;
  color: #9ca3af;
  text-align: center;
  padding: 4px;
}
.pending-sales-panel .pending-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: rgba(62, 124, 140, 0.12);
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--accent-primary);
  border-radius: 8px;
  margin-bottom: 12px;
  position: relative;
}
.pending-sales-panel .pending-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.3;
  background: linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 2px 6px, /* 右上 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 2px 6px, /* 左下 */ linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 2px 6px, /* 右下 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 2px 6px;
  background-repeat: no-repeat;
}
.pending-sales-panel .pending-header span {
  font-size: 14px;
  font-weight: bold;
  color: var(--accent-bright);
}
.pending-sales-panel .pending-header .claim-all-btn {
  padding: 8px 16px;
  background: linear-gradient(90deg, #3e7c8c, #e88c3a);
  border: none;
  border-radius: 8px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.pending-sales-panel .pending-header .claim-all-btn:hover {
  opacity: 0.9;
  transform: scale(1.02);
}
.pending-sales-panel .pending-header .claim-all-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.pending-sales-panel .pending-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pending-category {
  margin-bottom: 20px;
}
.pending-category .category-header {
  font-size: 14px;
  font-weight: bold;
  color: var(--accent-bright);
  padding: 8px 0;
  border-bottom: 1px solid rgba(62, 124, 140, 0.3);
  margin-bottom: 12px;
}
.pending-category .category-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pending-item {
  background: linear-gradient(165deg, rgba(14, 18, 28, 0.88) 0%, rgba(7, 11, 20, 0.92) 100%);
  border-radius: 8px;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-top: 2px solid var(--accent-primary);
  position: relative;
  background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 3px, rgba(0, 0, 0, 0.02) 3px 4px, transparent 4px 6px);
}
.pending-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.3;
  background: linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 2px 6px, /* 右上 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 2px 6px, /* 左下 */ linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 2px 6px, /* 右下 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 2px 6px;
  background-repeat: no-repeat;
}
.pending-item .item-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.pending-item .item-info .item-icon {
  font-size: 20px;
}
.pending-item .item-info .item-name {
  font-size: 14px;
  font-weight: bold;
  flex: 1;
}
.pending-item .item-info .item-count {
  font-size: 12px;
  color: var(--accent-bright);
}
.pending-item .sale-info {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.pending-item .item-time {
  font-size: 10px;
  color: #9ca3af;
  margin-bottom: 12px;
}
.pending-item .claim-btn {
  width: 100%;
  padding: 8px;
  background: linear-gradient(90deg, #3e7c8c, #e88c3a);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.pending-item .claim-btn:hover {
  opacity: 0.9;
  transform: scale(1.02);
}
.market-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  padding: 12px;
}
.market-pagination button {
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: white;
  cursor: pointer;
  transition: all 0.2s;
}
.market-pagination button:hover:not(:disabled) {
  background: rgba(62, 124, 140, 0.4);
  border-color: var(--accent-primary);
}
.market-pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.market-pagination span {
  font-size: 12px;
  color: var(--text-muted);
}
.empty-tip {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 13px;
}
.sell-categories .sell-category {
  display: inline-block;
  padding: 6px 12px;
  margin-right: 8px;
  margin-bottom: 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 12px;
  color: #9ca3af;
  cursor: pointer;
  transition: all 0.2s;
}
.sell-categories .sell-category:hover {
  background: rgba(62, 124, 140, 0.15);
  border-color: var(--accent-primary);
}
.sell-categories .sell-category.active {
  background: linear-gradient(90deg, #3e7c8c, #e88c3a);
  color: #fff;
  font-weight: bold;
  border-color: rgba(232, 140, 58, 0.6);
}
.category-group {
  margin-bottom: 12px;
}
.category-group .category-title {
  font-size: 12px;
  color: var(--accent-bright);
  padding: 6px 8px;
  background: rgba(62, 124, 140, 0.12);
  border-left: 3px solid var(--accent-primary);
  border-radius: 8px;
  margin-bottom: 6px;
}
.category-group .category-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sell-item-option,
.sell-beast-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: linear-gradient(165deg, rgba(14, 18, 28, 0.88) 0%, rgba(7, 11, 20, 0.92) 100%);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.sell-item-option:hover,
.sell-beast-option:hover {
  background: rgba(62, 124, 140, 0.15);
  border-color: var(--accent-primary);
}
.sell-item-option.selected,
.sell-beast-option.selected {
  background: rgba(62, 124, 140, 0.25);
  border: 1px solid var(--accent-primary);
}
.sell-item-option .item-icon,
.sell-beast-option .item-icon,
.sell-item-option .beast-icon,
.sell-beast-option .beast-icon {
  font-size: 28px;
  min-width: 48px;
  text-align: center;
}
.sell-item-option .item-info,
.sell-beast-option .item-info,
.sell-item-option .beast-info,
.sell-beast-option .beast-info {
  flex: 1;
}
.sell-item-option .item-info .item-name,
.sell-beast-option .item-info .item-name,
.sell-item-option .beast-info .item-name,
.sell-beast-option .beast-info .item-name,
.sell-item-option .item-info .beast-name,
.sell-beast-option .item-info .beast-name,
.sell-item-option .beast-info .beast-name,
.sell-beast-option .beast-info .beast-name {
  font-size: 14px;
  font-weight: bold;
}
.sell-item-option .item-info .item-detail,
.sell-beast-option .item-info .item-detail,
.sell-item-option .beast-info .item-detail,
.sell-beast-option .beast-info .item-detail,
.sell-item-option .item-info .beast-detail,
.sell-beast-option .item-info .beast-detail,
.sell-item-option .beast-info .beast-detail,
.sell-beast-option .beast-info .beast-detail {
  font-size: 11px;
  color: #9ca3af;
}
.sell-item-option .item-info .item-substats,
.sell-beast-option .item-info .item-substats,
.sell-item-option .beast-info .item-substats,
.sell-beast-option .beast-info .item-substats {
  font-size: 10px;
  color: #a855f7;
  margin-top: 2px;
}
.sell-item-option .item-price-hint,
.sell-beast-option .item-price-hint,
.sell-item-option .beast-price-hint,
.sell-beast-option .beast-price-hint {
  font-size: 11px;
  color: #10b981;
}
.sell-item-option.quality-rainbow-border {
  position: relative;
  border-color: transparent;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(255, 107, 255, 0.45);
}
.sell-item-option.quality-rainbow-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}
.sell-item-option.quality-rainbow-border:hover {
  background: rgba(0, 0, 0, 0.5);
}
.sell-item-option.quality-rainbow-border.selected {
  background: rgba(232, 140, 58, 0.15);
}
.item-detail-popup-market .popup-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
}
.item-detail-popup-market .popup-content {
  position: relative;
  width: 380px;
  max-width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  background: linear-gradient(135deg, #10161c, #0a0f16);
  border: 1px solid var(--border-color);
  border-top: 2px solid var(--accent-primary);
  border-radius: 8px;
  padding: 0;
  animation: slideUp 0.3s ease;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}
.item-detail-popup-market .detail-section {
  margin-bottom: 16px;
}
.item-detail-popup-market .detail-section .section-title {
  font-size: 12px;
  font-weight: bold;
  color: var(--accent-bright);
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(62, 124, 140, 0.3);
}
.item-detail-popup-market .detail-section .stat-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.item-detail-popup-market .detail-section .stat-list .stat-item {
  background: rgba(0, 0, 0, 0.3);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  color: #d9a36a;
}
.item-detail-popup-market .detail-section .bloodline-list {
  font-size: 12px;
  color: #a855f7;
  padding: 4px 8px;
  background: rgba(168, 85, 247, 0.1);
  border-radius: 8px;
}
.item-detail-popup-market .detail-section .seller-info {
  font-size: 12px;
  color: #9ca3af;
  padding: 4px 8px;
}
.item-detail-popup-market .detail-section .price-info {
  font-size: 13px;
  color: #d9a36a;
  padding: 4px 8px;
}
.item-detail-popup-market .detail-section .price-info.total {
  color: #e88c3a;
  font-weight: bold;
  margin-top: 4px;
}
.market-popup .popup-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
}
.market-popup .popup-content {
  width: 420px;
  max-width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  background: linear-gradient(135deg, #10161c, #0a0f16);
  border: 1px solid var(--border-color);
  border-top: 2px solid var(--accent-primary);
  border-radius: 8px;
  padding: 0;
  animation: slideUp 0.3s ease;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  position: relative;
}
.market-popup .popup-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.4;
  background: linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 8px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 2px 8px, /* 右上 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 8px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 2px 8px, /* 左下 */ linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 8px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 2px 8px, /* 右下 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 8px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 2px 8px;
  background-repeat: no-repeat;
}
.market-popup .form-group {
  margin-bottom: 16px;
}
.market-popup .form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  color: #9ca3af;
}
.market-popup .form-group button {
  color: white;
  background: #4b5563;
}
.market-popup input {
  background: #0a0f16;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 8px;
  color: white;
  font-size: 14px;
}
.market-popup input:focus {
  outline: none;
  border-color: var(--accent-primary);
}
.market-popup input::placeholder {
  color: #6b7280;
}
.market-popup .price-preview {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--accent-primary);
  border-radius: 8px;
  padding: 12px;
  margin-top: 12px;
  font-size: 12px;
  color: #d9a36a;
}
.market-popup .price-preview div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}
.market-popup .price-preview div span {
  color: var(--accent-bright);
  font-weight: bold;
}
.market-popup .tips {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 8px;
  text-align: center;
}
.market-popup .popup-header span {
  color: var(--accent-bright);
}
.market-popup .popup-footer button {
  color: white;
}
.market-popup #cancelBtn {
  background: #22323a;
}
.market-popup #confirmBtn {
  background: linear-gradient(90deg, #3e7c8c, #e88c3a);
}
.item-enchant {
  margin-left: 6px;
  font-size: 10px;
  color: #a855f7;
  background: rgba(168, 85, 247, 0.15);
  padding: 1px 4px;
  border-radius: 4px;
  white-space: nowrap;
}
.item-sockets {
  margin-left: 4px;
  font-size: 10px;
  letter-spacing: -1px;
}
.item-affix {
  margin-left: 4px;
  font-size: 10px;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.15);
  padding: 1px 4px;
  border-radius: 4px;
}
.beast-details {
  display: inline-flex;
  gap: 8px;
  margin-left: 8px;
  font-size: 10px;
  color: #9ca3af;
}
.expire-badge {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 12px;
  display: inline-block;
}
.expire-badge.warning {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}
.expire-badge:not(.warning) {
  background: rgba(232, 140, 58, 0.2);
  color: #e88c3a;
}
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes rainbow-glow {
  from {
    box-shadow: 0 0 5px rgba(255, 0, 0, 0.3), 0 0 10px rgba(255, 127, 0, 0.3);
  }
  to {
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3), 0 0 20px rgba(148, 0, 211, 0.3);
  }
}
@media (max-width: 480px) {
  .market-items-grid {
    grid-template-columns: 1fr;
  }
  .market-search-bar {
    flex-direction: column;
  }
  .market-search-bar input,
  .market-search-bar select,
  .market-search-bar button {
    width: 100%;
  }
  .market-header-bar {
    flex-direction: column;
    text-align: center;
  }
  .market-header-bar .market-resources {
    justify-content: center;
  }
  .pending-item .sale-info {
    flex-direction: column;
    gap: 4px;
  }
  .market-popup .popup-content {
    width: 95%;
  }
}
.market-filter-bar {
  padding: 0 12px;
}
.market-type-tabs {
  display: flex;
  gap: 1px;
  margin-bottom: 2px;
  padding: 8px 0;
}
.market-type-tabs .type-tab {
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}
.market-type-tabs .type-tab:hover {
  background: rgba(62, 124, 140, 0.15);
  border-color: var(--accent-primary);
}
.market-type-tabs .type-tab.active {
  background: linear-gradient(90deg, #3e7c8c, #e88c3a);
  color: #fff;
  border-color: rgba(232, 140, 58, 0.6);
}
.sell-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px 0 16px;
}
.sell-categories .sell-category-tab {
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}
.sell-categories .sell-category-tab:hover {
  background: rgba(62, 124, 140, 0.15);
  border-color: var(--accent-primary);
}
.sell-categories .sell-category-tab.active {
  background: linear-gradient(90deg, #3e7c8c, #e88c3a);
  color: #fff;
  border-color: rgba(232, 140, 58, 0.6);
}
.sell-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
  min-height: 200px;
  max-height: 300px;
}
.sell-bottom-panel {
  padding: 16px;
  border-top: 1px solid rgba(62, 124, 140, 0.3);
  background: inherit;
}
.item-stats {
  font-size: 10px;
  color: #9ca3af;
  margin-top: 2px;
}
.beast-stats {
  font-size: 10px;
  color: #4ade80;
  margin-top: 2px;
}
.beast-stars {
  color: #e88c3a;
  font-weight: bold;
}
.enhance-icons {
  display: inline-flex;
  gap: 2px;
  font-size: 10px;
}
.market-search-bar select {
  min-width: 100px;
  padding: 8px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 12px;
  cursor: pointer;
}
.market-search-bar select:focus {
  outline: none;
  border-color: var(--accent-primary);
}
.market-search-bar select option {
  background: #1e293b;
}
/**
 * ==================== rank.less ====================
 * 排行榜模块
 * 最后更新：2026-05-11
 * 
 * 使用的 base.less 组件：
 * - 按钮：.btn-primary, .btn-secondary
 * - 卡片：.card, .card-simple
 * - 进度条：.progress-container
 * - 弹窗：.modal-overlay, .modal-content
 * - 滚动条：.hide-scrollbar() 混入
 * 
 * 覆盖的 base.less 组件：
 * - 无
 * 
 * 模块特有样式：
 * - 排行榜模块主容器
 * - 头部
 * - Tab 切换
 * - 我的排名信息卡片
 * - 排行榜表格
 * - 分页
 * - 空状态
 */
.rank-module {
  background: var(--bg-primary);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: -webkit-fill-available;
  overflow: hidden;
}
.rank-header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 16px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}
.rank-header .rank-title {
  font-size: 18px;
  font-weight: bold;
  color: var(--accent-primary);
}
.rank-back-btn {
  display: block;
  width: calc(100% - 32px);
  margin: 10px 16px;
  text-align: center;
  padding: 10px 0;
  border: none;
  border-radius: 10px;
  background: #4b5563;
  color: #e5e7eb;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.rank-back-btn:hover {
  background: #6b7280;
}
.rank-back-btn:active {
  transform: scale(0.98);
}
.rank-tabs {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
  flex-wrap: wrap;
}
.rank-tabs .rank-tab {
  flex: 1;
  min-width: 70px;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}
.rank-tabs .rank-tab:hover {
  background: rgba(232, 140, 58, 0.1);
}
.rank-tabs .rank-tab.active {
  background: linear-gradient(90deg, #f59e0b, #e88c3a);
  color: #1f2937;
  border-color: #e88c3a;
}
.rank-list-container {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.rank-list-container::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
  background: transparent;
}
.rank-my-info {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1px solid #e88c3a;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.rank-my-info .my-rank-label {
  font-size: 14px;
  color: #9ca3af;
}
.rank-my-info .my-rank-value {
  font-size: 20px;
  font-weight: bold;
  color: #e88c3a;
}
.rank-my-info .my-rank-detail {
  font-size: 14px;
  color: #10b981;
}
.rank-my-info.rank-not-in {
  border-color: #4b5563;
}
.rank-my-info.rank-not-in .my-rank-value {
  color: #9ca3af;
}
.rank-list {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  overflow: hidden;
}
.rank-table {
  width: 100%;
  border-collapse: collapse;
}
.rank-table th,
.rank-table td {
  padding: 12px 8px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.rank-table th {
  color: #e88c3a;
  font-size: 13px;
  font-weight: bold;
  background: rgba(0, 0, 0, 0.3);
}
.rank-table td {
  color: #d9a36a;
  font-size: 13px;
}
.rank-table .rank-num {
  width: 60px;
  font-weight: bold;
  text-align: center;
}
.rank-table .rank-num.top-1 {
  color: #ffd700;
}
.rank-table .rank-num.top-2 {
  color: #c0c0c0;
}
.rank-table .rank-num.top-3 {
  color: #cd7f32;
}
.rank-table .player-name {
  font-weight: bold;
}
.rank-table .player-realm {
  color: #60a5fa;
}
.rank-table .player-value {
  color: #10b981;
  text-align: right;
}
.rank-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  padding: 12px;
}
.rank-pagination button {
  padding: 6px 12px;
  background: #334155;
  border: none;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  transition: all 0.2s;
}
.rank-pagination button:hover:not(:disabled) {
  background: #475569;
}
.rank-pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.rank-pagination .page-info {
  font-size: 12px;
  color: #9ca3af;
}
/* 作弊榜表格样式 */
.cheat-table {
  font-size: 12px;
}
.cheat-table th,
.cheat-table td {
  padding: 8px 4px;
  text-align: center;
}
.cheat-type {
  color: #ef4444;
  font-weight: bold;
}
.cheat-old {
  color: #f59e0b;
}
.cheat-new {
  color: #ef4444;
}
.cheat-action {
  color: #10b981;
}
.cheat-date {
  color: #888;
  font-size: 11px;
}
.empty-tip {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 13px;
}
@media (max-width: 480px) {
  .rank-tabs .rank-tab {
    font-size: 11px;
    padding: 6px 8px;
  }
  .rank-table th,
  .rank-table td {
    padding: 8px 4px;
    font-size: 11px;
  }
  .rank-table .rank-num {
    width: 40px;
  }
  .rank-my-info {
    flex-direction: column;
    text-align: center;
  }
}
/**
 * ==================== card-raid.less ====================
 * 卡牌团队副本模块
 * 最后更新：2026-05-11
 * 
 * 使用的 base.less 组件：
 * - 按钮：.btn-primary, .btn-success, .btn-danger
 * - 卡片：.card, .card-simple
 * - 进度条：.progress-container
 * - 弹窗：.modal-overlay, .modal-content
 * - 滚动条：.hide-scrollbar() 混入
 * 
 * 覆盖的 base.less 组件：
 * - 无
 * 
 * 模块特有样式：
 * - 卡牌副本模块主容器
 * - 头部
 * - 大厅视图（BOSS展示、技能面板、房间卡片网格）
 * - 房间视图（成员列表、职业选择、房间操作、聊天）
 * - 战斗视图（BOSS区域、玩家区域、手牌区域、战斗日志）
 * - BOSS 怒气条
 * - 目标选择弹窗
 */
.card-raid-module {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0f172a, #0a0f1a);
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.card-raid-module.hidden {
  display: none;
}
.raid-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--grad-card);
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
  position: relative;
  background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 3px, rgba(0, 0, 0, 0.04) 3px 4px, transparent 4px 6px);
}
.raid-header .raid-back-btn {
  background: #22323a;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 6px 12px;
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.raid-header .raid-back-btn:hover {
  background: #2c4048;
  color: var(--text-primary);
}
.raid-header .raid-back-btn:active {
  transform: scale(0.96);
}
.raid-header h2 {
  font-size: 16px;
  font-weight: bold;
  color: var(--accent-bright);
  margin: 0;
  letter-spacing: 0.15em;
  padding: 4px 16px;
  position: relative;
  background: linear-gradient(90deg, rgba(62, 124, 140, 0.18), transparent 70%);
  border-left: 2px solid var(--accent-primary);
  text-shadow: 0 0 10px var(--accent-glow);
}
.raid-view {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
}
.raid-view::-webkit-scrollbar {
  width: 6px;
}
.raid-view::-webkit-scrollbar-track {
  background: #0f172a;
  border-radius: 3px;
}
.raid-view::-webkit-scrollbar-thumb {
  background: #e88c3a;
  border-radius: 3px;
}
.raid-view.hidden {
  display: none;
}
.lobby-view .boss-display {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #1e293b;
  border-radius: 12px;
  margin-bottom: 12px;
  border: 1px solid #334155;
}
.lobby-view .boss-display .boss-icon {
  font-size: 48px;
  background: rgba(232, 140, 58, 0.1);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}
.lobby-view .boss-display .boss-info {
  flex: 1;
}
.lobby-view .boss-display .boss-name {
  font-size: 18px;
  font-weight: bold;
  color: #e88c3a;
  margin-bottom: 4px;
}
.lobby-view .boss-display .boss-desc {
  font-size: 11px;
  color: #94a3b8;
}
.lobby-view .boss-skills-panel {
  padding: 10px;
  background: rgba(15, 23, 42, 0.6);
  border-radius: 12px;
  margin-bottom: 12px;
}
.lobby-view .boss-skills-panel .skills-title {
  font-size: 13px;
  font-weight: bold;
  color: #e88c3a;
  margin-bottom: 8px;
}
.lobby-view .boss-skills-panel .skills-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}
.lobby-view .boss-skills-panel .skill-item {
  background: rgba(30, 41, 59, 0.8);
  border-radius: 8px;
  padding: 8px 10px;
  border-left: 3px solid #e88c3a;
}
.lobby-view .boss-skills-panel .skill-item .skill-name {
  font-size: 12px;
  font-weight: bold;
  color: #e2e8f0;
  margin-bottom: 3px;
}
.lobby-view .boss-skills-panel .skill-item .skill-desc {
  font-size: 10px;
  color: #94a3b8;
  line-height: 1.4;
}
.lobby-view .boss-skills-panel .skill-item .skill-tip {
  font-size: 10px;
  color: #e88c3a;
  margin-top: 3px;
}
.lobby-view .boss-skills-panel .boss-strategy {
  background: rgba(232, 140, 58, 0.1);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 11px;
  color: #e88c3a;
  border: 1px dashed #e88c3a;
}
.lobby-view .boss-carousel {
  margin: 16px 0;
}
.lobby-view .boss-carousel .boss-carousel-title {
  font-size: 14px;
  font-weight: bold;
  color: #e88c3a;
  margin-bottom: 12px;
  padding-left: 4px;
  border-left: 3px solid #e88c3a;
}
.lobby-view .boss-carousel .boss-carousel-list {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  touch-action: pan-x;
  overscroll-behavior: none;
  cursor: grab;
  scrollbar-width: none !important;
  /* ✅ Firefox 隐藏滚动条 */
  padding: 8px 4px;
  /* ✅ Chrome/Safari 隐藏滚动条 */
}
.lobby-view .boss-carousel .boss-carousel-list::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}
.lobby-view .boss-carousel .boss-carousel-list::-webkit-scrollbar-track {
  display: none !important;
}
.lobby-view .boss-carousel .boss-carousel-list::-webkit-scrollbar-thumb {
  display: none !important;
}
.lobby-view .boss-carousel .boss-card {
  flex: 0 0 auto;
  width: 100px;
  padding: 12px 8px;
  text-align: center;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  touch-action: pan-x !important;
  -webkit-touch-callout: none !important;
  -webkit-user-select: none !important;
  user-select: none !important;
}
.lobby-view .boss-carousel .boss-card:hover {
  background: rgba(0, 0, 0, 0.5);
  transform: translateY(-2px);
}
.lobby-view .boss-carousel .boss-card.selected {
  border-color: #e88c3a;
  background: rgba(232, 140, 58, 0.15);
  box-shadow: 0 0 20px rgba(232, 140, 58, 0.2);
}
.lobby-view .boss-carousel .boss-card .boss-icon {
  font-size: 32px;
  display: block;
  margin-bottom: 6px;
}
.lobby-view .boss-carousel .boss-card .boss-name {
  font-size: 12px;
  font-weight: bold;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lobby-view .boss-carousel .boss-card .boss-difficulty {
  font-size: 10px;
  color: #9ca3af;
  margin-top: 4px;
}
.lobby-view .room-list-section {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 12px;
  background: #1e293b;
  border-radius: 12px;
  padding: 12px;
  border: 1px solid #334155;
}
.lobby-view .room-list-section .room-list-title {
  font-size: 13px;
  color: #e2e8f0;
  margin-bottom: 10px;
}
.lobby-view .room-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 390px;
  margin: 0 auto;
}
.lobby-view .room-list .room-list-empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 24px;
  color: #94a3b8;
  font-size: 12px;
}
.lobby-view .room-list .room-item {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 12px 10px;
  text-align: center;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.lobby-view .room-list .room-item:hover {
  border-color: #e88c3a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(232, 140, 58, 0.15);
}
.lobby-view .room-list .room-item.full {
  opacity: 0.5;
}
.lobby-view .room-list .room-item .room-info .room-name {
  font-size: 13px;
  font-weight: bold;
  color: #e2e8f0;
  margin-bottom: 4px;
}
.lobby-view .room-list .room-item .room-info .room-status {
  font-size: 11px;
  color: #94a3b8;
}
.lobby-view .room-list .room-item .join-room-btn {
  width: 100%;
  padding: 7px;
  background: #e88c3a;
  border: none;
  border-radius: 12px;
  color: #1a1a2e;
  font-size: 11px;
  font-weight: bold;
  cursor: pointer;
}
.lobby-view .room-list .room-item .join-room-btn:hover:not(:disabled) {
  background: #d97706;
}
.lobby-view .room-list .room-item .join-room-btn:disabled {
  background: #334155;
  color: #64748b;
  cursor: not-allowed;
}
.lobby-view .token-section {
  background: #1e293b;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid #334155;
}
.lobby-view .token-section .token-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
  font-size: 12px;
  color: #e2e8f0;
  gap: 8px;
}
.lobby-view .token-section .token-info .history-btn {
  background: rgba(100, 116, 139, 0.3);
  border: 1px solid #475569;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  color: #94a3b8;
  cursor: pointer;
}
.lobby-view .token-section .token-info .history-btn:hover {
  background: rgba(100, 116, 139, 0.5);
  color: #e2e8f0;
}
.lobby-view .token-section .exchange-btn {
  width: 100%;
  padding: 10px;
  background: linear-gradient(135deg, #10b981, #059669);
  border: none;
  border-radius: 12px;
  color: white;
  font-weight: bold;
  cursor: pointer;
}
.lobby-view .token-section .exchange-btn:hover {
  opacity: 0.9;
}
.lobby-view .tips {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  padding: 10px;
  font-size: 10px;
  color: #94a3b8;
}
.lobby-view .tips p {
  margin: 3px 0;
}
.lobby-view .cleanup-btn {
  text-align: center;
  margin-top: 10px;
  font-size: 10px;
  color: #64748b;
  cursor: pointer;
}
.lobby-view .cleanup-btn:hover {
  color: #94a3b8;
}
.room-view .room-header {
  background: #1e293b;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
  text-align: center;
  border: 1px solid #334155;
}
.room-view .room-header .room-name {
  font-size: 16px;
  font-weight: bold;
  color: #e88c3a;
}
.room-view .room-header .room-code {
  font-size: 11px;
  color: #94a3b8;
  font-family: monospace;
}
.room-view .members-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.room-view .members-list .member-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #1e293b;
  border-radius: 12px;
  border: 1px solid #334155;
  flex: 1;
  min-width: 200px;
}
.room-view .members-list .member-item.is-me {
  border-color: #e88c3a;
}
.room-view .members-list .member-item.empty {
  opacity: 0.6;
}
.room-view .members-list .member-item.empty .member-name {
  color: #94a3b8;
}
.room-view .members-list .member-item .member-icon {
  font-size: 16px;
}
.room-view .members-list .member-item .member-name {
  flex: 1;
  font-size: 13px;
  font-weight: 500;
  color: #e2e8f0;
}
.room-view .members-list .member-item .member-class {
  font-size: 11px;
  color: #94a3b8;
  min-width: 60px;
}
.room-view .members-list .member-item .member-status {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 10px;
  min-width: 55px;
  text-align: center;
}
.room-view .members-list .member-item .member-status.ready {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}
.room-view .members-list .member-item .member-status.not-ready {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}
.room-view .members-list .member-item .kick-btn {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid #ef4444;
  border-radius: 6px;
  color: #ef4444;
  cursor: pointer;
  font-size: 10px;
  padding: 3px 8px;
}
.room-view .members-list .member-item .kick-btn:hover {
  background: #ef4444;
  color: white;
}
.room-view .class-select {
  background: #1e293b;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid #334155;
}
.room-view .class-select .class-title {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 10px;
}
.room-view .class-select .class-options {
  display: flex;
  gap: 10px;
}
.room-view .class-select .class-options .class-option {
  flex: 1;
  padding: 8px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid #334155;
  border-radius: 12px;
  color: #e2e8f0;
  cursor: pointer;
  text-align: center;
  font-size: 13px;
}
.room-view .class-select .class-options .class-option.selected {
  background: rgba(232, 140, 58, 0.2);
  border-color: #e88c3a;
  color: #e88c3a;
}
.room-view .class-select .class-options .class-option:hover {
  background: rgba(255, 255, 255, 0.1);
}
.room-view .room-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.room-view .room-actions button {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 12px;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
}
.room-view .room-actions button.ready-btn {
  background: #1e293b;
  border: 1px solid #334155;
  color: #e2e8f0;
}
.room-view .room-actions button.ready-btn.ready {
  background: #10b981;
  border-color: #10b981;
  color: white;
}
.room-view .room-actions button.ready-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.room-view .room-actions button.leave-room-btn {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid #ef4444;
  color: #ef4444;
}
.room-view .room-actions button.start-btn {
  background: linear-gradient(135deg, #e88c3a, #d97706);
  color: #1a1a2e;
}
.room-view .room-actions button.hidden {
  display: none;
}
.room-view .team-chat-section {
  margin-top: 12px;
  background: rgba(15, 23, 42, 0.6);
  border-radius: 12px;
  overflow: hidden;
}
.room-view .team-chat-section .chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: #1e293b;
  border-bottom: 1px solid #334155;
  font-size: 13px;
  color: #e88c3a;
}
.room-view .team-chat-section .chat-header .clear-chat-btn {
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  font-size: 14px;
}
.room-view .team-chat-section .chat-header .clear-chat-btn:hover {
  color: #ef4444;
}
.room-view .team-chat-section .chat-messages {
  height: 120px;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.room-view .team-chat-section .chat-placeholder {
  text-align: center;
  color: #64748b;
  font-size: 11px;
  padding: 20px;
}
.room-view .team-chat-section .chat-message {
  max-width: 85%;
  padding: 6px 10px;
  border-radius: 12px;
  font-size: 11px;
}
.room-view .team-chat-section .chat-message.my-message {
  align-self: flex-end;
  background: #3b82f6;
  color: white;
}
.room-view .team-chat-section .chat-message.other-message {
  align-self: flex-start;
  background: #1e293b;
  color: #e2e8f0;
}
.room-view .team-chat-section .chat-message .chat-message-header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 3px;
  font-size: 9px;
  opacity: 0.8;
}
.room-view .team-chat-section .chat-message .chat-sender {
  font-weight: bold;
}
.room-view .team-chat-section .chat-message .chat-time {
  font-size: 8px;
}
.room-view .team-chat-section .chat-message .chat-message-content {
  word-break: break-word;
}
.room-view .team-chat-section .chat-input-area {
  display: flex;
  padding: 8px;
  border-top: 1px solid #334155;
  gap: 8px;
}
.room-view .team-chat-section .chat-input {
  flex: 1;
  background: #1e293b;
  border: 1px solid #475569;
  border-radius: 12px;
  padding: 6px 12px;
  color: #e2e8f0;
  font-size: 11px;
  outline: none;
}
.room-view .team-chat-section .chat-input:focus {
  border-color: #e88c3a;
}
.room-view .team-chat-section .chat-send-btn {
  background: #e88c3a;
  border: none;
  border-radius: 12px;
  padding: 6px 14px;
  color: #1a1a2e;
  font-weight: bold;
  font-size: 11px;
  cursor: pointer;
}
.room-view .team-chat-section .chat-send-btn:hover {
  background: #d97706;
}
.battle-view {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.card-battle-container {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  padding: 8px;
}
.card-battle-container .battle-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #1e293b;
  border-radius: 12px;
  flex-shrink: 0;
}
.card-battle-container .battle-header .battle-leave-btn {
  padding: 6px 14px;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid #ef4444;
  border-radius: 12px;
  color: #ef4444;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
}
.card-battle-container .battle-header .battle-leave-btn:hover {
  background: #ef4444;
  color: white;
}
.card-battle-container .battle-header .battle-title {
  font-size: 15px;
  font-weight: bold;
  color: #e88c3a;
}
.card-battle-container .battle-header .turn-info {
  display: flex;
  gap: 10px;
  font-size: 11px;
  color: #94a3b8;
  align-items: center;
}
.card-battle-container .battle-header .turn-info .turn-timer {
  color: #e88c3a;
  font-weight: bold;
}
.card-battle-container .battle-boss-section {
  background: #1e293b;
  border-radius: 12px;
  padding: 10px;
  flex-shrink: 0;
}
.card-battle-container .battle-boss-section .boss-portrait {
  text-align: center;
}
.card-battle-container .battle-boss-section .boss-portrait .boss-icon {
  font-size: 36px;
}
.card-battle-container .battle-boss-section .boss-portrait .boss-name {
  font-size: 15px;
  font-weight: bold;
  color: #e88c3a;
}
.card-battle-container .battle-boss-section .boss-portrait .boss-stats {
  font-size: 10px;
  color: #94a3b8;
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 4px 0;
}
.card-battle-container .battle-boss-section .boss-portrait .boss-hp-bar {
  background: #0f172a;
  border-radius: 8px;
  height: 18px;
  position: relative;
  overflow: hidden;
  margin: 6px 0;
}
.card-battle-container .battle-boss-section .boss-portrait .boss-hp-bar .boss-hp-fill {
  height: 100%;
  background: linear-gradient(90deg, #ef4444, #dc2626);
  transition: width 0.3s;
  border-radius: 8px;
}
.card-battle-container .battle-boss-section .boss-portrait .boss-hp-bar .boss-hp-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 10px;
  font-weight: bold;
  color: white;
  text-shadow: 0 0 2px black;
}
.card-battle-container .battle-boss-section .boss-portrait .boss-charging {
  margin-top: 6px;
  padding: 6px;
  background: rgba(239, 68, 68, 0.2);
  border-radius: 6px;
  font-size: 11px;
  color: #ef4444;
  font-weight: bold;
}
.card-battle-container .boss-rage-bar {
  margin-top: 8px;
  padding: 6px 0;
}
.card-battle-container .boss-rage-bar .boss-rage-label {
  font-size: 12px;
  color: #e88c3a;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.card-battle-container .boss-rage-bar .boss-rage-label span {
  font-weight: bold;
  font-size: 14px;
}
.card-battle-container .boss-rage-bar .boss-rage-fill-container {
  width: 100%;
  height: 8px;
  background: #1e293b;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #334155;
}
.card-battle-container .boss-rage-bar .boss-rage-fill-container .boss-rage-fill {
  height: 100%;
  transition: width 0.5s ease, background 0.3s ease;
  border-radius: 4px;
  background: linear-gradient(90deg, #94a3b8, #64748b);
}
.card-battle-container .battle-players-section {
  flex-shrink: 0;
}
.card-battle-container .battle-players-section .players-grid {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}
.card-battle-container .battle-players-section .players-grid .player-card {
  flex: 1;
  min-width: 110px;
  background: #1e293b;
  border-radius: 10px;
  padding: 10px;
  border: 2px solid #334155;
  transition: all 0.2s;
}
.card-battle-container .battle-players-section .players-grid .player-card.current-turn {
  border-color: #e88c3a;
  box-shadow: 0 0 8px rgba(232, 140, 58, 0.3);
}
.card-battle-container .battle-players-section .players-grid .player-card.dead {
  opacity: 0.5;
  border-color: #ef4444;
}
.card-battle-container .battle-players-section .players-grid .player-card .player-name {
  font-size: 12px;
  font-weight: bold;
  color: #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.card-battle-container .battle-players-section .players-grid .player-card .player-name .turn-indicator {
  font-size: 14px;
  animation: pulse 1s infinite;
}
.card-battle-container .battle-players-section .players-grid .player-card .player-hp-bar {
  background: #1a1a2e;
  border-radius: 6px;
  height: 14px;
  position: relative;
  margin-bottom: 4px;
  overflow: hidden;
  border: 1px solid #2a2a4e;
}
.card-battle-container .battle-players-section .players-grid .player-card .player-hp-bar .player-hp-fill {
  height: 100%;
  border-radius: 5px;
  transition: width 0.3s;
  background: linear-gradient(90deg, #10b981, #34d399);
}
.card-battle-container .battle-players-section .players-grid .player-card .player-hp-bar .player-hp-fill.low {
  background: linear-gradient(90deg, #f59e0b, #e88c3a);
}
.card-battle-container .battle-players-section .players-grid .player-card .player-hp-bar .player-hp-fill.critical {
  background: linear-gradient(90deg, #ef4444, #f87171);
}
.card-battle-container .battle-players-section .players-grid .player-card .player-hp-bar span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 9px;
  font-weight: bold;
  color: white;
  text-shadow: 0 0 2px black;
  white-space: nowrap;
}
.card-battle-container .battle-players-section .players-grid .player-card .player-mp {
  font-size: 10px;
  color: #60a5fa;
  margin-bottom: 2px;
}
.card-battle-container .battle-players-section .players-grid .player-card .player-threat {
  font-size: 9px;
  color: #94a3b8;
}
.card-battle-container .battle-hand-section {
  background: #1e293b;
  border-radius: 12px;
  padding: 10px;
  flex-shrink: 0;
}
.card-battle-container .battle-hand-section .hand-cards-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.card-battle-container .battle-hand-section .hand-cards-header .hand-cards-title {
  font-size: 12px;
  color: #94a3b8;
}
.card-battle-container .battle-hand-section .hand-cards-header .auto-battle-btn {
  padding: 5px 14px;
  background: #334155;
  border: 1px solid #334155;
  border-radius: 12px;
  color: #e2e8f0;
  font-size: 11px;
  cursor: pointer;
}
.card-battle-container .battle-hand-section .hand-cards-header .auto-battle-btn:hover {
  background: #475569;
}
.card-battle-container .battle-hand-section .hand-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
}
.card-battle-container .battle-hand-section .hand-cards .waiting-turn,
.card-battle-container .battle-hand-section .hand-cards .no-cards {
  width: 100%;
  text-align: center;
  padding: 16px;
  color: #94a3b8;
  font-size: 11px;
}
.card-battle-container .battle-hand-section .hand-cards .card {
  width: calc(33.33% - 6px);
  min-width: 90px;
  background: #0f172a;
  border: 2px solid;
  border-radius: 10px;
  padding: 8px;
  cursor: pointer;
  transition: transform 0.2s;
  box-sizing: border-box;
}
.card-battle-container .battle-hand-section .hand-cards .card:hover:not(.disabled) {
  transform: translateY(-2px);
}
.card-battle-container .battle-hand-section .hand-cards .card.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.card-battle-container .battle-hand-section .hand-cards .card .card-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}
.card-battle-container .battle-hand-section .hand-cards .card .card-header .card-name {
  font-size: 11px;
  font-weight: bold;
}
.card-battle-container .battle-hand-section .hand-cards .card .card-header .card-cost {
  font-size: 9px;
  color: #e88c3a;
}
.card-battle-container .battle-hand-section .hand-cards .card .card-icon {
  font-size: 24px;
  text-align: center;
  margin: 4px 0;
}
.card-battle-container .battle-hand-section .hand-cards .card .card-desc {
  font-size: 8px;
  color: #94a3b8;
  text-align: center;
}
.card-battle-container .battle-hand-section .hand-cards .card .card-discard-btn {
  width: 100%;
  margin-top: 6px;
  padding: 3px;
  background: rgba(239, 68, 68, 0.2);
  border: none;
  border-radius: 6px;
  color: #ef4444;
  font-size: 9px;
  cursor: pointer;
}
.card-battle-container .battle-hand-section .battle-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  gap: 10px;
}
.card-battle-container .battle-hand-section .battle-actions .auto-battle-btn {
  padding: 6px 16px;
  background: #334155;
  border: 1px solid #334155;
  border-radius: 12px;
  color: #e2e8f0;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  white-space: nowrap;
}
.card-battle-container .battle-hand-section .battle-actions .auto-battle-btn:hover {
  background: #475569;
}
.card-battle-container .battle-hand-section .battle-actions .energy-display {
  font-size: 13px;
  color: #e88c3a;
  flex: 1;
  text-align: center;
}
.card-battle-container .battle-hand-section .battle-actions .end-turn-btn {
  padding: 6px 20px;
  background: #e88c3a;
  border: none;
  border-radius: 12px;
  color: #1a1a2e;
  font-weight: bold;
  cursor: pointer;
  white-space: nowrap;
}
.card-battle-container .battle-hand-section .battle-actions .end-turn-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.card-battle-container .battle-logs-section {
  flex: 1;
  background: #1e293b;
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  min-height: 100px;
}
.card-battle-container .battle-logs-section .logs-title {
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 6px;
}
.card-battle-container .battle-logs-section .battle-logs {
  flex: 1;
  overflow-y: auto;
  font-size: 10px;
  font-family: monospace;
}
.card-battle-container .battle-logs-section .battle-logs .log-line {
  padding: 3px 0;
  border-bottom: 1px solid rgba(51, 65, 85, 0.5);
  color: #94a3b8;
}
/* WebSocket 连接状态指示器 */
.ws-status-container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding: 5px 10px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  margin-bottom: 10px;
  font-size: 12px;
}
.battle-ws-status {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 100;
  background: rgba(0, 0, 0, 0.5);
}
.ws-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.ws-status-dot.connected {
  background-color: #22c55e;
  box-shadow: 0 0 5px #22c55e;
  animation: pulse-green 2s infinite;
}
.ws-status-dot.disconnected {
  background-color: #ef4444;
  box-shadow: 0 0 5px #ef4444;
}
.ws-status-dot.connecting {
  background-color: #e88c3a;
  animation: pulse-yellow 1s infinite;
}
.ws-status-text {
  color: #e2e8f0;
}
.ws-status-text.disconnected {
  color: #ef4444;
}
@keyframes pulse-green {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}
@keyframes pulse-yellow {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
  100% {
    opacity: 1;
  }
}
/* ========== 团队副本 - Buff/Debuff 显示 ========== */
/* 玩家增益区域 */
.player-buffs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
/* 玩家增益标签 */
.player-buffs .buff {
  display: inline-block;
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid #22c55e;
  color: #22c55e;
  font-size: 9px;
  padding: 2px 5px;
  border-radius: 12px;
  white-space: nowrap;
}
/* 玩家减益区域 */
.player-debuffs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
/* 玩家减益标签 */
.player-debuffs .debuff {
  display: inline-block;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid #ef4444;
  color: #ef4444;
  font-size: 9px;
  padding: 2px 5px;
  border-radius: 12px;
  white-space: nowrap;
}
/* BOSS状态容器 */
.boss-buffs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  margin-bottom: 10px;
  min-height: 32px;
}
/* BOSS增益标签 */
.boss-buffs .boss-buff {
  display: inline-block;
  background: rgba(34, 197, 94, 0.25);
  border: 1px solid #22c55e;
  color: #22c55e;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 12px;
  font-weight: 500;
}
/* BOSS减益标签 */
.boss-buffs .boss-debuff {
  display: inline-block;
  background: rgba(239, 68, 68, 0.25);
  border: 1px solid #ef4444;
  color: #ef4444;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 12px;
  font-weight: 500;
}
/* 无状态提示 */
.boss-buffs .no-buffs {
  color: #64748b;
  font-size: 11px;
  font-style: italic;
}
/* 玩家卡片中的Buff区域优化 */
.player-card .player-buffs,
.player-card .player-debuffs {
  font-size: 10px;
  margin-top: 8px;
}
.target-select-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100001;
}
.target-select-modal .target-select-content {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 2px solid #e88c3a;
  border-radius: 12px;
  padding: 20px;
  width: 300px;
  max-height: 80vh;
  overflow-y: auto;
}
.target-select-modal .target-select-content .target-select-title {
  text-align: center;
  font-size: 16px;
  font-weight: bold;
  color: #e88c3a;
  margin-bottom: 16px;
}
.target-select-modal .target-select-content .target-select-btn {
  display: block;
  width: 100%;
  margin: 8px 0;
  padding: 12px;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 12px;
  color: #e2e8f0;
  cursor: pointer;
  font-size: 13px;
  text-align: left;
  transition: all 0.2s;
}
.target-select-modal .target-select-content .target-select-btn:hover {
  border-color: #e88c3a;
  background: rgba(232, 140, 58, 0.1);
  transform: translateX(4px);
}
.target-select-modal .target-select-content .target-select-btn .target-name {
  font-weight: bold;
}
.target-select-modal .target-select-content .target-select-btn .target-status {
  font-size: 11px;
  color: #94a3b8;
  float: right;
}
.target-select-modal .target-select-content .target-cancel-btn {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 10px;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid #ef4444;
  border-radius: 12px;
  color: #ef4444;
  cursor: pointer;
  font-size: 13px;
}
.target-select-modal .target-select-content .target-cancel-btn:hover {
  background: rgba(239, 68, 68, 0.4);
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}
@media (max-width: 768px) {
  .card-battle-container .battle-hand-section .hand-cards .card {
    width: calc(33.33% - 6px);
    min-width: 85px;
    padding: 6px;
  }
  .card-battle-container .player-card {
    min-width: 90px;
    padding: 6px;
  }
}
@media (max-width: 480px) {
  .card-battle-container .battle-hand-section .hand-cards .card {
    min-width: 75px;
  }
  .card-battle-container .battle-hand-section .hand-cards .card .card-icon {
    font-size: 20px;
  }
}
/* ========== BOSS转阶段特效 ========== */
@keyframes bossPhaseFlash {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }
  50% {
    box-shadow: 0 0 0 20px rgba(239, 68, 68, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}
@keyframes bossPhaseShake {
  0% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
  100% {
    transform: translateX(0);
  }
}
.boss-portrait.phase-change {
  animation: bossPhaseShake 0.3s ease-in-out, bossPhaseFlash 0.6s ease-out;
}
.boss-portrait.phase-change .boss-icon {
  animation: bossPhaseShake 0.2s ease-in-out;
}
/* BOSS阶段标识 */
.boss-phase-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  font-size: 12px;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  z-index: 10;
}
.boss-phase-badge.phase2 {
  background: linear-gradient(135deg, #f59e0b, #ea580c);
}
.boss-phase-badge.phase3 {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
}
/* ========== 战斗特效样式 ========== */
/* 飘字特效 */
.floating-text {
  position: fixed;
  font-size: 24px;
  font-weight: bold;
  pointer-events: none;
  z-index: 1000;
  animation: floatUp 1s ease-out forwards;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}
.floating-red {
  color: #ef4444;
  text-shadow: 0 0 3px #7f1d1d;
}
.floating-green {
  color: #22c55e;
  text-shadow: 0 0 3px #14532d;
}
.floating-yellow {
  color: #e88c3a;
  text-shadow: 0 0 3px #78350f;
}
@keyframes floatUp {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-60px) scale(1.5);
  }
}
/* 暴击特效 */
.crit-effect {
  position: fixed;
  font-size: 28px;
  font-weight: bold;
  color: #e88c3a;
  text-shadow: 0 0 5px #ef4444;
  pointer-events: none;
  z-index: 1000;
  animation: critPop 0.5s ease-out forwards;
  white-space: nowrap;
}
@keyframes critPop {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  50% {
    opacity: 1;
    transform: scale(1.5);
  }
  100% {
    opacity: 0;
    transform: scale(1);
  }
}
/* 卡牌点击特效 */
.card-play-effect {
  animation: cardPlay 0.3s ease-out !important;
}
@keyframes cardPlay {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5);
  }
  50% {
    transform: scale(0.95);
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0);
  }
  100% {
    transform: scale(1);
  }
}
/* 受击闪光 */
.flash-damage {
  animation: flashRed 0.2s ease-out !important;
}
.flash-heal {
  animation: flashGreen 0.2s ease-out !important;
}
@keyframes flashRed {
  0% {
    background-color: rgba(239, 68, 68, 0);
    box-shadow: 0 0 0 0 #ef4444;
  }
  50% {
    background-color: rgba(239, 68, 68, 0.5);
    box-shadow: 0 0 0 5px rgba(239, 68, 68, 0.3);
  }
  100% {
    background-color: rgba(239, 68, 68, 0);
  }
}
@keyframes flashGreen {
  0% {
    background-color: rgba(34, 197, 94, 0);
  }
  50% {
    background-color: rgba(34, 197, 94, 0.5);
  }
  100% {
    background-color: rgba(34, 197, 94, 0);
  }
}
/* BOSS受击 */
.boss-hit {
  animation: bossHit 0.2s ease-out !important;
}
@keyframes bossHit {
  0% {
    transform: scale(1);
    filter: brightness(1);
  }
  50% {
    transform: scale(0.98);
    filter: brightness(1.5);
  }
  100% {
    transform: scale(1);
    filter: brightness(1);
  }
}
/* BOSS蓄力特效 */
.boss-charging-effect {
  animation: bossCharging 0.5s ease-in-out infinite !important;
}
@keyframes bossCharging {
  0% {
    filter: brightness(1) drop-shadow(0 0 0 #ef4444);
  }
  50% {
    filter: brightness(1.3) drop-shadow(0 0 10px #ef4444);
  }
  100% {
    filter: brightness(1) drop-shadow(0 0 0 #ef4444);
  }
}
/* 屏幕震动 */
.shake {
  animation: shake 0.3s ease-in-out;
}
@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}
/**
 * ==================== pk-arena.less ====================
 * 末日求生竞技场模块
 * 最后更新：2026-05-11
 * 
 * 使用的 base.less 组件：
 * - 按钮：.btn-primary, .btn-success, .btn-danger
 * - 卡片：.card, .card-simple
 * - 进度条：.progress-container .progress-sm
 * - 弹窗：.modal-overlay, .modal-content
 * - 滚动条：.hide-scrollbar() 混入
 * 
 * 覆盖的 base.less 组件：
 * - 无
 * 
 * 模块特有样式：
 * - 竞技场模块主容器
 * - 头部
 * - 大厅视图（房间列表）
 * - 房间视图（队伍展示、下注区域、聊天）
 * - 战斗视图（玩家卡片、手牌、操作区、战斗日志）
 * - 下注弹窗
 * - 结果弹窗
 */
#pkArenaContainer {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}
.pk-arena-module {
  width: 100%;
  min-height: 100vh;
  background: linear-gradient(135deg, #0f172a, #0a0f1a);
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
}
.pk-arena-module.hidden {
  display: none;
}
.pk-arena-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--grad-card);
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
  background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 3px, rgba(0, 0, 0, 0.04) 3px 4px, transparent 4px 6px);
  position: relative;
  justify-content: center;
}
.pk-arena-header h2 {
  font-size: 16px;
  font-weight: bold;
  color: var(--accent-bright);
  margin: 0;
  letter-spacing: 0.15em;
  padding: 4px 16px;
  position: relative;
  background: linear-gradient(90deg, rgba(62, 124, 140, 0.18), transparent 70%);
  border-left: 2px solid var(--accent-primary);
  text-shadow: 0 0 10px var(--accent-glow);
}
.pk-back-btn {
  display: block;
  width: calc(100% - 32px);
  margin: 10px 16px;
  text-align: center;
  padding: 10px 0;
  border: none;
  border-radius: 10px;
  background: #4b5563;
  color: #e5e7eb;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.pk-back-btn:hover {
  background: #6b7280;
}
.pk-back-btn:active {
  transform: scale(0.98);
}
.pk-ws-status {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}
.pk-stats-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid #334155;
  flex-shrink: 0;
}
.pk-stats-bar .pk-stats-info {
  font-size: 13px;
  color: #94a3b8;
}
.pk-stats-bar .pk-claim-btn {
  background: #1e293b;
  border: 1px solid #e88c3a;
  color: #e88c3a;
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.pk-stats-bar .pk-claim-btn:hover {
  background: #e88c3a;
  color: #0f172a;
}
.pk-stats-bar .pk-claim-btn.has-pending {
  background: #e88c3a;
  color: #0f172a;
  animation: pk-claim-pulse 1.5s infinite;
}
@keyframes pk-claim-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}
.pk-claim-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}
.pk-claim-modal .pk-claim-modal-content {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 12px;
  width: 90%;
  max-width: 420px;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.pk-claim-modal .pk-claim-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #334155;
}
.pk-claim-modal .pk-claim-modal-header h3 {
  font-size: 16px;
  color: #e88c3a;
  margin: 0;
}
.pk-claim-modal .pk-claim-modal-header .pk-claim-close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 20px;
  cursor: pointer;
  padding: 0 8px;
}
.pk-claim-modal .pk-claim-modal-header .pk-claim-close:hover {
  color: #e2e8f0;
}
.pk-claim-modal .pk-claim-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}
.pk-claim-modal .pk-claim-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.pk-claim-modal .pk-claim-item .pk-claim-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pk-claim-modal .pk-claim-item .pk-claim-status {
  font-size: 13px;
  color: #e2e8f0;
}
.pk-claim-modal .pk-claim-item .pk-claim-reward {
  font-size: 12px;
  color: #94a3b8;
}
.pk-claim-modal .pk-claim-item .pk-claim-one-btn {
  background: #e88c3a;
  border: none;
  color: #0f172a;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 6px;
  cursor: pointer;
}
.pk-claim-modal .pk-claim-item .pk-claim-one-btn:hover {
  opacity: 0.85;
}
.pk-claim-modal .pk-claim-modal-footer {
  padding: 12px 16px;
  border-top: 1px solid #334155;
}
.pk-claim-modal .pk-claim-modal-footer .pk-claim-all-btn {
  width: 100%;
  background: #e88c3a;
  border: none;
  color: #0f172a;
  font-size: 14px;
  font-weight: bold;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
}
.pk-claim-modal .pk-claim-modal-footer .pk-claim-all-btn:hover {
  opacity: 0.85;
}
.pk-claim-modal .pk-claim-modal-footer .pk-claim-all-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.pk-lobby-view,
.pk-room-view,
.pk-battle-view {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.pk-lobby-view.hidden,
.pk-room-view.hidden,
.pk-battle-view.hidden {
  display: none;
}
.pk-room-list {
  background: #1e293b;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 16px;
  border: 1px solid #334155;
}
.pk-room-list .pk-room-list-title {
  font-size: 14px;
  color: #e88c3a;
  margin-bottom: 10px;
}
.pk-room-list .pk-room-grid-1v1 {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 4px;
}
.pk-room-list .pk-room-grid-1v1 .pk-room-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 14px;
  transition: all 0.2s;
}
.pk-room-list .pk-room-grid-1v1 .pk-room-card:hover {
  border-color: #e88c3a;
}
.pk-room-list .pk-room-grid-1v1 .pk-room-card.fighting {
  opacity: 0.6;
  border-color: #ef4444;
}
.pk-room-list .pk-room-grid-1v1 .pk-room-card.full {
  opacity: 0.5;
}
.pk-room-list .pk-room-grid-1v1 .pk-room-card .pk-room-name {
  font-size: 14px;
  font-weight: bold;
  color: #e88c3a;
  margin-bottom: 8px;
}
.pk-room-list .pk-room-grid-1v1 .pk-room-card .pk-room-players {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.pk-room-list .pk-room-grid-1v1 .pk-room-card .pk-room-players .pk-room-player {
  flex: 1;
  text-align: center;
  padding: 6px;
  border-radius: 8px;
  font-size: 12px;
}
.pk-room-list .pk-room-grid-1v1 .pk-room-card .pk-room-players .pk-room-player.red {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
}
.pk-room-list .pk-room-grid-1v1 .pk-room-card .pk-room-players .pk-room-player.blue {
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
}
.pk-room-list .pk-room-grid-1v1 .pk-room-card .pk-room-players .pk-room-player.empty {
  color: #94a3b8;
}
.pk-room-list .pk-room-grid-1v1 .pk-room-card .pk-room-players .pk-vs-mini {
  font-weight: bold;
  color: #e88c3a;
  font-size: 13px;
  flex-shrink: 0;
}
.pk-room-list .pk-room-grid-1v1 .pk-room-card .pk-room-status {
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 8px;
  text-align: center;
}
.pk-room-list .pk-room-grid-1v1 .pk-room-card .pk-room-join-btns {
  display: flex;
  gap: 8px;
}
.pk-room-list .pk-room-grid-1v1 .pk-room-card .pk-room-join-btns .pk-join-btn {
  flex: 1;
  padding: 8px;
  border: none;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
}
.pk-room-list .pk-room-grid-1v1 .pk-room-card .pk-room-join-btns .pk-join-btn.red {
  background: #ef4444;
  color: white;
}
.pk-room-list .pk-room-grid-1v1 .pk-room-card .pk-room-join-btns .pk-join-btn.blue {
  background: #3b82f6;
  color: white;
}
.pk-room-list .pk-room-grid-1v1 .pk-room-card .pk-room-join-btns .pk-join-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.pk-room-list .pk-room-grid-1v1 .empty-tip {
  text-align: center;
  padding: 24px;
  color: #94a3b8;
}
.pk-tips {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  padding: 10px;
  font-size: 11px;
  color: #94a3b8;
}
.pk-tips p {
  margin: 3px 0;
}
.pk-room-header {
  text-align: center;
  font-size: 16px;
  font-weight: bold;
  color: #e88c3a;
  padding: 10px;
  background: #1e293b;
  border-radius: 12px;
  margin-bottom: 12px;
}
.pk-teams {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.pk-teams .pk-team {
  flex: 1;
  background: #1e293b;
  border-radius: 12px;
  padding: 10px;
  border: 1px solid #334155;
}
.pk-teams .pk-team.red {
  border-left: 3px solid #ef4444;
}
.pk-teams .pk-team.blue {
  border-left: 3px solid #3b82f6;
}
.pk-teams .pk-team .pk-team-title {
  font-size: 13px;
  font-weight: bold;
  margin-bottom: 8px;
}
.pk-teams .pk-vs {
  font-size: 18px;
  font-weight: bold;
  color: #e88c3a;
  flex-shrink: 0;
}
.pk-member {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  margin-bottom: 4px;
}
.pk-member.is-me {
  border: 1px solid #e88c3a;
}
.pk-member.empty {
  opacity: 0.5;
}
.pk-member .pk-ready {
  font-size: 12px;
}
.pk-member .pk-ready.ready {
  color: #10b981;
}
.pk-room-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.pk-room-actions button {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 12px;
  font-weight: bold;
  cursor: pointer;
}
.pk-room-actions button.pk-ready-btn {
  background: #10b981;
  color: white;
}
.pk-room-actions button.pk-leave-btn {
  background: #ef4444;
  color: white;
}
.pk-room-actions .pk-ready-done {
  flex: 1;
  text-align: center;
  padding: 10px;
  color: #10b981;
  font-weight: bold;
}
.pk-bet-section {
  background: #1e293b;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
  border: 1px solid #334155;
  text-align: center;
}
.pk-bet-section.locked {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.1);
}
.pk-bet-section.waiting {
  border-color: #334155;
}
.pk-bet-section .pk-bet-title {
  font-size: 14px;
  font-weight: bold;
  color: #e88c3a;
  margin-bottom: 10px;
}
.pk-bet-section .pk-bet-inputs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}
.pk-bet-section .pk-bet-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.pk-bet-section .pk-bet-row input {
  flex: 1;
  padding: 8px 10px;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 8px;
  color: #e2e8f0;
  font-size: 14px;
  text-align: center;
}
.pk-bet-section .pk-bet-row input:focus {
  border-color: #e88c3a;
  outline: none;
}
.pk-bet-section .pk-bet-row .pk-bet-balance {
  font-size: 11px;
  color: #94a3b8;
  flex-shrink: 0;
}
.pk-bet-section .pk-bet-display {
  display: flex;
  justify-content: center;
  gap: 16px;
  font-size: 18px;
  font-weight: bold;
  color: #e88c3a;
  margin-bottom: 8px;
}
.pk-bet-section .pk-bet-info {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 4px;
}
.pk-bet-section .pk-bet-waiting {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 8px;
}
.pk-bet-section .pk-bet-tip {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 8px;
}
.pk-bet-section .pk-bet-confirm-btn {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(90deg, #e88c3a, #d97706);
  color: #1a1a2e;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
}
.pk-bet-section .pk-bet-buttons {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.pk-bet-section .pk-bet-buttons button {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 12px;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
}
.pk-bet-section .pk-bet-buttons .pk-bet-reject-btn {
  background: #334155;
  color: #e2e8f0;
}
.pk-bet-section .pk-bet-buttons .pk-bet-accept-btn {
  background: linear-gradient(90deg, #10b981, #059669);
  color: white;
}
.pk-room-chat {
  margin-top: 14px;
  background: #1e293b;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #334155;
}
.pk-room-chat .pk-chat-messages {
  height: 120px;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pk-room-chat .pk-chat-messages .pk-chat-placeholder {
  text-align: center;
  color: #94a3b8;
  font-size: 11px;
  padding: 20px;
}
.pk-room-chat .pk-chat-msg {
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 11px;
  max-width: 85%;
}
.pk-room-chat .pk-chat-msg.me {
  align-self: flex-end;
  background: rgba(59, 130, 246, 0.2);
}
.pk-room-chat .pk-chat-msg.other {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.05);
}
.pk-room-chat .pk-chat-msg .pk-chat-sender {
  font-size: 9px;
  color: #e88c3a;
  margin-right: 6px;
}
.pk-room-chat .pk-chat-msg .pk-chat-text {
  color: #e2e8f0;
}
.pk-room-chat .pk-chat-msg .pk-chat-time {
  font-size: 8px;
  color: #94a3b8;
  margin-left: 6px;
  float: right;
}
.pk-room-chat .pk-chat-input-row {
  display: flex;
  padding: 6px;
  border-top: 1px solid #334155;
}
.pk-room-chat .pk-chat-input-row .pk-chat-input {
  flex: 1;
  padding: 6px 10px;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 12px;
  color: #e2e8f0;
  font-size: 11px;
  outline: none;
}
.pk-room-chat .pk-chat-input-row .pk-chat-input:focus {
  border-color: #e88c3a;
}
.pk-room-chat .pk-chat-input-row .pk-chat-send {
  margin-left: 6px;
  padding: 6px 14px;
  background: #e88c3a;
  border: none;
  border-radius: 12px;
  color: #1a1a2e;
  font-size: 11px;
  font-weight: bold;
  cursor: pointer;
}
.pk-bet-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20000;
}
.pk-bet-modal .pk-bet-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
}
.pk-bet-modal .pk-bet-content {
  position: relative;
  width: 320px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 2px solid #e88c3a;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}
.pk-bet-modal .pk-bet-title {
  font-size: 18px;
  font-weight: bold;
  color: #e88c3a;
  margin-bottom: 16px;
}
.pk-bet-modal .pk-bet-info {
  margin-bottom: 12px;
}
.pk-bet-modal .pk-bet-info p {
  margin: 4px 0;
  font-size: 14px;
}
.pk-bet-modal .pk-bet-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 14px;
}
.pk-bet-modal .pk-bet-row input {
  width: 80px;
  padding: 8px;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 8px;
  color: #e2e8f0;
  text-align: center;
}
.pk-bet-modal .pk-bet-tip {
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 16px;
}
.pk-bet-modal .pk-bet-buttons {
  display: flex;
  gap: 10px;
}
.pk-bet-modal .pk-bet-buttons button {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 12px;
  font-weight: bold;
  cursor: pointer;
}
.pk-bet-modal .pk-bet-buttons #betCancel {
  background: #334155;
  color: #e2e8f0;
}
.pk-bet-modal .pk-bet-buttons #betConfirm {
  background: linear-gradient(90deg, #e88c3a, #d97706);
  color: #1a1a2e;
}
.pk-battle-container {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pk-battle-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #1e293b;
  border-radius: 12px;
}
.pk-battle-header .pk-battle-leave {
  padding: 6px 14px;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid #ef4444;
  border-radius: 12px;
  color: #ef4444;
  font-size: 12px;
  cursor: pointer;
}
.pk-battle-header .pk-battle-round {
  font-weight: bold;
  color: #e88c3a;
}
.pk-battle-header .pk-turn-timer {
  font-weight: bold;
  color: #e88c3a;
}
.pk-players-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.pk-players-row .pk-team-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pk-players-row .pk-team-label {
  text-align: center;
  font-size: 13px;
  font-weight: bold;
  padding: 4px;
}
.pk-players-row .pk-vs-divider {
  font-size: 20px;
  align-self: center;
  color: #e88c3a;
  flex-shrink: 0;
}
.pk-player-card {
  background: #1e293b;
  border-radius: 10px;
  padding: 8px;
  border: 1px solid #334155;
  text-align: center;
}
.pk-player-card.red {
  border-color: #ef4444;
}
.pk-player-card.blue {
  border-color: #3b82f6;
}
.pk-player-card.me {
  border-color: #e88c3a;
  box-shadow: 0 0 6px rgba(232, 140, 58, 0.3);
}
.pk-player-card.dead {
  opacity: 0.5;
}
.pk-player-card .pk-player-name {
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 4px;
}
.pk-player-card .pk-player-hp-bar {
  height: 10px;
  background: #1a1a2e;
  border-radius: 5px;
  position: relative;
  overflow: hidden;
  margin: 4px 0;
}
.pk-player-card .pk-player-hp-bar .pk-player-hp-fill {
  height: 100%;
  background: linear-gradient(90deg, #ef4444, #f87171);
  border-radius: 5px;
  transition: width 0.3s;
}
.pk-player-card .pk-player-hp-bar span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 8px;
  color: white;
  text-shadow: 0 0 2px black;
}
.pk-player-card .pk-player-mp {
  font-size: 10px;
  color: #3b82f6;
}
.pk-player-card .pk-player-shield {
  font-size: 10px;
  color: #34d399;
  margin-top: 2px;
}
.pk-player-card .pk-player-stun {
  font-size: 10px;
  color: #e88c3a;
  margin-top: 2px;
  animation: pulse 1s infinite;
}
.pk-buffs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 4px;
  justify-content: center;
}
.pk-buffs-row .pk-buff-tag,
.pk-buffs-row .pk-debuff-tag {
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 10px;
  line-height: 1.3;
}
.pk-buffs-row .pk-buff-tag {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid #34d399;
}
.pk-buffs-row .pk-debuff-tag {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid #f87171;
}
.pk-battle-hand {
  background: #1e293b;
  border-radius: 12px;
  padding: 10px;
}
.pk-battle-hand .pk-hand-title {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 8px;
}
.pk-battle-hand .pk-hand-cards {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 8px !important;
  overflow-y: auto !important;
  max-height: 220px !important;
  padding: 4px !important;
}
.pk-battle-hand .pk-hand-cards::-webkit-scrollbar {
  width: 3px;
}
.pk-battle-hand .pk-hand-cards::-webkit-scrollbar-thumb {
  background: #e88c3a;
  border-radius: 3px;
}
.pk-battle-hand .pk-hand-cards .pk-card {
  width: 100%;
  min-height: 95px;
  border-radius: 10px;
  padding: 8px 6px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3px;
  position: relative;
}
.pk-battle-hand .pk-hand-cards .pk-card:hover:not(.disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.pk-battle-hand .pk-hand-cards .pk-card.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(30%);
}
.pk-battle-hand .pk-hand-cards .pk-card.random {
  border-style: dashed;
}
.pk-battle-hand .pk-hand-cards .pk-card .pk-card-type {
  font-size: 9px;
  font-weight: bold;
}
.pk-battle-hand .pk-hand-cards .pk-card .pk-card-name {
  font-size: 12px;
  font-weight: bold;
  color: #e2e8f0;
}
.pk-battle-hand .pk-hand-cards .pk-card .pk-card-cost {
  font-size: 10px;
  color: #e88c3a;
}
.pk-battle-hand .pk-hand-cards .pk-card .pk-card-desc {
  font-size: 8px;
  color: #94a3b8;
  line-height: 1.2;
}
.pk-battle-hand .pk-hand-cards .pk-card .pk-card-random {
  position: absolute;
  top: 3px;
  right: 5px;
  font-size: 12px;
}
.pk-battle-hand .pk-no-cards {
  text-align: center;
  padding: 16px;
  color: #94a3b8;
}
.pk-battle-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #1e293b;
  border-radius: 12px;
}
.pk-battle-actions .pk-end-turn {
  padding: 8px 20px;
  background: #e88c3a;
  border: none;
  border-radius: 12px;
  color: #1a1a2e;
  font-weight: bold;
  cursor: pointer;
}
.pk-battle-actions .pk-end-turn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.pk-battle-logs {
  flex: 1;
  background: #1e293b;
  border-radius: 12px;
  padding: 8px;
  overflow-y: auto;
  min-height: 80px;
  max-height: 150px;
}
.pk-battle-logs .pk-log {
  font-size: 10px;
  padding: 2px 0;
  color: #94a3b8;
  border-bottom: 1px solid rgba(51, 65, 85, 0.3);
}
.pk-result-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 30000;
}
.pk-result-modal .pk-result-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
}
.pk-result-modal .pk-result-content {
  position: relative;
  width: 280px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 2px solid #e88c3a;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}
.pk-result-modal .pk-result-icon {
  font-size: 56px;
  margin-bottom: 8px;
}
.pk-result-modal .pk-result-title {
  font-size: 22px;
  font-weight: bold;
  color: #e88c3a;
  margin-bottom: 8px;
}
.pk-result-modal .pk-result-desc {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 20px;
}
.pk-result-modal .pk-result-btn {
  width: 100%;
  padding: 10px;
  background: linear-gradient(90deg, #e88c3a, #d97706);
  border: none;
  border-radius: 12px;
  color: #1a1a2e;
  font-weight: bold;
  cursor: pointer;
  font-size: 14px;
}
/* ========== PK 战斗特效 ========== */
/* 飘字特效 */
.pk-floating-text {
  position: fixed;
  font-size: 20px;
  font-weight: bold;
  pointer-events: none;
  z-index: 10000;
  animation: pk-float-up 1s ease-out forwards;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}
.pk-floating-orange {
  color: #f97316;
}
.pk-floating-purple {
  color: #a855f7;
}
.pk-floating-cyan {
  color: #06b6d4;
}
.pk-floating-red {
  color: #ef4444;
}
.pk-floating-green {
  color: #10b981;
}
.pk-floating-yellow {
  color: #e88c3a;
}
.pk-floating-blue {
  color: #60a5fa;
}
@keyframes pk-float-up {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-60px) scale(1.5);
  }
}
/* 目标闪光 */
.pk-flash-damage {
  animation: pk-flash-red 0.2s ease-in-out 3;
}
.pk-flash-heal {
  animation: pk-flash-green 0.2s ease-in-out 3;
}
@keyframes pk-flash-red {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.5) drop-shadow(0 0 10px #ef4444);
  }
}
@keyframes pk-flash-green {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.5) drop-shadow(0 0 10px #10b981);
  }
}
/* 暴击特效 */
.pk-crit-effect {
  position: fixed;
  font-size: 28px;
  font-weight: bold;
  color: #ef4444;
  text-shadow: 0 0 10px #ff0000;
  pointer-events: none;
  z-index: 10001;
  animation: pk-crit-pop 0.6s ease-out forwards;
}
@keyframes pk-crit-pop {
  0% {
    opacity: 1;
    transform: scale(0.5);
  }
  50% {
    opacity: 1;
    transform: scale(1.5);
  }
  100% {
    opacity: 0;
    transform: scale(2);
  }
}
/* 治疗特效 */
.pk-heal-effect {
  position: fixed;
  font-size: 22px;
  font-weight: bold;
  color: #10b981;
  text-shadow: 0 0 5px #00ff00;
  pointer-events: none;
  z-index: 10001;
  animation: pk-heal-pop 0.6s ease-out forwards;
}
@keyframes pk-heal-pop {
  0% {
    opacity: 1;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.3);
  }
  100% {
    opacity: 0;
    transform: scale(1.5);
  }
}
/* 卡牌释放特效 */
.pk-card-play-effect {
  animation: pk-card-shake 0.2s ease-in-out;
}
@keyframes pk-card-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}
/* 受击特效 */
.pk-hit {
  animation: pk-hit-shake 0.2s ease-in-out;
}
@keyframes pk-hit-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-3px);
  }
  75% {
    transform: translateX(3px);
  }
}
/* 屏幕震动 */
@keyframes pk-screen-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-4px);
  }
  75% {
    transform: translateX(4px);
  }
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}
@media (max-width: 480px) {
  .pk-card {
    width: 90px;
    min-height: 90px;
    padding: 6px 4px;
  }
  .pk-player-card {
    padding: 6px;
  }
}
/* 断线倒计时弹窗 */
.pk-disconnect-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100010;
}
.pk-disconnect-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
}
.pk-disconnect-content {
  position: relative;
  width: 300px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 2px solid #f59e0b;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  animation: slideIn 0.3s ease-out;
}
.pk-disconnect-icon {
  font-size: 48px;
  margin-bottom: 12px;
}
.pk-disconnect-title {
  font-size: 20px;
  font-weight: bold;
  color: #f59e0b;
  margin-bottom: 12px;
}
.pk-disconnect-message {
  font-size: 14px;
  color: #d9a36a;
  margin-bottom: 16px;
}
.pk-disconnect-countdown {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 12px;
}
.pk-disconnect-progress {
  height: 6px;
  background: #334155;
  border-radius: 3px;
  overflow: hidden;
}
.pk-disconnect-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #ef4444);
  border-radius: 3px;
  transition: width 1s linear;
}
@keyframes slideIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
/**
 * ==================== talent.less ====================
 * 天赋模块样式（独立容器版）
 * 最后更新：2026-05-11
 */
.talent-module {
  background: var(--bg-primary);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: -webkit-fill-available;
  overflow: hidden;
}
.talent-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}
.talent-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--grad-card);
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
  position: relative;
  background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 3px, rgba(0, 0, 0, 0.04) 3px 4px, transparent 4px 6px);
  justify-content: center;
}
.talent-header-bar h2 {
  font-size: 16px;
  font-weight: bold;
  color: var(--accent-bright);
  margin: 0;
  letter-spacing: 0.15em;
  padding: 4px 16px;
  position: relative;
  background: linear-gradient(90deg, rgba(62, 124, 140, 0.18), transparent 70%);
  border-left: 2px solid var(--accent-primary);
  text-shadow: 0 0 10px var(--accent-glow);
}
.talent-back-btn {
  display: block;
  width: calc(100% - 32px);
  margin: 10px 16px;
  text-align: center;
  padding: 10px 0;
  border: none;
  border-radius: 10px;
  background: #4b5563;
  color: #e5e7eb;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.talent-back-btn:hover {
  background: #6b7280;
}
.talent-back-btn:active {
  transform: scale(0.98);
}
.talent-points-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}
.talent-points-bar .talent-points-label {
  font-size: 13px;
  color: var(--text-muted);
}
.talent-points-bar .talent-points-value {
  font-size: 18px;
  font-weight: bold;
  color: #e88c3a;
  margin-left: 6px;
  flex: 1;
}
.talent-points-bar .talent-reset-btn {
  padding: 6px 14px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 12px;
  color: #f87171;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.talent-points-bar .talent-reset-btn:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.3);
  transform: scale(1.02);
}
.talent-points-bar .talent-reset-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.talent-tabs {
  display: flex;
  padding: 12px 16px;
  gap: 10px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}
.talent-tabs .talent-tab {
  flex: 1;
  padding: 8px 12px;
  text-align: center;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.talent-tabs .talent-tab:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent-primary);
}
.talent-tabs .talent-tab.active {
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  color: var(--bg-primary);
  border-color: transparent;
  font-weight: bold;
}
.talent-tabs .talent-tab .tab-count {
  font-size: 11px;
  opacity: 0.8;
}
.talent-tree-container {
  flex: 1;
  overflow: auto;
  padding: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.talent-tree-container::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
  background: transparent;
}
.talent-tree-container .talent-tree-wrapper {
  position: relative;
  flex-shrink: 0;
}
.talent-node {
  position: absolute;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: default;
  transition: all 0.2s ease;
  z-index: 2;
  background: rgba(255, 255, 255, 0.03);
  color: #555;
}
.talent-node.milestone {
  border-radius: 12px;
}
.talent-node.unlocked {
  border-color: var(--tree-color-light, #fff);
  color: #fff;
  box-shadow: 0 0 14px var(--tree-glow, rgba(255, 255, 255, 0.3));
}
.talent-node.can-learn {
  border-color: var(--tree-color, #e88c3a);
  border-style: dashed;
  color: var(--tree-color-light, #fff);
  cursor: pointer;
  animation: talentPulse 1.8s ease-in-out infinite;
  background: rgba(255, 255, 255, 0.08);
}
.talent-node.can-learn:hover {
  transform: scale(1.1);
  z-index: 10;
  border-style: solid;
}
.talent-node.can-learn:active {
  transform: scale(0.95);
}
.talent-node.locked-milestone {
  cursor: pointer;
  opacity: 0.7;
  border-color: rgba(255, 255, 255, 0.15);
}
.talent-node.locked-milestone:hover {
  opacity: 1;
  border-color: #f59e0b;
}
.talent-node .node-icon {
  font-size: 20px;
  line-height: 1;
  pointer-events: none;
}
.talent-node .node-point {
  font-size: 10px;
  font-weight: bold;
  line-height: 1;
  pointer-events: none;
  opacity: 0.7;
}
.talent-node .node-lock {
  font-size: 18px;
  line-height: 1;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.talent-node.unlocked .node-point,
.talent-node.can-learn .node-point {
  opacity: 1;
}
.node-tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  padding: 8px 12px;
  min-width: 160px;
  max-width: 220px;
  white-space: normal;
  text-align: center;
  z-index: 20;
  pointer-events: none;
  font-size: 11px;
  color: #e2e8f0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}
.node-tooltip .tooltip-name {
  font-weight: bold;
  font-size: 13px;
  margin-bottom: 2px;
}
.node-tooltip .tooltip-sub {
  color: #9ca3af;
  font-size: 10px;
  margin-bottom: 4px;
}
.node-tooltip .tooltip-milestone {
  color: #e88c3a;
  font-weight: bold;
  font-size: 10px;
}
.node-tooltip .tooltip-unlocked {
  color: #10b981;
  font-size: 10px;
}
.node-tooltip .tooltip-canlearn {
  color: #f59e0b;
  font-size: 10px;
}
.node-tooltip .tooltip-locked {
  color: #555;
  font-size: 10px;
}
.node-tooltip .tooltip-locked-milestone {
  color: #ef4444;
  font-size: 10px;
}
.node-tooltip .tooltip-condition {
  color: #f59e0b;
  font-size: 10px;
  margin-top: 4px;
}
.talent-node:hover .node-tooltip {
  display: block;
}
.talent-tips {
  text-align: center;
  padding: 10px 16px;
  font-size: 11px;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.2);
}
.talent-reset-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 21000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.talent-reset-mask {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
}
.talent-reset-dialog {
  position: relative;
  width: 280px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 2px solid #e88c3a;
  border-radius: 12px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
}
.talent-reset-dialog .talent-reset-icon {
  font-size: 48px;
  margin-bottom: 8px;
}
.talent-reset-dialog .talent-reset-title {
  font-size: 18px;
  font-weight: bold;
  color: #e88c3a;
  margin-bottom: 16px;
}
.talent-reset-dialog .talent-reset-body {
  font-size: 13px;
  color: #d9a36a;
  margin-bottom: 20px;
  line-height: 1.6;
}
.talent-reset-dialog .talent-reset-cost {
  color: #f59e0b;
  font-size: 15px;
  margin-top: 8px;
}
.talent-reset-dialog .talent-reset-cost strong {
  font-size: 20px;
}
.talent-reset-dialog .talent-reset-buttons {
  display: flex;
  gap: 12px;
}
.talent-reset-dialog .talent-reset-cancel {
  flex: 1;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  font-size: 14px;
  cursor: pointer;
}
.talent-reset-dialog .talent-reset-confirm {
  flex: 1;
  padding: 10px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(90deg, #ef4444, #f59e0b);
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
}
@keyframes talentPulse {
  0%,
  100% {
    box-shadow: 0 0 6px var(--tree-glow, rgba(255, 255, 255, 0.15));
  }
  50% {
    box-shadow: 0 0 20px var(--tree-glow, rgba(255, 255, 255, 0.45));
  }
}
/**
 * ==================== enhance.less ====================
 * 强化模块样式（独立容器版）
 * 最后更新：2026-05-11
 */
.enhance-module {
  background: var(--bg-primary);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: -webkit-fill-available;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.enhance-container {
  display: flex;
  flex-direction: column;
}
.enhance-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--grad-card);
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
  position: relative;
  background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 3px, rgba(0, 0, 0, 0.04) 3px 4px, transparent 4px 6px);
  justify-content: center;
}
.enhance-header-bar h2 {
  font-size: 16px;
  font-weight: bold;
  color: var(--accent-bright);
  margin: 0;
  letter-spacing: 0.15em;
  padding: 4px 16px;
  position: relative;
  background: linear-gradient(90deg, rgba(62, 124, 140, 0.18), transparent 70%);
  border-left: 2px solid var(--accent-primary);
  text-shadow: 0 0 10px var(--accent-glow);
}
.enhance-back-btn {
  display: block;
  width: calc(100% - 32px);
  margin: 10px 16px;
  text-align: center;
  padding: 10px 0;
  border: none;
  border-radius: 10px;
  background: #4b5563;
  color: #e5e7eb;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.enhance-back-btn:hover {
  background: #6b7280;
}
.enhance-back-btn:active {
  transform: scale(0.98);
}
.enhance-tabs {
  display: flex;
  padding: 2px;
  gap: 2px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}
.enhance-tabs .enhance-tab {
  flex: 1;
  padding: 8px 12px;
  text-align: center;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}
.enhance-tabs .enhance-tab:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent-primary);
}
.enhance-tabs .enhance-tab.active {
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  color: var(--bg-primary);
  border-color: transparent;
  font-weight: bold;
}
.enhance-equip-section {
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.enhance-equip-section .section-title {
  padding: 4px;
  font-size: 10px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.enhance-equip-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  padding: 5px;
}
.enhance-equip-card {
  min-width: 60px;
  width: 100%;
  box-sizing: border-box;
  padding: 5px;
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.enhance-equip-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}
.enhance-equip-card.quality-rainbow:hover {
  background: rgba(0, 0, 0, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 0 10px rgba(255, 107, 255, 0.45);
}
.enhance-equip-card.selected {
  border-color: #facc15 !important;
  background: rgba(232, 140, 58, 0.08);
  box-shadow: 0 0 12px rgba(232, 140, 58, 0.15);
}
.enhance-equip-card.empty-slot {
  opacity: 0.5;
  cursor: default;
  border-style: dashed;
}
.enhance-equip-card.empty-slot:hover {
  background: rgba(255, 255, 255, 0.03);
  transform: none;
}
.enhance-equip-card:not(.empty-slot).quality-gray {
  border-color: #808080;
}
.enhance-equip-card:not(.empty-slot).quality-white {
  border-color: #f5f5f5;
}
.enhance-equip-card:not(.empty-slot).quality-green {
  border-color: #4ade80;
}
.enhance-equip-card:not(.empty-slot).quality-blue {
  border-color: #60a5fa;
}
.enhance-equip-card:not(.empty-slot).quality-purple {
  border-color: #c084fc;
}
.enhance-equip-card:not(.empty-slot).quality-orange {
  border-color: #fb923c;
}
.enhance-equip-card:not(.empty-slot).quality-red {
  border-color: #ef4444;
}
.enhance-equip-card:not(.empty-slot).quality-rainbow {
  position: relative;
  border-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 0 10px rgba(255, 107, 255, 0.45);
}
.enhance-equip-card:not(.empty-slot).quality-rainbow::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}
.enhance-equip-card:not(.empty-slot).quality-rainbow .equip-card-name {
  background: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent !important;
}
.enhance-equip-card .equip-card-icon {
  font-size: 16px;
  display: block;
  margin-bottom: 2px;
}
.enhance-equip-card .equip-card-slot-label {
  font-size: 9px;
  color: #6b7280;
}
.enhance-equip-card .equip-card-name {
  font-size: 10px;
  font-weight: bold;
  margin: 2px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.enhance-equip-card .equip-card-flags {
  font-size: 10px;
  margin-top: 2px;
}
.enhance-action-area {
  padding: 16px;
}
.enhance-hint {
  text-align: center;
  padding: 60px 20px;
  color: #6b7280;
  font-size: 14px;
}
.enhance-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: rgba(232, 140, 58, 0.06);
  border: 1px solid rgba(232, 140, 58, 0.15);
  border-radius: 10px;
  margin-bottom: 16px;
}
.enhance-detail .enhance-detail-name {
  font-size: 14px;
  font-weight: bold;
  color: #facc15;
}
.enhance-detail .enhance-detail-flags {
  font-size: 14px;
}
.enhance-panel .panel-title {
  font-size: 16px;
  font-weight: bold;
  color: #facc15;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.enhance-panel .panel-info {
  color: #9ca3af;
  font-size: 13px;
  margin-bottom: 8px;
}
.enhance-panel .panel-warn {
  color: #ef4444;
  font-size: 11px;
  padding: 8px 12px;
  background: rgba(239, 68, 68, 0.1);
  border-radius: 8px;
}
.enhance-panel .panel-tip {
  color: #6b7280;
  font-size: 11px;
  margin-top: 8px;
}
.scroll-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.scroll-item {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px;
}
.scroll-item .scroll-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.scroll-item .scroll-icon {
  font-size: 24px;
}
.scroll-item .scroll-name {
  font-size: 14px;
  font-weight: bold;
  color: #e2e8f0;
}
.scroll-item .scroll-count {
  margin-left: auto;
  font-size: 11px;
  color: #9ca3af;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 10px;
  border-radius: 10px;
}
.scroll-item .scroll-effect {
  font-size: 11px;
  color: #10b981;
  margin-bottom: 8px;
}
.scroll-item .scroll-mats {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 8px;
}
.scroll-item .mat-tag {
  font-size: 10px;
  color: #9ca3af;
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 8px;
  border-radius: 6px;
}
.scroll-item .enchant-btn {
  width: 100%;
  padding: 8px;
  background: linear-gradient(90deg, #f59e0b, #facc15);
  border: none;
  border-radius: 12px;
  color: #1f2937;
  font-weight: bold;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.scroll-item .enchant-btn:hover {
  opacity: 0.9;
  transform: scale(1.02);
}
.socket-display {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.socket-slot {
  width: 70px;
  min-height: 70px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 11px;
  text-align: center;
  padding: 8px;
}
.socket-slot.filled {
  background: rgba(232, 140, 58, 0.08);
  border: 2px solid #facc15;
}
.socket-slot.empty-socket {
  background: rgba(255, 255, 255, 0.03);
  border: 2px dashed rgba(255, 255, 255, 0.2);
  color: #6b7280;
}
.socket-slot.empty-socket.clickable {
  cursor: pointer;
}
.socket-slot.empty-socket.clickable:hover {
  border-color: #facc15;
  background: rgba(232, 140, 58, 0.05);
}
.socket-slot.locked {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #555;
}
.socket-slot .socket-gem-icon {
  font-size: 24px;
}
.socket-slot .socket-gem-name {
  font-size: 9px;
  color: #9ca3af;
}
.socket-slot .socket-remove-btn {
  margin-top: 4px;
  padding: 2px 8px;
  font-size: 9px;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid #ef4444;
  border-radius: 10px;
  color: #ef4444;
  cursor: pointer;
}
.socket-slot .socket-remove-btn:hover {
  background: rgba(239, 68, 68, 0.4);
}
.enhance-gem-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 21000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.enhance-gem-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
}
.enhance-gem-dialog {
  position: relative;
  width: 300px;
  max-width: 90%;
  max-height: 60vh;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 2px solid #facc15;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.enhance-gem-header {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.enhance-gem-header .enhance-gem-title {
  font-size: 16px;
  font-weight: bold;
  color: #facc15;
  flex: 1;
}
.enhance-gem-header .enhance-gem-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #e2e8f0;
  font-size: 18px;
  cursor: pointer;
}
.enhance-gem-header .enhance-gem-close:hover {
  background: #ef4444;
}
.enhance-gem-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.enhance-gem-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.enhance-gem-item:hover {
  background: rgba(232, 140, 58, 0.06);
  border-color: #facc15;
}
.enhance-gem-item .gem-item-icon {
  font-size: 28px;
  flex-shrink: 0;
}
.enhance-gem-item .gem-item-info {
  flex: 1;
}
.enhance-gem-item .gem-item-name {
  font-size: 14px;
  font-weight: bold;
}
.enhance-gem-item .gem-item-effect {
  font-size: 10px;
  color: #10b981;
}
.enhance-gem-item .gem-item-count {
  font-size: 14px;
  font-weight: bold;
  color: #9ca3af;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 10px;
  border-radius: 12px;
  flex-shrink: 0;
}
.affix-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.affix-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
}
.affix-item .affix-text {
  font-size: 13px;
  color: #10b981;
  font-weight: bold;
}
.affix-item .lock-label {
  font-size: 11px;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.affix-item .lock-label input {
  accent-color: #facc15;
}
.affix-empty {
  color: #6b7280;
  padding: 16px;
  text-align: center;
  font-size: 13px;
}
.refine-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  color: #9ca3af;
  margin: 16px 0;
}
.refine-btn {
  width: 100%;
  padding: 10px;
  background: linear-gradient(90deg, #f59e0b, #facc15);
  border: none;
  border-radius: 12px;
  color: #1f2937;
  font-weight: bold;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}
.refine-btn:hover {
  opacity: 0.9;
  transform: scale(1.02);
}
.punch-btn {
  width: 100%;
  padding: 10px;
  background: linear-gradient(90deg, #3b82f6, #2563eb);
  border: none;
  border-radius: 12px;
  color: white;
  font-weight: bold;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}
.punch-btn:hover {
  opacity: 0.9;
  transform: scale(1.02);
}
/**
 * ==================== shop.less ====================
 * 商城模块
 * 最后更新：2026-05-11
 * 
 * 使用的 base.less 组件：
 * - 按钮：.btn-primary, .btn-success, .btn-danger
 * - 卡片：.card, .card-simple
 * - 进度条：.progress-container
 * - 弹窗：.modal-overlay, .modal-content
 * - 滚动条：.hide-scrollbar() 混入
 * 
 * 覆盖的 base.less 组件：
 * - 无
 * 
 * 模块特有样式：
 * - 商城模块主容器
 * - 头部
 * - 功勋信息栏
 * - 限时热卖区域
 * - 分类标签
 * - 商品网格
 * - 商品卡片
 * - 广告区域
 * - 分页
 */
.shop-module {
  background: var(--bg-primary);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: -webkit-fill-available;
  overflow: hidden;
  border-top: 2px solid var(--accent-primary);
  background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 3px, rgba(0, 0, 0, 0.03) 3px 4px, transparent 4px 6px);
}
.shop-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}
.shop-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--grad-card);
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
  position: relative;
  background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 3px, rgba(0, 0, 0, 0.04) 3px 4px, transparent 4px 6px);
  justify-content: center;
}
.shop-header-bar h2 {
  font-size: 18px;
  font-weight: bold;
  color: var(--accent-bright);
  margin: 0;
  letter-spacing: 0.15em;
  padding: 4px 16px;
  position: relative;
  background: linear-gradient(90deg, rgba(62, 124, 140, 0.18), transparent 70%);
  border-left: 2px solid var(--accent-primary);
  text-shadow: 0 0 10px var(--accent-glow);
}
.shop-back-btn {
  display: block;
  width: calc(100% - 32px);
  margin: 10px 16px;
  text-align: center;
  padding: 10px 0;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #5d697a, #4b5563, #353c46);
  color: #e5e7eb;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.shop-back-btn:hover {
  background: #6b7280;
}
.shop-back-btn:active {
  transform: scale(0.98);
}
.shop-content {
  flex: 1;
  overflow-y: auto;
  padding: 2px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.shop-content::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
  background: transparent;
}
.shop-header {
  margin-bottom: 16px;
}
.shop-header .destiny-info {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 5px;
  font-size: 12px;
  background: var(--grad-jade);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--accent-primary);
  position: relative;
}
.shop-header .destiny-info::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.3;
  background: linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 2px 6px, /* 右上 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 2px 6px, /* 左下 */ linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 2px 6px, /* 右下 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 2px 6px;
  background-repeat: no-repeat;
}
.shop-header .destiny-info .destiny-icon {
  font-size: 18px;
}
.shop-header .destiny-info .destiny-label {
  font-size: 12px;
  color: var(--text-muted);
}
.shop-header .destiny-info .destiny-value {
  font-size: 12px;
  font-weight: bold;
  color: #e88c3a;
  font-variant-numeric: tabular-nums;
}
.shop-header .destiny-info .refresh-btn {
  margin-left: auto;
  padding: 4px 8px;
  background: #22323a;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 10px;
  cursor: pointer;
  transition: all 0.2s;
}
.shop-header .destiny-info .refresh-btn:hover {
  background: #2c4048;
  color: var(--text-primary);
}
.shop-header .destiny-info .refresh-btn:active {
  transform: scale(0.96);
}
.hot-sell-section {
  margin-bottom: 20px;
}
.hot-sell-section .section-title {
  font-size: 14px;
  font-weight: bold;
  color: #e88c3a;
  margin-bottom: 12px;
  padding: 4px 10px;
  border-left: 3px solid #e88c3a;
  background: linear-gradient(90deg, rgba(62, 124, 140, 0.15), transparent 70%);
  letter-spacing: 0.15em;
}
.hot-sell-section .hot-items {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.hot-sell-section .hot-items::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
  background: transparent;
}
.hot-sell-section .hot-items .hot-item {
  min-width: 100px;
  background: linear-gradient(135deg, rgba(62, 124, 140, 0.12), rgba(0, 0, 0, 0.3));
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  border: 1px solid rgba(62, 124, 140, 0.3);
  position: relative;
  background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 3px, rgba(0, 0, 0, 0.02) 3px 4px, transparent 4px 6px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.hot-sell-section .hot-items .hot-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.3;
  background: linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 5px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 2px 5px, /* 右上 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 5px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 2px 5px, /* 左下 */ linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 5px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 2px 5px, /* 右下 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 5px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 2px 5px;
  background-repeat: no-repeat;
}
.hot-sell-section .hot-items .hot-item .hot-icon {
  font-size: 40px;
  margin-bottom: 8px;
}
.hot-sell-section .hot-items .hot-item .hot-name {
  font-size: 12px;
  font-weight: bold;
}
.hot-sell-section .hot-items .hot-item .hot-price {
  font-size: 11px;
  color: #e88c3a;
  margin: 4px 0;
  font-variant-numeric: tabular-nums;
}
.hot-sell-section .hot-items .hot-item .hot-buy-btn {
  padding: 4px 12px;
  background: linear-gradient(90deg, #3e7c8c, #e88c3a);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.15em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.hot-sell-section .hot-items .hot-item .hot-buy-btn:hover {
  transform: scale(1.02);
  opacity: 0.9;
}
.hot-sell-section .hot-items .hot-item .hot-buy-btn:active {
  transform: scale(0.96);
}
.categories-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px 0;
}
.categories-tabs .category-tab {
  padding: 6px 16px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.categories-tabs .category-tab:hover {
  background: rgba(0, 0, 0, 0.5);
  color: var(--accent-primary);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 8px rgba(62, 124, 140, 0.25);
}
.categories-tabs .category-tab.active {
  background: linear-gradient(90deg, #3e7c8c, #e88c3a);
  color: #fff;
  border-color: rgba(232, 140, 58, 0.6);
  box-shadow: 0 0 10px rgba(232, 140, 58, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.items-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.shop-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-top: 2px solid var(--accent-primary);
  transition: all 0.2s;
  position: relative;
  background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 3px, rgba(0, 0, 0, 0.02) 3px 4px, transparent 4px 6px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.shop-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.3;
  background: linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 2px 6px, /* 右上 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 2px 6px, /* 左下 */ linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 2px 6px, /* 右下 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 2px 6px;
  background-repeat: no-repeat;
}
.shop-item:hover {
  transform: translateX(4px);
  border-color: var(--accent-primary);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 8px rgba(62, 124, 140, 0.25);
}
.shop-item.owned {
  opacity: 0.6;
}
.shop-item .item-icon {
  font-size: 48px;
}
.shop-item .item-info {
  flex: 1;
}
.shop-item .item-info .item-name {
  font-size: 14px;
  font-weight: bold;
  color: var(--accent-primary);
  letter-spacing: 0.15em;
}
.shop-item .item-info .item-desc {
  font-size: 11px;
  color: var(--text-muted);
  margin: 4px 0;
}
.shop-item .item-info .item-price {
  font-size: 12px;
  color: #e88c3a;
  font-variant-numeric: tabular-nums;
}
.shop-item .item-actions {
  display: flex;
  gap: 8px;
}
.shop-item .item-actions button {
  padding: 6px 16px;
  border-radius: 8px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.15em;
}
.shop-item .item-actions button.detail-btn {
  background: #22323a;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}
.shop-item .item-actions button.detail-btn:hover {
  background: #2c4048;
  color: var(--text-primary);
}
.shop-item .item-actions button.buy-btn {
  background: linear-gradient(90deg, #3e7c8c, #e88c3a);
  border: none;
  color: white;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.shop-item .item-actions button.buy-btn:hover {
  transform: scale(1.02);
}
.shop-item .item-actions button.buy-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.ad-section {
  margin-top: 8px;
}
.ad-section .ad-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #2d3a4a, #1e293b);
  border-radius: 8px;
  padding: 12px;
  border: 1px solid rgba(62, 124, 140, 0.3);
  position: relative;
  background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 3px, rgba(0, 0, 0, 0.02) 3px 4px, transparent 4px 6px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.ad-section .ad-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.3;
  background: linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 2px 6px, /* 右上 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 2px 6px, /* 左下 */ linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 2px 6px, /* 右下 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 2px 6px;
  background-repeat: no-repeat;
}
.ad-section .ad-card .ad-icon {
  font-size: 40px;
}
.ad-section .ad-card .ad-info {
  flex: 1;
}
.ad-section .ad-card .ad-info .ad-title {
  font-size: 14px;
  font-weight: bold;
  color: #e88c3a;
  letter-spacing: 0.15em;
}
.ad-section .ad-card .ad-info .ad-reward {
  font-size: 11px;
  color: #10b981;
}
.ad-section .ad-card .ad-info .ad-desc {
  font-size: 10px;
  color: var(--text-muted);
}
.ad-section .ad-card .watch-ad-btn {
  padding: 8px 20px;
  background: linear-gradient(90deg, #3e7c8c, #e88c3a);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.15em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.ad-section .ad-card .watch-ad-btn:hover {
  transform: scale(1.02);
  opacity: 0.9;
}
.pagination {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 16px 0;
}
.pagination button {
  padding: 6px 16px;
  background: #22323a;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}
.pagination button:hover:not(:disabled) {
  background: #2c4048;
  color: var(--text-primary);
  border-color: var(--accent-primary);
}
.pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.pagination .page-info {
  font-size: 12px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}
.redeem-code-section {
  margin: 0 16px 12px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1px solid var(--border-color);
  border-left: 3px solid #e88c3a;
  border-radius: 8px;
  padding: 16px;
  position: relative;
  background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 3px, rgba(0, 0, 0, 0.02) 3px 4px, transparent 4px 6px);
}
.redeem-code-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.3;
  background: linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 8px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 2px 8px, /* 右上 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 8px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 2px 8px, /* 左下 */ linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 8px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 2px 8px, /* 右下 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 8px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 2px 8px;
  background-repeat: no-repeat;
}
.redeem-code-section .redeem-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.redeem-code-section .redeem-header .redeem-icon {
  font-size: 20px;
}
.redeem-code-section .redeem-header .redeem-title {
  font-size: 15px;
  font-weight: bold;
  color: #e88c3a;
}
.redeem-code-section .redeem-header .redeem-sub {
  font-size: 11px;
  color: #9ca3af;
}
.redeem-code-section .redeem-input-group {
  display: flex;
  gap: 8px;
}
.redeem-code-section .redeem-input-group input {
  flex: 1;
  padding: 12px;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 8px;
  color: #e88c3a;
  font-size: 14px;
  text-align: center;
  letter-spacing: 2px;
  outline: none;
}
.redeem-code-section .redeem-input-group input:focus {
  border-color: #e88c3a;
}
.redeem-code-section .redeem-input-group button {
  padding: 12px 24px;
  background: linear-gradient(90deg, #3e7c8c, #e88c3a);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.redeem-code-section .redeem-input-group button:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
.redeem-code-section .redeem-tips {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
}
.redeem-code-section .redeem-tips span {
  font-size: 10px;
  color: #64748b;
}
/* ========== 兑换卡商店样式 ========== */
.redeem-section {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid var(--border-color);
  border-left: 3px solid #e88c3a;
  position: relative;
  background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 3px, rgba(0, 0, 0, 0.02) 3px 4px, transparent 4px 6px);
}
.redeem-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.3;
  background: linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 8px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 2px 8px, /* 右上 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 8px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 2px 8px, /* 左下 */ linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 8px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 2px 8px, /* 右下 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 8px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 2px 8px;
  background-repeat: no-repeat;
}
.redeem-card-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: rgba(232, 140, 58, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(232, 140, 58, 0.25);
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 8px;
}
.redeem-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.redeem-card-left strong {
  color: #e88c3a;
  font-size: 18px;
}
.speed-badge {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  padding: 2px 10px;
  border-radius: 8px;
  font-size: 11px;
}
.redeem-code-input {
  display: flex;
  gap: 8px;
}
.redeem-code-input input {
  padding: 6px 12px;
  background: #1e293b;
  border: 1px solid #3a4048;
  border-radius: 8px;
  color: #d9a36a;
  font-size: 13px;
  width: 160px;
}
.redeem-code-input input:focus {
  border-color: #e88c3a;
  outline: none;
}
.redeem-code-input button {
  padding: 6px 14px;
  background: linear-gradient(90deg, #3e7c8c, #e88c3a);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  letter-spacing: 0.15em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.redeem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
}
.redeem-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(30, 41, 59, 0.6);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  transition: all 0.2s;
  position: relative;
}
.redeem-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.3;
  background: linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 5px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 2px 5px, /* 右上 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 5px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 2px 5px, /* 左下 */ linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 5px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 2px 5px, /* 右下 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 5px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 2px 5px;
  background-repeat: no-repeat;
}
.redeem-item:hover {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(232, 140, 58, 0.2);
}
.redeem-item.disabled {
  opacity: 0.5;
}
.redeem-icon {
  font-size: 28px;
  flex-shrink: 0;
}
.redeem-info {
  flex: 1;
  min-width: 0;
}
.redeem-name {
  font-size: 14px;
  font-weight: bold;
  color: #e88c3a;
}
.redeem-desc {
  font-size: 11px;
  color: #9ca3af;
}
.redeem-status {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}
.redeem-action {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}
.redeem-cost {
  font-size: 12px;
  color: #e88c3a;
}
.redeem-remaining {
  font-size: 10px;
  color: #64748b;
}
.redeem-btn {
  padding: 4px 14px;
  background: linear-gradient(90deg, #3e7c8c, #e88c3a);
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.15em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.redeem-btn:hover:not(:disabled) {
  transform: scale(1.03);
}
.redeem-btn:disabled {
  background: #4b5563;
  cursor: not-allowed;
}
.redeem-empty {
  text-align: center;
  padding: 20px;
  color: #9ca3af;
}
@media (max-width: 480px) {
  .redeem-item {
    flex-wrap: wrap;
  }
  .redeem-code-input input {
    width: 120px;
  }
  .redeem-grid {
    grid-template-columns: 1fr;
  }
}
/* ============================================================
 *  商城美化（v2） — 钱包栏 / 推荐横幅 / 卡片网格 / 品质色
 * ============================================================ */
.wallet-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
  padding: 0 2px;
}
.wallet-card {
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: all 0.25s ease;
  position: relative;
  background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 3px, rgba(0, 0, 0, 0.02) 3px 4px, transparent 4px 6px);
}
.wallet-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.3;
  background: linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 2px 6px, /* 右上 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 2px 6px, /* 左下 */ linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 2px 6px, /* 右下 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 2px 6px;
  background-repeat: no-repeat;
}
.wallet-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  pointer-events: none;
}
.wallet-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.wallet-destiny {
  background: linear-gradient(135deg, rgba(232, 140, 58, 0.22), rgba(180, 83, 9, 0.12));
  border-color: rgba(232, 140, 58, 0.35);
}
.wallet-destiny::before {
  background: radial-gradient(circle at top right, rgba(62, 124, 140, 0.14), transparent 60%);
}
.wallet-spirit {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.22), rgba(30, 64, 175, 0.12));
  border-color: rgba(59, 130, 246, 0.35);
}
.wallet-spirit::before {
  background: radial-gradient(circle at top right, rgba(62, 124, 140, 0.14), transparent 60%);
}
.wallet-ticket {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.22), rgba(107, 33, 168, 0.12));
  border-color: rgba(168, 85, 247, 0.35);
}
.wallet-ticket::before {
  background: radial-gradient(circle at top right, rgba(62, 124, 140, 0.14), transparent 60%);
}
.wallet-icon {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: rgba(0, 0, 0, 0.3);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}
.wallet-meta {
  position: relative;
  flex: 1;
  min-width: 0;
}
.wallet-label {
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 2px;
  letter-spacing: 0.15em;
}
.wallet-value {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.shop-featured {
  margin-bottom: 16px;
  padding: 12px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(62, 124, 140, 0.14), rgba(232, 140, 58, 0.06) 50%, rgba(62, 124, 140, 0.08)), rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(62, 124, 140, 0.3);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  position: relative;
  background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 3px, rgba(0, 0, 0, 0.02) 3px 4px, transparent 4px 6px);
}
.shop-featured::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.3;
  background: linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 8px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 2px 8px, /* 右上 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 8px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 2px 8px, /* 左下 */ linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 8px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 2px 8px, /* 右下 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 8px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 2px 8px;
  background-repeat: no-repeat;
}
.shop-featured::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(62, 124, 140, 0.14), transparent 60%);
  pointer-events: none;
  animation: featured-pulse 6s ease-in-out infinite;
}
@keyframes featured-pulse {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}
.featured-header {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}
.featured-badge {
  font-size: 14px;
  font-weight: 800;
  color: #1f2937;
  background: linear-gradient(90deg, #fde047, #f59e0b);
  padding: 4px 12px;
  border-radius: 8px;
  letter-spacing: 0.15em;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
.featured-sub {
  font-size: 11px;
  color: #fcd34d;
  opacity: 0.85;
}
.featured-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.featured-card {
  border-radius: 8px;
  padding: 10px 8px;
  text-align: center;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-color);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 3px, rgba(0, 0, 0, 0.02) 3px 4px, transparent 4px 6px);
}
.featured-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.3;
  background: linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 5px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 2px 5px, /* 右上 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 5px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 2px 5px, /* 左下 */ linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 5px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 2px 5px, /* 右下 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 5px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 2px 5px;
  background-repeat: no-repeat;
}
.featured-card:hover {
  transform: translateY(-3px) scale(1.01);
  border-color: var(--accent-primary);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}
.featured-card.q-orange {
  border-color: rgba(249, 115, 22, 0.4);
}
.featured-card.q-purple {
  border-color: rgba(168, 85, 247, 0.4);
}
.featured-card.q-blue {
  border-color: rgba(59, 130, 246, 0.4);
}
.featured-shine {
  position: absolute;
  top: 0;
  left: -80%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  transform: skewX(-20deg);
  animation: shine-sweep 4.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes shine-sweep {
  0% {
    left: -80%;
  }
  55% {
    left: 130%;
  }
  100% {
    left: 130%;
  }
}
.featured-icon {
  font-size: 34px;
  line-height: 1;
  margin-bottom: 6px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}
.featured-name {
  font-size: 12px;
  font-weight: bold;
  color: #fef3c7;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.featured-price {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2px 3px;
  margin-bottom: 8px;
  background: rgba(232, 140, 58, 0.12);
  padding: 2px 10px;
  border-radius: 8px;
}
.featured-price .fp-currency {
  color: #e88c3a;
  font-size: 10px;
}
.featured-price .fp-num {
  color: #e88c3a;
  font-weight: 800;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}
.featured-price .fp-unit {
  flex-basis: 100%;
  text-align: center;
  color: rgba(232, 140, 58, 0.7);
  font-size: 10px;
  line-height: 1.2;
}
.featured-btn {
  width: 100%;
  padding: 6px 0;
  border: none;
  border-radius: 8px;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.15em;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(90deg, #3e7c8c, #e88c3a);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.2s;
}
.featured-btn:hover:not(:disabled) {
  transform: scale(1.03);
  filter: brightness(1.08);
}
.featured-btn:active:not(:disabled) {
  transform: scale(0.97);
}
.featured-btn:disabled {
  background: #4b5563;
  color: #9ca3af;
  cursor: not-allowed;
  box-shadow: none;
}
.shop-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.empty-tip {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 13px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  position: relative;
}
.empty-tip::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.3;
  background: linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 2px 6px, /* 右上 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 2px 6px, /* 左下 */ linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 2px 6px, /* 右下 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 2px 6px;
  background-repeat: no-repeat;
}
.shop-card {
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  padding: 10px;
  background: linear-gradient(160deg, rgba(30, 41, 59, 0.85), rgba(15, 23, 42, 0.85));
  border: 1px solid var(--border-color);
  border-top: 2px solid var(--accent-primary);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  position: relative;
  background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 3px, rgba(0, 0, 0, 0.02) 3px 4px, transparent 4px 6px);
}
.shop-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.3;
  background: linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 2px 6px, /* 右上 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 2px 6px, /* 左下 */ linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 2px 6px, /* 右下 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 2px 6px;
  background-repeat: no-repeat;
}
.shop-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.shop-card.owned {
  opacity: 0.65;
  cursor: default;
}
.shop-card.owned:hover {
  transform: none;
}
.card-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 45%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
  transform: skewX(-22deg);
  pointer-events: none;
  opacity: 0;
}
.shop-card:hover .card-shine {
  opacity: 1;
  animation: card-shine-pass 1.1s ease-out forwards;
}
@keyframes card-shine-pass {
  0% {
    left: -100%;
  }
  100% {
    left: 150%;
  }
}
.card-glow {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 0;
}
.shop-card:hover .card-glow {
  opacity: 1;
}
.shop-card.q-white {
  border-color: rgba(209, 213, 219, 0.3);
}
.shop-card.q-white .card-glow {
  box-shadow: 0 0 18px rgba(209, 213, 219, 0.25);
}
.shop-card.q-white .card-name {
  color: #f1f5f9;
}
.shop-card.q-green {
  border-color: rgba(34, 197, 94, 0.35);
  background: linear-gradient(160deg, rgba(22, 101, 52, 0.22), rgba(15, 23, 42, 0.85));
}
.shop-card.q-green .card-glow {
  box-shadow: 0 0 22px rgba(34, 197, 94, 0.28);
}
.shop-card.q-green .card-name {
  color: #86efac;
}
.shop-card.q-blue {
  border-color: rgba(59, 130, 246, 0.4);
  background: linear-gradient(160deg, rgba(30, 64, 175, 0.24), rgba(15, 23, 42, 0.85));
}
.shop-card.q-blue .card-glow {
  box-shadow: 0 0 22px rgba(59, 130, 246, 0.32);
}
.shop-card.q-blue .card-name {
  color: #93c5fd;
}
.shop-card.q-purple {
  border-color: rgba(168, 85, 247, 0.45);
  background: linear-gradient(160deg, rgba(107, 33, 168, 0.28), rgba(15, 23, 42, 0.85));
}
.shop-card.q-purple .card-glow {
  box-shadow: 0 0 26px rgba(168, 85, 247, 0.38);
}
.shop-card.q-purple .card-name {
  color: #d8b4fe;
}
.shop-card.q-orange {
  border-color: rgba(249, 115, 22, 0.5);
  background: linear-gradient(160deg, rgba(154, 52, 18, 0.32), rgba(15, 23, 42, 0.85));
}
.shop-card.q-orange .card-glow {
  box-shadow: 0 0 28px rgba(249, 115, 22, 0.42);
}
.shop-card.q-orange .card-name {
  color: #fdba74;
}
.shop-card.q-orange::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(251, 146, 60, 0.18), transparent 55%);
  pointer-events: none;
}
.card-badges {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 4px;
  pointer-events: none;
}
.shop-badge {
  padding: 2px 7px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}
.badge-hot {
  background: linear-gradient(90deg, #ef4444, #f97316);
  color: #fff;
}
.badge-limited {
  background: linear-gradient(90deg, #a855f7, #6366f1);
  color: #fff;
}
.badge-premium {
  background: linear-gradient(90deg, #e88c3a, #f59e0b);
  color: #1f2937;
}
.badge-owned {
  background: rgba(34, 197, 94, 0.85);
  color: #fff;
}
.card-icon-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.08), transparent 70%), rgba(0, 0, 0, 0.35);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), inset 0 -6px 18px rgba(0, 0, 0, 0.35);
}
.card-icon {
  font-size: 44px;
  line-height: 1;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 6px rgba(255, 255, 255, 0.08));
  transform-origin: center;
  transition: transform 0.3s ease;
}
.shop-card:hover .card-icon {
  transform: scale(1.08) rotate(-2deg);
}
.card-body {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  margin-bottom: 10px;
}
.card-name {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 4px;
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.item-effect {
  font-size: 10px;
  color: #34d399;
  margin-bottom: 4px;
  padding: 2px 0;
  line-height: 1.3;
}
.card-desc {
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.35;
  min-height: 28px;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.card-price {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2px;
  padding: 3px 8px;
  background: rgba(232, 140, 58, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(232, 140, 58, 0.15);
  min-width: 0;
}
.price-currency {
  color: #e88c3a;
  font-size: 10px;
}
.price-num {
  font-size: 10px;
  font-weight: 900;
  color: #e88c3a;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 6px rgba(232, 140, 58, 0.35), 0 1px 0 rgba(0, 0, 0, 0.4);
  letter-spacing: 0.3px;
}
.price-unit {
  font-size: 10px;
  color: rgba(232, 140, 58, 0.7);
  margin-left: 1px;
  flex-basis: 100%;
  text-align: center;
  line-height: 1.2;
}
.card-btn {
  flex-shrink: 0;
  padding: 5px 10px;
  border: none;
  border-radius: 8px;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.shop-btn-buy {
  color: #fff;
  background: linear-gradient(90deg, #3e7c8c, #e88c3a);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.shop-btn-buy:hover:not(:disabled) {
  transform: translateY(-1px) scale(1.03);
  filter: brightness(1.08);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.shop-btn-buy:active:not(:disabled) {
  transform: translateY(0) scale(0.97);
}
.shop-btn-buy.disabled,
.shop-btn-buy:disabled {
  background: #4b5563;
  color: #9ca3af;
  cursor: not-allowed;
  box-shadow: none;
  transform: none !important;
  filter: none !important;
}
.shop-btn-owned {
  color: #9ca3af;
  background: #374151;
  border: 1px solid var(--border-color);
  opacity: 0.85;
  cursor: default;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.section-title {
  font-size: 14px;
  font-weight: bold;
  color: #e88c3a;
  margin-bottom: 12px;
  padding: 4px 10px;
  border-left: 3px solid #e88c3a;
  background: linear-gradient(90deg, rgba(62, 124, 140, 0.15), transparent 70%);
  letter-spacing: 0.15em;
}
@media (max-width: 420px) {
  .wallet-bar {
    gap: 6px;
    padding: 0;
  }
  .wallet-card {
    padding: 8px;
    border-radius: 8px;
  }
  .wallet-icon {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
  .wallet-value {
    font-size: 14px;
  }
  .featured-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  .featured-card {
    padding: 8px 4px;
    border-radius: 8px;
  }
  .featured-icon {
    font-size: 28px;
  }
  .featured-name {
    font-size: 11px;
  }
  .featured-btn {
    padding: 5px 0;
    font-size: 10px;
  }
  .shop-grid {
    gap: 8px;
  }
  .shop-card {
    padding: 8px;
    border-radius: 8px;
  }
  .card-icon {
    font-size: 36px;
  }
  .card-name {
    font-size: 12px;
  }
  .price-num {
    font-size: 13px;
  }
  .card-btn {
    padding: 4px 8px;
    font-size: 10px;
  }
}
@media (max-width: 350px) {
  .wallet-card {
    padding: 6px;
    gap: 6px;
  }
  .wallet-icon {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }
  .wallet-value {
    font-size: 12px;
  }
  .shop-grid {
    grid-template-columns: 1fr;
  }
  .card-icon-wrap {
    aspect-ratio: 16 / 8;
  }
}
@media (min-width: 560px) {
  .shop-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  .wallet-card {
    padding: 12px 14px;
  }
  .wallet-icon {
    width: 44px;
    height: 44px;
    font-size: 22px;
  }
  .wallet-value {
    font-size: 14px;
  }
}
/* ============================================================
 *  兑换卡商店 VIP版（redeem v2）
 *  盈利导向：VIP金卡头 + 4档品质分色 + 进度条 + 角标 + 按钮光泽
 * ============================================================ */
.redeem-v2 {
  padding: 14px 12px;
  border-radius: 8px;
  background: radial-gradient(ellipse at top right, rgba(62, 124, 140, 0.08), transparent 55%), linear-gradient(180deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.85));
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  margin-bottom: 18px;
  position: relative;
  background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 3px, rgba(0, 0, 0, 0.02) 3px 4px, transparent 4px 6px);
}
.redeem-v2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.3;
  background: linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 8px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 2px 8px, /* 右上 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 8px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 2px 8px, /* 左下 */ linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 8px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 2px 8px, /* 右下 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 8px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 2px 8px;
  background-repeat: no-repeat;
}
.rc-vip-card {
  position: relative;
  border-radius: 8px;
  padding: 2px;
  margin-bottom: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #fde047 0%, #f59e0b 30%, #b45309 65%, #e88c3a 100%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 215, 0, 0.4);
}
.rc-vip-stripes {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.04) 0, rgba(255, 255, 255, 0.04) 6px, transparent 6px, transparent 14px);
  pointer-events: none;
  z-index: 0;
}
.rc-vip-glow {
  position: absolute;
  top: -60%;
  right: -20%;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 60%);
  animation: rc-vip-pulse 5s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes rc-vip-pulse {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.12);
  }
}
.rc-vip-inner {
  position: relative;
  z-index: 1;
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(20, 20, 20, 0.72), rgba(40, 28, 6, 0.72)), rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
}
.rc-vip-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.rc-vip-chip {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  background: linear-gradient(135deg, #fde047, #f59e0b);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #1f2937;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.6), inset 0 -2px 6px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}
.rc-vip-meta {
  flex: 1;
  min-width: 0;
}
.rc-vip-label {
  font-size: 11px;
  color: #fcd34d;
  opacity: 0.85;
  letter-spacing: 2px;
  margin-bottom: 2px;
}
.rc-vip-number {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 4px;
}
.rc-vip-value {
  font-size: 28px;
  font-weight: 900;
  color: #fef3c7;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 14px rgba(232, 140, 58, 0.55), 0 2px 0 rgba(0, 0, 0, 0.4);
  letter-spacing: 0.5px;
}
.rc-vip-unit {
  font-size: 13px;
  font-weight: bold;
  color: #fde047;
}
.rc-vip-card-no {
  font-size: 10px;
  color: rgba(253, 224, 71, 0.6);
  letter-spacing: 1.5px;
  font-family: "Consolas", monospace;
}
.rc-vip-right {
  flex-shrink: 0;
}
.rc-vip-speed {
  min-width: 108px;
  border-radius: 8px;
  padding: 8px 12px;
  text-align: center;
}
.rc-vip-speed-title {
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 2px;
  letter-spacing: 0.5px;
}
.rc-speed-on {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.22), rgba(5, 150, 105, 0.18));
  border: 1px solid rgba(52, 211, 153, 0.5);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.25);
}
.rc-speed-on .rc-vip-speed-title {
  color: #6ee7b7;
}
.rc-speed-on .vip-time {
  display: inline-block;
  margin-top: 2px;
  font-size: 11px;
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.18);
  padding: 2px 8px;
  border-radius: 8px;
  letter-spacing: 0.5px;
}
.rc-speed-off {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.rc-speed-off .rc-vip-speed-title {
  color: #9ca3af;
}
.rc-speed-off .rc-vip-speed-sub {
  margin-top: 2px;
  font-size: 10px;
  color: #6b7280;
  letter-spacing: 1px;
}
.rc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.rc-card {
  border-radius: 8px;
  padding: 12px 12px 12px;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.92));
  border: 1px solid var(--border-color);
  border-top: 2px solid var(--accent-primary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  position: relative;
  background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 3px, rgba(0, 0, 0, 0.02) 3px 4px, transparent 4px 6px);
}
.rc-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.3;
  background: linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 2px 6px, /* 右上 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 2px 6px, /* 左下 */ linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 2px 6px, /* 右下 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 2px 6px;
  background-repeat: no-repeat;
}
.rc-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.rc-card.rc-card-disabled {
  opacity: 0.72;
}
.rc-card.rc-card-disabled:hover {
  transform: none;
}
.rc-card-shine {
  position: absolute;
  top: 0;
  left: -120%;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
  transform: skewX(-22deg);
  pointer-events: none;
  opacity: 0;
  z-index: 1;
}
.rc-card:hover .rc-card-shine {
  opacity: 1;
  animation: rc-shine 1s ease-out forwards;
}
@keyframes rc-shine {
  0% {
    left: -120%;
  }
  100% {
    left: 160%;
  }
}
.rc-card-glow {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 0;
}
.rc-card:hover .rc-card-glow {
  opacity: 1;
}
.rc-card-value {
  border-color: rgba(59, 130, 246, 0.35);
  background: linear-gradient(160deg, rgba(30, 58, 138, 0.22), rgba(15, 23, 42, 0.92));
}
.rc-card-value .rc-card-glow {
  box-shadow: 0 0 22px rgba(59, 130, 246, 0.28);
}
.rc-card-value .rc-tier-tag {
  background: linear-gradient(90deg, #3b82f6, #2563eb);
}
.rc-card-value .rc-name {
  color: #93c5fd;
}
.rc-card-rare {
  border-color: rgba(168, 85, 247, 0.45);
  background: linear-gradient(160deg, rgba(88, 28, 135, 0.28), rgba(15, 23, 42, 0.92));
}
.rc-card-rare .rc-card-glow {
  box-shadow: 0 0 26px rgba(168, 85, 247, 0.38);
}
.rc-card-rare .rc-tier-tag {
  background: linear-gradient(90deg, #a855f7, #7c3aed);
}
.rc-card-rare .rc-name {
  color: #d8b4fe;
}
.rc-card-rare::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(192, 132, 252, 0.18), transparent 55%);
  pointer-events: none;
}
.rc-card-legend {
  border-color: rgba(249, 115, 22, 0.5);
  background: linear-gradient(160deg, rgba(124, 45, 18, 0.32), rgba(15, 23, 42, 0.92));
}
.rc-card-legend .rc-card-glow {
  box-shadow: 0 0 30px rgba(249, 115, 22, 0.42);
}
.rc-card-legend .rc-tier-tag {
  background: linear-gradient(90deg, #f97316, #ea580c);
}
.rc-card-legend .rc-name {
  color: #fdba74;
}
.rc-card-legend::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(251, 146, 60, 0.22), transparent 55%);
  pointer-events: none;
}
.rc-card-premium {
  border-color: rgba(250, 204, 21, 0.6);
  background: linear-gradient(160deg, rgba(146, 64, 14, 0.38), rgba(30, 20, 0, 0.95));
}
.rc-card-premium .rc-card-glow {
  box-shadow: 0 0 32px rgba(232, 140, 58, 0.55);
}
.rc-card-premium .rc-tier-tag {
  background: linear-gradient(90deg, #e88c3a, #d97706);
  color: #1f2937;
}
.rc-card-premium .rc-name {
  color: #fde047;
}
.rc-card-premium::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(253, 224, 71, 0.2), transparent 55%), radial-gradient(circle at bottom right, rgba(249, 115, 22, 0.16), transparent 55%);
  pointer-events: none;
}
.rc-card-premium::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), transparent);
  pointer-events: none;
}
.rc-tier-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 3px 8px;
  border-radius: 8px;
  z-index: 3;
}
.rc-tier-tag span {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #fff;
}
.rc-card-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 4px;
  pointer-events: none;
}
.rc-badge {
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.5px;
  white-space: nowrap;
  color: #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}
.rc-badge-crown {
  background: linear-gradient(90deg, #e88c3a, #d97706);
  color: #1f2937;
}
.rc-badge-free {
  background: linear-gradient(90deg, #ef4444, #f97316);
  animation: rc-badge-free-pulse 1.8s ease-in-out infinite;
}
@keyframes rc-badge-free-pulse {
  0%,
  100% {
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 3px 16px rgba(239, 68, 68, 0.6);
    transform: scale(1.05);
  }
}
.rc-badge-premium {
  background: linear-gradient(90deg, #a855f7, #6366f1);
}
.rc-badge-hot {
  background: linear-gradient(90deg, #ef4444, #f97316);
}
.rc-badge-limited {
  background: linear-gradient(90deg, #ec4899, #8b5cf6);
}
.rc-badge-value {
  background: linear-gradient(90deg, #0ea5e9, #2563eb);
}
.rc-badge-done {
  background: rgba(34, 197, 94, 0.9);
}
.rc-card-header {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding-top: 2px;
}
.rc-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.1), transparent 70%), rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), inset 0 -6px 14px rgba(0, 0, 0, 0.35);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.4));
  transition: transform 0.3s;
}
.rc-card:hover .rc-icon-box {
  transform: scale(1.08) rotate(-3deg);
}
.rc-title-group {
  flex: 1;
  min-width: 0;
  padding-right: 1px;
}
.rc-name {
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 3px;
  letter-spacing: 0.3px;
}
.rc-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rc-progress {
  position: relative;
  z-index: 1;
  margin-bottom: 10px;
  height: 18px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.45);
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6);
}
.rc-progress-bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #10b981, #34d399 60%, #6ee7b7);
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.5);
  transition: width 0.6s ease;
}
.rc-progress-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: bold;
  color: #fff;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}
.rc-card-meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 10px;
  padding: 7px 9px;
  background: rgba(0, 0, 0, 0.28);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.rc-status {
  font-size: 11px;
  font-weight: bold;
  color: #fde047;
  letter-spacing: 0.3px;
}
.rc-remaining {
  font-size: 10px;
  color: #94a3b8;
  line-height: 1.4;
}
.rc-card-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.rc-price-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  padding: 4px 10px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(232, 140, 58, 0.14), rgba(217, 119, 6, 0.1));
  border: 1px solid rgba(232, 140, 58, 0.3);
  flex-shrink: 0;
}
.rc-price-high {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.18), rgba(232, 140, 58, 0.16));
  border-color: rgba(251, 146, 60, 0.4);
}
.rc-price-icon {
  font-size: 12px;
}
.rc-price-num {
  font-size: 16px;
  font-weight: 900;
  color: #e88c3a;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 6px rgba(232, 140, 58, 0.4);
}
.rc-price-unit {
  font-size: 10px;
  color: rgba(232, 140, 58, 0.7);
}
.rc-btn {
  flex: 1;
  padding: 7px 10px;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.8px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  min-width: 0;
}
.rc-btn-grad {
  color: #064e3b;
  background: linear-gradient(90deg, #34d399, #10b981 55%, #059669);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.45), inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}
.rc-btn-grad:hover:not(:disabled) {
  transform: translateY(-1px) scale(1.02);
  filter: brightness(1.1);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.rc-btn-grad:active:not(:disabled) {
  transform: translateY(0) scale(0.98);
}
.rc-btn-gold {
  color: #1f2937;
  background: linear-gradient(90deg, #fde047, #e88c3a 45%, #f59e0b 100%);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}
.rc-btn-gold:hover:not(:disabled) {
  transform: translateY(-1px) scale(1.02);
  filter: brightness(1.08);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.rc-btn-gold:active:not(:disabled) {
  transform: translateY(0) scale(0.98);
}
.rc-btn-full {
  color: #6b7280;
  background: #374151;
  cursor: not-allowed;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.rc-btn-disabled,
.rc-btn:disabled {
  color: #9ca3af;
  background: #4b5563;
  cursor: not-allowed;
  box-shadow: none;
  transform: none !important;
  filter: none !important;
}
@media (min-width: 560px) {
  .rc-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .rc-vip-value {
    font-size: 32px;
  }
  .rc-vip-chip {
    width: 56px;
    height: 56px;
    font-size: 30px;
  }
}
@media (min-width: 820px) {
  .rc-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 420px) {
  .rc-vip-inner {
    padding: 12px;
    flex-wrap: wrap;
  }
  .rc-vip-right {
    width: 100%;
  }
  .rc-vip-speed {
    min-width: 100%;
  }
  .rc-vip-chip {
    width: 44px;
    height: 44px;
    font-size: 22px;
  }
  .rc-vip-value {
    font-size: 24px;
  }
  .rc-icon-box {
    width: 44px;
    height: 44px;
    font-size: 24px;
  }
  .rc-name {
    font-size: 13px;
  }
  .rc-price-num {
    font-size: 14px;
  }
  .rc-btn {
    padding: 6px 8px;
    font-size: 11px;
    letter-spacing: 0.3px;
  }
}
@media (max-width: 340px) {
  .rc-card-footer {
    flex-wrap: wrap;
  }
  .rc-price-pill {
    width: 100%;
    justify-content: center;
  }
  .rc-btn {
    width: 100%;
  }
}
/**
 * ==================== sponsor.less ====================
 * 赞助模块
 * 最后更新：2026-05-11
 * 
 * 使用的 base.less 组件：
 * - 按钮：.btn-primary, .btn-success
 * - 卡片：.card, .card-simple
 * - 进度条：.progress-container
 * - 弹窗：.modal-overlay, .modal-content
 * - 滚动条：.hide-scrollbar() 混入
 * 
 * 覆盖的 base.less 组件：
 * - 无
 * 
 * 模块特有样式：
 * - 赞助模块主容器
 * - 头部
 * - 开场卡片
 * - 福利卡片
 * - 福利列表
 * - 兑换码区域
 * - float 动画
 */
.sponsor-module {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b2e 100%);
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: -webkit-fill-available;
  overflow: hidden;
}
.sponsor-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}
.sponsor-fixed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--grad-card);
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
  position: relative;
  background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 3px, rgba(0, 0, 0, 0.04) 3px 4px, transparent 4px 6px);
}
.sponsor-header-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.sponsor-title {
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  color: var(--accent-bright);
  margin: 0;
  letter-spacing: 0.15em;
  padding: 4px 16px;
  position: relative;
  background: linear-gradient(90deg, rgba(62, 124, 140, 0.18), transparent 70%);
  border-left: 2px solid var(--accent-primary);
  text-shadow: 0 0 10px var(--accent-glow);
}
.back-btn {
  display: block;
  width: calc(100% - 32px);
  margin: 10px 16px;
  text-align: center;
  padding: 10px 0;
  border: none;
  border-radius: 10px;
  background: #4b5563;
  color: #e5e7eb;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.back-btn:hover {
  background: #6b7280;
}
.back-btn:active {
  transform: scale(0.98);
}
.sponsor-scroll-content {
  flex: 1;
  overflow-y: auto;
  padding: 8px 16px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.sponsor-scroll-content::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
  background: transparent;
}
.greeting-card {
  background: linear-gradient(135deg, rgba(232, 140, 58, 0.1), rgba(139, 92, 246, 0.1));
  border-radius: 12px;
  padding: 20px 20px;
  text-align: center;
  margin-bottom: 20px;
  border: 1px solid rgba(232, 140, 58, 0.3);
}
.greeting-card .greeting-icon {
  font-size: 48px;
  margin-bottom: 12px;
  animation: float 3s ease-in-out infinite;
}
.greeting-card .greeting-text {
  font-size: 14px;
  line-height: 1.6;
  color: #94a3b8;
}
.welfare-card,
.redeem-card {
  background: rgba(15, 23, 42, 0.6);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  backdrop-filter: blur(4px);
}
.card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(232, 140, 58, 0.2);
}
.card-header .card-icon {
  font-size: 20px;
}
.card-header .card-title {
  font-size: 14px;
  font-weight: 600;
  color: #e88c3a;
}
.welfare-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.welfare-item {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  padding: 12px;
  transition: all var(--transition-fast);
  border-left: 3px solid #e88c3a;
}
.welfare-item:hover {
  background: rgba(232, 140, 58, 0.05);
  transform: translateX(4px);
}
.welfare-item .welfare-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.welfare-item .welfare-header .welfare-icon {
  font-size: 22px;
}
.welfare-item .welfare-header .welfare-name {
  font-weight: 600;
  color: #e88c3a;
  font-size: 14px;
}
.welfare-item .welfare-header .welfare-reward {
  font-size: 10px;
  color: #10b981;
  margin-left: auto;
  background: rgba(16, 185, 129, 0.15);
  padding: 2px 8px;
  border-radius: 8px;
}
.welfare-item .welfare-desc {
  font-size: 12px;
  color: #94a3b8;
  padding-left: 32px;
  line-height: 1.5;
}
.welfare-item .welfare-desc strong {
  color: #e88c3a;
  background: rgba(232, 140, 58, 0.1);
  padding: 2px 6px;
  border-radius: 6px;
  font-family: monospace;
  font-size: 10px;
}
.redeem-input-group {
  display: flex;
  gap: 12px;
}
.redeem-input-group input {
  flex: 1;
  padding: 12px 16px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  color: #e2e8f0;
  font-size: 14px;
  text-align: center;
  letter-spacing: 1px;
  transition: all var(--transition-fast);
}
.redeem-input-group input:focus {
  outline: none;
  border-color: #e88c3a;
  box-shadow: 0 0 0 2px rgba(232, 140, 58, 0.2);
}
.redeem-input-group input::placeholder {
  color: #64748b;
  letter-spacing: 0;
}
.redeem-input-group button {
  padding: 12px 20px;
  background: linear-gradient(90deg, #f59e0b, #e88c3a);
  border: none;
  border-radius: 8px;
  color: #0f172a;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.redeem-input-group button:active {
  transform: scale(0.96);
}
.redeem-input-group button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.redeem-input-group button:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(232, 140, 58, 0.3);
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}
/**
 * ==================== settings.less ====================
 * 自动使用设置弹窗
 * 最后更新：2026-05-11
 * 
 * 使用的 base.less 组件：
 * - 按钮：.btn-primary, .btn-success, .btn-danger, .btn-cancel
 * - 卡片：.card, .card-simple
 * - 进度条：.progress-container
 * - 弹窗：.modal-overlay, .modal-content
 * - 滚动条：.hide-scrollbar() 混入
 * 
 * 覆盖的 base.less 组件：
 * - 无
 * 
 * 模块特有样式：
 * - 设置弹窗主容器
 * - 弹窗头部/主体/底部
 * - 设置区块
 * - 开关按钮
 * - 阈值输入
 * - 物品显示
 * - 优先级队列
 * - 队列项（可拖动排序）
 * - 添加/移除按钮
 */
.settings-popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50000;
}
.settings-popup.hidden {
  display: none;
}
.settings-popup .popup-mask {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
}
.settings-popup .popup-content {
  position: relative;
  width: 90%;
  max-width: 380px;
  max-height: 85vh;
  overflow-y: auto;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 2px solid #e88c3a;
  border-radius: 12px;
  z-index: 50001;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.settings-popup .popup-content::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
  background: transparent;
}
.settings-popup .popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-secondary);
  background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 3px, rgba(0, 0, 0, 0.03) 3px 4px, transparent 4px 6px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.settings-popup .popup-header .popup-title {
  font-size: 18px;
  font-weight: bold;
  color: var(--accent-bright);
  letter-spacing: 0.1em;
  text-shadow: 0 0 10px var(--accent-glow);
}
.settings-popup .popup-header .popup-close {
  width: 32px;
  height: 32px;
  background: #22323a;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s;
}
.settings-popup .popup-header .popup-close:hover {
  background: var(--color-danger);
  border-color: var(--color-danger);
  color: white;
}
.settings-popup .popup-header .popup-close:active {
  transform: scale(0.96);
}
.settings-popup .popup-body {
  padding: 16px;
}
.settings-popup .popup-footer {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 215, 0, 0.2);
  position: sticky;
  bottom: 0;
  background: inherit;
}
.settings-popup .popup-footer button {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
}
.settings-popup .popup-footer button.btn-cancel {
  background: #373e46;
  color: #d9a36a;
}
.settings-popup .popup-footer button.btn-cancel:hover {
  background: #4a525c;
}
.settings-popup .popup-footer button.btn-confirm {
  background: linear-gradient(90deg, #10b981, #059669);
  color: white;
}
.settings-popup .popup-footer button.btn-confirm:hover {
  transform: scale(1.02);
}
.settings-section {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
}
.settings-section .section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}
.settings-section .section-header .section-icon {
  font-size: 20px;
}
.settings-section .section-header .section-title {
  flex: 1;
  font-size: 14px;
  font-weight: bold;
  color: #e88c3a;
}
.settings-section .section-header .switch-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.settings-section .section-header .switch-label .switch-text {
  font-size: 11px;
  color: #9ca3af;
}
.settings-section .section-header .switch-label .switch-input {
  display: none;
}
.settings-section .section-header .switch-label .switch-input:checked + .switch-slider {
  background: #10b981;
}
.settings-section .section-header .switch-label .switch-input:checked + .switch-slider:before {
  transform: translateX(16px);
}
.settings-section .section-header .switch-label .switch-slider {
  width: 36px;
  height: 20px;
  background: #4b5563;
  border-radius: 12px;
  position: relative;
  transition: all 0.2s;
}
.settings-section .section-header .switch-label .switch-slider:before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  background: white;
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: transform 0.2s;
}
.settings-section .section-content {
  padding: 12px 16px;
}
.settings-section .section-content .setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.settings-section .section-content .setting-row .setting-label {
  font-size: 12px;
  color: #9ca3af;
}
.settings-section .section-content .setting-row .threshold-control {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.3);
  padding: 4px 12px;
  border-radius: 12px;
}
.settings-section .section-content .setting-row .threshold-control span {
  font-size: 12px;
  color: #d9a36a;
}
.settings-section .section-content .setting-row .threshold-control .threshold-input {
  width: 50px;
  padding: 4px;
  background: #2a2f35;
  border: 1px solid #3a4048;
  border-radius: 4px;
  color: #e88c3a;
  text-align: center;
}
.settings-section .section-content .item-display {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
}
.settings-section .section-content .item-display .item-icon {
  font-size: 18px;
}
.settings-section .section-content .item-display .item-name {
  flex: 1;
  font-size: 13px;
  color: #d9a36a;
}
.settings-section .section-content .item-display .item-count {
  font-size: 12px;
  color: #10b981;
}
.priority-queue-container .queue-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 11px;
  color: #9ca3af;
}
.priority-queue-container .queue-header .reset-queue-btn {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid #ef4444;
  border-radius: 12px;
  padding: 2px 10px;
  font-size: 10px;
  color: #ef4444;
  cursor: pointer;
}
.priority-queue-container .queue-header .reset-queue-btn:hover {
  background: #ef4444;
  color: white;
}
.priority-queue-container .queue-items {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  margin-bottom: 12px;
  min-height: 60px;
}
.priority-queue-container .available-items {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
}
.priority-queue-container .queue-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 6px;
  margin-bottom: 4px;
}
.priority-queue-container .queue-item:last-child {
  margin-bottom: 0;
}
.priority-queue-container .queue-item.in-queue {
  background: rgba(16, 185, 129, 0.15);
  border-left: 3px solid #10b981;
}
.priority-queue-container .queue-item .item-icon {
  font-size: 18px;
  min-width: 32px;
}
.priority-queue-container .queue-item .item-name {
  min-width: 65px;
  font-size: 12px;
  font-weight: bold;
  color: #e88c3a;
}
.priority-queue-container .queue-item .item-desc {
  flex: 1;
  font-size: 10px;
  color: #9ca3af;
}
.priority-queue-container .queue-item .item-count {
  min-width: 45px;
  font-size: 11px;
  color: #10b981;
  text-align: right;
}
.priority-queue-container .queue-item .priority-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #1e293b;
  border-radius: 12px;
  padding: 2px 6px;
}
.priority-queue-container .queue-item .priority-controls .priority-up,
.priority-queue-container .queue-item .priority-controls .priority-down {
  background: none;
  border: none;
  color: #e88c3a;
  cursor: pointer;
  font-size: 14px;
  padding: 2px 6px;
}
.priority-queue-container .queue-item .priority-controls .priority-up.disabled,
.priority-queue-container .queue-item .priority-controls .priority-down.disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.priority-queue-container .queue-item .priority-controls .priority-up:not(.disabled):hover,
.priority-queue-container .queue-item .priority-controls .priority-down:not(.disabled):hover {
  transform: scale(1.1);
}
.priority-queue-container .queue-item .priority-controls .priority-num {
  min-width: 24px;
  text-align: center;
  font-size: 11px;
  color: #e88c3a;
  font-weight: bold;
}
.priority-queue-container .queue-item .add-to-queue,
.priority-queue-container .queue-item .remove-from-queue {
  border: none;
  border-radius: 12px;
  padding: 4px 12px;
  font-size: 10px;
  cursor: pointer;
}
.priority-queue-container .queue-item .add-to-queue.hidden,
.priority-queue-container .queue-item .remove-from-queue.hidden {
  display: none;
}
.priority-queue-container .queue-item .add-to-queue {
  background: #3b82f6;
  color: white;
}
.priority-queue-container .queue-item .add-to-queue:hover {
  background: #2563eb;
}
.priority-queue-container .queue-item .remove-from-queue {
  background: #ef4444;
  color: white;
}
.priority-queue-container .queue-item .remove-from-queue:hover {
  background: #dc2626;
}
/**
 * ==================== updatelog.less ====================
 * 更新记录弹窗样式
 * 最后更新：2026-05-11
 */
/* 更新记录弹窗样式 */
.update-log-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.update-log-mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
}
.update-log-content {
  position: relative;
  width: 90%;
  max-width: 500px;
  max-height: 80%;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: updateLogSlideIn 0.3s ease;
  border: 1px solid rgba(192, 160, 128, 0.3);
}
@keyframes updateLogSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.update-log-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-secondary);
  background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 3px, rgba(0, 0, 0, 0.03) 3px 4px, transparent 4px 6px);
}
.update-log-icon {
  font-size: 24px;
  margin-right: 10px;
}
.update-log-title {
  flex: 1;
  font-size: 18px;
  font-weight: bold;
  color: var(--accent-bright);
  letter-spacing: 0.1em;
  text-shadow: 0 0 10px var(--accent-glow);
}
.update-log-close {
  width: 32px;
  height: 32px;
  background: #22323a;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s;
}
.update-log-close:hover {
  background: var(--color-danger);
  border-color: var(--color-danger);
  color: white;
}
.update-log-close:active {
  transform: scale(0.96);
}
.update-log-close:hover {
  color: #fff;
}
.update-log-body {
  flex: 1;
  overflow-y: auto;
  padding: 15px 20px;
  max-height: 400px;
}
.update-log-version {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 15px 0 8px 0;
}
.version-badge {
  background: #c0a080;
  color: #1a1a2e;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
}
.update-date {
  font-size: 11px;
  color: #888;
}
.update-log-item {
  padding: 8px 0 8px 20px;
  border-left: 2px solid #c0a080;
  margin-left: 10px;
  color: #ccc;
  font-size: 13px;
  line-height: 1.5;
}
.update-log-footer {
  padding: 15px 20px;
  border-top: 1px solid #2a2a4a;
  display: flex;
  justify-content: center;
}
.update-log-confirm {
  background: linear-gradient(135deg, #c0a080, #a08060);
  border: none;
  padding: 10px 30px;
  border-radius: 12px;
  color: #1a1a2e;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
}
.update-log-confirm:hover {
  transform: scale(1.02);
  background: linear-gradient(135deg, #d0b090, #b09070);
}
.update-log-confirm.update-btn {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
}
.update-log-confirm.force {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  animation: pulse 1s infinite;
}
@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
  }
}
.force-update-tip {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid #ef4444;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 15px;
  text-align: center;
  color: #ef4444;
  font-size: 14px;
}
.update-log-module {
  background: linear-gradient(135deg, #0f0f1a, #1a1a2a);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: -webkit-fill-available;
  overflow: hidden;
}
.update-log-module .update-log-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--grad-card);
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
  position: relative;
  background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 3px, rgba(0, 0, 0, 0.04) 3px 4px, transparent 4px 6px);
  justify-content: center;
}
.update-log-module .update-log-header h2 {
  font-size: 16px;
  font-weight: bold;
  color: var(--accent-bright);
  letter-spacing: 0.15em;
  padding: 4px 16px;
  position: relative;
  background: linear-gradient(90deg, rgba(62, 124, 140, 0.18), transparent 70%);
  border-left: 2px solid var(--accent-primary);
  text-shadow: 0 0 10px var(--accent-glow);
  margin: 0;
}
.update-log-module .update-log-back-btn {
  display: block;
  width: calc(100% - 32px);
  margin: 10px 16px;
  text-align: center;
  padding: 10px 0;
  border: none;
  border-radius: 10px;
  background: #4b5563;
  color: #e5e7eb;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.update-log-module .update-log-back-btn:hover {
  background: #6b7280;
}
.update-log-module .update-log-back-btn:active {
  transform: scale(0.98);
}
.update-log-module .update-log-body {
  flex: 1;
  overflow-y: auto;
  padding: 15px 20px;
  max-height: none;
  -webkit-overflow-scrolling: touch;
}
.update-log-module .update-log-loading {
  padding: 30px 0;
  text-align: center;
  color: #888;
  font-size: 14px;
}
/**
 * ==================== 重生弹窗样式 ====================
 * 最后更新：2026-05-11
 * 说明：兼容主题切换
 */
.reincarnation-popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
}
.reincarnation-popup .popup-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
}
.reincarnation-popup .popup-content {
  position: relative;
  width: 420px;
  max-width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--bg-popup);
  border: 2px solid var(--accent-primary);
  border-radius: 12px;
  padding: 0;
  z-index: 100001;
  scrollbar-width: none;
  -ms-overflow-style: none;
  animation: reincarnationFadeIn 0.2s ease;
}
.reincarnation-popup .popup-content::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
  background: transparent;
}
.reincarnation-popup .popup-content .popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-secondary);
  background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 3px, rgba(0, 0, 0, 0.03) 3px 4px, transparent 4px 6px);
  border-radius: 8px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.reincarnation-popup .popup-content .popup-body {
  padding: 16px;
}
.reincarnation-popup .popup-content .popup-footer {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
  border-radius: 0 0 20px 20px;
  position: sticky;
  bottom: 0;
}
.reincarnation-roots-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.reincarnation-root-card {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid var(--border-color);
  position: relative;
}
.reincarnation-root-card:hover {
  transform: translateY(-2px);
  background: rgba(0, 0, 0, 0.5);
}
.reincarnation-root-card.available {
  border-color: var(--accent-primary);
  cursor: pointer;
}
.reincarnation-root-card.available:hover {
  box-shadow: 0 0 10px rgba(232, 140, 58, 0.3);
}
.reincarnation-root-card.completed {
  opacity: 0.6;
  cursor: not-allowed;
  background: rgba(16, 185, 129, 0.1);
  border-color: #10b981;
}
.reincarnation-root-card .root-icon {
  font-size: 28px;
  margin-bottom: 6px;
}
.reincarnation-root-card .root-name {
  font-size: 14px;
  font-weight: bold;
  color: var(--accent-primary);
  margin-bottom: 4px;
}
.reincarnation-root-card .root-value {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.reincarnation-root-card .root-desc {
  font-size: 10px;
  color: var(--text-secondary);
  line-height: 1.3;
  margin-bottom: 8px;
}
.reincarnation-root-card .root-badge {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 12px;
  display: inline-block;
}
.reincarnation-root-card .root-badge.completed {
  background: #10b981;
  color: white;
}
.reincarnation-root-card .root-badge.available {
  background: var(--accent-primary);
  color: var(--bg-primary);
}
.reincarnation-root-card .root-badge.locked {
  background: #ef4444;
  color: white;
}
@keyframes reincarnationFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@media (max-width: 430px) {
  .reincarnation-roots-grid {
    grid-template-columns: 1fr;
  }
}
/**
 * ==================== 称号系统样式 ====================
 */
.title-module {
  background: linear-gradient(135deg, #0f0f1a, #1a1a2a);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: -webkit-fill-available;
  overflow: hidden;
}
.title-module .title-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--grad-card);
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
  position: relative;
  background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 3px, rgba(0, 0, 0, 0.04) 3px 4px, transparent 4px 6px);
  justify-content: center;
  padding: 0 16px;
}
.title-module .title-header h2 {
  font-size: 16px;
  font-weight: bold;
  color: var(--accent-bright);
  margin: 0;
  letter-spacing: 0.15em;
  padding: 4px 16px;
  position: relative;
  background: linear-gradient(90deg, rgba(62, 124, 140, 0.18), transparent 70%);
  border-left: 2px solid var(--accent-primary);
  text-shadow: 0 0 10px var(--accent-glow);
  border-left: none;
  background: none;
  padding: 0;
}
.title-module .title-back-btn {
  display: block;
  width: calc(100% - 32px);
  margin: 10px 16px;
  text-align: center;
  padding: 10px 0;
  border: none;
  border-radius: 10px;
  background: #4b5563;
  color: #e5e7eb;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.title-module .title-back-btn:hover {
  background: #6b7280;
}
.title-module .title-back-btn:active {
  transform: scale(0.98);
}
.title-module .title-stats {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.title-module .title-stats .title-stats-card {
  flex: 1;
  min-width: 150px;
  background: rgba(26, 26, 42, 0.8);
  border: 1px solid rgba(192, 160, 128, 0.3);
  border-radius: 12px;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.title-module .title-stats .title-stats-card .title-stats-icon {
  font-size: 32px;
}
.title-module .title-stats .title-stats-card .title-stats-info {
  display: flex;
  flex-direction: column;
}
.title-module .title-stats .title-stats-card .title-stats-info .title-stats-label {
  font-size: 12px;
  color: #888;
}
.title-module .title-stats .title-stats-card .title-stats-info .title-stats-value {
  font-size: 18px;
  font-weight: bold;
  color: #c0a080;
}
.title-module .title-filter-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  padding: 0 16px 10px;
  border-bottom: 1px solid rgba(192, 160, 128, 0.2);
  flex-shrink: 0;
}
.title-module .title-filter-bar .title-filter-btn {
  background: transparent;
  border: none;
  padding: 8px 16px;
  color: #888;
  font-size: 14px;
  cursor: pointer;
  border-radius: 12px;
  transition: all 0.2s;
}
.title-module .title-filter-bar .title-filter-btn.active {
  background: rgba(192, 160, 128, 0.2);
  color: #c0a080;
}
.title-module .title-filter-bar .title-filter-btn:hover:not(.active) {
  background: rgba(255, 255, 255, 0.05);
  color: #ccc;
}
.title-module .title-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.title-module .title-item {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(26, 26, 42, 0.6);
  border: 2px solid rgba(192, 160, 128, 0.2);
  border-radius: 12px;
  padding: 15px;
  transition: all 0.2s;
  position: relative;
}
.title-module .title-item:hover {
  background: rgba(26, 26, 42, 0.9);
  border-color: rgba(192, 160, 128, 0.4);
}
.title-module .title-item.current {
  background: rgba(192, 160, 128, 0.1);
  box-shadow: 0 0 15px rgba(192, 160, 128, 0.2);
}
.title-module .title-item.unowned {
  opacity: 0.7;
}
.title-module .title-item.quality-white {
  border-color: #9ca3af;
  border-left: 4px solid #9ca3af;
}
.title-module .title-item.quality-green {
  border-color: #10b981;
  border-left: 4px solid #10b981;
}
.title-module .title-item.quality-blue {
  border-color: #3b82f6;
  border-left: 4px solid #3b82f6;
}
.title-module .title-item.quality-purple {
  border-color: #a855f7;
  border-left: 4px solid #a855f7;
}
.title-module .title-item.quality-orange {
  border-color: #f59e0b;
  border-left: 4px solid #f59e0b;
}
.title-module .title-item.quality-red {
  border-color: #ef4444;
  border-left: 4px solid #ef4444;
}
.title-module .title-item.quality-rainbow {
  border: 2px solid #f59e0b;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.5), 0 0 4px rgba(239, 68, 68, 0.3);
}
.title-module .title-item.quality-rainbow.current {
  border-color: #e88c3a;
  box-shadow: 0 0 20px rgba(232, 140, 58, 0.6);
}
.title-module .title-item .title-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  border-left: 3px solid;
  flex-shrink: 0;
  transition: all 0.2s;
}
.title-module .title-item .title-icon.quality-white {
  border-left-color: #9ca3af;
  color: #9ca3af;
}
.title-module .title-item .title-icon.quality-green {
  border-left-color: #10b981;
  color: #10b981;
}
.title-module .title-item .title-icon.quality-blue {
  border-left-color: #3b82f6;
  color: #3b82f6;
}
.title-module .title-item .title-icon.quality-purple {
  border-left-color: #a855f7;
  color: #a855f7;
}
.title-module .title-item .title-icon.quality-orange {
  border-left-color: #f59e0b;
  color: #f59e0b;
}
.title-module .title-item .title-icon.quality-red {
  border-left-color: #ef4444;
  color: #ef4444;
}
.title-module .title-item .title-icon.quality-rainbow {
  border-left-color: #f59e0b;
  background: linear-gradient(135deg, #ef4444, #f59e0b, #10b981, #3b82f6, #a855f7);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.title-module .title-item .title-info {
  flex: 1;
}
.title-module .title-item .title-info .title-name {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 4px;
  transition: color 0.2s;
}
.title-module .title-item .title-info .title-name.quality-white {
  color: #9ca3af;
}
.title-module .title-item .title-info .title-name.quality-green {
  color: #10b981;
}
.title-module .title-item .title-info .title-name.quality-blue {
  color: #3b82f6;
}
.title-module .title-item .title-info .title-name.quality-purple {
  color: #a855f7;
}
.title-module .title-item .title-info .title-name.quality-orange {
  color: #f59e0b;
}
.title-module .title-item .title-info .title-name.quality-red {
  color: #ef4444;
}
.title-module .title-item .title-info .title-name.quality-rainbow {
  background: linear-gradient(135deg, #ef4444, #f59e0b, #10b981, #3b82f6, #a855f7);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.title-module .title-item .title-info .title-desc {
  font-size: 12px;
  color: #888;
  margin-bottom: 8px;
}
.title-module .title-item .title-info .title-progress {
  display: flex;
  align-items: center;
  gap: 10px;
}
.title-module .title-item .title-info .title-progress .title-progress-bar {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}
.title-module .title-item .title-info .title-progress .title-progress-bar .title-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #c0a080, #e0c0a0);
  border-radius: 3px;
  width: 0%;
  transition: width 0.3s;
}
.title-module .title-item .title-info .title-progress .title-progress-text {
  font-size: 11px;
  color: #888;
  min-width: 60px;
}
.title-module .title-item .title-action {
  flex-shrink: 0;
}
.title-module .title-item .title-action .title-equip-btn {
  background: rgba(192, 160, 128, 0.2);
  border: 1px solid #c0a080;
  border-radius: 12px;
  padding: 8px 20px;
  color: #c0a080;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}
.title-module .title-item .title-action .title-equip-btn:hover:not(:disabled) {
  background: rgba(192, 160, 128, 0.4);
}
.title-module .title-item .title-action .title-equip-btn.equipped {
  background: #c0a080;
  color: #1a1a2a;
  cursor: default;
}
.title-module .title-item .title-action .title-equip-btn:disabled {
  opacity: 0.5;
  cursor: default;
}
.title-module .title-item .title-action .title-locked {
  font-size: 12px;
  color: #555;
}
.title-unlock-floating {
  position: fixed;
  top: 30%;
  left: 50%;
  transform: translateX(-50%) scale(0);
  background: linear-gradient(135deg, #1a1a3a, #2a2a4a);
  border: 2px solid #c0a080;
  border-radius: 12px;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 20000;
  animation: titleUnlockAnim 2.5s ease-out forwards;
  box-shadow: 0 0 40px rgba(192, 160, 128, 0.5);
  backdrop-filter: blur(10px);
  white-space: nowrap;
}
.title-unlock-floating .title-unlock-icon {
  font-size: 32px;
  animation: titleIconBounce 0.5s ease-out;
}
.title-unlock-floating .title-unlock-text {
  font-size: 13px;
  color: #888;
}
.title-unlock-floating .title-unlock-name {
  font-size: 18px;
  font-weight: bold;
  background: linear-gradient(135deg, #c0a080, #e0c0a0);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
@keyframes titleUnlockAnim {
  0% {
    transform: translateX(-50%) scale(0);
    opacity: 0;
    top: 30%;
  }
  20% {
    transform: translateX(-50%) scale(1.1);
    opacity: 1;
  }
  30% {
    transform: translateX(-50%) scale(1);
  }
  70% {
    transform: translateX(-50%) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateX(-50%) scale(0.9);
    opacity: 0;
    top: 20%;
  }
}
@keyframes titleIconBounce {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3);
  }
}
.title-entry-floating {
  position: fixed;
  top: 25%;
  left: 50%;
  transform: translateX(-50%) scale(0);
  background: linear-gradient(135deg, #1a1a3a, #2a2a4a);
  border-radius: 12px;
  padding: 12px 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 20000;
  animation: titleEntryAnim 2s ease-out forwards;
  backdrop-filter: blur(10px);
  white-space: nowrap;
}
.title-entry-floating .title-entry-icon {
  font-size: 28px;
  animation: titleEntryIconBounce 0.5s ease-out;
}
.title-entry-floating .title-entry-name {
  font-size: 18px;
  font-weight: bold;
}
.title-entry-floating .title-entry-desc {
  font-size: 11px;
  color: #888;
  padding-left: 10px;
  border-left: 1px solid rgba(192, 160, 128, 0.3);
}
@keyframes titleEntryAnim {
  0% {
    transform: translateX(-50%) scale(0);
    opacity: 0;
    top: 30%;
  }
  20% {
    transform: translateX(-50%) scale(1.1);
    opacity: 1;
  }
  30% {
    transform: translateX(-50%) scale(1);
  }
  70% {
    transform: translateX(-50%) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateX(-50%) scale(0.9);
    opacity: 0;
    top: 20%;
  }
}
@keyframes titleEntryIconBounce {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2) rotate(10deg);
  }
}
.achievement-overview {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.achievement-overview .achievement-points-card,
.achievement-overview .achievement-stats-card {
  flex: 1;
  min-width: 110px;
  background: rgba(26, 26, 42, 0.8);
  border: 1px solid rgba(192, 160, 128, 0.3);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.achievement-overview .achievement-points-card {
  border-color: rgba(232, 140, 58, 0.5);
  box-shadow: 0 0 12px rgba(232, 140, 58, 0.15);
}
.achievement-overview .achievement-points-icon,
.achievement-overview .achievement-stats-icon {
  font-size: 28px;
}
.achievement-overview .achievement-points-info,
.achievement-overview .achievement-stats-info {
  display: flex;
  flex-direction: column;
}
.achievement-overview .achievement-points-value {
  font-size: 20px;
  font-weight: bold;
  color: #e88c3a;
}
.achievement-overview .achievement-points-label,
.achievement-overview .achievement-stats-label {
  font-size: 11px;
  color: #888;
}
.achievement-overview .achievement-stats-value {
  font-size: 16px;
  font-weight: bold;
  color: #c0a080;
}
.achievement-category-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  overflow-x: auto;
  padding: 0 16px 8px;
  -webkit-overflow-scrolling: touch;
  user-select: none;
  flex-shrink: 0;
}
.achievement-category-bar::-webkit-scrollbar {
  height: 6px;
}
.achievement-category-bar::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}
.achievement-category-bar::-webkit-scrollbar-thumb {
  background: rgba(192, 160, 128, 0.4);
  border-radius: 3px;
}
.achievement-category-bar.dragging {
  cursor: grabbing;
}
.achievement-category-bar.dragging .achievement-category {
  pointer-events: none;
}
.achievement-category-bar:not(.dragging) {
  cursor: grab;
}
.achievement-category-bar .achievement-category {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: rgba(26, 26, 42, 0.6);
  border: 1px solid rgba(192, 160, 128, 0.2);
  border-radius: 12px;
  color: #c0a080;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s;
}
.achievement-category-bar .achievement-category .cat-icon {
  font-size: 14px;
}
.achievement-category-bar .achievement-category .cat-count {
  font-size: 10px;
  color: #888;
  background: rgba(0, 0, 0, 0.3);
  padding: 1px 6px;
  border-radius: 8px;
}
.achievement-category-bar .achievement-category.active {
  background: rgba(192, 160, 128, 0.25);
  border-color: #c0a080;
}
.achievement-category-bar .achievement-category.active .cat-count {
  color: #c0a080;
}
.achievement-wall {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  padding: 0 16px 10px;
}
.achievement-card {
  background: rgba(26, 26, 42, 0.6);
  border: 2px solid rgba(192, 160, 128, 0.2);
  border-radius: 8px;
  padding: 12px;
  transition: all 0.2s;
}
.achievement-card:hover {
  background: rgba(26, 26, 42, 0.9);
}
.achievement-card.current {
  background: rgba(192, 160, 128, 0.1);
  box-shadow: 0 0 12px rgba(192, 160, 128, 0.2);
}
.achievement-card.unowned {
  opacity: 0.75;
}
.achievement-card.quality-white {
  border-left: 4px solid #9ca3af;
}
.achievement-card.quality-green {
  border-left: 4px solid #10b981;
}
.achievement-card.quality-blue {
  border-left: 4px solid #3b82f6;
}
.achievement-card.quality-purple {
  border-left: 4px solid #a855f7;
}
.achievement-card.quality-orange {
  border-left: 4px solid #f59e0b;
}
.achievement-card.quality-red {
  border-left: 4px solid #ef4444;
}
.achievement-card.quality-rainbow {
  border: 2px solid #f59e0b;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}
.achievement-card.quality-rainbow.current {
  box-shadow: 0 0 20px rgba(232, 140, 58, 0.6);
}
.achievement-card .achievement-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.achievement-card .achievement-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  flex-shrink: 0;
}
.achievement-card .achievement-icon.locked {
  filter: grayscale(1);
  opacity: 0.5;
}
.achievement-card .achievement-info {
  flex: 1;
  min-width: 0;
}
.achievement-card .achievement-info .achievement-name {
  font-size: 15px;
  font-weight: bold;
  margin-bottom: 3px;
}
.achievement-card .achievement-info .achievement-name.locked-text {
  color: #666;
}
.achievement-card .achievement-info .achievement-desc {
  font-size: 11px;
  color: #888;
}
.achievement-card .achievement-points-badge {
  display: flex;
  align-items: center;
  gap: 3px;
  background: rgba(232, 140, 58, 0.15);
  border: 1px solid rgba(232, 140, 58, 0.4);
  border-radius: 10px;
  padding: 3px 8px;
  flex-shrink: 0;
}
.achievement-card .achievement-points-badge .points-icon {
  font-size: 12px;
}
.achievement-card .achievement-points-badge .points-num {
  font-size: 12px;
  font-weight: bold;
  color: #e88c3a;
}
.achievement-card .achievement-points-badge.locked {
  opacity: 0.4;
}
.achievement-card .achievement-points-badge.locked .points-num {
  color: #888;
}
.achievement-card .achievement-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.achievement-card .achievement-progress .achievement-progress-bar {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}
.achievement-card .achievement-progress .achievement-progress-bar .achievement-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #c0a080, #e88c3a);
  border-radius: 3px;
  width: 0%;
  transition: width 0.3s;
}
.achievement-card .achievement-progress .achievement-progress-text {
  font-size: 11px;
  color: #888;
  min-width: 60px;
  text-align: right;
}
.achievement-card .achievement-progress-special {
  margin-top: 8px;
  font-size: 11px;
  color: #c0a080;
  text-align: center;
}
.achievement-card .achievement-action {
  margin-top: 8px;
  text-align: right;
}
.achievement-card .achievement-action .achievement-equip-btn {
  background: rgba(192, 160, 128, 0.2);
  border: 1px solid #c0a080;
  border-radius: 12px;
  padding: 6px 18px;
  color: #c0a080;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.achievement-card .achievement-action .achievement-equip-btn:hover:not(:disabled) {
  background: rgba(192, 160, 128, 0.4);
}
.achievement-card .achievement-action .achievement-equip-btn.equipped {
  background: #c0a080;
  color: #1a1a2a;
  cursor: default;
}
.achievement-card .achievement-action .achievement-equip-btn:disabled {
  opacity: 0.6;
  cursor: default;
}
/**
 * ==================== 法则系统样式 ====================
 */
.law-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.law-modal .law-mask {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
}
.law-modal .law-panel {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 500px;
  background: linear-gradient(135deg, #1a1a2e, #0f0f1a);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: lawFadeIn 0.3s ease;
}
.law-modal .law-topbar {
  flex-shrink: 0;
  z-index: 10;
}
.law-modal .law-topbar .law-title {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 14px 16px 8px;
  font-size: 16px;
  font-weight: bold;
  color: var(--accent-bright);
}
.law-modal .law-topbar .law-title .law-title-icon {
  font-size: 20px;
}
.law-modal .law-topbar .law-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px 10px;
}
.law-modal .law-topbar .law-toolbar .law-back-btn {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: #e88c3a;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}
.law-modal .law-topbar .law-toolbar .law-back-btn:active {
  opacity: 0.7;
}
.law-modal .law-topbar .law-toolbar .law-fragments {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.4);
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  border-left: 2px solid var(--accent-primary);
}
.law-modal .law-topbar .law-toolbar .law-fragments .fragments-icon {
  font-size: 16px;
}
.law-modal .law-topbar .law-toolbar .law-fragments .fragments-count {
  font-size: 18px;
  font-weight: bold;
  color: var(--accent-bright);
}
.law-modal .law-topbar .law-toolbar .law-fragments .fragments-label {
  font-size: 11px;
  color: var(--text-muted);
}
.law-modal .law-content {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px 160px 16px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.law-modal .law-content::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
  background: transparent;
}
@keyframes lawFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.law-tip {
  background: rgba(232, 140, 58, 0.1);
  border-left: 3px solid #e88c3a;
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.law-tip .tip-icon {
  font-size: 14px;
}
.law-tip .tip-text {
  font-size: 12px;
  color: #d4d4d8;
}
.law-locked {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}
.law-locked .law-locked-icon {
  font-size: 64px;
  margin-bottom: 20px;
  opacity: 0.5;
}
.law-locked .law-locked-title {
  font-size: 18px;
  font-weight: bold;
  color: #e88c3a;
  margin-bottom: 8px;
}
.law-locked .law-locked-desc {
  font-size: 13px;
  color: #9ca3af;
}
.law-card {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s;
}
.law-card:hover {
  background: rgba(0, 0, 0, 0.4);
  border-color: rgba(232, 140, 58, 0.2);
}
.law-card.law-card-locked {
  opacity: 0.6;
}
.law-card.law-card-locked .law-unlock-hint {
  display: block;
}
.law-card .law-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.law-card .law-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  border: 1px solid;
  background: rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}
.law-card .law-info {
  flex: 1;
  min-width: 0;
}
.law-card .law-info .law-name-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 2px;
}
.law-card .law-info .law-name-wrapper .law-name {
  font-size: 15px;
  font-weight: bold;
  color: #e2e8f0;
}
.law-card .law-info .law-name-wrapper .law-level-display {
  font-size: 12px;
  font-weight: bold;
  color: #e88c3a;
  background: rgba(232, 140, 58, 0.15);
  padding: 1px 10px;
  border-radius: 12px;
  flex-shrink: 0;
}
.law-card .law-info .law-desc {
  font-size: 11px;
  color: #9ca3af;
}
.law-card .law-progress-wrapper {
  margin-bottom: 10px;
}
.law-card .law-progress-wrapper .law-progress-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #9ca3af;
  margin-bottom: 4px;
}
.law-card .law-progress-wrapper .law-progress-label .law-progress-label-left {
  display: flex;
  align-items: center;
  gap: 4px;
}
.law-card .law-progress-wrapper .law-progress-label .law-progress-text {
  font-size: 11px;
  color: #a0aec0;
}
.law-card .law-progress-wrapper .law-progress-label .law-progress-text .law-progress-current {
  color: #e88c3a;
}
.law-card .law-progress-wrapper .law-progress {
  height: 6px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 3px;
  overflow: hidden;
}
.law-card .law-progress-wrapper .law-progress .law-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #e88c3a, #f59e0b);
  border-radius: 3px;
  transition: width 0.3s ease;
}
.law-card .law-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.law-card .law-bonus {
  font-size: 12px;
  color: #a0aec0;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.law-card .law-bonus .bonus-icon {
  font-size: 12px;
}
.law-card .law-bonus .bonus-text {
  color: #d4d4d8;
}
.law-card .law-bonus .law-next {
  color: #6b7280;
  font-size: 10px;
  margin-left: 2px;
}
.law-card .law-unlock-hint {
  font-size: 10px;
  color: #f59e0b;
  display: none;
}
.law-card .law-upgrade-btn {
  background: linear-gradient(90deg, #e88c3a, #f59e0b);
  border: none;
  border-radius: 12px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: bold;
  color: #1f2937;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.law-card .law-upgrade-btn:hover:not(.disabled) {
  transform: scale(1.02);
  filter: brightness(1.05);
}
.law-card .law-upgrade-btn:active:not(.disabled) {
  transform: scale(0.96);
}
.law-card .law-upgrade-btn.disabled,
.law-card .law-upgrade-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.law-card .law-unlock-btn {
  background: linear-gradient(90deg, #a855f7, #6366f1);
  border: none;
  border-radius: 12px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.4);
}
.law-card .law-unlock-btn:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.6);
}
.law-card .law-unlock-btn:active {
  transform: scale(0.96);
}
.law-card .law-max-tag {
  font-size: 11px;
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  padding: 4px 10px;
  border-radius: 12px;
  white-space: nowrap;
}
.law-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  padding: 16px;
  border-top: 1px solid rgba(232, 140, 58, 0.2);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.law-footer .law-insight-btn {
  background: linear-gradient(90deg, #8b5cf6, #6d28d9);
  border: none;
  border-radius: 12px;
  padding: 12px;
  font-size: 16px;
  font-weight: bold;
  color: white;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.law-footer .law-insight-btn:hover {
  transform: scale(1.02);
  filter: brightness(1.05);
}
.law-footer .law-insight-btn:active {
  transform: scale(0.98);
}
.law-footer .law-insight-btn .insight-icon {
  font-size: 18px;
}
.law-footer .law-insight-limit {
  text-align: center;
  font-size: 11px;
  color: #9ca3af;
}
.law-footer .law-close-btn {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(232, 140, 58, 0.3);
  border-radius: 12px;
  padding: 10px;
  font-size: 14px;
  color: #e88c3a;
  cursor: pointer;
  transition: all 0.2s;
}
.law-footer .law-close-btn:hover {
  background: rgba(232, 140, 58, 0.1);
}
.law-footer .law-close-btn:active {
  transform: scale(0.98);
}
.law-empty {
  text-align: center;
  padding: 60px 20px;
  color: #9ca3af;
}
/**
 * ==================== immortal-lottery.less ====================
 * 工业区六合彩模块样式
 * 最后更新：2026-07-11
 */
.lottery-module {
  background: var(--bg-primary);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: -webkit-fill-available;
  overflow: hidden;
}
.lottery-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}
.lottery-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--grad-card);
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
  position: relative;
  background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 3px, rgba(0, 0, 0, 0.04) 3px 4px, transparent 4px 6px);
  justify-content: center;
  gap: 12px;
}
.lottery-header-bar h2 {
  font-size: 16px;
  font-weight: bold;
  color: var(--accent-bright);
  margin: 0;
  letter-spacing: 0.15em;
  padding: 4px 16px;
  position: relative;
  background: linear-gradient(90deg, rgba(62, 124, 140, 0.18), transparent 70%);
  border-left: 2px solid var(--accent-primary);
  text-shadow: 0 0 10px var(--accent-glow);
}
.lottery-back-btn {
  display: block;
  width: calc(100% - 32px);
  margin: 10px 16px;
  text-align: center;
  padding: 10px 0;
  border: none;
  border-radius: 10px;
  background: #4b5563;
  color: #e5e7eb;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.lottery-back-btn:hover {
  background: #6b7280;
}
.lottery-back-btn:active {
  transform: scale(0.98);
}
.lottery-content {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  -webkit-overflow-scrolling: touch;
}
.lottery-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: var(--bg-card);
  border-radius: 12px;
  margin-bottom: 10px;
}
.lottery-header .lottery-draw-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lottery-header .lottery-draw-no {
  font-size: 15px;
  color: var(--text-secondary);
}
.lottery-header .lottery-countdown {
  font-size: 22px;
  font-weight: bold;
  color: #f59e0b;
  font-family: monospace;
  letter-spacing: 1px;
}
.lottery-header .lottery-countdown-urgent {
  color: #ef4444;
  animation: lottery-blink 1s infinite;
}
.lottery-header .lottery-balance {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.lottery-header .lottery-balance-item {
  font-size: 13px;
  color: var(--text-secondary);
}
.lottery-header .lottery-balance-item span {
  color: var(--accent-primary);
  font-weight: bold;
}
@keyframes lottery-blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}
.lottery-pool {
  padding: 12px;
  background: linear-gradient(135deg, #1e3a5f 0%, #2d1b4e 100%);
  border-radius: 12px;
  margin-bottom: 10px;
}
.lottery-pool .lottery-pool-title {
  font-size: 14px;
  color: #e88c3a;
  font-weight: bold;
  margin-bottom: 8px;
}
.lottery-pool .lottery-pool-info {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 8px;
}
.lottery-pool .lottery-pool-item {
  font-size: 13px;
  color: #e5e7eb;
}
.lottery-pool .lottery-pool-item span {
  color: #e88c3a;
  font-weight: bold;
}
.lottery-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}
.lottery-tabs .lottery-tab {
  flex: 1;
  padding: 10px 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.lottery-tabs .lottery-tab .lottery-odds {
  font-size: 11px;
  color: #f59e0b;
  font-weight: bold;
}
.lottery-tabs .lottery-tab.active {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: white;
  border-color: transparent;
}
.lottery-tabs .lottery-tab.active .lottery-odds {
  color: #fde047;
}
.lottery-bet-area {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
}
.lottery-bet-title {
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 10px;
  text-align: center;
}
.lottery-bet-title .lottery-highlight {
  color: #f59e0b;
  font-weight: bold;
  font-size: 16px;
}
.lottery-balls-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}
.lottery-balls-grid .lottery-ball {
  aspect-ratio: 1;
  border: 2px solid var(--border-color);
  background: var(--bg-primary);
  color: var(--text-primary);
  border-radius: 50%;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lottery-balls-grid .lottery-ball:hover {
  border-color: #3b82f6;
  transform: scale(1.1);
}
.lottery-balls-grid .lottery-ball.selected {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: white;
  border-color: transparent;
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.5);
}
.lottery-parity-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.lottery-parity-grid .lottery-parity-btn {
  padding: 20px;
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.lottery-parity-grid .lottery-parity-btn .lottery-parity-icon {
  font-size: 28px;
  font-weight: bold;
  color: var(--text-primary);
}
.lottery-parity-grid .lottery-parity-btn .lottery-parity-desc {
  font-size: 12px;
  color: var(--text-secondary);
}
.lottery-parity-grid .lottery-parity-btn.selected {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  border-color: transparent;
}
.lottery-parity-grid .lottery-parity-btn.selected .lottery-parity-icon,
.lottery-parity-grid .lottery-parity-btn.selected .lottery-parity-desc {
  color: white;
}
.lottery-zodiac-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.lottery-zodiac-grid .lottery-zodiac-btn {
  padding: 10px 6px;
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.lottery-zodiac-grid .lottery-zodiac-btn .lottery-zodiac-icon {
  font-size: 24px;
}
.lottery-zodiac-grid .lottery-zodiac-btn .lottery-zodiac-name {
  font-size: 14px;
  font-weight: bold;
  color: var(--text-primary);
}
.lottery-zodiac-grid .lottery-zodiac-btn .lottery-zodiac-numbers {
  font-size: 10px;
  color: var(--text-secondary);
}
.lottery-zodiac-grid .lottery-zodiac-btn.selected {
  background: linear-gradient(135deg, #10b981, #059669);
  border-color: transparent;
  transform: scale(1.05);
}
.lottery-zodiac-grid .lottery-zodiac-btn.selected .lottery-zodiac-name {
  color: white;
}
.lottery-zodiac-grid .lottery-zodiac-btn.selected .lottery-zodiac-numbers {
  color: #d1fae5;
}
.lottery-bet-input-area {
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
}
.lottery-bet-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.lottery-bet-input-row .lottery-bet-label {
  width: 60px;
  font-size: 14px;
  color: var(--text-primary);
  flex-shrink: 0;
}
.lottery-bet-input-row .lottery-bet-input {
  flex: 1;
  padding: 8px 12px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 15px;
  outline: none;
  min-width: 0;
}
.lottery-bet-input-row .lottery-bet-input:focus {
  border-color: #3b82f6;
}
.lottery-bet-input-row .lottery-bet-balance {
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
}
.lottery-bet-hint {
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
  margin: 8px 0;
}
.lottery-bet-submit {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  border: none;
  border-radius: 10px;
  color: white;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
}
.lottery-bet-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}
.lottery-bet-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.lottery-claim-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding: 8px 10px;
  background: var(--bg-primary);
  border: 1px dashed var(--border-color);
  border-radius: 10px;
}
.lottery-claim-row .lottery-claim-info {
  font-size: 12px;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lottery-claim-row .lottery-claim-btn {
  flex-shrink: 0;
  padding: 8px 14px;
  background: linear-gradient(135deg, #10b981, #059669);
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
}
.lottery-claim-row .lottery-claim-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}
.lottery-claim-row .lottery-claim-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.lottery-bottom-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}
.lottery-bottom-tabs .lottery-bottom-tab {
  flex: 1;
  padding: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}
.lottery-bottom-tabs .lottery-bottom-tab.active {
  background: var(--bg-primary);
  color: var(--accent-primary);
  border-color: var(--accent-primary);
  font-weight: bold;
}
.lottery-bottom-content {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 12px;
  min-height: 200px;
}
.lottery-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.lottery-table th {
  padding: 8px 4px;
  text-align: center;
  color: var(--text-secondary);
  font-weight: normal;
  border-bottom: 1px solid var(--border-color);
}
.lottery-table td {
  padding: 8px 4px;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
}
.lottery-table td small {
  color: var(--text-secondary);
  font-size: 11px;
}
.lottery-table .lottery-result-ball {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: white;
  border-radius: 50%;
  font-weight: bold;
  font-size: 13px;
}
.lottery-status-win {
  color: #10b981;
  font-weight: bold;
}
.lottery-status-lose {
  color: #ef4444;
}
.lottery-status-pending {
  color: #f59e0b;
}
.lottery-empty {
  text-align: center;
  padding: 40px 0;
  color: var(--text-secondary);
  font-size: 14px;
}
.lottery-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}
.lottery-pagination .lottery-page-btn {
  padding: 6px 14px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-primary);
  cursor: pointer;
  font-size: 13px;
}
.lottery-pagination .lottery-page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.lottery-pagination .lottery-page-info {
  font-size: 13px;
  color: var(--text-secondary);
}
.lottery-result-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: lottery-fade-in 0.3s;
}
@keyframes lottery-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.lottery-result-popup {
  background: var(--bg-card);
  border-radius: 12px;
  width: 85%;
  max-width: 360px;
  overflow: hidden;
  animation: lottery-pop-in 0.3s;
}
.lottery-result-popup.win {
  border: 2px solid #f59e0b;
}
.lottery-result-popup.lose {
  border: 2px solid #6b7280;
}
@keyframes lottery-pop-in {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
.lottery-result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
}
.lottery-result-header .lottery-result-title {
  font-size: 18px;
  font-weight: bold;
}
.lottery-result-header .lottery-result-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}
.lottery-result-body {
  padding: 20px;
  text-align: center;
}
.lottery-result-body .lottery-result-draw {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.lottery-result-body .lottery-result-number {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}
.lottery-result-body .lottery-result-ball-big {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: white;
  border-radius: 50%;
  font-size: 28px;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}
.lottery-result-body .lottery-result-zodiac {
  font-size: 24px;
}
.lottery-result-body .lottery-result-stats {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 2;
}
.lottery-result-body .lottery-result-win {
  color: #10b981;
  font-weight: bold;
  font-size: 16px;
}
.lottery-result-body .lottery-result-lose {
  color: var(--text-secondary);
}
.lottery-result-footer {
  padding: 0 20px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lottery-result-footer .lottery-result-claim-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #10b981, #059669);
  border: none;
  border-radius: 10px;
  color: white;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
}
.lottery-result-footer .lottery-result-claim-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}
.lottery-result-footer .lottery-result-claim-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.lottery-result-footer .lottery-result-ok-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  border: none;
  border-radius: 10px;
  color: white;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}
/**
 * ==================== 好友系统样式 ====================
 */
.friend-module {
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow: hidden;
}
.friend-module.hidden {
  display: none;
}
.friend-module .friend-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.friend-module .friend-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--grad-card);
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
  background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 3px, rgba(0, 0, 0, 0.04) 3px 4px, transparent 4px 6px);
  justify-content: center;
  position: relative;
}
.friend-module .friend-header h2 {
  font-size: 16px;
  font-weight: bold;
  color: var(--accent-bright);
  letter-spacing: 0.15em;
  padding: 4px 16px;
  position: relative;
  background: linear-gradient(90deg, rgba(62, 124, 140, 0.18), transparent 70%);
  border-left: 2px solid var(--accent-primary);
  text-shadow: 0 0 10px var(--accent-glow);
  margin: 0;
}
.friend-module .friend-header .friend-share-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(192, 160, 128, 0.15);
  border: 1px solid rgba(192, 160, 128, 0.3);
  border-radius: 8px;
  color: #c0a080;
  width: 32px;
  height: 32px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}
.friend-module .friend-header .friend-share-btn:hover {
  background: rgba(192, 160, 128, 0.3);
}
.friend-module .friend-back-btn {
  display: block;
  width: calc(100% - 32px);
  margin: 10px 16px;
  text-align: center;
  padding: 10px 0;
  border: none;
  border-radius: 10px;
  background: #4b5563;
  color: #e5e7eb;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.friend-module .friend-back-btn:hover {
  background: #6b7280;
}
.friend-module .friend-back-btn:active {
  transform: scale(0.98);
}
.friend-module .friend-tabs {
  display: flex;
  border-bottom: 1px solid rgba(192, 160, 128, 0.3);
}
.friend-module .friend-tabs .friend-tab {
  flex: 1;
  padding: 12px;
  background: transparent;
  border: none;
  color: #888;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}
.friend-module .friend-tabs .friend-tab.active {
  color: #c0a080;
  background: rgba(192, 160, 128, 0.1);
}
.friend-module .friend-tabs .friend-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: #c0a080;
}
.friend-module .friend-tabs .friend-tab-count {
  display: inline-block;
  min-width: 18px;
  padding: 0 4px;
  margin-left: 4px;
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border-radius: 9px;
  font-size: 11px;
  line-height: 16px;
  text-align: center;
}
.friend-module .friend-tabs .friend-tab-count.hidden {
  display: none;
}
.friend-module .friend-body {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.friend-module .friend-tab-panel {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}
.friend-module .friend-tab-panel.hidden {
  display: none;
}
.friend-module .friend-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.friend-module .friend-item {
  display: flex;
  align-items: center;
  padding: 10px 8px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  transition: background 0.2s;
}
.friend-module .friend-item:hover {
  background: rgba(255, 255, 255, 0.06);
}
.friend-module .friend-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4a90e2, #a855f7);
  color: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  flex-shrink: 0;
}
.friend-module .friend-info {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.friend-module .friend-info .friend-name {
  color: #e0e0e0;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.friend-module .friend-info .friend-account {
  color: #888;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.friend-module .friend-info .friend-msg-preview {
  color: #888;
  font-size: 12px;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.friend-module .friend-info .friend-time {
  color: #888;
  font-size: 11px;
  margin-top: 2px;
}
.friend-module .friend-unread-badge {
  min-width: 18px;
  padding: 0 5px;
  background: #ef4444;
  color: #fff;
  border-radius: 9px;
  font-size: 11px;
  line-height: 16px;
  text-align: center;
  margin: 0 6px 0 4px;
}
.friend-module .friend-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.friend-module .friend-action-btn {
  background: rgba(192, 160, 128, 0.15);
  border: 1px solid rgba(192, 160, 128, 0.3);
  border-radius: 6px;
  color: #c0a080;
  padding: 4px 8px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.friend-module .friend-action-btn:hover {
  background: rgba(192, 160, 128, 0.3);
}
.friend-module .friend-action-btn.accept-btn {
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.3);
}
.friend-module .friend-action-btn.reject-btn {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
}
.friend-module .friend-action-btn.remove-btn {
  color: #ef4444;
}
.friend-module .friend-empty {
  padding: 40px 16px;
  text-align: center;
  color: #888;
  font-size: 13px;
}
.friend-module .friend-empty.friend-empty-error {
  color: #ef4444;
}
.friend-module .friend-search-bar {
  display: flex;
  gap: 6px;
  padding: 8px;
  margin-bottom: 4px;
}
.friend-module .friend-search-bar input {
  flex: 1;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(192, 160, 128, 0.3);
  border-radius: 8px;
  color: #e0e0e0;
  padding: 8px 12px;
  font-size: 14px;
  outline: none;
}
.friend-module .friend-search-bar input::placeholder {
  color: #888;
}
.friend-module .friend-search-bar input:focus {
  border-color: #c0a080;
}
.friend-module .friend-search-bar button {
  background: rgba(192, 160, 128, 0.2);
  border: 1px solid rgba(192, 160, 128, 0.3);
  border-radius: 8px;
  color: #c0a080;
  padding: 0 14px;
  font-size: 13px;
  cursor: pointer;
}
.friend-module .friend-search-bar button:hover {
  background: rgba(192, 160, 128, 0.35);
}
.friend-chat-panel {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
}
.friend-chat-panel.hidden {
  display: none;
}
.friend-chat-panel .chat-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}
.friend-chat-panel .chat-container {
  position: relative;
  width: 92%;
  max-width: 420px;
  height: 75vh;
  max-height: 650px;
  background: linear-gradient(135deg, #0f0f1a, #1a1a2a);
  border: 1px solid rgba(192, 160, 128, 0.3);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.friend-chat-panel .chat-header {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(192, 160, 128, 0.3);
  gap: 8px;
}
.friend-chat-panel .chat-header .chat-back-btn,
.friend-chat-panel .chat-header .chat-close-btn {
  background: transparent;
  border: none;
  color: #c0a080;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
}
.friend-chat-panel .chat-header .chat-title {
  flex: 1;
  text-align: center;
}
.friend-chat-panel .chat-header .chat-title .chat-title-name {
  color: #e0e0e0;
  font-size: 15px;
  font-weight: 500;
}
.friend-chat-panel .chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.friend-chat-panel .chat-msg {
  display: flex;
  flex-direction: column;
  max-width: 80%;
}
.friend-chat-panel .chat-msg.mine {
  align-self: flex-end;
  align-items: flex-end;
}
.friend-chat-panel .chat-msg.mine .chat-msg-bubble {
  background: linear-gradient(135deg, #4a90e2, #5a9ef0);
  color: #fff;
  border-radius: 12px 12px 4px 12px;
}
.friend-chat-panel .chat-msg.theirs {
  align-self: flex-start;
  align-items: flex-start;
}
.friend-chat-panel .chat-msg.theirs .chat-msg-bubble {
  background: rgba(255, 255, 255, 0.08);
  color: #e0e0e0;
  border-radius: 12px 12px 12px 4px;
}
.friend-chat-panel .chat-msg .chat-msg-bubble {
  padding: 8px 12px;
  font-size: 14px;
  word-break: break-word;
  border: 1px solid rgba(192, 160, 128, 0.3);
}
.friend-chat-panel .chat-msg .chat-msg-time {
  font-size: 10px;
  color: #888;
  margin-top: 2px;
  padding: 0 4px;
}
.friend-chat-panel .chat-empty {
  text-align: center;
  color: #888;
  font-size: 13px;
  padding: 30px;
  margin: auto;
}
.friend-chat-panel .chat-input-bar {
  display: flex;
  padding: 10px;
  border-top: 1px solid rgba(192, 160, 128, 0.3);
  gap: 8px;
}
.friend-chat-panel .chat-input-bar input {
  flex: 1;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(192, 160, 128, 0.3);
  border-radius: 8px;
  color: #e0e0e0;
  padding: 8px 12px;
  font-size: 14px;
  outline: none;
}
.friend-chat-panel .chat-input-bar input::placeholder {
  color: #888;
}
.friend-chat-panel .chat-input-bar input:focus {
  border-color: #c0a080;
}
.friend-chat-panel .chat-input-bar button {
  background: linear-gradient(135deg, #4a90e2, #5a9ef0);
  border: none;
  border-radius: 8px;
  color: #fff;
  padding: 0 16px;
  font-size: 14px;
  cursor: pointer;
}
.friend-chat-panel .chat-input-bar button:hover {
  opacity: 0.9;
}
.friend-chat-panel .chat-input-bar button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.friend-share-panel {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
}
.friend-share-panel.hidden {
  display: none;
}
.friend-share-panel .share-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}
.friend-share-panel .share-container {
  position: relative;
  width: 92%;
  max-width: 380px;
  background: linear-gradient(135deg, #0f0f1a, #1a1a2a);
  border: 1px solid rgba(192, 160, 128, 0.3);
  border-radius: 12px;
  overflow: hidden;
}
.friend-share-panel .share-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(192, 160, 128, 0.3);
}
.friend-share-panel .share-header h3 {
  margin: 0;
  color: #c0a080;
  font-size: 17px;
}
.friend-share-panel .share-header .share-close-btn {
  background: transparent;
  border: none;
  color: #888;
  font-size: 16px;
  cursor: pointer;
}
.friend-share-panel .share-body {
  padding: 16px;
}
.friend-share-panel .share-desc {
  color: #e0e0e0;
  font-size: 13px;
  margin-bottom: 12px;
  line-height: 1.5;
}
.friend-share-panel .share-link-box {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}
.friend-share-panel .share-link-box input {
  flex: 1;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(192, 160, 128, 0.3);
  border-radius: 8px;
  color: #e0e0e0;
  padding: 8px 12px;
  font-size: 12px;
  outline: none;
  min-width: 0;
}
.friend-share-panel .share-link-box button {
  background: rgba(192, 160, 128, 0.2);
  border: 1px solid rgba(192, 160, 128, 0.3);
  border-radius: 8px;
  color: #c0a080;
  padding: 0 12px;
  font-size: 13px;
  cursor: pointer;
}
.friend-share-panel .share-tip {
  color: #888;
  font-size: 12px;
  margin-bottom: 12px;
}
.friend-share-panel .share-actions {
  display: flex;
  gap: 8px;
}
.friend-share-panel .share-action-btn {
  flex: 1;
  background: linear-gradient(135deg, #4a90e2, #5a9ef0);
  border: none;
  border-radius: 8px;
  color: #fff;
  padding: 10px;
  font-size: 13px;
  cursor: pointer;
}
.friend-share-panel .share-action-btn:hover {
  opacity: 0.9;
}
/**
 * ==================== small-world.less ====================
 * 心域庇护所模块
 * 最后更新：2026-08-10
 *
 * 使用的 base.less 组件：
 * - mixin：.hide-scrollbar()、.button-interactive()
 * - 变量：@spacing-*、@radius-*、@font-*、@color-*、@quality-*
 *
 * 模块特有样式：
 * - 主面板覆盖层（全屏弹窗式）
 * - 面板头部 + 关闭按钮
 * - Tab 导航（能源核心 / 种植 / 豢养 / 神装）
 * - 能源核心区域信息行
 * - 种植田地网格 + 进度条 + 收获态动画
 * - 变异兽槽位（空 / 已放置）
 * - 神装列表 / 神丹列表
 * - 种子 / 变异兽选择弹窗
 * - 通用按钮 .sw-btn（primary / disabled / success）
 * - 信息标签 .sw-info-value / .sw-cost / .sw-locked
 *
 * 风格基调：
 * - 深色背景 + 玉质渐变卡片
 * - 紫色系 #a855f7 与青色系 #06b6d4 作为模块主辅强调色
 * - 圆角统一 8px / 12px，过渡 all 0.2s ease
 */
.small-world-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 30000;
  background: rgba(0, 0, 0, 0.82);
  animation: swFadeIn 0.2s ease;
}
.small-world-overlay.hidden {
  display: none;
}
.small-world-panel {
  width: 90%;
  max-width: 600px;
  max-height: 75vh;
  overflow-y: auto;
  background: linear-gradient(155deg, rgba(12, 16, 26, 0.95) 0%, rgba(6, 10, 18, 0.98) 100%);
  border: 1px solid var(--border-color);
  border-top: 2px solid var(--accent-primary);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 24px rgba(168, 85, 247, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  animation: swPanelIn 0.25s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  scrollbar-width: none;
  -ms-overflow-style: none;
  position: relative;
  background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 3px, rgba(0, 0, 0, 0.03) 3px 4px, transparent 4px 6px);
}
.small-world-panel::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
  background: transparent;
}
.small-world-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.4;
  background: linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 10px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 2px 10px, /* 右上 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 10px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 2px 10px, /* 左下 */ linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 10px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 2px 10px, /* 右下 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 10px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 2px 10px;
  background-repeat: no-repeat;
}
.small-world-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--grad-card);
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
  position: relative;
  background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 3px, rgba(0, 0, 0, 0.04) 3px 4px, transparent 4px 6px);
}
.small-world-header .small-world-title {
  flex: 1;
  font-size: 16px;
  font-weight: bold;
  color: var(--accent-bright);
  margin: 0;
  letter-spacing: 0.15em;
  padding: 4px 16px;
  position: relative;
  background: linear-gradient(90deg, rgba(62, 124, 140, 0.18), transparent 70%);
  border-left: 2px solid var(--accent-primary);
  text-shadow: 0 0 10px var(--accent-glow);
}
.small-world-header .small-world-title .title-icon {
  margin-right: 8px;
  font-size: 18px;
  filter: drop-shadow(0 0 6px rgba(168, 85, 247, 0.4));
}
.small-world-header .small-world-close {
  width: 32px;
  height: 32px;
  background: #22323a;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s;
  width: 30px;
  height: 30px;
}
.small-world-header .small-world-close:hover {
  background: var(--color-danger);
  border-color: var(--color-danger);
  color: white;
}
.small-world-header .small-world-close:active {
  transform: scale(0.96);
}
.small-world-tabs {
  display: flex;
  gap: 6px;
  padding: 12px 16px 4px;
  background: rgba(0, 0, 0, 0.2);
}
.small-world-tabs .sw-tab {
  flex: 1;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.small-world-tabs .sw-tab:hover {
  background: rgba(0, 0, 0, 0.5);
  color: var(--text-primary);
  border-color: rgba(168, 85, 247, 0.55);
}
.small-world-tabs .sw-tab.active {
  background: linear-gradient(90deg, #3e7c8c, #e88c3a);
  color: #fff;
  border-color: var(--accent-primary);
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(232, 140, 58, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.small-world-tabs .sw-tab:active {
  transform: scale(0.97);
}
.small-world-content {
  padding: 16px;
}
.small-world-content .sw-section {
  margin-bottom: 16px;
}
.small-world-content .sw-section:last-child {
  margin-bottom: 0;
}
.small-world-content .sw-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: bold;
  color: var(--accent-bright);
  margin-bottom: 10px;
  padding-left: 10px;
  border-left: 3px solid var(--accent-primary);
  letter-spacing: 0.08em;
  text-shadow: 0 0 8px var(--accent-glow);
}
.small-world-content .sw-section-title .sw-section-icon {
  font-size: 16px;
}
.small-world-content .sw-section-title .sw-section-hint {
  margin-left: auto;
  font-size: 11px;
  font-weight: normal;
  color: var(--text-muted);
}
.spirit-vein-section {
  background: linear-gradient(155deg, rgba(12, 16, 26, 0.88) 0%, rgba(7, 11, 20, 0.92) 100%);
  border: 1px solid var(--border-color);
  border-top: 2px solid var(--accent-primary);
  border-radius: 8px;
  padding: 14px;
  position: relative;
  background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 3px, rgba(0, 0, 0, 0.02) 3px 4px, transparent 4px 6px);
}
.spirit-vein-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.3;
  background: linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 2px 6px, /* 右上 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 2px 6px, /* 左下 */ linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 2px 6px, /* 右下 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 6px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 2px 6px;
  background-repeat: no-repeat;
}
.spirit-vein-section .spirit-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 13px;
  border-bottom: 1px dashed var(--border-color);
}
.spirit-vein-section .spirit-info-row:last-of-type {
  border-bottom: none;
}
.spirit-vein-section .spirit-info-row .row-label {
  color: var(--text-muted);
}
.spirit-vein-section .spirit-info-row .row-value {
  color: #06b6d4;
  font-weight: bold;
  text-shadow: 0 0 6px rgba(6, 182, 212, 0.4);
}
.spirit-vein-section .spirit-info-row .row-value.purple {
  color: #a855f7;
  text-shadow: 0 0 6px rgba(168, 85, 247, 0.4);
}
.spirit-vein-section .spirit-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.plot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.plot-card {
  background: linear-gradient(155deg, rgba(12, 16, 26, 0.88) 0%, rgba(7, 11, 20, 0.92) 100%);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all 0.2s ease;
  overflow: hidden;
  position: relative;
}
.plot-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.3;
  background: linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 5px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 2px 5px, /* 右上 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 5px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 2px 5px, /* 左下 */ linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 5px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 2px 5px, /* 右下 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 5px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 2px 5px;
  background-repeat: no-repeat;
}
.plot-card .plot-seed-icon {
  font-size: 28px;
  margin-bottom: 4px;
}
.plot-card .plot-seed-name {
  font-size: 12px;
  font-weight: bold;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.plot-card .plot-time {
  font-size: 11px;
  color: var(--text-muted);
}
.plot-card.plot-empty {
  border: 1px dashed var(--border-color);
  color: var(--text-muted);
}
.plot-card.plot-empty .plot-empty-text {
  font-size: 12px;
  color: var(--text-muted);
}
.plot-card.plot-empty .plot-empty-icon {
  font-size: 24px;
  opacity: 0.5;
  margin-bottom: 4px;
}
.plot-card.plot-empty:hover {
  border-color: rgba(168, 85, 247, 0.55);
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}
.plot-card.plot-growing {
  border-color: rgba(6, 182, 212, 0.55);
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(6, 182, 212, 0.18));
}
.plot-card.plot-harvest {
  border-color: #10b981;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  animation: swGlowPulse 1.6s ease-in-out infinite;
  cursor: pointer;
}
.plot-card.plot-harvest .plot-seed-name {
  color: #10b981;
}
.plot-card.plot-locked {
  opacity: 0.55;
  background: rgba(0, 0, 0, 0.4);
  border-color: var(--border-color);
}
.plot-card.plot-locked .plot-lock-icon {
  font-size: 22px;
  margin-bottom: 4px;
}
.plot-card.plot-locked .plot-lock-text {
  font-size: 11px;
  color: var(--text-muted);
}
.plot-progress-bar {
  width: 100%;
  height: 6px;
  margin-top: 8px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
}
.plot-progress-bar .plot-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #06b6d4, #0891b2);
  box-shadow: 0 0 6px rgba(6, 182, 212, 0.4);
  transition: width 0.3s ease;
}
.beast-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.beast-slot {
  flex: 0 0 calc(33.333% - 8px);
  box-sizing: border-box;
  min-height: 120px;
  background: linear-gradient(155deg, rgba(12, 16, 26, 0.88) 0%, rgba(7, 11, 20, 0.92) 100%);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all 0.2s ease;
  position: relative;
}
.beast-slot::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.3;
  background: linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 5px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 2px 5px, /* 右上 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 5px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 2px 5px, /* 左下 */ linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 5px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 2px 5px, /* 右下 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 5px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 2px 5px;
  background-repeat: no-repeat;
}
.beast-slot .beast-slot-icon {
  font-size: 32px;
  margin-bottom: 4px;
}
.beast-slot .beast-slot-name {
  font-size: 12px;
  font-weight: bold;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.beast-slot .beast-slot-essence {
  font-size: 10px;
  color: #a855f7;
  margin-top: 2px;
}
.beast-slot.slot-empty {
  border: 1px dashed var(--border-color);
  color: var(--text-muted);
}
.beast-slot.slot-empty .slot-plus {
  font-size: 28px;
  color: var(--text-muted);
  opacity: 0.6;
  margin-bottom: 4px;
}
.beast-slot.slot-empty .slot-empty-text {
  font-size: 11px;
  color: var(--text-muted);
}
.beast-slot.slot-empty:hover {
  border-color: rgba(168, 85, 247, 0.55);
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}
.beast-slot.slot-empty:hover .slot-plus {
  color: #a855f7;
  opacity: 1;
}
.beast-slot.slot-occupied {
  border-color: rgba(168, 85, 247, 0.55);
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(168, 85, 247, 0.18));
}
.beast-slot.slot-occupied .beast-slot-icon {
  filter: drop-shadow(0 0 6px rgba(168, 85, 247, 0.4));
}
.beast-slot.slot-locked {
  opacity: 0.5;
  background: rgba(0, 0, 0, 0.4);
}
.beast-slot.slot-locked .slot-lock-icon {
  font-size: 22px;
  margin-bottom: 4px;
}
.beast-slot.slot-locked .slot-lock-text {
  font-size: 11px;
  color: var(--text-muted);
}
.divine-equip-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.divine-equip-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: linear-gradient(155deg, rgba(12, 16, 26, 0.88) 0%, rgba(7, 11, 20, 0.92) 100%);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: all 0.2s ease;
  position: relative;
}
.divine-equip-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.25;
  background: linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 5px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 2px 5px, /* 右上 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 5px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 2px 5px, /* 左下 */ linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 5px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 2px 5px, /* 右下 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 5px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 2px 5px;
  background-repeat: no-repeat;
}
.divine-equip-item .equip-icon-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.divine-equip-item .equip-icon-info .equip-icon {
  font-size: 26px;
  flex-shrink: 0;
}
.divine-equip-item .equip-icon-info .equip-meta {
  min-width: 0;
}
.divine-equip-item .equip-icon-info .equip-meta .equip-name {
  font-size: 13px;
  font-weight: bold;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.divine-equip-item .equip-icon-info .equip-meta .equip-desc {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}
.divine-equip-item .equip-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.divine-equip-item .equip-right .equip-level {
  font-size: 12px;
  font-weight: bold;
  color: #a855f7;
}
.divine-equip-item.equip-locked {
  opacity: 0.55;
}
.divine-equip-item.equip-locked .equip-icon,
.divine-equip-item.equip-locked .equip-name {
  filter: grayscale(1);
  color: var(--text-muted);
}
.divine-equip-item.quality-green {
  border-color: #4ade80;
  box-shadow: 0 0 6px rgba(74, 222, 128, 0.25);
}
.divine-equip-item.quality-blue {
  border-color: #60a5fa;
  box-shadow: 0 0 6px rgba(96, 165, 250, 0.25);
}
.divine-equip-item.quality-purple {
  border-color: #c084fc;
  box-shadow: 0 0 6px rgba(192, 132, 252, 0.3);
}
.divine-equip-item.quality-orange {
  border-color: #fb923c;
  box-shadow: 0 0 6px rgba(251, 146, 60, 0.3);
}
.divine-pill-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.divine-pill-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: linear-gradient(155deg, rgba(12, 16, 26, 0.88) 0%, rgba(7, 11, 20, 0.92) 100%);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: all 0.2s ease;
  position: relative;
}
.divine-pill-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.25;
  background: linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 5px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 2px 5px, /* 右上 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 5px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 2px 5px, /* 左下 */ linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 5px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 2px 5px, /* 右下 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 5px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 2px 5px;
  background-repeat: no-repeat;
}
.divine-pill-item .pill-icon-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.divine-pill-item .pill-icon-info .pill-icon {
  font-size: 24px;
  flex-shrink: 0;
}
.divine-pill-item .pill-icon-info .pill-meta {
  min-width: 0;
}
.divine-pill-item .pill-icon-info .pill-meta .pill-name {
  font-size: 13px;
  font-weight: bold;
  color: var(--text-primary);
}
.divine-pill-item .pill-icon-info .pill-meta .pill-recipe {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
}
.divine-pill-item .pill-icon-info .pill-meta .pill-recipe .pill-recipe-item {
  margin-right: 6px;
}
.divine-pill-item .pill-action {
  flex-shrink: 0;
}
.divine-pill-item.pill-locked {
  opacity: 0.55;
}
.divine-pill-item.pill-locked .pill-icon,
.divine-pill-item.pill-locked .pill-name {
  filter: grayscale(1);
  color: var(--text-muted);
}
.select-popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 31000;
  background: rgba(0, 0, 0, 0.85);
  animation: swFadeIn 0.2s ease;
}
.select-popup.hidden {
  display: none;
}
.select-popup .select-popup-content {
  width: 86%;
  max-width: 360px;
  max-height: 70vh;
  overflow-y: auto;
  background: linear-gradient(155deg, rgba(12, 16, 26, 0.95) 0%, rgba(6, 10, 18, 0.98) 100%);
  border: 1px solid var(--border-color);
  border-top: 2px solid var(--accent-primary);
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(168, 85, 247, 0.4);
  color: var(--text-primary);
  animation: swPanelIn 0.25s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  scrollbar-width: none;
  -ms-overflow-style: none;
  position: relative;
  background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 3px, rgba(0, 0, 0, 0.03) 3px 4px, transparent 4px 6px);
}
.select-popup .select-popup-content::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
  background: transparent;
}
.select-popup .select-popup-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.35;
  background: linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 8px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 0 / 2px 8px, /* 右上 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 8px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 0 / 2px 8px, /* 左下 */ linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 8px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 0 100% / 2px 8px, /* 右下 */ linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 8px 2px, linear-gradient(var(--accent-line), var(--accent-line)) 100% 100% / 2px 8px;
  background-repeat: no-repeat;
}
.select-popup .select-popup-content .select-popup-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  font-weight: bold;
  color: var(--accent-bright);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}
.select-popup .select-popup-content .select-popup-title .select-popup-close {
  width: 26px;
  height: 26px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.select-popup .select-popup-content .select-popup-title .select-popup-close:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: #fff;
}
.select-popup-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  margin-bottom: 8px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.select-popup-item:last-child {
  margin-bottom: 0;
}
.select-popup-item:hover {
  background: rgba(0, 0, 0, 0.5);
  border-color: rgba(168, 85, 247, 0.55);
  transform: translateX(2px);
}
.select-popup-item.disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.select-popup-item.disabled:hover {
  transform: none;
  background: rgba(0, 0, 0, 0.3);
  border-color: var(--border-color);
}
.select-popup-item .item-icon {
  font-size: 26px;
  flex-shrink: 0;
}
.select-popup-item .item-info {
  flex: 1;
  min-width: 0;
}
.select-popup-item .item-info .item-name {
  font-size: 13px;
  font-weight: bold;
  color: var(--text-primary);
}
.select-popup-item .item-info .item-desc {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}
.select-popup-item .item-count {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: bold;
  color: #06b6d4;
}
.sw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.02em;
}
.sw-btn:active {
  transform: scale(0.96);
}
.sw-btn.sw-btn-primary {
  background: linear-gradient(90deg, #3e7c8c, #e88c3a);
  color: #fff;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(232, 140, 58, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.sw-btn.sw-btn-primary:hover:not(:disabled) {
  filter: brightness(1.1);
  box-shadow: 0 4px 12px rgba(232, 140, 58, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.sw-btn.sw-btn-success {
  background: linear-gradient(135deg, #12d595, #0d9367);
  color: #fff;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.sw-btn.sw-btn-success:hover:not(:disabled) {
  filter: brightness(1.08);
}
.sw-btn.sw-btn-cyan {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  color: #fff;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(6, 182, 212, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.sw-btn.sw-btn-cyan:hover:not(:disabled) {
  filter: brightness(1.1);
}
.sw-btn.sw-btn-ghost {
  background: rgba(0, 0, 0, 0.3);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}
.sw-btn.sw-btn-ghost:hover:not(:disabled) {
  background: rgba(0, 0, 0, 0.5);
  color: var(--text-primary);
  border-color: rgba(168, 85, 247, 0.55);
}
.sw-btn.sw-btn-disabled,
.sw-btn:disabled {
  background: rgba(80, 80, 90, 0.4);
  color: var(--text-muted);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}
.sw-btn.sw-btn-disabled:hover,
.sw-btn:disabled:hover {
  filter: none;
}
.sw-btn.sw-btn-sm {
  padding: 5px 10px;
  font-size: 11px;
}
.sw-btn.sw-btn-lg {
  padding: 10px 20px;
  font-size: 14px;
}
.sw-btn.sw-btn-block {
  width: 100%;
}
.sw-info-value {
  color: #06b6d4;
  font-weight: bold;
  text-shadow: 0 0 6px rgba(6, 182, 212, 0.4);
  font-variant-numeric: tabular-nums;
}
.sw-info-value.purple {
  color: #a855f7;
  text-shadow: 0 0 6px rgba(168, 85, 247, 0.4);
}
.sw-info-value.success {
  color: #10b981;
  text-shadow: 0 0 6px rgba(16, 185, 129, 0.4);
}
.sw-info-value.warning {
  color: #f59e0b;
  text-shadow: 0 0 6px rgba(245, 158, 11, 0.4);
}
.sw-cost {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-muted);
}
.sw-cost .sw-cost-value {
  color: #f59e0b;
  font-weight: bold;
  font-variant-numeric: tabular-nums;
}
.sw-cost.insufficient .sw-cost-value {
  color: #ef4444;
}
.sw-locked {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-muted);
  padding: 2px 8px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}
.sw-locked .sw-locked-icon {
  font-size: 12px;
}
@keyframes swFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes swPanelIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
@keyframes swGlowPulse {
  0%,
  100% {
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }
  50% {
    box-shadow: 0 0 18px rgba(16, 185, 129, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  }
}
@keyframes swBlink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}
@keyframes swBounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}
@keyframes swRainbowShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
@keyframes swShimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}
.sw-progress-bar {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
}
.sw-progress-bar.sw-capacity-bar .sw-progress-fill {
  position: relative;
  overflow: hidden;
}
.sw-progress-bar > div:first-child {
  position: relative;
  overflow: hidden;
}
.sw-progress-bar > div:first-child::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
  animation: swShimmer 2s ease-in-out infinite;
}
.spirit-vein-quality-card {
  position: relative;
  overflow: hidden;
}
.spirit-vein-quality-card.quality-rainbow {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(245, 158, 11, 0.1), rgba(16, 185, 129, 0.1), rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
  background-size: 400% 400%;
  animation: swRainbowShift 8s ease infinite;
}
.spirit-vein-quality-card.quality-rainbow .quality-dot {
  background: conic-gradient(from 0deg, #ef4444, #f59e0b, #10b981, #3b82f6, #8b5cf6, #ec4899, #ef4444);
  animation: swRainbowShift 4s linear infinite;
}
.spirit-vein-quality-card .quality-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.spirit-vein-quality-card .quality-name {
  font-weight: bold;
  letter-spacing: 0.02em;
}
.quality-gray {
  color: #808080;
}
.quality-white {
  color: #f5f5f5;
}
.quality-green {
  color: #4ade80;
}
.quality-blue {
  color: #60a5fa;
}
.quality-purple {
  color: #c084fc;
}
.quality-orange {
  color: #fb923c;
}
.quality-red {
  color: #ef4444;
}
.bg-quality-gray {
  background-color: #808080;
}
.bg-quality-white {
  background-color: #f5f5f5;
}
.bg-quality-green {
  background-color: #4ade80;
}
.bg-quality-blue {
  background-color: #60a5fa;
}
.bg-quality-purple {
  background-color: #c084fc;
}
.bg-quality-orange {
  background-color: #fb923c;
}
.bg-quality-red {
  background-color: #ef4444;
}
.border-quality-gray {
  border-color: #808080;
}
.border-quality-white {
  border-color: #f5f5f5;
}
.border-quality-green {
  border-color: #4ade80;
}
.border-quality-blue {
  border-color: #60a5fa;
}
.border-quality-purple {
  border-color: #c084fc;
}
.border-quality-orange {
  border-color: #fb923c;
}
.border-quality-red {
  border-color: #ef4444;
}
.sw-plot-card {
  transition: all 0.25s cubic-bezier(0.2, 0.9, 0.4, 1.2);
}
.sw-plot-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
.sw-plot-card:active {
  transform: scale(0.96);
}
.sw-plot-card.plot-harvest-ready {
  animation: swGlowPulse 1.6s ease-in-out infinite;
  cursor: pointer;
}
.sw-plot-card.plot-paused .plot-seed-icon {
  animation: swBlink 1.5s ease-in-out infinite;
}
.sw-beast-slot {
  transition: all 0.25s cubic-bezier(0.2, 0.9, 0.4, 1.2);
}
.sw-beast-slot:hover {
  transform: translateY(-1px);
}
.sw-beast-slot.slot-producing {
  border-color: rgba(192, 132, 252, 0.4);
  background: linear-gradient(145deg, rgba(0, 0, 0, 0.35), rgba(192, 132, 252, 0.1));
}
.sw-beast-slot.slot-paused {
  border-color: rgba(239, 68, 68, 0.4);
  background: linear-gradient(145deg, rgba(0, 0, 0, 0.35), rgba(239, 68, 68, 0.08));
}
.sw-beast-slot.slot-paused .beast-slot-icon {
  animation: swBlink 1.5s ease-in-out infinite;
}
.sw-beast-slot.slot-ready {
  border-color: rgba(16, 185, 129, 0.5);
  background: linear-gradient(145deg, rgba(0, 0, 0, 0.35), rgba(16, 185, 129, 0.12));
  animation: swGlowPulse 1.6s ease-in-out infinite;
  cursor: pointer;
}
.progress-fill-gray {
  background: linear-gradient(90deg, #9ca3af, #6b7280);
}
.progress-fill-white {
  background: linear-gradient(90deg, #f3f4f6, #d1d5db);
}
.progress-fill-green {
  background: linear-gradient(90deg, #4ade80, #22c55e);
}
.progress-fill-blue {
  background: linear-gradient(90deg, #60a5fa, #3b82f6);
}
.progress-fill-purple {
  background: linear-gradient(90deg, #c084fc, #a855f7);
}
.progress-fill-orange {
  background: linear-gradient(90deg, #fb923c, #f97316);
}
.progress-fill-red {
  background: linear-gradient(90deg, #ef4444, #dc2626);
}
.progress-fill-rainbow {
  background: linear-gradient(90deg, #ef4444, #f59e0b, #10b981, #3b82f6, #8b5cf6, #ec4899);
  background-size: 300% 100%;
  animation: swRainbowShift 3s linear infinite;
}
.glow-gray {
  box-shadow: 0 0 8px rgba(156, 163, 175, 0.5);
}
.glow-white {
  box-shadow: 0 0 8px rgba(245, 245, 245, 0.5);
}
.glow-green {
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.5);
}
.glow-blue {
  box-shadow: 0 0 8px rgba(96, 165, 250, 0.5);
}
.glow-purple {
  box-shadow: 0 0 8px rgba(192, 132, 252, 0.5);
}
.glow-orange {
  box-shadow: 0 0 8px rgba(251, 146, 60, 0.5);
}
.glow-red {
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}
.glow-rainbow {
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.5), 0 0 20px rgba(168, 85, 247, 0.4);
}
@media (max-width: 380px) {
  .small-world-panel {
    width: 90%;
  }
  .small-world-tabs .sw-tab {
    padding: 6px 8px;
    font-size: 12px;
  }
  .beast-slot {
    flex: 0 0 calc(50% - 6px);
  }
  .plot-grid {
    gap: 8px;
  }
}
/**
 * ==================== 子嗣模块 ====================
 * 冷钢工业风 - 标题行 / 返回按钮 / 页签
 */
.heir-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  border-top: 2px solid var(--accent-primary);
  background: linear-gradient(155deg, rgba(12, 16, 26, 0.92) 0%, rgba(6, 10, 18, 0.95) 100%);
  flex-shrink: 0;
  position: relative;
  background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 3px, rgba(0, 0, 0, 0.04) 3px 4px, transparent 4px 6px);
}
.heir-title-row h2 {
  font-size: 16px;
  font-weight: bold;
  color: var(--accent-bright);
  margin: 0;
  letter-spacing: 0.15em;
  text-shadow: 0 0 10px var(--accent-glow);
}
.heir-back-btn {
  display: block;
  width: calc(100% - 32px);
  margin: 10px 16px;
  text-align: center;
  padding: 10px 0;
  border: none;
  border-radius: 10px;
  background: #4b5563;
  color: #e5e7eb;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.heir-back-btn:hover {
  background: #6b7280;
}
.heir-back-btn:active {
  transform: scale(0.98);
}
.heir-tab-btn {
  border-radius: 12px;
}
