/* 杏吧原创 - xbweb.pics 响应式样式 */
:root {
  --bg-primary: #0d0b14;
  --bg-secondary: #161222;
  --bg-card: #1e1830;
  --accent: #e84393;
  --accent-light: #fd79a8;
  --accent-orange: #f39c12;
  --text-primary: #f0eef5;
  --text-secondary: #a89bb8;
  --text-muted: #6b5f7a;
  --border: rgba(232, 67, 147, 0.15);
  --gradient: linear-gradient(135deg, #e84393 0%, #f39c12 100%);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --radius: 12px;
  --max-width: 1200px;
  --header-h: 64px;
}

*, *::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.7;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-orange); }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 11, 20, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.15rem;
}

.logo-link img { width: 36px; height: 36px; border-radius: 8px; }

.nav-desktop { display: flex; gap: 28px; list-style: none; }
.nav-desktop a { color: var(--text-secondary); font-size: 0.95rem; }
.nav-desktop a:hover, .nav-desktop a.active { color: var(--accent-light); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
}

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
  z-index: 99;
}

.nav-mobile.open { display: block; }
.nav-mobile ul { list-style: none; }
.nav-mobile li { border-bottom: 1px solid var(--border); }
.nav-mobile a {
  display: block;
  padding: 14px 0;
  color: var(--text-secondary);
}

/* Hero */
.hero {
  padding: 60px 0 80px;
  background: radial-gradient(ellipse at 50% 0%, rgba(232, 67, 147, 0.12) 0%, transparent 60%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background: rgba(232, 67, 147, 0.15);
  color: var(--accent-light);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  margin-bottom: 16px;
  border: 1px solid var(--border);
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.3;
  margin-bottom: 20px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 28px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 24px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--accent-light);
  border: 1px solid var(--accent);
}

.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.hero-meta { display: flex; gap: 24px; flex-wrap: wrap; }
.hero-meta span { color: var(--text-muted); font-size: 0.88rem; }
.hero-meta strong { color: var(--text-primary); }

.hero-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.hero-visual img { width: 100%; }

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-secondary); }

.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-size: clamp(1.5rem, 3vw, 2rem); 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-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}

.feature-card:hover { transform: translateY(-4px); border-color: rgba(232, 67, 147, 0.4); }

.feature-card img { aspect-ratio: 9/16; object-fit: cover; width: 100%; max-height: 320px; }

.feature-card-body { padding: 20px; }
.feature-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feature-card p { color: var(--text-secondary); font-size: 0.9rem; }

/* Content blocks */
.content-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 56px;
}

.content-block.reverse { direction: rtl; }
.content-block.reverse > * { direction: ltr; }

.content-block img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.content-block h3 { font-size: 1.3rem; margin-bottom: 14px; color: var(--accent-light); }
.content-block p { color: var(--text-secondary); margin-bottom: 12px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.step-item {
  text-align: center;
  padding: 28px 16px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.step-num {
  width: 40px; height: 40px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  margin: 0 auto 14px;
  font-size: 1.1rem;
}

.step-item h4 { margin-bottom: 8px; font-size: 1rem; }
.step-item p { color: var(--text-secondary); font-size: 0.88rem; }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--bg-card);
}

.faq-q {
  width: 100%;
  text-align: left;
  padding: 18px 20px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-q::after { content: "+"; font-size: 1.2rem; color: var(--accent); }
.faq-item.open .faq-q::after { content: "−"; }

.faq-a {
  display: none;
  padding: 0 20px 18px;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.faq-item.open .faq-a { display: block; }

/* Article / Legal pages */
.page-hero {
  padding: 48px 0 32px;
  text-align: center;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 10px; }
.page-hero p { color: var(--text-secondary); }

.article { padding: 48px 0 72px; }
.article-content { max-width: 820px; margin: 0 auto; }

.article-content h2 {
  font-size: 1.25rem;
  margin: 36px 0 14px;
  color: var(--accent-light);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.article-content h3 { font-size: 1.05rem; margin: 24px 0 10px; }
.article-content p { color: var(--text-secondary); margin-bottom: 14px; }
.article-content ul, .article-content ol { color: var(--text-secondary); margin: 0 0 14px 24px; }
.article-content li { margin-bottom: 6px; }

.breadcrumb {
  padding: 16px 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.breadcrumb a { color: var(--text-secondary); }

/* Error pages */
.error-page {
  min-height: calc(100vh - var(--header-h) - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}

.error-code {
  font-size: 6rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 16px;
}

.error-page h1 { font-size: 1.5rem; margin-bottom: 12px; }
.error-page p { color: var(--text-secondary); margin-bottom: 28px; }

/* Footer */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

.footer-brand p { color: var(--text-secondary); font-size: 0.9rem; margin-top: 12px; line-height: 1.6; }

.footer-col h4 { font-size: 0.95rem; margin-bottom: 16px; color: var(--text-primary); }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--text-secondary); font-size: 0.88rem; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p { color: var(--text-muted); font-size: 0.82rem; }

.internal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 20px 0;
}

.internal-links a {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 4px 0;
  border-bottom: 1px dashed var(--border);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.tag {
  background: rgba(232, 67, 147, 0.1);
  color: var(--accent-light);
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 0.82rem;
  border: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 992px) {
  .hero-grid, .content-block { grid-template-columns: 1fr; }
  .content-block.reverse { direction: ltr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: block; }
  .hero { padding: 40px 0 56px; }
  .hero-visual { max-width: 280px; margin: 0 auto; }
  .feature-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}

/* 广告栏 - 固定于导航下方，便于点击 */
.ads-bar-wrap {
  position: sticky;
  top: var(--header-h);
  z-index: 90;
  background: rgba(13, 11, 20, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
}

.ads-bar-wrap #ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  background: transparent;
  margin: 0 auto;
  max-width: var(--max-width);
  padding: 0 16px;
  gap: 10px;
}

.ads-bar-wrap #ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70px;
  box-sizing: border-box;
}

.ads-bar-wrap #ads img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: transform 180ms ease, box-shadow 180ms ease;
  display: block;
  border: none;
  background: linear-gradient(135deg, #fff, #fff);
}

.ads-bar-wrap #ads a {
  display: inline-block;
  text-decoration: none;
  border-radius: 15px;
}

.ads-bar-wrap #ads img:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 10px 24px rgba(232, 67, 147, 0.25);
}

.ads-bar-wrap #ads .caption {
  height: 15px;
  font-size: 11px;
  color: var(--text-secondary);
  text-align: center;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 4px;
}
