/* 91PORNAPP Official Site - 91po.lol */
:root {
  --primary: #e63946;
  --primary-dark: #c1121f;
  --secondary: #1d3557;
  --accent: #f4a261;
  --bg: #f8f9fa;
  --text: #212529;
  --text-muted: #6c757d;
  --white: #ffffff;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --radius: 8px;
  --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;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

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;
}

/* Header */
.site-header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-link:hover {
  text-decoration: none;
}

.logo-link img {
  height: 48px;
  width: auto;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--secondary);
}

.main-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--text);
  font-weight: 500;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  text-decoration: none;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--secondary) 0%, #457b9d 100%);
  color: var(--white);
  padding: 3rem 1.5rem;
  text-align: center;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.hero p {
  font-size: 1.125rem;
  opacity: 0.95;
  max-width: 720px;
  margin: 0 auto 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.btn:hover {
  background: var(--primary-dark);
  color: var(--white);
  text-decoration: none;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--white);
  margin-left: 0.75rem;
}

.btn-outline:hover {
  background: var(--white);
  color: var(--secondary);
}

/* Layout */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.main-content {
  padding: 2.5rem 0 3rem;
}

/* Breadcrumb */
.breadcrumb {
  padding: 1rem 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb span {
  margin: 0 0.5rem;
}

/* Sections */
.section {
  margin-bottom: 3rem;
}

.section-title {
  font-size: 1.75rem;
  color: var(--secondary);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--primary);
  display: inline-block;
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--secondary);
  margin: 1.5rem 0 0.75rem;
}

/* Cards Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-body {
  padding: 1.25rem;
}

.card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--secondary);
}

.card-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Feature list */
.feature-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.feature-list li {
  background: var(--white);
  padding: 1.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
}

.feature-list li strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--secondary);
}

/* TOC */
.toc {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

.toc h2 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--secondary);
}

.toc ol {
  padding-left: 1.25rem;
}

.toc li {
  margin: 0.35rem 0;
}

/* FAQ */
.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-question {
  padding: 1rem 1.25rem;
  font-weight: 600;
  color: var(--secondary);
  cursor: pointer;
  background: var(--white);
  border: none;
  width: 100%;
  text-align: left;
  font-size: 1rem;
  font-family: inherit;
}

.faq-answer {
  padding: 0 1.25rem 1rem;
  color: var(--text-muted);
}

/* Article content */
.article-content {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.article-content h1 {
  font-size: 2rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.article-content h2 {
  font-size: 1.5rem;
  color: var(--secondary);
  margin: 2rem 0 1rem;
  padding-top: 0.5rem;
}

.article-content h3 {
  font-size: 1.2rem;
  color: var(--secondary);
  margin: 1.5rem 0 0.75rem;
}

.article-content p {
  margin-bottom: 1rem;
}

.article-content ul,
.article-content ol {
  margin: 0.75rem 0 1rem 1.5rem;
}

.article-content li {
  margin: 0.35rem 0;
}

/* Steps */
.steps {
  counter-reset: step;
  list-style: none;
  margin: 1.5rem 0;
}

.steps li {
  counter-increment: step;
  padding: 1rem 1rem 1rem 3.5rem;
  position: relative;
  background: var(--white);
  margin-bottom: 0.75rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius);
  text-align: center;
  margin: 2rem 0;
}

.cta-banner h2 {
  margin-bottom: 0.75rem;
}

.cta-banner .btn {
  background: var(--white);
  color: var(--primary);
  margin-top: 1rem;
}

.cta-banner .btn:hover {
  background: var(--bg);
}

/* Footer */
.site-footer {
  background: var(--secondary);
  color: rgba(255, 255, 255, 0.85);
  padding: 2.5rem 0 1.5rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-grid h3 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.footer-grid ul {
  list-style: none;
}

.footer-grid li {
  margin: 0.4rem 0;
}

.footer-grid a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.footer-grid a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.25rem;
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Error pages */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
}

.error-code {
  font-size: 6rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.error-page h1 {
  font-size: 1.75rem;
  margin: 1rem 0;
  color: var(--secondary);
}

.error-page p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Auth pages */
.auth-page {
  padding: 2rem 0 3rem;
}

.auth-card {
  max-width: 440px;
  margin: 0 auto;
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.auth-card h1 {
  font-size: 1.5rem;
  color: var(--secondary);
  text-align: center;
  margin-bottom: 0.5rem;
}

.auth-card .auth-desc {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.auth-form .form-group {
  margin-bottom: 1.25rem;
}

.auth-form label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--secondary);
  font-size: 0.9rem;
}

.auth-form input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.auth-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

.auth-form .btn {
  width: 100%;
  margin-top: 0.5rem;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.auth-footer {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.auth-footer a {
  font-weight: 500;
}

/* Responsive */
/* Image showcase layouts */
.img-text-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.img-text-row.reverse {
  direction: rtl;
}

.img-text-row.reverse > * {
  direction: ltr;
}

.img-text-row img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.img-text-content h3 {
  font-size: 1.35rem;
  color: var(--secondary);
  margin-bottom: 0.75rem;
}

.img-text-content p {
  margin-bottom: 0.75rem;
  color: var(--text);
}

.img-text-content ul {
  margin: 0.5rem 0 0 1.25rem;
}

.img-text-content li {
  margin: 0.3rem 0;
  color: var(--text-muted);
}

.showcase-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.showcase-item {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.showcase-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.showcase-item .showcase-caption {
  padding: 1.25rem;
}

.showcase-item h3 {
  font-size: 1.15rem;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.showcase-item p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.stat-item {
  background: var(--white);
  padding: 1.5rem 1rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--primary);
}

.stat-item strong {
  display: block;
  font-size: 1.75rem;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.stat-item span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.highlight-box {
  background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
  border: 1px solid #fde8e8;
  border-left: 4px solid var(--primary);
  padding: 1.5rem;
  border-radius: var(--radius);
  margin: 1.5rem 0;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.comparison-table th,
.comparison-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.comparison-table th {
  background: var(--secondary);
  color: var(--white);
  font-weight: 600;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table .check {
  color: #2a9d8f;
  font-weight: 700;
}

.comparison-table .cross {
  color: var(--text-muted);
}

.full-width-img {
  margin: 2rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.full-width-img img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}

.full-width-img figcaption {
  background: var(--white);
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  border-top: 1px solid #eee;
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    width: 100%;
    gap: 1rem;
  }

  .btn-outline {
    margin-left: 0;
    margin-top: 0.75rem;
    display: block;
  }

  .article-content {
    padding: 1.25rem;
  }

  .img-text-row,
  .showcase-gallery {
    grid-template-columns: 1fr;
  }

  .img-text-row.reverse {
    direction: ltr;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .showcase-item img {
    height: 200px;
  }
}
