/* 91-m.xyz — Violet Nocturne Theme */
:root {
  --ink: #0b0912;
  --deep: #12101c;
  --panel: #1a1628;
  --panel-2: #221d34;
  --violet: #9333ea;
  --violet-soft: #a855f7;
  --rose: #e879a8;
  --rose-glow: #f472b6;
  --amber: #fb923c;
  --gold: #fbbf24;
  --snow: #f3eef8;
  --body: #c4b8d4;
  --muted: #7a6f8e;
  --line: rgba(168, 85, 247, 0.16);
  --line-soft: rgba(255, 255, 255, 0.05);
  --nav-h: 54px;
  --sticky-h: 0px;
  --r: 12px;
  --r-lg: 20px;
  --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(--body);
  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(147, 51, 234, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse 40% 30% at 5% 90%, rgba(244, 114, 182, 0.09) 0%, transparent 50%),
    radial-gradient(ellipse 30% 25% at 50% 50%, rgba(251, 146, 60, 0.04) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--rose-glow); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--gold); }

ul, ol { padding-left: 1.35em; }
h1, h2, h3, h4 { color: var(--snow); line-height: 1.36; font-weight: 700; }
h1 { font-size: clamp(1.55rem, 5.2vw, 2.3rem); }
h2 { font-size: clamp(1.12rem, 3.4vw, 1.7rem); margin-bottom: 0.8rem; }
h3 { font-size: 1.05rem; margin-bottom: 0.55rem; }
p { margin-bottom: 1rem; }

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
  position: relative;
  z-index: 1;
}

/* Header */
.site-head {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(11, 9, 18, 0.93);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line-soft);
  z-index: 1300;
}

.site-head-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--snow);
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.logo-link img { width: 36px; height: 36px; border-radius: 9px; }

.logo-link span {
  background: linear-gradient(120deg, var(--violet-soft), var(--rose-glow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.desktop-nav { display: none; gap: 6px; }

.desktop-nav a {
  padding: 7px 14px;
  border-radius: 8px;
  color: var(--body);
  font-size: 0.88rem;
  transition: background var(--ease), color var(--ease);
}

.desktop-nav a:hover,
.desktop-nav a.active {
  background: rgba(147, 51, 234, 0.14);
  color: var(--snow);
}

.menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 9px;
  cursor: pointer;
  padding: 8px;
}

.menu-btn span {
  display: block;
  height: 2px;
  background: var(--snow);
  border-radius: 2px;
  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(18, 16, 28, 0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-soft);
  padding: 12px 16px 18px;
  z-index: 1250;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav.show { display: flex; }

.mobile-nav a {
  padding: 12px 14px;
  border-radius: 9px;
  color: var(--body);
  font-size: 0.95rem;
}

.mobile-nav a:hover { background: rgba(147, 51, 234, 0.12); color: var(--snow); }

/* Sticky Ads Bar */
.ads-sticky-bar {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(11, 9, 18, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
  z-index: 1200;
  padding: 8px 0;
  transform: translateY(-110%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
}

.ads-sticky-bar.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

#ads-sticky {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 6px 4px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 10px;
}

#ads-sticky > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(25% - 4px);
  box-sizing: border-box;
}

#ads-sticky img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  transition: transform var(--ease);
}

#ads-sticky a { display: inline-block; border-radius: 14px; }

#ads-sticky img:hover { transform: scale(1.06); }

#ads-sticky .caption {
  height: 14px;
  font-size: 10px;
  color: var(--muted);
  text-align: center;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 3px;
}

/* Main Ads Section */
.ads-section {
  padding-top: calc(var(--nav-h) + 14px);
  padding-bottom: 6px;
}

#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px 6px;
  background: transparent;
  margin: 0;
}

#ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(25% - 6px);
  box-sizing: border-box;
}

#ads img {
  width: 62px;
  height: 62px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  transition: transform var(--ease), box-shadow var(--ease);
  border: none;
}

#ads a { display: inline-block; border-radius: 16px; }

#ads img:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 10px 24px rgba(147, 51, 234, 0.22);
}

#ads .caption {
  height: 15px;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 4px;
}

.ads-hint {
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 8px;
  letter-spacing: 0.06em;
}

/* Hero */
.hero {
  padding: 28px 0 36px;
  position: relative;
}

.hero-inner {
  display: grid;
  gap: 24px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 20px;
  background: rgba(147, 51, 234, 0.12);
  border: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--violet-soft);
  margin-bottom: 14px;
  letter-spacing: 0.08em;
}

.hero-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rose-glow);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 { margin-bottom: 14px; }

.hero-lead {
  font-size: 1.02rem;
  color: var(--body);
  margin-bottom: 0;
  max-width: 640px;
}

.hero-visual {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.hero-visual img { width: 100%; }

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(11, 9, 18, 0.5) 100%);
  pointer-events: none;
}

/* Content Sections */
.section {
  padding: 36px 0;
}

.section-head {
  margin-bottom: 24px;
  padding-left: 14px;
  border-left: 3px solid var(--violet);
}

.section-head p {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 0;
}

/* 3:7 Layout — image 30%, text 70% */
.split-row {
  display: grid;
  gap: 22px;
  margin-bottom: 32px;
  align-items: start;
}

.split-row.reverse .split-img { order: 2; }
.split-row.reverse .split-text { order: 1; }

.split-img {
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
}

.split-img img { width: 100%; }

.split-text h3 { color: var(--rose-glow); }

/* Feature Grid */
.feat-grid {
  display: grid;
  gap: 14px;
  margin: 24px 0;
}

.feat-card {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  padding: 20px 18px;
  position: relative;
  overflow: hidden;
}

