/* ============================================
   天天三国 - 主页/仪表盘
   古战场墨韵 · 金石印章风
   ============================================ */

/* ============================================
   页面容器
   ============================================ */
.home-page {
  padding-bottom: var(--spacing-lg);
}

/* ============================================
   玩家信息卡
   ============================================ */
.home-player-card {
  position: relative;
  background:
    linear-gradient(135deg, rgba(218, 165, 32, 0.06) 0%, transparent 40%),
    linear-gradient(225deg, rgba(139, 0, 0, 0.08) 0%, transparent 40%),
    var(--color-bg-panel);
  border: 1px solid var(--color-gold-dark);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  overflow: hidden;
  animation: slideUp 0.4s ease-out both;
}

/* 金色顶部装饰线 */
.home-player-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0.125rem;
  background: linear-gradient(90deg, transparent, var(--color-gold) 30%, var(--color-gold-light) 50%, var(--color-gold) 70%, transparent);
}

/* 底部纹理 */
.home-player-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 7.5rem;
  height: 7.5rem;
  background: radial-gradient(circle at 100% 100%, rgba(218, 165, 32, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.home-player-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

/* 头像圆 - 昵称首字 */
.home-avatar {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border: 2px solid var(--color-gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-gold-light);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(218, 165, 32, 0.2);
  position: relative;
}

/* VIP 角标 */
.home-avatar-vip {
  position: absolute;
  bottom: -0.125rem;
  right: -0.25rem;
  background: linear-gradient(135deg, var(--color-gold-dark), var(--color-gold));
  color: #1a1a1a;
  font-size: 0.5rem;
  font-weight: 800;
  font-family: var(--font-body);
  padding: 0.0625rem 0.25rem;
  border-radius: 0.375rem;
  line-height: 1.2;
  letter-spacing: 0.3px;
}

.home-player-info {
  flex: 1;
  min-width: 0;
}

.home-player-name-row {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: 0.25rem;
}

.home-player-nickname {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-bright);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-player-level {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: var(--color-gold-light);
  font-size: 0.625rem;
  font-weight: 800;
  padding: 0.125rem 0.5rem;
  border-radius: 0.625rem;
  border: 1px solid var(--color-gold-dark);
  flex-shrink: 0;
  letter-spacing: 0.3px;
}

/* EXP 进度条 */
.home-exp-bar {
  margin-top: 0.125rem;
}

.home-exp-track {
  width: 100%;
  height: 0.625rem;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 0.3125rem;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(74, 48, 48, 0.6);
}

.home-exp-fill {
  height: 100%;
  border-radius: 0.3125rem;
  background: linear-gradient(90deg, #1565c0, #42a5f5, #64b5f6);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

/* 进度条光泽 */
.home-exp-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: 0.3125rem 0.3125rem 0 0;
}

.home-exp-text {
  display: flex;
  justify-content: space-between;
  font-size: 0.625rem;
  color: var(--color-text-dim);
  margin-top: 0.1875rem;
}

.home-total-power {
  margin-top: 0.5rem;
  padding: 0.5rem 0.625rem;
  border: 1px solid rgba(218, 165, 32, 0.25);
  border-radius: 0.625rem;
  background: linear-gradient(135deg, rgba(218, 165, 32, 0.12), rgba(139, 0, 0, 0.08));
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.home-total-power-icon {
  width: 2.45rem;
  height: 2.45rem;
  padding: 0.125rem;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: 0.875rem;
  background: radial-gradient(circle, rgba(250, 215, 120, 0.22) 0%, rgba(218, 165, 32, 0.08) 58%, rgba(218, 165, 32, 0) 78%);
  box-shadow: inset 0 0 0 1px rgba(246, 222, 154, 0.16), 0 0 14px rgba(218, 165, 32, 0.16);
}

.home-total-power-icon-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 1px rgba(255, 236, 190, 0.95)) drop-shadow(0 0 7px rgba(218, 165, 32, 0.42)) drop-shadow(0 3px 6px rgba(0, 0, 0, 0.48));
}

.home-total-power-detail {
  display: flex;
  flex-direction: column;
  gap: 0.0625rem;
  min-width: 0;
}

.home-total-power-label {
  font-size: 0.625rem;
  color: var(--color-text-dim);
  letter-spacing: 0.3px;
}

.home-total-power-value {
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--color-gold-light);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

/* ============================================
   货币行
   ============================================ */
.home-currency-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
  padding: 0.5rem 0.25rem 0.25rem;
  margin-top: var(--spacing-sm);
  border-top: 1px solid rgba(74, 48, 48, 0.5);
}

  .home-currency-item {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.25rem 0.125rem;
  min-width: 0;
  position: relative;
}

  /* Vertical separators between currency items */
.home-currency-item + .home-currency-item {
  border-left: 1px solid rgba(218, 165, 32, 0.15);
}

  .home-currency-icon {
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

.home-currency-icon.gold-icon {
  color: var(--color-gold);
}
.home-currency-icon.gems-icon {
  font-size: 0.875rem;
}
.home-currency-icon.stamina-icon {
  font-size: 0.875rem;
}

/* Value + label stacked column */
.home-currency-detail {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 0;
  }

.home-currency-val {
  font-size: 0.8125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--color-text);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  }

/* Per-type value colors */
.home-currency-val.gold-val {
  color: var(--color-gold-light);
  }
.home-currency-val.gems-val {
  color: #e88aff;
  }
.home-currency-val.stamina-val {
  color: var(--color-success);
  }

.home-currency-label {
  font-size: 0.5625rem;
  color: var(--color-text-dim);
  letter-spacing: 0.3px;
  line-height: 1.2;
  white-space: nowrap;
  }

/* Stamina recovery timer inline */
.home-stamina-timer {
  font-size: 0.5625rem;
  color: var(--color-success);
  font-variant-numeric: tabular-nums;
  opacity: 0.85;
  margin-left: 0.125rem;
  }

/* Plus buttons — small inline circles */
.home-stamina-buy-btn {
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--color-success), #27ae60);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 1rem;
  height: 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 0.875rem;
  text-align: center;
  cursor: pointer;
  padding: 0;
  margin-left: 0.125rem;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.home-stamina-buy-btn:hover {
  transform: scale(1.15);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}
.home-stamina-buy-btn:active {
  transform: scale(0.95);
}

/* Gems recharge button — danger/red accent */
.home-stamina-buy-btn.gems-plus {
  background: linear-gradient(135deg, var(--color-danger), #c0392b);
}

/* ============================================
   每日签到面板
   ============================================ */
.home-daily-panel {
  position: relative;
  background: var(--color-bg-panel);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  overflow: hidden;
  animation: slideUp 0.4s ease-out both;
  animation-delay: 0.08s;
}

.home-daily-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-gold);
  margin-bottom: var(--spacing-sm);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.home-daily-title::before {
  content: '▎';
  color: var(--color-primary-light);
}

.home-daily-streak {
  font-size: 0.6875rem;
  color: var(--color-text-dim);
  font-weight: 400;
  margin-left: auto;
}

/* 7天奖励日历 - 横向滚动 */
.home-daily-calendar {
  display: flex;
  gap: var(--spacing-sm);
  overflow-x: auto;
  overflow-y: hidden;
  padding: var(--spacing-sm) 0;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.home-daily-calendar::-webkit-scrollbar {
  display: none;
}

/* 单日卡片 */
.home-day-card {
  flex-shrink: 0;
  width: 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: var(--spacing-sm) 0.25rem;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--color-border);
  scroll-snap-align: start;
  position: relative;
  transition: transform var(--transition-fast), border-color var(--transition-base);
}

.home-day-card-label {
  font-size: 0.5625rem;
  color: var(--color-text-dim);
  font-weight: 600;
  letter-spacing: 0.3px;
}

.home-day-card-icon {
  font-size: 1.375rem;
  line-height: 1;
}

.home-day-card-amount {
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--color-text);
}

