:root {
  color-scheme: light dark;
  --bg-primary: #0a0b0d;
  --bg-secondary: #1a1b1e;
  --bg-tertiary: #2b2d33;
  --bg-card: #1e1f24;
  --bg-hover: #2a2d36;
  --text-primary: #e4e4e7;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --primary: #fbbf24;
  --primary-dark: #f59e0b;
  --primary-light: #fde68a;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --border: #2a2d36;
  --border-light: #373a41;
  --gradient-primary: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  --gradient-hero: linear-gradient(180deg, #0a0b0d 0%, #1a1b1e 50%, #1e1f24 100%);
  --gradient-card: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(251, 191, 36, 0.05) 100%);
  --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --gradient-cta: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 24px rgba(251, 191, 36, 0.3);
  --shadow-success: 0 0 24px rgba(16, 185, 129, 0.3);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* 导航栏 */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(10, 11, 13, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.logo-icon {
  font-size: 1.8rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.nav-menu {
  display: flex;
  gap: 30px;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.language-switcher {
  background: var(--bg-hover);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
}

.btn-login, .btn-register, .btn-logout {
  padding: 10px 20px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-primary);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-login:hover {
  background: var(--bg-hover);
  border-color: var(--primary);
}

.btn-register {
  background: var(--gradient-primary);
  border-color: var(--primary);
  color: var(--bg-primary);
}

.btn-register:hover {
  background: var(--gradient-cta);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 15px;
}

.user-balance {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0.1) 100%);
  border: 1px solid var(--success);
  border-radius: 8px;
  font-size: 0.9rem;
}

.balance-label {
  color: var(--text-secondary);
  font-weight: 500;
}

.balance-amount {
  color: var(--success);
  font-weight: 700;
  font-size: 1rem;
}

.user-name {
  color: var(--primary);
  font-weight: 600;
}

.btn-logout {
  background: var(--danger);
  border-color: var(--danger);
  color: white;
  padding: 8px 16px;
  font-size: 0.9rem;
}

.btn-logout:hover {
  background: #dc2626;
}

/* 英雄区域 */
.hero {
  padding: 120px 0 80px;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(251, 191, 36, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(239, 68, 68, 0.05) 0%, transparent 50%);
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  min-height: 600px;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 30px;
  color: var(--text-primary);
  background: linear-gradient(135deg, #fbbf24 0%, #fde68a 50%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.hero-btn {
  padding: 15px 30px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-primary.hero-btn {
  background: var(--gradient-cta);
  color: var(--bg-primary);
  box-shadow: var(--shadow-glow);
}

.btn-primary.hero-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 30px rgba(251, 191, 36, 0.5);
}

.btn-secondary.hero-btn {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary.hero-btn:hover {
  background: var(--primary);
  color: var(--bg-primary);
  transform: translateY(-2px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.stat-item {
  text-align: center;
  padding: 20px;
  background: var(--gradient-card);
  border-radius: 16px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

/* 英雄区域可视化 */
.hero-visual {
  position: relative;
  height: 500px;
}

.dashboard-preview {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-lg);
  position: absolute;
  top: 50px;
  right: 0;
  width: 320px;
  backdrop-filter: blur(16px);
  animation: cardFloat 6s ease-in-out infinite;
}

@keyframes cardFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
}

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

.preview-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.red { background: var(--danger); }
.dot.yellow { background: var(--warning); }
.dot.green { background: var(--success); }

.preview-title {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

.preview-content .metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.metric-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.metric-value {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1.1rem;
}

.metric-value.success {
  color: var(--success);
}

.metric-value.status-running {
  background: var(--gradient-success);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  font-weight: 700;
}

.chart-container {
  margin-top: 20px;
  height: 80px;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 100%;
}

.chart-bar {
  flex: 1;
  background: var(--gradient-primary);
  border-radius: 4px 4px 0 0;
  animation: chartGrow 1s ease-out forwards;
}

@keyframes chartGrow {
  from { height: 0; }
}

.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.floating-element {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-md);
  animation: float 8s ease-in-out infinite;
}

.floating-element:nth-child(1) {
  top: 50px;
  left: 30px;
  animation-delay: 0s;
}

.floating-element:nth-child(2) {
  top: 150px;
  left: 80px;
  animation-delay: 2s;
}

.floating-element:nth-child(3) {
  top: 80px;
  left: 180px;
  animation-delay: 4s;
}

.floating-element:nth-child(4) {
  top: 200px;
  left: 150px;
  animation-delay: 6s;
}

/* 功能特性 */
.features {
  padding: 100px 0;
  background: var(--bg-secondary);
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: block;
}

.feature-card h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.7;
}


/* 营销区域 */
.marketing {
  padding: 100px 0;
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.marketing::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(251, 191, 36, 0.05) 0%, transparent 70%);
}

.marketing-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.marketing-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.marketing-subtitle {
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 20px;
  font-weight: 600;
}

.marketing-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
  line-height: 1.7;
}

.marketing-features {
  display: grid;
  gap: 15px;
}

.feature-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 15px 20px;
  color: var(--text-primary);
  font-weight: 500;
  transition: all 0.3s ease;
}

.feature-item:hover {
  border-color: var(--primary);
  transform: translateX(10px);
}

.cta-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--primary);
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.1) 0%, transparent 70%);
  animation: ctaPulse 3s ease-in-out infinite;
}

