/* ============================================================
   finance.css - 彩缘汇 Finance Pages (chongzhi, tixian, tixianlist)
   ============================================================ */

.finance-layout {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px;
  min-height: 600px;
}

.finance-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.finance-card-header {
  padding: 20px 24px;
  border-bottom: 2px solid;
  border-image: var(--separator-gradient) 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.finance-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-deep);
  display: flex;
  align-items: center;
  gap: 8px;
}

.finance-card-title::before {
  content: '';
  width: 4px;
  height: 18px;
  background: var(--orange-rich);
  border-radius: 2px;
}

.finance-card-body {
  padding: 24px;
}

.balance-display {
  background: linear-gradient(135deg, var(--primary-deep), var(--primary-bright));
  border-radius: var(--radius);
  padding: 24px;
  color: #fff;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.balance-display::after {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}

.balance-label {
  font-size: 13px;
  opacity: 0.7;
  margin-bottom: 8px;
}

.balance-value {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 1px;
}

.balance-value small {
  font-size: 14px;
  font-weight: 400;
  opacity: 0.7;
  margin-left: 4px;
}

.recharge-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.recharge-option {
  padding: 16px 8px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.recharge-option:hover {
  border-color: var(--orange-warm);
  background: var(--orange-light);
}

.recharge-option.selected {
  border-color: var(--orange-warm);
  background: var(--orange-light);
  box-shadow: 0 0 0 3px rgba(244,122,85,0.15);
}

.recharge-option.selected::after {
  content: '✓';
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 12px;
  color: var(--orange-warm);
  font-weight: 700;
}

.recharge-amount {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary-deep);
  margin-bottom: 4px;
}

.recharge-option.selected .recharge-amount {
  color: var(--orange-warm);
}

.recharge-gift {
  font-size: 11px;
  color: var(--orange-warm);
  font-weight: 600;
}

.withdraw-form {
  max-width: 400px;
}

.withdraw-tips {
  background: var(--orange-light);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-top: 20px;
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.6;
}

.withdraw-tips strong {
  color: var(--orange-warm);
}

/* Transaction List */
.txn-filter {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.txn-filter-btn {
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--gray-200);
  background: var(--white);
  font-size: 13px;
  color: var(--gray-600);
  cursor: pointer;
  transition: var(--transition);
}

.txn-filter-btn:hover,
.txn-filter-btn.active {
  background: var(--primary-deep);
  color: #fff;
  border-color: var(--primary-deep);
}

.txn-status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
}

.txn-status.success { background: #e8f5ee; color: #27ae60; }
.txn-status.pending { background: #fff8e6; color: #f39c12; }
.txn-status.failed { background: #fff5f5; color: #e74c3c; }

@media (max-width: 768px) {
  .finance-layout { padding: 12px; }
  .recharge-options { grid-template-columns: repeat(2, 1fr); }
  .balance-value { font-size: 26px; }
}

/* ============================================================
   Jine Page (金额明细)
   ============================================================ */
.je-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px;
}
.je-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}
.je-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--gray-100);
}
.je-tab {
  flex: 1;
  padding: 16px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-500);
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 3px solid transparent;
}
.je-tab:hover {
  color: var(--primary-deep);
}
.je-tab.active {
  color: var(--orange-warm);
  border-bottom-color: var(--orange-warm);
  background: var(--primary-light);
}
.tab-icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  text-align: center;
  line-height: 24px;
  font-size: 12px;
  font-weight: 700;
  margin-right: 6px;
}
.icon-points { background: #e8f5e9; color: #2e7d32; }
.icon-balance { background: #fff3e0; color: #ef6c00; }
.icon-sales { background: #e3f2fd; color: #1565c0; }
.icon-expert { background: #fce4ec; color: #c2185b; }
.je-summary {
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--gray-50);
}
.je-summary-label {
  font-size: 13px;
  color: var(--gray-500);
}
.je-summary-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary-deep);
  margin-top: 4px;
}
.je-summary-value span {
  font-size: 14px;
  font-weight: 400;
  color: var(--gray-400);
}
.je-summary-actions {
  display: flex;
  gap: 12px;
}
.je-btn-recharge, .je-btn-withdraw {
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}
.je-btn-recharge {
  background: linear-gradient(135deg, var(--orange-warm), var(--orange-rich));
  color: var(--white);
}
.je-btn-withdraw {
  background: var(--white);
  color: var(--primary-deep);
  border: 2px solid var(--primary-deep);
}
.je-btn-recharge:hover, .je-btn-withdraw:hover {
  transform: translateY(-1px);
}
.je-table {
  width: 100%;
  border-collapse: collapse;
}
.je-table th {
  padding: 14px 16px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-500);
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-100);
}
.je-table td {
  padding: 14px 16px;
  font-size: 14px;
  color: var(--gray-600);
  border-bottom: 1px solid var(--gray-100);
}
.je-capital-type {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
}
.je-capital-points { background: #e8f5e9; color: #2e7d32; }
.je-capital-balance { background: #fff3e0; color: #ef6c00; }
.je-capital-sales { background: #e3f2fd; color: #1565c0; }
.je-capital-expert { background: #fce4ec; color: #c2185b; }
.je-amount-add { color: var(--green); font-weight: 700; }
.je-amount-subtract { color: var(--red); font-weight: 700; }
.je-op-add { color: var(--green); }
.je-op-subtract { color: var(--red); }
.je-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-400);
}
.je-empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
}
.je-pagination {
  padding: 20px;
  text-align: center;
}
@media (max-width: 768px) {
  .je-tabs { flex-wrap: wrap; }
  .je-tab { flex: none; width: 50%; }
  .je-summary { flex-direction: column; gap: 16px; text-align: center; }
}