/* 已领取状态 */
.home-day-card.claimed {
  opacity: 0.45;
  border-color: rgba(74, 48, 48, 0.3);
}

.home-day-card.claimed::after {
  content: '✓';
  position: absolute;
  top: 0.125rem;
  right: 0.1875rem;
  font-size: 0.625rem;
  color: var(--color-success);
  font-weight: 800;
}

/* 今日状态 - 发光脉冲 */
.home-day-card.today {
  border-color: var(--color-gold);
  background: rgba(218, 165, 32, 0.08);
  animation: borderGlow 2s ease-in-out infinite;
}

.home-day-card.today .home-day-card-label {
  color: var(--color-gold);
}

/* 未来状态 - 锁定 */
.home-day-card.future {
  opacity: 0.35;
  border-style: dashed;
}

.home-day-card.future .home-day-card-icon {
  filter: grayscale(1);
}

/* 领取按钮 */
.home-daily-claim-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  width: 100%;
  margin-top: var(--spacing-sm);
  padding: 0.625rem;
  font-size: 0.875rem;
  font-weight: 700;
  font-family: var(--font-body);
  color: var(--color-gold-light);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  border: 1px solid var(--color-gold-dark);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  box-shadow: 0 2px 8px rgba(139, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.home-daily-claim-btn:hover {
  background: linear-gradient(135deg, var(--color-primary-light) 0%, #c62828 100%);
  border-color: var(--color-gold);
  box-shadow: 0 4px 16px rgba(139, 0, 0, 0.4), var(--shadow-glow-gold);
}

.home-daily-claim-btn:active {
  transform: scale(0.97);
}

.home-daily-claim-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* 领取按钮流光 */
.home-daily-claim-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  animation: claimShimmer 2.5s ease-in-out infinite;
}

@keyframes claimShimmer {
  0%, 100% { left: -100%; }
  50% { left: 140%; }
}

.home-daily-claim-btn:disabled::before {
  animation: none;
}

/* 已领取提示 */
.home-daily-claimed-msg {
  text-align: center;
  font-size: 0.75rem;
  color: var(--color-success);
  margin-top: var(--spacing-sm);
  padding: 0.5rem;
  background: rgba(46, 204, 113, 0.08);
  border-radius: var(--radius-md);
  border: 1px solid rgba(46, 204, 113, 0.15);
}

/* ============================================
   快捷操作网格
   ============================================ */
.home-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

.home-action-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-lg) var(--spacing-md);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, transparent 60%),
    var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  animation: slideUp 0.4s ease-out both;
}

