/* 杏吧原创APP官网 - 全局样式 */
:root {
  --bg-primary: #0c0816;
  --bg-secondary: #1a1428;
  --bg-card: #221b35;
  --text-primary: #f5f0ff;
  --text-secondary: #b8adc8;
  --accent-pink: #ff4d8d;
  --accent-orange: #ff8a3d;
  --accent-purple: #9b59ff;
  --gradient-main: linear-gradient(135deg, #ff4d8d 0%, #ff8a3d 50%, #9b59ff 100%);
  --gradient-btn: linear-gradient(90deg, #ff4d8d, #ff8a3d);
  --border-color: rgba(255, 255, 255, 0.08);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --radius: 12px;
  --max-width: 1200px;
  --header-height: 70px;
}

*, *::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-primary);
  color: var(--text-primary);
  line-height: 1.75;
  min-height: 100vh;
}

a { color: var(--accent-pink); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-orange); }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(12, 8, 22, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  height: var(--header-height);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.logo-link { display: flex; align-items: center; gap: 12px; color: var(--text-primary); }
.logo-link:hover { color: var(--text-primary); }
.logo-img { width: 42px; height: 42px; border-radius: 10px; }
.logo-text { font-size: 1.25rem; font-weight: 700; background: var(--gradient-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.main-nav { display: flex; gap: 28px; list-style: none; }
.main-nav a { color: var(--text-secondary); font-size: 0.95rem; font-weight: 500; }
.main-nav a:hover, .main-nav a.active { color: var(--accent-pink); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  transition: 0.3s;
}

/* Hero */
.hero {
  padding: 60px 0 50px;
  background: radial-gradient(ellipse at 50% 0%, rgba(155, 89, 255, 0.15) 0%, transparent 60%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255, 77, 141, 0.15);
  border: 1px solid rgba(255, 77, 141, 0.3);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--accent-pink);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: 2.4rem;
  line-height: 1.3;
  margin-bottom: 20px;
  font-weight: 800;
}

.hero-desc { color: var(--text-secondary); font-size: 1.05rem; margin-bottom: 28px; }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
  background: var(--gradient-btn);
  color: #fff;
  box-shadow: 0 4px 20px rgba(255, 77, 141, 0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(255, 77, 141, 0.5); color: #fff; }

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-color);
}
.btn-outline:hover { border-color: var(--accent-pink); color: var(--accent-pink); }

.hero-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-visual img { width: 100%; border-radius: var(--radius); }

/* Sections */
.section { padding: 56px 0; }
.section-alt { background: var(--bg-secondary); }

.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 { font-size: 1.85rem; margin-bottom: 12px; }
.section-header p { color: var(--text-secondary); max-width: 640px; margin: 0 auto; }

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s, border-color 0.2s;
}
.feature-card:hover { transform: translateY(-4px); border-color: rgba(255, 77, 141, 0.3); }

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--gradient-main);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.feature-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.feature-card p { color: var(--text-secondary); font-size: 0.92rem; }

/* Content Showcase */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.showcase-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 24px;
  align-items: center;
}

.showcase-item img {
  border-radius: 8px;
  width: 200px;
  object-fit: cover;
}

.showcase-item h3 { font-size: 1.1rem; margin-bottom: 8px; }
.showcase-item p { color: var(--text-secondary); font-size: 0.9rem; }

/* Image Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: transform 0.2s;
}
.gallery-item:hover { transform: scale(1.03); }
.gallery-item img { width: 100%; aspect-ratio: 9/16; object-fit: cover; }
.gallery-caption {
  padding: 10px 12px;
  background: var(--bg-card);
  font-size: 0.82rem;
  color: var(--text-secondary);
  text-align: center;
}

/* Article Content */
.article-content { max-width: 860px; margin: 0 auto; }
.article-content h2 { font-size: 1.5rem; margin: 36px 0 16px; padding-bottom: 8px; border-bottom: 2px solid rgba(255, 77, 141, 0.3); }
.article-content h3 { font-size: 1.2rem; margin: 28px 0 12px; color: var(--accent-orange); }
.article-content p { margin-bottom: 16px; color: var(--text-secondary); }
.article-content ul, .article-content ol { margin: 12px 0 20px 24px; color: var(--text-secondary); }
.article-content li { margin-bottom: 8px; }
.article-content strong { color: var(--text-primary); }

/* Steps */
.steps-list { counter-reset: step; list-style: none; margin: 24px 0; }
.steps-list li {
  counter-increment: step;
  position: relative;
  padding: 20px 20px 20px 60px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  margin-bottom: 16px;
}
.steps-list li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: var(--gradient-btn);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

/* FAQ */
.faq-list { margin: 24px 0; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-q {
  padding: 18px 24px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-q::after { content: "+"; font-size: 1.2rem; color: var(--accent-pink); }
.faq-item.open .faq-q::after { content: "−"; }
.faq-a { padding: 0 24px 18px; color: var(--text-secondary); display: none; }
.faq-item.open .faq-a { display: block; }

/* CTA Banner */
.cta-banner {
  background: var(--gradient-main);
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
  margin: 40px 0;
}
.cta-banner h2 { font-size: 1.6rem; margin-bottom: 12px; }
.cta-banner p { margin-bottom: 24px; opacity: 0.9; }
.cta-banner .btn { background: #fff; color: var(--bg-primary); }
.cta-banner .btn:hover { color: var(--bg-primary); transform: translateY(-2px); }

/* Page Header */
.page-header {
  padding: 48px 0 32px;
  text-align: center;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
}
.page-header h1 { font-size: 2rem; margin-bottom: 8px; }
.page-header p { color: var(--text-secondary); }

.page-content { padding: 48px 0 64px; }

/* Breadcrumb */
.breadcrumb {
  padding: 16px 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--accent-pink); }

/* Footer */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 48px 0 24px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p { color: var(--text-secondary); font-size: 0.9rem; margin-top: 12px; }
.footer-col h4 { font-size: 1rem; margin-bottom: 16px; color: var(--text-primary); }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--text-secondary); font-size: 0.9rem; }
.footer-col a:hover { color: var(--accent-pink); }

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Error Pages */
.error-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}
.error-code {
  font-size: 6rem;
  font-weight: 900;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.error-page h1 { font-size: 1.6rem; margin: 16px 0 12px; }
.error-page p { color: var(--text-secondary); margin-bottom: 28px; }

/* Internal Links Box */
.internal-links {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 24px;
  margin: 32px 0;
}
.internal-links h3 { font-size: 1rem; margin-bottom: 12px; }
.internal-links ul { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; }
.internal-links a {
  padding: 6px 14px;
  background: rgba(255, 77, 141, 0.1);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--accent-pink);
}

/* Responsive - Tablet */
@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-actions { justify-content: center; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .showcase-item { grid-template-columns: 1fr; text-align: center; }
  .showcase-item img { width: 100%; max-width: 280px; margin: 0 auto; }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    flex-direction: column;
    padding: 20px;
    gap: 0;
    transform: translateY(-120%);
    opacity: 0;
    transition: 0.3s;
    border-bottom: 1px solid var(--border-color);
  }
  .main-nav.open { transform: translateY(0); opacity: 1; }
  .main-nav li { border-bottom: 1px solid var(--border-color); }
  .main-nav a { display: block; padding: 14px 0; }

  .hero { padding: 40px 0 32px; }
  .hero h1 { font-size: 1.75rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-banner { padding: 32px 20px; }
  .section { padding: 40px 0; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.5rem; }
  .btn { padding: 12px 24px; font-size: 0.9rem; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
}
