/* 91PORN 官方网站样式 - 91-po.quest */
:root {
  --primary: #ff6600;
  --primary-dark: #e55a00;
  --bg-dark: #0a0a0a;
  --bg-card: #141414;
  --bg-card-hover: #1e1e1e;
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --text-muted: #707070;
  --border: #2a2a2a;
  --gradient: linear-gradient(135deg, #ff6600 0%, #ff9933 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(--primary-dark); text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

.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);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo-link { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-link:hover { text-decoration: none; }
.logo-img { width: 48px; height: 48px; border-radius: 10px; }
.logo-text { font-size: 1.4rem; font-weight: 700; color: var(--text-primary); }
.logo-text span { color: var(--primary); }

.nav-main { display: flex; gap: 8px; align-items: center; }
.nav-main a {
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s;
}
.nav-main a:hover, .nav-main a.active {
  color: var(--text-primary);
  background: var(--bg-card);
  text-decoration: none;
}

.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;
  text-decoration: none !important;
  box-shadow: 0 4px 16px rgba(255,102,0,0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255,102,0,0.4);
  color: #fff !important;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

.page-header {
  padding: 48px 0 32px;
  background: linear-gradient(180deg, #111 0%, var(--bg-dark) 100%);
  border-bottom: 1px solid var(--border);
}

.page-header h1 { font-size: 2rem; margin-bottom: 8px; }
.page-header .breadcrumb { color: var(--text-muted); font-size: 0.9rem; }
.page-header .breadcrumb a { color: var(--text-secondary); }

.page-body { padding: 48px 0 80px; }

.legal-content h2 { font-size: 1.3rem; margin: 32px 0 12px; color: var(--text-primary); }
.legal-content h3 { font-size: 1.1rem; margin: 24px 0 10px; color: var(--primary); }
.legal-content p, .legal-content li { color: var(--text-secondary); margin-bottom: 12px; }
.legal-content ul, .legal-content ol { margin-left: 24px; margin-bottom: 16px; }

.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}

.error-code {
  font-size: 8rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  opacity: 0.8;
}

.error-page h1 { font-size: 1.8rem; margin: 16px 0; }
.error-page p { color: var(--text-secondary); margin-bottom: 32px; max-width: 480px; }

.site-footer {
  background: #080808;
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p { color: var(--text-muted); 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-muted); font-size: 0.9rem; text-decoration: none; }
.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-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); font-size: 0.85rem; text-decoration: none; }
.footer-links a:hover { color: var(--primary); }

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .nav-main {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10,10,10,0.98);
    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; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .error-code { font-size: 5rem; }
}

/* ===== 首页专属排版 (qst) ===== */
.page-home { background: #050505; }
.qst { overflow-x: hidden; }

/* 首屏 */
.qst-splash {
  position: relative;
  padding: 56px 0 72px;
  overflow: hidden;
}

.qst-splash-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255,102,0,0.08) 0%, transparent 45%),
    linear-gradient(225deg, #0d0d0d 0%, #050505 60%);
  clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
}

.qst-splash-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.qst-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 20px;
}

.qst-splash-copy h1 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}

.qst-splash-copy h1 span {
  display: block;
  font-size: 0.55em;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 10px;
}

.qst-lead {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.85;
  max-width: 520px;
  margin-bottom: 28px;
}

.qst-splash-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 28px;
}

.qst-ghost-btn {
  color: var(--text-muted) !important;
  font-size: 0.9rem;
  padding: 10px 18px;
  border: 1px solid #333;
  border-radius: 50px;
  text-decoration: none !important;
  transition: border-color 0.2s, color 0.2s;
}
.qst-ghost-btn:hover {
  border-color: var(--primary);
  color: var(--primary) !important;
}

.qst-kw-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.qst-kw-row li {
  font-size: 0.72rem;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid #222;
  padding: 5px 12px;
  border-radius: 4px;
}

