/* 91PORNAPP 官方站 - 91-porny.quest */
:root {
  --primary: #ff6600;
  --primary-dark: #e55a00;
  --bg-dark: #0a0a0a;
  --bg-card: #141414;
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --text-muted: #707070;
  --border: #2a2a2a;
  --gradient: linear-gradient(135deg, #ff6600 0%, #ff9933 100%);
  --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: 12px 28px; 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; text-decoration: none !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; }
.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; }
.legal-content strong { color: var(--text-primary); }

.internal-links {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border);
}
.internal-link {
  padding: 8px 18px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 0.88rem; color: var(--text-secondary) !important; text-decoration: none !important;
}
.internal-link:hover { border-color: var(--primary); color: var(--primary) !important; }

.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; margin-left: auto; margin-right: auto; }

.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; }
.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; }
}

/* ===== 首页 ===== */
.page-home { background: #050505; }
.home-q { overflow-x: hidden; }

.hq-tag {
  display: inline-block; font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--primary); font-weight: 700; margin-bottom: 12px;
}
.hq-section-head { margin-bottom: 48px; max-width: 640px; }
.hq-section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800;
  line-height: 1.25; margin-bottom: 14px;
}
.hq-section-head p { color: var(--text-secondary); line-height: 1.75; }
.hq-section-head-center { margin-left: auto; margin-right: auto; text-align: center; }

.hq-hero { position: relative; padding: 56px 0 0; overflow: hidden; }
.hq-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hq-hero-mesh {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 40%, rgba(255,102,0,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 60%, rgba(255,102,0,0.06) 0%, transparent 50%);
}
.hq-hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.hq-hero-wrap {
  position: relative; display: grid; grid-template-columns: 1fr 1fr;
  gap: 40px; align-items: center; padding-bottom: 48px;
}
.hq-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.82rem; font-weight: 600; color: var(--text-secondary);
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  padding: 8px 16px; border-radius: 50px; margin-bottom: 24px;
}
.hq-dot {
  width: 8px; height: 8px; background: #22c55e; border-radius: 50%;
  box-shadow: 0 0 8px rgba(34,197,94,0.6);
  animation: hq-pulse 2s ease infinite;
}
@keyframes hq-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

.hq-hero-content h1 {
  font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 900;
  line-height: 1.15; margin-bottom: 20px; letter-spacing: -0.03em;
}
.hq-hero-content h1 em {
  font-style: normal; background: var(--gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hq-hero-desc {
  color: var(--text-secondary); font-size: 1.05rem;
  line-height: 1.8; margin-bottom: 28px; max-width: 540px;
}
.hq-hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.hq-btn-ghost {
  color: var(--text-secondary) !important; font-size: 0.95rem; font-weight: 600;
  text-decoration: none !important; padding: 14px 0;
}
.hq-btn-ghost:hover { color: var(--primary) !important; }
.hq-hero-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hq-hero-chips span {
  font-size: 0.75rem; color: var(--text-muted);
  background: #111; border: 1px solid #222; padding: 5px 12px; border-radius: 6px;
}

.hq-hero-visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 420px; }
.hq-device-ring {
  position: absolute; width: 320px; height: 320px;
  border: 1px solid rgba(255,102,0,0.15); border-radius: 50%;
  animation: hq-spin 20s linear infinite;
}
.hq-device-ring::before {
  content: ""; position: absolute; top: -2px; left: 50%;
  width: 8px; height: 8px; background: var(--primary); border-radius: 50%;
  box-shadow: 0 0 12px var(--primary);
}
@keyframes hq-spin { to { transform: rotate(360deg); } }
.hq-device {
  position: relative; z-index: 2; width: 240px; margin: 0;
  border-radius: 28px; overflow: hidden; border: 3px solid #333;
  box-shadow: 0 0 0 1px rgba(255,102,0,0.2), 0 32px 64px rgba(0,0,0,0.6);
}
.hq-device img { width: 100%; aspect-ratio: 9/16; object-fit: cover; }
.hq-float-card {
  position: absolute; display: flex; align-items: center; gap: 10px;
  background: rgba(20,20,20,0.95); border: 1px solid var(--border);
  border-radius: 12px; padding: 8px 14px 8px 8px;
  backdrop-filter: blur(8px); box-shadow: 0 8px 24px rgba(0,0,0,0.4); z-index: 3;
}
.hq-float-card img { width: 36px; height: 64px; object-fit: cover; border-radius: 6px; }
.hq-float-card span { font-size: 0.78rem; font-weight: 600; white-space: nowrap; }
.hq-float-1 { top: 15%; right: 0; animation: hq-float 4s ease-in-out infinite; }
.hq-float-2 { bottom: 18%; left: 0; animation: hq-float 4s ease-in-out infinite 1s; }
@keyframes hq-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.hq-stats-bar { position: relative; border-top: 1px solid var(--border); background: rgba(10,10,10,0.8); }
.hq-stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.hq-stat { padding: 24px 20px; text-align: center; border-right: 1px solid var(--border); }
.hq-stat:last-child { border-right: none; }
.hq-stat strong { display: block; font-size: 1.4rem; font-weight: 800; color: var(--primary); margin-bottom: 4px; }
.hq-stat span { font-size: 0.82rem; color: var(--text-muted); }

.hq-features { padding: 64px 0; background: #080808; }
.hq-features-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 14px; }
.hq-feat-card {
  background: #111; border: 1px solid var(--border); border-radius: 16px;
  padding: 28px 24px; transition: border-color 0.25s, transform 0.25s;
}
.hq-feat-card:hover { border-color: rgba(255,102,0,0.35); transform: translateY(-2px); }
.hq-feat-main { background: linear-gradient(135deg, rgba(255,102,0,0.08) 0%, #111 60%); border-color: rgba(255,102,0,0.2); }
.hq-feat-icon {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  background: rgba(255,102,0,0.12); color: var(--primary); border-radius: 10px;
  font-size: 0.85rem; font-weight: 800; margin-bottom: 16px;
}
.hq-feat-card h2 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.hq-feat-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.65; margin: 0; }

.hq-modules { padding: 80px 0; background: #050505; }
.hq-bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 14px; }
.hq-bento-item { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--border); }
.hq-bento-lg { grid-column: span 2; }
.hq-bento-item img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 0.4s; }
.hq-bento-item:hover img { transform: scale(1.05); }
.hq-bento-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 22px;
}
.hq-bento-overlay h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 6px; }
.hq-bento-lg .hq-bento-overlay h3 { font-size: 1.2rem; }
.hq-bento-overlay p {
  font-size: 0.82rem; color: var(--text-secondary); line-height: 1.55; margin: 0;
  opacity: 0; max-height: 0; overflow: hidden; transition: opacity 0.3s, max-height 0.3s;
}
.hq-bento-item:hover .hq-bento-overlay p { opacity: 1; max-height: 80px; margin-top: 6px; }
.hq-bento-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; opacity: 0; transition: opacity 0.3s; }
.hq-bento-item:hover .hq-bento-tags { opacity: 1; }
.hq-bento-tags li { font-size: 0.72rem; color: var(--text-muted); background: rgba(255,255,255,0.08); padding: 3px 10px; border-radius: 4px; }

