/* ==========================================
   虾 Skill - 统一样式表 v1.0
   ========================================== */

/* ---------- CSS Variables ---------- */
:root {
  --primary: #7c3aed;
  --primary-light: #a78bfa;
  --primary-dark: #5b21b6;
  --accent: #f59e0b;
  --accent-light: #fbbf24;
  --bg: #0f0a1a;
  --bg-card: #1a1229;
  --bg-card-hover: #231a36;
  --bg-surface: #14101f;
  --text: #f1f0f5;
  --text-secondary: #a09cb5;
  --text-muted: #6b6580;
  --border: rgba(124, 58, 237, 0.2);
  --border-light: rgba(255,255,255,0.06);
  --gradient: linear-gradient(135deg, #7c3aed 0%, #a78bfa 50%, #c084fc 100%);
  --gradient-warm: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 30px rgba(124,58,237,0.15);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
  --nav-height: 64px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

/* ---------- Utilities ---------- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.section { padding: 60px 0; }
.section-title {
  font-size: 1.75rem; font-weight: 700; margin-bottom: 8px;
  background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.section-subtitle { color: var(--text-secondary); margin-bottom: 32px; font-size: 0.95rem; }
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-height);
  background: rgba(15, 10, 26, 0.85);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  transition: background var(--transition);
}
.navbar .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}
.navbar-brand {
  display: flex; align-items: center; gap: 8px;
  font-size: 1.25rem; font-weight: 700; color: var(--text);
}
.navbar-brand span { font-size: 1.5rem; }
.navbar-links { display: flex; align-items: center; gap: 28px; }
.navbar-links a {
  color: var(--text-secondary); font-size: 0.9rem; font-weight: 500;
  position: relative; padding: 4px 0;
}
.navbar-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px;
  background: var(--gradient); border-radius: 1px; transition: width var(--transition);
}
.navbar-links a:hover, .navbar-links a.active { color: var(--text); }
.navbar-links a:hover::after, .navbar-links a.active::after { width: 100%; }
.navbar-right { display: flex; align-items: center; gap: 16px; }
.navbar-user {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.85rem; color: var(--text-secondary);
}
.navbar-user .token-balance {
  background: rgba(124,58,237,0.15); border: 1px solid var(--border);
  padding: 4px 12px; border-radius: 20px; font-size: 0.8rem;
  color: var(--primary-light); font-weight: 600;
}
.navbar-hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 4px;
}
.navbar-hamburger span {
  width: 22px; height: 2px; background: var(--text); border-radius: 2px;
  transition: var(--transition);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 24px; border-radius: var(--radius-sm); font-size: 0.9rem;
  font-weight: 600; cursor: pointer; border: none; transition: all var(--transition);
  text-decoration: none; line-height: 1.4;
}
.btn-primary {
  background: var(--gradient); color: #fff;
  box-shadow: 0 4px 15px rgba(124,58,237,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px); box-shadow: 0 6px 25px rgba(124,58,237,0.45);
  color: #fff;
}
.btn-secondary {
  background: transparent; color: var(--primary-light);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: rgba(124,58,237,0.1); border-color: var(--primary-light);
  color: var(--primary-light);
}
.btn-accent {
  background: var(--gradient-warm); color: #fff;
  box-shadow: 0 4px 15px rgba(245,158,11,0.3);
}
.btn-accent:hover {
  transform: translateY(-2px); box-shadow: 0 6px 25px rgba(245,158,11,0.45);
  color: #fff;
}
.btn-sm { padding: 6px 16px; font-size: 0.8rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ---------- Cards ---------- */
.card {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--radius); padding: 24px;
  transition: all var(--transition);
}
.card:hover {
  background: var(--bg-card-hover); border-color: var(--border);
  box-shadow: var(--shadow-glow); transform: translateY(-4px);
}
.card-flat { padding: 0; overflow: hidden; }
.card-flat .card-body { padding: 24px; }
.card-icon {
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 16px;
  background: rgba(124,58,237,0.12);
}
.card-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }
.card-desc { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; }
.card-price {
  font-size: 1.5rem; font-weight: 700; color: var(--accent);
  margin: 12px 0;
}
.card-price small { font-size: 0.75rem; color: var(--text-muted); font-weight: 400; }
.card-badge {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
}
.badge-hot { background: rgba(239,68,68,0.15); color: #ef4444; }
.badge-new { background: rgba(34,197,94,0.15); color: #22c55e; }
.badge-popular { background: rgba(245,158,11,0.15); color: #f59e0b; }

/* ---------- Grid ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block; margin-bottom: 6px; font-size: 0.85rem;
  font-weight: 500; color: var(--text-secondary);
}
.form-input {
  width: 100%; padding: 10px 14px; background: var(--bg-surface);
  border: 1px solid var(--border-light); border-radius: var(--radius-sm);
  color: var(--text); font-size: 0.9rem; transition: border-color var(--transition);
}
.form-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124,58,237,0.15); }
.form-input::placeholder { color: var(--text-muted); }

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step {
  display: flex; gap: 16px; padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
}
.step:last-child { border-bottom: none; }
.step-number {
  counter-increment: step; flex-shrink: 0;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(124,58,237,0.15); color: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 700;
}
.step-number::before { content: counter(step); }
.step-content h4 { font-size: 0.95rem; margin-bottom: 4px; }
.step-content p { color: var(--text-secondary); font-size: 0.85rem; }

/* ---------- FAQ ---------- */
.faq-item {
  border: 1px solid var(--border-light); border-radius: var(--radius);
  margin-bottom: 12px; overflow: hidden;
}
.faq-question {
  padding: 16px 20px; cursor: pointer; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center;
  background: var(--bg-card); transition: background var(--transition);
}
.faq-question:hover { background: var(--bg-card-hover); }
.faq-question::after { content: '+'; font-size: 1.2rem; color: var(--text-muted); transition: transform var(--transition); }
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 20px; color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7;
}
.faq-item.open .faq-answer { max-height: 300px; padding: 0 20px 16px; }

/* ---------- Pricing Cards ---------- */
.pricing-card {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--radius); padding: 32px 24px; text-align: center;
  transition: all var(--transition); position: relative;
}
.pricing-card:hover {
  border-color: var(--primary); box-shadow: var(--shadow-glow);
  transform: translateY(-6px);
}
.pricing-card.featured {
  border-color: var(--primary);
  background: linear-gradient(180deg, rgba(124,58,237,0.08) 0%, var(--bg-card) 100%);
}
.pricing-card.featured::before {
  content: '推荐'; position: absolute; top: -1px; right: 20px;
  background: var(--gradient); color: #fff; padding: 4px 14px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-size: 0.75rem; font-weight: 600;
}
.pricing-icon { font-size: 2.5rem; margin-bottom: 12px; }
.pricing-name { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }
.pricing-amount {
  font-size: 2rem; font-weight: 800; margin: 12px 0 4px;
  background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.pricing-tokens { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 20px; }
.pricing-features { text-align: left; margin-bottom: 24px; }
.pricing-features li {
  padding: 6px 0; font-size: 0.85rem; color: var(--text-secondary);
  display: flex; align-items: center; gap: 8px;
}
.pricing-features li::before { content: '✓'; color: var(--primary-light); font-weight: 700; }

/* ---------- Rating ---------- */
.rating { display: flex; align-items: center; gap: 4px; }
.rating .star { color: var(--accent); font-size: 1rem; }
.rating .star.empty { color: var(--text-muted); }
.rating-count { color: var(--text-muted); font-size: 0.8rem; margin-left: 8px; }

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.animate-fade-in-up { animation: fadeInUp 0.6s ease both; }
.animate-fade-in { animation: fadeIn 0.5s ease both; }
.animate-pulse { animation: pulse 2s ease-in-out infinite; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ---------- Hero ---------- */
.hero {
  padding: calc(var(--nav-height) + 60px) 0 60px;
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(124,58,237,0.12) 0%, transparent 60%);
}
.hero h1 {
  font-size: 2.5rem; font-weight: 800; line-height: 1.3; margin-bottom: 16px;
}
.hero h1 .gradient-text {
  background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p { color: var(--text-secondary); font-size: 1.1rem; max-width: 600px; margin: 0 auto 32px; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border-light); padding: 40px 0 24px;
  color: var(--text-muted); font-size: 0.85rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 32px; }
.footer h4 { color: var(--text); font-size: 0.9rem; margin-bottom: 12px; }
.footer a { color: var(--text-muted); }
.footer a:hover { color: var(--primary-light); }
.footer ul li { margin-bottom: 8px; }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid var(--border-light); }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary-dark); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ==========================================
   Responsive
   ========================================== */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-height: 56px; }
  html { font-size: 15px; }
  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: 0.95rem; }
  .section { padding: 40px 0; }
  .section-title { font-size: 1.4rem; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

  .navbar-links {
    display: none; flex-direction: column;
    position: absolute; top: var(--nav-height); left: 0; right: 0;
    background: rgba(15,10,26,0.98); backdrop-filter: blur(20px);
    padding: 20px; gap: 16px; border-bottom: 1px solid var(--border-light);
  }
  .navbar-links.open { display: flex; }
  .navbar-hamburger { display: flex; }

  .footer-grid { grid-template-columns: 1fr; gap: 24px; }

  .pricing-card { padding: 24px 16px; }
  .pricing-amount { font-size: 1.6rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero h1 { font-size: 1.5rem; }
  .btn-lg { padding: 12px 24px; font-size: 0.9rem; }
}
