/* 91PORN 官方网站样式 - 91-porn.hair */
: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; }
}

/* ===== 首页专属排版 (nh-) ===== */
.page-home { background: #060606; }
.nh-main { overflow-x: hidden; }

.nh-label {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 10px;
}

.nh-section-header { margin-bottom: 48px; max-width: 640px; }
.nh-section-header.nh-center { margin-left: auto; margin-right: auto; text-align: center; }
.nh-section-header h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; line-height: 1.2; margin-bottom: 12px; }
.nh-section-header p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7; }

/* Hero */
.nh-hero {
  position: relative;
  padding: 64px 0 80px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.nh-hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 40%, rgba(255,102,0,0.14) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 20% 80%, rgba(255,102,0,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.nh-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.nh-badge-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }

.nh-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: rgba(20,20,20,0.8);
}

.nh-badge-live {
  border-color: rgba(255,102,0,0.4);
  color: var(--primary);
  background: rgba(255,102,0,0.08);
}

.nh-hero-text h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.nh-hero-text h1 em {
  font-style: normal;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nh-hero-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 28px;
}

.nh-hero-cta {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.nh-btn-lg { padding: 14px 32px !important; font-size: 1rem !important; }

.nh-link-arrow {
  color: var(--text-secondary) !important;
  font-size: 0.92rem;
  text-decoration: none !important;
  transition: color 0.2s;
}
.nh-link-arrow:hover { color: var(--primary) !important; }

.nh-pills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nh-pills li {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
}

.nh-pills strong { color: var(--text-primary); font-weight: 600; }

/* Phone stack */
.nh-hero-visual { display: flex; justify-content: center; }

.nh-phone-stack {
  position: relative;
  width: 340px;
  height: 400px;
}

.nh-phone {
  position: absolute;
  border-radius: 24px;
  overflow: hidden;
  border: 2px solid #333;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  margin: 0;
  transition: transform 0.4s ease;
}

.nh-phone img { width: 100%; aspect-ratio: 9/16; object-fit: cover; }

.nh-phone-back {
  left: 0; top: 30px; width: 160px;
  transform: rotate(-12deg);
  opacity: 0.7;
  z-index: 1;
}

.nh-phone-main {
  left: 50%; top: 0;
  transform: translateX(-50%);
  width: 200px;
  z-index: 3;
  border-color: rgba(255,102,0,0.35);
  box-shadow: 0 24px 60px rgba(255,102,0,0.15), 0 20px 50px rgba(0,0,0,0.5);
}

.nh-phone-front {
  right: 0; bottom: 10px; width: 150px;
  transform: rotate(10deg);
  opacity: 0.85;
  z-index: 2;
}

.nh-phone-stack:hover .nh-phone-main { transform: translateX(-50%) translateY(-8px); }

/* Highlights */
.nh-highlights {
  padding: 0;
  margin-top: -40px;
  position: relative;
  z-index: 2;
}

.nh-highlight-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.nh-highlight-card {
  background: rgba(18,18,18,0.95);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 20px;
  backdrop-filter: blur(8px);
  transition: border-color 0.25s, transform 0.25s;
}

.nh-highlight-card:hover {
  border-color: rgba(255,102,0,0.35);
  transform: translateY(-4px);
}

.nh-highlight-icon { font-size: 1.6rem; display: block; margin-bottom: 12px; }
.nh-highlight-card h2 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.nh-highlight-card p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; margin: 0; }

/* Features zigzag */
.nh-features { padding: 80px 0; background: #0a0a0a; }

.nh-feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 64px;
}

.nh-feature-reverse { direction: rtl; }
.nh-feature-reverse > * { direction: ltr; }

.nh-feature-img {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
  max-width: 280px;
  justify-self: center;
}

.nh-feature-img img { width: 100%; aspect-ratio: 9/16; object-fit: cover; }

.nh-feature-body { padding: 0 12px; }

.nh-step-num {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}

.nh-feature-body h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 14px; }
.nh-feature-body p { color: var(--text-secondary); line-height: 1.75; font-size: 0.95rem; }

.nh-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 16px;
}

.nh-mini-card {
  display: flex;
  gap: 16px;
  align-items: center;
  background: #111;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  transition: border-color 0.2s;
}

.nh-mini-card:hover { border-color: rgba(255,102,0,0.3); }
.nh-mini-card img { width: 72px; border-radius: 10px; flex-shrink: 0; aspect-ratio: 9/16; object-fit: cover; }
.nh-mini-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.nh-mini-card p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.55; margin: 0; }

