/* ============================================
   Tab切换栏样式
   ============================================ */
.recharge-tabbar {
  margin-bottom: 20px;
}

.tabbar-container {
  display: flex;
  background: #FFFFFF;
  border-radius: 16px;
  padding: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 2px solid rgba(255, 215, 0, 0.3);
}

.tabbar-item {
  flex: 1;
  padding: 12px 20px;
  background: transparent;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 16px;
  font-weight: 500;
  color: #666666;
  position: relative;
}

.tabbar-item.active {
  background: linear-gradient(135deg, #DC143C, #B22222);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(220, 20, 60, 0.3);
}

.tabbar-item:not(.active):hover {
  background: #FFF8E7;
  color: #DC143C;
}

.tabbar-text {
  display: block;
}

.recharge-content {
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   充值中心页面 - 春节主题全新布局
   ============================================ */

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

body {
  background: #FFF8E7;
  color: #333333;
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  padding-bottom: 100px;
}

.recharge-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 16px;
}

/* ============================================
   顶部余额卡片
   ============================================ */
.balance-header-section {
  margin-bottom: 20px;
}

.balance-main-card {
  background: linear-gradient(135deg, #DC143C 0%, #B22222 100%);
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow: 0 4px 16px rgba(220, 20, 60, 0.2);
  position: relative;
  overflow: hidden;
}

.balance-main-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #DC143C, #FFD700, #7FB069, #FF1493, #DC143C);
  background-size: 200% 100%;
  animation: balanceGlow 3s linear infinite;
}

@keyframes balanceGlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.balance-content {
  position: relative;
  z-index: 1;
}

.balance-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.balance-label-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.balance-icon {
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.9);
}

.balance-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
}

.record-link-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 20px;
  color: #FFD700;
  font-size: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.record-link-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 215, 0, 0.5);
}

.link-icon {
  width: 14px;
  height: 14px;
}

