/* 抖阴官网视频平台 dyvip.autos */
:root {
  --bg-primary: #0d0b14;
  --bg-secondary: #161222;
  --bg-card: #1e1a2e;
  --bg-elevated: #252038;
  --text-primary: #f2f0f8;
  --text-secondary: #9b94b0;
  --accent-gold: #f5a623;
  --accent-purple: #a855f7;
  --accent-gradient: linear-gradient(135deg, var(--accent-gold), var(--accent-purple));
  --border-color: #2e2844;
  --header-height: 64px;
  --max-width: 1180px;
  --radius: 14px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

*, *::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-gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-purple); }

img { max-width: 100%; height: auto; display: block; }

.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(13, 11, 20, 0.96);
  backdrop-filter: blur(14px);
  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); }

.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: 10px; }
.logo-text { font-size: 1.2rem; font-weight: 700; background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.nav-toggle { display: none; background: none; border: none; color: var(--text-primary); font-size: 1.5rem; cursor: pointer; padding: 8px; }

.nav-menu { display: flex; list-style: none; gap: 8px; }
.nav-menu a { color: var(--text-secondary); padding: 8px 14px; border-radius: 8px; font-size: 0.95rem; }
.nav-menu a:hover, .nav-menu a.active { color: var(--text-primary); background: var(--bg-card); }

/* Hero */
.da-hero {
  position: relative; overflow: hidden;
  padding: 72px 0 56px;
  background: radial-gradient(ellipse 80% 60% at 70% 20%, rgba(168, 85, 247, 0.12), transparent),
              radial-gradient(ellipse 60% 50% at 10% 80%, rgba(245, 166, 35, 0.08), transparent);
}

.da-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }

.da-hero-badge {
  display: inline-block; padding: 6px 14px; border-radius: 20px;
  background: rgba(245, 166, 35, 0.12); border: 1px solid rgba(245, 166, 35, 0.3);
  color: var(--accent-gold); font-size: 0.85rem; margin-bottom: 20px;
}

.da-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.25; margin-bottom: 20px; }
.da-hero-lead { color: var(--text-secondary); font-size: 1.05rem; margin-bottom: 28px; max-width: 520px; }

.da-hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.da-hero-tags span {
  padding: 6px 14px; border-radius: 8px; font-size: 0.85rem;
  background: var(--bg-card); border: 1px solid var(--border-color); color: var(--text-secondary);
}

.da-hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.da-btn { display: inline-flex; align-items: center; padding: 12px 24px; border-radius: 10px; font-weight: 600; font-size: 0.95rem; }
.da-btn-primary { background: var(--accent-gradient); color: #0d0b14; }
.da-btn-primary:hover { color: #0d0b14; opacity: 0.9; }
.da-btn-outline { border: 1px solid var(--border-color); color: var(--text-primary); }
.da-btn-outline:hover { border-color: var(--accent-purple); color: var(--accent-purple); }

.da-hero-visual { position: relative; display: flex; justify-content: center; }
.da-phone-main { border-radius: 24px; box-shadow: var(--shadow); border: 2px solid var(--border-color); max-width: 260px; }
.da-phone-float {
  position: absolute; border-radius: 18px; box-shadow: var(--shadow);
  border: 2px solid var(--border-color); max-width: 140px;
}
.da-phone-float-left { left: 0; top: 20%; transform: rotate(-8deg); }
.da-phone-float-right { right: 0; bottom: 10%; transform: rotate(6deg); }

/* Features strip */
.da-strip { background: var(--bg-secondary); border-block: 1px solid var(--border-color); padding: 20px 0; overflow: hidden; }
.da-strip-track { display: flex; gap: 32px; animation: da-scroll 30s linear infinite; white-space: nowrap; }
.da-strip-track span { color: var(--text-secondary); font-size: 0.9rem; flex-shrink: 0; }
.da-strip-track span::before { content: "◆"; color: var(--accent-gold); margin-right: 10px; font-size: 0.6rem; }
@keyframes da-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Section common */
.da-section { padding: 64px 0; }
.da-section-head { margin-bottom: 40px; }
.da-section-head h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 10px; }
.da-section-head p { color: var(--text-secondary); max-width: 600px; }
.da-label { display: inline-block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent-purple); margin-bottom: 8px; }

/* Bento grid */
.da-bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: auto auto; gap: 16px; }
.da-bento-item {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--bg-card); border: 1px solid var(--border-color);
  transition: transform 0.25s, border-color 0.25s;
}
.da-bento-item:hover { transform: translateY(-4px); border-color: rgba(168, 85, 247, 0.4); }
.da-bento-item img { width: 100%; aspect-ratio: 9/16; object-fit: cover; object-position: top; }
.da-bento-cap {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 12px;
  background: linear-gradient(transparent, rgba(13, 11, 20, 0.95));
  font-size: 0.9rem; font-weight: 600;
}
.da-bento-wide { grid-column: span 2; }
.da-bento-wide img { aspect-ratio: 16/10; object-position: center top; }

