/* GEO Pro v3 - Clean Professional Design */
:root {
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-900: #1e3a5f;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --green: #10b981;
  --amber: #f59e0b;
  --red: #ef4444;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--gray-800);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

/* ========== Navigation ========== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-200);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 64px;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 20px; font-weight: 700; color: var(--gray-900);
}
.nav-brand span strong { color: var(--blue-600); }
.nav-logo {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--blue-600), #7c3aed);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 16px;
}
.nav-links { display: flex; gap: 8px; }
.nav-links a {
  color: var(--gray-600); font-weight: 500; font-size: 14px;
  padding: 8px 12px; border-radius: 6px;
}
.nav-links a:hover { background: var(--gray-100); text-decoration: none; }
.nav-actions, .nav-user { display: flex; align-items: center; gap: 8px; }
.nav-user-email { color: var(--gray-500); font-size: 13px; }

/* ========== Buttons ========== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 16px; border-radius: var(--radius);
  font-weight: 500; font-size: 14px; border: 1px solid transparent;
  cursor: pointer; transition: all 0.15s; white-space: nowrap;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--blue-600); color: #fff; }
.btn-primary:hover { background: var(--blue-700); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--gray-700); }
.btn-ghost:hover { background: var(--gray-100); text-decoration: none; }
.btn-outline { background: #fff; color: var(--gray-700); border-color: var(--gray-300); }
.btn-outline:hover { background: var(--gray-50); }
.btn-danger { background: var(--red); color: #fff; }
.btn-success { background: var(--green); color: #fff; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-lg { padding: 12px 24px; font-size: 16px; }

/* ========== Hero ========== */
.hero {
  padding: 100px 24px 80px;
  text-align: center;
  background: linear-gradient(180deg, var(--blue-50) 0%, #fff 100%);
}
.hero-badge {
  display: inline-block; padding: 4px 12px;
  background: var(--blue-100); color: var(--blue-700);
  border-radius: 20px; font-size: 13px; font-weight: 500; margin-bottom: 24px;
}
.hero h1 {
  font-size: 56px; font-weight: 800; line-height: 1.1;
  color: var(--gray-900); margin-bottom: 20px; letter-spacing: -1.5px;
}
.hero h1 span { color: var(--blue-600); }
.hero p { font-size: 18px; color: var(--gray-500); max-width: 560px; margin: 0 auto 36px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; }
.hero-stats {
  display: flex; justify-content: center; gap: 48px; margin-top: 60px;
  padding-top: 40px; border-top: 1px solid var(--gray-200);
}
.hero-stat .value { font-size: 28px; font-weight: 700; color: var(--gray-900); }
.hero-stat .label { font-size: 13px; color: var(--gray-500); }

/* ========== Sections ========== */
.section { padding: 80px 24px; }
.section-gray { background: var(--gray-50); }
.section-title { text-align: center; margin-bottom: 48px; }
.section-title h2 { font-size: 36px; font-weight: 700; color: var(--gray-900); letter-spacing: -0.5px; }
.section-title p { color: var(--gray-500); margin-top: 8px; }
.container { max-width: 1200px; margin: 0 auto; }

/* ========== Grid ========== */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); }

/* ========== Cards ========== */
.card {
  background: #fff; border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 24px;
  transition: box-shadow 0.2s;
}
.card:hover { box-shadow: var(--shadow-md); }
.card-icon {
  width: 48px; height: 48px;
  background: var(--blue-50); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 16px;
}
.card h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; color: var(--gray-900); }
.card p { color: var(--gray-500); font-size: 14px; }

/* ========== Pricing ========== */
.price-card {
  background: #fff; border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 32px;
  text-align: center; position: relative;
}
.price-card.featured { border-color: var(--blue-600); box-shadow: var(--shadow-lg); }
.price-card.featured::before {
  content: '推荐'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--blue-600); color: #fff; padding: 4px 16px;
  border-radius: 20px; font-size: 12px; font-weight: 600;
}
.price-name { font-size: 14px; font-weight: 600; color: var(--blue-600); text-transform: uppercase; letter-spacing: 0.5px; }
.price-value { font-size: 42px; font-weight: 800; margin: 16px 0 4px; color: var(--gray-900); }
.price-value small { font-size: 16px; color: var(--gray-400); font-weight: 400; }
.price-period { color: var(--gray-400); font-size: 13px; margin-bottom: 24px; }
.price-features { list-style: none; margin-bottom: 28px; }
.price-features li {
  padding: 10px 0; color: var(--gray-600); font-size: 14px;
  border-bottom: 1px solid var(--gray-100);
}
.price-features li:last-child { border-bottom: none; }
.price-features li::before { content: '✓ '; color: var(--green); font-weight: 700; }

