:root {
  --brand-orange: #ff7a18;
  --brand-pink: #e91e8c;
  --brand-deep: #c4186a;
  --ink: #1a1520;
  --ink-soft: #4a4452;
  --muted: #7a7380;
  --line: #ebe6ef;
  --bg: #faf7fb;
  --bg-warm: #fff6f0;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 12px 40px rgba(26, 21, 32, 0.08);
  --max: 1120px;
  --font: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --display: "ZCOOL XiaoWei", "Noto Serif SC", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand-deep);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--brand-orange);
}

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 8px 16px;
  z-index: 1000;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.brand span {
  background: linear-gradient(120deg, var(--brand-orange), var(--brand-pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  color: var(--ink-soft);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.95rem;
}

.nav a:hover,
.nav a.active {
  color: var(--brand-deep);
  background: rgba(233, 30, 140, 0.08);
}

.nav-cta {
  background: linear-gradient(120deg, var(--brand-orange), var(--brand-pink)) !important;
  color: #fff !important;
  font-weight: 600;
  padding: 10px 18px !important;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  cursor: pointer;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: var(--ink);
  border-radius: 2px;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 20% 20%, rgba(255, 122, 24, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 50% at 85% 15%, rgba(233, 30, 140, 0.16), transparent 50%),
    linear-gradient(180deg, #fff 0%, var(--bg-warm) 100%);
  padding: 56px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.hero-brand {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.15;
  margin: 0 0 12px;
  background: linear-gradient(120deg, var(--brand-orange), var(--brand-pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h1 {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  line-height: 1.45;
  margin: 0 0 16px;
  font-weight: 700;
  color: var(--ink);
}

.hero-lead {
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin: 0 0 28px;
  max-width: 34em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(120deg, var(--brand-orange), var(--brand-pink));
  color: #fff;
  box-shadow: 0 10px 28px rgba(233, 30, 140, 0.28);
}

.btn-primary:hover {
  color: #fff;
}

.btn-ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  color: var(--brand-deep);
  border-color: rgba(233, 30, 140, 0.35);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

.hero-tags span {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 999px;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  border-radius: 24px;
  box-shadow: var(--shadow);
  animation: floatY 5s ease-in-out infinite;
}

.hero-glow {
  position: absolute;
  inset: 10% 15%;
  background: linear-gradient(120deg, rgba(255, 122, 24, 0.35), rgba(233, 30, 140, 0.35));
  filter: blur(40px);
  z-index: -1;
  border-radius: 50%;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  animation: fadeUp 0.7s ease both;
}

.reveal-delay {
  animation-delay: 0.15s;
}

/* Sections */
.section {
  padding: 64px 0;
}

.section-alt {
  background: #fff;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
}

.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 12px;
  line-height: 1.35;
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
}

.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--brand-pink);
  margin-bottom: 8px;
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-item img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
  background: #f0eef2;
}

.feature-item .body {
  padding: 18px 18px 22px;
}

.feature-item h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.feature-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Category mosaic */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.category-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  min-height: 180px;
}

.category-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: top;
}

.category-card .label {
  padding: 14px 16px 16px;
}

.category-card h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.category-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.split.reverse .split-media {
  order: 2;
}

.split-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  object-position: top;
  margin: 0 auto;
}

.split-copy h2 {
  margin: 0 0 14px;
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
}

.split-copy p {
  color: var(--ink-soft);
  margin: 0 0 14px;
}

.split-copy ul {
  margin: 0 0 20px;
  padding-left: 1.2em;
  color: var(--ink-soft);
}

.split-copy li {
  margin-bottom: 8px;
}

/* Content long SEO */
.content-block {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 40px;
}

.content-block h2 {
  margin: 0 0 16px;
  font-size: 1.55rem;
}

.content-block h3 {
  margin: 28px 0 12px;
  font-size: 1.2rem;
  color: var(--ink);
}

.content-block p {
  color: var(--ink-soft);
  margin: 0 0 14px;
}

.content-block ul,
.content-block ol {
  color: var(--ink-soft);
  margin: 0 0 16px;
  padding-left: 1.25em;
}

.content-block li {
  margin-bottom: 8px;
}

.toc {
  background: var(--bg-warm);
  border: 1px solid rgba(255, 122, 24, 0.15);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 0 0 28px;
}

.toc strong {
  display: block;
  margin-bottom: 10px;
}

.toc a {
  display: inline-block;
  margin: 4px 12px 4px 0;
}

/* CTA band */
.cta-band {
  background:
    linear-gradient(120deg, rgba(255, 122, 24, 0.95), rgba(233, 30, 140, 0.95)),
    url("/home-featured.jpg") center / cover;
  color: #fff;
  text-align: center;
  padding: 64px 0;
  position: relative;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 122, 24, 0.92), rgba(201, 24, 106, 0.92));
}

