/* 91-web.xyz — Velvet Prism Theme */
:root {
  --ink: #0a0812;
  --deep: #110e1a;
  --panel: #181422;
  --panel-2: #211a2e;
  --orange: #ff6b2b;
  --orange-soft: #ff8f57;
  --magenta: #e040a0;
  --violet: #8b5cf6;
  --violet-dim: #6d3fd4;
  --pearl: #f3ecff;
  --silver: #b8a8d0;
  --muted: #6f6288;
  --line: rgba(139, 92, 246, 0.18);
  --line-soft: rgba(255, 255, 255, 0.06);
  --nav-h: 54px;
  --ads-sticky-h: 0px;
  --r: 12px;
  --r-sm: 8px;
  --ease: 0.24s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background: var(--ink);
  color: var(--silver);
  line-height: 1.88;
  font-size: 15px;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 35% at 90% 5%, rgba(224, 64, 160, 0.14) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 5% 95%, rgba(255, 107, 43, 0.1) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(139, 92, 246, 0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--orange-soft); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--magenta); }

ul, ol { padding-left: 1.25em; }
h1, h2, h3, h4 { color: var(--pearl); line-height: 1.42; font-weight: 700; }
h1 { font-size: clamp(1.45rem, 4.8vw, 2.05rem); }
h2 { font-size: clamp(1.08rem, 3vw, 1.55rem); margin-bottom: 0.7rem; }
h3 { font-size: 1rem; 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(10, 8, 18, 0.93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
  z-index: 1300;
}

.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: 8px;
  color: var(--pearl);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.main-nav {
  display: none;
  list-style: none;
  gap: 4px;
  padding: 0;
}

.main-nav a {
  display: block;
  padding: 7px 13px;
  color: var(--silver);
  font-size: 0.86rem;
  border-radius: var(--r-sm);
  transition: background var(--ease), color var(--ease);
}

.main-nav a:hover,
.main-nav a.on {
  color: var(--pearl);
  background: rgba(139, 92, 246, 0.15);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--pearl);
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.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(17, 14, 26, 0.98);
  border-bottom: 1px solid var(--line-soft);
  z-index: 1250;
  padding: 12px 16px 18px;
}

.drawer.show { display: block; }

.drawer ul { list-style: none; padding: 0; }

.drawer a {
  display: block;
  padding: 11px 8px;
  color: var(--silver);
  font-size: 0.92rem;
  border-bottom: 1px solid var(--line-soft);
}

.drawer a.on { color: var(--orange); }

@media (min-width: 768px) {
  .main-nav { display: flex; }
  .nav-toggle { display: none; }
  .drawer { display: none !important; }
}

/* Ads */
.ads-zone {
  padding: calc(var(--nav-h) + 14px) 0 10px;
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.06) 0%, transparent 100%);
}

.ads-fixed {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(12, 10, 20, 0.97);
  border-bottom: 1px solid var(--line);
  z-index: 1200;
  padding: 8px 0;
  transform: translateY(-110%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.ads-fixed.show {
  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 {
  width: calc(25% - 6px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ads-row figure { margin: 0; text-align: center; }

.ads-row a {
  display: inline-block;
  border-radius: 14px;
  overflow: hidden;
}

.ads-row img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: transform var(--ease), box-shadow var(--ease);
}

.ads-row img:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 20px rgba(224, 64, 160, 0.25);
}

.ads-row .caption {
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .ads-row > div { width: calc(12.5% - 6px); }
  .ads-row img { width: 62px; height: 62px; }
}

/* Hero */
.banner {
  padding: 28px 0 36px;
  border-bottom: 1px solid var(--line-soft);
}

.banner-tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--magenta);
  border: 1px solid rgba(224, 64, 160, 0.35);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.banner h1 {
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--pearl) 30%, var(--orange-soft) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.banner-intro {
  font-size: 0.94rem;
  color: var(--silver);
  max-width: 780px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin-top: 18px;
}

.tag-cloud li {
  font-size: 0.78rem;
  padding: 5px 12px;
  border-radius: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--violet);
}

/* Content sections */
.block {
  padding: 40px 0;
  border-bottom: 1px solid var(--line-soft);
}

.block-head {
  margin-bottom: 24px;
}

.block-head p {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 0;
}

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: start;
}

.split.reverse .split-media { order: 0; }