/* Feature cards */
.da-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.da-feat-card {
  padding: 28px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--border-color);
}
.da-feat-num { font-size: 2rem; font-weight: 800; background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; opacity: 0.5; margin-bottom: 12px; }
.da-feat-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.da-feat-card p { color: var(--text-secondary); font-size: 0.92rem; }

/* Download timeline */
.da-download { background: var(--bg-secondary); }
.da-download-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.da-timeline { list-style: none; margin-top: 28px; }
.da-timeline li {
  display: flex; gap: 16px; padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
}
.da-timeline li:last-child { border-bottom: none; }
.da-step-num {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent-gradient); color: #0d0b14;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9rem;
}
.da-timeline strong { display: block; margin-bottom: 4px; }
.da-timeline p { color: var(--text-secondary); font-size: 0.9rem; }
.da-download-img { border-radius: var(--radius); border: 1px solid var(--border-color); max-width: 280px; margin: 0 auto; }

/* Article / guide */
.da-guide { background: var(--bg-primary); }
.da-guide-layout { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start; }
.da-toc {
  position: sticky; top: calc(var(--header-height) + 20px);
  padding: 24px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--border-color);
}
.da-toc-title { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-secondary); margin-bottom: 14px; }
.da-toc nav { display: flex; flex-direction: column; gap: 8px; }
.da-toc a { color: var(--text-secondary); font-size: 0.9rem; padding: 6px 0; border-bottom: 1px solid transparent; }
.da-toc a:hover { color: var(--accent-gold); }
.da-toc-links { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border-color); display: flex; flex-direction: column; gap: 8px; }

.da-article h2 { font-size: 1.4rem; margin: 36px 0 16px; padding-top: 8px; }
.da-article h2:first-of-type { margin-top: 0; }
.da-article h3 { font-size: 1.15rem; margin: 24px 0 12px; color: var(--accent-gold); }
.da-article p { color: var(--text-secondary); margin-bottom: 16px; }
.da-article ul { color: var(--text-secondary); margin: 12px 0 16px 24px; }
.da-article li { margin-bottom: 8px; }
.da-article blockquote {
  margin: 24px 0; padding: 20px 24px; border-left: 4px solid var(--accent-purple);
  background: var(--bg-card); border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-primary); font-style: italic;
}

.da-inline-fig { margin: 24px 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-color); max-width: 220px; }
.da-inline-fig figcaption { padding: 10px; font-size: 0.85rem; color: var(--text-secondary); text-align: center; background: var(--bg-card); }
.da-float-left { float: left; margin: 0 24px 16px 0; }
.da-float-right { float: right; margin: 0 0 16px 24px; }

.da-thumb-row { display: flex; gap: 16px; flex-wrap: wrap; margin: 24px 0; clear: both; }
.da-thumb-row figure { flex: 1; min-width: 100px; max-width: 140px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border-color); }
.da-thumb-row figcaption { padding: 8px; font-size: 0.8rem; text-align: center; color: var(--text-secondary); background: var(--bg-card); }

.da-related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; clear: both; }
.da-related a {
  display: block; padding: 20px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--border-color);
}
.da-related strong { display: block; margin-bottom: 6px; color: var(--text-primary); }
.da-related span { font-size: 0.85rem; color: var(--text-secondary); }

/* Category tabs */
.da-tabs-section { background: var(--bg-secondary); }
.da-tab-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.da-tab-btn {
  padding: 10px 18px; border-radius: 8px; border: 1px solid var(--border-color);
  background: var(--bg-card); color: var(--text-secondary); cursor: pointer; font-size: 0.9rem;
  transition: all 0.2s;
}
.da-tab-btn.active, .da-tab-btn:hover { background: rgba(168, 85, 247, 0.15); border-color: var(--accent-purple); color: var(--text-primary); }
.da-tab-panel { display: none; grid-template-columns: 1fr 280px; gap: 32px; align-items: start; }
.da-tab-panel.active { display: grid; }
.da-tab-desc h3 { font-size: 1.2rem; margin-bottom: 12px; }
.da-tab-desc p { color: var(--text-secondary); margin-bottom: 12px; }
.da-tab-preview img { border-radius: var(--radius); border: 1px solid var(--border-color); }