.home-action-card:nth-child(1) { animation-delay: 0.12s; }
.home-action-card:nth-child(2) { animation-delay: 0.16s; }
.home-action-card:nth-child(3) { animation-delay: 0.20s; }
.home-action-card:nth-child(4) { animation-delay: 0.24s; }

/* 卡片内部纹理 */
.home-action-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(255, 255, 255, 0.005) 10px,
    rgba(255, 255, 255, 0.005) 20px
  );
  pointer-events: none;
}

.home-action-card:hover {
  border-color: var(--color-gold-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md), 0 0 20px rgba(218, 165, 32, 0.1);
}

.home-action-card:active {
  transform: scale(0.96);
}

.home-action-icon {
  width: 3.75rem;
  height: 3.75rem;
  padding: 0.125rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: 1rem;
  background: radial-gradient(circle, rgba(250, 215, 120, 0.22) 0%, rgba(218, 165, 32, 0.09) 55%, rgba(218, 165, 32, 0) 78%);
  box-shadow: inset 0 0 0 1px rgba(246, 222, 154, 0.18), 0 0 14px rgba(218, 165, 32, 0.18), 0 4px 10px rgba(0, 0, 0, 0.18);
  transition: transform var(--transition-base);
}

.home-action-icon-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 1px rgba(255, 236, 190, 0.95)) drop-shadow(0 0 8px rgba(218, 165, 32, 0.48)) drop-shadow(0 3px 6px rgba(0, 0, 0, 0.45));
}

.home-action-card:hover .home-action-icon {
  transform: scale(1.12);
  box-shadow: inset 0 0 0 1px rgba(250, 226, 162, 0.24), 0 0 18px rgba(218, 165, 32, 0.28), 0 6px 12px rgba(0, 0, 0, 0.22);
}

.home-action-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 1px;
}

/* ============================================
   公告/提示区
   ============================================ */
.home-welcome-banner {
  position: relative;
  background:
    linear-gradient(135deg, rgba(139, 0, 0, 0.06) 0%, transparent 50%),
    var(--color-bg-panel);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  overflow: hidden;
  animation: slideUp 0.4s ease-out both;
  animation-delay: 0.28s;
}

/* 中式装饰边框 - 顶部 */
.home-welcome-banner::before {
  content: '◆ ─── ◆ ─── ◆';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  font-size: 0.5rem;
  color: var(--color-gold-dark);
  letter-spacing: 2px;
  background: var(--color-bg-panel);
  padding: 0 0.75rem;
  white-space: nowrap;
}

