/* 91PORN 官方网站样式 - 91-po.pics */
: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; }
}

/* ===== 首页专属排版 (ix) ===== */
.page-home { background: #0b0b0d; }
.ix-main { overflow-x: hidden; }

/* Hero */
.ix-hero {
  padding: 48px 20px 0;
  max-width: 1180px;
  margin: 0 auto;
}

.ix-hero-wrap {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: center;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.ix-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: 4px;
  margin-bottom: 20px;
  letter-spacing: 0.04em;
}

.ix-hero-left h1 {
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}

.ix-hero-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 28px;
}

.ix-hero-btns {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.ix-link-arrow {
  color: var(--text-secondary) !important;
  font-size: 0.92rem;
  text-decoration: none !important;
}
.ix-link-arrow::after { content: " →"; color: var(--primary); }
.ix-link-arrow:hover { color: var(--primary) !important; }

.ix-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ix-tags li {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: #141418;
  padding: 4px 10px;
  border-radius: 3px;
}

.ix-hero-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.ix-phone {
  position: relative;
  width: 260px;
  padding: 12px 10px 14px;
  background: #16161a;
  border-radius: 32px;
  border: 2px solid #2e2e34;
  box-shadow: 0 32px 64px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.06);
}

.ix-phone-notch {
  width: 80px;
  height: 5px;
  background: #2a2a30;
  border-radius: 3px;
  margin: 0 auto 10px;
}

.ix-phone img {
  width: 100%;
  border-radius: 22px;
  aspect-ratio: 9/16;
  object-fit: cover;
}

.ix-nav-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
.ix-nav-pills span {
  font-size: 0.72rem;
  color: var(--text-muted);
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 20px;
}
.ix-nav-pills span.on {
  color: var(--primary);
  border-color: rgba(255,102,0,0.5);
  background: rgba(255,102,0,0.08);
}

.ix-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 32px;
  margin-bottom: 0;
}
.ix-metrics > div {
  background: #101012;
  padding: 20px 24px;
  text-align: center;
}
.ix-metrics strong {
  display: block;
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.ix-metrics span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Section label */
.ix-section-label {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 36px;
}
.ix-section-label span {
  font-size: 2.5rem;
  font-weight: 900;
  color: rgba(255,102,0,0.15);
  line-height: 1;
  font-family: Georgia, serif;
}
.ix-section-label h2 {
  font-size: 1.6rem;
  font-weight: 700;
}

/* Alternating module rows */
.ix-modules {
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 20px;
}

.ix-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: center;
  padding: 40px 0;
  border-bottom: 1px solid #1a1a1e;
}
.ix-row:last-child { border-bottom: none; }

.ix-row--flip { direction: rtl; }
.ix-row--flip > * { direction: ltr; }

.ix-row-media img {
  width: 220px;
  margin: 0 auto;
  border-radius: 16px;
  border: 1px solid #2a2a30;
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
  aspect-ratio: 9/16;
  object-fit: cover;
}

.ix-row-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}
.ix-row-body p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.75;
  max-width: 560px;
}

/* Masonry wall */
.ix-wall {
  background: #0e0e11;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 72px 20px;
}

.ix-wall-head {
  max-width: 1180px;
  margin: 0 auto 36px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}
.ix-wall-head p {
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 360px;
  text-align: right;
}

.ix-wall-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 72px;
  gap: 10px;
}

.ix-shot {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #252528;
  background: #141416;
  grid-column: span 1;
  grid-row: span 3;
}
.ix-shot--tall { grid-row: span 4; }
.ix-shot--wide { grid-column: span 2; }

.ix-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.ix-shot:hover img { transform: scale(1.04); }

.ix-shot figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 6px 10px;
  font-size: 0.72rem;
  color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  text-align: center;
}

/* Install cards */
.ix-install {
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 20px;
}

.ix-install-lead {
  color: var(--text-secondary);
  margin: -20px 0 32px;
  max-width: 640px;
}

