:root {
  --bg: #0a0a0c;
  --bg-elevated: #141418;
  --bg-soft: #1a1a22;
  --text: #f5f5f7;
  --text-muted: #a0a0ab;
  --accent: #ff4d6d;
  --accent-2: #ffb347;
  --accent-3: #e6007e;
  --line: rgba(255, 255, 255, 0.08);
  --glow: rgba(255, 77, 109, 0.25);
  --radius: 14px;
  --max: 1120px;
  --font-display: "ZCOOL XiaoWei", "PingFang SC", "Microsoft YaHei", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  font-size: 16px;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-2);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent);
}

ul,
ol {
  padding-left: 1.25rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(10, 10, 12, 0.86);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.menu-toggle:hover {
  border-color: rgba(255, 179, 71, 0.45);
  background: rgba(255, 179, 71, 0.1);
}

.menu-toggle:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

.menu-toggle-icon {
  position: relative;
  display: block;
  width: 18px;
  height: 14px;
}

.menu-toggle-icon span {
  position: absolute;
  left: 0;
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease, top 0.25s ease;
}

.menu-toggle-icon span:nth-child(1) { top: 0; }
.menu-toggle-icon span:nth-child(2) { top: 6px; }
.menu-toggle-icon span:nth-child(3) { top: 12px; }

.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(1) {
  top: 6px;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(3) {
  top: 6px;
  transform: rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(255, 179, 71, 0.22), transparent 45%),
    radial-gradient(ellipse at 80% 10%, rgba(230, 0, 126, 0.28), transparent 40%),
    linear-gradient(180deg, #120b14 0%, #0a0a0c 70%);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
  filter: saturate(1.1) contrast(1.05);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 12, 0.25) 0%, rgba(10, 10, 12, 0.92) 78%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 4rem 1.25rem 3.5rem;
  width: 100%;
  animation: rise 0.9s ease both;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  line-height: 1.15;
  margin-bottom: 0.85rem;
  background: linear-gradient(110deg, #fff 20%, #ffb347 55%, #ff4d6d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h1 {
  font-size: clamp(1.25rem, 3.2vw, 1.75rem);
  font-weight: 600;
  margin-bottom: 0.85rem;
  max-width: 18em;
}

.hero p {
  color: var(--text-muted);
  max-width: 36em;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(120deg, var(--accent-2), var(--accent), var(--accent-3));
  color: #fff;
  box-shadow: 0 10px 30px var(--glow);
}

.btn-primary:hover {
  color: #fff;
  filter: brightness(1.05);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.btn-ghost:hover {
  color: var(--accent-2);
  border-color: rgba(255, 179, 71, 0.4);
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem 1.25rem;
}

.section-head {
  margin-bottom: 1.75rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 0.55rem;
}

.section-head p {
  color: var(--text-muted);
  max-width: 46em;
}

.section {
  border-top: 1px solid var(--line);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.75rem;
  align-items: start;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.feature-shot {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.feature-shot:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.feature-shot img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
}

.feature-shot figcaption {
  padding: 0.85rem 1rem 1rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.feature-shot figcaption strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.prose h2,
.prose h3 {
  font-family: var(--font-display);
  margin: 1.8rem 0 0.8rem;
}

.prose h2 {
  font-size: 1.7rem;
}

.prose h3 {
  font-size: 1.25rem;
}

.prose p {
  margin-bottom: 1rem;
  color: #d7d7df;
}

.prose ul,
.prose ol {
  margin: 0 0 1.1rem;
  color: #d7d7df;
}

.prose li {
  margin-bottom: 0.4rem;
}

.prose strong {
  color: #fff;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1rem 0 1.5rem;
}

.chip {
  display: inline-block;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.88rem;
}

.chip a {
  color: inherit;
}

.chip:hover {
  border-color: rgba(255, 179, 71, 0.45);
  color: var(--text);
}

.panel {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.03), transparent 55%),
    var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
}

.panel + .panel {
  margin-top: 1rem;
}

.page-hero {
  padding: 3.2rem 1.25rem 1.5rem;
  background:
    radial-gradient(ellipse at 10% 0%, rgba(255, 179, 71, 0.16), transparent 40%),
    radial-gradient(ellipse at 90% 20%, rgba(255, 77, 109, 0.14), transparent 35%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}

.page-hero-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 0.6rem;
}

.page-hero p {
  color: var(--text-muted);
  max-width: 42em;
}

.breadcrumb {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.9rem;
}

.breadcrumb a {
  color: var(--text-muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #070709;
  padding: 2.5rem 1.25rem 2rem;
  margin-top: 1rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}

.footer-brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.footer-brand p,
.site-footer p,
.site-footer li {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.site-footer h3 {
  font-size: 1rem;
  margin-bottom: 0.7rem;
  font-family: var(--font-display);
}

.site-footer ul {
  list-style: none;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.4rem;
}

.site-footer a {
  color: var(--text-muted);
}

.site-footer a:hover {
  color: var(--accent-2);
}

.copyright {
  max-width: var(--max);
  margin: 1.75rem auto 0;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
}

.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.25rem;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 77, 109, 0.18), transparent 40%),
    var(--bg);
}

.error-page h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 5rem);
  line-height: 1;
  margin-bottom: 0.6rem;
  background: linear-gradient(120deg, #fff, var(--accent-2), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.error-page p {
  color: var(--text-muted);
  margin-bottom: 1.4rem;
}

.toc {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.75rem;
}

.toc h2 {
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
  font-family: var(--font-display);
}

.toc ol {
  margin: 0;
  color: var(--text-muted);
}

.toc a {
  color: var(--text-muted);
}

.toc a:hover {
  color: var(--accent-2);
}

.shot-wide img {
  aspect-ratio: 9 / 19;
  object-fit: cover;
  object-position: top;
}

.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.fade-in {
  animation: rise 0.8s ease both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .grid-2,
  .grid-3,
  .grid-4,
  .footer-inner,
  .pair {
    grid-template-columns: 1fr;
  }

  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 2px);
    right: 1.25rem;
    left: 1.25rem;
    width: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.6rem;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(14, 14, 18, 0.96);
    backdrop-filter: blur(14px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    z-index: 120;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 0.7rem 0.85rem;
    border-radius: 8px;
  }

  .nav a:hover,
  .nav a.active {
    background: rgba(255, 255, 255, 0.05);
  }

  .header-inner {
    flex-wrap: nowrap;
  }

  .hero {
    min-height: 78vh;
  }

  .feature-shot img,
  .shot-wide img {
    aspect-ratio: 9 / 16;
  }
}

@media (max-width: 640px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }

  body {
    font-size: 15px;
  }

  .wrap {
    padding: 2.4rem 1rem;
  }
}
