/* 91-s.xyz — Aurora Ember Theme */
:root {
  --ink: #050408;
  --abyss: #0c0a14;
  --surface: #14101e;
  --surface-2: #1c1628;
  --ember: #ff8f1f;
  --ember-soft: #ffb347;
  --sunset: #ff4f6e;
  --violet: #7b4dff;
  --violet-glow: #a78bfa;
  --pearl: #f2ecf8;
  --mist: #c4bcd8;
  --ash: #7a728e;
  --line: rgba(255, 143, 31, 0.16);
  --line-soft: rgba(255, 255, 255, 0.06);
  --nav-h: 58px;
  --radius: 12px;
  --radius-lg: 20px;
  --ease: 0.28s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--ink);
  color: var(--mist);
  line-height: 1.88;
  font-size: 15px;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 45% at 85% 5%, rgba(123, 77, 255, 0.14) 0%, transparent 58%),
    radial-gradient(ellipse 42% 38% at 5% 92%, rgba(255, 79, 110, 0.1) 0%, transparent 52%),
    radial-gradient(ellipse 35% 30% at 50% 40%, rgba(255, 143, 31, 0.05) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--ember-soft); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--violet-glow); }

ul, ol { padding-left: 1.25em; }
h1, h2, h3, h4 { color: var(--pearl); line-height: 1.35; font-weight: 700; }
h1 { font-size: clamp(1.45rem, 4.8vw, 2.15rem); }
h2 { font-size: clamp(1.08rem, 3vw, 1.58rem); margin-bottom: 0.7rem; }
h3 { font-size: 1.02rem; margin-bottom: 0.45rem; }
p { margin-bottom: 0.95rem; }

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
  position: relative;
  z-index: 1;
}

/* Header */
.top-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(5, 4, 8, 0.93);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line-soft);
  z-index: 1200;
}

.top-bar-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--pearl);
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: 0.04em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 4px 16px rgba(255, 143, 31, 0.32);
}

.main-nav { display: flex; list-style: none; gap: 4px; padding: 0; }

.main-nav a {
  display: block;
  padding: 7px 13px;
  color: var(--mist);
  font-size: 0.85rem;
  border-radius: 6px;
  transition: color var(--ease), background var(--ease);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--ember);
  background: rgba(255, 143, 31, 0.08);
}

.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 10px;
}

.menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--pearl);
  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); }

.drawer {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(12, 10, 20, 0.98);
  border-bottom: 1px solid var(--line-soft);
  z-index: 1190;
  padding: 12px 0 18px;
}

.drawer.show { display: block; }

.drawer ul { list-style: none; padding: 0; }

.drawer a {
  display: block;
  padding: 12px 20px;
  color: var(--mist);
  font-size: 0.92rem;
  border-left: 3px solid transparent;
}

.drawer a:hover,
.drawer a.active {
  color: var(--ember);
  background: rgba(255, 143, 31, 0.06);
  border-left-color: var(--ember);
}

/* Ads */
.ads-block { padding: 14px 0 8px; margin-top: var(--nav-h); }

.ads-pin {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(5, 4, 8, 0.97);
  border-bottom: 1px solid var(--line);
  z-index: 1150;
  padding: 8px 0;
  transform: translateY(-110%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.32s ease, opacity 0.32s ease;
}

.ads-pin.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.ads-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 8px 6px;
}

.ads-grid > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(12.5% - 6px);
  min-width: 72px;
  box-sizing: border-box;
}

.ads-grid img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.38);
  transition: transform var(--ease);
  border: 1px solid var(--line-soft);
}

.ads-grid a { border-radius: 16px; display: inline-block; }
.ads-grid a:hover img { transform: translateY(-3px) scale(1.05); }

.ads-grid .caption {
  height: 15px;
  font-size: 10px;
  color: var(--ash);
  text-align: center;
  max-width: 74px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 3px;
}

@media (max-width: 768px) {
  .ads-grid > div { width: calc(25% - 6px); }
  .ads-grid img { width: 56px; height: 56px; }
}

/* Hero */
.banner {
  padding: 38px 0 48px;
  position: relative;
}

.banner::after {
  content: "";
  position: absolute;
  bottom: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.banner-tag {
  display: inline-block;
  padding: 5px 14px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ember);
  border: 1px solid var(--line);
  border-radius: 20px;
  margin-bottom: 16px;
  background: rgba(255, 143, 31, 0.06);
}

.banner-lead {
  font-size: 0.96rem;
  color: var(--mist);
  max-width: 820px;
}

.kw-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin-top: 22px;
}

.kw-pills li {
  padding: 5px 12px;
  font-size: 0.76rem;
  color: var(--ash);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
}

/* Sections */
.block { padding: 44px 0; }

.block-head {
  margin-bottom: 26px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}

.block-head p {
  color: var(--ash);
  font-size: 0.88rem;
  margin: 0;
}

.layout-37 {
  display: grid;
  grid-template-columns: 3fr 7fr;
  gap: 30px;
  align-items: start;
}

.layout-37.flip { direction: rtl; }
.layout-37.flip > * { direction: ltr; }

.shot-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.42);
}

.shot-frame img { width: 100%; }

.shot-label {
  position: absolute;
  bottom: 12px; left: 12px;
  padding: 4px 10px;
  font-size: 0.7rem;
  color: var(--pearl);
  background: rgba(5, 4, 8, 0.78);
  border-radius: 6px;
  border: 1px solid var(--line-soft);
}

