/* 91PORN 91pors.lat 全局样式 */
:root {
  --primary: #ff6b00;
  --primary-dark: #cc5500;
  --primary-light: #ff8533;
  --accent: #ffaa00;
  --bg: #0f0f14;
  --bg-card: #1a1a24;
  --bg-card-hover: #222230;
  --text: #f0f0f5;
  --text-muted: #a0a0b0;
  --border: #2a2a3a;
  --shadow: 0 4px 24px rgba(0,0,0,.35);
  --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;
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
}

a { color: var(--primary-light); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  background: linear-gradient(135deg, #0a0a10, #1a1020);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 16px rgba(0,0,0,.4);
  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;
  gap: 16px;
}

.logo-link { display: flex; align-items: center; gap: 12px; color: #fff; }
.logo-link:hover { color: #fff; opacity: .92; }
.logo-img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; }
.logo-text { font-size: 1.2rem; font-weight: 700; white-space: nowrap; }
.logo-text span { color: var(--primary); }

.main-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.main-nav a {
  color: rgba(255,255,255,.88);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: .9rem;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active { background: rgba(255,107,0,.18); color: var(--primary-light); }

.header-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* Hamburger toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .2s, border-color .2s;
}
.nav-toggle:hover { background: rgba(255,107,0,.12); border-color: rgba(255,107,0,.4); }
.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.site-header.menu-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.menu-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.site-header.menu-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  z-index: 998;
  backdrop-filter: blur(2px);
}
.site-header.menu-open .nav-overlay { display: block; }

body.nav-open { overflow: hidden; }

.nav-drawer-cta { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all .2s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #1a0a00;
}
.btn-primary:hover { filter: brightness(1.1); color: #1a0a00; }
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,107,0,.5);
}
.btn-outline:hover { background: rgba(255,107,0,.12); color: #fff; }
.btn-orange { background: var(--primary); color: #fff; }
.btn-orange:hover { background: var(--primary-light); color: #fff; }

/* Ad Banner */
.ad-bar {
  background: linear-gradient(180deg, #14141e 0%, var(--bg) 100%);
  padding: 16px 0 12px;
  border-bottom: 1px solid var(--border);
}
.applist-title {
  text-align: center;
  font-size: .85rem;
  font-weight: 600;
  color: var(--primary-light);
  margin-bottom: 12px;
  letter-spacing: .02em;
}
#applist { margin: 0; }
#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 14px 18px;
  background: transparent;
}
#ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 80px;
}
#ads figure { margin: 0; }
#ads a {
  display: inline-block;
  border-radius: 16px;
  -webkit-tap-highlight-color: transparent;
}
#ads img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,.4);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  border: 2px solid rgba(255,107,0,.25);
  cursor: pointer;
}
#ads a:hover img,
#ads a:active img {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 10px 28px rgba(255,107,0,.3);
  border-color: var(--primary);
}
#ads .caption {
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.3;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #0a0812 0%, #1a1028 50%, #201018 100%);
  color: #fff;
  padding: 56px 0;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(255,107,0,.12) 0%, transparent 60%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero h1 { font-size: 2rem; line-height: 1.35; margin-bottom: 16px; }
.hero-desc { color: rgba(255,255,255,.82); font-size: 1.05rem; margin-bottom: 24px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-img { border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); }

/* Sections */
section { padding: 56px 0; }
#page-toc { padding: 32px 0; }
section:nth-child(even) { background: rgba(255,255,255,.02); }

.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 { font-size: 1.75rem; margin-bottom: 12px; color: #fff; }
.section-header p { color: var(--text-muted); max-width: 640px; margin: 0 auto; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.feature-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  transition: border-color .2s, transform .2s;
}
.feature-item:hover { border-color: rgba(255,107,0,.4); transform: translateY(-2px); }
.feature-item-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}
.feature-item-body { padding: 24px; }
.feature-item h3 { color: var(--primary-light); margin-bottom: 12px; font-size: 1.1rem; }
.feature-item p { color: var(--text-muted); font-size: .95rem; }

