/*
Theme Name: Seedance API
Theme URI: https://seedanceguru.com
Author: Seedance
Description: Professional API key marketplace theme for Seedance video generation.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: seedance
*/

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

:root {
  --bg: #050509;
  --bg2: #0c0c14;
  --bg3: #111120;
  --surface: #16162a;
  --surface2: #1e1e38;
  --border: #2a2a50;
  --accent: #6c63ff;
  --accent2: #a78bfa;
  --accent3: #38bdf8;
  --gold: #f59e0b;
  --text: #e8e8f0;
  --text2: #9999bb;
  --text3: #6666aa;
  --success: #10b981;
  --danger: #ef4444;
  --radius: 12px;
  --radius-lg: 20px;
  --font-head: sans-serif;
  --font-body: sans-serif;
  --shadow: 0 4px 24px rgba(108,99,255,0.15);
  --shadow-lg: 0 8px 48px rgba(108,99,255,0.25);
  --glow: 0 0 40px rgba(108,99,255,0.3);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: var(--accent2); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }

img { max-width: 100%; height: auto; display: block; }

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-head);
  line-height: 1.2;
  color: var(--text);
}

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

.container-sm {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

/* NOISE OVERLAY */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

/* ─── SITE HEADER ─────────────────────────────────────────── */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5,5,9,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.site-logo img { height: 36px; width: auto; }

.logo-mark {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--accent), var(--accent3));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: #fff;
  font-weight: 900;
}

#site-nav ul {
  display: flex;
  list-style: none;
  gap: 4px;
  align-items: center;
}

#site-nav ul li a {
  display: block;
  padding: 8px 14px;
  color: var(--text2);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.2s;
}

#site-nav ul li a:hover,
#site-nav ul li.current-menu-item a {
  color: var(--text);
  background: var(--surface);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-ghost {
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text2);
  font-size: 0.9rem;
  font-weight: 500;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--text);
  background: rgba(108,99,255,0.1);
}

.btn-primary {
  padding: 9px 20px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
  box-shadow: var(--shadow);
}

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

.btn-lg {
  padding: 14px 32px;
  font-size: 1rem;
  border-radius: 10px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text2);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ─── HERO ────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 100px 0 80px;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(108,99,255,0.25) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 80%, rgba(56,189,248,0.1) 0%, transparent 60%);
  pointer-events: none;
}

.hero-tag {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(108,99,255,0.15);
  border: 1px solid rgba(108,99,255,0.3);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--accent2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #fff 30%, var(--accent2) 70%, var(--accent3) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text2);
  max-width: 560px;
  margin: 0 auto 40px;
  font-weight: 300;
  line-height: 1.8;
}

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

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

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

.hero-stat .num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.04em;
  display: block;
}

.hero-stat .lbl {
  font-size: 0.85rem;
  color: var(--text3);
}

/* ─── SLIDERS / MARQUEE ──────────────────────────────────── */
.slider-section {
  padding: 20px 0;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
}

.slider-track {
  position: relative;
  overflow: hidden;
}

.slider-wrapper {
  display: flex;
  gap: 24px;
  animation: marquee 30s linear infinite;
  width: max-content;
}

.slider-wrapper:hover { animation-play-state: paused; }

.slider-item {
  flex: 0 0 auto;
  width: 280px;
  height: 160px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border);
}

.slider-item img { width: 100%; height: 100%; object-fit: cover; }

.slider-item .slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  font-size: 0.8rem;
  color: #fff;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── SECTION COMMONS ─────────────────────────────────────── */
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }

.section-label {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent2);
  font-weight: 600;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text2);
  max-width: 560px;
  font-weight: 300;
}

.text-center { text-align: center; }
.text-center .section-subtitle { margin: 0 auto; }

