:root {
  --ink: #1a1210;
  --ink-soft: #3d2e28;
  --muted: #6b564c;
  --paper: #fff8f4;
  --paper-2: #ffe9df;
  --line: rgba(61, 46, 40, 0.12);
  --coral: #e84d3d;
  --coral-deep: #c4352a;
  --rose: #d6456e;
  --amber: #f0a05a;
  --gold: #e8b84a;
  --surface: #ffffff;
  --shadow: 0 18px 50px rgba(26, 18, 16, 0.12);
  --radius: 18px;
  --max: 1120px;
  --font-display: "ZCOOL XiaoWei", "Noto Serif SC", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  background:
    radial-gradient(ellipse 90% 60% at 10% -10%, rgba(240, 160, 90, 0.28), transparent 55%),
    radial-gradient(ellipse 70% 50% at 95% 5%, rgba(214, 69, 110, 0.18), transparent 50%),
    linear-gradient(180deg, #fff5ef 0%, var(--paper) 40%, #fff 100%);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--coral-deep);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--rose);
}

.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(255, 248, 244, 0.88);
  border-bottom: 1px solid var(--line);
}

/* Sticky ads under header */
.ads-bar {
  position: sticky;
  top: 68px;
  z-index: 99;
  background: rgba(255, 248, 244, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 8px 0 6px;
}

#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 6px 4px;
  background: transparent;
  margin: 0;
  min-height: 0;
}

#ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70px;
  box-sizing: border-box;
}

#ads figure {
  margin: 0;
}

#ads img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(24, 24, 24, 0.12);
  transition: transform 180ms ease, box-shadow 180ms ease;
  display: block;
  border: none;
  background: linear-gradient(135deg, #fff, #fff);
}

#ads a {
  display: inline-block;
  text-decoration: none;
  border-radius: 15px;
  color: inherit;
}

#ads img:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 10px 24px rgba(24, 24, 24, 0.18);
}

#ads figcaption,
#ads .caption {
  height: 15px;
  margin-top: 4px;
  font-size: 11px;
  color: #666;
  text-align: center;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--coral);
}

/* Hero */
.hero {
  padding: 3.5rem 0 2.5rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-copy .eyebrow {
  display: inline-block;
  margin-bottom: 0.85rem;
  color: var(--rose);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.hero-copy h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.5vw, 3.35rem);
  line-height: 1.2;
  font-weight: 400;
  color: var(--ink);
}

.hero-copy .lead {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 36em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--coral) 0%, var(--rose) 100%);
  color: #fff;
  box-shadow: 0 10px 28px rgba(232, 77, 61, 0.28);
}

.btn-primary:hover {
  color: #fff;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--line);
  color: var(--ink-soft);
}

.phone-stack {
  position: relative;
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone {
  position: absolute;
  width: min(46%, 240px);
  border-radius: 28px;
  overflow: hidden;
  border: 3px solid #2a1f1c;
  background: #111;
  box-shadow: var(--shadow);
  transition: transform 0.45s ease;
}

.phone img {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  object-position: top;
}

.phone-back {
  transform: translate(-18%, 8%) rotate(-8deg);
  z-index: 1;
}

.phone-front {
  transform: translate(16%, -4%) rotate(5deg);
  z-index: 2;
}

.phone-stack:hover .phone-back {
  transform: translate(-22%, 4%) rotate(-10deg);
}

.phone-stack:hover .phone-front {
  transform: translate(20%, -8%) rotate(7deg);
}

.hero-glow {
  position: absolute;
  inset: 12% 8%;
  background:
    radial-gradient(circle at 40% 40%, rgba(232, 77, 61, 0.22), transparent 55%),
    radial-gradient(circle at 70% 60%, rgba(240, 160, 90, 0.25), transparent 50%);
  filter: blur(8px);
  z-index: 0;
  pointer-events: none;
}

/* Sections */
.section {
  padding: 3.2rem 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 233, 223, 0.55), rgba(255, 248, 244, 0.2));
  border-block: 1px solid var(--line);
}

.section-head {
  margin-bottom: 1.75rem;
  max-width: 46rem;
}

