/* ===== iktk 网页端 - 科技感设计系统 ===== */

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

:root {
  --primary: #6366f1;
  --primary-light: #818cf8;
  --primary-lighter: #a5b4fc;
  --primary-dark: #4f46e5;
  --accent-cyan: #06b6d4;
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  --dark-blue: #1e3a8a;
  --text-primary: #1a1d26;
  --text-secondary: #6b7280;
  --text-tertiary: #9ca3af;
  --text-light: #a0a8b8;
  --bg-base: #f5f7fb;
  --bg-gradient: linear-gradient(180deg, #f5f7fb 0%, #eef1f8 100%);
  --bg-card: #ffffff;
  --border-light: rgba(99, 102, 241, 0.08);
  --shadow-sm: 0 1px 2px rgba(20, 30, 60, 0.02), 0 4px 12px rgba(99, 102, 241, 0.04);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.02), 0 8px 32px rgba(99, 102, 241, 0.05);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.04), 0 16px 48px rgba(99, 102, 241, 0.08);
  --shadow-glow: 0 4px 12px rgba(99, 102, 241, 0.25), 0 8px 24px rgba(99, 102, 241, 0.15);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --gradient-primary: linear-gradient(135deg, #6366f1 0%, #818cf8 50%, #a5b4fc 100%);
  --gradient-title: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 30%, #6366f1 60%, #06b6d4 100%);
  --gradient-price: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', 'Segoe UI', sans-serif;
  background: var(--bg-gradient);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.2px;
  min-height: 100vh;
}

/* ===== 顶部导航栏 ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 0 rgba(99, 102, 241, 0.04);
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.navbar-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 1px;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.navbar-title {
  font-size: 22px;
  font-weight: 800;
  background: var(--gradient-title);
  -webkit-background-clip: text;
  color: transparent;
  letter-spacing: 2px;
}

.navbar-subtitle {
  font-size: 12px;
  color: var(--text-tertiary);
  letter-spacing: 1px;
  margin-top: -2px;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar-link {
  padding: 8px 16px;
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 999px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.navbar-link:hover {
  color: var(--primary);
  background: rgba(99, 102, 241, 0.06);
}

.navbar-link.active {
  color: var(--primary);
  background: rgba(99, 102, 241, 0.1);
  font-weight: 600;
}

.navbar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 16px 6px 6px;
  background: rgba(99, 102, 241, 0.04);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.navbar-user:hover {
  background: rgba(99, 102, 241, 0.08);
}

.navbar-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
}

.navbar-username {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
}

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-secondary {
  background: rgba(99, 102, 241, 0.08);
  color: var(--primary);
}

.btn-secondary:hover {
  background: rgba(99, 102, 241, 0.12);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.btn-outline:hover {
  background: rgba(99, 102, 241, 0.06);
  border-color: var(--primary);
}

.btn-danger {
  background: rgba(244, 63, 94, 0.08);
  color: #e11d48;
}

.btn-danger:hover {
  background: rgba(244, 63, 94, 0.12);
}

.btn-sm {
  padding: 6px 16px;
  font-size: 12px;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
}

.btn-block {
  width: 100%;
}

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

/* ===== 容器与布局 ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
}

.container-narrow {
  max-width: 480px;
  margin: 0 auto;
  padding: 32px 24px;
}

/* ===== 卡片 ===== */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  padding: 24px;
  transition: all 0.25s ease;
}

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

/* ===== 落地页 Hero 区域 ===== */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse at top right, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(6, 182, 212, 0.06) 0%, transparent 50%),
    linear-gradient(135deg, #f8faff 0%, #eef2fb 40%, #f5f8ff 100%);
  padding: 80px 24px 100px;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -100px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.25) 0%, rgba(59, 130, 246, 0.12) 30%, transparent 65%);
  filter: blur(30px);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(6, 182, 212, 0.2) 0%, rgba(59, 130, 246, 0.08) 35%, transparent 60%);
  filter: blur(25px);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 72px;
  font-weight: 900;
  background: var(--gradient-title);
  -webkit-background-clip: text;
  color: transparent;
  letter-spacing: 8px;
  margin-bottom: 16px;
  filter: drop-shadow(0 2px 12px rgba(59, 130, 246, 0.3));
}

.hero-subtitle {
  font-size: 18px;
  color: var(--primary);
  letter-spacing: 4px;
  font-weight: 500;
  margin-bottom: 24px;
  opacity: 0.7;
}

.hero-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-tags {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-tag {
  font-size: 13px;
  color: var(--accent-blue);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 999px;
  padding: 6px 16px;
  letter-spacing: 1px;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.08);
}

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

