:root {
  --bg-void: #0c0610;
  --bg-surface: #160d1c;
  --bg-elevated: #211428;
  --bg-glass: rgba(33, 20, 40, 0.82);
  --neon-pink: #ff4d9a;
  --neon-magenta: #e040fb;
  --neon-violet: #7c4dff;
  --neon-cyan: #26c6da;
  --amber-glow: #ffb74d;
  --text-primary: #f3e8f0;
  --text-secondary: #c4b0be;
  --text-dim: #8a7586;
  --border-glow: rgba(255, 77, 154, 0.35);
  --shadow-neon: 0 0 32px rgba(255, 77, 154, 0.18);
  --radius-sm: 12px;
  --radius-lg: 22px;
  --nav-h: 58px;
  --sticky-h: 0px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "IBM Plex Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg-void);
  color: var(--text-primary);
  line-height: 1.88;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 0% 0%, rgba(124, 77, 255, 0.22), transparent 60%),
    radial-gradient(ellipse 60% 45% at 100% 10%, rgba(255, 77, 154, 0.16), transparent 55%),
    radial-gradient(ellipse 70% 40% at 50% 100%, rgba(38, 198, 218, 0.08), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

a {
  color: var(--neon-pink);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--neon-cyan);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.shell {
  width: min(1120px, 93vw);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Header */
.masthead {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-glow);
}

.masthead::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-violet), var(--neon-pink), var(--neon-cyan), var(--neon-violet));
  opacity: 0.7;
}

.masthead-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 0.6rem;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.98rem;
  font-family: "ZCOOL QingKe HuangYou", "IBM Plex Sans SC", sans-serif;
  letter-spacing: 0.04em;
}

.brand-mark img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 2px solid var(--neon-pink);
  box-shadow: 0 0 16px rgba(255, 77, 154, 0.45);
}

.menu-main {
  display: none;
  gap: 1.1rem;
  list-style: none;
  font-size: 0.86rem;
}

.menu-main a {
  color: var(--text-secondary);
  font-weight: 500;
  position: relative;
}

.menu-main a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-pink), var(--neon-cyan));
  transition: width 0.25s ease;
}

.menu-main a:hover::after,
.menu-main a.is-here::after {
  width: 100%;
}

.menu-main a.is-here {
  color: var(--neon-pink);
}

.btn-grab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1rem;
  background: linear-gradient(135deg, var(--neon-pink), var(--neon-violet));
  color: #fff;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: var(--shadow-neon);
  white-space: nowrap;
}

.btn-grab:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 0 28px rgba(255, 77, 154, 0.35);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1rem;
  border: 1.5px solid var(--neon-pink);
  color: var(--neon-pink);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.btn-outline:hover {
  background: rgba(255, 77, 154, 0.1);
  color: var(--neon-cyan);
  border-color: var(--neon-cyan);
}

.menu-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.menu-btn span {
  width: 22px;
  height: 2px;
  background: var(--neon-pink);
  border-radius: 2px;
}

.menu-drop {
  display: none;
  flex-direction: column;
  padding: 0.5rem 0 0.9rem;
  border-top: 1px solid var(--border-glow);
  list-style: none;
  gap: 0.15rem;
}

.menu-drop.open {
  display: flex;
}

.menu-drop a {
  color: var(--text-secondary);
  padding: 0.45rem 0;
  font-size: 0.9rem;
}

/* Ads */
.ads-slot {
  padding: 0.7rem 0 0.2rem;
}

#ads,
.sticky-bar-inner {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 6px;
}

#ads > div,
.sticky-bar-inner > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70px;
}

#ads img,
.sticky-bar-inner img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  border: 1px solid rgba(255, 77, 154, 0.25);
}

#ads a,
.sticky-bar-inner a {
  display: inline-block;
  border-radius: 14px;
}

#ads img:hover,
.sticky-bar-inner img:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 10px 28px rgba(255, 77, 154, 0.3);
}

