/* 抖阴APP高清视频平台 dyvip.quest */
:root {
  --bg-primary: #000000;
  --bg-secondary: #0a0a0a;
  --bg-card: #141414;
  --bg-elevated: #1c1c1c;
  --text-primary: #f5f5f5;
  --text-secondary: #a0a0a0;
  --accent-cyan: #00f2ea;
  --accent-magenta: #ff0050;
  --accent-gradient: linear-gradient(135deg, var(--accent-cyan), var(--accent-magenta));
  --border-color: #2a2a2a;
  --header-height: 64px;
  --max-width: 1180px;
  --radius: 14px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.55);
}

*, *::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-cyan); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-magenta); }

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(0, 0, 0, 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); }

/* ========== 首页专属排版 hq-* ========== */
.hq-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* 开场区 */
.hq-splash {
  position: relative; min-height: 88vh;
  display: flex; align-items: center; padding: 48px 0 64px; overflow: hidden;
}
.hq-splash-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(160deg, rgba(0, 242, 234, 0.07) 0%, transparent 40%),
    linear-gradient(340deg, rgba(255, 0, 80, 0.05) 0%, transparent 45%),
    repeating-linear-gradient(90deg, transparent, transparent 80px, rgba(255,255,255,0.015) 80px, rgba(255,255,255,0.015) 81px);
  pointer-events: none;
}
.hq-splash-inner {
  position: relative; display: grid;
  grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center;
}
.hq-domain {
  font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent-cyan); margin-bottom: 20px;
}
.hq-splash h1 { margin-bottom: 24px; }
.hq-line { display: block; line-height: 1.15; font-size: clamp(2rem, 5.5vw, 3.4rem); font-weight: 800; }
.hq-accent {
  background: var(--accent-gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hq-dim { color: var(--text-secondary); font-size: clamp(1.2rem, 3vw, 1.8rem); font-weight: 500; margin-top: 8px; }
.hq-lead { color: var(--text-secondary); font-size: 1.05rem; max-width: 480px; margin-bottom: 32px; }
.hq-cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.hq-btn {
  display: inline-flex; align-items: center; padding: 14px 28px;
  border-radius: 999px; font-weight: 600; font-size: 0.95rem; transition: transform 0.2s, opacity 0.2s;
}
.hq-btn:hover { transform: translateY(-2px); }
.hq-btn-fill { background: var(--accent-gradient); color: #000; }
.hq-btn-fill:hover { color: #000; opacity: 0.92; }
.hq-btn-ghost { border: 1px solid var(--border-color); color: var(--text-primary); }
.hq-btn-ghost:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); }

.hq-device { text-align: center; }
.hq-device-frame {
  display: inline-block; padding: 3px; border-radius: 28px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-magenta));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}
.hq-device-frame img { border-radius: 25px; max-width: 280px; margin: 0 auto; }
.hq-device figcaption { margin-top: 14px; font-size: 0.85rem; color: var(--text-secondary); }

/* 数据条 */
.hq-metrics { border-block: 1px solid var(--border-color); background: var(--bg-secondary); }
.hq-metrics-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.hq-metric {
  padding: 28px 24px; text-align: center;
  border-right: 1px solid var(--border-color);
}
.hq-metric:last-child { border-right: none; }
.hq-metric strong { display: block; font-size: 1.1rem; margin-bottom: 6px; color: var(--text-primary); }
.hq-metric span { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.5; }

/* 交错分区 */
.hq-zones { padding: 80px 0; }
.hq-block-head { margin-bottom: 56px; }
.hq-block-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 10px; }
.hq-block-head p { color: var(--text-secondary); max-width: 560px; }
.hq-block-head--center { text-align: center; }
.hq-block-head--center p { margin: 0 auto; }

.hq-zone {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  padding: 48px 0; border-bottom: 1px solid var(--border-color);
}
.hq-zone:last-child { border-bottom: none; }
.hq-zone--reverse .hq-zone-copy { order: 2; }
.hq-zone--reverse .hq-zone-shot,
.hq-zone--reverse .hq-zone-duo,
.hq-zone--reverse .hq-zone-trio { order: 1; }

.hq-zone-tag {
  display: inline-block; font-size: 0.75rem; letter-spacing: 0.1em;
  color: var(--accent-magenta); margin-bottom: 12px;
}
.hq-zone-copy h3 { font-size: 1.35rem; margin-bottom: 14px; }
.hq-zone-copy p { color: var(--text-secondary); margin-bottom: 12px; font-size: 0.95rem; }

.hq-zone-shot img {
  border-radius: var(--radius); border: 1px solid var(--border-color);
  max-width: 280px; margin: 0 auto; box-shadow: var(--shadow);
}
.hq-zone-duo, .hq-zone-trio { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hq-zone-duo figure, .hq-zone-trio figure {
  border-radius: 12px; overflow: hidden; border: 1px solid var(--border-color);
}
.hq-zone-duo figcaption, .hq-zone-trio figcaption {
  padding: 8px; text-align: center; font-size: 0.8rem;
  color: var(--text-secondary); background: var(--bg-card);
}

/* 能力矩阵 */
.hq-matrix { padding: 64px 0; background: var(--bg-secondary); }
.hq-matrix-list {
  list-style: none; display: grid;
  grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--border-color); border: 1px solid var(--border-color);
  border-radius: var(--radius); overflow: hidden;
}
.hq-matrix-list li {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 28px; background: var(--bg-card);
}
.hq-dot { flex-shrink: 0; width: 10px; height: 10px; border-radius: 50%; margin-top: 8px; }
.hq-dot--cyan { background: var(--accent-cyan); box-shadow: 0 0 12px var(--accent-cyan); }
.hq-dot--magenta { background: var(--accent-magenta); box-shadow: 0 0 12px var(--accent-magenta); }
.hq-matrix-list strong { display: block; margin-bottom: 6px; }
.hq-matrix-list p { color: var(--text-secondary); font-size: 0.9rem; }

