/* 基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  background-color: #f8f9fa;
  color: #333;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* 头部样式 */
.header {
  text-align: center;
  margin-bottom: 30px;
}

.header h1 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 10px;
}

.header p {
  color: #666;
  font-size: 1.1rem;
}

/* 账户信息样式 */
.account-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
  gap: 20px;
}

.balance-card, .history-card {
  flex: 1;
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.balance-card .label, .history-card .label {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 10px;
}

.balance-card .value, .history-card .value {
  font-size: 2rem;
  font-weight: bold;
  color: #333;
}

/* 充值区域样式 */
.recharge-section {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.recharge-section h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #333;
}

.preset-amounts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.amount-btn {
  padding: 15px;
  border: none;
  border-radius: 8px;
  background: #f8f9fa;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  font-weight: bold;
}

.amount-btn:hover {
  background: #e9ecef;
  transform: translateY(-2px);
}

.amount-btn:active {
  transform: translateY(0);
}

.amount-btn .amount {
  font-size: 1.2rem;
  color: #333;
  display: block;
}

.amount-btn .real-price {
  font-size: 0.9rem;
  color: #666;
}

.custom-amount {
  margin-bottom: 20px;
}

.custom-amount label {
  display: block;
  margin-bottom: 10px;
  font-weight: bold;
  color: #333;
}

.custom-amount input[type="number"] {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
}

.amount-info {
  display: flex;
  align-items: center;
  margin-top: 10px;
  gap: 15px;
}

.amount-info input[type="number"] {
  width: 60px;
  padding: 5px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.payment-methods {
  margin-bottom: 20px;
}

.payment-methods h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: #333;
}

.method-buttons {
  display: flex;
  gap: 15px;
}

.method-btn {
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  background: #f8f9fa;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.method-btn.active {
  background: #007bff;
  color: white;
}

.method-btn:hover:not(.active) {
  background: #e9ecef;
}

.redeem-code-section {
  margin-bottom: 20px;
}

.redeem-code-section h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: #333;
}

.redeem-input {
  display: flex;
  gap: 10px;
}

.redeem-input input[type="text"] {
  flex: 1;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
}

.redeem-btn {
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  background: #007bff;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.redeem-btn:hover {
  background: #0056b3;
}

.submit-btn {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 8px;
  background: #28a745;
  color: white;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  background: #218838;
}

/* 邀请奖励区域样式 */
.invite-reward {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.invite-reward h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #333;
}

.invite-reward p {
  color: #666;
  margin-bottom: 20px;
}

.reward-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.info-item {
  text-align: center;
}

.info-item .label {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 5px;
}

.info-item .value {
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
}

.aff-link {
  margin-top: 20px;
}

.link-container {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.link-container input[type="text"] {
  flex: 1;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: monospace;
  font-size: 0.9rem;
}

.copy-btn {
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  background: #007bff;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.copy-btn:hover {
  background: #0056b3;
}

.link-description {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .container {
    padding: 10px;
  }
  
  .account-info {
    flex-direction: column;
    gap: 15px;
  }
  
  .preset-amounts {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }
  
  .method-buttons {
    flex-direction: column;
  }
  
  .method-btn {
    width: 100%;
  }
  
  .redeem-input {
    flex-direction: column;
  }
  
  .redeem-input input[type="text"] {
    width: 100%;
  }
}