:root {
  --brand-yellow: #ffd200;
  --brand-orange: #ff5e00;
  --brand-pink: #d400af;
  --brand-grad: linear-gradient(120deg, #ffd200 0%, #ff5e00 48%, #d400af 100%);
  --text: #1f1a17;
  --muted: #5c534c;
  --bg: #fff8f2;
  --bg-soft: #fff1e6;
  --card: #ffffff;
  --line: #f0ddd0;
  --max: 1120px;
  --radius: 14px;
  --shadow: 0 12px 40px rgba(212, 0, 175, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 210, 0, 0.18), transparent 40%),
    radial-gradient(circle at 90% 10%, rgba(212, 0, 175, 0.12), transparent 42%),
    linear-gradient(180deg, #fff9f3 0%, #fff4eb 40%, #ffffff 100%);
  line-height: 1.75;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #b10086;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--brand-orange);
}

.container {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(255, 248, 242, 0.92);
  border-bottom: 1px solid rgba(240, 221, 208, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(255, 94, 0, 0.28);
}

.brand span {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.95rem;
}

.nav a:hover,
.nav a.active {
  color: #8b006a;
  background: rgba(255, 94, 0, 0.08);
}

.menu-btn {
  display: none;
  border: 0;
  background: var(--brand-grad);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 1.2rem;
  cursor: pointer;
}

.hero {
  padding: 56px 0 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 94, 0, 0.1);
  color: #b94400;
  font-size: 0.88rem;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero h1 em {
  font-style: normal;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 24px;
  max-width: 38em;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 12px;
  font-weight: 600;
  border: 1px solid transparent;
}

.btn-primary {
  color: #fff;
  background: var(--brand-grad);
  box-shadow: 0 10px 24px rgba(255, 94, 0, 0.28);
}

.btn-primary:hover {
  color: #fff;
  filter: brightness(1.05);
}

.btn-ghost {
  color: #8b006a;
  background: #fff;
  border-color: #f0b8d8;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  border-radius: 22px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.hero-badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: rgba(31, 26, 23, 0.72);
  color: #fff;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.9rem;
  backdrop-filter: blur(8px);
}

.section {
  padding: 42px 0;
}

.section-head {
  margin-bottom: 22px;
}

.section-head h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin-bottom: 8px;
}

.section-head p {
  color: var(--muted);
  max-width: 48em;
}

.grid-3,
.grid-4,
.grid-2 {
  display: grid;
  gap: 18px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(31, 26, 23, 0.04);
}

.card img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: #f7e8de;
}

.card.wide img {
  aspect-ratio: 16 / 10;
}

.card-body {
  padding: 14px 16px 16px;
}

.card-body h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.card-body p {
  color: var(--muted);
  font-size: 0.94rem;
}

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.feature.reverse {
  direction: rtl;
}

.feature.reverse > * {
  direction: ltr;
}

.feature img {
  border-radius: 16px;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  max-height: 520px;
  margin: 0 auto;
}

.feature-text h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.feature-text p,
.feature-text li {
  color: var(--muted);
}

.feature-text ul {
  margin: 12px 0 0 1.1em;
}

.feature-text li {
  margin-bottom: 6px;
}

.article {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(18px, 3vw, 34px);
  box-shadow: var(--shadow);
}

.article h2,
.article h3 {
  margin: 1.4em 0 0.6em;
}

.article h2:first-child {
  margin-top: 0;
}

.article p {
  margin-bottom: 1em;
  color: #3b332d;
}

.article ul,
.article ol {
  margin: 0 0 1em 1.2em;
  color: #3b332d;
}

.article li {
  margin-bottom: 0.45em;
}

.page-hero {
  padding: 42px 0 10px;
}

.page-hero h1 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  margin-bottom: 10px;
}

.page-hero p {
  color: var(--muted);
  max-width: 46em;
}

.legal {
  padding: 18px 0 48px;
}

.legal .article p,
.legal .article li {
  font-size: 0.98rem;
}

.site-footer {
  margin-top: 40px;
  padding: 36px 0 28px;
  background: linear-gradient(180deg, #2a1418 0%, #1a0d11 100%);
  color: #f7e8de;
}

.site-footer a {
  color: #ffd4ef;
}

.site-footer a:hover {
  color: #ffd200;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 22px;
}

.footer-grid h3 {
  margin-bottom: 12px;
  font-size: 1.05rem;
}

.footer-grid ul {
  list-style: none;
}

.footer-grid li {
  margin-bottom: 8px;
}

.footer-brand {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.footer-brand img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.footer-brand p {
  color: #d9c3b8;
  margin-top: 8px;
  font-size: 0.92rem;
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 16px;
  color: #cbb4a8;
  font-size: 0.88rem;
}

.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 48px 0;
}

.error-page h1 {
  font-size: clamp(2.4rem, 8vw, 4.5rem);
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
}

.error-page p {
  color: var(--muted);
  margin-bottom: 22px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.chip {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: #8a4a22;
  font-size: 0.85rem;
  border: 1px solid #f0ddd0;
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 8px;
}

.toc a {
  background: #fff;
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
}

@media (max-width: 960px) {
  .hero-grid,
  .feature,
  .feature.reverse,
  .footer-grid,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr 1fr;
  }

  .feature,
  .feature.reverse {
    direction: ltr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 16px 18px;
    background: rgba(255, 248, 242, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 12px 14px;
  }

  .hero {
    padding-top: 28px;
  }

  .hero-grid,
  .feature,
  .grid-2,
  .grid-3,
  .grid-4,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .feature img {
    max-height: 420px;
  }

  .card img {
    aspect-ratio: 3 / 4;
  }
}
