:root {
  /* 梅子智查品牌色 */
  --brand: #c45c6a;
  --brand-dark: #a34452;
  --brand-light: #d47884;
  --brand-bg: #fdf2f4;
  --brand-bg-2: #f9e0e4;
  --brand-deep: #853645;
  --page-bg: #f7f5f6;
  --card: #ffffff;
  --text: #2d2a2b;
  --text-secondary: #6b6466;
  --text-muted: #999999;
  --leaf: #5f8f6b;
  --border: #e8e4e5;
  --divider: #f3f0f1;
  --radius: 16px;
  --radius-lg: 24px;
  --gradient: linear-gradient(135deg, #c45c6a 0%, #a34452 100%);
  --hero-gradient: linear-gradient(165deg, #a34452 0%, #c45c6a 48%, #d47884 100%);
  --brand-rgb: 196, 92, 106;
  --brand-dark-rgb: 163, 68, 82;
  --leaf-rgb: 95, 143, 107;
  --font-sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --shadow-soft: 0 16px 40px rgba(var(--brand-dark-rgb), 0.1);
  --shadow-card: 0 12px 32px rgba(45, 42, 43, 0.06);
  --container: 1100px;
  --header-h: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--page-bg);
  line-height: 1.65;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 1000;
  border-radius: 999px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.brand-logo {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 12px;
  object-fit: cover;
  box-shadow:
    0 4px 14px rgba(var(--brand-rgb), 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.55) inset;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  line-height: 1.2;
  min-width: 0;
}

.brand-text strong {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.04em;
}

.brand-text small {
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-weight: 400;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-nav {
  display: inline-flex;
  align-items: center;
  gap: 1.1rem;
}

.header-nav > a:not(.header-cta) {
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.header-nav > a:not(.header-cta):hover {
  color: var(--brand);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1.05rem;
  border-radius: 999px;
  background: var(--gradient);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow: 0 6px 16px rgba(var(--brand-rgb), 0.28);
}

.header-cta:hover {
  filter: brightness(0.96);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(var(--brand-dark-rgb), 0.32);
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  padding: 3.5rem 0 4.5rem;
  overflow: hidden;
  color: #fff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--hero-gradient);
  pointer-events: none;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 88% 18%, rgba(255, 255, 255, 0.18), transparent 60%),
    radial-gradient(ellipse 45% 40% at 12% 78%, rgba(95, 143, 107, 0.16), transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.hero-eyebrow {
  margin: 0 0 0.85rem;
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.brand-title {
  margin: 0;
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.04em;
  color: #fff;
}

.hero-lead {
  margin: 1rem 0 0;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  font-weight: 600;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.96);
  letter-spacing: 0.06em;
}

.hero-support {
  margin: 1.15rem 0 0;
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.02rem;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.92rem 1.55rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: #fff;
  color: var(--brand-dark);
  box-shadow: 0 10px 28px rgba(45, 42, 43, 0.16);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(45, 42, 43, 0.2);
  color: var(--brand-deep);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

/* Hero carousel */
.hero-visual {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-carousel {
  position: relative;
  width: min(100%, 480px);
  animation: carousel-float 5.5s ease-in-out infinite;
}

.hero-carousel-glow {
  position: absolute;
  inset: 2% -6% -4%;
  border-radius: 44px;
  background:
    radial-gradient(ellipse 70% 60% at 35% 35%, rgba(255, 255, 255, 0.28), transparent 70%),
    radial-gradient(ellipse 55% 50% at 75% 70%, rgba(var(--leaf-rgb), 0.22), transparent 72%);
  filter: blur(30px);
  pointer-events: none;
  z-index: 0;
}

.hero-carousel-track {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
  list-style: none;
  aspect-ratio: 1340 / 756;
}

.hero-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.75s ease, visibility 0.75s ease;
  pointer-events: none;
}

.hero-carousel-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}

.hero-carousel-blur {
  position: absolute;
  inset: -12% -10%;
  width: 120%;
  height: 124%;
  object-fit: cover;
  filter: blur(36px) saturate(1.1) brightness(1.05);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
  transform: scale(1.04);
}

.hero-carousel-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 28px 64px rgba(45, 42, 43, 0.22),
    0 10px 24px rgba(var(--brand-dark-rgb), 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.35);
}

.hero-carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-carousel-dots {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1.15rem;
}

.hero-carousel-dot {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease, transform 0.2s ease;
}

.hero-carousel-dot:hover {
  transform: scale(1.15);
  background: rgba(255, 255, 255, 0.7);
}

.hero-carousel-dot.is-active {
  width: 1.45rem;
  background: #fff;
}

.hero-carousel-dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

@keyframes carousel-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-head {
  max-width: 38rem;
  margin-bottom: 2.5rem;
}

.section-eyebrow {
  margin: 0 0 0.55rem;
  color: var(--brand);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
}

.section-head p {
  margin: 0.75rem 0 0;
  color: var(--text-secondary);
  font-size: 1.02rem;
}

/* Values — 白卡片浮岛 */
.values {
  background: var(--brand-bg);
}

.value-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.value-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.6rem 1.45rem 1.7rem;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(232, 228, 229, 0.9);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(var(--brand-dark-rgb), 0.1);
}

.value-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 12px;
  background: var(--brand-bg-2);
  color: var(--brand);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}

.value-icon-leaf {
  background: rgba(var(--leaf-rgb), 0.14);
  color: var(--leaf);
}

.value-card h3 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.06em;
}

.value-card p {
  margin: 0.75rem 0 0;
  color: var(--text-secondary);
  font-size: 0.98rem;
}

/* Coverage */
.coverage {
  background: var(--page-bg);
}

.coverage-island {
  text-align: center;
  padding: 2.6rem 1.5rem;
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
}

.coverage-stages {
  margin: 0;
  font-size: clamp(1.2rem, 2.6vw, 1.85rem);
  font-weight: 700;
  color: var(--brand-dark);
  letter-spacing: 0.06em;
  line-height: 1.7;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.15em 0.35em;
}

.coverage-stages span[aria-hidden="true"] {
  margin: 0 0.35em;
  color: var(--leaf);
  letter-spacing: 0;
}

.coverage-subjects {
  margin: 1.15rem 0 0;
  color: var(--text-secondary);
  font-size: 1.02rem;
  letter-spacing: 0.05em;
}

/* Scan */
.scan {
  padding-bottom: 6rem;
  background:
    linear-gradient(180deg, var(--page-bg) 0%, var(--brand-bg) 100%);
}

.scan-island {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
  padding: 2.4rem 2.2rem;
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
}

.scan-copy h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  font-weight: 700;
  color: var(--text);
}