.balance-amount-display {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.amount-currency {
  font-size: 24px;
  font-weight: 600;
  color: #FFD700;
}

.amount-value {
  font-size: 42px;
  font-weight: 700;
  color: #FFD700;
  line-height: 1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* ============================================
   已选信息展示区域
   ============================================ */
.selected-info-section {
  margin-bottom: 20px;
  animation: fadeInDown 0.5s ease-out;
}

.selected-info-card {
  background: #FFFFFF;
  border: 2px solid rgba(255, 215, 0, 0.3);
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.selected-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.selected-label {
  font-size: 12px;
  color: #999999;
}

.selected-value {
  font-size: 16px;
  font-weight: 600;
  color: #DC143C;
}

/* ============================================
   支付方式网格
   ============================================ */
.payment-grid-section {
  margin-bottom: 20px;
}

.section-header {
  margin-bottom: 16px;
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  color: #DC143C;
  margin: 0;
}

.payment-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.payment-card {
  background: #FFFFFF;
  border: 2px solid rgba(255, 215, 0, 0.3);
  border-radius: 16px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.payment-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #DC143C, #FFD700, #7FB069, #FF1493, #DC143C);
  background-size: 200% 100%;
  animation: cardTopGlow 3s linear infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.payment-card:hover::before,
.payment-card.selected::before {
  opacity: 1;
}

@keyframes cardTopGlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.payment-card:hover {
  border-color: #DC143C;
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(220, 20, 60, 0.2);
}

.payment-card.selected {
  border-color: #DC143C;
  background: #FFF8E7;
  box-shadow: 0 4px 12px rgba(220, 20, 60, 0.25);
}

.payment-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.payment-card-icon.wechat {
  background: linear-gradient(135deg, #07C160, #06A050);
  color: #FFFFFF;
}

.payment-card-icon.alipay {
  background: linear-gradient(135deg, #1677FF, #0958D9);
  color: #FFFFFF;
}

.payment-card:hover .payment-card-icon {
  transform: scale(1.1);
}

.payment-icon-svg {
  width: 36px;
  height: 36px;
}

.payment-card-info {
  flex: 1;
  width: 100%;
}

.payment-card-name {
  font-size: 16px;
  font-weight: 600;
  color: #333333;
  margin-bottom: 6px;
}

.payment-card-range {
  font-size: 12px;
  color: #888888;
}

.payment-card-arrow {
  position: absolute;
  top: 12px;
  right: 12px;
  opacity: 0.3;
  transition: all 0.3s ease;
}

.payment-card:hover .payment-card-arrow {
  opacity: 1;
  transform: translateX(4px);
}

.arrow-svg {
  width: 18px;
  height: 18px;
  color: #DC143C;
}

/* ============================================
   金额选择区域
   ============================================ */
.amount-selection-section {
  margin-bottom: 20px;
  animation: fadeInUp 0.5s ease-out;
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.amount-option {
  background: #FFFFFF;
  border: 2px solid #E0E0E0;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 16px;
  font-weight: 600;
  color: #333333;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.amount-option:hover {
  border-color: #DC143C;
  background: #FFF8E7;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 20, 60, 0.15);
}

.amount-option.selected {
  border-color: #DC143C;
  background: linear-gradient(135deg, #DC143C, #B22222);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(220, 20, 60, 0.3);
}

/* ============================================
   温馨提示
   ============================================ */
.tips-section {
  margin-bottom: 20px;
}

.tips-card {
  background: #FFFFFF;
  border: 2px solid rgba(255, 215, 0, 0.3);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.tips-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.tips-icon {
  width: 20px;
  height: 20px;
  color: #DC143C;
}

.tips-title {
  font-size: 16px;
  font-weight: 600;
  color: #DC143C;
  margin: 0;
}

.tips-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tips-item {
  font-size: 13px;
  color: #666666;
  line-height: 1.6;
  padding-left: 20px;
  position: relative;
}

.tips-item::before {
  content: '•';
  position: absolute;
  left: 0;
  top: 0;
  font-size: 16px;
  color: #FFD700;
  font-weight: bold;
}

/* ============================================
   充值按钮
   ============================================ */
.submit-section {
  margin-top: 8px;
}

.recharge-button-large {
  width: 100%;
  height: 56px;
  background: linear-gradient(135deg, #DC143C, #B22222);
  border: none;
  border-radius: 16px;
  color: #FFFFFF;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(220, 20, 60, 0.3);
  position: relative;
  overflow: hidden;
}

.recharge-button-large::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  animation: btnShine 2s ease-in-out infinite;
}

@keyframes btnShine {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.8;
  }
}

.recharge-button-large:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(220, 20, 60, 0.4);
}

.recharge-button-large:active:not(:disabled) {
  transform: translateY(0);
}

.recharge-button-large:disabled {
  background: #E0E0E0;
  color: #999999;
  cursor: not-allowed;
  box-shadow: none;
}

.submit-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.submit-text {
  font-size: 18px;
  font-weight: 700;
}

/* ============================================
   动画效果
   ============================================ */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   响应式设计
   ============================================ */
@media (max-width: 768px) {
  .recharge-container {
    padding: 12px;
  }
  
  .balance-main-card {
    padding: 20px 16px;
    border-radius: 12px;
  }

  .amount-value {
    font-size: 36px;
  }
  
  .amount-currency {
    font-size: 20px;
  }

  .payment-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .payment-card {
    padding: 18px;
    border-radius: 12px;
  }

  .payment-card-icon {
    width: 56px;
    height: 56px;
  }

  .payment-icon-svg {
    width: 32px;
    height: 32px;
  }

  .amount-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .amount-option {
    padding: 14px;
    font-size: 15px;
    min-height: 56px;
  }
  
  .recharge-button-large {
    height: 52px;
    font-size: 16px;
  }

  .selected-info-card {
    flex-direction: column;
    gap: 12px;
  }
}

@media (min-width: 769px) {
  .recharge-container {
    max-width: 600px;
    margin: 0 auto;
  }
}

/* ============================================
   支付弹窗样式
   ============================================ */
.layui-layer-content {
  background: #FFFFFF !important;
}

.payment-option {
  display: flex !important;
  align-items: center !important;
  padding: 18px !important;
  background: #FFFFFF !important;
  border: 2px solid #E0E0E0 !important;
  border-radius: 12px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
  margin-bottom: 0 !important;
}

.payment-option:hover {
  border-color: #DC143C !important;
  background: #FFF8E7 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(220, 20, 60, 0.15) !important;
}

.payment-option-icon {
  width: 48px !important;
  height: 48px !important;
  border-radius: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-right: 14px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
  transition: all 0.3s ease !important;
  flex-shrink: 0 !important;
}

.payment-option-icon.wechat {
  background: linear-gradient(135deg, #07C160, #06A050) !important;
  color: #FFFFFF !important;
}

.payment-option-icon.alipay {
  background: linear-gradient(135deg, #1677FF, #0958D9) !important;
  color: #FFFFFF !important;
}

.payment-option:hover .payment-option-icon {
  transform: scale(1.05) !important;
}

.option-icon-svg {
  width: 24px !important;
  height: 24px !important;
  color: currentColor !important;
}

.payment-option-info {
  flex: 1 !important;
  min-width: 0 !important;
}

.payment-option-name {
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #333333 !important;
  margin-bottom: 6px !important;
  display: block !important;
}

.payment-option-range {
  font-size: 12px !important;
  color: #888888 !important;
  display: block !important;
}

.payment-option-arrow {
  margin-left: 10px !important;
  flex-shrink: 0 !important;
}

.arrow-svg {
  width: 18px !important;
  height: 18px !important;
  color: #CCCCCC !important;
  transition: all 0.3s ease !important;
}

.payment-option:hover .arrow-svg {
  transform: translateX(4px) !important;
  color: #DC143C !important;
}

/* ============================================
   滚动条样式
   ============================================ */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #F5F5F5;
}

::-webkit-scrollbar-thumb {
  background: #DC143C;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #B22222;
}