/* ========== Stats ========== */
.stat-card {
  background: #fff; border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 20px;
}
.stat-label { font-size: 13px; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.3px; }
.stat-value { font-size: 32px; font-weight: 700; color: var(--gray-900); margin: 4px 0; }
.stat-meta { font-size: 12px; color: var(--gray-400); }

/* ========== Table ========== */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead th {
  text-align: left; padding: 12px 16px; font-size: 12px; font-weight: 600;
  color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.3px;
  border-bottom: 2px solid var(--gray-200);
}
tbody td { padding: 12px 16px; border-bottom: 1px solid var(--gray-100); font-size: 14px; }
tbody tr:hover { background: var(--gray-50); }

/* ========== Badge ========== */
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: 12px; font-weight: 500;
}
.badge-blue { background: var(--blue-100); color: var(--blue-700); }
.badge-green { background: #d1fae5; color: #065f46; }
.badge-amber { background: #fef3c7; color: #92400e; }
.badge-red { background: #fee2e2; color: #991b1b; }
.badge-gray { background: var(--gray-100); color: var(--gray-600); }

/* ========== Forms ========== */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-weight: 500; font-size: 14px; margin-bottom: 6px; color: var(--gray-700); }
.form-input {
  width: 100%; padding: 10px 14px;
  border: 1px solid var(--gray-300); border-radius: var(--radius);
  font-size: 14px; transition: border-color 0.15s, box-shadow 0.15s;
}
.form-input:focus {
  outline: none; border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}
select.form-input { cursor: pointer; }
textarea.form-input { resize: vertical; min-height: 80px; }

/* ========== Auth Page ========== */
.auth-page {
  min-height: calc(100vh - 64px);
  display: flex; align-items: center; justify-content: center;
  padding: 40px 24px; background: var(--gray-50);
}
.auth-card {
  background: #fff; border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 40px;
  width: 100%; max-width: 420px; box-shadow: var(--shadow-md);
}
.auth-card h1 { font-size: 24px; font-weight: 700; text-align: center; margin-bottom: 4px; }
.auth-subtitle { color: var(--gray-500); text-align: center; margin-bottom: 32px; font-size: 14px; }
.auth-card .btn { width: 100%; }
.auth-footer { text-align: center; margin-top: 24px; font-size: 14px; color: var(--gray-500); }

/* ========== Dashboard ========== */
.dashboard { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - 64px); }
.sidebar {
  background: #fff; border-right: 1px solid var(--gray-200); padding: 24px 0;
}
.sidebar-menu { list-style: none; }
.sidebar-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 24px; color: var(--gray-600); font-size: 14px; font-weight: 500;
  border-left: 3px solid transparent; transition: all 0.15s;
}
.sidebar-menu a:hover { background: var(--gray-50); text-decoration: none; }
.sidebar-menu a.active {
  background: var(--blue-50); color: var(--blue-600); border-left-color: var(--blue-600);
}
.main { padding: 32px; background: var(--gray-50); }
.page-header { margin-bottom: 32px; }
.page-header h1 { font-size: 24px; font-weight: 700; color: var(--gray-900); }
.page-header p { color: var(--gray-500); margin-top: 4px; }

/* ========== Utilities ========== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--gray-400); }
.text-sm { font-size: 13px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.w-full { width: 100%; }

/* ========== Progress ========== */
.progress {
  height: 8px; background: var(--gray-200); border-radius: 4px; overflow: hidden;
}
.progress-bar {
  height: 100%; border-radius: 4px; transition: width 0.3s;
  background: linear-gradient(90deg, var(--blue-500), var(--blue-600));
}
.progress-bar.green { background: linear-gradient(90deg, var(--green), #059669); }
.progress-bar.amber { background: linear-gradient(90deg, var(--amber), #d97706); }

/* ========== Toast ========== */
.toast {
  position: fixed; top: 80px; right: 24px;
  background: var(--gray-900); color: #fff;
  padding: 12px 20px; border-radius: var(--radius);
  font-size: 14px; z-index: 1000; animation: slideIn 0.3s;
  box-shadow: var(--shadow-lg);
}
.toast.error { background: var(--red); }
.toast.success { background: var(--green); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ========== Footer ========== */
.footer {
  background: var(--gray-900); color: var(--gray-400);
  padding: 48px 24px; text-align: center; font-size: 14px;
}
.footer a { color: var(--gray-300); }
.footer a:hover { color: #fff; }
.footer-links { display: flex; gap: 24px; justify-content: center; margin-bottom: 16px; }

/* ========== Responsive ========== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero { padding: 60px 16px; }
  .hero h1 { font-size: 36px; }
  .hero-stats { flex-direction: column; gap: 20px; }
  .hero-cta { flex-direction: column; }
  .dashboard { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .main { padding: 20px; }
}