#ads .caption,
.sticky-bar-inner .caption {
  height: 15px;
  font-size: 11px;
  color: var(--text-dim);
  text-align: center;
  max-width: 68px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 3px;
}

.sticky-bar {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(12, 6, 16, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-glow);
  padding: 7px 8px;
  transform: translateY(-120%);
  opacity: 0;
  transition: transform 0.28s ease, opacity 0.28s ease;
  pointer-events: none;
}

.sticky-bar.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.sticky-bar-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.sticky-bar-inner > div {
  width: calc(25% - 6px);
}

.sticky-bar-inner img {
  width: 50px;
  height: 50px;
  border-radius: 12px;
}

body.has-sticky main {
  padding-top: calc(var(--nav-h) + var(--sticky-h));
}

main {
  padding-top: var(--nav-h);
}

/* Hero */
.intro-panel {
  padding: 2rem 0 2.5rem;
  position: relative;
}

.intro-panel::before {
  content: "";
  position: absolute;
  left: -2vw;
  top: 1rem;
  width: 4px;
  height: 120px;
  background: linear-gradient(180deg, var(--neon-pink), var(--neon-violet), transparent);
  border-radius: 4px;
}

.intro-badge {
  display: inline-block;
  padding: 0.28rem 0.85rem;
  background: rgba(124, 77, 255, 0.15);
  border: 1px solid rgba(124, 77, 255, 0.4);
  border-radius: 6px;
  font-size: 0.76rem;
  color: var(--neon-cyan);
  letter-spacing: 0.08em;
  margin-bottom: 0.9rem;
}

.intro-panel h1 {
  font-family: "ZCOOL QingKe HuangYou", "IBM Plex Sans SC", sans-serif;
  font-size: clamp(1.5rem, 4.8vw, 2.4rem);
  line-height: 1.32;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff 30%, var(--neon-pink) 70%, var(--neon-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.intro-lead {
  font-size: 0.98rem;
  color: var(--text-secondary);
  max-width: 820px;
  margin-bottom: 1.3rem;
  text-align: justify;
}

.intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

/* Sections */
.sect {
  padding: 2.1rem 0;
}

.sect-title {
  margin-bottom: 1.4rem;
}

.sect-title h2 {
  font-family: "ZCOOL QingKe HuangYou", sans-serif;
  font-size: clamp(1.25rem, 3.6vw, 1.7rem);
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.sect-title p {
  color: var(--text-dim);
  font-size: 0.92rem;
}

.article-flow h3 {
  font-size: 1.12rem;
  color: var(--neon-pink);
  margin: 1.3rem 0 0.55rem;
  font-weight: 600;
}

.article-flow h3:first-child {
  margin-top: 0;
}

.article-flow p {
  margin-bottom: 0.9rem;
  color: var(--text-secondary);
  text-align: justify;
}

.article-flow ul,
.article-flow ol {
  margin: 0.5rem 0 1rem 1.4rem;
  color: var(--text-secondary);
}

.article-flow li {
  margin-bottom: 0.35rem;
}

/* Cards */
.tile-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.1rem;
}

.tile-grid.cols-3 {
  grid-template-columns: 1fr;
}

.tile-grid.cols-2 {
  grid-template-columns: 1fr;
}

.glass-tile {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.25rem;
  border: 1px solid var(--border-glow);
  box-shadow: var(--shadow-neon);
  position: relative;
  overflow: hidden;
}

.glass-tile::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--neon-violet), var(--neon-pink));
}

.glass-tile h3 {
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.glass-tile p {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.78;
}

.glass-tile .chip {
  display: inline-block;
  font-size: 0.7rem;
  padding: 0.12rem 0.45rem;
  background: rgba(255, 77, 154, 0.12);
  color: var(--neon-pink);
  border-radius: 999px;
  margin-bottom: 0.45rem;
}

/* Media 3:7 */
.split-media {
  display: grid;
  gap: 1.3rem;
  align-items: start;
  margin-top: 1rem;
}

.split-media.flip .shot-wrap {
  order: 2;
}

.shot-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-glow);
  box-shadow: var(--shadow-neon);
}

