/* 91PORN 官网 - 响应式样式 */
:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #1a1a28;
  --accent: #ff9900;
  --accent-hover: #ffb340;
  --purple: #6c5ce7;
  --text-primary: #ffffff;
  --text-secondary: #a0a0b0;
  --border: #2a2a3a;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --max-width: 1200px;
  --header-height: 64px;
}

*, *::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.7;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }

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: 1000;
  background: rgba(10,10,15,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  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-link img { width: 44px; height: 44px; border-radius: 10px; }

.logo-text { font-size: 1.25rem; font-weight: 700; }
.logo-text span { color: var(--accent); }

.main-nav { display: flex; gap: 8px; align-items: center; }

.main-nav a {
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.95rem;
}

.main-nav a:hover, .main-nav a.active {
  color: var(--text-primary);
  background: var(--bg-card);
}

.nav-download {
  background: var(--accent) !important;
  color: #000 !important;
  font-weight: 600;
}

.nav-download:hover { background: var(--accent-hover) !important; color: #000 !important; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

/* Hero */
.hero {
  padding: 60px 0 80px;
  background: linear-gradient(180deg, #12121a 0%, var(--bg-primary) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-content h1 {
  font-size: 2.2rem;
  line-height: 1.3;
  margin-bottom: 20px;
}

.hero-content h1 em { color: var(--accent); font-style: normal; }

.hero-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 28px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.badge {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #ff6600);
  color: #000;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,153,0,0.35);
  color: #000;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--text-primary);
}

.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-phone {
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: 280px;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow), 0 0 0 4px #222;
  border: 3px solid #333;
}

.phone-frame img { width: 100%; }

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-secondary); }

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.3s, border-color 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.feature-card img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  object-position: top;
}

.feature-card-body { padding: 20px; }

.feature-card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.feature-card-body p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Content Block */
.content-block {
  max-width: 860px;
  margin: 0 auto;
}

.content-block h2 {
  font-size: 1.5rem;
  margin: 40px 0 16px;
  padding-left: 14px;
  border-left: 4px solid var(--accent);
}

.content-block h3 {
  font-size: 1.2rem;
  margin: 28px 0 12px;
  color: var(--accent);
}

.content-block p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  text-align: justify;
}

.content-block ul, .content-block ol {
  color: var(--text-secondary);
  margin: 0 0 16px 24px;
}

.content-block li { margin-bottom: 8px; }

/* Screenshot Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  object-position: top;
}

.gallery-caption {
  padding: 10px;
  background: var(--bg-card);
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-align: center;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}

.step-item {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px 20px;
  border: 1px solid var(--border);
  text-align: center;
  position: relative;
}

.step-num {
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 16px;
}

.step-item h4 { margin-bottom: 8px; font-size: 1rem; }
.step-item p { color: var(--text-secondary); font-size: 0.85rem; }

/* FAQ */
.faq-list { max-width: 860px; margin: 0 auto; }

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-q {
  padding: 18px 24px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-q::after { content: "+"; color: var(--accent); font-size: 1.2rem; }

.faq-item.open .faq-q::after { content: "−"; }

.faq-a {
  padding: 0 24px 18px;
  color: var(--text-secondary);
  display: none;
}

.faq-item.open .faq-a { display: block; }

/* Download CTA */
.download-cta {
  text-align: center;
  padding: 64px 20px;
  background: linear-gradient(135deg, #1a1200, #12121a);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.download-cta h2 { font-size: 1.8rem; margin-bottom: 12px; }
.download-cta p { color: var(--text-secondary); margin-bottom: 28px; }

/* Page Header */
.page-header {
  padding: 48px 0 32px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

.page-header h1 { font-size: 2rem; margin-bottom: 8px; }
.page-header p { color: var(--text-secondary); }

.page-content { padding: 48px 0 80px; }

.page-content .content-block h2:first-child { margin-top: 0; }

/* 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: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 16px;
}

.error-page h1 { font-size: 1.5rem; margin-bottom: 12px; }
.error-page p { color: var(--text-secondary); margin-bottom: 28px; }

/* Footer */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand img { width: 48px; border-radius: 10px; margin-bottom: 12px; }
.footer-brand p { color: var(--text-secondary); font-size: 0.9rem; }

.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: 8px; }
.footer-col a { color: var(--text-secondary); font-size: 0.9rem; }
.footer-col a:hover { color: var(--accent); }

.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-secondary); font-size: 0.85rem; }

.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--text-secondary); font-size: 0.85rem; }

/* Breadcrumb */
.breadcrumb {
  padding: 12px 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--accent); }

/* Internal link highlight */
.inline-link { border-bottom: 1px dashed var(--accent); }

/* Responsive */
@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-phone { order: -1; }
  .phone-frame { width: 220px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    pointer-events: none;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav a { width: 100%; text-align: center; padding: 12px; }

  .hero { padding: 40px 0 60px; }
  .hero-content h1 { font-size: 1.6rem; }
  .section { padding: 48px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .hero-badges { justify-content: center; }
}
