/* 91PORN官网 - 全局样式 */
:root {
  --primary: #ff3366;
  --primary-dark: #cc2952;
  --bg-dark: #0d0d12;
  --bg-card: #16161f;
  --bg-section: #111118;
  --text-primary: #f0f0f5;
  --text-secondary: #a0a0b0;
  --border: #2a2a38;
  --accent: #ff6b9d;
  --gradient: linear-gradient(135deg, #ff3366 0%, #ff6b9d 50%, #c44dff 100%);
  --shadow: 0 4px 24px rgba(255, 51, 102, 0.15);
  --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(--accent); text-decoration: none; transition: color 0.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: 1000;
  background: rgba(13, 13, 18, 0.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-link { display: flex; align-items: center; gap: 12px; }
.logo-link img { height: 42px; width: auto; }
.logo-text { font-size: 1.25rem; font-weight: 700; color: var(--text-primary); }

.main-nav { display: flex; gap: 8px; flex-wrap: wrap; }
.main-nav a {
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.95rem;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--text-primary);
  background: rgba(255, 51, 102, 0.12);
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gradient);
  color: #fff !important;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-download:hover { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(255, 51, 102, 0.35); color: #fff; }

/* Hero */
.hero {
  padding: 60px 0 80px;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 51, 102, 0.12) 0%, transparent 60%);
  text-align: center;
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.3;
  margin-bottom: 20px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto 32px;
}

.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 10px 24px;
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text-primary);
  font-weight: 500;
  transition: border-color 0.2s, background 0.2s;
}
.btn-secondary:hover { border-color: var(--primary); background: rgba(255, 51, 102, 0.08); color: var(--text-primary); }

.hero-image {
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border);
}

/* Sections */
.section { padding: 60px 0; }
.section-alt { background: var(--bg-section); }

.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(auto-fit, minmax(280px, 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, 51, 102, 0.4); }
.feature-card h3 { font-size: 1.15rem; margin-bottom: 12px; color: var(--accent); }
.feature-card p { color: var(--text-secondary); font-size: 0.95rem; }

/* Image Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: transform 0.2s;
}
.gallery-item:hover { transform: scale(1.02); }
.gallery-item img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.gallery-caption { padding: 14px 16px; font-size: 0.9rem; color: var(--text-secondary); }

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  text-align: center;
}

.stat-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 20px;
}
.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { color: var(--text-secondary); margin-top: 8px; font-size: 0.95rem; }

/* Content Article */
.content-article { max-width: 860px; margin: 0 auto; }
.content-article h2 { font-size: 1.5rem; margin: 36px 0 16px; color: var(--accent); }
.content-article h3 { font-size: 1.2rem; margin: 28px 0 12px; }
.content-article p { margin-bottom: 16px; color: var(--text-secondary); }
.content-article ul, .content-article ol { margin: 0 0 16px 24px; color: var(--text-secondary); }
.content-article li { margin-bottom: 8px; }
.content-article strong { color: var(--text-primary); }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
}
.faq-item h3 { font-size: 1.05rem; margin-bottom: 10px; color: var(--text-primary); }
.faq-item p { color: var(--text-secondary); font-size: 0.95rem; }

/* Breadcrumb */
.breadcrumb {
  padding: 16px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 8px; }

/* Page Header */
.page-header {
  padding: 48px 0 32px;
  text-align: center;
  background: var(--bg-section);
  border-bottom: 1px solid var(--border);
}
.page-header h1 { font-size: 2rem; margin-bottom: 12px; }
.page-header p { color: var(--text-secondary); }

/* Legal Content */
.legal-content { padding: 48px 0 80px; }
.legal-content h2 { font-size: 1.3rem; margin: 32px 0 12px; color: var(--accent); }
.legal-content h3 { font-size: 1.1rem; margin: 24px 0 10px; }
.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: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}
.error-code {
  font-size: 6rem;
  font-weight: 800;
  background: var(--gradient);
  -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; }
.error-page p { color: var(--text-secondary); margin-bottom: 24px; }

/* Footer */
.site-footer {
  background: var(--bg-section);
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.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-secondary); font-size: 0.9rem; }
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.footer-keywords {
  margin-top: 12px;
  font-size: 0.8rem;
  color: #666;
  line-height: 1.8;
}

/* Internal links highlight */
.internal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 32px 0;
}
.internal-links a {
  padding: 8px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.internal-links a:hover { border-color: var(--primary); color: var(--accent); }

/* Image Showcase - 图文交替区块 */
.showcase-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 64px;
}
.showcase-block:last-child { margin-bottom: 0; }
.showcase-block.reverse .showcase-img { order: 2; }
.showcase-block.reverse .showcase-text { order: 1; }

.showcase-img {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
.showcase-img img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }

.showcase-text h2 { font-size: 1.5rem; margin-bottom: 16px; color: var(--accent); }
.showcase-text h3 { font-size: 1.1rem; margin: 20px 0 10px; color: var(--text-primary); }
.showcase-text p { color: var(--text-secondary); margin-bottom: 14px; font-size: 0.95rem; }
.showcase-text ul { margin: 0 0 16px 20px; color: var(--text-secondary); }
.showcase-text li { margin-bottom: 8px; font-size: 0.95rem; }
.showcase-tag {
  display: inline-block;
  background: rgba(255, 51, 102, 0.15);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.8rem;
  margin-bottom: 12px;
}

/* 大图横幅 */
.banner-showcase {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 32px;
  position: relative;
}
.banner-showcase img { width: 100%; max-height: 480px; object-fit: cover; }
.banner-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  padding: 40px 32px 28px;
}
.banner-overlay h2 { font-size: 1.4rem; margin-bottom: 8px; }
.banner-overlay p { color: var(--text-secondary); font-size: 0.95rem; max-width: 700px; }

/* 热门内容卡片 - 大图模式 */
.hot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.hot-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}
.hot-card:hover { transform: translateY(-4px); border-color: rgba(255, 51, 102, 0.4); }
.hot-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.hot-card-body { padding: 18px; }
.hot-card-body h3 { font-size: 1rem; margin-bottom: 8px; line-height: 1.4; }
.hot-card-body p { color: var(--text-secondary); font-size: 0.85rem; line-height: 1.6; }
.hot-card-meta { color: #666; font-size: 0.8rem; margin-top: 10px; }

/* 双列图文 */
.dual-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 48px;
}
.dual-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.dual-item img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.dual-item-body { padding: 24px; }
.dual-item-body h3 { font-size: 1.15rem; margin-bottom: 12px; color: var(--accent); }
.dual-item-body p { color: var(--text-secondary); font-size: 0.9rem; }

/* 全宽图片内容区 */
.full-img-section { margin: 48px 0; }
.full-img-wrap {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  align-items: start;
}
.full-img-main {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.full-img-main img { width: 100%; }
.full-img-side h3 { font-size: 1.2rem; margin-bottom: 16px; }
.full-img-side p { color: var(--text-secondary); margin-bottom: 12px; font-size: 0.92rem; }

/* Responsive */
@media (max-width: 992px) {
  .showcase-block, .full-img-wrap { grid-template-columns: 1fr; }
  .showcase-block.reverse .showcase-img,
  .showcase-block.reverse .showcase-text { order: unset; }
  .hot-grid { grid-template-columns: repeat(2, 1fr); }
  .dual-showcase { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .header-inner { flex-direction: column; gap: 12px; }
  .main-nav { justify-content: center; }
  .hero { padding: 40px 0 60px; }
  .section { padding: 40px 0; }
  .hot-grid { grid-template-columns: 1fr; }
  .showcase-block { gap: 24px; margin-bottom: 40px; }
}
