/* 91PORN官方视频平台样式 - 91porny.monster */
: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;
  position: relative;
}

.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) {
  html { font-size: 15px; overflow-x: hidden; }
  body { overflow-x: hidden; max-width: 100%; }
  .menu-toggle { display: block; flex-shrink: 0; }
  .header-inner { padding: 10px 16px; gap: 8px; }
  .logo-link { min-width: 0; flex: 1; overflow: hidden; }
  .logo-img { width: 40px; height: 40px; flex-shrink: 0; }
  .logo-text { font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .nav-main {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10,10,10,0.98);
    flex-direction: column;
    padding: 12px 16px 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  }
  .nav-main.open { display: flex; }
  .nav-main a { width: 100%; text-align: center; padding: 12px; font-size: 0.92rem; }
  .container { padding: 0 16px; width: 100%; max-width: 100%; }
  .footer-brand p { overflow-wrap: break-word; word-break: break-word; }
  .page-header { padding: 32px 0 24px; }
  .page-header h1 { font-size: 1.6rem; }
  .page-body { padding: 32px 0 56px; }
  .legal-content h2 { font-size: 1.15rem; margin-top: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .site-footer { padding: 36px 0 20px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  .error-code { font-size: 5rem; }
}

/* ===== 首页专属排版（v2 杂志式布局）===== */
.page-home { background: #060606; }
.home-main { overflow-x: hidden; }

/* Hero */
.home-hero {
  position: relative;
  padding: 64px 0 56px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.home-hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 80% 40%, rgba(255,102,0,0.12) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(255,102,0,0.05) 0%, transparent 60%);
  pointer-events: none;
}
.home-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  min-width: 0;
}
.home-badge {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--primary);
  background: rgba(255,102,0,0.1);
  border: 1px solid rgba(255,102,0,0.25);
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}
.home-hero-text h1 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}
.home-lead {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 28px;
  max-width: 520px;
}
.home-hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.home-btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  border-radius: 50px;
  border: 1px solid var(--border);
  color: var(--text-secondary) !important;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: border-color 0.2s, color 0.2s;
}
.home-btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary) !important;
}
.home-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.home-tags li {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: #111;
  border: 1px solid #222;
  padding: 4px 12px;
  border-radius: 4px;
}

/* Device showcase */
.home-device {
  position: relative;
  display: flex;
  justify-content: center;
  min-width: 0;
}
.home-device-frame {
  width: 260px;
  border-radius: 32px;
  overflow: hidden;
  border: 3px solid #2a2a2a;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,102,0,0.08);
  background: #111;
}
.home-device-frame img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  display: block;
}
.home-device-float {
  position: absolute;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid #333;
  box-shadow: 0 12px 32px rgba(0,0,0,0.5);
}
.home-device-float img { width: 100%; aspect-ratio: 9/16; object-fit: cover; display: block; }
.home-device-float-a { left: 0; top: 50%; transform: translateY(-50%) rotate(-6deg); width: 90px; z-index: 2; }
.home-device-float-b { right: -10px; bottom: 20px; transform: rotate(8deg); width: 76px; z-index: 2; opacity: 0.9; }

/* Metrics */
.home-metrics {
  padding: 0;
  background: #0a0a0a;
  border-bottom: 1px solid var(--border);
}
.home-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.home-metric {
  padding: 28px 24px;
  border-right: 1px solid var(--border);
  text-align: center;
}
.home-metric:last-child { border-right: none; }
.home-metric strong {
  display: block;
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 6px;
}
.home-metric span {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Section headers */
.home-section-header { margin-bottom: 40px; }
.home-section-header h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 10px;
  line-height: 1.25;
}
.home-section-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 600px;
}
.home-section-header-center { text-align: center; }
.home-section-header-center p { margin: 0 auto; }