.home-welcome-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--color-gold);
  text-align: center;
  margin-bottom: var(--spacing-sm);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.home-tips-text {
  font-size: 0.75rem;
  color: var(--color-text-dim);
  text-align: center;
  line-height: 1.6;
  min-height: 1.25rem;
  transition: opacity 0.3s ease;
}

/* ============================================
   登出按钮
   ============================================ */
.home-logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  width: 100%;
  padding: 0.625rem;
  font-size: 0.75rem;
  font-weight: 500;
  font-family: var(--font-body);
  color: var(--color-text-dim);
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  animation: fadeIn 0.5s ease-out both;
  animation-delay: 0.35s;
  margin-bottom: 5rem;
}

.home-logout-btn:hover {
  color: var(--color-danger);
  border-color: rgba(231, 76, 60, 0.3);
  background: rgba(231, 76, 60, 0.06);
}

/* ============================================
   领取奖励飞行动画
   ============================================ */
.reward-fly {
  position: fixed;
  z-index: 9999;
  font-size: 1.5rem;
  pointer-events: none;
  animation: rewardFly 0.8s cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
}

@keyframes rewardFly {
  0% {
    opacity: 1;
    transform: scale(1.5);
  }
  60% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.3);
  }
}

/* ============================================
   领取成功弹出
   ============================================ */
.home-claim-success {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9998;
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid var(--color-gold-dark);
  border-radius: var(--radius-xl);
  padding: var(--spacing-lg) var(--spacing-xl);
  text-align: center;
  animation: bounceIn 0.4s ease-out both;
  box-shadow: 0 0 40px rgba(218, 165, 32, 0.2);
}

.home-claim-success-icon {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-sm);
}

.home-claim-success-text {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-gold);
  font-family: var(--font-display);
}

.home-claim-success-detail {
  font-size: 0.8125rem;
  color: var(--color-text-dim);
  margin-top: 0.25rem;
}

/* ============================================
   活动 / 试炼塔弹窗
   ============================================ */
.home-feature-modal {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.home-feature-hero {
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto;
  border-radius: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: radial-gradient(circle, rgba(250, 215, 120, 0.24) 0%, rgba(218, 165, 32, 0.1) 58%, rgba(218, 165, 32, 0) 80%);
  box-shadow: inset 0 0 0 1px rgba(246, 222, 154, 0.18), 0 0 20px rgba(218, 165, 32, 0.2);
}

.home-feature-title {
  text-align: center;
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-gold-light);
}

.home-feature-subtitle {
  margin-top: -0.375rem;
  text-align: center;
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--color-text-dim);
}

.home-feature-section {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0%, transparent 100%), var(--color-bg-card);
  border: 1px solid rgba(218, 165, 32, 0.14);
  border-radius: 0.875rem;
  padding: 0.875rem;
}

.home-feature-section-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.625rem;
}

.home-feature-hint {
  font-size: 0.75rem;
  color: var(--color-text-dim);
  line-height: 1.65;
}

.home-feature-banner {
  border-radius: 0.875rem;
  padding: 0.875rem 0.9375rem;
  font-size: 0.75rem;
  line-height: 1.65;
  text-align: center;
}

.home-feature-banner-success {
  background: rgba(103, 194, 58, 0.12);
  border: 1px solid rgba(103, 194, 58, 0.22);
  color: #9fe07e;
}

.home-feature-status {
  align-self: center;
  padding: 0.3125rem 0.75rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.home-feature-status.is-success {
  color: #b7ef9c;
  background: rgba(103, 194, 58, 0.12);
  border: 1px solid rgba(103, 194, 58, 0.24);
}

.home-feature-status.is-fail {
  color: #ffb4b4;
  background: rgba(245, 108, 108, 0.12);
  border: 1px solid rgba(245, 108, 108, 0.24);
}

.home-feature-reward-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.home-feature-reward-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-width: 5.25rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: rgba(218, 165, 32, 0.12);
  border: 1px solid rgba(218, 165, 32, 0.24);
  color: var(--color-gold-light);
  font-size: 0.75rem;
  font-weight: 700;
}

.home-feature-reward-chip-gem {
  background: rgba(195, 125, 255, 0.12);
  border-color: rgba(195, 125, 255, 0.24);
  color: #f2d9ff;
}