/* 安装步骤 */
.hq-install { padding: 80px 0; }
.hq-steps {
  list-style: none; display: grid;
  grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px;
}
.hq-steps li {
  padding: 28px 24px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--border-color);
  position: relative;
}
.hq-step-idx {
  display: inline-flex; width: 32px; height: 32px; border-radius: 8px;
  background: var(--accent-gradient); color: #000;
  align-items: center; justify-content: center; font-weight: 800;
  font-size: 0.9rem; margin-bottom: 16px;
}
.hq-steps h3 { font-size: 1rem; margin-bottom: 8px; }
.hq-steps p { color: var(--text-secondary); font-size: 0.88rem; }

/* 长文指南 */
.hq-story { padding: 80px 0; border-top: 1px solid var(--border-color); }
.hq-story-wrap { max-width: 760px; }
.hq-story-head {
  margin-bottom: 48px; padding-bottom: 24px;
  border-bottom: 2px solid var(--border-color);
}
.hq-story-head h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 20px; }
.hq-story-nav { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.hq-story-nav a {
  font-size: 0.9rem; color: var(--text-secondary);
  padding-bottom: 2px; border-bottom: 1px solid transparent;
}
.hq-story-nav a:hover { color: var(--accent-cyan); border-bottom-color: var(--accent-cyan); }

.hq-story-body section { margin-bottom: 48px; }
.hq-story-body h3 {
  font-size: 1.2rem; margin-bottom: 16px; color: var(--accent-cyan);
  padding-top: 8px;
}
.hq-story-body p { color: var(--text-secondary); margin-bottom: 14px; }
.hq-pull {
  margin: 28px 0; padding: 24px 28px; text-align: center;
  font-size: 1.05rem; font-style: italic; color: var(--text-primary);
  border: 1px solid var(--border-color); border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(0,242,234,0.06), rgba(255,0,80,0.06));
}
.hq-story-fig {
  float: left; max-width: 200px; margin: 0 24px 16px 0;
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-color);
}
.hq-story-fig--right { float: right; margin: 0 0 16px 24px; }
.hq-story-fig figcaption {
  padding: 8px; font-size: 0.8rem; text-align: center;
  color: var(--text-secondary); background: var(--bg-card);
}
.hq-mini-gallery {
  display: flex; gap: 12px; flex-wrap: wrap; margin: 20px 0; clear: both;
}
.hq-mini-gallery figure {
  flex: 1; min-width: 90px; max-width: 120px;
  border-radius: 10px; overflow: hidden; border: 1px solid var(--border-color);
}
.hq-mini-gallery figcaption {
  padding: 6px; font-size: 0.75rem; text-align: center;
  color: var(--text-secondary); background: var(--bg-card);
}
.hq-link-cards {
  list-style: none; display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 12px; margin-top: 24px; clear: both;
}
.hq-link-cards a {
  display: block; padding: 18px; border-radius: 10px;
  background: var(--bg-card); border: 1px solid var(--border-color);
}
.hq-link-cards strong { display: block; margin-bottom: 4px; color: var(--text-primary); }
.hq-link-cards span { font-size: 0.82rem; color: var(--text-secondary); }

/* 问答 */
.hq-ask { padding: 64px 0 80px; background: var(--bg-secondary); }
.hq-ask-inner { max-width: 680px; }
.hq-ask h2 { font-size: 1.5rem; margin-bottom: 32px; }
.hq-ask-list { display: flex; flex-direction: column; gap: 0; }
.hq-ask-list > div {
  padding: 22px 0; border-bottom: 1px solid var(--border-color);
}
.hq-ask-list > div:last-child { border-bottom: none; }
.hq-ask-list dt { font-weight: 600; margin-bottom: 8px; font-size: 1rem; }
.hq-ask-list dd { color: var(--text-secondary); font-size: 0.92rem; margin: 0; }

/* 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-cyan); }
.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: #000; }
.btn-primary:hover { color: #000; opacity: 0.9; }

/* Responsive */
@media (max-width: 960px) {
  .hq-splash-inner { grid-template-columns: 1fr; }
  .hq-device { order: -1; margin-bottom: 24px; }
  .hq-metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .hq-metric:nth-child(2) { border-right: none; }
  .hq-metric { border-bottom: 1px solid var(--border-color); }
  .hq-metric:nth-child(3), .hq-metric:nth-child(4) { border-bottom: none; }
  .hq-zone, .hq-zone--reverse { grid-template-columns: 1fr; gap: 28px; }
  .hq-zone--reverse .hq-zone-copy { order: 0; }
  .hq-zone--reverse .hq-zone-shot,
  .hq-zone--reverse .hq-zone-duo,
  .hq-zone--reverse .hq-zone-trio { order: 0; }
  .hq-matrix-list { grid-template-columns: 1fr; }
  .hq-steps { grid-template-columns: repeat(2, 1fr); }
  .hq-link-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hq-story-fig, .hq-story-fig--right { float: none; max-width: 220px; margin: 16px auto; }
}

@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; }
  .footer-grid { grid-template-columns: 1fr; }
  .hq-splash { min-height: auto; padding: 32px 0 48px; }
  .hq-line { font-size: clamp(1.6rem, 7vw, 2.2rem); }
  .hq-metrics-grid { grid-template-columns: 1fr; }
  .hq-metric { border-right: none; border-bottom: 1px solid var(--border-color); }
  .hq-metric:last-child { border-bottom: none; }
  .hq-steps { grid-template-columns: 1fr; }
}
