:root {
  color-scheme: light;
  --bg: #fff8f8;
  --bg-soft: #fff1f5;
  --bg-cream: #fffaf1;
  --surface: #ffffff;
  --surface-soft: #fff7fb;
  --text: #3d2442;
  --muted: #705b75;
  --line: rgba(141, 74, 108, 0.18);
  --line-strong: rgba(141, 74, 108, 0.28);
  --pink: #d85f97;
  --pink-deep: #a94b7d;
  --purple: #8a68ab;
  --gold: #f0b54a;
  --shadow: 0 18px 45px rgba(131, 73, 103, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Hiragino Sans", "Microsoft YaHei", sans-serif;
  line-height: 1.7;
  color: var(--text);
  background: linear-gradient(180deg, #fffefe 0%, #fff6f8 100%);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

img {
  display: block;
  max-width: 100%;
  height: auto;
  transition: transform 0.4s ease, filter 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease, outline-color 0.4s ease;
  will-change: transform, filter;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.container {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

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

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

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1.05em;
  height: 1.05em;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 248, 249, 0.97);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
}

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

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  object-fit: cover;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-text strong {
  font-size: 0.95rem;
  letter-spacing: 0;
}

.brand-text span {
  font-size: 0.82rem;
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 0.85rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--muted);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, text-shadow 0.2s ease, transform 0.2s ease;
}

.site-nav a:not(.nav-cta).is-active {
  color: var(--pink-deep);
  border-color: var(--line-strong);
  background: var(--surface);
}

.site-nav a:not(.nav-cta):hover,
.site-nav a:not(.nav-cta):focus-visible {
  color: var(--pink-deep);
  border-color: var(--pink);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 2px rgba(216, 95, 151, 0.14), 0 0 16px rgba(216, 95, 151, 0.26);
  text-shadow: 0 0 10px rgba(216, 95, 151, 0.38);
}

.site-nav a:not(.nav-cta):hover .icon,
.site-nav a:not(.nav-cta):focus-visible .icon {
  filter: drop-shadow(0 0 5px rgba(216, 95, 151, 0.42));
}

.nav-cta {
  background: linear-gradient(135deg, var(--pink), var(--gold));
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(216, 95, 151, 0.2);
}

.nav-cta:hover,
.nav-cta:focus-visible {
  transform: translateY(-1px);
  border-color: transparent !important;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 0.5rem;
  cursor: pointer;
}

.nav-toggle .icon {
  width: 1.35rem;
  height: 1.35rem;
}

.section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

main section[id] {
  scroll-margin-top: 92px;
}

.band-soft {
  background: var(--bg-soft);
  border-block: 1px solid rgba(169, 75, 125, 0.08);
}

.band-cream {
  background: var(--bg-cream);
  border-block: 1px solid rgba(169, 75, 125, 0.08);
}

.hero {
  padding-top: clamp(2.5rem, 5vw, 4.5rem);
}

.hero-grid,
.split-grid,
.faq-grid {
  display: grid;
  gap: 2rem;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  align-items: center;
}

.hero-copy,
.section-copy {
  min-width: 0;
}

.eyebrow,
.section-kicker {
  margin: 0 0 0.7rem;
  color: var(--pink-deep);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0;
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-subtitle {
  margin: 1rem 0 1.4rem;
  max-width: 60ch;
  font-size: 1.06rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 700;
  letter-spacing: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--gold));
  box-shadow: 0 10px 24px rgba(216, 95, 151, 0.2);
}

.floating-detail {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 35;
  min-height: 46px;
  padding-inline: 1rem;
  box-shadow: 0 12px 28px rgba(111, 55, 91, 0.25);
}

.floating-detail:hover,
.floating-detail:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(111, 55, 91, 0.3);
}

.btn-secondary {
  color: var(--text);
  background: var(--surface);
  border-color: var(--line-strong);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  color: var(--pink-deep);
  border-color: var(--pink);
  box-shadow: 0 0 0 2px rgba(216, 95, 151, 0.12), 0 10px 24px rgba(131, 73, 103, 0.14);
}

.hero-tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 660px;
}