/* 叠放预览 */
.qst-preview-stack {
  position: relative;
  height: 420px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.qst-preview {
  position: absolute;
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  border: 2px solid #2a2a2a;
  box-shadow: 0 24px 48px rgba(0,0,0,0.5);
  transition: transform 0.3s ease;
}
.qst-preview img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
}
.qst-preview--back {
  width: 160px;
  transform: rotate(-8deg) translateX(-80px);
  opacity: 0.55;
  z-index: 1;
}
.qst-preview--mid {
  width: 180px;
  transform: rotate(5deg) translateX(60px);
  opacity: 0.75;
  z-index: 2;
}
.qst-preview--front {
  width: 200px;
  z-index: 3;
  border-color: rgba(255,102,0,0.4);
}

/* 数据条 */
.qst-metrics {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #0a0a0a;
}

.qst-metrics-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
}

.qst-metric {
  background: #0a0a0a;
  padding: 28px 20px;
  text-align: center;
}
.qst-metric strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}
.qst-metric span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* 区块标题 */
.qst-section-head {
  margin-bottom: 36px;
}
.qst-section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 8px;
}
.qst-section-head p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  max-width: 540px;
  line-height: 1.7;
}
.qst-section-head--row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
}

/* Bento 网格 */
.qst-bento {
  padding: 72px 0;
  background: #070707;
}

.qst-bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 14px;
}

.qst-bento-cell {
  background: #111;
  border: 1px solid #222;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s, transform 0.2s;
}
.qst-bento-cell:hover {
  border-color: rgba(255,102,0,0.35);
  transform: translateY(-2px);
}
.qst-bento-cell figure {
  border-radius: 10px;
  overflow: hidden;
  margin: 0;
}
.qst-bento-cell figure img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
}
.qst-bento-cell h3 {
  font-size: 0.95rem;
  font-weight: 700;
}
.qst-bento-cell p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
}

.qst-bento-cell--hero {
  grid-column: span 2;
  grid-row: span 2;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  background: linear-gradient(145deg, #151515 0%, #0c0c0c 100%);
}
.qst-bento-cell--hero .qst-bento-text { flex: 1; }
.qst-bento-cell--hero figure { width: 140px; flex-shrink: 0; }
.qst-bento-cell--hero h3 { font-size: 1.15rem; margin-bottom: 8px; }
.qst-bento-cell--hero p { font-size: 0.88rem; }

.qst-bento-cell--accent {
  border-color: rgba(255,102,0,0.25);
  background: linear-gradient(160deg, rgba(255,102,0,0.06) 0%, #111 100%);
}

/* 横向滚动图廊 */
.qst-strip {
  padding: 72px 0;
  background: #050505;
}

.qst-strip-nav {
  display: flex;
  gap: 8px;
}

.qst-strip-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #333;
  background: #111;
  color: var(--text-primary);
  font-size: 1rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.qst-strip-btn:hover {
  border-color: var(--primary);
  background: rgba(255,102,0,0.1);
}

.qst-strip-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 8px 20px 24px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #333 transparent;
}
.qst-strip-scroll::-webkit-scrollbar { height: 6px; }
.qst-strip-scroll::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }

.qst-strip-item {
  flex: 0 0 160px;
  scroll-snap-align: start;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #252525;
  background: #111;
  transition: border-color 0.2s;
}
.qst-strip-item:hover { border-color: rgba(255,102,0,0.4); }
.qst-strip-item img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
}
.qst-strip-item figcaption {
  padding: 10px 12px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  text-align: center;
}

/* 下载时间轴 */
.qst-download {
  padding: 72px 0;
  background: #0a0a0a;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.qst-download-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.qst-download-intro h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 16px;
}
.qst-download-intro p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 28px;
}
.qst-download-cta { margin-top: 8px; }

.qst-timeline {
  list-style: none;
  position: relative;
  padding-left: 28px;
}
.qst-timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--primary), #333);
}

.qst-timeline li {
  position: relative;
  padding: 0 0 32px 20px;
}
.qst-timeline li:last-child { padding-bottom: 0; }

.qst-timeline-dot {
  position: absolute;
  left: -21px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(255,102,0,0.2);
}

.qst-timeline h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.qst-timeline p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* 侧边目录 + 长文 */
.qst-read {
  padding: 72px 0;
  background: #060606;
}

.qst-read-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  align-items: start;
}

