/* ============================
   AutoPhoto 展示网站样式表
   ============================ */

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --accent: #f59e0b;
  --bg: #0a0a0f;
  --bg-card: #13131a;
  --bg-card-hover: #1a1a24;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --border: #1e1e2e;
  --border-light: #2d2d3f;
  --success: #22c55e;
  --danger: #ef4444;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
}
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans SC', 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary-light); text-decoration: none; transition: 0.2s; }
a:hover { color: var(--primary); }
img { max-width: 100%; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.hide-mobile { display: none; }
@media(min-width:768px){ .hide-mobile { display: inline; } }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 20px; border-radius: var(--radius-sm); font-weight: 600;
  font-size: 14px; cursor: pointer; border: none; transition: all 0.2s;
  text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(99,102,241,0.4); }
.btn-outline { background: transparent; color: var(--primary-light); border: 1.5px solid var(--primary-light); }
.btn-outline:hover { background: rgba(99,102,241,0.1); border-color: var(--primary); color: var(--primary-light); }
.btn-ghost { background: rgba(255,255,255,0.05); color: var(--text-muted); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); color: var(--text); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-block { width: 100%; }

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, var(--primary-light), #a78bfa, #f59e0b);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================ NAVBAR ============================ */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,15,0.85); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; gap: 20px;
  height: 64px;
}
.logo { font-weight: 800; font-size: 22px; color: var(--text); text-decoration: none; }
.logo-dot { color: var(--primary-light); }
.nav-links { display: flex; gap: 4px; margin-left: 24px; }
.nav-links a { color: var(--text-muted); font-size: 14px; font-weight: 500; padding: 6px 12px; border-radius: 6px; }
.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(255,255,255,0.06); }
.nav-spacer { flex: 1; }
@media(max-width: 768px){ .nav-links { display: none; } }

/* ============================ HERO ============================ */
.hero {
  padding: 80px 0 60px; text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(99,102,241,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-block;
  background: rgba(245,158,11,0.15); border: 1px solid rgba(245,158,11,0.3);
  color: var(--accent); padding: 6px 16px; border-radius: 20px;
  font-size: 13px; font-weight: 600; margin-bottom: 24px;
  animation: pulse-badge 2s ease-in-out infinite;
}
@keyframes pulse-badge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245,158,11,0.3); }
  50% { box-shadow: 0 0 0 8px rgba(245,158,11,0); }
}
.hero-title { font-size: clamp(36px, 6vw, 64px); font-weight: 800; line-height: 1.15; margin-bottom: 20px; letter-spacing: -0.02em; }
.hero-sub { font-size: 18px; color: var(--text-muted); max-width: 680px; margin: 0 auto 36px; line-height: 1.7; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  max-width: 700px; margin: 0 auto;
  background: var(--border); border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--border);
}
.stat-item { background: var(--bg-card); padding: 20px 16px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.stat-num { font-size: 28px; font-weight: 800; color: var(--primary-light); }
.stat-label { font-size: 12px; color: var(--text-dim); text-align: center; }
@media(max-width: 600px){ .hero-stats { grid-template-columns: repeat(2, 1fr); } .hero { padding: 60px 0 40px; } }

/* ============================ SECTIONS ============================ */
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-size: 32px; font-weight: 700; margin-bottom: 12px; }
.section-header p { color: var(--text-muted); font-size: 16px; }

