/* 抖阴官方网站 - 全局样式 */
:root {
  --primary: #ff2d55;
  --primary-dark: #e0244a;
  --bg-dark: #0d0d12;
  --bg-card: #16161f;
  --bg-section: #111118;
  --text-primary: #f5f5f7;
  --text-secondary: #a0a0b0;
  --text-muted: #6b6b7b;
  --border: #2a2a38;
  --accent: #ff6b35;
  --gradient: linear-gradient(135deg, #ff2d55 0%, #ff6b35 100%);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --radius: 12px;
  --max-width: 1200px;
}

*, *::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-dark);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent);
}

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(13, 13, 18, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-link img {
  height: 40px;
  width: auto;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-main a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-main a:hover,
.nav-main a.active {
  color: var(--primary);
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gradient);
  color: #fff !important;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 4px 16px rgba(255, 45, 85, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 45, 85, 0.5);
  color: #fff !important;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
}

/* Hero */
.hero {
  padding: 80px 0 60px;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 45, 85, 0.12) 0%, transparent 60%);
  text-align: center;
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 20px;
  background: var(--gradient);
  -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 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: 50px;
  font-weight: 600;
  border: 2px solid var(--border);
  transition: border-color 0.2s, background 0.2s;
}

.btn-secondary:hover {
  border-color: var(--primary);
  background: rgba(255, 45, 85, 0.08);
  color: var(--text-primary) !important;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Sections */
.section {
  padding: 64px 0;
}

.section-alt {
  background: var(--bg-section);
}

.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);
  padding: 28px;
  transition: border-color 0.3s, transform 0.3s;
}

.feature-card:hover {
  border-color: rgba(255, 45, 85, 0.4);
  transform: translateY(-4px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 45, 85, 0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Screenshot Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: transform 0.3s;
}

.gallery-item:hover {
  transform: scale(1.02);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
}

.gallery-caption {
  padding: 14px 16px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-align: center;
}

/* Content Article */
.content-article {
  max-width: 860px;
  margin: 0 auto;
}

.content-article h2 {
  font-size: 1.5rem;
  margin: 40px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

.content-article h3 {
  font-size: 1.2rem;
  margin: 28px 0 12px;
  color: var(--text-primary);
}

.content-article p {
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.content-article ul,
.content-article ol {
  margin: 12px 0 20px 24px;
  color: var(--text-secondary);
}

.content-article li {
  margin-bottom: 8px;
}

.content-article a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* FAQ */
.faq-list {
  max-width: 860px;
  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: 18px 24px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}

.faq-question:hover {
  background: rgba(255, 45, 85, 0.05);
}

.faq-answer {
  padding: 0 24px 18px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Steps */
.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 24px;
  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(--gradient);
  border-radius: 50%;
  font-weight: 800;
  font-size: 1.1rem;
  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;
}

/* Breadcrumb */
.breadcrumb {
  padding: 16px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-secondary);
}

.breadcrumb span {
  margin: 0 8px;
}

/* Page Header */
.page-header {
  padding: 48px 0 32px;
  text-align: center;
  background: var(--bg-section);
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.page-header p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Legal Content */
.legal-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}

.legal-content h2 {
  font-size: 1.35rem;
  margin: 36px 0 14px;
  color: var(--text-primary);
}

.legal-content h3 {
  font-size: 1.1rem;
  margin: 24px 0 10px;
}

.legal-content p,
.legal-content li {
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.legal-content ul,
.legal-content ol {
  margin: 12px 0 16px 24px;
}

.legal-content .update-date {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

/* 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: 8rem;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.error-page h1 {
  font-size: 1.5rem;
  margin: 16px 0 12px;
}

.error-page p {
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* Footer */
.site-footer {
  background: var(--bg-section);
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
  margin-top: 64px;
}

.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;
  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: 10px;
}

.footer-col a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--primary);
}

.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-muted);
  font-size: 0.85rem;
}

.footer-keywords {
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.8;
}

/* Internal Links Box */
.internal-links {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 40px 0;
}

