:root {
  --bg: #0a0a0f;
  --bg-2: #12121a;
  --bg-3: #1a1a26;
  --text: #f2f2f7;
  --text-muted: #a0a0b8;
  --accent: #ff2d6f;
  --accent-2: #ff6b3d;
  --accent-3: #c44dff;
  --line: rgba(255, 255, 255, 0.08);
  --radius: 12px;
  --max: 1180px;
  --font-display: "ZCOOL XiaoWei", "Noto Serif SC", "Songti SC", 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.75;
  font-size: 16px;
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(255, 45, 111, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 0%, rgba(196, 77, 255, 0.12), transparent 50%),
    linear-gradient(180deg, #0a0a0f 0%, #0d0d14 40%, #0a0a0f 100%);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--accent-2);
}

ul,
ol {
  padding-left: 1.25rem;
}

li {
  margin: 0.35rem 0;
}

.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(10, 10, 15, 0.85);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.brand span {
  background: linear-gradient(105deg, #ff6b3d, #ff2d6f, #c44dff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-wrap: wrap;
}

.nav a {
  color: var(--text-muted);
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  font-size: 0.92rem;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
  background: rgba(255, 45, 111, 0.12);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  width: 42px;
  height: 42px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.25rem;
}

/* Hero */
.hero {
  position: relative;
  padding: 3.5rem 0 2.5rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.15;
  margin-bottom: 0.75rem;
  background: linear-gradient(105deg, #fff 10%, #ff8a5c 45%, #ff2d6f 75%, #d06bff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h1 {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.hero-lead {
  color: var(--text-muted);
  font-size: 1.02rem;
  max-width: 36rem;
  margin-bottom: 1.5rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.35rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(105deg, var(--accent-2), var(--accent), var(--accent-3));
  box-shadow: 0 8px 28px rgba(255, 45, 111, 0.35);
}

.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-tags span {
  font-size: 0.8rem;
  color: var(--text-muted);
  border: 1px solid var(--line);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  animation: floatIn 0.9s ease both;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: auto -8% -8% auto;
  width: 55%;
  height: 45%;
  background: radial-gradient(circle, rgba(255, 45, 111, 0.35), transparent 70%);
  z-index: -1;
  filter: blur(20px);
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  animation: fadeUp 0.7s ease both;
}

/* Sections */
.section {
  padding: 3rem 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(18, 18, 26, 0.6), rgba(10, 10, 15, 0.2));
  border-block: 1px solid var(--line);
}

.section-head {
  margin-bottom: 1.75rem;
  max-width: 46rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2rem);
  margin-bottom: 0.55rem;
  line-height: 1.3;
}

.section-head p {
  color: var(--text-muted);
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.feature-item {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.feature-item:hover {
  border-color: rgba(255, 45, 111, 0.35);
  transform: translateY(-3px);
}

.feature-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
}

.feature-item p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.feature-item .num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

/* Gallery */
.shot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.shot-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.shot-card:hover {
  transform: translateY(-4px);
  border-color: rgba(196, 77, 255, 0.4);
}

.shot-card img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
  background: var(--bg-3);
}

.shot-card figcaption {
  padding: 0.75rem 0.85rem 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.shot-card strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.2rem;
  font-size: 0.95rem;
}

.shot-grid.wide img {
  aspect-ratio: 3 / 4;
}

/* Content article */
.article {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2rem;
  align-items: start;
}

.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  margin: 2rem 0 0.85rem;
  scroll-margin-top: 5rem;
}

.article-body h3 {
  font-size: 1.15rem;
  margin: 1.5rem 0 0.65rem;
  color: #ffd0df;
}

.article-body p {
  margin-bottom: 1rem;
  color: #d8d8e6;
}

.article-body ul,
.article-body ol {
  margin-bottom: 1rem;
  color: #d8d8e6;
}

.article-body a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.toc {
  position: sticky;
  top: 5.5rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
}

.toc h3 {
  font-size: 0.95rem;
  margin-bottom: 0.7rem;
}

.toc a {
  display: block;
  color: var(--text-muted);
  font-size: 0.88rem;
  padding: 0.3rem 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
}

.toc a:hover {
  color: var(--accent);
}

.inline-shots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.25rem 0 1.5rem;
}

.inline-shots figure {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.inline-shots img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
}

.inline-shots figcaption {
  padding: 0.65rem 0.8rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* FAQ */
.faq details {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.95rem 1.1rem;
  margin-bottom: 0.7rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq details[open] summary {
  color: var(--accent);
  margin-bottom: 0.55rem;
}

.faq details p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Page content (subpages) */
.page-hero {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin-bottom: 0.5rem;
}

.page-hero p {
  color: var(--text-muted);
  max-width: 40rem;
}

.page-content {
  padding: 2.5rem 0 3.5rem;
  max-width: 820px;
}

.page-content h2 {
  font-size: 1.35rem;
  margin: 1.75rem 0 0.7rem;
  font-family: var(--font-display);
}

.page-content p,
.page-content li {
  color: #d8d8e6;
  margin-bottom: 0.85rem;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--accent);
}

/* Error pages */
.error-wrap {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-wrap h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 5rem);
  background: linear-gradient(105deg, var(--accent-2), var(--accent), var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.error-wrap p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: #07070c;
  padding: 2.5rem 0 1.5rem;
  margin-top: 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
  color: var(--text);
  font-weight: 700;
}

.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.site-footer h4 {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  color: #fff;
}

.site-footer p,
.site-footer a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.site-footer a {
  display: block;
  padding: 0.25rem 0;
}

.site-footer a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.keywords-line {
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.6;
}

/* Mobile */
@media (max-width: 960px) {
  .hero-grid,
  .article,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
  }

  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .shot-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav {
    display: none;
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.35rem);
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  }

  .nav.open {
    display: flex;
  }

  .header-inner {
    position: relative;
  }

  .hero {
    padding: 2rem 0 1.5rem;
  }

  .feature-grid,
  .shot-grid,
  .inline-shots {
    grid-template-columns: 1fr;
  }

  .shot-card img,
  .inline-shots img {
    aspect-ratio: 9 / 16;
    max-height: 520px;
    margin-inline: auto;
  }

  .section {
    padding: 2.2rem 0;
  }

  .cta-row {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