.ix-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.ix-card {
  background: #121214;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 22px;
  position: relative;
  transition: border-color 0.2s;
}
.ix-card:hover { border-color: rgba(255,102,0,0.4); }

.ix-card-num {
  display: block;
  font-size: 2.8rem;
  font-weight: 900;
  color: rgba(255,102,0,0.12);
  line-height: 1;
  margin-bottom: 12px;
  font-family: Georgia, serif;
}

.ix-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.ix-card p {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Docs / prose */
.ix-docs {
  background: #0a0a0c;
  border-top: 1px solid var(--border);
  padding: 72px 20px;
}

.ix-docs-head {
  max-width: 800px;
  margin: 0 auto 40px;
}

.ix-chapters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.ix-chapters a {
  font-size: 0.8rem;
  color: var(--text-muted) !important;
  text-decoration: none !important;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: all 0.2s;
}
.ix-chapters a:hover {
  color: var(--primary) !important;
  border-color: rgba(255,102,0,0.45);
}

.ix-prose {
  max-width: 800px;
  margin: 0 auto;
}

.ix-prose section {
  padding: 36px 0;
  border-bottom: 1px solid #1c1c20;
}
.ix-prose section:last-child { border-bottom: none; }

.ix-prose h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding-left: 16px;
  border-left: 3px solid var(--primary);
}

.ix-prose p {
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.85;
  text-align: justify;
}

.ix-note {
  margin-top: 20px;
  padding: 16px 20px;
  background: rgba(255,102,0,0.05);
  border-left: 3px solid var(--primary);
}
.ix-note p { margin: 0; font-size: 0.9rem; }

/* FAQ accordion */
.ix-qa {
  max-width: 800px;
  margin: 0 auto;
  padding: 72px 20px;
}

.ix-accordion details {
  border-bottom: 1px solid var(--border);
}
.ix-accordion summary {
  padding: 18px 0;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-primary);
}
.ix-accordion summary::-webkit-details-marker { display: none; }
.ix-accordion summary::after {
  content: "+";
  font-size: 1.2rem;
  color: var(--primary);
  font-weight: 400;
  transition: transform 0.2s;
}
.ix-accordion details[open] summary::after {
  content: "−";
}
.ix-accordion details p {
  padding: 0 0 18px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* CTA */
.ix-cta {
  border-top: 1px solid var(--border);
  padding: 56px 20px;
  text-align: center;
  background: radial-gradient(ellipse at center, rgba(255,102,0,0.08) 0%, transparent 70%);
}

.ix-cta-inner { max-width: 520px; margin: 0 auto; }

.ix-cta-domain {
  font-size: 0.85rem;
  color: var(--primary);
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}

.ix-cta-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 24px;
}

/* Responsive */
@media (max-width: 1024px) {
  .ix-hero-wrap { grid-template-columns: 1fr; }
  .ix-hero-right { order: -1; }
  .ix-metrics { grid-template-columns: repeat(2, 1fr); }
  .ix-row, .ix-row--flip { grid-template-columns: 1fr; direction: ltr; text-align: center; }
  .ix-row-body p { max-width: 100%; }
  .ix-cards { grid-template-columns: repeat(2, 1fr); }
  .ix-wall-grid { grid-template-columns: repeat(4, 1fr); }
  .ix-wall-head p { text-align: left; }
}

@media (max-width: 768px) {
  .ix-hero { padding-top: 32px; }
  .ix-phone { width: 220px; }
  .ix-metrics { grid-template-columns: 1fr 1fr; }
  .ix-section-label span { font-size: 1.8rem; }
  .ix-section-label h2 { font-size: 1.3rem; }
  .ix-row-media img { width: 180px; }
  .ix-wall-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 60px; }
  .ix-shot--wide { grid-column: span 1; }
  .ix-cards { grid-template-columns: 1fr; }
  .ix-chapters a { font-size: 0.75rem; padding: 4px 8px; }
}