.internal-links h3 {
  font-size: 1rem;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.internal-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  list-style: none;
  margin: 0;
}

.internal-links a {
  font-size: 0.9rem;
}

/* CTA Banner */
.cta-banner {
  background: var(--gradient);
  border-radius: var(--radius);
  padding: 48px 32px;
  text-align: center;
  margin: 48px 0;
}

.cta-banner h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: #fff;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 24px;
}

.cta-banner .btn-secondary {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff !important;
}

.cta-banner .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
}

/* Hero Visual */
.hero-visual {
  margin-top: 48px;
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-phone {
  max-width: 220px;
  border-radius: 20px;
  border: 3px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-phone img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
}

/* Showcase Block - 图文交替 */
.showcase-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 64px;
}

.showcase-block:last-child {
  margin-bottom: 0;
}

.showcase-block.reverse .showcase-media {
  order: 2;
}

.showcase-block.reverse .showcase-text {
  order: 1;
}

.showcase-media {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.showcase-phone {
  max-width: 240px;
  border-radius: 16px;
  border: 2px solid var(--border);
  overflow: hidden;
  background: var(--bg-card);
  transition: transform 0.3s, border-color 0.3s;
}

.showcase-phone:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 45, 85, 0.5);
}

.showcase-phone img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
}

.showcase-phone figcaption {
  padding: 10px 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
  border-top: 1px solid var(--border);
}

.showcase-text h3 {
  font-size: 1.35rem;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.showcase-text p {
  color: var(--text-secondary);
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.showcase-text ul {
  margin: 12px 0 16px 20px;
  color: var(--text-secondary);
  font-size: 0.93rem;
}

.showcase-text li {
  margin-bottom: 6px;
}

.showcase-tag {
  display: inline-block;
  background: rgba(255, 45, 85, 0.12);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 14px;
}

/* Gallery Category */
.gallery-category {
  margin-bottom: 48px;
}

.gallery-category h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  padding-left: 14px;
  border-left: 3px solid var(--primary);
}

.gallery-category > p {
  color: var(--text-secondary);
  font-size: 0.93rem;
  margin-bottom: 20px;
  padding-left: 17px;
}

.gallery-grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.gallery-grid-4 .gallery-item img {
  aspect-ratio: 9/16;
  object-fit: cover;
}

/* Triple Phone Row */
.triple-phones {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 32px 0;
}

.triple-phones .showcase-phone {
  max-width: 100%;
}

/* Compare Row */
.compare-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 32px 0;
}

.compare-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
}

.compare-card img {
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  aspect-ratio: 9/16;
  object-fit: cover;
}

.compare-card .compare-label {
  padding: 14px;
  font-weight: 600;
  font-size: 0.95rem;
}

.compare-card .compare-desc {
  padding: 0 16px 16px;
  color: var(--text-secondary);
  font-size: 0.88rem;
}

/* Topic Cards with Image */
.topic-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.topic-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.topic-card-img {
  overflow: hidden;
  max-height: 360px;
}

.topic-card-img img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  object-position: top;
  transition: transform 0.4s;
}

.topic-card:hover .topic-card-img img {
  transform: scale(1.03);
}

.topic-card-body {
  padding: 20px 22px 24px;
  flex: 1;
}

.topic-card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.topic-card-body p {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

/* Responsive */
@media (max-width: 768px) {
  .showcase-block {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 48px;
  }

  .showcase-block.reverse .showcase-media,
  .showcase-block.reverse .showcase-text {
    order: unset;
  }

  .triple-phones {
    grid-template-columns: 1fr;
    max-width: 260px;
    margin-left: auto;
    margin-right: auto;
  }

  .compare-row {
    grid-template-columns: 1fr;
  }

  .hero-phone {
    max-width: 180px;
  }
}

@media (max-width: 768px) {
  .nav-main {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }

  .nav-main.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .header-inner {
    position: relative;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero {
    padding: 48px 0 40px;
  }

  .hero-stats {
    gap: 24px;
  }

  .stat-num {
    font-size: 1.5rem;
  }
}
