/* 91PORN 官方网站样式 - 91-po.forum */
:root {
  --primary: #ff6600;
  --primary-dark: #e55a00;
  --bg-dark: #0a0a0a;
  --bg-card: #141414;
  --bg-card-hover: #1e1e1e;
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --text-muted: #707070;
  --border: #2a2a2a;
  --gradient: linear-gradient(135deg, #ff6600 0%, #ff9933 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: var(--primary-dark); text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10,10,10,0.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; text-decoration: none; }
.logo-link:hover { text-decoration: none; }
.logo-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); }

.nav-main { display: flex; gap: 8px; align-items: center; }
.nav-main a {
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s;
}
.nav-main a:hover, .nav-main a.active {
  color: var(--text-primary);
  background: var(--bg-card);
  text-decoration: none;
}

.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;
  text-decoration: none !important;
  box-shadow: 0 4px 16px rgba(255,102,0,0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255,102,0,0.4);
  color: #fff !important;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

.page-header {
  padding: 48px 0 32px;
  background: linear-gradient(180deg, #111 0%, var(--bg-dark) 100%);
  border-bottom: 1px solid var(--border);
}

.page-header h1 { font-size: 2rem; margin-bottom: 8px; }
.page-header .breadcrumb { color: var(--text-muted); font-size: 0.9rem; }
.page-header .breadcrumb a { color: var(--text-secondary); }

.page-body { padding: 48px 0 80px; }

.legal-content h2 { font-size: 1.3rem; margin: 32px 0 12px; color: var(--text-primary); }
.legal-content h3 { font-size: 1.1rem; margin: 24px 0 10px; color: var(--primary); }
.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-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}

.error-code {
  font-size: 8rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  opacity: 0.8;
}

.error-page h1 { font-size: 1.8rem; margin: 16px 0; }
.error-page p { color: var(--text-secondary); margin-bottom: 32px; max-width: 480px; }

.site-footer {
  background: #080808;
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
}

.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; line-height: 1.6; }

.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; text-decoration: none; }
.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; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); font-size: 0.85rem; text-decoration: none; }
.footer-links a:hover { color: var(--primary); }

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .nav-main {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10,10,10,0.98);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--border);
  }
  .nav-main.open { display: flex; }
  .nav-main a { width: 100%; text-align: center; padding: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .error-code { font-size: 5rem; }
}

/* ===== 首页专属排版（idx-） ===== */
.page-home { background: #060606; }
.idx-main { overflow-x: hidden; }

/* 通用区块标题 */
.idx-head { margin-bottom: 48px; max-width: 640px; }
.idx-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; line-height: 1.2; margin-bottom: 10px; }
.idx-head p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7; }
.idx-head-light h2 { color: #fff; }

/* ① 首屏 */
.idx-hero {
  position: relative;
  padding: 64px 0 48px;
  overflow: hidden;
}

.idx-hero-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(255,102,0,0.14) 0%, transparent 68%);
  pointer-events: none;
}

.idx-hero-body {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.idx-badge {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--primary);
  border: 1px solid rgba(255,102,0,0.35);
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
  letter-spacing: 0.04em;
}

.idx-hero-text h1 {
  font-size: clamp(2rem, 4.8vw, 3.4rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.idx-hero-text h1 em {
  font-style: normal;
  display: block;
  font-size: 0.55em;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 8px;
  letter-spacing: 0;
}

.idx-hero-desc {
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: 28px;
}

.idx-hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.idx-btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 10px 24px;
  border-radius: 50px;
  border: 1px solid var(--border);
  color: var(--text-secondary) !important;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none !important;
  transition: border-color 0.2s, color 0.2s;
}
.idx-btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary) !important;
}

.idx-pills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.idx-pills li {
  font-size: 0.78rem;
  color: var(--text-muted);
  background: #111;
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 6px;
}

/* 三机扇形 */
.idx-phones {
  position: relative;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.idx-phone {
  position: absolute;
  border-radius: 22px;
  overflow: hidden;
  border: 2px solid #2a2a2a;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  background: #111;
}
.idx-phone img { width: 100%; aspect-ratio: 9/16; object-fit: cover; display: block; }

.idx-phone-left {
  width: 150px;
  left: 0;
  top: 50%;
  transform: translateY(-50%) rotate(-12deg);
  z-index: 1;
  opacity: 0.85;
}
.idx-phone-center {
  width: 190px;
  z-index: 3;
  transform: translateY(-8px);
}
.idx-phone-right {
  width: 150px;
  right: 0;
  top: 50%;
  transform: translateY(-50%) rotate(12deg);
  z-index: 2;
  opacity: 0.85;
}

/* ② 滚动关键词 */
.idx-ticker {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #0a0a0a;
  overflow: hidden;
  padding: 12px 0;
}

.idx-ticker-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: idx-scroll 28s linear infinite;
}

