/* 91PORNAPP Official Site - 91po.click */
:root {
  --primary: #ff8800;
  --primary-dark: #e67700;
  --secondary: #1d3557;
  --accent: #ffaa33;
  --bg: #0f0f12;
  --bg-card: #1a1a22;
  --bg-section: #14141a;
  --text: #f0f0f5;
  --text-muted: #a0a0b0;
  --border: #2a2a35;
  --radius: 12px;
  --shadow: 0 8px 32px rgba(0,0,0,.4);
  --max-width: 1200px;
  --font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary); }

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: 100;
  background: rgba(15,15,18,.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 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
}
.logo:hover { color: var(--text); }
.logo-img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.hero-logo {
  width: 120px;
  height: 120px;
  margin: 0 auto 24px;
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(255,136,0,.35);
}

/* Screenshot gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: transform .2s, border-color .2s;
}
.gallery-item:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
}
.gallery-item figcaption {
  padding: 10px 12px;
  font-size: .85rem;
  color: var(--text-muted);
  text-align: center;
}

.nav-main { display: flex; gap: 6px; flex-wrap: wrap; }
.nav-main a {
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: .9rem;
}
.nav-main a:hover, .nav-main a.active {
  color: var(--text);
  background: var(--bg-card);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 8px;
}

/* Hero */
.hero {
  padding: 80px 20px 60px;
  text-align: center;
  background: linear-gradient(180deg, #1a1020 0%, var(--bg) 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(230,57,70,.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero h1 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.3;
  position: relative;
}
.hero .subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 32px;
  position: relative;
}
.btn-group { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 4px 20px rgba(230,57,70,.4);
}
.btn-primary:hover { color: #fff; box-shadow: 0 6px 28px rgba(230,57,70,.55); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}
.btn-outline:hover { border-color: var(--primary); color: var(--text); }

/* Stats */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 40px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.stat-item {
  text-align: center;
  padding: 24px 16px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
}
.stat-label { font-size: .85rem; color: var(--text-muted); margin-top: 4px; }

/* Sections */
.section { padding: 60px 20px; }
.section-alt { background: var(--bg-section); }
.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 12px;
  text-align: center;
}
.section-desc {
  text-align: center;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 40px;
}

/* Feature cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color .2s, transform .2s;
}
.feature-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
}
.feature-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, rgba(230,57,70,.2), rgba(244,162,97,.2));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}
.feature-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.feature-card p { color: var(--text-muted); font-size: .92rem; }

/* 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(--primary);
}
.content-article h3 {
  font-size: 1.2rem;
  margin: 28px 0 12px;
  color: var(--accent);
}
.content-article p { margin-bottom: 16px; color: var(--text-muted); }
.content-article ul, .content-article ol {
  margin: 0 0 16px 24px;
  color: var(--text-muted);
}
.content-article li { margin-bottom: 8px; }
.content-article strong { color: var(--text); }

/* Steps */
.steps-list { counter-reset: step; list-style: none; margin: 0 0 24px; padding: 0; }
.steps-list li {
  counter-increment: step;
  position: relative;
  padding: 16px 16px 16px 56px;
  margin-bottom: 12px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.steps-list li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  font-weight: 700;
}

/* FAQ */
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--bg-card);
}
.faq-q {
  padding: 18px 20px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-q::after { content: "+"; font-size: 1.2rem; color: var(--primary); }
.faq-item.open .faq-q::after { content: "−"; }
.faq-a {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s, padding .3s;
  color: var(--text-muted);
  font-size: .92rem;
}
.faq-item.open .faq-a { padding: 0 20px 18px; max-height: 500px; }

/* TOC */
.toc-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 40px;
}
.toc-box h3 { font-size: 1rem; margin-bottom: 12px; }
.toc-box ol { margin-left: 20px; }
.toc-box li { margin-bottom: 6px; }
.toc-box a { color: var(--text-muted); font-size: .92rem; }
.toc-box a:hover { color: var(--accent); }

/* Page header (subpages) */
.page-header {
  padding: 48px 20px 32px;
  text-align: center;
  background: var(--bg-section);
  border-bottom: 1px solid var(--border);
}
.page-header h1 { font-size: 2rem; margin-bottom: 8px; }
.page-header p { color: var(--text-muted); }
.breadcrumb {
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }

/* Legal pages */
.legal-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}
.legal-content h2 { font-size: 1.3rem; margin: 32px 0 12px; color: var(--accent); }
.legal-content h3 { font-size: 1.05rem; margin: 20px 0 8px; }
.legal-content p, .legal-content li { color: var(--text-muted); margin-bottom: 12px; }
.legal-content ul, .legal-content ol { margin-left: 24px; margin-bottom: 16px; }

/* Error pages */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}
.error-code {
  font-size: 6rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -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 8px; }
.error-page p { color: var(--text-muted); margin-bottom: 24px; }

/* Footer */
.site-footer {
  background: var(--bg-section);
  border-top: 1px solid var(--border);
  padding: 48px 20px 24px;
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  max-width: var(--max-width);
  margin: 0 auto 32px;
}
.footer-brand p { color: var(--text-muted); font-size: .9rem; margin-top: 12px; }
.footer-col h4 { font-size: .95rem; margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--text-muted); font-size: .88rem; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: .82rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* CTA banner */
.cta-banner {
  background: linear-gradient(135deg, var(--secondary), #2a4a6b);
  border-radius: var(--radius);
  padding: 48px 32px;
  text-align: center;
  max-width: var(--max-width);
  margin: 0 auto;
}
.cta-banner h2 { margin-bottom: 12px; }
.cta-banner p { color: var(--text-muted); margin-bottom: 24px; }

/* Responsive */
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .nav-main {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 12px;
  }
  .nav-main.open { display: flex; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero { padding: 60px 20px 40px; }
}

@media (max-width: 480px) {
  .stats-bar { grid-template-columns: 1fr; }
}

/* APP 广告推荐 */
.ads-banner {
  padding: 12px 20px 4px;
  max-width: var(--max-width);
  margin: 0 auto;
}

#applist {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 12px 10px;
  box-shadow: var(--shadow);
}

.applist-title {
  text-align: center;
  font-size: .95rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 10px;
  letter-spacing: .5px;
}

#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px 4px;
  background: transparent;
}

#ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 76px;
  box-sizing: border-box;
}

#ads img {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .35);
  transition: transform 180ms ease, box-shadow 180ms ease;
  display: block;
  border: 2px solid transparent;
  background: #fff;
}

#ads a {
  display: inline-block;
  text-decoration: none;
  border-radius: 16px;
  padding: 2px;
}

#ads a:hover img,
#ads a:focus img {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 8px 24px rgba(255, 136, 0, .35);
  border-color: var(--primary);
}

#ads figcaption,
#ads .caption {
  margin-top: 5px;
  height: 16px;
  line-height: 16px;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#ads a:hover + .caption,
#ads a:focus + .caption {
  color: var(--accent);
}

@media (max-width: 480px) {
  #ads > div { width: 72px; }
  #ads img { width: 62px; height: 62px; }
}
