/* 91PORNAPP 官方下载中心样式 - 91porns.mom */
: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; }
}

/* ===== 首页专属排版 (v2) ===== */
.page-home { background: #050505; }
.v2-main { overflow-x: hidden; }

.v2-tag {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 10px;
}

.v2-head { margin-bottom: 48px; }
.v2-head-center { text-align: center; max-width: 560px; margin-left: auto; margin-right: auto; }
.v2-head h2, .v2-head-center h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 10px;
}
.v2-head p, .v2-head-center p { color: var(--text-secondary); font-size: 0.92rem; }

.v2-hero {
  position: relative;
  padding: 72px 0 40px;
  text-align: center;
  overflow: hidden;
}

.v2-hero-grid-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,102,0,0.05) 0%, transparent 40%),
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(255,255,255,0.025) 39px, rgba(255,255,255,0.025) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(255,255,255,0.025) 39px, rgba(255,255,255,0.025) 40px);
  pointer-events: none;
}

.v2-hero-center { position: relative; }

.v2-kicker {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

.v2-hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 22px;
}
.v2-hero h1 span { color: var(--primary); }

.v2-hero-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 680px;
  margin: 0 auto 32px;
}

.v2-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.v2-btn-lg { padding: 14px 36px; font-size: 1rem; }

.v2-link-arrow {
  color: var(--text-secondary) !important;
  font-size: 0.95rem;
  text-decoration: none !important;
  position: relative;
  padding-right: 20px;
}
.v2-link-arrow::after {
  content: '→';
  position: absolute;
  right: 0;
  color: var(--primary);
  transition: transform 0.2s;
}
.v2-link-arrow:hover::after { transform: translateX(4px); }
.v2-link-arrow:hover { color: var(--primary) !important; }

.v2-phones {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
  perspective: 800px;
  padding-bottom: 20px;
}

.v2-phone {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid #2a2a2a;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  transition: transform 0.3s;
}
.v2-phone img { width: 100%; aspect-ratio: 9/16; object-fit: cover; display: block; }

.v2-phone-left {
  width: 110px;
  transform: rotate(-12deg) translateY(20px) translateX(20px);
  z-index: 1;
  opacity: 0.85;
}
.v2-phone-center {
  width: 170px;
  z-index: 3;
  border-color: rgba(255,102,0,0.4);
  box-shadow: 0 24px 60px rgba(255,102,0,0.15), 0 20px 50px rgba(0,0,0,0.5);
}
.v2-phone-right {
  width: 110px;
  transform: rotate(12deg) translateY(20px) translateX(-20px);
  z-index: 1;
  opacity: 0.85;
}

.v2-phones:hover .v2-phone-left { transform: rotate(-8deg) translateY(10px) translateX(10px); }
.v2-phones:hover .v2-phone-center { transform: translateY(-8px); }
.v2-phones:hover .v2-phone-right { transform: rotate(8deg) translateY(10px) translateX(-10px); }

.v2-metrics {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #0a0a0a;
  padding: 0;
}

