:root {
  --primary-color: #3f51b5;
  --primary-light: #757de8;
  --primary-dark: #002984;
  --secondary-color: #ff9100;
  --text-color: #333;
  --light-text: #666;
  --bg-color: #f7f9fc;
  --card-bg: #fff;
  --error-color: #d32f2f;
  --success-color: #388e3c;
  --border-color: #e0e0e0;
  --shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

h1 {
  color: var(--primary-dark);
  font-weight: 600;
}

main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card {
  background-color: var(--card-bg);
  border-radius: 8px;
  padding: 25px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

h2 {
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: 500;
  font-size: 1.5rem;
}

.form-group {
  margin-bottom: 15px;
}

label {
  display: block;
  margin-bottom: 5px;
  color: var(--light-text);
  font-weight: 500;
}

input {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

input:focus {
  outline: none;
  border-color: var(--primary-light);
}

button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 10px 20px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

button:hover {
  background-color: var(--primary-dark);
}

button[type="button"] {
  background-color: transparent;
  color: var(--primary-color);
}

button[type="button"]:hover {
  background-color: rgba(63, 81, 181, 0.05);
}

.form-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 25px;
}

#url-list {
  width: 100%;
  border-collapse: collapse;
}

#url-list th,
#url-list td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

#url-list th {
  background-color: #f3f4f6;
  font-weight: 500;
  color: var(--light-text);
}

#url-list tr:hover {
  background-color: #f9fafc;
}

.url-status {
  padding: 4px 8px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 500;
}

.status-pending {
  background-color: #fff8e1;
  color: #f57c00;
}

.status-processed {
  background-color: #e8f5e9;
  color: #388e3c;
}

.filter-section {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.filter-btn {
  background-color: transparent;
  color: var(--light-text);
  border: 1px solid var(--border-color);
  border-radius: 30px;
  padding: 5px 15px;
  font-size: 0.9rem;
}

.filter-btn.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.delete-btn {
  background-color: transparent;
  color: var(--error-color);
  padding: 5px;
  font-size: 0.9rem;
}

.delete-btn:hover {
  background-color: rgba(211, 47, 47, 0.05);
}

#message-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.message {
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  animation: slideIn 0.3s ease-out;
}

.message-success {
  background-color: var(--success-color);
  color: white;
}

.message-error {
  background-color: var(--error-color);
  color: white;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.hidden {
  display: none !important;
}

/* 多行文本框样式 */
textarea {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.3s;
  resize: vertical;
  min-height: 120px;
}

textarea:focus {
  outline: none;
  border-color: var(--primary-light);
}

.form-hint {
  display: block;
  margin-top: 5px;
  color: var(--light-text);
  font-size: 0.85rem;
}

/* 弹窗样式 */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background-color: var(--card-bg);
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
  margin: 0;
  color: var(--primary-color);
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--light-text);
  padding: 0;
}

.close-btn:hover {
  color: var(--primary-color);
}

.modal-body {
  padding: 20px;
}

.detail-info {
  margin-bottom: 20px;
}

.detail-info p {
  margin: 8px 0;
}

.detail-urls {
  margin-top: 15px;
}

.detail-urls h4 {
  margin-bottom: 15px;
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--primary-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.export-btn {
  background-color: var(--secondary-color);
  color: white;
  font-size: 0.8rem;
  padding: 5px 10px;
  border-radius: 4px;
  margin-left: 10px;
}

.export-btn:hover {
  background-color: #e68300;
}

.detail-urls ul {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  border-radius: 4px;
}

.detail-urls li {
  padding: 10px;
  border-bottom: 1px solid var(--border-color);
  word-break: break-all;
}

.detail-urls li:last-child {
  border-bottom: none;
}

.detail-urls a {
  color: var(--primary-color);
  text-decoration: none;
}

.detail-urls a:hover {
  text-decoration: underline;
}

/* 用户中心和充值相关样式 */
.header-actions {
  display: flex;
  gap: 10px;
}

.dashboard-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 15px;
}

.balance-display {
  background-color: var(--primary-light);
  color: white;
  padding: 10px 15px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.balance-display strong {
  font-size: 1.2rem;
  margin: 0 5px;
}

.recharge-btn {
  background-color: var(--secondary-color);
  font-size: 0.8rem;
  padding: 5px 10px;
  border-radius: 4px;
  white-space: nowrap;
}

.recharge-btn:hover {
  background-color: #e68300;
}

.user-info {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
  border-left: 4px solid var(--primary-color);
}

.user-info p {
  margin: 10px 0;
  display: flex;
  align-items: center;
}

.user-info strong {
  display: inline-block;
  width: 100px;
}

.profile-forms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.profile-form {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 15px;
}

.profile-form h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1.1rem;
  font-weight: 500;
}

.form-actions.center {
  justify-content: center;
}

.recharge-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.recharge-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-color);
  transition: all 0.3s;
}

.recharge-option:hover {
  border-color: var(--primary-color);
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.option-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.option-title {
  font-weight: 500;
  margin-bottom: 5px;
  color: var(--primary-color);
}

.option-desc {
  font-size: 0.85rem;
  color: var(--light-text);
  text-align: center;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .profile-forms {
    grid-template-columns: 1fr;
  }
  
  .recharge-options {
    grid-template-columns: 1fr;
  }
}

/* USDT支付弹窗样式 */
.usdt-payment-modal {
  display: none;
  position: fixed;
  z-index: 1001;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

.usdt-payment-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px;
  border-radius: 10px;
  max-width: 500px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.usdt-payment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.usdt-payment-body {
  text-align: center;
}

.usdt-address-container {
  margin: 20px 0;
  padding: 10px;
  background-color: #f5f5f5;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.usdt-address {
  word-break: break-all;
  font-family: monospace;
  font-size: 14px;
  color: #333;
  margin-right: 10px;
}

.copy-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 5px 10px;
  cursor: pointer;
}

.copy-btn:hover {
  background-color: var(--primary-dark);
}

.qr-code-container {
  margin: 20px auto;
  width: 200px;
  height: 200px;
  background-color: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.payment-info {
  margin: 20px 0;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 5px;
  border-left: 4px solid var(--primary-color);
}

.transaction-hash-container {
  margin: 20px 0;
}

.transaction-hash-container label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--light-text);
}

.hash-input-group {
  display: flex;
  align-items: center;
}

.hash-input-group input {
  flex: 1;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 0.95rem;
  font-family: monospace;
}

.hash-input-group input:focus {
  border-color: var(--primary-color);
  outline: none;
}

.start-payment-btn {
  display: block;
  width: 100%;
  padding: 12px;
  margin: 25px 0;
  background-color: var(--secondary-color);
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.start-payment-btn:hover {
  background-color: #e68300;
}

.payment-status {
  margin-top: 20px;
  padding: 15px;
  border-radius: 5px;
  font-weight: bold;
  display: none;
}

.payment-status.pending {
  display: block;
  background-color: #fff3cd;
  border: 1px solid #ffeeba;
  color: #856404;
}

.payment-status.success {
  display: block;
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.payment-status.error {
  display: block;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 1s ease-in-out infinite;
  margin-right: 10px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
} 