.home-feature-reward-chip-boss {
  background: rgba(231, 76, 60, 0.12);
  border-color: rgba(231, 76, 60, 0.22);
  color: #ffb6aa;
}

.home-feature-loot-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.home-feature-loot-item {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(218, 165, 32, 0.12);
}

.home-feature-loot-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.home-feature-loot-name {
  font-size: 0.75rem;
  color: var(--color-text);
  font-weight: 600;
}

.home-feature-loot-sub {
  font-size: 0.625rem;
  color: var(--color-text-dim);
}

.home-feature-loot-meta {
  flex-shrink: 0;
  font-size: 0.6875rem;
  color: var(--color-text-dim);
}

.home-feature-loot-badge {
  flex-shrink: 0;
  align-self: center;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.625rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.home-feature-loot-badge.is-common {
  color: #d7d7d7;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.home-feature-loot-badge.is-uncommon {
  color: #b8f1b1;
  background: rgba(103, 194, 58, 0.12);
  border-color: rgba(103, 194, 58, 0.22);
}

.home-feature-loot-badge.is-rare {
  color: #9fd3ff;
  background: rgba(64, 158, 255, 0.12);
  border-color: rgba(64, 158, 255, 0.22);
}

.home-feature-loot-badge.is-epic {
  color: #dfbcff;
  background: rgba(165, 94, 234, 0.12);
  border-color: rgba(165, 94, 234, 0.24);
}

.home-feature-loot-badge.is-legend {
  color: #ffd88e;
  background: rgba(230, 162, 60, 0.14);
  border-color: rgba(230, 162, 60, 0.26);
}

.home-feature-empty {
  text-align: center;
  padding: 1rem 0.25rem;
}

.home-feature-empty-icon {
  font-size: 2rem;
  margin-bottom: 0.625rem;
}

.home-feature-empty-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-text);
}

.home-feature-empty-text {
  margin-top: 0.375rem;
  font-size: 0.75rem;
  color: var(--color-text-dim);
  line-height: 1.65;
}

.home-tower-progress-card {
  position: relative;
  overflow: hidden;
  text-align: center;
  background: linear-gradient(135deg, rgba(218, 165, 32, 0.12), rgba(139, 0, 0, 0.12));
  border: 1px solid rgba(218, 165, 32, 0.22);
  border-radius: 1rem;
  padding: 1rem 0.875rem;
}

.home-tower-progress-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.1), transparent 40%);
  pointer-events: none;
}

.home-tower-progress-value {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--color-gold-light);
  line-height: 1;
}

.home-tower-progress-value span {
  margin-left: 0.25rem;
  font-size: 0.875rem;
  font-weight: 700;
}

.home-tower-progress-label {
  margin-top: 0.375rem;
  font-size: 0.6875rem;
  color: var(--color-text-dim);
  letter-spacing: 0.4px;
}

.home-tower-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.625rem;
}

.home-tower-info-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(218, 165, 32, 0.12);
  border-radius: 0.875rem;
}

.home-tower-info-label {
  font-size: 0.625rem;
  color: var(--color-text-dim);
  letter-spacing: 0.3px;
}

.home-tower-info-value {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.4;
}

.home-tower-recent-section {
  gap: 0.75rem;
}

.home-tower-recent-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.home-tower-recent-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.7rem;
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.028);
  border: 1px solid rgba(218, 165, 32, 0.1);
}

.home-tower-recent-label {
  font-size: 0.625rem;
  color: var(--color-text-dim);
}

.home-tower-recent-value {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-text);
}

.home-tower-recent-value.is-win {
  color: #a8eb88;
}

.home-tower-recent-value.is-lose {
  color: #ffb4b4;
}

.home-feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 24rem;
  overflow-y: auto;
  padding-right: 0.125rem;
}

.home-event-section {
  gap: 0.625rem;
}

.home-event-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.625rem;
}

.home-event-section-count {
  flex-shrink: 0;
  font-size: 0.6875rem;
  color: var(--color-text-dim);
}

.home-event-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0%, transparent 100%), var(--color-bg-card);
  border: 1px solid rgba(218, 165, 32, 0.12);
  border-radius: 0.95rem;
  padding: 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.home-event-card.is-complete {
  border-color: rgba(103, 194, 58, 0.22);
  box-shadow: 0 0 0 1px rgba(103, 194, 58, 0.05) inset;
}

