:root {
  --primary: #6366f1;
  --primary-light: #818cf8;
  --primary-dark: #4f46e5;
  --secondary: #ec4899;
  --background: #0f172a;
  --background-light: #1e293b;
  --card-bg: #1e293b;
  --card-hover: #334155;
  --text: #f1f5f9;
  --text-light: #94a3b8;
  --text-muted: #64748b;
  --border: #334155;
  --success: #22c55e;
  --success-bg: rgba(34, 197, 94, 0.1);
  --warning: #f59e0b;
  --warning-bg: rgba(245, 158, 11, 0.1);
  --danger: #ef4444;
  --danger-bg: rgba(239, 68, 68, 0.1);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 8px 30px rgba(99, 102, 241, 0.3);
  --radius: 12px;
  --radius-lg: 20px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--text);
  background: var(--background);
  line-height: 1.6;
}

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

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

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

.nav-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--primary-light);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--background) 0%, var(--background-light) 50%, var(--background) 100%);
  padding: 100px 20px 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero .highlight {
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero > .hero-content > p {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-bottom: 40px;
}

.stat-item {
  text-align: center;
}

.stat-num {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.section {
  padding: 80px 0;
}

.section-gray {
  background: var(--background-light);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
}

.section-desc {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 48px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
}

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

.btn-secondary {
  background: var(--card-hover);
  color: var(--text);
}

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

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

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.btn-danger {
  background: linear-gradient(135deg, var(--danger), #dc2626);
  color: white;
}

.btn-danger:hover {
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.download-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.download-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
}

.download-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.download-card h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.download-card p {
  color: var(--text-light);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.download-notice {
  text-align: center;
  margin-top: 32px;
  padding: 16px;
  background: var(--warning-bg);
  border-radius: var(--radius);
  color: var(--warning);
}

.tutorial-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.step-item {
  display: flex;
  gap: 16px;
  background: var(--card-bg);
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.step-num {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.step-content h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.step-content p {
  color: var(--text-light);
  font-size: 0.9rem;
}

.tutorial-tips {
  margin-top: 32px;
  background: var(--card-bg);
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.tutorial-tips h4 {
  margin-bottom: 16px;
}

.tutorial-tips ul {
  list-style: none;
}

.tutorial-tips li {
  padding: 8px 0;
  padding-left: 20px;
  position: relative;
  color: var(--text-light);
}

.tutorial-tips li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary-light);
}

.auth-card {
  max-width: 600px;
  margin: 0 auto;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}

.auth-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 24px;
  text-align: center;
}

.auth-header h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.auth-header p {
  color: rgba(255, 255, 255, 0.8);
}

.auth-body {
  padding: 24px;
}

.auth-warning {
  text-align: center;
  padding: 40px 24px;
}

.warning-icon {
  font-size: 4rem;
  margin-bottom: 16px;
}

.auth-warning h3 {
  color: var(--danger);
  margin-bottom: 8px;
}

.auth-warning p {
  color: var(--text-light);
}

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

.form-group label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 8px;
}

.form-group input {
  width: 100%;
  padding: 14px 16px;
  background: var(--background);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 1rem;
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus {
  border-color: var(--primary);
}

.form-group input::placeholder {
  color: var(--text-muted);
}

.auth-info {
  margin-bottom: 24px;
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.info-item:last-child {
  border-bottom: none;
}

.info-label {
  color: var(--text-light);
}

.info-value {
  font-weight: 600;
}

.code-value {
  display: flex;
  align-items: center;
  gap: 8px;
}

.code-value span {
  font-family: monospace;
  font-size: 1.1rem;
  letter-spacing: 1px;
}

.btn-copy {
  background: var(--primary);
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

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

.text-success {
  color: var(--success);
}

.text-warning {
  color: var(--warning);
}

.text-danger {
  color: var(--danger);
}

.auth-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.action-group {
  background: var(--background);
  padding: 16px;
  border-radius: var(--radius);
}

.action-group h4 {
  font-size: 1rem;
  margin-bottom: 12px;
}

.action-group p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 12px;
}

.auth-empty {
  text-align: center;
  padding: 20px 0;
}

.auth-empty p {
  color: var(--text-light);
  margin-bottom: 16px;
}

.auth-logout {
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.feedback-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feedback-card {
  background: var(--card-bg);
  padding: 32px;
  border-radius: var(--radius-lg);
  text-align: center;
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.feedback-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
}

.feedback-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.feedback-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.feedback-card p {
  color: var(--text-light);
  font-size: 0.9rem;
}

.feedback-value {
  margin-top: 12px;
  color: var(--primary-light);
  font-weight: 600;
}

.feedback-notice {
  text-align: center;
  margin-top: 32px;
  padding: 16px;
  background: var(--card-bg);
  border-radius: var(--radius);
  color: var(--text-light);
}

.footer {
  background: var(--background-light);
  padding: 40px 20px;
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 4px 0;
}

.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--card-bg);
  color: var(--text);
  padding: 14px 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 2000;
  opacity: 0;
  transition: all 0.3s;
  border: 1px solid var(--border);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast.success {
  border-color: var(--success);
  background: var(--success-bg);
}

.toast.error {
  border-color: var(--danger);
  background: var(--danger-bg);
}

.result-box {
  margin-top: 16px;
  padding: 16px;
  border-radius: var(--radius);
  font-size: 0.9rem;
}

.result-box.success {
  background: var(--success-bg);
  border: 1px solid var(--success);
  color: var(--success);
}

.result-box.error {
  background: var(--danger-bg);
  border: 1px solid var(--danger);
  color: var(--danger);
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--background);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 24px;
  }

  .hero-btns {
    flex-direction: column;
  }

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

  .auth-actions {
    grid-template-columns: 1fr;
  }
}
