:root {
  --brand-orange: #ff7a18;
  --brand-pink: #e91e8c;
  --brand-magenta: #c2185b;
  --brand-gold: #ffb300;
  --brand-purple: #9c27b0;
  --bg: #f7f3f8;
  --bg-soft: #fff7fb;
  --text: #2a2430;
  --text-muted: #6b6175;
  --card: #ffffff;
  --line: #eadfe8;
  --shadow: 0 10px 28px rgba(194, 24, 91, 0.08);
  --radius: 14px;
  --max: 1120px;
  --grad: linear-gradient(120deg, #ffb300 0%, #ff7a18 35%, #e91e8c 70%, #9c27b0 100%);
  --grad-soft: linear-gradient(160deg, #fff8f0 0%, #fff0f7 45%, #f6ecff 100%);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand-magenta);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--brand-orange);
}

.container {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.brand span {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
}

.nav a {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a:hover,
.nav a.active {
  color: var(--brand-magenta);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--grad-soft);
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% auto auto -10%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(255, 122, 24, 0.22), transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  right: -8%;
  bottom: -30%;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(233, 30, 140, 0.18), transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  padding: 56px 0 48px;
}

.hero-copy h1 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  line-height: 1.3;
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

.hero-copy .lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 22px;
  max-width: 36em;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
}

.btn-primary {
  color: #fff;
  background: var(--grad);
  box-shadow: 0 8px 20px rgba(233, 30, 140, 0.25);
}

.btn-primary:hover {
  color: #fff;
  opacity: 0.92;
}

.btn-ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--brand-pink);
  color: var(--brand-magenta);
}

.hero-visual {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* Sections */
.section {
  padding: 56px 0;
}

.section-alt {
  background: var(--bg-soft);
}

.section-head {
  margin-bottom: 28px;
  max-width: 48em;
}

.section-head h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  margin-bottom: 10px;
}

.section-head p {
  color: var(--text-muted);
}

.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brand-magenta);
  margin-bottom: 8px;
}

/* Grids */
.grid-3,
.grid-4,
.grid-2 {
  display: grid;
  gap: 18px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #1a1220;
}

.card-media.portrait {
  aspect-ratio: 3 / 4;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.card:hover .card-media img {
  transform: scale(1.04);
}

.card-body {
  padding: 16px 18px 18px;
}

.card-body h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.card-body p {
  color: var(--text-muted);
  font-size: 0.94rem;
}

.feature-list {
  display: grid;
  gap: 14px;
}

.feature-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
}

.feature-item img {
  width: 120px;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
}

.prose {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 30px;
  box-shadow: var(--shadow);
}

.prose h2,
.prose h3 {
  margin: 1.4em 0 0.6em;
}

.prose h2:first-child,
.prose h3:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  color: var(--text);
  margin-bottom: 0.9em;
}

.prose ul,
.prose ol {
  padding-left: 1.2em;
  margin-bottom: 1em;
}

.prose a {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 8px;
}

.toc a {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--text);
  font-size: 0.88rem;
}

.toc a:hover {
  border-color: var(--brand-pink);
  color: var(--brand-magenta);
}

.highlight-box {
  margin: 20px 0;
  padding: 16px 18px;
  border-left: 4px solid var(--brand-pink);
  background: linear-gradient(90deg, rgba(233, 30, 140, 0.08), transparent);
  border-radius: 0 10px 10px 0;
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 24px;
}

.kpi {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.kpi strong {
  display: block;
  font-size: 1.35rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.kpi span {
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* Page hero for subpages */
.page-hero {
  background: var(--grad-soft);
  border-bottom: 1px solid var(--line);
  padding: 42px 0 34px;
}

.page-hero h1 {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  margin-bottom: 10px;
}

.page-hero p {
  color: var(--text-muted);
  max-width: 42em;
}

.breadcrumb {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.breadcrumb a {
  color: var(--text-muted);
}

/* Error pages */
.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 60px 16px;
  background: var(--grad-soft);
}

.error-page h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
}

.error-page p {
  color: var(--text-muted);
  margin-bottom: 22px;
}

/* Footer */
.site-footer {
  background: #2a1f2e;
  color: #f4eaf2;
  padding: 42px 0 24px;
  margin-top: 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}

.site-footer h3 {
  font-size: 1rem;
  margin-bottom: 12px;
  color: #fff;
}

.site-footer p,
.site-footer a {
  color: #d9c9d6;
  font-size: 0.92rem;
}

.site-footer a:hover {
  color: #ffb3d8;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 16px;
  font-size: 0.85rem;
  color: #b9a7b5;
  text-align: center;
}

/* Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Responsive */
@media (max-width: 980px) {
  .hero-inner,
  .grid-3,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .grid-4,
  .kpi-row {
    grid-template-columns: 1fr 1fr;
  }

  .feature-item {
    grid-template-columns: 100px 1fr;
  }

  .feature-item img {
    width: 100px;
    height: 134px;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    z-index: 120;
    width: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
    position: absolute;
  }

  .nav a {
    padding: 12px 14px;
    border-radius: 8px;
  }

  .nav a:hover,
  .nav a.active {
    background: var(--bg-soft);
  }

  .header-inner {
    flex-wrap: nowrap;
    min-height: 60px;
  }

  .hero-inner,
  .grid-2,
  .grid-3,
  .grid-4,
  .footer-grid,
  .kpi-row {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    padding: 36px 0 32px;
    gap: 24px;
  }

  .section {
    padding: 40px 0;
  }

  .prose {
    padding: 20px 16px;
  }

  .feature-item {
    grid-template-columns: 1fr;
  }

  .feature-item img {
    width: 100%;
    height: 220px;
  }

  .hero-visual img {
    aspect-ratio: 3 / 4;
  }
}