/* ===== 特性卡片 ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: -60px;
  position: relative;
  z-index: 2;
}

.feature-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 32px 24px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

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

.feature-card:hover {
  transform: translateY(-4px);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(129, 140, 248, 0.08) 100%);
}

.feature-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== 控制台布局 ===== */
.dashboard {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
}

.sidebar {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  height: fit-content;
  position: sticky;
  top: 80px;
}

.sidebar-user {
  padding: 16px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 12px;
}

.sidebar-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 8px;
}

.sidebar-username {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.sidebar-email {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 2px;
}

.sidebar-balance {
  margin-top: 12px;
  padding: 12px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.06) 0%, rgba(6, 182, 212, 0.04) 100%);
  border-radius: var(--radius-sm);
}

.sidebar-balance-label {
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 1px;
}

.sidebar-balance-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin-top: 2px;
}

.sidebar-menu {
  list-style: none;
}

.sidebar-item {
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 2px;
}

.sidebar-item:hover {
  background: rgba(99, 102, 241, 0.06);
  color: var(--primary);
}

.sidebar-item.active {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
  font-weight: 600;
}

.sidebar-item-icon {
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.main-content {
  min-width: 0;
}

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

.page-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-title::before {
  content: '';
  width: 4px;
  height: 24px;
  background: var(--gradient-primary);
  border-radius: 2px;
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.3);
}

/* ===== 表单 ===== */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-primary);
  background: #fff;
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  outline: none;
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

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

/* ===== 套餐卡片 ===== */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.package-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.package-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.package-card-locked {
  background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
  border-color: rgba(212, 168, 83, 0.3);
}

.package-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--gradient-price);
  color: #fff;
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 0 var(--radius-md) 0 12px;
  font-weight: 700;
  letter-spacing: 1px;
}

.package-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.package-card-locked .package-name {
  color: #e8c872;
}

.package-tokens {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 12px;
}

.package-desc {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.package-divider {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #e8edf5, transparent);
  margin-bottom: 16px;
}

.package-card-locked .package-divider {
  background: linear-gradient(90deg, transparent, rgba(212, 168, 83, 0.3), transparent);
}

.package-price {
  font-size: 28px;
  font-weight: 800;
  color: #f43f5e;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.package-price-currency {
  font-size: 16px;
  font-weight: 600;
}

.package-buy-btn {
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.25);
  font-family: inherit;
}

.package-buy-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35);
}

.package-buy-btn:disabled {
  background: linear-gradient(135deg, #4a4a5a, #3a3a4a) !important;
  color: #999 !important;
  opacity: 0.7;
  cursor: not-allowed;
  box-shadow: none !important;
  transform: none !important;
}

/* ===== API Key 卡片 ===== */
.apikey-card {
  background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
}

.apikey-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 60%;
  height: 200%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  transform: rotate(15deg);
  pointer-events: none;
}

.apikey-label {
  font-size: 12px;
  color: rgba(232, 200, 114, 0.7);
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.apikey-value {
  font-family: 'Courier New', Consolas, monospace;
  font-size: 16px;
  color: #e8c872;
  word-break: break-all;
  padding: 16px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(232, 200, 114, 0.2);
  margin-bottom: 16px;
}

.apikey-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.apikey-locked {
  text-align: center;
  padding: 40px 24px;
}

.apikey-locked-icon {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.5;
}

.apikey-locked-text {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 20px;
}

/* ===== 表格 ===== */
.table-wrapper {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  overflow: hidden;
}

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

.table th {
  padding: 14px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-tertiary);
  letter-spacing: 1px;
  background: rgba(99, 102, 241, 0.02);
  border-bottom: 1px solid var(--border-light);
  text-transform: uppercase;
}

.table td {
  padding: 14px 16px;
  font-size: 14px;
  color: var(--text-primary);
  border-bottom: 1px solid rgba(99, 102, 241, 0.04);
}

.table tr:last-child td {
  border-bottom: none;
}

.table tr:hover td {
  background: rgba(99, 102, 241, 0.02);
}

/* ===== 状态标签 ===== */
.status-tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 999px;
  letter-spacing: 0.5px;
}