@keyframes ctaPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.cta-box h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 30px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.btn-cta {
  background: var(--gradient-cta);
  color: var(--bg-primary);
  padding: 18px 40px;
  border: none;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-glow);
}

.btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 30px rgba(251, 191, 36, 0.5);
}

.btn-icon {
  font-size: 1.3rem;
}

.cta-note {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
}

/* 模态框 */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  backdrop-filter: blur(8px);
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  width: 90%;
  max-width: 480px;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

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

.auth-form h2 {
  text-align: center;
  margin-bottom: 30px;
  color: var(--text-primary);
  font-size: 1.8rem;
  font-weight: 600;
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-secondary);
  font-weight: 500;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 15px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.1);
}

.captcha-input {
  display: flex;
  gap: 10px;
  align-items: center;
}

.captcha-input input {
  flex: 1;
}

.captcha-image {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-secondary);
}

.captcha-refresh {
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s ease;
}

.captcha-refresh:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.btn-primary {
  width: 100%;
  padding: 15px;
  background: var(--gradient-primary);
  border: none;
  border-radius: 10px;
  color: var(--bg-primary);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.btn-primary:hover {
  background: var(--gradient-cta);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.auth-switch {
  text-align: center;
  margin-top: 20px;
  color: var(--text-secondary);
}

.auth-switch a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.auth-switch a:hover {
  text-decoration: underline;
}

/* 控制台 */
.dashboard {
  padding: 100px 0 50px;
  background: var(--bg-secondary);
  min-height: 100vh;
}

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

.dashboard-header h2 {
  color: var(--text-primary);
  font-size: 2rem;
  font-weight: 700;
}

.user-info {
  color: var(--text-secondary);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.dashboard-section h3 {
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 30px;
}

.card h4 {
  color: var(--text-primary);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.btn-secondary {
  background: var(--bg-hover);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  margin-bottom: 20px;
}

.btn-secondary:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--bg-primary);
}

.form-inline {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.form-inline input {
  flex: 1;
}

.result {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 15px;
  color: var(--text-secondary);
  font-family: monospace;
  font-size: 0.9rem;
  margin-top: 15px;
}

.table-wrapper {
  overflow-x: auto;
  margin-top: 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

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

th {
  color: var(--text-secondary);
  font-weight: 600;
  background: var(--bg-secondary);
}

td {
  color: var(--text-primary);
}

/* 页脚 */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
  color: var(--text-primary);
  margin-bottom: 20px;
}

.footer-section h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
}

.footer-section h4 {
  font-size: 1.1rem;
  font-weight: 600;
}

.footer-section p {
  color: var(--text-secondary);
  line-height: 1.7;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 10px;
}

.footer-section a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
}

/* Toast 通知 */
.toast {
  position: fixed;
  top: 100px;
  right: 30px;
  left: auto;
  background: var(--bg-card);
  border: 3px solid var(--border);
  border-radius: 16px;
  padding: 24px 32px;
  color: var(--text-primary);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.8);
  z-index: 9999;
  transform: translateX(500px);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  max-width: 500px;
  font-size: 1.15rem;
  font-weight: 700;
  min-width: 350px;
  pointer-events: none;
  display: block !important;
}

.toast.show {
  transform: translateX(0);
  opacity: 1 !important;
  pointer-events: auto;
}

.toast.error {
  background: var(--danger) !important;
  border-color: #dc2626 !important;
  color: white !important;
  box-shadow: 0 12px 48px rgba(239, 68, 68, 0.7) !important;
}

.toast.success {
  background: var(--success) !important;
  border-color: #059669 !important;
  color: white !important;
  box-shadow: 0 12px 48px rgba(16, 185, 129, 0.7) !important;
}

.toast.error.show {
  animation: shakeToast 0.6s ease-in-out;
}

.toast.success.show {
  animation: bounceInToast 0.7s ease-out;
}

@keyframes shakeToast {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-8px); }
  20%, 40%, 60%, 80% { transform: translateX(8px); }
}

@keyframes bounceInToast {
  0% {
    transform: translateX(0) scale(0.5);
    opacity: 0;
  }
  50% {
    transform: translateX(0) scale(1.1);
    opacity: 1;
  }
  65% {
    transform: translateX(0) scale(0.95);
  }
  80% {
    transform: translateX(0) scale(1.05);
  }
  100% {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
}

/* 测试模式横幅 */
.test-mode-banner {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(245, 158, 11, 0.1) 100%);
  border: 2px solid var(--warning);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  animation: bannerSlideIn 0.5s ease-out;
}