.hero-tags li,
.check-list li,
.timeline-item,
.info-card,
.guide-card,
.faq-item {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease, background-color 0.24s ease;
}

.hero-tags li {
  padding: 0.85rem 0.95rem;
  box-shadow: var(--shadow);
}

.hero-tags span {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.hero-tags strong {
  display: block;
  font-size: 0.97rem;
  line-height: 1.45;
}

.hero-visual,
.section-visual,
.media-card {
  margin: 0;
}

.hero-visual img,
.section-visual img,
.media-card img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease, box-shadow 0.35s ease;
}

.hero-visual img {
  aspect-ratio: 16 / 9;
}

.section h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 2.4vw, 2.05rem);
  line-height: 1.2;
  letter-spacing: 0;
}

.section-copy p {
  margin: 0 0 1rem;
  color: var(--text);
}

.section-copy h3 {
  margin: 1.5rem 0 0.8rem;
  font-size: 1.08rem;
}

.split-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  align-items: start;
}

.split-reverse .section-copy {
  order: 2;
}

.split-reverse .section-stack,
.split-reverse .section-visual {
  order: 1;
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.check-list li {
  margin: 0 0 0.75rem;
  padding: 0.9rem 1rem 0.9rem 2.85rem;
  position: relative;
}

.check-list li::before {
  content: '✓';
  position: absolute;
  left: 1rem;
  top: 0.9rem;
  color: var(--pink-deep);
  font-weight: 700;
}

.card-grid,
.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.info-card,
.guide-card,
.faq-item {
  padding: 1rem;
}

.info-card h3,
.guide-card h3,
.timeline-item h3 {
  margin: 0 0 0.6rem;
  font-size: 1.02rem;
  line-height: 1.35;
}

.info-card p,
.guide-card li,
.faq-item p,
.timeline-item p {
  margin: 0;
  color: var(--muted);
}

.guide-card ol {
  margin: 0;
  padding-inline-start: 1.2rem;
}

.guide-card li + li {
  margin-top: 0.5rem;
}

.info-card-accent {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 247, 251, 0.96));
}

.section-stack {
  display: grid;
  gap: 1rem;
}

.media-card-large img,
.media-card-tall img {
  aspect-ratio: 16 / 9;
}

.feature-visual {
  display: grid;
  gap: 1rem;
}

.feature-visual img:first-child {
  aspect-ratio: 900 / 506;
}

.feature-visual img:last-child {
  aspect-ratio: 460 / 215;
}

.timeline {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.timeline-item {
  padding: 1rem 1rem 1rem 1.15rem;
  background: linear-gradient(180deg, #fff, rgba(255, 247, 251, 0.9));
}

.timeline-item h3 {
  margin-bottom: 0;
  font-weight: 600;
}

.faq-grid {
  grid-template-columns: minmax(0, 1fr);
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  float: right;
  color: var(--pink-deep);
  font-weight: 700;
}

.faq-item[open] summary::after {
  content: '–';
}

.faq-item p {
  margin-top: 0.8rem;
}

.hero-visual,
.section-visual,
.media-card {
  overflow: visible;
}

.brand:hover img,
.hero-visual:hover img,
.section-visual:hover img,
.media-card:hover img,
img:hover,
img.image-hover-active {
  position: relative;
  z-index: 3;
  transform: translateY(-10px) scale(1.08);
  filter: brightness(1.1) contrast(1.08) saturate(1.16) drop-shadow(0 0 18px rgba(216, 95, 151, 0.58));
  border-color: var(--pink);
  outline: 2px solid rgba(216, 95, 151, 0.72);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9), 0 0 0 5px rgba(216, 95, 151, 0.24), 0 24px 46px rgba(131, 73, 103, 0.34);
  cursor: zoom-in;
}

@media (hover: hover) and (pointer: fine) {
  .hero-tags li:hover,
  .check-list li:hover,
  .timeline-item:hover,
  .info-card:hover,
  .guide-card:hover,
  .faq-item:hover,
  .faq-item:focus-within {
    transform: translateY(-4px);
    border-color: rgba(216, 95, 151, 0.5);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 34px rgba(131, 73, 103, 0.14), 0 0 0 2px rgba(216, 95, 151, 0.1);
  }

  .info-card:hover h3,
  .guide-card:hover h3,
  .timeline-item:hover h3,
  .faq-item:hover summary,
  .faq-item:focus-within summary {
    color: var(--pink-deep);
  }

}

.site-footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--line);
  background: rgba(255, 247, 250, 0.9);
}