/* ─── PRICING ────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: relative;
  transition: all 0.3s;
}

.pricing-card:hover {
  border-color: rgba(108,99,255,0.5);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(108,99,255,0.12), rgba(108,99,255,0.04));
  box-shadow: var(--glow);
}

.pricing-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 100px;
}

.plan-name {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.plan-price {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  margin-bottom: 6px;
}

.plan-price .amount {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.05em;
  line-height: 1;
}

.plan-price .currency {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text2);
  margin-bottom: 6px;
}

.plan-price .period {
  font-size: 0.85rem;
  color: var(--text3);
  margin-bottom: 8px;
}

.plan-desc {
  font-size: 0.9rem;
  color: var(--text2);
  margin-bottom: 28px;
  line-height: 1.6;
}

.plan-features {
  list-style: none;
  margin-bottom: 32px;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text2);
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.plan-features li:last-child { border: none; }

.plan-features li::before {
  content: '';
  width: 16px;
  height: 16px;
  min-width: 16px;
  border-radius: 50%;
  background: rgba(16,185,129,0.2);
  border: 1px solid var(--success);
  margin-top: 3px;
  position: relative;
}

.plan-features li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%2310b981' d='M6.5 11.5L3 8l1-1 2.5 2.5 5-5 1 1z'/%3E%3C/svg%3E");
  background-size: 14px;
  background-repeat: no-repeat;
  background-position: center;
  background-color: rgba(16,185,129,0.1);
}

.plan-btn {
  width: 100%;
  display: block;
  text-align: center;
  padding: 13px 20px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
}

.plan-btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.plan-btn-outline:hover {
  border-color: var(--accent);
  background: rgba(108,99,255,0.1);
}

.plan-btn-solid {
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  color: #fff;
  box-shadow: var(--shadow);
}

.plan-btn-solid:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

/* ─── VIDEO CASES ─────────────────────────────────────────── */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.video-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s;
}

.video-card:hover {
  transform: translateY(-4px);
  border-color: rgba(108,99,255,0.4);
  box-shadow: var(--shadow-lg);
}

.video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--bg3);
  overflow: hidden;
}

.video-thumb video,
.video-thumb iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-thumb .play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.4);
  transition: background 0.2s;
  cursor: pointer;
}

.video-thumb .play-btn:hover { background: rgba(0,0,0,0.2); }

.play-icon {
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.video-thumb .play-btn:hover .play-icon { transform: scale(1.1); }

.play-icon svg { width: 22px; height: 22px; fill: #111; margin-left: 3px; }

.video-info {
  padding: 20px;
}

.video-info h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.video-info p {
  font-size: 0.85rem;
  color: var(--text2);
  line-height: 1.6;
}

.video-tag {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(108,99,255,0.15);
  border: 1px solid rgba(108,99,255,0.3);
  border-radius: 100px;
  font-size: 0.72rem;
  color: var(--accent2);
  margin-bottom: 10px;
  font-weight: 600;
}

/* ─── TESTIMONIALS ────────────────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.3s;
}

.testimonial-card:hover {
  border-color: rgba(108,99,255,0.4);
  transform: translateY(-2px);
}

.testimonial-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 16px;
}

.star {
  width: 16px;
  height: 16px;
  fill: var(--gold);
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text2);
  line-height: 1.8;
  margin-bottom: 20px;
  font-style: italic;
  font-weight: 300;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent3));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.author-info .name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.author-info .role {
  font-size: 0.78rem;
  color: var(--text3);
}

/* ─── FAQ ─────────────────────────────────────────────────── */
.faq-list { margin-top: 48px; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item.open { border-color: rgba(108,99,255,0.4); }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  background: var(--surface);
  transition: background 0.2s;
  user-select: none;
  gap: 16px;
}

.faq-question:hover { background: var(--surface2); }

.faq-question span:first-child {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.5;
}

.faq-toggle {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--accent2);
  transition: all 0.3s;
}

.faq-item.open .faq-toggle {
  transform: rotate(45deg);
  background: rgba(108,99,255,0.15);
  border-color: var(--accent);
}

.faq-answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
}

.faq-answer.open {
  max-height: 400px;
  padding: 0 24px 20px;
}