.home-event-card.is-claimed {
  border-color: rgba(218, 165, 32, 0.22);
  background: linear-gradient(135deg, rgba(218, 165, 32, 0.06) 0%, transparent 100%), var(--color-bg-card);
}

.home-event-card-top {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.home-event-icon {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  border-radius: 0.85rem;
  background: radial-gradient(circle, rgba(250, 215, 120, 0.22) 0%, rgba(218, 165, 32, 0.08) 60%, rgba(218, 165, 32, 0) 80%);
  box-shadow: inset 0 0 0 1px rgba(246, 222, 154, 0.14);
}

.home-event-icon.is-complete {
  background: radial-gradient(circle, rgba(103, 194, 58, 0.18) 0%, rgba(103, 194, 58, 0.08) 58%, rgba(103, 194, 58, 0) 80%);
  box-shadow: inset 0 0 0 1px rgba(167, 234, 136, 0.16);
}

.home-event-icon.is-claimed {
  background: radial-gradient(circle, rgba(218, 165, 32, 0.22) 0%, rgba(218, 165, 32, 0.1) 60%, rgba(218, 165, 32, 0) 80%);
}

.home-event-main {
  flex: 1;
  min-width: 0;
}

.home-event-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.home-event-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-text);
}

.home-event-status {
  flex-shrink: 0;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.625rem;
  font-weight: 700;
}

.home-event-status.is-progress {
  color: var(--color-gold-light);
  background: rgba(218, 165, 32, 0.12);
  border: 1px solid rgba(218, 165, 32, 0.2);
}

.home-event-status.is-complete {
  color: #a8eb88;
  background: rgba(103, 194, 58, 0.12);
  border: 1px solid rgba(103, 194, 58, 0.2);
}

.home-event-status.is-claimed {
  color: #f7ddb0;
  background: rgba(218, 165, 32, 0.12);
  border: 1px solid rgba(218, 165, 32, 0.22);
}

.home-event-meta,
.home-event-desc,
.home-event-progress-head,
.home-event-reward,
.home-event-claim-state {
  font-size: 0.75rem;
}

.home-event-meta {
  margin-top: 0.1875rem;
  color: var(--color-text-dim);
}

.home-event-desc {
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.home-event-reward-strip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  align-self: flex-start;
  padding: 0.36rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(218, 165, 32, 0.18);
  background: rgba(218, 165, 32, 0.08);
}

.home-event-reward-strip.is-gem {
  background: rgba(195, 125, 255, 0.1);
  border-color: rgba(195, 125, 255, 0.2);
}

.home-event-reward-strip.is-gold {
  background: rgba(218, 165, 32, 0.08);
}

.home-event-reward-icon {
  font-size: 0.78rem;
}

.home-event-reward-icon.currency-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.home-event-reward-text {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-text);
}

.home-event-progress-head {
  display: flex;
  justify-content: space-between;
  color: var(--color-text-dim);
}

.home-event-progress-track {
  height: 0.5rem;
  background: rgba(0, 0, 0, 0.42);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(218, 165, 32, 0.08);
}

.home-event-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #e6a23c, #f5da55);
}

.home-event-progress-fill.is-complete {
  background: linear-gradient(90deg, #67c23a, #95d475);
}

.home-event-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.625rem;
}

.home-event-reward {
  color: var(--color-gold-light);
  line-height: 1.5;
}

.home-event-claim-area {
  flex-shrink: 0;
}

.home-event-claim-state {
  color: var(--color-text-dim);
}

.home-event-claim-state.is-claimed {
  color: #a8eb88;
}

.home-feature-loot-item.is-compact {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

/* ============================================
   减少动画 (无障碍)
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  .home-daily-claim-btn::before {
    animation: none;
  }
  .home-day-card.today {
    animation: none;
    border-color: var(--color-gold);
  }
  .reward-fly {
    animation: none;
  }
}

/* ============================================
   头像选择器
   ============================================ */

/* 可点击头像 */
.home-avatar.clickable {
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.home-avatar.clickable:hover {
  transform: scale(1.08);
  box-shadow: 0 0 16px rgba(218, 165, 32, 0.4);
}
.home-avatar.clickable:active {
  transform: scale(0.95);
}

/* 编辑图标 */
.home-avatar-edit {
  position: absolute;
  bottom: -0.125rem;
  left: -0.25rem;
  background: rgba(0,0,0,0.7);
  color: var(--color-gold-light);
  font-size: 0.625rem;
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-gold-dark);
  pointer-events: none;
}

/* 头像选择网格 */
.avatar-picker-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.5rem;
  max-height: 20rem;
  overflow-y: auto;
  padding: 0.5rem 0.25rem;
  scrollbar-width: thin;
  scrollbar-color: var(--color-gold-dark) transparent;
}