.qst-toc {
  position: sticky;
  top: 100px;
  background: #0c0c0c;
  border: 1px solid #222;
  border-radius: 12px;
  padding: 20px 16px;
}
.qst-toc-label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.qst-toc nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.qst-toc nav a {
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding: 8px 10px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  border-left: 2px solid transparent;
}
.qst-toc nav a:hover {
  color: var(--primary);
  background: rgba(255,102,0,0.06);
  border-left-color: var(--primary);
  text-decoration: none;
}

.qst-articles { min-width: 0; }

.qst-article {
  padding: 36px 0;
  border-bottom: 1px solid #161616;
}
.qst-article:last-child { border-bottom: none; }

.qst-article h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 18px;
  color: var(--text-primary);
}

.qst-article p {
  color: var(--text-secondary);
  line-height: 1.88;
  margin-bottom: 14px;
  text-align: justify;
}

.qst-article-fig {
  float: left;
  margin: 0 24px 16px 0;
  max-width: 200px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #252525;
}
.qst-article-fig--right {
  float: right;
  margin: 0 0 16px 24px;
}
.qst-article-fig img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
}

.qst-callout {
  clear: both;
  margin: 20px 0;
  padding: 16px 20px;
  border-left: 3px solid var(--primary);
  background: rgba(255,102,0,0.05);
  border-radius: 0 8px 8px 0;
}
.qst-callout p {
  margin: 0;
  font-size: 0.9rem;
}

/* FAQ 双列 */
.qst-faq {
  padding: 72px 0;
  background: #080808;
}

.qst-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.qst-faq-card {
  background: #111;
  border: 1px solid #222;
  border-radius: 12px;
  padding: 0 20px;
  transition: border-color 0.2s;
}
.qst-faq-card[open] { border-color: rgba(255,102,0,0.3); }

.qst-faq-card summary {
  padding: 18px 0;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  color: var(--text-primary);
}
.qst-faq-card summary::-webkit-details-marker { display: none; }

.qst-faq-card p {
  padding: 0 0 18px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* 底部横幅 */
.qst-final {
  padding: 48px 0 64px;
  background: #050505;
}

.qst-final-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding: 32px 36px;
  border-radius: 16px;
  border: 1px solid rgba(255,102,0,0.2);
  background: radial-gradient(ellipse at top left, rgba(255,102,0,0.1), transparent 60%), #0c0c0c;
}
.qst-final-inner h2 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 6px;
}
.qst-final-inner p {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

/* 响应式 */
@media (max-width: 1024px) {
  .qst-splash-grid { grid-template-columns: 1fr; }
  .qst-preview-stack { height: 340px; order: -1; }
  .qst-bento-grid { grid-template-columns: repeat(2, 1fr); }
  .qst-bento-cell--hero { grid-column: span 2; }
  .qst-download-layout { grid-template-columns: 1fr; gap: 40px; }
  .qst-read-layout { grid-template-columns: 1fr; }
  .qst-toc {
    position: static;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 16px;
  }
  .qst-toc-label { margin: 0 8px 0 0; }
  .qst-toc nav { flex-direction: row; flex-wrap: wrap; }
  .qst-metrics-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .qst-splash { padding: 40px 0 56px; }
  .qst-preview--back { width: 130px; transform: rotate(-6deg) translateX(-50px); }
  .qst-preview--mid { width: 150px; transform: rotate(4deg) translateX(40px); }
  .qst-preview--front { width: 170px; }
  .qst-preview-stack { height: 300px; }
  .qst-bento-grid { grid-template-columns: 1fr; }
  .qst-bento-cell--hero {
    grid-column: span 1;
    grid-row: span 1;
    flex-direction: column;
  }
  .qst-bento-cell--hero figure { width: 120px; }
  .qst-faq-grid { grid-template-columns: 1fr; }
  .qst-final-inner { flex-direction: column; text-align: center; }
  .qst-final-inner .btn-download { width: 100%; justify-content: center; }
  .qst-article-fig,
  .qst-article-fig--right {
    float: none;
    margin: 0 auto 16px;
    max-width: 180px;
  }
  .qst-strip-nav { display: none; }
  .qst-metrics-inner { grid-template-columns: 1fr 1fr; }
}

