/* 91PORN 官方网站 - 全局样式 */
:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #1a1a28;
  --accent: #ff6b00;
  --accent-hover: #ff8533;
  --accent-blue: #6c63ff;
  --text-primary: #ffffff;
  --text-secondary: #a0a0b8;
  --text-muted: #6b6b80;
  --border: #2a2a3a;
  --gradient: linear-gradient(135deg, #ff6b00 0%, #ff8533 100%);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --radius: 12px;
  --header-h: 64px;
  --max-w: 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-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-w); 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-h);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
}

.logo-link:hover { color: var(--text-primary); }

.logo-img { width: 44px; height: 44px; border-radius: 10px; }

.logo-text { font-size: 1.25rem; font-weight: 700; }
.logo-text span { color: var(--accent); }

.nav-desktop { display: flex; gap: 28px; list-style: none; }
.nav-desktop a { color: var(--text-secondary); font-size: 0.95rem; font-weight: 500; }
.nav-desktop a:hover, .nav-desktop a.active { color: var(--accent); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
  z-index: 999;
}

.nav-mobile.open { display: block; }
.nav-mobile ul { list-style: none; }
.nav-mobile li { border-bottom: 1px solid var(--border); }
.nav-mobile a {
  display: block;
  padding: 14px 0;
  color: var(--text-secondary);
  font-size: 1rem;
}
.nav-mobile a:hover, .nav-mobile a.active { color: var(--accent); }

/* Hero)-> 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-badge {
  display: inline-block;
  background: rgba(255, 107, 0, 0.15);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 107, 0, 0.3);
}

.hero h1 {
  font-size: 2.5rem;
  line-height: 1.25;
  margin-bottom: 20px;
  font-weight: 800;
}

.hero-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 16px rgba(255, 107, 0, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 107, 0, 0.45);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border);
}

.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.stat-item strong {
  display: block;
  font-size: 1.5rem;
  color: var(--accent);
}

.stat-item span { font-size: 0.85rem; color: var(--text-muted); }

.hero-phone {
  position: relative;
  max-width: 320px;
  margin: 0 auto;
}

.hero-phone img {
  border-radius: 24px;
  box-shadow: var(--shadow);
  border: 3px solid var(--border);
}

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-secondary); }

.section-header { text-align: center; margin-bottom: 48px; }

.section-header h2 {
  font-size: 2rem;
  margin-bottom: 12px;
  font-weight: 700;
}

.section-header p {
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
}

.section-header .anchor-link {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s, border-color 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 107, 0, 0.4);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 107, 0, 0.12);
  border-radius: 10px;
  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-secondary); font-size: 0.92rem; }

/* Screenshot Gallery */
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.screenshot-item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: transform 0.2s;
}

.screenshot-item:hover { transform: scale(1.03); }

.screenshot-item img { width: 100%; aspect-ratio: 9/16; object-fit: cover; }

.screenshot-item figcaption {
  padding: 12px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-align: center;
}

/* Category Tags */
.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.tag {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
}

/* Content Article */
.content-article { max-width: 860px; margin: 0 auto; }
.content-article h2 { font-size: 1.6rem; margin: 40px 0 16px; color: var(--text-primary); }
.content-article h3 { font-size: 1.2rem; margin: 28px 0 12px; color: var(--accent); }
.content-article p { color: var(--text-secondary); margin-bottom: 16px; }
.content-article ul, .content-article ol { color: var(--text-secondary); margin: 0 0 16px 24px; }
.content-article li { margin-bottom: 8px; }

/* Download Section */
.download-section {
  background: linear-gradient(135deg, #1a1020 0%, #12121a 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
}

.download-btns {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* FAQ */
.faq-list { max-width: 800px; 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 24px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-q::after { content: "+"; color: var(--accent); font-size: 1.2rem; }
.faq-item.open .faq-q::after { content: "−"; }

.faq-a {
  display: none;
  padding: 0 24px 18px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.faq-item.open .faq-a { display: block; }

/* Two Column Layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.two-col img { border-radius: var(--radius); border: 1px solid var(--border); }

/* Legal Pages */
.page-hero {
  padding: 48px 0 32px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 { font-size: 2rem; margin-bottom: 8px; }
.page-hero p { color: var(--text-muted); font-size: 0.9rem; }

.legal-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}

.legal-content h2 {
  font-size: 1.4rem;
  margin: 36px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.legal-content h3 { font-size: 1.1rem; margin: 24px 0 10px; color: var(--accent); }
.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 Pages */
.error-page {
  min-height: calc(100vh - var(--header-h) - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}

.error-code {
  font-size: 6rem;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 16px;
}

.error-page h1 { font-size: 1.8rem; 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: 56px 0 28px;
}

.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; max-width: 280px; }

.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; }
.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-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; }

/* Breadcrumb */
.breadcrumb {
  padding: 16px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 8px; }

/* Internal links highlight */
.internal-links {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 32px 0;
}

.internal-links h3 { font-size: 1rem; margin-bottom: 12px; }
.internal-links ul { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; }
.internal-links a {
  background: var(--bg-secondary);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.88rem;
  border: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .screenshot-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .menu-toggle { display: block; }

  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero h1 { font-size: 1.8rem; }
  .hero-desc { margin: 0 auto 24px; }
  .hero-btns { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-phone { order: -1; max-width: 260px; }

  .feature-grid { grid-template-columns: 1fr; }
  .screenshot-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .download-section { padding: 32px 20px; }

  .section { padding: 48px 0; }
  .section-header h2 { font-size: 1.6rem; }
}

@media (max-width: 480px) {
  .screenshot-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 1.5rem; }
  .btn { padding: 12px 20px; font-size: 0.9rem; }
}