.section-head h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  font-weight: 400;
  line-height: 1.25;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.prose p {
  margin: 0 0 1.1rem;
  color: var(--ink-soft);
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose h3 {
  margin: 1.8rem 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
}

.prose ul,
.prose ol {
  margin: 0 0 1.1rem;
  padding-left: 1.25rem;
  color: var(--ink-soft);
}

.prose li {
  margin-bottom: 0.45rem;
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-item {
  padding: 1.35rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.feature-item h3 {
  margin: 0 0 0.55rem;
  font-size: 1.08rem;
}

.feature-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Media rows */
.media-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-top: 2rem;
}

.media-row.reverse .media-copy {
  order: 2;
}

.media-row.reverse .media-visual {
  order: 1;
}

.shot {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #111;
}

.shot img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  object-position: top;
}

.shot-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.shot-pair .shot img {
  max-height: 420px;
}

/* Category chips area */
.category-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.category-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #111;
  min-height: 220px;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  opacity: 0.88;
  transition: transform 0.45s ease, opacity 0.3s ease;
}

.category-card:hover img {
  transform: scale(1.04);
  opacity: 1;
}

.category-card figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.6rem 1rem 0.9rem;
  background: linear-gradient(transparent, rgba(12, 8, 7, 0.88));
  color: #fff;
  font-weight: 600;
  font-size: 0.98rem;
}

/* Stats strip */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.stat {
  padding: 1.2rem 1rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--coral);
  margin-bottom: 0.25rem;
}

.stat span {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}

.gallery img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
}

.gallery figcaption {
  padding: 0.75rem 0.9rem 0.95rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Links panel */
.links-panel {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.links-panel a {
  display: block;
  padding: 1rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  font-weight: 600;
}

.links-panel a span {
  display: block;
  margin-top: 0.3rem;
  font-weight: 400;
  color: var(--muted);
  font-size: 0.9rem;
}

.links-panel a:hover {
  border-color: rgba(232, 77, 61, 0.35);
  color: var(--coral);
}

/* Page hero (inner) */
.page-hero {
  padding: 2.8rem 0 1.5rem;
}

.page-hero h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 400;
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 40rem;
}

.breadcrumb {
  margin-bottom: 0.85rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
}

.content-box {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(1.25rem, 3vw, 2rem);
  margin-bottom: 2.5rem;
}

/* Error pages */
.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-page h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 5rem);
  color: var(--coral);
  font-weight: 400;
}

.error-page p {
  margin: 0 0 1.5rem;
  color: var(--muted);
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  padding: 2.5rem 0 1.75rem;
  background: linear-gradient(180deg, #2a1b17, #1a1210);
  color: rgba(255, 248, 244, 0.78);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.site-footer .brand {
  color: #fff;
}

.site-footer p {
  margin: 0.85rem 0 0;
  font-size: 0.92rem;
  line-height: 1.7;
}

.site-footer h3 {
  margin: 0 0 0.85rem;
  color: #fff;
  font-size: 1rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.45rem;
}

.footer-links a {
  color: rgba(255, 248, 244, 0.72);
}

.footer-links a:hover {
  color: #ffd2c2;
}

.footer-bottom {
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: space-between;
}

/* Motion */
@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-copy,
.phone-stack {
  animation: rise-in 0.8s ease both;
}

.phone-stack {
  animation-delay: 0.12s;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .media-row,
  .media-row.reverse .media-copy,
  .media-row.reverse .media-visual,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .media-row.reverse .media-copy,
  .media-row.reverse .media-visual {
    order: initial;
  }

  .phone-stack {
    height: 460px;
    margin-top: 0.5rem;
  }

  .feature-grid,
  .category-board,
  .gallery,
  .stats,
  .links-panel {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: 68px;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem;
    background: rgba(255, 248, 244, 0.98);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    display: block;
    padding: 0.75rem 0.85rem;
  }

  .feature-grid,
  .category-board,
  .gallery,
  .stats,
  .links-panel,
  .shot-pair {
    grid-template-columns: 1fr;
  }

  .phone-stack {
    height: 400px;
  }

  .phone {
    width: min(52%, 190px);
  }

  .hero {
    padding-top: 2rem;
  }
}