/* Pain */
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pain-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: 0.3s; }
.pain-card:hover { border-color: var(--border-light); transform: translateY(-2px); }
.pain-icon { font-size: 40px; margin-bottom: 16px; }
.pain-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.pain-card p { color: var(--text-muted); font-size: 14px; line-height: 1.7; }
.solution-arrow { text-align: center; color: var(--success); font-weight: 700; font-size: 18px; margin-top: 32px; animation: bounce-arrow 1.5s ease-in-out infinite; }
@keyframes bounce-arrow { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@media(max-width: 768px){ .pain-grid { grid-template-columns: 1fr; } }

/* Plugin grid */
.plugin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.plugin-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  position: relative; transition: 0.3s;
  display: flex; flex-direction: column; gap: 12px;
}
.plugin-card:hover { border-color: var(--primary-light); transform: translateY(-3px); box-shadow: 0 8px 32px rgba(99,102,241,0.15); }
.plugin-badge { position: absolute; top: -10px; right: 16px; background: var(--accent); color: #000; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 10px; }
.plugin-badge-new { background: #22c55e; color: #fff; }
.plugin-badge-pro { background: var(--primary); color: #fff; }
.plugin-icon { width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; color: #fff; flex-shrink: 0; }
.plugin-name { font-size: 18px; font-weight: 700; }
.plugin-desc { color: var(--text-muted); font-size: 13px; line-height: 1.6; flex: 1; }
.plugin-features { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.plugin-features li { font-size: 13px; color: var(--text-muted); padding-left: 16px; position: relative; }
.plugin-features li::before { content: '\2713'; position: absolute; left: 0; color: var(--success); font-weight: 700; }
.plugin-prices { display: flex; gap: 8px; flex-wrap: wrap; }
.price-tag { background: rgba(99,102,241,0.15); color: var(--primary-light); padding: 4px 10px; border-radius: 6px; font-size: 13px; font-weight: 600; }
.price-perm { background: rgba(245,158,11,0.15); color: var(--accent); }

/* Pricing mini table */
.pricing-preview { background: var(--bg-card); }
.pricing-mini-table { max-width: 700px; margin: 0 auto; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; font-size: 14px; }
.pmt-row { display: grid; grid-template-columns: 2fr 1fr 1.5fr 1.5fr; padding: 14px 20px; gap: 12px; align-items: center; border-bottom: 1px solid var(--border); }
.pmt-row:last-child { border-bottom: none; }
.pmt-head { background: rgba(99,102,241,0.1); font-weight: 700; color: var(--primary-light); }
.pmt-highlight { background: rgba(245,158,11,0.08); }
.pmt-highlight span { color: var(--accent); font-weight: 700; }
.pricing-preview-cta { text-align: center; margin-top: 32px; }
@media(max-width: 600px){ .pmt-row { grid-template-columns: 1fr 1fr; font-size: 12px; } }

/* Testimonials */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testimonial-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.stars { color: var(--accent); font-size: 18px; margin-bottom: 12px; }
.testimonial-card p { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin-bottom: 16px; font-style: italic; }
.testimonial-author { font-size: 13px; color: var(--text-dim); font-weight: 600; }
@media(max-width: 768px){ .testimonial-grid { grid-template-columns: 1fr; } }

/* FAQ */
.faq-list { max-width: 700px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); padding: 20px 0; }
.faq-item h4 { font-size: 15px; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.faq-item p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* Pricing page */
.page-hero { padding: 60px 0 40px; text-align: center; background: radial-gradient(ellipse at 50% 0%, rgba(99,102,241,0.12) 0%, transparent 70%); }
.page-hero h1 { font-size: 40px; font-weight: 800; margin-bottom: 12px; }
.page-hero p { color: var(--text-muted); font-size: 18px; }
.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 960px; margin: 40px auto 0; }
.plan-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; position: relative; transition: 0.3s; }
.plan-card:hover { border-color: var(--border-light); }
.plan-card.plan-popular { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), 0 8px 32px rgba(99,102,241,0.2); }
.plan-popular-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--primary); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 16px; border-radius: 12px; white-space: nowrap; }
.plan-name { font-size: 20px; font-weight: 700; }
.plan-desc { color: var(--text-muted); font-size: 13px; }
.plan-price { font-size: 36px; font-weight: 800; color: var(--primary-light); }
.plan-price span { font-size: 14px; font-weight: 400; color: var(--text-muted); }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.plan-features li { font-size: 13px; color: var(--text-muted); padding-left: 18px; position: relative; }
.plan-features li::before { content: '\2713'; position: absolute; left: 0; color: var(--success); font-weight: 700; }
.plan-features li.disabled { text-decoration: line-through; opacity: 0.4; }
.plan-features li.disabled::before { content: '\2717'; color: var(--danger); }
.plan-note { font-size: 12px; color: var(--text-dim); text-align: center; }
@media(max-width: 900px){ .plans-grid { grid-template-columns: 1fr; } }

/* Checkout */
.checkout-section { max-width: 700px; margin: 40px auto 0; }
.checkout-form { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 24px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 14px; font-weight: 600; color: var(--text-muted); }
.form-group input, .form-group select { background: rgba(255,255,255,0.05); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; color: var(--text); font-size: 15px; font-family: inherit; transition: 0.2s; }
.form-group input:focus, .form-group select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,0.15); }
.checkout-summary { background: rgba(99,102,241,0.06); border: 1px solid rgba(99,102,241,0.2); border-radius: var(--radius-sm); padding: 16px; }
.checkout-summary h4 { font-size: 15px; margin-bottom: 10px; }
.checkout-line { display: flex; justify-content: space-between; font-size: 14px; color: var(--text-muted); margin-bottom: 6px; }
.checkout-total { display: flex; justify-content: space-between; font-size: 18px; font-weight: 700; color: var(--primary-light); padding-top: 10px; border-top: 1px solid rgba(99,102,241,0.2); margin-top: 6px; }