.avatar-picker-item {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  border-radius: var(--radius-md);
  background: rgba(0,0,0,0.3);
  border: 2px solid var(--color-border);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.avatar-picker-item:hover {
  border-color: var(--color-gold);
  background: rgba(218, 165, 32, 0.1);
  transform: scale(1.1);
}
.avatar-picker-item.selected {
  border-color: var(--color-gold);
  background: rgba(218, 165, 32, 0.15);
  box-shadow: 0 0 12px rgba(218, 165, 32, 0.3);
}

/* ============================================
   移动端响应式 - 主页
   ============================================ */
@media (max-width: 480px) {
  .home-player-card {
    padding: var(--spacing-sm);
  }

  .home-player-header {
    gap: var(--spacing-sm);
  }

  .home-avatar {
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1.25rem;
  }

  .home-player-nickname {
    font-size: 0.875rem;
  }

  .home-player-level {
    font-size: 0.5625rem;
    padding: 0.0625rem 0.375rem;
  }

  .home-exp-track {
    height: 0.5rem;
  }

  .home-currency-row {
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0.375rem 0.125rem 0.125rem;
  }

  .home-currency-item {
    flex: 1 1 auto;
    min-width: 0;
    gap: 0.25rem;
    padding: 0.25rem 0.125rem;
  }

  .home-currency-val {
    font-size: 0.75rem;
  }

  .home-currency-label {
    font-size: 0.5rem;
  }

  /* Action grid — 2 columns on small screens */
  .home-actions-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xs);
  }

  .home-action-card {
    padding: var(--spacing-md) var(--spacing-sm);
  }

  .home-action-icon {
    width: 1.75rem;
    height: 1.75rem;
  }

  .home-action-label {
    font-size: 0.75rem;
    letter-spacing: 0.5px;
  }

  /* Daily panel */
  .home-daily-panel {
    padding: var(--spacing-sm);
  }

  .home-day-card {
    width: 3rem;
  }

  .home-day-card-icon {
    font-size: 1.125rem;
  }

  .home-daily-claim-btn {
    min-height: 2.75rem;
    font-size: 0.8125rem;
  }

  .home-feature-hero {
    width: 3.8rem;
    height: 3.8rem;
    font-size: 1.7rem;
  }

  .home-feature-title {
    font-size: 0.9375rem;
  }

  .home-tower-info-grid,
  .home-tower-recent-summary,
  .home-event-footer,
  .home-event-name-row {
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .home-event-status {
    align-self: flex-start;
  }

  .home-event-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-feature-reward-row {
    gap: 0.375rem;
  }

  .home-feature-reward-chip {
    min-width: 0;
    width: 100%;
  }

  .home-event-claim-area {
    width: 100%;
  }

  .home-event-claim-area .btn,
  .home-event-claim-state {
    display: inline-flex;
    justify-content: center;
    width: 100%;
  }

  /* Welcome banner */
  .home-welcome-title {
    font-size: 0.9375rem;
  }

  .home-tips-text {
    font-size: 0.6875rem;
  }

  /* Avatar picker — 5 columns on mobile */
  .avatar-picker-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 0.375rem;
  }

  .avatar-picker-item {
    width: 2.625rem;
    height: 2.625rem;
    font-size: 1.5rem;
  }

  /* Logout button */
  .home-logout-btn {
    min-height: 2.75rem;
    margin-bottom: 3.75rem;
  }
}

@media (max-width: 360px) {
  .home-player-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .home-player-info {
    width: 100%;
  }

  .home-player-name-row {
    justify-content: center;
  }

  .home-currency-row {
    flex-wrap: wrap;
  }

  .home-currency-item {
    flex: 0 0 calc(33.33% - 4px);
  }

  .home-currency-item + .home-currency-item {
    border-left: none;
  }

  .avatar-picker-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