.faq-answer p {
  font-size: 0.9rem;
  color: var(--text2);
  line-height: 1.8;
  font-weight: 300;
}

/* ─── GUIDE / INTRO ───────────────────────────────────────── */
.guide-section { background: var(--bg2); }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 48px;
  counter-reset: steps;
}

.step-card {
  counter-increment: steps;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: relative;
  transition: all 0.3s;
}

.step-card:hover {
  border-color: rgba(108,99,255,0.4);
  transform: translateY(-3px);
}

.step-num {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-num::before {
  content: counter(steps, decimal-leading-zero);
  font-size: 1.5rem;
  font-weight: 800;
  color: rgba(108,99,255,0.3);
  letter-spacing: -0.05em;
}

.step-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-card p {
  font-size: 0.88rem;
  color: var(--text2);
  line-height: 1.7;
}

/* ─── INTRO ──────────────────────────────────────────────── */
.intro-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.intro-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--surface);
  border: 1px solid var(--border);
}

.intro-visual-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(108,99,255,0.08), rgba(56,189,248,0.05));
}

.intro-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(108,99,255,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.api-mockup {
  font-family: 'Courier New', monospace;
  font-size: 0.78rem;
  color: var(--text2);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  width: 90%;
  position: relative;
  z-index: 1;
}

.api-mockup .line { margin-bottom: 4px; }
.api-mockup .key { color: var(--accent2); }
.api-mockup .val { color: var(--success); }
.api-mockup .str { color: var(--gold); }
.api-mockup .cm { color: var(--text3); }

.intro-content .section-title { margin-bottom: 20px; }

.feature-list {
  list-style: none;
  margin: 24px 0 32px;
}

.feature-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  font-size: 0.9rem;
  color: var(--text2);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.feature-list li:last-child { border: none; }

.feat-icon {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 6px;
  background: rgba(108,99,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.feat-icon svg { width: 12px; height: 12px; fill: var(--accent2); }

/* ─── CTA BAND ────────────────────────────────────────────── */
.cta-band {
  background: linear-gradient(135deg, rgba(108,99,255,0.15) 0%, rgba(56,189,248,0.08) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 72px 0;
  text-align: center;
}

.cta-band h2 { font-size: 2.2rem; margin-bottom: 16px; letter-spacing: -0.03em; }
.cta-band p { font-size: 1rem; color: var(--text2); margin-bottom: 32px; }

/* ─── SITE FOOTER ─────────────────────────────────────────── */
#site-footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 0.88rem;
  color: var(--text3);
  margin-top: 12px;
  line-height: 1.7;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text2);
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 0.88rem; color: var(--text3); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p { font-size: 0.82rem; color: var(--text3); }

.footer-content {
  font-size: 0.88rem;
  color: var(--text3);
  line-height: 1.7;
}

/* ─── MODAL ───────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active { display: flex; }

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%;
  max-width: 440px;
  position: relative;
  animation: modalIn 0.25s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(-10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text2);
  font-size: 1.1rem;
  line-height: 1;
  transition: all 0.2s;
}

.modal-close:hover { border-color: var(--danger); color: var(--danger); }

.modal-title {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -0.03em;
}

.modal-sub {
  font-size: 0.88rem;
  color: var(--text2);
  margin-bottom: 28px;
}

.modal-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.modal-tab {
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text3);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.2s;
  font-family: var(--font-body);
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}

.modal-tab.active {
  color: var(--accent2);
  border-bottom-color: var(--accent2);
}

.modal-panel { display: none; }
.modal-panel.active { display: block; }

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

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text2);
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

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

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

.form-submit {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all 0.2s;
  box-shadow: var(--shadow);
  margin-top: 8px;
}

.form-submit:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }

.form-footer {
  text-align: center;
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--text3);
}

.form-footer a { color: var(--accent2); }

.form-message {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 16px;
  display: none;
}

.form-message.error { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: #fca5a5; display: block; }
.form-message.success { background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.3); color: #6ee7b7; display: block; }

/* ─── MEMBER CENTER ───────────────────────────────────────── */
.member-page { padding: 60px 0; }

.member-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 16px;
}

.member-welcome h1 {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.member-welcome p { font-size: 0.9rem; color: var(--text2); margin-top: 4px; }

.logout-btn {
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text2);
  font-size: 0.85rem;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
}

.logout-btn:hover { border-color: var(--danger); color: var(--danger); }

.member-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

.member-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.member-card .mc-label {
  font-size: 0.78rem;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 8px;
}

.member-card .mc-value {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
}

.member-card .mc-value.api-key {
  font-size: 0.8rem;
  font-family: 'Courier New', monospace;
  word-break: break-all;
  color: var(--accent2);
}

.orders-table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.orders-table-head {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.orders-table-head h2 { font-size: 1rem; font-weight: 700; }

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

.orders-table th {
  padding: 12px 20px;
  text-align: left;
  font-size: 0.78rem;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
}

.orders-table td {
  padding: 14px 20px;
  font-size: 0.88rem;
  color: var(--text2);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.orders-table tr:last-child td { border-bottom: none; }
.orders-table tr:hover td { background: rgba(255,255,255,0.02); }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.badge-success { background: rgba(16,185,129,0.15); color: var(--success); border: 1px solid rgba(16,185,129,0.3); }
.badge-pending { background: rgba(245,158,11,0.15); color: var(--gold); border: 1px solid rgba(245,158,11,0.3); }
.badge-failed { background: rgba(239,68,68,0.15); color: var(--danger); border: 1px solid rgba(239,68,68,0.3); }

.no-orders {
  text-align: center;
  padding: 60px 20px;
  color: var(--text3);
  font-size: 0.9rem;
}

.key-copy {
  cursor: pointer;
  font-size: 0.75rem;
  color: var(--accent2);
  margin-left: 8px;
}

/* ─── ARTICLE / POST ──────────────────────────────────────── */
.article-layout { padding: 60px 0; }

.article-layout .container {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: flex-start;
}

.post-header { margin-bottom: 32px; }

.post-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.cat-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(108,99,255,0.12);
  border: 1px solid rgba(108,99,255,0.25);
  border-radius: 100px;
  font-size: 0.75rem;
  color: var(--accent2);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.post-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  line-height: 1.25;
}

.post-meta {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--text3);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}

.post-meta span { display: flex; align-items: center; gap: 5px; }

.post-thumbnail {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
  aspect-ratio: 16/7;
  background: var(--surface);
}

.post-thumbnail img { width: 100%; height: 100%; object-fit: cover; }

.post-content {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text2);
  font-weight: 300;
}

.post-content h2 { font-size: 1.5rem; color: var(--text); margin: 36px 0 14px; letter-spacing: -0.02em; }
.post-content h3 { font-size: 1.2rem; color: var(--text); margin: 28px 0 12px; }
.post-content p { margin-bottom: 18px; }
.post-content a { color: var(--accent2); border-bottom: 1px solid rgba(108,99,255,0.3); padding-bottom: 1px; }
.post-content a:hover { color: var(--accent); border-color: var(--accent); }
.post-content ul, .post-content ol { padding-left: 24px; margin-bottom: 18px; }
.post-content li { margin-bottom: 8px; }
.post-content blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 20px;
  margin: 24px 0;
  color: var(--text3);
  font-style: italic;
}
.post-content code {
  background: var(--bg3);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85em;
  color: var(--accent3);
}
.post-content pre {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  overflow-x: auto;
  margin: 24px 0;
}
.post-content pre code { background: none; border: none; padding: 0; }
.post-content img { border-radius: var(--radius); margin: 20px 0; }

