:root {
  --bg: #0c0b10;
  --bg-soft: #16141c;
  --bg-card: #1c1924;
  --text: #f5f2f7;
  --text-muted: #a89db0;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #e91e8c;
  --accent-2: #ff8a3d;
  --grad: linear-gradient(135deg, #ffb347 0%, #ff6b9d 45%, #c84bff 100%);
  --radius: 14px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --max: 1180px;
  --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:
    radial-gradient(1200px 600px at 10% -10%, rgba(233, 30, 140, 0.18), transparent 60%),
    radial-gradient(900px 500px at 90% 0%, rgba(255, 138, 61, 0.14), transparent 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.75;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  color: #ff9a4d;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: #ffc878;
}

ul {
  list-style: none;
}

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 8px 14px;
  z-index: 1000;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(12, 11, 16, 0.82);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  color: inherit;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 1.05rem;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

/* Hero */
.hero {
  padding: 56px 0 36px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(233, 30, 140, 0.35);
  background: rgba(233, 30, 140, 0.1);
  color: #ff9ec8;
  font-size: 0.85rem;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.hero h1 em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 24px;
  max-width: 38em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--grad);
  color: #1a0f16;
  box-shadow: 0 10px 30px rgba(233, 30, 140, 0.28);
}

.btn-primary:hover {
  color: #1a0f16;
  opacity: 0.92;
}

.btn-ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.btn-ghost:hover {
  color: var(--text);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.hero-meta strong {
  display: block;
  color: var(--text);
  font-size: 1.2rem;
}

.hero-visual {
  position: relative;
}

.hero-frame {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--bg-card);
}

.hero-frame img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  max-height: 560px;
}

.hero-float {
  position: absolute;
  left: -18px;
  bottom: 28px;
  width: min(46%, 220px);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--bg-card);
}

.hero-float img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

/* Sections */
.section {
  padding: 56px 0;
}

.section-head {
  margin-bottom: 28px;
  max-width: 46em;
}

.section-head h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
  margin-bottom: 10px;
}

.section-head p {
  color: var(--text-muted);
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
  border-block: 1px solid var(--line);
}

/* Cards / grids */
.grid-4,
.grid-3,
.grid-2 {
  display: grid;
  gap: 18px;
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(233, 30, 140, 0.35);
}

.card-media {
  position: relative;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.card:hover .card-media img {
  transform: scale(1.04);
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.card-body p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(233, 30, 140, 0.16);
  color: #ff9ec8;
  font-size: 0.75rem;
  margin-bottom: 8px;
}

.feature {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.feature img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
}

.feature h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.feature p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Content article */
.article {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(20px, 4vw, 40px);
}

.article h2,
.article h3 {
  margin: 1.4em 0 0.6em;
}

.article h2:first-child {
  margin-top: 0;
}

.article p,
.article li {
  color: #d8d0df;
  margin-bottom: 1em;
}

.article ul,
.article ol {
  padding-left: 1.2em;
  margin-bottom: 1em;
}

.article li {
  list-style: disc;
  margin-bottom: 0.45em;
}

.article a {
  color: #ff9a4d;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article a:hover {
  color: #ffc878;
}

.toc {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 18px 0 28px;
}

.toc strong {
  display: block;
  margin-bottom: 8px;
}

.toc a {
  display: inline-block;
  margin: 4px 10px 4px 0;
  text-decoration: none;
  color: #ff9a4d;
}

.toc a:hover {
  color: #ffc878;
}

/* FAQ */
.faq details {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq details p {
  color: var(--text-muted);
  margin-top: 10px;
}

/* Page hero for subpages */
.page-hero {
  padding: 42px 0 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}

.page-hero h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 10px;
}

.page-hero p {
  color: var(--text-muted);
  max-width: 46em;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 14px;
}

.breadcrumb a {
  color: #ff9a4d;
}

/* Error pages */
.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 60px 16px;
}

.error-page .code {
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 12px;
}

.error-page h1 {
  margin-bottom: 12px;
}

.error-page p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Footer */
.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: #09080c;
  padding: 42px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}

.footer-brand img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.footer-brand p,
.footer-col p,
.site-footer small {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-col h4 {
  margin-bottom: 12px;
  font-size: 0.98rem;
}

.footer-col a {
  display: block;
  color: #ff9a4d;
  margin-bottom: 8px;
  font-size: 0.92rem;
}

.footer-col a:hover {
  color: #ffc878;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  animation: fadeUp 0.7s ease both;
}

.reveal-delay {
  animation-delay: 0.12s;
}

.reveal-delay-2 {
  animation-delay: 0.24s;
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid,
  .grid-4,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }

  .hero-float {
    left: 12px;
    bottom: 12px;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 16px 16px;
    background: rgba(12, 11, 16, 0.96);
    border-bottom: 1px solid var(--line);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 12px 14px;
  }

  .hero {
    padding-top: 28px;
  }

  .hero-grid,
  .grid-4,
  .grid-3,
  .grid-2,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-frame img {
    max-height: 420px;
  }

  .feature {
    flex-direction: column;
  }

  .feature img {
    width: 100%;
    height: 160px;
  }

  .section {
    padding: 40px 0;
  }
}

/* Sticky ads bar below header */
.ads-bar {
  position: sticky;
  top: 72px;
  z-index: 90;
  background: rgba(12, 11, 16, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 8px 0 6px;
}

#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 6px 4px;
  background: transparent;
  margin: 0;
  min-height: 0;
}

#ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70px;
  box-sizing: border-box;
}

#ads figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#ads img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: transform 180ms ease, box-shadow 180ms ease;
  display: block;
  border: none;
  background: linear-gradient(135deg, #fff, #fff);
}

#ads a {
  display: inline-block;
  text-decoration: none;
  border-radius: 15px;
}

#ads img:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

#ads figcaption,
#ads .caption {
  height: 15px;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  max-width: 70px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 4px;
}

@media (max-width: 760px) {
  .ads-bar {
    top: 72px;
  }
}
