/* 重口社官网 zkapp.forum */
:root {
  --bg: #0a0a0c;
  --bg-2: #121218;
  --bg-3: #1a1a22;
  --text: #e8e6e3;
  --text-muted: #9a9690;
  --accent: #c41e3a;
  --accent-hover: #e02848;
  --border: #2a2a35;
  --max: 1100px;
  --radius: 8px;
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  font-size: 16px;
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}

.container {
  width: 92%;
  max-width: var(--max);
  margin: 0 auto;
}

/* Header */
.site-header {
  background: rgba(10, 10, 12, 0.95);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 16px;
  position: relative;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}

.logo-link:hover {
  text-decoration: none;
  color: var(--text);
}

.logo-link img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.logo-text span {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 6px;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.95rem;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--text);
  background: var(--bg-3);
  text-decoration: none;
}

/* Hero */
.hero {
  position: relative;
  padding: 56px 0 48px;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(196, 30, 58, 0.18) 0%, transparent 55%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  line-height: 1.35;
  margin-bottom: 16px;
  font-weight: 800;
}

.hero-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 28px;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-secondary {
  background: var(--bg-3);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: #242430;
  color: var(--text);
}

.hero-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero-shot {
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

/* Sections */
.section {
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
}

.section-alt {
  background: var(--bg-2);
}

.section-title {
  font-size: 1.75rem;
  margin-bottom: 12px;
  font-weight: 700;
}

.section-desc {
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 720px;
}

.section h2 {
  font-size: 1.55rem;
  margin: 36px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.section h3 {
  font-size: 1.2rem;
  margin: 28px 0 10px;
  color: #f0eeea;
}

.section p {
  margin-bottom: 16px;
  color: #d4d1cb;
}

.section ul,
.section ol {
  margin: 0 0 20px 1.4em;
  color: #d4d1cb;
}

.section li {
  margin-bottom: 8px;
}

/* Feature / screenshot grids */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 28px 0;
}

.feature-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.feature-card img {
  width: 100%;
  margin-bottom: 12px;
  border: 1px solid var(--border);
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  border: none;
}

.feature-card p {
  font-size: 0.92rem;
  margin: 0;
  color: var(--text-muted);
}

.shot-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 24px 0;
}

.shot-row figcaption,
.feature-card figcaption {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 8px;
  text-align: center;
}

.shot-full {
  margin: 24px 0;
}

.shot-full img {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  border: 1px solid var(--border);
}

/* TOC */
.toc {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0 36px;
}

.toc h2 {
  font-size: 1.1rem;
  margin: 0 0 12px;
  border: none;
  padding: 0;
}

.toc ol {
  margin: 0 0 0 1.2em;
}

.toc a {
  color: var(--text);
}

/* Breadcrumb */
.breadcrumb {
  padding: 16px 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-muted);
}

/* Legal / content pages */
.page-hero {
  padding: 36px 0 20px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.page-hero p {
  color: var(--text-muted);
}

.content-page {
  padding: 40px 0 64px;
}

.content-page h2 {
  font-size: 1.35rem;
  margin: 32px 0 12px;
}

.content-page h3 {
  font-size: 1.1rem;
  margin: 24px 0 10px;
}

.content-page p,
.content-page li {
  color: #d4d1cb;
  margin-bottom: 12px;
}

.content-page ul {
  margin: 0 0 20px 1.4em;
}

/* Error pages */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 0;
}

.error-page h1 {
  font-size: 4rem;
  color: var(--accent);
  margin-bottom: 12px;
}

.error-page p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Footer */
.site-footer {
  background: #060608;
  border-top: 1px solid var(--border);
  padding: 40px 0 28px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}

.footer-brand {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.footer-brand img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 6px;
}

.footer-col h3 {
  font-size: 0.95rem;
  margin-bottom: 12px;
  color: var(--text);
}

.footer-col ul {
  list-style: none;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.9rem;
  display: block;
  padding: 4px 0;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.related-links {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 36px 0 0;
}

.related-links h2 {
  font-size: 1.1rem;
  margin: 0 0 12px;
  border: none;
  padding: 0;
}

.related-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  list-style: none;
  margin: 0;
}

.highlight-box {
  background: var(--bg-3);
  border-left: 3px solid var(--accent);
  padding: 16px 20px;
  margin: 20px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.keyword {
  color: #fff;
  font-weight: 600;
}

.download-banner {
  text-align: center;
  padding: 40px 24px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(196, 30, 58, 0.2) 0%, transparent 60%),
    var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin: 36px 0;
}

.download-banner h2 {
  border: none;
  margin: 0 0 12px;
  padding: 0;
}

.download-banner p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* Mobile */
@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(12, 12, 16, 0.98);
    border: 1px solid var(--border);
    border-radius: 0 0 10px 10px;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.45);
    z-index: 120;
    padding: 8px;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    width: 100%;
    gap: 2px;
  }

  .main-nav a {
    display: block;
    padding: 12px 14px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero {
    padding: 36px 0 32px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .shot-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section {
    padding: 40px 0;
  }

  .section-title {
    font-size: 1.4rem;
  }
}

@media (min-width: 861px) and (max-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