.scan-copy > p {
  margin: 1rem 0 0;
  color: var(--text-secondary);
  max-width: 32rem;
}

.scan-copy strong {
  color: var(--brand-dark);
  font-weight: 600;
}

.scan-steps {
  margin: 1.75rem 0 0;
  padding-left: 1.2rem;
  color: var(--text);
}

.scan-steps li {
  margin-bottom: 0.55rem;
}

.scan-steps li::marker {
  color: var(--brand);
  font-weight: 600;
}

.scan-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.qr-frame {
  padding: 1rem;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--brand-bg-2);
  animation: qr-breathe 3.2s ease-in-out infinite;
}

.qr-frame img {
  width: 240px;
  height: 240px;
  object-fit: contain;
  border-radius: 12px;
}

.scan-figure figcaption {
  color: var(--text-muted);
  font-size: 0.95rem;
}

@keyframes qr-breathe {
  0%,
  100% {
    transform: scale(1);
    box-shadow: var(--shadow-soft);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 22px 56px rgba(var(--brand-dark-rgb), 0.16);
  }
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, #853645 0%, #6b2a38 100%);
  color: rgba(255, 255, 255, 0.78);
  padding: 2.6rem 0;
}

.footer-inner {
  text-align: center;
}

.footer-brand {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.06em;
}

.footer-desc,
.footer-site,
.footer-copy,
.footer-beian {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.62);
}

.footer-site {
  letter-spacing: 0.02em;
}

.footer-beian a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-beian a:hover {
  color: #fff;
}

.footer-beian-gongan img {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Reveal motion */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay {
  transition-delay: 0.12s;
}

.reveal-delay-2 {
  transition-delay: 0.24s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .qr-frame,
  .hero-carousel {
    animation: none;
  }

  .hero-carousel-slide {
    transition: none;
  }
}

/* Responsive */
@media (max-width: 860px) {
  .hero {
    min-height: auto;
    padding: 2.5rem 0 3.5rem;
  }

  .hero-grid,
  .scan-island {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .scan-island {
    padding: 1.75rem 1.35rem;
  }

  .hero-visual {
    order: -1;
    min-height: 220px;
  }

  .hero-carousel {
    width: min(100%, 420px);
  }

  .hero-carousel-frame {
    border-radius: 20px;
  }

  .value-list {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .header-nav > a:not(.header-cta) {
    display: none;
  }

  .qr-frame img {
    width: min(72vw, 240px);
    height: min(72vw, 240px);
  }

  .section {
    padding: 3.5rem 0;
  }
}

@media (max-width: 480px) {
  .brand-text small {
    display: none;
  }

  .hero-carousel-frame {
    border-radius: 16px;
  }

  .hero-support {
    font-size: 0.98rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn-primary,
  .btn-ghost {
    width: 100%;
  }
}
