/* 91PORN 视频官网样式 - 91-po.beauty */
: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 { overflow-x: hidden; }

.idx-hero {
  position: relative;
  padding: 48px 0 64px;
  min-height: 88vh;
  display: flex;
  align-items: center;
}

.idx-hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 55vw;
  height: 55vw;
  max-width: 680px;
  max-height: 680px;
  background: radial-gradient(circle, rgba(255,102,0,0.14) 0%, transparent 68%);
  pointer-events: none;
}

.idx-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.idx-badge {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--primary);
  border: 1px solid rgba(255,102,0,0.35);
  padding: 6px 14px;
  border-radius: 4px;
  margin-bottom: 24px;
}

.idx-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.idx-hero h1 em {
  display: block;
  font-style: normal;
  font-size: 0.42em;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 12px;
  letter-spacing: 0.02em;
}

.idx-hero-lead {
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.85;
  max-width: 540px;
  margin: 28px 0 32px;
}

.idx-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.idx-link-arrow {
  color: var(--text-muted) !important;
  font-size: 0.9rem;
  text-decoration: none !important;
}
.idx-link-arrow:hover { color: var(--primary) !important; }

.idx-hero-device { position: relative; display: flex; justify-content: center; }

.idx-device-frame {
  width: min(280px, 72vw);
  border-radius: 36px;
  padding: 10px;
  background: linear-gradient(160deg, #2a2a2a 0%, #111 100%);
  border: 1px solid #3a3a3a;
  box-shadow: 0 40px 80px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.06);
}

.idx-device-frame img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  border-radius: 28px;
}

.idx-device-tags {
  list-style: none;
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.idx-device-tags li {
  position: absolute;
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
  background: rgba(20,20,20,0.88);
  border: 1px solid #444;
  padding: 6px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

.idx-device-tags li:nth-child(1) { top: 8%; left: -8%; }
.idx-device-tags li:nth-child(2) { top: 42%; right: -12%; }
.idx-device-tags li:nth-child(3) { bottom: 18%; left: -6%; }

.idx-marquee {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #0c0c0c;
  overflow: hidden;
  padding: 14px 0;
}

.idx-marquee-track {
  display: flex;
  width: max-content;
  animation: idx-scroll 40s linear infinite;
}

.idx-marquee-track span {
  flex-shrink: 0;
  padding: 0 28px;
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}
.idx-marquee-track span::before {
  content: "◆";
  color: var(--primary);
  margin-right: 12px;
  font-size: 0.55rem;
  vertical-align: middle;
}

@keyframes idx-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.idx-section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.idx-section-sub {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 560px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.idx-catalog {
  padding: 80px 0;
  background: #080808;
}

.idx-catalog-list { list-style: none; }

.idx-catalog-item {
  display: grid;
  grid-template-columns: 72px 1fr minmax(140px, 220px);
  gap: 28px;
  align-items: center;
  padding: 36px 0;
  border-bottom: 1px solid #1a1a1a;
}

.idx-catalog-item:first-child { border-top: 1px solid #1a1a1a; }

.idx-catalog-num {
  font-size: 2.4rem;
  font-weight: 900;
  color: rgba(255,102,0,0.25);
  line-height: 1;
}

.idx-catalog-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.idx-catalog-body p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

.idx-catalog-thumb {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #333;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

.idx-catalog-thumb img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
}

.idx-catalog-item--flip .idx-catalog-thumb { order: -1; }

.idx-mosaic {
  padding: 80px 0;
  background: linear-gradient(180deg, #0a0a0a 0%, #060606 100%);
}

.idx-mosaic-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 120px;
  gap: 10px;
}

.idx-mosaic-cell {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #252525;
  position: relative;
  background: #111;
}

.idx-mosaic-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.idx-mosaic-cell:hover img { transform: scale(1.04); }

.idx-mosaic-cell figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 10px;
  font-size: 0.75rem;
  color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
}

.idx-mosaic-cell--a { grid-column: span 2; grid-row: span 3; }
.idx-mosaic-cell--b { grid-column: span 2; grid-row: span 2; }
.idx-mosaic-cell--c { grid-column: span 2; grid-row: span 2; }
.idx-mosaic-cell--d { grid-column: span 2; grid-row: span 2; }
.idx-mosaic-cell--e { grid-column: span 2; grid-row: span 2; }
.idx-mosaic-cell--f { grid-column: span 3; grid-row: span 2; }
.idx-mosaic-cell--g { grid-column: span 3; grid-row: span 2; }

.idx-install {
  padding: 80px 0;
  background: #080808;
}

.idx-install-wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.idx-install-panel {
  background: #0f0f0f;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
}

.idx-install-panel h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.idx-install-panel > p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.75;
}

.idx-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.idx-tags li {
  font-size: 0.78rem;
  color: var(--text-muted);
  background: #1a1a1a;
  padding: 6px 14px;
  border-radius: 6px;
}

.idx-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  list-style: none;
}

.idx-step {
  background: #111;
  border: 1px solid #252525;
  border-radius: 14px;
  padding: 22px;
  transition: border-color 0.2s;
}

.idx-step:hover { border-color: rgba(255,102,0,0.4); }

.idx-step strong {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 10px;
  opacity: 0.7;
}

.idx-step h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.idx-step p {
  color: var(--text-secondary);
  font-size: 0.84rem;
  line-height: 1.65;
}

.idx-chapters {
  padding: 80px 0;
  background: #060606;
  border-top: 1px solid var(--border);
}

.idx-chapter {
  position: relative;
  padding: 40px 0 40px 100px;
  border-bottom: 1px solid #161616;
}

.idx-chapter:last-child { border-bottom: none; }

.idx-chapter-num {
  position: absolute;
  left: 0;
  top: 36px;
  font-size: 3.5rem;
  font-weight: 900;
  color: rgba(255,102,0,0.12);
  line-height: 1;
  user-select: none;
}

.idx-chapter h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.idx-chapter p {
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.88;
  text-align: justify;
}

.idx-notice {
  margin-top: 20px;
  padding: 16px 20px;
  border-left: 3px solid var(--primary);
  background: rgba(255,102,0,0.05);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.idx-notice p { margin: 0; }

.idx-faq {
  padding: 80px 0;
  background: #0a0a0a;
}

.idx-faq-list { list-style: none; max-width: 820px; }

.idx-faq-item {
  border-bottom: 1px solid #222;
}

.idx-faq-item summary {
  padding: 20px 0;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--text-primary);
}

.idx-faq-item summary::-webkit-details-marker { display: none; }

.idx-faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--primary);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.idx-faq-item[open] summary::after { transform: rotate(45deg); }

