/* 91PORNAPP 官方网站样式 - PC & 移动端响应式 */
:root {
  --primary: #ff9900;
  --primary-dark: #e68a00;
  --bg-dark: #0f0b1e;
  --bg-card: #1a1530;
  --bg-card-hover: #221c3d;
  --text: #f0f0f5;
  --text-muted: #a0a0b8;
  --accent: #7c5cff;
  --border: #2d2648;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,.4);
  --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);
  line-height: 1.75;
  min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: #ffb84d; }

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(15,11,30,.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;
  color: var(--text);
}

.logo-link img { width: 48px; height: 48px; border-radius: 10px; }

.logo-text { font-size: 1.25rem; font-weight: 700; }
.logo-text span { color: var(--primary); }

.main-nav { display: flex; gap: 8px; align-items: center; }

.main-nav a {
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: .95rem;
}

.main-nav a:hover,
.main-nav a.active { color: var(--text); background: var(--bg-card); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 8px;
}

/* Hero */
.hero {
  padding: 60px 0 80px;
  background: linear-gradient(180deg, #1a1035 0%, var(--bg-dark) 100%);
  text-align: center;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,153,0,.15);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: .875rem;
  margin-bottom: 20px;
  border: 1px solid rgba(255,153,0,.3);
}

.hero h1 {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  line-height: 1.3;
  margin-bottom: 20px;
  font-weight: 800;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 32px;
}

.btn-group { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.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: #000;
  box-shadow: 0 4px 20px rgba(255,153,0,.35);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}

.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

/* Sections */
.section { padding: 64px 0; }
.section-alt { background: rgba(26,21,48,.5); }

.section-header { text-align: center; margin-bottom: 48px; }

.section-header h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 12px;
}

.section-header p { color: var(--text-muted); max-width: 640px; margin: 0 auto; }

.section-header .anchor-link { font-size: .875rem; margin-top: 8px; display: block; }

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border);
  transition: border-color .2s, transform .2s;
}

.feature-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
}

.feature-card h3 { font-size: 1.15rem; margin-bottom: 12px; color: var(--primary); }
.feature-card p { color: var(--text-muted); font-size: .95rem; }

/* Screenshot Showcase */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  align-items: start;
}

.showcase-item { text-align: center; }

.phone-frame {
  background: var(--bg-card);
  border-radius: 24px;
  padding: 12px;
  border: 2px solid var(--border);
  box-shadow: var(--shadow);
  max-width: 280px;
  margin: 0 auto 16px;
  overflow: hidden;
}

.phone-frame img { border-radius: 16px; width: 100%; }

.showcase-item h3 { font-size: 1rem; margin-bottom: 8px; }
.showcase-item p { font-size: .875rem; color: var(--text-muted); }

/* Content Article */
.article-content { max-width: 860px; margin: 0 auto; }

.article-content h2 {
  font-size: 1.5rem;
  margin: 40px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
  color: var(--primary);
}

.article-content h3 { font-size: 1.2rem; margin: 28px 0 12px; }

.article-content p { margin-bottom: 16px; color: var(--text-muted); }

.article-content ul, .article-content ol {
  margin: 0 0 20px 24px;
  color: var(--text-muted);
}

.article-content li { margin-bottom: 8px; }

.article-content strong { color: var(--text); }

/* Category Tags */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.tag {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: .85rem;
  color: var(--text-muted);
}

/* 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-item summary {
  padding: 18px 24px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after { content: "+"; font-size: 1.25rem; color: var(--primary); }

.faq-item[open] summary::after { content: "−"; }

.faq-item .faq-answer {
  padding: 0 24px 18px;
  color: var(--text-muted);
  font-size: .95rem;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 32px 0;
}

.step-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  position: relative;
}

.step-num {
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 12px;
}

/* Internal Links Box */
.internal-links {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 40px 0;
}

.internal-links h3 { margin-bottom: 12px; font-size: 1.1rem; }

.internal-links ul { list-style: none; margin: 0; display: flex; flex-wrap: wrap; gap: 12px 24px; }

.internal-links li a { font-size: .95rem; }

/* Page Hero (sub pages) */
.page-hero {
  padding: 48px 0 32px;
  text-align: center;
  background: linear-gradient(180deg, #1a1035 0%, var(--bg-dark) 100%);
}

.page-hero h1 { font-size: clamp(1.5rem, 4vw, 2.25rem); margin-bottom: 12px; }
.page-hero p { color: var(--text-muted); }

/* Legal Content */
.legal-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.legal-content h2 { font-size: 1.3rem; margin: 32px 0 12px; color: var(--primary); }
.legal-content h3 { font-size: 1.1rem; margin: 24px 0 10px; }
.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: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}

.error-code {
  font-size: 6rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 16px;
}

.error-page h1 { font-size: 1.75rem; margin-bottom: 12px; }
.error-page p { color: var(--text-muted); margin-bottom: 32px; max-width: 480px; }

/* Footer */
.site-footer {
  background: #0a0814;
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.footer-col h4 { font-size: 1rem; margin-bottom: 16px; color: var(--primary); }

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--text-muted); font-size: .9rem; }
.footer-col a:hover { color: var(--primary); }

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: .85rem;
}

.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--primary); }

/* Breadcrumb */
.breadcrumb {
  padding: 16px 0;
  font-size: .875rem;
  color: var(--text-muted);
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 8px; }

/* Mobile */
@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(15,11,30,.98);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--border);
  }

  .main-nav.open { display: flex; }

  .main-nav a { width: 100%; text-align: center; padding: 12px; }

  .hero { padding: 40px 0 60px; }

  .section { padding: 48px 0; }

  .btn { width: 100%; justify-content: center; }

  .btn-group { flex-direction: column; align-items: stretch; padding: 0 20px; }

  .showcase-grid { grid-template-columns: 1fr 1fr; gap: 16px; }

  .phone-frame { max-width: 100%; padding: 8px; border-radius: 16px; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .showcase-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