.hq-showcase { padding: 80px 0; background: linear-gradient(180deg, #080808 0%, #050505 100%); border-top: 1px solid var(--border); }
.hq-showcase-tabs { margin-top: 8px; }
.hq-show-nav { display: flex; gap: 10px; justify-content: center; margin-bottom: 28px; flex-wrap: wrap; }
.hq-show-nav label {
  padding: 10px 24px; border-radius: 50px; font-size: 0.88rem; font-weight: 600;
  color: var(--text-muted); background: #111; border: 1px solid var(--border);
  cursor: pointer; transition: all 0.2s; user-select: none;
}
.hq-show-nav label:hover { color: var(--text-primary); border-color: #444; }
#show-home:checked ~ .hq-show-nav label[for="show-home"],
#show-porn:checked ~ .hq-show-nav label[for="show-porn"],
#show-other:checked ~ .hq-show-nav label[for="show-other"] {
  color: #fff; background: var(--gradient); border-color: transparent;
  box-shadow: 0 4px 16px rgba(255,102,0,0.3);
}
.hq-show-panel { display: none; }
#show-home:checked ~ .hq-show-panels [data-show="show-home"],
#show-porn:checked ~ .hq-show-panels [data-show="show-porn"],
#show-other:checked ~ .hq-show-panels [data-show="show-other"] { display: block; animation: hq-fade 0.35s ease; }
@keyframes hq-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.hq-scroll-track {
  display: flex; gap: 16px; overflow-x: auto; padding: 8px 4px 20px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; scrollbar-color: var(--primary) #1a1a1a;
}
.hq-scroll-track figure {
  flex: 0 0 140px; margin: 0; scroll-snap-align: start;
  border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: #111;
}
.hq-scroll-track img { width: 140px; aspect-ratio: 9/16; object-fit: cover; }
.hq-scroll-track figcaption { padding: 8px; text-align: center; font-size: 0.76rem; color: var(--text-muted); border-top: 1px solid var(--border); }

.hq-install { padding: 80px 0; background: #0a0a0a; border-top: 1px solid var(--border); }
.hq-install-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: center; }
.hq-install-visual { position: relative; display: flex; justify-content: center; }
.hq-install-phone { width: 220px; margin: 0; border-radius: 24px; overflow: hidden; border: 2px solid #333; box-shadow: 0 24px 48px rgba(0,0,0,0.5); }
.hq-install-phone img { width: 100%; aspect-ratio: 9/16; object-fit: cover; }
.hq-install-badge {
  position: absolute; top: 20px; right: calc(50% - 140px);
  background: var(--gradient); color: #fff; font-size: 0.75rem; font-weight: 700;
  padding: 6px 14px; border-radius: 50px;
}
.hq-timeline { list-style: none; margin-top: 32px; position: relative; }
.hq-timeline::before {
  content: ""; position: absolute; left: 19px; top: 24px; bottom: 24px; width: 2px;
  background: linear-gradient(180deg, var(--primary), rgba(255,102,0,0.1));
}
.hq-timeline li { display: flex; gap: 20px; padding-bottom: 32px; position: relative; }
.hq-timeline li:last-child { padding-bottom: 0; }
.hq-timeline-num {
  flex-shrink: 0; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  background: #111; border: 2px solid var(--primary); border-radius: 50%;
  font-size: 0.82rem; font-weight: 800; color: var(--primary); z-index: 1;
}
.hq-timeline h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.hq-timeline p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.65; margin: 0; }

.hq-guide { padding: 80px 0; background: #080808; border-top: 1px solid var(--border); }
.hq-articles { display: grid; grid-template-columns: 1fr; gap: 20px; max-width: 900px; margin: 0 auto; }
.hq-article {
  background: #111; border: 1px solid var(--border); border-radius: 16px; padding: 28px 26px;
}
.hq-article h3 {
  font-size: 1.1rem; font-weight: 800; margin-bottom: 14px;
  padding-bottom: 12px; border-bottom: 1px solid #1a1a1a;
}
.hq-article p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.85; margin-bottom: 12px; text-align: justify; }
.hq-article p:last-child { margin-bottom: 0; }
.hq-callout {
  margin-top: 14px; padding: 14px 16px;
  background: rgba(255,102,0,0.06); border: 1px solid rgba(255,102,0,0.2); border-radius: 10px;
}
.hq-callout p { margin: 0; font-size: 0.85rem; }

.hq-faq { padding: 80px 0; background: #050505; border-top: 1px solid var(--border); }
.hq-faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; max-width: 960px; margin: 0 auto; }
.hq-faq-item { background: #111; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.hq-faq-item[open] { border-color: rgba(255,102,0,0.3); }
.hq-faq-item summary {
  padding: 18px 22px; font-size: 0.92rem; font-weight: 700; cursor: pointer; list-style: none;
}
.hq-faq-item summary::-webkit-details-marker { display: none; }
.hq-faq-item p { padding: 0 22px 20px; font-size: 0.86rem; color: var(--text-secondary); line-height: 1.65; margin: 0; }

.hq-cta { padding: 48px 0 64px; background: #0a0a0a; }
.hq-cta-box {
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(255,102,0,0.12) 0%, rgba(255,102,0,0.02) 100%);
  border: 1px solid rgba(255,102,0,0.25); border-radius: 20px; padding: 40px 48px;
}
.hq-cta-title { font-size: 1.3rem; font-weight: 800; margin: 4px 0; }
.hq-cta-sub { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

@media (max-width: 1024px) {
  .hq-hero-wrap { grid-template-columns: 1fr; text-align: center; }
  .hq-hero-desc { margin-left: auto; margin-right: auto; }
  .hq-hero-actions { justify-content: center; }
  .hq-hero-chips { justify-content: center; }
  .hq-hero-visual { order: -1; min-height: 360px; }
  .hq-device { width: 200px; }
  .hq-features-grid { grid-template-columns: 1fr 1fr; }
  .hq-feat-main { grid-column: span 2; }
  .hq-bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .hq-bento-lg { grid-column: span 2; }
  .hq-install-grid { grid-template-columns: 1fr; gap: 40px; }
  .hq-install-visual { order: -1; }
  .hq-faq-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .hq-hero { padding-top: 36px; }
  .hq-stats-inner { grid-template-columns: repeat(2, 1fr); }
  .hq-stat:nth-child(2) { border-right: none; }
  .hq-stat:nth-child(1), .hq-stat:nth-child(2) { border-bottom: 1px solid var(--border); }
  .hq-features-grid { grid-template-columns: 1fr; }
  .hq-feat-main { grid-column: span 1; }
  .hq-bento { grid-template-columns: 1fr; grid-auto-rows: 180px; }
  .hq-bento-lg { grid-column: span 1; }
  .hq-bento-overlay p { opacity: 1; max-height: 80px; margin-top: 6px; }
  .hq-bento-tags { opacity: 1; }
  .hq-scroll-track figure { flex: 0 0 120px; }
  .hq-scroll-track img { width: 120px; }
  .hq-cta-box { flex-direction: column; text-align: center; padding: 32px 24px; }
  .hq-cta-box .btn-download { width: 100%; justify-content: center; }
  .hq-float-card { display: none; }
}
