/* 91PORN 官方网站样式 - 91po.baby */
: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; }
}

/* ===== 首页专属排版 (hp) ===== */
.page-home { background: #050505; }
.hp { overflow-x: hidden; }

/* Hero */
.hp-hero {
  position: relative;
  padding: 56px 0 72px;
  overflow: hidden;
}
.hp-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(255,102,0,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(255,102,0,0.06) 0%, transparent 50%),
    linear-gradient(180deg, #0d0d0d 0%, #050505 100%);
  pointer-events: none;
}
.hp-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}
.hp-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 20px;
}
.hp-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 0;
}
.hp-hero h1 span {
  display: block;
  margin-top: 10px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 0.72em;
}
.hp-lead {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.85;
  margin: 24px 0 28px;
  max-width: 520px;
}
.hp-hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 28px;
}
.hp-btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  border-radius: 50px;
  border: 1px solid #333;
  color: var(--text-secondary) !important;
  font-size: 0.92rem;
  text-decoration: none !important;
  transition: border-color 0.2s, color 0.2s;
}
.hp-btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary) !important;
  text-decoration: none !important;
}
.hp-pills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hp-pills li {
  font-size: 0.78rem;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid #2a2a2a;
  padding: 6px 14px;
  border-radius: 20px;
}

/* Dual phones */
.hp-phones {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 420px;
}
.hp-phone {
  margin: 0;
  border-radius: 28px;
  overflow: hidden;
  border: 2px solid #333;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
  background: #111;
}
.hp-phone img {
  display: block;
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
}
.hp-phone--back {
  position: absolute;
  width: 180px;
  right: 8%;
  top: 10%;
  transform: rotate(6deg);
  opacity: 0.75;
  z-index: 1;
}
.hp-phone--front {
  position: relative;
  width: 220px;
  z-index: 2;
  transform: rotate(-3deg);
}

/* Marquee band */
.hp-band {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #0a0a0a;
  overflow: hidden;
  padding: 12px 0;
}
.hp-band-track {
  display: flex;
  width: max-content;
  animation: hp-scroll 38s linear infinite;
}
.hp-band-track span {
  flex-shrink: 0;
  padding: 0 24px;
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}
.hp-band-track span::before {
  content: "·";
  color: var(--primary);
  margin-right: 10px;
}
@keyframes hp-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Section headers */
.hp-head { margin-bottom: 36px; }
.hp-head--center { text-align: center; }
.hp-head--center p { margin: 0 auto; }
.hp-head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 10px;
}
.hp-head p {
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.7;
  max-width: 560px;
}

/* Tab modules */
.hp-modules {
  padding: 72px 0;
  background: #080808;
}
.hp-tab-input { display: none; }
.hp-tab-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.hp-tab-labels label {
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: #141414;
  border: 1px solid #252525;
  cursor: pointer;
  transition: all 0.2s;
}
.hp-tab-labels label:hover {
  border-color: rgba(255,102,0,0.4);
  color: var(--text-primary);
}
#hp-t1:checked ~ .hp-tab-labels label[for="hp-t1"],
#hp-t2:checked ~ .hp-tab-labels label[for="hp-t2"],
#hp-t3:checked ~ .hp-tab-labels label[for="hp-t3"],
#hp-t4:checked ~ .hp-tab-labels label[for="hp-t4"],
#hp-t5:checked ~ .hp-tab-labels label[for="hp-t5"],
#hp-t6:checked ~ .hp-tab-labels label[for="hp-t6"] {
  background: rgba(255,102,0,0.12);
  border-color: var(--primary);
  color: var(--primary);
}
.hp-tab-panels { position: relative; min-height: 320px; }
.hp-tab-panel {
  display: none;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  background: #0f0f0f;
  border: 1px solid #222;
  border-radius: 20px;
  padding: 32px;
  animation: hp-fade 0.3s ease;
}
#hp-t1:checked ~ .hp-tab-panels .hp-tab-panel[data-tab="hp-t1"],
#hp-t2:checked ~ .hp-tab-panels .hp-tab-panel[data-tab="hp-t2"],
#hp-t3:checked ~ .hp-tab-panels .hp-tab-panel[data-tab="hp-t3"],
#hp-t4:checked ~ .hp-tab-panels .hp-tab-panel[data-tab="hp-t4"],
#hp-t5:checked ~ .hp-tab-panels .hp-tab-panel[data-tab="hp-t5"],
#hp-t6:checked ~ .hp-tab-panels .hp-tab-panel[data-tab="hp-t6"] {
  display: grid;
}
@keyframes hp-fade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.hp-tab-text h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.hp-tab-text p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.75;
}
.hp-tab-panel figure {
  margin: 0;
  width: 160px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #333;
  flex-shrink: 0;
}
.hp-tab-panel figure img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  display: block;
}

/* Bento gallery */
.hp-bento {
  padding: 72px 0;
  background: linear-gradient(180deg, #060606 0%, #0a0a0a 100%);
}
.hp-bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 12px;
}
.hp-bento-item {
  position: relative;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #222;
  background: #111;
}
.hp-bento-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.hp-bento-item:hover img { transform: scale(1.05); }
.hp-bento-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 10px 12px;
  font-size: 0.78rem;
  color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,0.88));
}
.hp-bento-item--lg {
  grid-column: span 2;
  grid-row: span 2;
}
.hp-bento-item--wide {
  grid-column: span 2;
}