.post-tags { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 8px; }
.post-tag {
  display: inline-block;
  padding: 5px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.78rem;
  color: var(--text2);
  transition: all 0.2s;
}
.post-tag:hover { border-color: var(--accent); color: var(--accent2); }

/* SIDEBAR */
.sidebar { position: sticky; top: 88px; }

.sidebar-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
}

.sidebar-widget h3 {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text2);
  margin-bottom: 16px;
}

.widget-posts { list-style: none; }
.widget-posts li { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.widget-posts li:last-child { border: none; padding-bottom: 0; }
.widget-posts li a { font-size: 0.85rem; color: var(--text2); line-height: 1.5; transition: color 0.2s; }
.widget-posts li a:hover { color: var(--text); }
.widget-posts li .date { font-size: 0.75rem; color: var(--text3); margin-top: 3px; }

/* ─── ARCHIVE PAGE ────────────────────────────────────────── */
.archive-layout { padding: 60px 0; }

.archive-layout .container {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
}

.archive-header { margin-bottom: 32px; }
.archive-header h1 { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; }
.archive-header p { color: var(--text2); font-size: 0.9rem; margin-top: 8px; }

.posts-grid {
  display: grid;
  gap: 20px;
}

.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 180px 1fr;
  transition: all 0.3s;
}