/* About */
.about-content { max-width: 800px; margin: 0 auto; }
.about-section { margin-bottom: 48px; }
.about-section h2 { font-size: 24px; font-weight: 700; margin-bottom: 16px; color: var(--primary-light); }
.about-section p { color: var(--text-muted); line-height: 1.8; margin-bottom: 12px; font-size: 15px; }
.about-section ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.about-section ul li { color: var(--text-muted); font-size: 15px; padding-left: 20px; position: relative; }
.about-section ul li::before { content: '\2192'; position: absolute; left: 0; color: var(--primary-light); }

/* Plugin detail */
.plugin-detail-hero { padding: 60px 0; display: flex; align-items: center; gap: 40px; }
.plugin-detail-icon { width: 80px; height: 80px; border-radius: 20px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 24px; color: #fff; flex-shrink: 0; }
.plugin-detail-info h1 { font-size: 36px; font-weight: 800; margin-bottom: 8px; }
.plugin-detail-info .plugin-platform { color: var(--text-muted); font-size: 14px; margin-bottom: 16px; }
.plugin-detail-info .plugin-tagline { font-size: 18px; color: var(--text-muted); line-height: 1.6; }
.plugin-detail-section { padding: 40px 0; }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.feature-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.feature-item h4 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.feature-item p { font-size: 13px; color: var(--text-muted); }
.usage-steps { display: flex; flex-direction: column; gap: 16px; }
.usage-step { display: flex; gap: 16px; align-items: flex-start; }
.step-num { width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.step-content h4 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.step-content p { font-size: 13px; color: var(--text-muted); }
@media(max-width: 768px){ .plugin-detail-hero { flex-direction: column; } .feature-grid { grid-template-columns: 1fr; } }
.plugin-cta-bar { background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(245,158,11,0.1)); border: 1px solid rgba(99,102,241,0.2); border-radius: var(--radius); padding: 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.plugin-cta-bar .cta-info h3 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.plugin-cta-bar .cta-info p { font-size: 14px; color: var(--text-muted); }
.plugin-cta-bar .cta-actions { display: flex; gap: 12px; }
@media(max-width: 600px){ .plugin-cta-bar { flex-direction: column; text-align: center; } .plugin-cta-bar .cta-actions { width: 100%; flex-direction: column; } .plugin-cta-bar .cta-actions .btn { width: 100%; } }

/* Result pages */
.result-page { min-height: 70vh; display: flex; align-items: center; justify-content: center; }
.result-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 48px; text-align: center; max-width: 500px; width: 100%; }
.result-icon { font-size: 64px; margin-bottom: 16px; }
.result-card h2 { font-size: 28px; font-weight: 700; margin-bottom: 12px; }
.result-card p { color: var(--text-muted); margin-bottom: 24px; line-height: 1.7; }

/* Footer */
.footer { background: var(--bg-card); border-top: 1px solid var(--border); padding: 60px 0 24px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .logo { font-size: 20px; margin-bottom: 12px; display: block; }
.footer-brand p { color: var(--text-dim); font-size: 13px; line-height: 1.7; margin-bottom: 8px; }
.footer-contact { color: var(--text-muted); font-size: 13px; }
.footer-links h4 { font-size: 14px; font-weight: 700; margin-bottom: 14px; color: var(--text-muted); }
.footer-links a { display: block; color: var(--text-dim); font-size: 13px; padding: 4px 0; transition: 0.2s; }
.footer-links a:hover { color: var(--primary-light); }
.footer-bottom { text-align: center; color: var(--text-dim); font-size: 12px; padding-top: 24px; border-top: 1px solid var(--border); }
@media(max-width: 768px){ .footer-grid { grid-template-columns: 1fr; gap: 24px; } }

/* Utils */
.text-center { text-align: center; }
.mt-4 { margin-top: 32px; }
.mb-4 { margin-bottom: 32px; }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary-light); }
.text-accent { color: var(--accent); }
.text-success { color: var(--success); }
.text-sm { font-size: 13px; }
.text-lg { font-size: 18px; }
.mono { font-family: monospace; }
@media(max-width: 768px){ .section { padding: 48px 0; } .section-header h2 { font-size: 26px; } }