.idx-ticker-track span {
  font-size: 0.82rem;
  color: var(--text-muted);
  white-space: nowrap;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.idx-ticker-track span:nth-child(odd) { color: rgba(255,102,0,0.6); }

@keyframes idx-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ③ 锚点导航 */
.idx-jump {
  position: sticky;
  top: 73px;
  z-index: 900;
  background: rgba(6,6,6,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.idx-jump-inner {
  display: flex;
  gap: 6px;
  padding: 10px 20px;
  overflow-x: auto;
  scrollbar-width: none;
}
.idx-jump-inner::-webkit-scrollbar { display: none; }

.idx-jump-inner a {
  flex-shrink: 0;
  font-size: 0.82rem;
  color: var(--text-muted) !important;
  text-decoration: none !important;
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid transparent;
  transition: all 0.2s;
}
.idx-jump-inner a:hover {
  color: var(--primary) !important;
  border-color: rgba(255,102,0,0.3);
  background: rgba(255,102,0,0.06);
}

/* ④ Z 字形模块 */
.idx-modules {
  padding: 80px 0;
  background: #080808;
}

.idx-row {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 48px;
  align-items: center;
  padding: 40px 0;
  border-bottom: 1px solid #151515;
}
.idx-row:last-child { border-bottom: none; }

.idx-row-reverse { grid-template-columns: 240px 1fr; }
.idx-row-reverse .idx-row-text { order: 2; }
.idx-row-reverse .idx-row-img { order: 1; }

.idx-row-num {
  display: block;
  font-size: 3rem;
  font-weight: 900;
  color: rgba(255,102,0,0.15);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.04em;
}

.idx-row-text h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.idx-row-text p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.75;
}

.idx-row-img {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}
.idx-row-img img { width: 100%; aspect-ratio: 9/16; object-fit: cover; }

/* ⑤ 马赛克截图墙 */
.idx-gallery {
  padding: 80px 0;
  background: #0c0c0c;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.idx-mosaic {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-auto-rows: 180px;
  gap: 10px;
  padding: 0 20px;
  max-width: 1240px;
  margin: 0 auto;
}

.idx-tile {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #111;
}
.idx-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}
.idx-tile:hover img { transform: scale(1.05); }

.idx-tile figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 12px;
  font-size: 0.75rem;
  color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
}

.idx-tile-tall { grid-row: span 2; }
.idx-tile-wide { grid-column: span 2; }

/* ⑥ 步骤卡片 */
.idx-steps {
  padding: 80px 0;
  background: #080808;
}

.idx-step-cards {
  display: flex;
  align-items: stretch;
  gap: 0;
  flex-wrap: wrap;
}

.idx-step-card {
  flex: 1;
  min-width: 180px;
  background: #0f0f0f;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 20px;
}

.idx-step-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--gradient);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  border-radius: 8px;
  margin-bottom: 14px;
}

.idx-step-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.idx-step-card p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.65;
}

.idx-step-arrow {
  display: flex;
  align-items: center;
  padding: 0 8px;
  color: var(--text-muted);
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* ⑦ 杂志式长文 */
.idx-read {
  padding: 80px 0;
  background: #060606;
  border-top: 1px solid var(--border);
}

.idx-prose { max-width: 780px; margin: 0 auto; }

.idx-chapter {
  padding: 48px 0;
  border-bottom: 1px solid #151515;
}
.idx-chapter:last-child { border-bottom: none; }

.idx-chapter-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.idx-chapter-label span {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
}

.idx-chapter h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.3;
}

.idx-chapter p {
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 16px;
  text-align: justify;
}

.idx-inline-img {
  margin: 0 0 16px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.idx-inline-right {
  float: right;
  margin: 0 0 16px 24px;
  max-width: 140px;
}
.idx-inline-left {
  float: left;
  margin: 0 24px 16px 0;
  max-width: 140px;
}
.idx-inline-img img { width: 100%; display: block; }

.idx-note {
  margin-top: 24px;
  padding: 20px 24px;
  background: rgba(255,102,0,0.05);
  border-left: 3px solid var(--primary);
  border-radius: 0 10px 10px 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ⑧ FAQ */
.idx-faq {
  padding: 80px 0;
  background: #0a0a0a;
  border-top: 1px solid var(--border);
}

.idx-dl { max-width: 780px; margin: 0 auto; }

.idx-dl > div {
  padding: 20px 0;
  border-bottom: 1px solid #1a1a1a;
}
.idx-dl > div:last-child { border-bottom: none; }

.idx-dl dt {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.idx-dl dd {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.7;
  margin: 0;
}

/* ⑨ 底部 CTA */
.idx-cta {
  padding: 32px 0;
  background: #111;
  border-top: 1px solid rgba(255,102,0,0.2);
}

.idx-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.idx-cta-inner p {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* 响应式 */
@media (max-width: 1024px) {
  .idx-mosaic {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 160px;
  }
  .idx-tile-wide { grid-column: span 2; }
}

@media (max-width: 768px) {
  .idx-hero { padding: 40px 0 32px; }
  .idx-hero-body { grid-template-columns: 1fr; gap: 32px; }
  .idx-phones { height: 280px; }
  .idx-phone-center { width: 150px; }
  .idx-phone-left, .idx-phone-right { width: 110px; }

  .idx-row, .idx-row-reverse {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 0;
  }
  .idx-row-reverse .idx-row-text,
  .idx-row-reverse .idx-row-img { order: unset; }
  .idx-row-img { max-width: 200px; margin: 0 auto; }

  .idx-mosaic {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 140px;
  }
  .idx-tile-tall { grid-row: span 1; }
  .idx-tile-wide { grid-column: span 2; }

  .idx-step-cards { flex-direction: column; gap: 12px; }
  .idx-step-arrow { display: none; }

  .idx-inline-right, .idx-inline-left {
    float: none;
    margin: 0 auto 20px;
    max-width: 160px;
  }

  .idx-cta-inner { flex-direction: column; text-align: center; }
  .idx-cta-inner .btn-download { width: 100%; justify-content: center; }

  .idx-jump { top: 61px; }
}