/* Channels */
.home-channels { padding: 72px 0; background: #080808; }
.home-channel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.home-channel-card {
  background: #111;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s;
}
.home-channel-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,102,0,0.35);
}
.home-channel-featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}
.home-channel-featured .home-channel-img { aspect-ratio: 16/9; }
.home-channel-img {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #0a0a0a;
}
.home-channel-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.home-channel-body { padding: 20px; }
.home-channel-num {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.1em;
}
.home-channel-body h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 6px 0 8px;
}
.home-channel-body p {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

/* Wall */
.home-wall {
  padding: 72px 0;
  background: linear-gradient(180deg, #0a0a0a 0%, #060606 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.home-wall-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  padding: 0 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.home-wall-item {
  flex: 0 0 160px;
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #111;
  transition: transform 0.2s;
}
.home-wall-item:hover { transform: scale(1.03); }
.home-wall-tall { flex-basis: 180px; }
.home-wall-item img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  display: block;
}
.home-wall-item figcaption {
  padding: 8px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

/* Download steps */
.home-download {
  padding: 72px 0;
  background: #080808;
}
.home-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}
.home-step-card {
  background: #111;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 22px;
  position: relative;
  transition: border-color 0.2s;
}
.home-step-card:hover { border-color: rgba(255,102,0,0.3); }
.home-step-num {
  width: 36px;
  height: 36px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 16px;
}
.home-step-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.home-step-card p {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}
.home-kw-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.home-kw-row li {
  font-size: 0.78rem;
  color: var(--text-muted);
  border: 1px dashed #2a2a2a;
  padding: 5px 14px;
  border-radius: 4px;
}

/* Guide */
.home-guide {
  padding: 72px 0;
  background: #060606;
  border-top: 1px solid var(--border);
}
.home-guide-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.home-guide-nav a {
  font-size: 0.82rem;
  color: var(--text-muted) !important;
  text-decoration: none !important;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.home-guide-nav a:hover {
  color: var(--primary) !important;
  border-color: rgba(255,102,0,0.4);
  background: rgba(255,102,0,0.06);
}
.home-article {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.home-article-block {
  padding: 36px 0;
  border-bottom: 1px solid #1a1a1a;
}
.home-article-block:last-child { border-bottom: none; }
.home-article-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 18px;
}
.home-article-idx {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--primary);
  opacity: 0.7;
  flex-shrink: 0;
}
.home-article-head h3 {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.35;
  margin: 0;
}
.home-article-block p {
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.85;
  margin-bottom: 12px;
  text-align: justify;
}
.home-article-block p:last-child { margin-bottom: 0; }
.home-article-split {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: start;
}
.home-article-with-img .home-article-split { grid-template-columns: auto 1fr; }
.home-article-fig {
  margin: 0;
  flex-shrink: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.home-article-fig img {
  width: 140px;
  aspect-ratio: 9/16;
  object-fit: cover;
  display: block;
}
.home-callout {
  margin-top: 18px;
  padding: 16px 20px;
  background: rgba(255,102,0,0.06);
  border: 1px solid rgba(255,102,0,0.2);
  border-radius: 10px;
}
.home-callout p { margin: 0; font-size: 0.9rem; }

/* FAQ */
.home-faq {
  padding: 72px 0;
  background: #0a0a0a;
  border-top: 1px solid var(--border);
}
.home-faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.home-faq-item {
  background: #111;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.home-faq-item[open] { border-color: rgba(255,102,0,0.3); }
.home-faq-item summary {
  padding: 18px 22px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-primary);
}
.home-faq-item summary::-webkit-details-marker { display: none; }
.home-faq-item summary::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--primary);
  font-weight: 400;
  flex-shrink: 0;
  margin-left: 12px;
}
.home-faq-item[open] summary::after { content: '−'; }
.home-faq-item p {
  padding: 0 22px 18px;
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* CTA */
.home-cta {
  padding: 56px 0;
  background: linear-gradient(135deg, rgba(255,102,0,0.15) 0%, rgba(255,102,0,0.03) 60%, transparent 100%);
  border-top: 1px solid rgba(255,102,0,0.12);
}
.home-cta-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.home-cta-label {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--primary);
  font-weight: 700;
}
.home-cta-text {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
}

/* Responsive */
@media (max-width: 1024px) {
  .home-metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .home-metric:nth-child(2) { border-right: none; }
  .home-metric:nth-child(1),
  .home-metric:nth-child(2) { border-bottom: 1px solid var(--border); }
  .home-channel-grid { grid-template-columns: repeat(2, 1fr); }
  .home-channel-featured { grid-column: span 2; }
  .home-steps-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .home-hero { padding: 36px 0 40px; }
  .home-hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .home-hero-text h1 { font-size: 1.65rem; }
  .home-lead { font-size: 0.92rem; max-width: 100%; }
  .home-device { order: -1; }
  .home-device-frame { width: 200px; border-radius: 24px; }
  .home-device-float-a { width: 68px; left: 10%; }
  .home-device-float-b { width: 58px; right: 10%; }

  .home-metrics-grid { grid-template-columns: 1fr 1fr; }
  .home-metric { padding: 20px 14px; }
  .home-metric strong { font-size: 0.95rem; }
  .home-metric span { font-size: 0.75rem; }

  .home-channels,
  .home-wall,
  .home-download,
  .home-guide,
  .home-faq { padding: 48px 0; }

  .home-section-header h2 { font-size: 1.35rem; }
  .home-section-header p { font-size: 0.88rem; }

  .home-channel-grid { grid-template-columns: 1fr; }
  .home-channel-featured {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }

  .home-wall-item { flex: 0 0 130px; }
  .home-wall-tall { flex-basis: 145px; }

  .home-steps-grid { grid-template-columns: 1fr; }
  .home-step-card { padding: 22px 18px; }

  .home-guide-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 16px;
  }
  .home-guide-nav::-webkit-scrollbar { display: none; }
  .home-guide-nav a { flex-shrink: 0; white-space: nowrap; }

  .home-article-block { padding: 28px 0; }
  .home-article-head { flex-direction: column; gap: 6px; }
  .home-article-head h3 { font-size: 1.1rem; }
  .home-article-block p { font-size: 0.9rem; text-align: left; }
  .home-article-split,
  .home-article-with-img .home-article-split {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .home-article-fig { justify-self: center; }
  .home-article-fig img { width: 120px; }

  .home-cta { padding: 40px 0; }
  .home-cta-text { font-size: 1.05rem; }
}

@media (max-width: 480px) {
  .home-hero-text h1 { font-size: 1.45rem; }
  .home-device-frame { width: 170px; }
  .home-device-float { display: none; }
  .home-metrics-grid { grid-template-columns: 1fr; }
  .home-metric { border-right: none !important; border-bottom: 1px solid var(--border); }
  .home-metric:last-child { border-bottom: none; }
  .home-wall-item { flex: 0 0 110px; }
  .home-kw-row li { font-size: 0.72rem; padding: 4px 10px; }
}