.status-completed { background: rgba(82, 196, 26, 0.12); color: #389e0d; }
.status-pending   { background: rgba(250, 173, 20, 0.12); color: #d48806; }
.status-failed    { background: rgba(255, 77, 79, 0.12); color: #cf1322; }
.status-archived  { background: rgba(99, 102, 241, 0.12); color: #6366f1; }
.status-success   { background: rgba(82, 196, 26, 0.12); color: #389e0d; }

/* ===== 对话测试 ===== */
.chat-container {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  height: 600px;
}

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

.chat-model-select {
  padding: 6px 12px;
  font-size: 13px;
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 8px;
  background: #fff;
  color: var(--text-primary);
  font-family: inherit;
  outline: none;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chat-message {
  display: flex;
  gap: 12px;
  max-width: 80%;
}

.chat-message-user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}

.chat-avatar-user { background: var(--gradient-primary); }
.chat-avatar-ai { background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%); }

.chat-bubble {
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.6;
  word-break: break-word;
}

.chat-message-user .chat-bubble {
  background: var(--gradient-primary);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chat-message-ai .chat-bubble {
  background: rgba(99, 102, 241, 0.06);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
}

.chat-input-area {
  padding: 16px 20px;
  border-top: 1px solid var(--border-light);
  display: flex;
  gap: 12px;
}

.chat-input {
  flex: 1;
  padding: 10px 16px;
  font-size: 14px;
  font-family: inherit;
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 999px;
  outline: none;
  transition: all 0.2s ease;
}

.chat-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* ===== 统计卡片 ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--gradient-primary);
}

.stat-label {
  font-size: 12px;
  color: var(--text-tertiary);
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-unit {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-tertiary);
  margin-left: 4px;
}

/* ===== 空状态 ===== */
.empty-state {
  padding: 80px 24px;
  text-align: center;
  color: var(--text-tertiary);
}

.empty-state-icon {
  font-size: 56px;
  margin-bottom: 16px;
  opacity: 0.4;
}

.empty-state-text {
  font-size: 15px;
  letter-spacing: 1px;
}

/* ===== 模态框 ===== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(20, 30, 60, 0.5);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

.modal-content {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 480px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(20, 30, 60, 0.2);
  animation: slideUp 0.3s ease;
}

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

.modal-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  color: var(--text-secondary);
  border: none;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: rgba(99, 102, 241, 0.12);
}

/* ===== Toast 提示 ===== */
.toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 24px;
  background: rgba(20, 30, 60, 0.9);
  color: #fff;
  border-radius: 999px;
  font-size: 14px;
  z-index: 3000;
  backdrop-filter: blur(8px);
  animation: slideDown 0.3s ease;
  max-width: 90%;
  text-align: center;
}

.toast-success { background: rgba(82, 196, 26, 0.95); }
.toast-error { background: rgba(255, 77, 79, 0.95); }
.toast-warning { background: rgba(250, 173, 20, 0.95); }

/* ===== 认证页面 ===== */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(ellipse at top right, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(6, 182, 212, 0.06) 0%, transparent 50%),
    linear-gradient(135deg, #f8faff 0%, #eef2fb 40%, #f5f8ff 100%);
  position: relative;
  overflow: hidden;
}

.auth-container::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  filter: blur(40px);
}

.auth-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 8px 32px rgba(20, 30, 60, 0.08), 0 24px 64px rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.9);
  position: relative;
  z-index: 1;
}

.auth-logo {
  text-align: center;
  margin-bottom: 32px;
}

.auth-logo-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: var(--gradient-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 28px;
  letter-spacing: 1px;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

.auth-title {
  font-size: 28px;
  font-weight: 800;
  background: var(--gradient-title);
  -webkit-background-clip: text;
  color: transparent;
  letter-spacing: 4px;
}

.auth-subtitle {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-top: 4px;
  letter-spacing: 1px;
}

.auth-tabs {
  display: flex;
  background: rgba(99, 102, 241, 0.04);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 28px;
}

.auth-tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 999px;
  transition: all 0.25s ease;
  border: none;
  background: transparent;
  font-family: inherit;
}

.auth-tab.active {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.1);
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 13px;
  color: var(--text-tertiary);
}

.auth-footer a {
  color: var(--primary);
  text-decoration: none;
  cursor: pointer;
}

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

/* ===== 动画 ===== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes slideDown {
  from { opacity: 0; transform: translate(-50%, -20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

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

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(99, 102, 241, 0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .hero-title { font-size: 48px; letter-spacing: 4px; }
  .hero-subtitle { font-size: 14px; }
  .hero-desc { font-size: 14px; }
  
  .dashboard {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    position: static;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    margin-top: 32px;
  }
  
  .navbar-inner {
    padding: 12px 16px;
  }
  
  .navbar-menu {
    gap: 4px;
  }
  
  .navbar-link {
    padding: 6px 10px;
    font-size: 13px;
  }
  
  .container {
    padding: 20px 16px;
  }
  
  .packages-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== 工具类 ===== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-primary { color: var(--primary); }
.text-danger { color: #e11d48; }
.text-success { color: #389e0d; }
.text-muted { color: var(--text-tertiary); }
.text-sm { font-size: 12px; }
.text-lg { font-size: 18px; }
.font-bold { font-weight: 700; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.hidden { display: none; }
