/* 91-app.xyz — Crimson Afterglow Theme */
:root {
  --void: #08060a;
  --night: #100c14;
  --panel: #16121c;
  --panel-2: #1e1826;
  --crimson: #c41e3a;
  --crimson-soft: #e8354f;
  --amber: #f5a623;
  --amber-glow: #ffc857;
  --wine: #6b1d3a;
  --lilac: #b794f6;
  --mist: #e8e0f0;
  --body: #b8aecc;
  --muted: #6e647e;
  --edge: rgba(245, 166, 35, 0.14);
  --edge-soft: rgba(255, 255, 255, 0.05);
  --nav-h: 56px;
  --r: 10px;
  --r-lg: 18px;
  --ease: 0.26s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--void);
  color: var(--body);
  line-height: 1.9;
  font-size: 15px;
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 40% at 100% 0%, rgba(196, 30, 58, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 45% 38% at 0% 100%, rgba(245, 166, 35, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, transparent 60%, rgba(107, 29, 58, 0.06) 100%);
  pointer-events: none;
  z-index: 0;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--amber-glow); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--lilac); }

ul, ol { padding-left: 1.3em; }
h1, h2, h3, h4 { color: var(--mist); line-height: 1.38; font-weight: 700; }
h1 { font-size: clamp(1.5rem, 5vw, 2.2rem); }
h2 { font-size: clamp(1.1rem, 3.2vw, 1.65rem); margin-bottom: 0.75rem; }
h3 { font-size: 1.02rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; }

.wrap {
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 15px;
  position: relative;
  z-index: 1;
}

/* Header */
.site-head {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(8, 6, 10, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--edge-soft);
  z-index: 1200;
}

.site-head-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 15px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--mist);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.06em;
}

.logo-link img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  box-shadow: 0 3px 14px rgba(245, 166, 35, 0.28);
}

.head-nav { display: flex; list-style: none; gap: 2px; padding: 0; }

.head-nav a {
  display: block;
  padding: 6px 12px;
  color: var(--body);
  font-size: 0.84rem;
  border-bottom: 2px solid transparent;
  transition: color var(--ease), border-color var(--ease);
}

.head-nav a:hover,
.head-nav a.active {
  color: var(--amber);
  border-bottom-color: var(--crimson);
}

.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: var(--r);
  cursor: pointer;
  padding: 10px;
}

.menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--mist);
  border-radius: 1px;
  transition: transform var(--ease), opacity var(--ease);
}

.menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(16, 12, 20, 0.98);
  border-bottom: 1px solid var(--edge-soft);
  z-index: 1190;
  padding: 12px 0;
}

.mobile-nav.show { display: block; }

.mobile-nav ul { list-style: none; padding: 0; }

.mobile-nav a {
  display: block;
  padding: 12px 20px;
  color: var(--body);
  font-size: 0.92rem;
  border-left: 3px solid transparent;
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--amber);
  background: rgba(196, 30, 58, 0.08);
  border-left-color: var(--crimson);
}

/* Ads */
.ads-zone { padding: 12px 0 6px; margin-top: var(--nav-h); }

.ads-fixed {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(8, 6, 10, 0.97);
  border-bottom: 1px solid var(--edge);
  z-index: 1150;
  padding: 8px 0;
  transform: translateY(-110%);
  opacity: 0;
  transition: transform 0.32s ease, opacity 0.32s ease;
  pointer-events: none;
}

.ads-fixed.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.ads-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 8px 6px;
}

.ads-row > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(12.5% - 6px);
  min-width: 70px;
  box-sizing: border-box;
}

.ads-row img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transition: transform var(--ease);
  border: 1px solid var(--edge-soft);
}

.ads-row a { border-radius: 14px; display: inline-block; }
.ads-row a:hover img { transform: scale(1.06); }

.ads-row .caption {
  height: 15px;
  font-size: 10px;
  color: var(--muted);
  text-align: center;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 3px;
}

@media (max-width: 768px) {
  .ads-row > div { width: calc(25% - 6px); }
  .ads-row img { width: 54px; height: 54px; }
}

/* Hero */
.hero {
  padding: 36px 0 44px;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 0;
  height: 100%;
  background: linear-gradient(135deg, rgba(196, 30, 58, 0.1) 0%, transparent 45%, rgba(245, 166, 35, 0.06) 100%);
  border-bottom: 1px solid var(--edge-soft);
  z-index: -1;
}

.hero-badge {
  display: inline-block;
  padding: 4px 14px;
  background: linear-gradient(90deg, var(--wine), var(--crimson));
  color: var(--amber-glow);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  border-radius: 20px;
  margin-bottom: 16px;
}

.hero-lead {
  font-size: 1.02rem;
  color: var(--body);
  max-width: 820px;
  margin-bottom: 18px;
}

.kw-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.kw-row li {
  padding: 5px 12px;
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: 20px;
  font-size: 0.78rem;
  color: var(--amber);
}

/* Sections */
.sect {
  padding: 40px 0;
  border-bottom: 1px solid var(--edge-soft);
}

.sect-head {
  margin-bottom: 24px;
  padding-left: 14px;
  border-left: 3px solid var(--crimson);
}

.sect-head p {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0;
}

/* 3:7 layout */
.ratio-37 {
  display: grid;
  grid-template-columns: 3fr 7fr;
  gap: 28px;
  align-items: start;
}

.ratio-37.reverse { direction: rtl; }
.ratio-37.reverse > * { direction: ltr; }

.visual-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--edge);
  background: var(--panel);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.visual-card img { width: 100%; }

.visual-card .tag {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 10px 14px;
  background: linear-gradient(transparent, rgba(8, 6, 10, 0.92));
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 600;
}