.idx-faq-item p {
  padding: 0 0 20px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.75;
}

.idx-cta {
  padding: 56px 0 72px;
  background: #060606;
}

.idx-cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding: 36px 40px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255,102,0,0.15) 0%, rgba(255,102,0,0.03) 60%, transparent 100%);
  border: 1px solid rgba(255,102,0,0.2);
}

.idx-cta-box h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.idx-cta-box p {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

@media (max-width: 1024px) {
  .idx-hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .idx-hero { min-height: auto; padding: 40px 0 56px; }
  .idx-hero-device { order: -1; }
  .idx-device-tags li:nth-child(1) { left: 0; }
  .idx-device-tags li:nth-child(2) { right: 0; }
  .idx-mosaic-grid { grid-template-columns: repeat(4, 1fr); }
  .idx-mosaic-cell--a { grid-column: span 2; grid-row: span 2; }
  .idx-mosaic-cell--b, .idx-mosaic-cell--c, .idx-mosaic-cell--d,
  .idx-mosaic-cell--e { grid-column: span 2; grid-row: span 2; }
  .idx-mosaic-cell--f, .idx-mosaic-cell--g { grid-column: span 4; grid-row: span 2; }
  .idx-install-wrap { grid-template-columns: 1fr; }
  .idx-catalog-item { grid-template-columns: 56px 1fr 160px; gap: 20px; }
  .idx-chapter { padding-left: 72px; }
  .idx-chapter-num { font-size: 2.5rem; }
}

@media (max-width: 768px) {
  .idx-catalog-item,
  .idx-catalog-item--flip {
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: left;
  }
  .idx-catalog-item--flip .idx-catalog-thumb { order: 0; }
  .idx-catalog-num { font-size: 1.8rem; }
  .idx-catalog-thumb { max-width: 160px; }
  .idx-mosaic-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 100px;
  }
  .idx-mosaic-cell--a, .idx-mosaic-cell--b, .idx-mosaic-cell--c,
  .idx-mosaic-cell--d, .idx-mosaic-cell--e, .idx-mosaic-cell--f,
  .idx-mosaic-cell--g { grid-column: span 1; grid-row: span 2; }
  .idx-steps { grid-template-columns: 1fr; }
  .idx-chapter { padding-left: 0; padding-top: 56px; }
  .idx-chapter-num { top: 8px; font-size: 2rem; }
  .idx-cta-box { flex-direction: column; text-align: center; padding: 28px 24px; }
  .idx-cta-box .btn-download { width: 100%; justify-content: center; }
  .idx-device-tags { display: none; }
}