.footer-friends {
  padding: 2.3rem 0 2.1rem;
  background: var(--bg-soft);
  border-bottom: 1px solid rgba(169, 75, 125, 0.12);
}

.footer-friends h2 {
  margin: 0 0 1.25rem;
  color: var(--text);
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  line-height: 1.2;
  text-align: center;
}

.friend-links {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.friend-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.7rem 1.15rem;
  border: 1px solid rgba(141, 74, 108, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font-weight: 700;
  text-align: center;
  box-shadow: 0 8px 20px rgba(131, 73, 103, 0.1);
  transition: transform 0.22s ease, color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
}

.friend-link:hover,
.friend-link:focus-visible {
  transform: translateY(-3px);
  color: var(--pink-deep);
  border-color: rgba(216, 95, 151, 0.48);
  background: #fff;
  box-shadow: 0 12px 26px rgba(131, 73, 103, 0.16), 0 0 0 2px rgba(216, 95, 151, 0.1);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-title {
  margin: 0 0 0.25rem;
  font-weight: 700;
}

.footer-copy {
  margin: 0;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 980px) {
  .hero-grid,
  .split-grid {
    grid-template-columns: 1fr;
  }

  .split-reverse .section-copy,
  .split-reverse .section-stack,
  .split-reverse .section-visual {
    order: initial;
  }

  .card-grid,
  .guide-grid,
  .hero-tags {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .friend-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .friend-link {
    min-width: 0;
    padding-inline: 0.8rem;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 1.2rem, 1180px);
  }

  .header-inner {
    min-height: 68px;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    padding: 0 1rem;
    background: rgba(255, 248, 249, 0.98);
    border-bottom: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.35rem;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: max-height 0.25s ease, padding 0.25s ease, opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }

  .site-nav.is-open {
    max-height: 560px;
    padding: 0.8rem 1rem 1rem;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    width: 100%;
    text-align: center;
  }

  .hero {
    padding-top: 2rem;
  }

  .hero h1 {
    font-size: clamp(1.7rem, 8vw, 2.5rem);
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .floating-detail {
    right: 0.8rem;
    bottom: 0.8rem;
  }

  .footer-friends {
    padding: 2rem 0 1.8rem;
  }

  .friend-links {
    grid-template-columns: 1fr;
  }
}

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

  .reveal,
  .btn,
  .site-nav a,
  .nav-cta,
  .hero-tags li,
  .check-list li,
  .timeline-item,
  .info-card,
  .guide-card,
  .faq-item,
  .hero-visual img,
  .section-visual img,
  .media-card img,
  .friend-link,
  img {
    transition: none;
    will-change: auto;
  }

  .hero-tags li:hover,
  .check-list li:hover,
  .timeline-item:hover,
  .info-card:hover,
  .guide-card:hover,
  .faq-item:hover,
  .faq-item:focus-within,
  .hero-visual:hover img,
  .section-visual:hover img,
  .media-card:hover img,
  img:hover,
  .friend-link:hover,
  .friend-link:focus-visible {
    transform: none;
  }

  .brand:hover img,
  .hero-visual:hover img,
  .section-visual:hover img,
  .media-card:hover img,
  img:hover,
  img.image-hover-active {
    transform: none;
    filter: brightness(1.1) contrast(1.08) saturate(1.16) drop-shadow(0 0 18px rgba(216, 95, 151, 0.58));
    border-color: var(--pink);
    outline: 2px solid rgba(216, 95, 151, 0.72);
    outline-offset: 2px;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9), 0 0 0 5px rgba(216, 95, 151, 0.24), 0 24px 46px rgba(131, 73, 103, 0.34);
  }
}