.post-card:hover {
  border-color: rgba(108,99,255,0.4);
  transform: translateY(-2px);
}

.post-card-thumb {
  aspect-ratio: 4/3;
  background: var(--bg3);
  overflow: hidden;
}

.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; }

.post-card-body {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.post-card-meta {
  font-size: 0.75rem;
  color: var(--text3);
  margin-bottom: 8px;
  display: flex;
  gap: 12px;
}

.post-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.4;
  transition: color 0.2s;
}

.post-card:hover .post-card-title { color: var(--accent2); }

.post-card-excerpt {
  font-size: 0.85rem;
  color: var(--text2);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text2);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.pagination a:hover, .pagination .current {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ─── PAGE (普通页面) ─────────────────────────────────────── */
.page-layout { padding: 60px 0 80px; }

.page-header {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 60px 0;
  margin-bottom: 0;
}

.page-header h1 { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.03em; }
.page-header p { color: var(--text2); margin-top: 12px; font-size: 1rem; }

.page-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 60px 24px;
}

.page-content h2 { font-size: 1.5rem; margin: 36px 0 14px; }
.page-content h3 { font-size: 1.2rem; margin: 28px 0 12px; }
.page-content p { color: var(--text2); margin-bottom: 18px; line-height: 1.85; font-weight: 300; }
.page-content ul, .page-content ol { padding-left: 24px; margin-bottom: 18px; color: var(--text2); }
.page-content li { margin-bottom: 8px; }
.page-content a { color: var(--accent2); }
.page-content img { border-radius: var(--radius); margin: 20px 0; }
.page-content blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 20px;
  margin: 24px 0;
  color: var(--text3);
  font-style: italic;
}

/* ─── NOTICE ──────────────────────────────────────────────── */
.notice {
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 0.88rem;
  margin-bottom: 20px;
}
.notice-info { background: rgba(56,189,248,0.1); border: 1px solid rgba(56,189,248,0.3); color: #7dd3fc; }
.notice-warn { background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.3); color: #fcd34d; }

/* ─── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .intro-section { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  #site-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--bg2); border-bottom: 1px solid var(--border); padding: 16px; z-index: 99; }
  #site-nav.open { display: block; }
  #site-nav ul { flex-direction: column; }
  .hamburger { display: flex; }

  .article-layout .container,
  .archive-layout .container { grid-template-columns: 1fr; }
  .sidebar { position: static; }

  .post-card { grid-template-columns: 1fr; }
  .post-card-thumb { aspect-ratio: 16/6; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }

  .pricing-grid { grid-template-columns: 1fr; }

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

  .hero-stats { gap: 28px; }

  .steps-grid { grid-template-columns: 1fr 1fr; }
  .video-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .header-actions .btn-ghost { display: none; }
  .modal { padding: 28px 20px; }
  .steps-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.2rem; }
}

/* ─── ADS ─────────────────────────────────────────────────── */
.ad-wrap { margin: 24px 0; text-align: center; }

/* ─── FLOAT AD ────────────────────────────────────────────── */
.float-ad-wrap {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 500;
}