.visual-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.visual-wall-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s, border-color .2s;
}
.visual-wall-item:hover { transform: translateY(-3px); border-color: rgba(255,107,0,.35); }
.visual-wall-item img { width: 100%; height: 200px; object-fit: cover; }
.visual-wall-body { padding: 18px 20px 22px; }
.visual-wall-body h3 { font-size: 1rem; color: #fff; margin-bottom: 8px; }
.visual-wall-body p { font-size: .88rem; color: var(--text-muted); line-height: 1.7; }

.img-spotlight {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 36px;
  align-items: center;
  margin-bottom: 48px;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.img-spotlight.reverse { direction: rtl; }
.img-spotlight.reverse > * { direction: ltr; }
.img-spotlight-img {
  border-radius: 10px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  width: 100%;
  max-height: 380px;
  object-fit: cover;
}
.img-spotlight-text h3 { font-size: 1.25rem; color: #fff; margin-bottom: 14px; }
.img-spotlight-text p { color: var(--text-muted); margin-bottom: 12px; font-size: .95rem; }
.img-spotlight-text ul { margin: 12px 0 0 20px; color: var(--text-muted); font-size: .92rem; }
.img-spotlight-text li { margin-bottom: 6px; }

.banner-img-section {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 32px;
  border: 1px solid var(--border);
}
.banner-img-section img { width: 100%; max-height: 420px; object-fit: cover; }
.banner-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10,8,18,.92) 0%, rgba(10,8,18,.55) 55%, transparent 100%);
  display: flex;
  align-items: center;
  padding: 40px;
}
.banner-img-overlay h3 { font-size: 1.4rem; color: #fff; margin-bottom: 10px; }
.banner-img-overlay p { color: rgba(255,255,255,.82); max-width: 480px; font-size: .95rem; }

.quad-img-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 32px 0;
}
.quad-img-row figure {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.quad-img-row img { width: 100%; height: 140px; object-fit: cover; }
.quad-img-row figcaption {
  padding: 10px 12px;
  font-size: .8rem;
  color: var(--text-muted);
  text-align: center;
}

.page-toc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
}
.page-toc h2 { font-size: 1.2rem; color: #fff; margin-bottom: 16px; }
.page-toc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px 24px;
}
.page-toc a { color: var(--text-muted); font-size: .92rem; display: flex; align-items: center; gap: 8px; }
.page-toc a::before { content: '▸'; color: var(--primary); }
.page-toc a:hover { color: var(--primary-light); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(255,107,0,.3); }
.card-img { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 20px; }
.card-body h3 { margin-bottom: 10px; color: #fff; font-size: 1.05rem; }
.card-body p { color: var(--text-muted); font-size: .92rem; }

.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-num { font-size: 2.2rem; font-weight: 800; color: var(--primary); line-height: 1.2; }
.stat-label { color: var(--text-muted); margin-top: 8px; font-size: .9rem; }

.cta-banner {
  background: linear-gradient(135deg, #1a1020, #2a1528);
  border: 1px solid rgba(255,107,0,.3);
  border-radius: var(--radius);
  padding: 48px 32px;
  text-align: center;
  margin-top: 40px;
}
.cta-banner h2 { margin-bottom: 12px; color: #fff; }
.cta-banner p { color: var(--text-muted); margin-bottom: 24px; }

.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-item summary {
  padding: 18px 24px;
  cursor: pointer;
  font-weight: 600;
  color: #fff;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; float: right; color: var(--primary); }
.faq-item[open] summary::after { content: '−'; }
.faq-answer { padding: 0 24px 18px; color: var(--text-muted); font-size: .95rem; }

.article-content { max-width: 860px; margin: 0 auto; }
.article-content h2 { margin: 32px 0 16px; color: #fff; font-size: 1.5rem; }
.article-content h3 { margin: 24px 0 12px; color: var(--primary-light); font-size: 1.15rem; }
.article-content p { margin-bottom: 16px; color: var(--text-muted); }
.article-content ul, .article-content ol { margin: 0 0 16px 24px; color: var(--text-muted); }
.article-content li { margin-bottom: 8px; }

.internal-links {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 32px;
}
.internal-links h3 { margin-bottom: 12px; color: #fff; font-size: 1rem; }
.internal-links ul { list-style: none; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.internal-links li::before { content: '› '; color: var(--primary); }

.breadcrumb { padding: 14px 0; background: rgba(255,255,255,.02); border-bottom: 1px solid var(--border); font-size: .88rem; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary-light); }
.breadcrumb span { margin: 0 8px; opacity: .5; }

.page-header { padding: 40px 0; text-align: center; background: linear-gradient(135deg, #0a0812, #1a1020); }
.page-header h1 { font-size: 2rem; margin-bottom: 8px; }
.page-header p { color: var(--text-muted); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }

.showcase-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 48px;
}
.showcase-row.reverse { direction: rtl; }
.showcase-row.reverse > * { direction: ltr; }
.showcase-img { border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); }

.screenshot-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}
.screenshot-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s, border-color .2s;
}
.screenshot-item:hover { transform: translateY(-3px); border-color: rgba(255,107,0,.35); }
.screenshot-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: top center;
  border-bottom: 1px solid var(--border);
}
.screenshot-item .shot-body { padding: 20px; }
.screenshot-item h3 { font-size: 1.05rem; color: #fff; margin-bottom: 10px; }
.screenshot-item p { font-size: .9rem; color: var(--text-muted); line-height: 1.75; }

.brand-showcase {
  display: flex;
  align-items: center;
  gap: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 40px;
}
.brand-showcase img {
  width: 120px;
  height: 120px;
  border-radius: 24px;
  flex-shrink: 0;
  box-shadow: var(--shadow);
}
.brand-showcase h3 { color: var(--primary-light); margin-bottom: 10px; }
.brand-showcase p { color: var(--text-muted); font-size: .95rem; }

.deep-dive-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 32px;
}
.deep-dive-block .showcase-row { margin-bottom: 0; }
.deep-dive-block h3 { font-size: 1.25rem; color: #fff; margin-bottom: 14px; }
.deep-dive-block p { color: var(--text-muted); margin-bottom: 12px; font-size: .95rem; }
.deep-dive-block ul { margin: 0 0 12px 20px; color: var(--text-muted); font-size: .92rem; }
.deep-dive-block li { margin-bottom: 6px; }

.content-img-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 28px 0;
}
.content-img-row img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.content-img-row figcaption {
  text-align: center;
  font-size: .82rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.tag-list span {
  background: rgba(255,107,0,.12);
  color: var(--primary-light);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: .82rem;
  border: 1px solid rgba(255,107,0,.25);
}

/* Footer */
.site-footer {
  background: #080810;
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-brand p { color: var(--text-muted); font-size: .9rem; margin-top: 12px; line-height: 1.7; }
.footer-col h4 { color: #fff; margin-bottom: 14px; font-size: .95rem; }
.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-light); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 20px; text-align: center; }
.footer-bottom p { color: var(--text-muted); font-size: .85rem; }

/* Error pages */
.error-page { padding: 80px 0; text-align: center; }
.error-code { font-size: 6rem; font-weight: 900; color: var(--primary); line-height: 1; opacity: .8; }
.error-title { font-size: 1.75rem; margin: 16px 0; }
.error-desc { color: var(--text-muted); margin-bottom: 28px; max-width: 480px; margin-left: auto; margin-right: auto; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .two-col, .showcase-row { grid-template-columns: 1fr; }
  .showcase-row.reverse { direction: ltr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .brand-showcase { flex-direction: column; text-align: center; }
  .content-img-row { grid-template-columns: 1fr; }
  .quad-img-row { grid-template-columns: repeat(2, 1fr); }
  .img-spotlight { grid-template-columns: 1fr; padding: 20px; }
  .img-spotlight.reverse { direction: ltr; }
  .banner-img-overlay { padding: 24px; background: linear-gradient(0deg, rgba(10,8,18,.92) 0%, rgba(10,8,18,.4) 100%); align-items: flex-end; }

  .nav-toggle { display: flex; margin-left: auto; }
  .header-actions { display: none; }
  .header-inner { position: relative; z-index: 1001; }

  .main-nav {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    width: min(300px, 85vw);
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 72px 0 24px;
    background: linear-gradient(180deg, #101018 0%, #1a1020 100%);
    border-left: 1px solid var(--border);
    box-shadow: -12px 0 40px rgba(0,0,0,.5);
    z-index: 999;
    transform: translateX(100%);
    transition: transform .3s ease;
    overflow-y: auto;
    flex-wrap: nowrap;
  }
  .site-header.menu-open .main-nav { transform: translateX(0); }

  .main-nav a {
    padding: 15px 24px;
    border-radius: 0;
    border-bottom: 1px solid var(--border);
    font-size: .95rem;
    white-space: normal;
  }
  .main-nav a:hover,
  .main-nav a.active {
    background: rgba(255,107,0,.14);
    color: var(--primary-light);
  }
  .main-nav a:first-child { border-top: 1px solid var(--border); }

  .nav-drawer-cta {
    display: block;
    margin: 16px 20px 0 !important;
    padding: 12px 20px !important;
    text-align: center;
    border-radius: 8px !important;
    border: none !important;
    background: linear-gradient(135deg, var(--primary), var(--accent)) !important;
    color: #1a0a00 !important;
    font-weight: 600;
  }
  .nav-drawer-cta:hover { filter: brightness(1.1); color: #1a0a00 !important; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.5rem; }
  #ads > div { width: 68px; }
  #ads img { width: 60px; height: 60px; }
  .screenshot-gallery { grid-template-columns: 1fr; }
  .ad-bar { padding: 14px 0 10px; }
  #ads { gap: 12px 16px; }
  #ads > div { width: 76px; }
  #ads img { width: 68px; height: 68px; }
}