.shot-wrap img {
  width: 100%;
}

.shot-wrap figcaption {
  padding: 0.5rem 0.75rem;
  font-size: 0.76rem;
  color: var(--text-dim);
  background: var(--bg-surface);
  text-align: center;
}

.split-body {
  display: flex;
  flex-direction: column;
}

/* Highlight strip */
.glow-strip {
  background: linear-gradient(135deg, rgba(124, 77, 255, 0.12), rgba(255, 77, 154, 0.08));
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem;
  margin-top: 1rem;
}

/* FAQ */
.qa-stack {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.qa-item {
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  border-left: 3px solid var(--neon-violet);
}

.qa-item h3 {
  font-size: 0.94rem;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.qa-item p {
  font-size: 0.87rem;
  color: var(--text-dim);
  line-height: 1.75;
}

/* Breadcrumb */
.trail {
  padding: 0.85rem 0 0.15rem;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.trail a {
  color: var(--text-dim);
}

.trail a:hover {
  color: var(--neon-pink);
}

.trail span {
  margin: 0 0.3rem;
  opacity: 0.45;
}

/* Page header */
.page-top {
  padding: 1.1rem 0 1.4rem;
  border-bottom: 1px dashed var(--border-glow);
  margin-bottom: 1.1rem;
}

.page-top h1 {
  font-family: "ZCOOL QingKe HuangYou", sans-serif;
  font-size: clamp(1.35rem, 3.8vw, 1.85rem);
  margin-bottom: 0.35rem;
}

.page-top p {
  color: var(--text-dim);
  font-size: 0.9rem;
}

.page-body h2 {
  font-size: 1.08rem;
  color: var(--neon-cyan);
  margin: 1.6rem 0 0.55rem;
}

.page-body p {
  color: var(--text-secondary);
  margin-bottom: 0.85rem;
  text-align: justify;
}

.page-body ul,
.page-body ol {
  margin: 0.4rem 0 1rem 1.3rem;
  color: var(--text-secondary);
}

.page-body li {
  margin-bottom: 0.35rem;
}

/* Footer */
.bottom-bar {
  margin-top: 2.4rem;
  padding: 2rem 0 2.4rem;
  border-top: 1px solid var(--border-glow);
  background: rgba(22, 13, 28, 0.6);
}

.foot-cols {
  display: grid;
  gap: 1.1rem;
}

.foot-cols h4 {
  font-size: 0.92rem;
  color: var(--text-primary);
  margin-bottom: 0.45rem;
}

.foot-nav {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.1rem;
}

.foot-nav a {
  font-size: 0.84rem;
  color: var(--text-dim);
}

.foot-note {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px dashed var(--border-glow);
}

.ext-link {
  border-bottom: 1px dotted var(--neon-pink);
}

/* Error */
.err-wrap {
  min-height: calc(100vh - var(--nav-h) - 100px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 0;
}

.err-box h1 {
  font-family: "ZCOOL QingKe HuangYou", sans-serif;
  font-size: 4.2rem;
  color: var(--neon-pink);
  line-height: 1;
  margin-bottom: 0.45rem;
}

.err-box h2 {
  font-size: 1.15rem;
  margin-bottom: 0.7rem;
}

.err-box p {
  color: var(--text-dim);
  margin-bottom: 1.1rem;
}

@media (min-width: 640px) {
  .tile-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .tile-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .split-media {
    grid-template-columns: 3fr 7fr;
  }

  .split-media.img-right {
    grid-template-columns: 7fr 3fr;
  }

  .foot-cols {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 768px) {
  .menu-main {
    display: flex;
  }

  .menu-btn {
    display: none;
  }

  .sticky-bar-inner > div {
    width: calc(12.5% - 7px);
  }

  .sticky-bar-inner img {
    width: 58px;
    height: 58px;
  }
}

@media (max-width: 767px) {
  .split-media.flip .shot-wrap {
    order: 0;
  }
}
