/* 91PORN 官方网站 - PC端样式 */
:root {
  --primary: #ff6b00;
  --primary-dark: #e55d00;
  --bg-dark: #0a0a14;
  --bg-card: #141420;
  --bg-card-hover: #1c1c2e;
  --text-primary: #ffffff;
  --text-secondary: #a0a0b8;
  --text-muted: #6b6b80;
  --accent-blue: #5b5bff;
  --border: #2a2a3e;
  --gradient: linear-gradient(135deg, #ff6b00 0%, #ff9500 100%);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --radius: 12px;
  --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: #ff9500;
}

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, 20, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

/* Fixed ad below top header */
.top-fixed-ad {
  position: sticky;
  z-index: 990;
  width: 100%;
  min-height: 96px;
  background: rgba(8, 8, 16, 0.98);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.top-fixed-ad-inner {
  width: min(1200px, 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.top-fixed-ad-frame {
  width: min(1200px, 100%);
  height: 100px;
  border: 0;
  border-radius: 8px;
  background: #10101a;
}

.top-fixed-ad-link {
  position: absolute;
  right: 20px;
  bottom: 10px;
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: underline;
}

.top-fixed-ad-spacer {
  height: 0;
}

.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;
}

.logo-link 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);
}

.main-nav {
  display: flex;
  gap: 8px;
  list-style: none;
}

.main-nav a {
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--text-primary);
  background: var(--bg-card);
}

.nav-cta {
  background: var(--gradient) !important;
  color: #fff !important;
  font-weight: 600;
}

.nav-cta:hover {
  opacity: 0.9;
  color: #fff !important;
}

/* Hero */
.hero {
  padding: 60px 0 80px;
  background: linear-gradient(180deg, #12121f 0%, var(--bg-dark) 100%);
  text-align: center;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 107, 0, 0.15);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 107, 0, 0.3);
}

.hero h1 {
  font-size: 2.5rem;
  line-height: 1.3;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff 0%, #ccc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 107, 0, 0.35);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.hero-preview {
  max-width: 320px;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 3px solid var(--border);
}

/* Section */
.section {
  padding: 60px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.section-alt {
  background: #0e0e1a;
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
  transform: translateY(-4px);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: rgba(255, 107, 0, 0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

/* Screenshot Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.gallery-item {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.gallery-item:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  object-position: top;
}

.gallery-caption {
  padding: 14px;
}

.gallery-caption h4 {
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.gallery-caption p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Category Tabs */
.category-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 32px;
}

.category-tab {
  padding: 8px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.category-tab:hover,
.category-tab.active {
  background: rgba(255, 107, 0, 0.15);
  border-color: var(--primary);
  color: var(--primary);
}

/* Content Article */
.content-article {
  max-width: 900px;
  margin: 0 auto;
}

.content-article h2 {
  font-size: 1.5rem;
  margin: 36px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}

.content-article h3 {
  font-size: 1.2rem;
  margin: 24px 0 12px;
  color: var(--primary);
}

.content-article p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  text-align: justify;
}

.content-article ul,
.content-article ol {
  color: var(--text-secondary);
  margin: 0 0 16px 24px;
}

.content-article li {
  margin-bottom: 8px;
}

.content-article a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Stats */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 40px 0;
}

.stat-item {
  text-align: center;
  padding: 24px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* Download Section */
.download-section {
  background: linear-gradient(135deg, #1a1020 0%, #0e0e1a 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.download-box {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 48px;
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--border);
}

.download-info {
  flex: 1;
}

.download-info h2 {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.download-info p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.download-qr {
  width: 160px;
  height: 160px;
  background: #fff;
  border-radius: 12px;
  padding: 8px;
  flex-shrink: 0;
}

.download-qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Breadcrumb */
.breadcrumb {
  padding: 16px 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-secondary);
}

.breadcrumb span {
  margin: 0 8px;
}

/* Page Header */
.page-header {
  padding: 40px 0 30px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}

.page-header h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.page-header p {
  color: var(--text-secondary);
}

/* Footer */
.site-footer {
  background: #080810;
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand img {
  width: 56px;
  border-radius: 12px;
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 1rem;
  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(--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;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* 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: 8rem;
  font-weight: 800;
  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: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* Internal Links Box */
.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: 14px;
  color: var(--primary);
}

.internal-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
}

.internal-links a {
  padding: 6px 14px;
  background: rgba(255, 107, 0, 0.1);
  border-radius: 6px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  border: 1px solid transparent;
  transition: all 0.2s;
}

.internal-links a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Two Column Layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.two-col img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  padding: 18px 24px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  padding: 0 24px 18px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Mobile menu toggle - hidden on PC */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}