/* Gallery */
.nh-gallery {
  padding: 72px 0;
  background: linear-gradient(180deg, #0d0d0d 0%, #080808 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.nh-gallery-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 20px 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) #1a1a1a;
}

.nh-gallery-track::-webkit-scrollbar { height: 5px; }
.nh-gallery-track::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

.nh-gallery-item {
  flex: 0 0 150px;
  scroll-snap-align: start;
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #111;
  transition: transform 0.25s, border-color 0.25s;
}

.nh-gallery-item:hover {
  transform: scale(1.04);
  border-color: rgba(255,102,0,0.4);
}

.nh-gallery-item img { width: 100%; aspect-ratio: 9/16; object-fit: cover; }
.nh-gallery-item figcaption {
  padding: 10px 8px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

/* Download steps */
.nh-download {
  padding: 80px 0;
  background: #0a0a0a;
}

.nh-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}

.nh-step-card {
  background: #111;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 22px;
  position: relative;
  transition: border-color 0.2s;
}

.nh-step-card:hover { border-color: rgba(255,102,0,0.35); }

.nh-step-badge {
  width: 36px;
  height: 36px;
  background: var(--gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  margin-bottom: 16px;
}

.nh-step-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.nh-step-card p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.65; margin: 0; }

.nh-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.nh-tags span {
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 6px 14px;
  border: 1px dashed #333;
  border-radius: 6px;
}

/* Guide */
.nh-guide {
  padding: 80px 0;
  background: #080808;
  border-top: 1px solid var(--border);
}

.nh-guide-wrap {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: start;
}

.nh-sidebar { position: sticky; top: 120px; }
.nh-sidebar h2 { font-size: 1.15rem; font-weight: 800; margin-bottom: 20px; }

.nh-toc {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nh-toc a {
  display: block;
  padding: 9px 14px;
  font-size: 0.84rem;
  color: var(--text-muted) !important;
  text-decoration: none !important;
  border-radius: 8px;
  border-left: 3px solid transparent;
  transition: all 0.2s;
}

.nh-toc a:hover {
  color: var(--primary) !important;
  background: rgba(255,102,0,0.06);
  border-left-color: var(--primary);
}

.nh-article-block {
  padding: 32px;
  margin-bottom: 24px;
  background: #0e0e0e;
  border: 1px solid var(--border);
  border-radius: 14px;
  scroll-margin-top: 120px;
}

.nh-article-block h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #1a1a1a;
}

.nh-article-block p {
  color: var(--text-secondary);
  margin-bottom: 14px;
  text-align: justify;
  line-height: 1.85;
  font-size: 0.95rem;
}

.nh-callout {
  margin-top: 20px;
  padding: 16px 20px;
  background: rgba(255,102,0,0.06);
  border: 1px solid rgba(255,102,0,0.2);
  border-radius: 10px;
}

.nh-callout p { margin: 0; font-size: 0.9rem; }

/* FAQ accordion */
.nh-faq {
  padding: 80px 0;
  background: #0a0a0a;
  border-top: 1px solid var(--border);
}

.nh-faq-list { max-width: 760px; margin: 0 auto; }

.nh-faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 10px;
  background: #111;
  overflow: hidden;
  transition: border-color 0.2s;
}

.nh-faq-item[open] { border-color: rgba(255,102,0,0.35); }

.nh-faq-item summary {
  padding: 18px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nh-faq-item summary::-webkit-details-marker { display: none; }

.nh-faq-item summary::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--primary);
  font-weight: 400;
  transition: transform 0.2s;
}

.nh-faq-item[open] summary::after { content: '−'; }

.nh-faq-item p {
  padding: 0 22px 18px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.7;
  margin: 0;
}

/* CTA */
.nh-cta {
  padding: 48px 0;
  background: linear-gradient(135deg, rgba(255,102,0,0.15) 0%, rgba(255,102,0,0.03) 50%, transparent 100%);
  border-top: 1px solid rgba(255,102,0,0.2);
}

.nh-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.nh-cta-text h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 4px; }
.nh-cta-text p { color: var(--text-secondary); font-size: 0.95rem; margin: 0; }

@media (max-width: 1024px) {
  .nh-highlight-grid { grid-template-columns: repeat(2, 1fr); }
  .nh-steps { grid-template-columns: repeat(2, 1fr); }
  .nh-guide-wrap { grid-template-columns: 1fr; }
  .nh-sidebar { position: static; }
  .nh-toc { flex-direction: row; flex-wrap: wrap; }
  .nh-toc a { border-left: none; border: 1px solid var(--border); }
}

@media (max-width: 768px) {
  .nh-hero { padding: 40px 0 56px; }
  .nh-hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .nh-highlights { margin-top: 0; padding-top: 40px; }
  .nh-highlight-grid { grid-template-columns: 1fr; }
  .nh-phone-stack { width: 280px; height: 320px; }
  .nh-phone-main { width: 170px; }
  .nh-phone-back { width: 130px; }
  .nh-phone-front { width: 120px; }
  .nh-feature-row,
  .nh-feature-reverse { grid-template-columns: 1fr; direction: ltr; gap: 24px; margin-bottom: 48px; }
  .nh-feature-img { max-width: 220px; }
  .nh-mini-grid { grid-template-columns: 1fr; }
  .nh-steps { grid-template-columns: 1fr; }
  .nh-gallery-item { flex: 0 0 130px; }
  .nh-cta-inner { flex-direction: column; text-align: center; }
  .nh-cta-inner .btn-download { width: 100%; justify-content: center; }
  .nh-article-block { padding: 22px 18px; }
}