.split-media {
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.split-media img { width: 100%; }

.split-body h2 { margin-top: 0; }

@media (min-width: 768px) {
  .split {
    grid-template-columns: 3fr 7fr;
    gap: 32px;
    align-items: center;
  }
  .split.reverse { grid-template-columns: 7fr 3fr; }
  .split.reverse .split-media { order: 2; }
  .split.reverse .split-body { order: 1; }
}

/* Feature grid */
.feat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 20px;
}

.feat-card {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  padding: 18px 20px;
  transition: border-color var(--ease);
}

.feat-card:hover { border-color: var(--line); }

.feat-card h3 {
  color: var(--orange-soft);
  font-size: 0.92rem;
  margin-bottom: 6px;
}

.feat-card p {
  font-size: 0.86rem;
  margin-bottom: 0;
  color: var(--silver);
}

@media (min-width: 600px) {
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .feat-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Text-only blocks */
.prose-block {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  padding: 24px 22px;
  margin-bottom: 20px;
}

.prose-block h2 {
  font-size: 1.1rem;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 14px;
}

.prose-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .prose-grid { grid-template-columns: 1fr 1fr; }
}

.faq-list { margin-top: 8px; }

.faq-item {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  padding: 18px 20px;
  margin-bottom: 12px;
}

.faq-item h3 {
  color: var(--orange-soft);
  font-size: 0.94rem;
  margin-bottom: 8px;
}

.faq-item p {
  font-size: 0.88rem;
  margin-bottom: 0;
  color: var(--silver);
}

.step-list {
  list-style: none;
  padding: 0;
  counter-reset: step;
}

.step-list li {
  position: relative;
  padding: 14px 14px 14px 48px;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  margin-bottom: 10px;
  font-size: 0.88rem;
  counter-increment: step;
}

.step-list li::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 14px;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, var(--violet) 0%, var(--magenta) 100%);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* CTA strip */
.cta-strip {
  text-align: center;
  padding: 32px 20px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.12) 0%, rgba(255, 107, 43, 0.08) 100%);
  border: 1px solid var(--line);
  border-radius: var(--r);
  margin: 10px 0;
}

.cta-strip p { color: var(--silver); margin-bottom: 14px; }

.btn-dl {
  display: inline-block;
  padding: 11px 28px;
  background: linear-gradient(135deg, var(--orange) 0%, var(--magenta) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 24px;
  letter-spacing: 0.04em;
  transition: opacity var(--ease), transform var(--ease);
}

.btn-dl:hover { color: #fff; opacity: 0.9; transform: translateY(-2px); }

/* Breadcrumb */
.crumb {
  padding: 18px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

body.no-ads-top .crumb {
  padding-top: calc(var(--nav-h) + 18px);
}

.crumb a { color: var(--silver); }
.crumb span { color: var(--orange-soft); }

/* Legal / sub pages */
.page-main {
  padding: 20px 0 50px;
}

.page-main h1 {
  font-size: clamp(1.2rem, 3.5vw, 1.6rem);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--line);
}

.page-main h2 {
  font-size: 1rem;
  margin-top: 24px;
  color: var(--orange-soft);
}

.page-main ul { margin-bottom: 1rem; }
.page-main li { margin-bottom: 6px; font-size: 0.9rem; }

/* Error pages */
.err-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 40px) 16px 60px;
}

.err-code {
  font-size: clamp(4rem, 15vw, 7rem);
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(180deg, var(--violet) 0%, var(--magenta) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.err-page h1 { margin: 12px 0; }
.err-page p { color: var(--muted); max-width: 420px; margin: 0 auto 20px; }

/* Footer */
.site-foot {
  background: var(--deep);
  border-top: 1px solid var(--line-soft);
  padding: 36px 0 28px;
  margin-top: 20px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.foot-brand p {
  font-size: 0.84rem;
  color: var(--muted);
  margin-top: 8px;
}

.foot-links h4 {
  font-size: 0.82rem;
  color: var(--pearl);
  margin-bottom: 10px;
  letter-spacing: 0.06em;
}

.foot-links ul {
  list-style: none;
  padding: 0;
}

.foot-links li { margin-bottom: 6px; }

.foot-links a {
  font-size: 0.84rem;
  color: var(--muted);
}

.foot-links a:hover { color: var(--orange-soft); }

.foot-copy {
  text-align: center;
  font-size: 0.76rem;
  color: var(--muted);
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}

@media (min-width: 600px) {
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

main { position: relative; z-index: 1; }