.text-col ul { margin: 12px 0; }
.text-col li { margin-bottom: 6px; font-size: 0.92rem; }

/* Feature grid */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.feat-item {
  background: var(--panel);
  border: 1px solid var(--edge-soft);
  border-radius: var(--r);
  padding: 20px 16px;
  transition: border-color var(--ease), transform var(--ease);
}

.feat-item:hover {
  border-color: var(--edge);
  transform: translateY(-2px);
}

.feat-item h3 {
  color: var(--amber);
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.feat-item p { font-size: 0.86rem; margin: 0; color: var(--muted); }

/* CTA strip */
.cta-strip {
  text-align: center;
  padding: 32px 20px;
  background: linear-gradient(135deg, var(--panel) 0%, var(--panel-2) 100%);
  border: 1px solid var(--edge);
  border-radius: var(--r-lg);
  margin: 20px 0;
}

.cta-strip p { margin-bottom: 16px; color: var(--body); }

.btn-glow {
  display: inline-block;
  padding: 11px 28px;
  background: linear-gradient(135deg, var(--crimson), var(--wine));
  color: var(--mist);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 24px;
  border: 1px solid rgba(245, 166, 35, 0.3);
  box-shadow: 0 6px 24px rgba(196, 30, 58, 0.35);
  transition: transform var(--ease), box-shadow var(--ease);
}

.btn-glow:hover {
  color: var(--amber-glow);
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(196, 30, 58, 0.45);
}

/* Pure text block */
.prose-block {
  background: var(--panel);
  border-radius: var(--r);
  padding: 24px 20px;
  border: 1px solid var(--edge-soft);
}

.prose-block h3 { color: var(--lilac); margin-top: 18px; }
.prose-block h3:first-child { margin-top: 0; }

/* Dual column prose */
.dual-prose {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 32px;
}

.dual-prose h3 {
  color: var(--amber);
  font-size: 0.98rem;
  margin-bottom: 8px;
}

.dual-prose p { font-size: 0.9rem; margin-bottom: 0.8rem; }

/* Thumb strip gallery */
.thumb-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 20px;
}

.thumb-item {
  background: var(--panel);
  border: 1px solid var(--edge-soft);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color var(--ease);
}

.thumb-item:hover { border-color: var(--edge); }

.thumb-item img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  object-position: top;
}

.thumb-item img.thumb-logo {
  object-fit: contain;
  background: var(--panel-2);
  padding: 16px;
  aspect-ratio: 1;
}

.thumb-item figcaption {
  padding: 10px 10px 12px;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
}

.thumb-item strong {
  display: block;
  color: var(--amber);
  font-size: 0.82rem;
  margin-bottom: 4px;
}

/* FAQ */
.faq-list { margin-top: 16px; }

.faq-item {
  border: 1px solid var(--edge-soft);
  border-radius: var(--r);
  margin-bottom: 10px;
  background: var(--panel);
  overflow: hidden;
}

.faq-item summary {
  padding: 14px 16px;
  cursor: pointer;
  color: var(--mist);
  font-weight: 600;
  font-size: 0.92rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  color: var(--amber);
  font-size: 1.1rem;
  font-weight: 400;
  flex-shrink: 0;
  margin-left: 12px;
}

.faq-item[open] summary::after { content: "−"; }

.faq-item p {
  padding: 0 16px 14px;
  font-size: 0.88rem;
  color: var(--body);
  margin: 0;
  border-top: 1px solid var(--edge-soft);
  padding-top: 12px;
}

/* Step guide */
.step-list {
  list-style: none;
  padding: 0;
  counter-reset: step;
  margin-top: 16px;
}

.step-list li {
  position: relative;
  padding: 16px 16px 16px 52px;
  background: var(--panel);
  border: 1px solid var(--edge-soft);
  border-radius: var(--r);
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.step-list li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 16px;
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, var(--crimson), var(--wine));
  color: var(--mist);
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-list strong { color: var(--amber); display: block; margin-bottom: 4px; }

/* Breadcrumb */
.crumb {
  padding: 14px 0 6px;
  font-size: 0.82rem;
  color: var(--muted);
}

.crumb.nav-gap { margin-top: var(--nav-h); }

.crumb a { color: var(--body); }
.crumb span { color: var(--amber); }

/* Sub page */
.page-main { padding: 20px 0 50px; }
.page-main h1 { margin-bottom: 20px; }
.page-main h2 { font-size: 1.1rem; margin: 24px 0 10px; color: var(--amber); }
.page-main p, .page-main li { font-size: 0.9rem; }

/* Error pages */
.err-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}

.err-code {
  font-size: clamp(4rem, 15vw, 7rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--crimson), var(--amber));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 12px;
}

/* Footer */
.site-foot {
  padding: 36px 0 28px;
  border-top: 1px solid var(--edge-soft);
  margin-top: 20px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.foot-brand img { width: 42px; border-radius: 9px; margin-bottom: 10px; }
.foot-brand p { font-size: 0.84rem; color: var(--muted); }

.foot-links { list-style: none; padding: 0; }
.foot-links li { margin-bottom: 8px; }
.foot-links a { font-size: 0.86rem; color: var(--body); }

.foot-copy {
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
  padding-top: 18px;
  border-top: 1px solid var(--edge-soft);
}

/* Responsive */
@media (max-width: 900px) {
  .ratio-37 { grid-template-columns: 1fr; gap: 20px; }
  .ratio-37.reverse { direction: ltr; }
  .feat-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .dual-prose { grid-template-columns: 1fr; }
  .thumb-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .head-nav { display: none; }
  .menu-btn { display: flex; }
  .hero { padding: 28px 0 32px; }
  .sect { padding: 30px 0; }
}