.v2-metrics-row {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.v2-metrics-row li {
  padding: 24px 16px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.v2-metrics-row li:last-child { border-right: none; }
.v2-metrics-row b {
  display: block;
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.v2-metrics-row span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.v2-modules { padding: 80px 0 0; }
.v2-zigzag { margin-top: 16px; }

.v2-zig {
  padding: 56px 0;
  border-top: 1px solid var(--border);
}
.v2-zig:nth-child(odd) { background: #080808; }
.v2-zig:nth-child(even) { background: #0c0c0c; }

.v2-zig-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.v2-zig-reverse .v2-zig-inner { direction: rtl; }
.v2-zig-reverse .v2-zig-inner > * { direction: ltr; }

.v2-zig-num {
  display: block;
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(255,102,0,0.15);
  margin-bottom: 8px;
  letter-spacing: -0.04em;
}
.v2-zig-text h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 14px;
}
.v2-zig-text p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.75;
  max-width: 440px;
}

.v2-zig-img {
  margin: 0;
  justify-self: center;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid #2a2a2a;
  box-shadow: 0 20px 48px rgba(0,0,0,0.45);
  max-width: 220px;
}
.v2-zig-img img { width: 100%; aspect-ratio: 9/16; object-fit: cover; }

.v2-marquee-section {
  padding: 80px 0;
  background: #050505;
  border-top: 1px solid var(--border);
  overflow: hidden;
}

.v2-marquee-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}

.v2-marquee {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: v2-scroll 40s linear infinite;
}
.v2-marquee-b { animation-direction: reverse; animation-duration: 45s; }

@keyframes v2-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.v2-marquee figure {
  flex-shrink: 0;
  width: 130px;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #111;
}
.v2-marquee img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
}
.v2-marquee figcaption {
  padding: 8px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.v2-download {
  padding: 80px 0;
  background: #0a0a0a;
  border-top: 1px solid var(--border);
}

.v2-download-card {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: start;
  background: linear-gradient(145deg, #111 0%, #0a0a0a 100%);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 48px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.35);
}

.v2-download-left h2 {
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 14px;
  line-height: 1.25;
}
.v2-download-left > p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.v2-kw {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.v2-kw li {
  font-size: 0.75rem;
  color: var(--text-muted);
  border: 1px dashed #333;
  padding: 4px 10px;
  border-radius: 4px;
}

.v2-pipeline {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.v2-pipeline li {
  background: #141414;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 20px 20px;
}
.v2-pipe-dot {
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: 50%;
  margin-bottom: 12px;
  box-shadow: 0 0 12px rgba(255,102,0,0.5);
}
.v2-pipeline h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.v2-pipeline p {
  color: var(--text-secondary);
  font-size: 0.84rem;
  line-height: 1.6;
}

.v2-guide {
  padding: 80px 0;
  background: #050505;
  border-top: 1px solid var(--border);
}

.v2-guide-wrap {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  align-items: start;
}

.v2-sidebar {
  position: sticky;
  top: 120px;
  background: #0c0c0c;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 20px;
}
.v2-sidebar h2 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.v2-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.v2-sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.84rem;
  color: var(--text-muted) !important;
  text-decoration: none !important;
  transition: background 0.2s, color 0.2s;
}
.v2-sidebar-nav a span {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  opacity: 0.7;
  min-width: 22px;
}
.v2-sidebar-nav a:hover {
  background: rgba(255,102,0,0.08);
  color: var(--text-primary) !important;
}

.v2-prose { min-width: 0; }

.v2-prose-block {
  padding-bottom: 36px;
  margin-bottom: 36px;
  border-bottom: 1px solid #1a1a1a;
}
.v2-prose-block:last-child { border-bottom: none; margin-bottom: 0; }

.v2-prose-block h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.v2-prose-block h3::before {
  content: '';
  width: 4px;
  height: 1.1em;
  background: var(--gradient);
  border-radius: 2px;
  flex-shrink: 0;
}
.v2-prose-block p {
  color: var(--text-secondary);
  margin-bottom: 14px;
  text-align: justify;
  line-height: 1.85;
  font-size: 0.94rem;
}

.v2-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;
}
.v2-note p { margin: 0; font-size: 0.92rem; }

.v2-faq {
  padding: 80px 0;
  background: #0a0a0a;
  border-top: 1px solid var(--border);
}

.v2-faq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.v2-faq-card {
  background: #111;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  transition: border-color 0.2s, transform 0.2s;
}
.v2-faq-card:hover {
  border-color: rgba(255,102,0,0.35);
  transform: translateY(-3px);
}
.v2-faq-card h3 {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}
.v2-faq-card p {
  color: var(--text-secondary);
  font-size: 0.86rem;
  line-height: 1.65;
  margin: 0;
}

.v2-cta {
  padding: 64px 0 80px;
  background: #050505;
}

.v2-cta-box {
  text-align: center;
  background: var(--gradient);
  border-radius: 24px;
  padding: 56px 32px;
  box-shadow: 0 20px 60px rgba(255,102,0,0.25);
}
.v2-cta-box h2 {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}
.v2-cta-box p {
  color: rgba(255,255,255,0.85);
  font-size: 0.92rem;
  margin-bottom: 28px;
}

@media (max-width: 1024px) {
  .v2-zig-inner { grid-template-columns: 1fr; gap: 32px; }
  .v2-zig-reverse .v2-zig-inner { direction: ltr; }
  .v2-zig-img { order: -1; }
  .v2-download-card { grid-template-columns: 1fr; padding: 32px; }
  .v2-guide-wrap { grid-template-columns: 1fr; }
  .v2-sidebar { position: static; }
  .v2-sidebar-nav { flex-direction: row; flex-wrap: wrap; }
  .v2-faq-grid { grid-template-columns: repeat(2, 1fr); }
  .v2-metrics-row { grid-template-columns: repeat(2, 1fr); }
  .v2-metrics-row li:nth-child(2) { border-right: none; }
  .v2-metrics-row li { border-bottom: 1px solid var(--border); }
  .v2-metrics-row li:nth-last-child(-n+2) { border-bottom: none; }
}

@media (max-width: 768px) {
  .v2-hero { padding: 48px 0 32px; }
  .v2-phone-left, .v2-phone-right { width: 80px; }
  .v2-phone-center { width: 130px; }
  .v2-pipeline { grid-template-columns: 1fr; }
  .v2-faq-grid { grid-template-columns: 1fr; }
  .v2-metrics-row { grid-template-columns: 1fr; }
  .v2-metrics-row li { border-right: none !important; border-bottom: 1px solid var(--border) !important; }
  .v2-metrics-row li:last-child { border-bottom: none !important; }
  .v2-marquee figure { width: 110px; }
  .v2-cta-box { padding: 40px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .v2-marquee { animation: none; }
}