.feat-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--violet), var(--rose));
}

.feat-card h3 { font-size: 0.98rem; }
.feat-card p { font-size: 0.9rem; margin-bottom: 0; color: var(--muted); }

/* Stats Strip */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 28px 0;
}

.stat-item {
  text-align: center;
  padding: 18px 12px;
  background: var(--panel);
  border-radius: var(--r);
  border: 1px solid var(--line-soft);
}

.stat-num {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(120deg, var(--violet-soft), var(--amber));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label { font-size: 0.8rem; color: var(--muted); margin-top: 4px; }

/* Text Block */
.prose-block {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  padding: 22px 18px;
  margin-bottom: 24px;
}

.prose-block h3 { margin-bottom: 10px; }

.prose-block p:last-child { margin-bottom: 0; }

/* Showcase Gallery */
.showcase-grid {
  display: grid;
  gap: 16px;
  margin: 24px 0;
}

.showcase-card {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  overflow: hidden;
}

.showcase-card img { width: 100%; }

.showcase-cap {
  padding: 14px 16px 16px;
}

.showcase-cap h3 {
  font-size: 0.95rem;
  color: var(--violet-soft);
  margin-bottom: 6px;
}

.showcase-cap p {
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 0;
  line-height: 1.75;
}

/* SEO Long Article */
.seo-article {
  margin-bottom: 28px;
}

.seo-article h3 {
  color: var(--rose-glow);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
}

.seo-article p {
  font-size: 0.93rem;
  margin-bottom: 0.9rem;
}

.seo-article ul {
  margin: 0 0 1rem 0;
  font-size: 0.9rem;
  color: var(--body);
}

.seo-article li { margin-bottom: 6px; }

/* FAQ */
.faq-list { margin: 20px 0; }

.faq-item {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  padding: 18px 16px;
  margin-bottom: 12px;
}

.faq-item h3 {
  font-size: 0.95rem;
  color: var(--snow);
  margin-bottom: 8px;
}

.faq-item p {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 0;
  line-height: 1.8;
}

/* CTA */
.cta-band {
  text-align: center;
  padding: 32px 20px;
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.1), rgba(244, 114, 182, 0.08));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  margin: 32px 0;
}

.cta-band h2 { margin-bottom: 10px; }

.cta-btn {
  display: inline-block;
  margin-top: 14px;
  padding: 13px 36px;
  background: linear-gradient(135deg, var(--violet), #7c3aed);
  color: var(--snow);
  border-radius: 28px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  transition: transform var(--ease), box-shadow var(--ease);
  box-shadow: 0 6px 24px rgba(147, 51, 234, 0.35);
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(147, 51, 234, 0.45);
  color: var(--snow);
}

/* Breadcrumb */
.breadcrumb {
  padding-top: calc(var(--nav-h) + 18px);
  padding-bottom: 8px;
  font-size: 0.82rem;
  color: var(--muted);
}

.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--rose-glow); }
.breadcrumb span { color: var(--body); }

/* Page Content */
.page-main {
  padding: 16px 0 48px;
  min-height: 60vh;
}

.page-main h1 { margin-bottom: 18px; }

.legal-content h2 {
  font-size: 1.1rem;
  margin-top: 28px;
  margin-bottom: 10px;
  color: var(--violet-soft);
}

.legal-content p,
.legal-content li {
  font-size: 0.92rem;
  color: var(--body);
}

.legal-content ul { margin-bottom: 1rem; }

/* Error Pages */
.error-page {
  text-align: center;
  padding: 80px 20px 60px;
  min-height: 70vh;
}

.error-code {
  font-size: clamp(4rem, 18vw, 7rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--violet-soft), var(--rose-glow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 12px;
}

.error-page h1 { margin-bottom: 10px; }
.error-page p { color: var(--muted); margin-bottom: 24px; }

.error-link {
  display: inline-block;
  padding: 11px 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  color: var(--snow);
  font-size: 0.9rem;
  transition: background var(--ease);
}

.error-link:hover { background: rgba(147, 51, 234, 0.15); color: var(--snow); }

/* Footer */
.site-foot {
  background: var(--deep);
  border-top: 1px solid var(--line-soft);
  padding: 32px 0 24px;
  margin-top: 20px;
}

.foot-grid {
  display: grid;
  gap: 20px;
  margin-bottom: 24px;
}

.foot-brand img { width: 42px; border-radius: 10px; margin-bottom: 10px; }
.foot-brand p { font-size: 0.85rem; color: var(--muted); margin-bottom: 0; }

.foot-links h4 {
  font-size: 0.85rem;
  color: var(--snow);
  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.85rem;
  color: var(--muted);
}

.foot-links a:hover { color: var(--rose-glow); }

.foot-copy {
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}

/* Desktop */
@media (min-width: 768px) {
  .menu-btn { display: none; }
  .desktop-nav { display: flex; }

  .hero-inner { grid-template-columns: 1fr 1fr; }

  .split-row {
    grid-template-columns: 3fr 7fr;
    gap: 28px;
  }

  .split-row.reverse { grid-template-columns: 7fr 3fr; }

  .feat-grid { grid-template-columns: repeat(3, 1fr); }

  .showcase-grid { grid-template-columns: repeat(2, 1fr); }

  .stats-strip { grid-template-columns: repeat(4, 1fr); }

  .foot-grid { grid-template-columns: 2fr 1fr 1fr; }

  #ads > div,
  #ads-sticky > div { width: calc(12.5% - 6px); }

  #ads-sticky img { width: 58px; height: 58px; }
}

@media (min-width: 1024px) {
  .section { padding: 48px 0; }

  .showcase-grid { grid-template-columns: repeat(3, 1fr); }
}