.prose-col ul { margin: 10px 0 0; }
.prose-col li { margin-bottom: 6px; color: var(--mist); font-size: 0.9rem; }

/* Feature tiles */
.tile-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.tile {
  padding: 22px 18px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  transition: border-color var(--ease), transform var(--ease);
}

.tile:hover {
  border-color: var(--line);
  transform: translateY(-2px);
}

.tile h3 { color: var(--ember-soft); font-size: 0.95rem; }
.tile p { font-size: 0.86rem; color: var(--ash); margin: 0; }

/* Dual column prose */
.split-prose {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 24px;
}

/* Pure prose SEO blocks */
.prose-block {
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  margin-top: 24px;
}

.prose-block h3 {
  color: var(--ember-soft);
  margin-top: 22px;
  margin-bottom: 10px;
  font-size: 0.98rem;
}

.prose-block h3:first-child { margin-top: 0; }

.prose-block p {
  font-size: 0.9rem;
  color: var(--mist);
  margin-bottom: 0.85rem;
}

.prose-block ul {
  margin: 8px 0 0;
  padding-left: 1.2em;
}

.prose-block li {
  font-size: 0.88rem;
  color: var(--ash);
  margin-bottom: 6px;
}

/* Image gallery strip */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: var(--surface);
  transition: border-color var(--ease), transform var(--ease);
}

.gallery-item:hover {
  border-color: var(--line);
  transform: translateY(-2px);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  object-position: top;
}

.gallery-cap {
  padding: 10px 12px;
}

.gallery-cap strong {
  display: block;
  font-size: 0.82rem;
  color: var(--pearl);
  margin-bottom: 4px;
}

.gallery-cap span {
  font-size: 0.76rem;
  color: var(--ash);
  line-height: 1.5;
}

/* Channel guide */
.channel-guide {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 22px;
}

.channel-card {
  padding: 18px 16px;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}

.channel-card h4 {
  font-size: 0.9rem;
  color: var(--ember);
  margin-bottom: 8px;
}

.channel-card p {
  font-size: 0.84rem;
  color: var(--ash);
  margin: 0;
  line-height: 1.7;
}

/* Step list */
.step-list {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.step-list li {
  counter-increment: step;
  position: relative;
  padding: 16px 16px 16px 52px;
  margin-bottom: 10px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  font-size: 0.88rem;
  color: var(--mist);
}

.step-list li::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 14px;
  width: 26px;
  height: 26px;
  line-height: 26px;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
  background: linear-gradient(135deg, var(--ember), var(--sunset));
  border-radius: 50%;
}

/* CTA strip */
.cta-band {
  margin-top: 32px;
  padding: 24px 22px;
  background: linear-gradient(135deg, rgba(123, 77, 255, 0.12), rgba(255, 143, 31, 0.1));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-align: center;
}

.cta-band p { margin-bottom: 14px; color: var(--mist); }

.btn-ads {
  display: inline-block;
  padding: 11px 28px;
  background: linear-gradient(135deg, var(--ember), var(--sunset));
  color: var(--ink);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 24px;
  transition: transform var(--ease), box-shadow var(--ease);
}

.btn-ads:hover {
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 143, 31, 0.35);
}

/* FAQ */
.faq-list { margin-top: 20px; }

.faq-list details {
  margin-bottom: 10px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-list summary {
  padding: 14px 18px;
  cursor: pointer;
  color: var(--pearl);
  font-weight: 600;
  font-size: 0.92rem;
  list-style: none;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list details[open] summary { border-bottom: 1px solid var(--line-soft); }

.faq-list details p {
  padding: 14px 18px;
  font-size: 0.88rem;
  color: var(--ash);
  margin: 0;
}

/* Breadcrumb */
.crumb {
  padding: 14px 0 6px;
  margin-top: var(--nav-h);
  font-size: 0.82rem;
  color: var(--ash);
}

.crumb a { color: var(--ash); }
.crumb a:hover { color: var(--ember); }
.crumb span { color: var(--ember); }

/* Sub page */
.page-main { padding: 20px 0 50px; }

.page-main h1 { margin-bottom: 18px; }

.page-main h2 {
  margin-top: 28px;
  font-size: 1.12rem;
  padding-left: 12px;
  border-left: 3px solid var(--ember);
}

.page-main p, .page-main li { font-size: 0.9rem; color: var(--mist); }

/* Error pages */
.err-page {
  min-height: calc(100vh - var(--nav-h) - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 16px;
}

.err-code {
  font-size: clamp(4rem, 18vw, 7rem);
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--ember), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Footer */
.site-foot {
  padding: 36px 0 28px;
  border-top: 1px solid var(--line-soft);
  margin-top: 20px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
}

.foot-grid h4 {
  font-size: 0.88rem;
  color: var(--ember);
  margin-bottom: 12px;
}

.foot-grid ul { list-style: none; padding: 0; }

.foot-grid li { margin-bottom: 7px; }

.foot-grid a { font-size: 0.84rem; color: var(--ash); }

.foot-copy {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.78rem;
  color: var(--ash);
  text-align: center;
}

/* Responsive */
@media (max-width: 900px) {
  .tile-row { grid-template-columns: 1fr; }
  .split-prose { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .layout-37 { grid-template-columns: 1fr; gap: 20px; }
  .layout-37.flip { direction: ltr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .channel-guide { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .menu-btn { display: flex; }
}