/* Sort scroll */
.hp-sort {
  padding: 72px 0;
  background: #080808;
}
.hp-sort-scroll {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.hp-sort-card {
  margin: 0;
  background: #0f0f0f;
  border: 1px solid #222;
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.hp-sort-card:hover {
  border-color: rgba(255,102,0,0.35);
  transform: translateY(-3px);
}
.hp-sort-card img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  display: block;
}
.hp-sort-card figcaption {
  padding: 10px 12px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}
.hp-sort-card figcaption strong {
  display: block;
  color: var(--text-primary);
  font-size: 0.88rem;
  margin-bottom: 2px;
}

/* Download */
.hp-dl {
  padding: 72px 0;
  background: #0a0a0a;
}
.hp-dl-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255,102,0,0.2);
  background: #0c0c0c;
}
.hp-dl-main {
  padding: 40px;
  background: linear-gradient(135deg, rgba(255,102,0,0.1) 0%, transparent 70%);
}
.hp-dl-main h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 14px;
}
.hp-dl-main > p {
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.75;
  margin-bottom: 20px;
}
.hp-dl-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.hp-dl-tags span {
  font-size: 0.76rem;
  color: var(--text-muted);
  background: rgba(0,0,0,0.4);
  border: 1px solid #2a2a2a;
  padding: 5px 12px;
  border-radius: 6px;
}
.hp-dl-btn { margin-top: 4px; }
.hp-dl-steps {
  list-style: none;
  padding: 32px 36px;
  border-left: 1px solid #1e1e1e;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}
.hp-dl-steps li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.hp-dl-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}
.hp-dl-steps h3 {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.hp-dl-steps p {
  color: var(--text-secondary);
  font-size: 0.84rem;
  line-height: 1.6;
}

/* Guide cards */
.hp-guide {
  padding: 72px 0;
  background: #050505;
  border-top: 1px solid var(--border);
}
.hp-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.hp-guide-card {
  background: #0c0c0c;
  border: 1px solid #1e1e1e;
  border-radius: 16px;
  padding: 28px;
  transition: border-color 0.2s;
}
.hp-guide-card:hover { border-color: rgba(255,102,0,0.25); }
.hp-guide-card--full { grid-column: 1 / -1; }
.hp-guide-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(255,102,0,0.1);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
}
.hp-guide-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.hp-guide-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.82;
  margin-bottom: 10px;
  text-align: justify;
}
.hp-guide-card p:last-child { margin-bottom: 0; }
.hp-notice {
  margin-top: 14px;
  padding: 14px 16px;
  border-left: 3px solid var(--primary);
  background: rgba(255,102,0,0.05);
  font-size: 0.86rem;
  color: var(--text-secondary);
}
.hp-notice p { margin: 0; text-align: left; }

/* FAQ */
.hp-faq {
  padding: 72px 0;
  background: #0a0a0a;
}
.hp-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 960px;
  margin: 0 auto;
}
.hp-faq-item {
  background: #0f0f0f;
  border: 1px solid #222;
  border-radius: 12px;
  overflow: hidden;
}
.hp-faq-item summary {
  padding: 18px 20px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
}
.hp-faq-item summary::-webkit-details-marker { display: none; }
.hp-faq-item summary::after {
  content: "+";
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--primary);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.hp-faq-item[open] summary::after { transform: rotate(45deg); }
.hp-faq-item p {
  padding: 0 20px 18px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.7;
}

/* CTA */
.hp-cta {
  padding: 48px 0 64px;
  background: #050505;
}
.hp-cta-inner {
  text-align: center;
  padding: 48px 32px;
  border-radius: 24px;
  background:
    radial-gradient(ellipse 60% 80% at 50% 100%, rgba(255,102,0,0.12) 0%, transparent 70%),
    #0c0c0c;
  border: 1px solid rgba(255,102,0,0.18);
}
.hp-cta-inner h2 {
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 800;
  margin-bottom: 8px;
}
.hp-cta-inner p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 24px;
}

/* Responsive */
@media (max-width: 1024px) {
  .hp-hero-grid { grid-template-columns: 1fr; }
  .hp-phones { order: -1; min-height: 360px; }
  .hp-bento-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 180px; }
  .hp-bento-item--lg { grid-column: span 2; grid-row: span 2; }
  .hp-sort-scroll { grid-template-columns: repeat(3, 1fr); }
  .hp-dl-card { grid-template-columns: 1fr; }
  .hp-dl-steps { border-left: none; border-top: 1px solid #1e1e1e; }
  .hp-tab-panel { grid-template-columns: 1fr; }
  .hp-tab-panel figure { width: 140px; margin: 0 auto; }
}

@media (max-width: 768px) {
  .hp-hero { padding: 36px 0 48px; }
  .hp-phone--back { width: 140px; right: 4%; }
  .hp-phone--front { width: 180px; }
  .hp-tab-labels { gap: 6px; }
  .hp-tab-labels label { padding: 8px 14px; font-size: 0.82rem; }
  .hp-tab-panel { padding: 24px 20px; }
  .hp-bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
  }
  .hp-bento-item--lg,
  .hp-bento-item--wide { grid-column: span 2; grid-row: span 1; }
  .hp-sort-scroll {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .hp-sort-card {
    flex: 0 0 140px;
    scroll-snap-align: start;
  }
  .hp-guide-grid { grid-template-columns: 1fr; }
  .hp-faq-grid { grid-template-columns: 1fr; }
  .hp-dl-main { padding: 28px 24px; }
  .hp-dl-steps { padding: 24px; }
  .hp-cta-inner { padding: 36px 20px; }
}

