/* 抖阴官方网站 - d-y.quest */
:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #141414;
  --bg-card: #1a1a1a;
  --text-primary: #f5f5f5;
  --text-secondary: #a0a0a0;
  --accent: #ff2d55;
  --accent-hover: #ff4d6d;
  --cyan: #00f0ff;
  --magenta: #ff0050;
  --border: #2a2a2a;
  --max-width: 1200px;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(255, 45, 85, 0.12);
}

*, *::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.8;
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* 广告条 - 固定在导航栏下方 */
.ads-bar {
  position: sticky;
  top: 72px;
  z-index: 99;
  background: rgba(10, 10, 10, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.ads-bar #ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px 16px;
  background: transparent;
  max-width: var(--max-width);
  margin: 0 auto;
}

.ads-bar #ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70px;
  box-sizing: border-box;
}

.ads-bar #ads img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(24, 24, 24, 0.3);
  transition: transform 180ms ease, box-shadow 180ms ease;
  display: block;
  border: none;
  background: linear-gradient(135deg, #fff, #fff);
}

.ads-bar #ads a {
  display: inline-block;
  text-decoration: none;
  border-radius: 15px;
}

.ads-bar #ads img:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 10px 24px rgba(255, 45, 85, 0.35);
}

.ads-bar #ads figcaption,
.ads-bar #ads .caption {
  height: 15px;
  font-size: 11px;
  color: var(--text-secondary);
  text-align: center;
  max-width: 70px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 4px;
}

@media (max-width: 768px) {
  .ads-bar {
    top: 72px;
    padding: 8px 12px;
  }

  .ads-bar #ads {
    gap: 10px 12px;
  }
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
}

.logo-link:hover {
  color: var(--text-primary);
}

.logo-img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

.logo-text {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav-main {
  display: flex;
  gap: 8px;
  list-style: none;
}

.nav-main a {
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.95rem;
}

.nav-main a:hover,
.nav-main a.active {
  color: var(--accent);
  background: rgba(255, 45, 85, 0.1);
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent), var(--magenta));
  color: #fff !important;
  padding: 10px 24px;
  border-radius: 24px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(255, 45, 85, 0.3);
  color: #fff !important;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

/* Hero */
.hero {
  background: linear-gradient(180deg, #1a0a10 0%, var(--bg-primary) 100%);
  padding: 80px 24px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 45, 85, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
}

.hero h1 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.3;
}

.hero h1 span {
  background: linear-gradient(90deg, var(--cyan), var(--accent), var(--magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 10px 24px;
  border: 1px solid var(--border);
  border-radius: 24px;
  color: var(--text-primary) !important;
  font-weight: 500;
  transition: border-color 0.2s, background 0.2s;
}

.btn-secondary:hover {
  border-color: var(--accent);
  background: rgba(255, 45, 85, 0.08);
  color: var(--text-primary) !important;
}

.hero-preview {
  max-width: 360px;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(255, 45, 85, 0.15);
  border: 2px solid var(--border);
}

/* Sections */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 24px;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 12px;
  text-align: center;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 45, 85, 0.4);
}

.feature-card img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  object-position: top;
}

.feature-card-body {
  padding: 20px;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Content article */
.content-article {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 40px;
  border: 1px solid var(--border);
}

.content-article h2 {
  font-size: 1.5rem;
  margin: 36px 0 16px;
  color: var(--text-primary);
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(255, 45, 85, 0.3);
}

.content-article h2:first-child {
  margin-top: 0;
}

.content-article h3 {
  font-size: 1.2rem;
  margin: 24px 0 12px;
  color: var(--accent);
}

.content-article p {
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.content-article ul,
.content-article ol {
  margin: 0 0 16px 24px;
  color: var(--text-secondary);
}

.content-article li {
  margin-bottom: 8px;
}

.content-article a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Image showcase */
.showcase-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.showcase-item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.showcase-item img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  object-position: top;
}

.showcase-item figcaption {
  padding: 10px 12px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: var(--bg-card);
  text-align: center;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.faq-item h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.faq-item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Download CTA */
.cta-section {
  background: linear-gradient(135deg, #1a0a10, #0f1520);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 60px 24px;
}

.cta-section h2 {
  font-size: 1.75rem;
  margin-bottom: 16px;
}

.cta-section p {
  color: var(--text-secondary);
  margin-bottom: 28px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 48px 24px 24px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 12px;
  line-height: 1.7;
}

.footer-links h4 {
  font-size: 0.95rem;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--accent);
}

.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 {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* Error pages */
.error-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
}

.error-code {
  font-size: 6rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--cyan), var(--accent));
  -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;
}

/* Breadcrumb */
.breadcrumb {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.breadcrumb a {
  color: var(--text-secondary);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb span {
  margin: 0 8px;
}

/* Page header */
.page-header {
  background: var(--bg-secondary);
  padding: 48px 24px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.page-header p {
  color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
  .header-inner {
    position: relative;
    justify-content: flex-start;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .site-header nav {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 101;
  }

  .nav-main {
    display: none;
    position: relative;
    top: 0;
    left: auto;
    right: 0;
    min-width: 200px;
    flex-direction: column;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 0 12px;
    box-shadow: -4px 8px 24px rgba(0, 0, 0, 0.4);
    align-items: flex-start;
  }

  .nav-main.open {
    display: flex;
  }

  .nav-main li {
    width: 100%;
  }

  .nav-main a {
    display: block;
    text-align: left;
    width: 100%;
  }

  .header-actions .btn-download {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .content-article {
    padding: 24px;
  }

  .hero {
    padding: 48px 24px 40px;
  }
}