.cta-band .container {
  position: relative;
  z-index: 1;
}

.cta-band h2 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.cta-band p {
  margin: 0 auto 24px;
  max-width: 36em;
  opacity: 0.95;
}

.cta-band .btn-primary {
  background: #fff;
  color: var(--brand-deep);
  box-shadow: none;
}

.cta-band .btn-primary:hover {
  color: var(--brand-orange);
}

/* Gallery strip */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.gallery img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: top;
  border-radius: 12px;
}

/* Page hero (inner pages) */
.page-hero {
  background:
    radial-gradient(ellipse 60% 80% at 10% 0%, rgba(255, 122, 24, 0.12), transparent 50%),
    radial-gradient(ellipse 50% 60% at 90% 20%, rgba(233, 30, 140, 0.1), transparent 45%),
    #fff;
  padding: 48px 0 36px;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.page-hero p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 42em;
}

.breadcrumb {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--brand-deep);
}

/* Legal / article */
.article {
  padding: 48px 0 72px;
}

.article-body {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 40px;
  max-width: 860px;
  margin: 0 auto;
}

.article-body h2 {
  margin: 28px 0 12px;
  font-size: 1.25rem;
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body p,
.article-body li {
  color: var(--ink-soft);
}

.article-body ul {
  padding-left: 1.2em;
}

.related-links {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.related-links a {
  display: inline-block;
  margin: 6px 14px 6px 0;
}

/* Error pages */
.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 48px 0;
  background:
    radial-gradient(ellipse 50% 40% at 50% 20%, rgba(255, 122, 24, 0.12), transparent 60%),
    var(--bg);
}

.error-code {
  font-family: var(--display);
  font-size: clamp(4rem, 12vw, 7rem);
  line-height: 1;
  margin: 0;
  background: linear-gradient(120deg, var(--brand-orange), var(--brand-pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.error-page h1 {
  margin: 8px 0 12px;
  font-size: 1.6rem;
}

.error-page p {
  color: var(--ink-soft);
  margin: 0 0 28px;
}

/* Footer */
.site-footer {
  background: #1a1520;
  color: rgba(255, 255, 255, 0.78);
  padding: 48px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 36px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.site-footer h3 {
  color: #fff;
  font-size: 0.95rem;
  margin: 0 0 14px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 8px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.site-footer a:hover {
  color: #ffb36b;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}

/* Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.text-center { text-align: center; }

.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }

/* Mobile */
@media (max-width: 960px) {
  .menu-toggle {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 20px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 12px 14px;
  }

  .hero-grid,
  .split,
  .split.reverse .split-media {
    grid-template-columns: 1fr;
  }

  .split.reverse .split-media {
    order: 0;
  }

  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .category-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .content-block,
  .article-body {
    padding: 24px 20px;
  }

  .hero {
    padding: 36px 0 48px;
  }

  .hero-visual img {
    max-width: 280px;
  }
}

@media (max-width: 600px) {
  .feature-grid,
  .category-grid,
  .gallery,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .gallery img {
    height: 220px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .feature-item img {
    aspect-ratio: 3 / 4;
    max-height: 420px;
  }
}