/* Mobile filmstrip */
.da-filmstrip { display: none; gap: 14px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.da-filmstrip figure { flex: 0 0 130px; scroll-snap-align: start; border-radius: 12px; overflow: hidden; border: 1px solid var(--border-color); }
.da-filmstrip figcaption { padding: 8px; font-size: 0.8rem; text-align: center; color: var(--text-secondary); background: var(--bg-card); }

/* FAQ */
.da-faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.da-faq-item {
  border-radius: var(--radius); background: var(--bg-card);
  border: 1px solid var(--border-color); overflow: hidden;
}
.da-faq-item summary {
  padding: 18px 20px; cursor: pointer; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.da-faq-item summary::after { content: "+"; color: var(--accent-gold); font-size: 1.2rem; }
.da-faq-item[open] summary::after { content: "−"; }
.da-faq-item p { padding: 0 20px 18px; color: var(--text-secondary); font-size: 0.92rem; }

/* Footer */
.site-footer { background: var(--bg-secondary); border-top: 1px solid var(--border-color); padding: 48px 0 24px; margin-top: 48px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-brand p { color: var(--text-secondary); font-size: 0.9rem; margin-top: 12px; }
.footer-title { font-size: 0.9rem; margin-bottom: 14px; color: var(--text-primary); }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: var(--text-secondary); font-size: 0.9rem; }
.footer-bottom { padding-top: 24px; border-top: 1px solid var(--border-color); text-align: center; }
.footer-bottom p { color: var(--text-secondary); font-size: 0.85rem; }

/* Sub pages */
.page-hero { padding: 48px 0 32px; background: var(--bg-secondary); border-bottom: 1px solid var(--border-color); }
.page-hero h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 8px; }
.page-hero p { color: var(--text-secondary); }
.breadcrumb { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 16px; }
.breadcrumb a { color: var(--accent-gold); }
.header-breadcrumb { display: none; }
.breadcrumb span { margin: 0 6px; }

.legal-content { padding: 48px 0 64px; }
.content-article { max-width: 800px; }
.content-article h2 { font-size: 1.25rem; margin: 32px 0 14px; }
.content-article h2:first-of-type { margin-top: 0; }
.content-article p, .content-article li { color: var(--text-secondary); margin-bottom: 14px; }
.content-article ul { margin: 12px 0 16px 24px; }

.screenshot-item { max-width: 320px; margin: 24px auto; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-color); }
.screenshot-caption { padding: 10px; text-align: center; font-size: 0.85rem; color: var(--text-secondary); background: var(--bg-card); }

/* Error pages */
.error-page { min-height: calc(100vh - var(--header-height) - 120px); display: flex; align-items: center; justify-content: center; text-align: center; padding: 48px 20px; }
.error-code { font-size: 6rem; font-weight: 800; background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1; }
.error-page h1 { margin: 16px 0; }
.error-page p { color: var(--text-secondary); max-width: 440px; margin: 0 auto 28px; }
.btn { display: inline-block; padding: 12px 28px; border-radius: 10px; font-weight: 600; }
.btn-primary { background: var(--accent-gradient); color: #0d0b14; }
.btn-primary:hover { color: #0d0b14; opacity: 0.9; }

/* Responsive */
@media (max-width: 960px) {
  .da-hero-grid, .da-download-wrap, .da-guide-layout { grid-template-columns: 1fr; }
  .da-hero-visual { order: -1; margin-bottom: 20px; }
  .da-phone-float { display: none; }
  .da-bento { grid-template-columns: repeat(2, 1fr); }
  .da-bento-wide { grid-column: span 2; }
  .da-features { grid-template-columns: 1fr; }
  .da-related, .da-faq-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .da-toc { position: static; }
  .da-tab-panel.active { grid-template-columns: 1fr; }
  .da-tab-preview { max-width: 240px; margin: 0 auto; }
  .da-filmstrip { display: flex; }
  .da-tab-nav { display: none; }
  .da-tab-panel { display: none !important; }
}

@media (max-width: 768px) {
  .site-header {
    height: auto;
    min-height: var(--header-height);
  }

  .header-inner {
    position: relative;
    flex-wrap: wrap;
  }

  .logo-link {
    flex-shrink: 0;
    order: 1;
  }

  .header-breadcrumb {
    display: block;
    flex: 1;
    order: 2;
    min-width: 0;
    margin: 0 8px 0 6px;
    padding: 0;
    text-align: right;
    font-size: 0.78rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-toggle {
    display: block;
    flex-shrink: 0;
    order: 3;
  }

  .header-inner > nav:not(.header-breadcrumb) {
    order: 4;
    width: 100%;
  }

  .page-breadcrumb {
    display: none;
  }

  .nav-menu {
    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-color);
  }
  .nav-menu.open { display: flex; }
  .da-float-left, .da-float-right { float: none; max-width: 200px; margin: 16px auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .da-bento { grid-template-columns: 1fr 1fr; }
  .da-bento-wide { grid-column: span 2; }
}
