/* 91PORN 官方网站样式 - 91-po.homes */
: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; }
}

/* ===== 首页专属排版 ===== */
.page-home { background: #050506; }
.home-main { overflow-x: hidden; }

.home-kicker {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8ea4ff;
  margin-bottom: 18px;
  padding: 6px 14px;
  border: 1px solid rgba(142,164,255,0.25);
  border-radius: 999px;
  background: rgba(142,164,255,0.06);
}

.home-lead {
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.8;
  max-width: 540px;
  margin-bottom: 28px;
}

.home-ghost-link {
  color: var(--text-secondary) !important;
  font-size: 0.92rem;
  text-decoration: none !important;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s, border-color 0.2s;
}
.home-ghost-link:hover { color: var(--primary) !important; border-color: var(--primary); }

.home-section-title { margin-bottom: 36px; }
.home-section-title h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.home-section-title p { color: var(--text-secondary); max-width: 560px; line-height: 1.7; }
.home-section-title-light h2,
.home-section-title-light p { color: #fff; }
.home-section-title-light p { opacity: 0.88; }

/* Hero */
.home-hero {
  position: relative;
  padding: 48px 20px 0;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 80% 60% at 70% 0%, rgba(255,102,0,0.09), transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(142,164,255,0.06), transparent 55%),
    #050506;
}

.home-hero-rail {
  position: absolute;
  left: 20px;
  top: 48px;
  bottom: 72px;
  width: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  pointer-events: none;
}

.home-hero-rail-num {
  writing-mode: vertical-rl;
  font-size: 4.5rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(255,255,255,0.04);
  letter-spacing: -0.05em;
}

.home-hero-rail-line {
  flex: 1;
  width: 1px;
  background: linear-gradient(180deg, var(--primary), transparent);
}

.home-hero-rail-domain {
  writing-mode: vertical-rl;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.home-hero-body {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 72px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  min-height: 520px;
}

.home-hero-text h1 {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.home-hero-cta {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.home-metrics {
  list-style: none;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.home-metrics li {
  flex: 1;
  min-width: 120px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.home-metrics strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.home-metrics span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.home-device {
  justify-self: end;
  text-align: center;
}

.home-device-frame {
  display: inline-block;
  padding: 10px;
  border-radius: 32px;
  background: linear-gradient(160deg, #1a1a1a, #0c0c0c);
  border: 1px solid #2e2e2e;
  box-shadow: 0 32px 80px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.06);
}

.home-device-frame img {
  width: min(280px, 36vw);
  border-radius: 24px;
  aspect-ratio: 9/16;
  object-fit: cover;
}

.home-device figcaption {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.home-hero-foot {
  max-width: 1200px;
  margin: 32px auto 0;
  padding: 14px 20px 14px 92px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.home-hero-foot span::before {
  content: "·";
  margin-right: 20px;
  color: var(--primary);
}
.home-hero-foot span:first-child::before { content: none; margin: 0; }

/* Module deck */
.home-deck {
  position: sticky;
  top: 64px;
  z-index: 50;
  background: rgba(5,5,6,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.home-deck-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.home-deck-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  text-decoration: none !important;
  transition: background 0.2s, border-color 0.2s;
}

.home-deck-card:hover {
  background: rgba(255,255,255,0.04);
  border-color: var(--border);
}

.home-deck-idx {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.1em;
}

.home-deck-card strong {
  font-size: 0.88rem;
  color: var(--text-primary);
}

.home-deck-card small {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* Zigzag rows */
.home-zigzag { padding: 64px 0 24px; }

.home-row {
  max-width: 1200px;
  margin: 0 auto 48px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.home-row-reverse .home-row-media { order: 2; }
.home-row-reverse .home-row-copy { order: 1; }

.home-row-media img {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  border-radius: 20px;
  border: 1px solid #2a2a2a;
  aspect-ratio: 9/16;
  object-fit: cover;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.home-chapter {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--primary);
  margin-bottom: 12px;
}

.home-row-copy h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 14px;
  line-height: 1.3;
}

.home-row-copy p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 18px;
}

.home-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.home-tags li {
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 5px 12px;
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
}

/* Showcase tabs */
.home-showcase {
  padding: 72px 0;
  background: #0a0a0c;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.home-showcase-panel {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 32px;
  align-items: start;
}

.home-showcase-tabs {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.home-showcase-tabs button {
  text-align: left;
  padding: 14px 18px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}

.home-showcase-tabs button:hover {
  border-color: rgba(255,102,0,0.4);
  color: var(--text-primary);
}

.home-showcase-tabs button[aria-selected="true"] {
  background: rgba(255,102,0,0.1);
  border-color: var(--primary);
  color: var(--text-primary);
  font-weight: 600;
}

.home-showcase-view {
  position: relative;
  min-height: 520px;
}

.home-showcase-fig {
  margin: 0;
  text-align: center;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s;
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.home-showcase-fig.is-active {
  opacity: 1;
  transform: none;
  position: relative;
  pointer-events: auto;
}

.home-showcase-fig img {
  width: min(260px, 70%);
  margin: 0 auto;
  border-radius: 22px;
  border: 1px solid #333;
  aspect-ratio: 9/16;
  object-fit: cover;
}

.home-showcase-fig figcaption {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.home-showcase-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-top: 8px;
}

.home-showcase-grid img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  aspect-ratio: 9/16;
  object-fit: cover;
  opacity: 0.75;
  transition: opacity 0.2s;
}

.home-showcase-grid img:hover { opacity: 1; }

/* Install steps */
.home-install {
  padding: 72px 0;
  background: linear-gradient(135deg, #1a0f00 0%, #0d0804 40%, #050506 100%);
  border-bottom: 1px solid var(--border);
}

.home-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.home-steps li {
  padding: 24px 20px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,102,0,0.15);
  border-radius: 14px;
}

.home-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.home-steps h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.home-steps p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.65;
  margin: 0;
}

/* Prose article */
.home-read {
  padding: 72px 0;
  background: #050506;
}

.home-read-head {
  max-width: 720px;
  margin-bottom: 48px;
  padding-bottom: 28px;
  border-bottom: 2px solid var(--border);
}

.home-read-head h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.home-read-head p { color: var(--text-secondary); line-height: 1.75; }

.home-prose section {
  max-width: 780px;
  margin: 0 auto 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid #161616;
}

.home-prose section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.home-prose-marker {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 18px;
}

.home-prose-marker span {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #8ea4ff;
  padding: 4px 10px;
  border: 1px solid rgba(142,164,255,0.3);
  border-radius: 4px;
}

.home-prose-marker h3 {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.35;
}

.home-prose p {
  color: var(--text-secondary);
  line-height: 1.85;
  text-align: justify;
  margin-bottom: 14px;
}

.home-note {
  margin-top: 20px;
  padding: 18px 22px;
  background: rgba(255,102,0,0.06);
  border-left: 3px solid var(--primary);
  border-radius: 0 10px 10px 0;
}

.home-note p { margin: 0; font-size: 0.92rem; }

/* FAQ details */
.home-qa {
  padding: 72px 0;
  background: #0a0a0c;
  border-top: 1px solid var(--border);
}

.home-qa-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.home-qa-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #111;
  overflow: hidden;
}

.home-qa-item summary {
  padding: 18px 22px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.home-qa-item summary::-webkit-details-marker { display: none; }

.home-qa-item summary::after {
  content: "+";
  color: var(--primary);
  font-size: 1.2rem;
  font-weight: 400;
  transition: transform 0.2s;
}

.home-qa-item[open] summary::after {
  content: "−";
}

.home-qa-item p {
  padding: 0 22px 18px;
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* CTA band */
.home-cta {
  padding: 40px 0;
  background: linear-gradient(90deg, #ff6600 0%, #cc5200 100%);
}

.home-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.home-cta-label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 4px;
}

.home-cta-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
}

.home-cta .btn-download {
  background: #fff;
  color: #cc5200 !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.home-cta .btn-download:hover { color: #cc5200 !important; }

@media (max-width: 1024px) {
  .home-hero-body { grid-template-columns: 1fr; padding-left: 20px; min-height: auto; }
  .home-hero-rail { display: none; }
  .home-hero-foot { padding-left: 20px; }
  .home-deck-inner { grid-template-columns: repeat(3, 1fr); }
  .home-row { grid-template-columns: 1fr; gap: 28px; }
  .home-row-reverse .home-row-media,
  .home-row-reverse .home-row-copy { order: unset; }
  .home-showcase-panel { grid-template-columns: 1fr; }
  .home-showcase-tabs { flex-direction: row; flex-wrap: wrap; }
  .home-showcase-tabs button { flex: 1 1 calc(33% - 6px); min-width: 90px; text-align: center; padding: 10px; }
  .home-showcase-grid { grid-template-columns: repeat(3, 1fr); }
  .home-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .home-hero { padding-top: 32px; }
  .home-device { justify-self: center; }
  .home-deck { position: static; }
  .home-deck-inner { grid-template-columns: repeat(2, 1fr); }
  .home-showcase-tabs button { flex: 1 1 calc(50% - 4px); }
  .home-showcase-grid { grid-template-columns: repeat(3, 1fr); }
  .home-steps { grid-template-columns: 1fr; }
  .home-cta-inner { flex-direction: column; text-align: center; }
  .home-cta .btn-download { width: 100%; justify-content: center; }
  .home-metrics { flex-direction: column; }
  .home-metrics li { min-width: 0; }
}
