﻿/* 抖阴官方网站 dyvip.cyou - 全局样式 */
:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #141414;
  --bg-card: #1a1a1a;
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --text-muted: #666666;
  --accent: #fe2c55;
  --accent-hover: #ff4d6d;
  --accent-light: rgba(254, 44, 85, 0.15);
  --border: #2a2a2a;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --radius: 12px;
  --radius-sm: 8px;
  --max-width: 1200px;
  --header-height: 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;
  display: flex;
  flex-direction: column;
}

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;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--header-height);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
}

.logo-link:hover {
  color: var(--text-primary);
}

.logo-img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-main a {
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  transition: all 0.2s;
}

.nav-main a:hover,
.nav-main a.active {
  color: var(--text-primary);
  background: var(--accent-light);
}

.nav-main a.active {
  color: var(--accent);
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff !important;
  padding: 10px 24px;
  border-radius: 24px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.btn-download:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  color: #fff !important;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

main {
  flex: 1;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.hero {
  padding: 60px 0 80px;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  text-align: center;
}

.hero-badge {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-primary) !important;
  padding: 10px 24px;
  border-radius: 24px;
  font-weight: 600;
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent) !important;
}

.hero-preview {
  max-width: 320px;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 2px solid var(--border);
}

.section {
  padding: 64px 0;
}

.section-alt {
  background: var(--bg-secondary);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s, border-color 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 32px;
}

.category-tag {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.category-tag:hover,
.category-tag.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.screenshot-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.2s;
}

.screenshot-card:hover {
  transform: scale(1.02);
}

.screenshot-card img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  object-position: top;
}

.screenshot-info {
  padding: 16px;
}

.screenshot-info h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.screenshot-info p {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  counter-reset: step;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  position: relative;
}

.step-card::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  margin: 0 auto 16px;
}

.step-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.step-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  padding: 20px 24px;
  font-weight: 600;
}

.faq-answer {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.page-hero {
  padding: 48px 0 32px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin-bottom: 8px;
}

.page-hero .breadcrumb {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.page-hero .breadcrumb a {
  color: var(--text-secondary);
}

.page-content {
  padding: 48px 0 80px;
}

.article-body {
  max-width: 800px;
  margin: 0 auto;
}

.article-body h2 {
  font-size: 1.4rem;
  margin: 32px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.article-body h3 {
  font-size: 1.15rem;
  margin: 24px 0 12px;
}

.article-body p {
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.article-body ul,
.article-body ol {
  margin: 0 0 16px 24px;
  color: var(--text-secondary);
}

.article-body li {
  margin-bottom: 8px;
}

.article-body a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.content-block {
  max-width: 900px;
  margin: 0 auto;
}

.content-block h2 {
  font-size: 1.5rem;
  margin: 40px 0 16px;
  color: var(--text-primary);
}

.content-block h3 {
  font-size: 1.2rem;
  margin: 28px 0 12px;
  color: var(--text-primary);
}

.content-block p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  text-align: justify;
}

.content-block ul {
  margin: 0 0 16px 24px;
  color: var(--text-secondary);
}

.content-block li {
  margin-bottom: 8px;
}

.internal-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.internal-link-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  transition: border-color 0.2s;
}

.internal-link-card:hover {
  border-color: var(--accent);
}

.internal-link-card a {
  color: var(--text-primary);
  font-weight: 600;
}

.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand .logo-link {
  margin-bottom: 12px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.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: 10px;
}

.footer-col a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-copy {
  margin: 0;
  color: var(--text-muted);
}

.footer-mini-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 20px;
  margin-top: 12px;
}

.footer-mini-nav a {
  color: var(--text-secondary);
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-mini-nav a:hover {
  color: var(--accent);
}

.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 20px;
}

.error-code {
  font-size: 6rem;
  font-weight: 800;
  color: var(--accent);
  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: 24px;
}

.ad-bar {
  position: sticky;
  top: var(--header-height);
  z-index: 900;
  background: rgba(10, 10, 10, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
}

#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  background: transparent;
  max-width: var(--max-width);
  margin: 0 auto;
}

#ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70px;
  box-sizing: border-box;
}

#ads img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(24, 24, 24, 0.12);
  transition: transform 180ms ease, box-shadow 180ms ease;
  display: block;
  border: none;
  background: linear-gradient(135deg, #fff, #fff);
}

#ads a {
  display: inline-block;
  text-decoration: none;
  border-radius: 15px;
}

#ads img:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 10px 24px rgba(254, 44, 85, 0.25);
}

#ads figcaption,
#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;
}

@media (max-width: 768px) {
  .nav-main {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--border);
  }

  .nav-main.open {
    display: flex;
  }

  .nav-main a {
    width: 100%;
    text-align: center;
    padding: 12px;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    padding: 40px 0 60px;
  }

  .section {
    padding: 48px 0;
  }

  .screenshots-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .screenshot-info {
    padding: 12px;
  }

  .screenshot-info h3 {
    font-size: 0.85rem;
  }

  .screenshot-info p {
    font-size: 0.75rem;
  }

  .site-footer {
    padding: 36px 0 calc(24px + env(safe-area-inset-bottom, 0px));
  }

  .site-footer .container {
    padding: 0 16px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 20px;
  }

  .footer-brand {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
  }

  .footer-brand .logo-link {
    justify-content: center;
    margin-bottom: 12px;
  }

  .footer-brand p {
    font-size: 0.84rem;
    line-height: 1.65;
    max-width: 320px;
  }

  .footer-col h4 {
    font-size: 0.88rem;
    margin-bottom: 10px;
    color: var(--text-primary);
  }

  .footer-col ul {
    margin: 0;
  }

  .footer-col li {
    margin-bottom: 4px;
  }

  .footer-col a {
    font-size: 0.84rem;
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 2px 0;
  }

  .footer-col:last-child {
    grid-column: 1 / -1;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border);
  }

  .footer-col:last-child ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 24px;
  }

  .footer-col:last-child li {
    margin-bottom: 0;
  }

  .footer-bottom {
    margin-top: 24px;
    padding-top: 20px;
  }

  .footer-copy {
    font-size: 0.8rem;
    line-height: 1.5;
  }

  .footer-mini-nav {
    margin-top: 10px;
    gap: 4px 16px;
  }

  .footer-mini-nav a {
    font-size: 0.82rem;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    padding: 0 4px;
  }
}

@media (max-width: 480px) {
  .screenshots-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn-download,
  .btn-secondary {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .ad-bar {
    padding: 8px 10px;
  }

  #ads {
    gap: 8px;
  }

  #ads > div {
    width: 62px;
  }

  #ads img {
    width: 58px;
    height: 58px;
    border-radius: 14px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer-col:not(:last-child) {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
  }

  .footer-col:not(:last-child) h4 {
    margin-bottom: 8px;
  }

  .footer-col:not(:last-child) ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px 12px;
  }

  .footer-col:last-child {
    padding-top: 16px;
    border-top: none;
  }

  .footer-col:last-child ul {
    flex-direction: column;
    gap: 4px;
  }
}