.banner-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.banner-content {
  flex: 1;
}

.banner-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--warning);
  margin-bottom: 5px;
}

.banner-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

@keyframes bannerSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 快速充值卡片 */
.quick-recharge-card {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(251, 191, 36, 0.05) 100%);
  border: 2px solid var(--primary);
}

.quick-recharge-desc {
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 30px;
  font-size: 0.95rem;
}

.quick-recharge-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.recharge-option {
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 25px 20px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  cursor: pointer;
  user-select: none;
}

.recharge-option:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(251, 191, 36, 0.2);
}

.recharge-option.recommended {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.15) 0%, rgba(251, 191, 36, 0.05) 100%);
}

.recharge-option.active {
  border-color: var(--primary) !important;
  border-width: 3px;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, rgba(251, 191, 36, 0.1) 100%);
  box-shadow: 0 8px 32px rgba(251, 191, 36, 0.4);
  transform: translateY(-8px);
}

.recharge-option.active::after {
  content: '✓';
  position: absolute;
  top: 10px;
  left: 10px;
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: var(--bg-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  animation: checkmarkPop 0.3s ease-out;
}

@keyframes checkmarkPop {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.recommended-badge {
  position: absolute;
  top: -10px;
  right: 15px;
  background: var(--gradient-primary);
  color: var(--bg-primary);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
}

.best-deal-badge {
  position: absolute;
  top: -10px;
  right: 15px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.6);
  }
}

.recharge-option.best-deal {
  border-color: #ef4444;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.05) 100%);
}

.recharge-option.best-deal:hover {
  border-color: #ef4444;
  box-shadow: 0 8px 32px rgba(239, 68, 68, 0.3);
}

.recharge-option.best-deal .option-price {
  color: #ef4444;
}

.option-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.option-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.option-price {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.option-desc {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 20px;
  min-height: 40px;
}

.btn-quick-recharge {
  width: 100%;
  padding: 12px 20px;
  background: var(--gradient-primary);
  border: none;
  border-radius: 8px;
  color: var(--bg-primary);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-quick-recharge:hover {
  background: var(--gradient-cta);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
}

/* 状态样式 */
.status-pending {
  color: var(--warning);
}

.status-paid {
  color: var(--primary);
}

.status-confirmed {
  color: var(--success);
}

.status-failed {
  color: var(--danger);
}

.status-cancelled {
  color: var(--text-muted);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-visual {
    height: 400px;
  }

  .dashboard-preview {
    position: static;
    margin: 0 auto;
    width: 100%;
    max-width: 320px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  
  .marketing-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .modal-content {
    margin: 20px;
    padding: 30px 20px;
  }

  .captcha-input {
    flex-direction: column;
    align-items: stretch;
  }

  .form-inline {
    flex-direction: column;
  }

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

  .toast {
    right: 20px;
    left: 20px;
    min-width: auto;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero {
    padding: 100px 0 60px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .marketing-title {
    font-size: 2rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .nav-actions {
    gap: 10px;
  }

  .language-switcher {
    padding: 6px 8px;
    font-size: 0.8rem;
  }

  .btn-login, .btn-register {
    padding: 8px 15px;
    font-size: 0.9rem;
  }
}

/* 价格卡片 */
.pricing-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
  border: 2px solid var(--success);
}

.pricing-table {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pricing-row {
  display: grid;
  grid-template-columns: 1fr auto 1.5fr auto;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.pricing-row.clickable {
  cursor: pointer;
}

.pricing-row:hover {
  transform: translateX(5px);
  border-color: var(--success);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.2);
}

.pricing-row.popular {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.15) 0%, rgba(251, 191, 36, 0.05) 100%);
}

.pricing-row.popular:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(251, 191, 36, 0.3);
}

.pricing-row.best-value {
  border-color: #ef4444;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.05) 100%);
  position: relative;
}

.pricing-row.best-value::before {
  content: '🎁 超值优惠';
  position: absolute;
  top: -10px;
  right: 15px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

.pricing-row.best-value:hover {
  border-color: #ef4444;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
  transform: translateX(8px) scale(1.02);
}

.pricing-row.best-value .pricing-price {
  color: #ef4444;
  font-size: 1.6rem;
}

.pricing-duration {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.pricing-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--success);
}

.pricing-row.popular .pricing-price {
  color: var(--primary);
}

.pricing-note {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-align: right;
}

.btn-quick-auth {
  background: var(--gradient-primary);
  color: var(--bg-primary);
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-quick-auth:hover {
  background: var(--gradient-cta);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
}

.pricing-row.best-value .btn-quick-auth {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
}

.pricing-row.best-value .btn-quick-auth:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

@media (max-width: 768px) {
  .pricing-row {
    grid-template-columns: 1fr;
    gap: 8px;
    text-align: center;
  }

  .pricing-note {
    text-align: center;
  }
}