:root {
  --bg: #0f1116;
  --bg-soft: #171a22;
  --bg-card: #1c2030;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f2f3f7;
  --muted: #a8adbc;
  --brand: #ff3b6b;
  --brand-2: #ff7a45;
  --accent: #ffd166;
  --ok: #3ddc97;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --max: 1160px;
  --font: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --display: "Trebuchet MS", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(255, 59, 107, 0.18), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(255, 122, 69, 0.12), transparent 50%),
    linear-gradient(180deg, #12151d 0%, var(--bg) 40%, #0c0e13 100%);
  line-height: 1.75;
  min-height: 100vh;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--brand); text-decoration: none; transition: color .2s ease, opacity .2s ease; }
a:hover { color: var(--brand-2); }
ul, ol { padding-left: 1.2rem; }
h1, h2, h3, h4 {
  font-family: var(--display);
  line-height: 1.25;
  letter-spacing: 0.02em;
  font-weight: 700;
}
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 0.8rem; }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.9rem); margin: 0 0 0.85rem; }
h3 { font-size: 1.15rem; margin: 0 0 0.55rem; }
p { margin-bottom: 1rem; color: var(--muted); }
.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(15, 17, 22, 0.82);
  border-bottom: 1px solid var(--line);
}
.site-ads-wrap {
  position: sticky;
  top: 68px;
  z-index: 90;
  background: rgba(15, 17, 22, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  font-weight: 800;
  font-size: 1.15rem;
}
.logo img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}
.logo span { color: var(--brand); }
.nav-links {
  display: flex;
  gap: 0.35rem;
  list-style: none;
  padding: 0;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--muted);
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-size: 0.95rem;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(255, 59, 107, 0.14);
}
.menu-btn {
  display: none;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--text);
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 3.2rem 0 2.4rem;
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}
.hero p.lead {
  font-size: 1.08rem;
  color: #d5d8e2;
  max-width: 38rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.78rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  box-shadow: 0 10px 30px rgba(255, 59, 107, 0.35);
}
.btn-primary:hover { color: #fff; opacity: 0.92; }
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.hero-visual {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4/5;
  background: var(--bg-card);
}
.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenburns 18s ease-in-out infinite alternate;
}
.hero-badge {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  padding: 0.55rem 0.85rem;
  border-radius: 12px;
  font-size: 0.85rem;
  border: 1px solid var(--line);
}

@keyframes kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.rise { animation: rise .7s ease both; }
.rise-delay-1 { animation-delay: .12s; }
.rise-delay-2 { animation-delay: .24s; }

/* Sections */
.section { padding: 3.2rem 0; }
.section-head {
  margin-bottom: 1.6rem;
  max-width: 46rem;
}
.section-head p { margin-bottom: 0; }
.prose {
  max-width: 52rem;
}
.prose p, .prose li { color: #c5c9d6; }
.prose h2, .prose h3 { margin-top: 1.8rem; }
.prose ul, .prose ol { margin-bottom: 1rem; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.feature {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent), var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
  transition: transform .25s ease, border-color .25s ease;
}
.feature:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 59, 107, 0.4);
}
.feature img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 0.85rem;
}
.feature h3 { color: var(--text); }
.feature p { margin-bottom: 0; font-size: 0.95rem; }

.media-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: center;
  margin: 1.8rem 0;
  padding: 1.2rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.media-row.reverse { grid-template-columns: 0.9fr 1.1fr; }
.media-row.reverse .media-text { order: 2; }
.media-row img {
  width: 100%;
  border-radius: 14px;
  aspect-ratio: 4/3;
  object-fit: cover;
  box-shadow: var(--shadow);
}
.media-row h3 { color: var(--text); margin-bottom: 0.6rem; }

.cover-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}
.cover-item {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg-card);
}
.cover-item img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  transition: transform .4s ease;
}
.cover-item:hover img { transform: scale(1.05); }
.cover-item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0.7rem 0.8rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.78));
  font-size: 0.88rem;
  color: #fff;
}

.toc {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.1rem 1.2rem;
  margin: 1.4rem 0 2rem;
}
.toc h2 { font-size: 1.05rem; margin-bottom: 0.6rem; }
.toc ol { margin: 0; color: var(--muted); }
.toc a { color: #e8eaf2; }

.faq details {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  margin-bottom: 0.7rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
}
.faq details p { margin: 0.7rem 0 0; }

.cta-band {
  margin: 1rem 0 0;
  padding: 1.6rem;
  border-radius: 18px;
  background: linear-gradient(120deg, rgba(255,59,107,0.2), rgba(255,122,69,0.12));
  border: 1px solid rgba(255, 59, 107, 0.35);
  text-align: center;
}
.cta-band h2 { margin-bottom: 0.5rem; }
.cta-band p { max-width: 40rem; margin: 0 auto 1rem; }

.breadcrumb {
  padding: 1.1rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }

.page-hero {
  padding: 1.6rem 0 0.4rem;
}
.page-hero h1 { margin-bottom: 0.5rem; }

.legal {
  padding: 1.5rem 0 3rem;
}
.legal .content {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.5rem 1.4rem;
}
.legal h2 { margin-top: 1.5rem; font-size: 1.2rem; }
.legal p, .legal li { color: #c5c9d6; }

.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}
.error-page .code {
  font-size: clamp(3.5rem, 12vw, 6rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 0.6rem;
}

.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  background: #0b0d12;
  padding: 2.2rem 0 1.6rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.site-footer h3 {
  font-size: 1rem;
  margin-bottom: 0.7rem;
  color: #fff;
}
.site-footer p, .site-footer a { color: var(--muted); font-size: 0.92rem; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.site-footer a:hover { color: var(--brand); }
.copyright {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  color: #7f8494;
  font-size: 0.85rem;
  text-align: center;
}

.internal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}
.internal-links a {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  color: #dde0ea;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.88rem;
}
.internal-links a:hover {
  border-color: var(--brand);
  color: var(--brand);
}

@media (max-width: 960px) {
  .hero-grid,
  .grid-2,
  .media-row,
  .media-row.reverse,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .media-row.reverse .media-text { order: 0; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4, .cover-grid { grid-template-columns: 1fr 1fr; }
  .hero-visual { max-width: 420px; margin-inline: auto; aspect-ratio: 3/4; }
}

@media (max-width: 720px) {
  .menu-btn { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(15, 17, 22, 0.96);
    border-bottom: 1px solid var(--line);
    padding: 0.7rem 1rem 1rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.7rem 0.85rem; }
  .grid-3, .grid-4, .cover-grid { grid-template-columns: 1fr; }
  .section { padding: 2.4rem 0; }
  .hero { padding: 2rem 0 1.6rem; }
}