/* 武汉奥陌陌游戏 — 卡通 / 鲜艳活泼风格 */

:root {
  --font-display: "ZCOOL KuaiLe", "Fredoka", "Microsoft YaHei", cursive, sans-serif;
  --font-body: "Fredoka", "PingFang SC", "Microsoft YaHei", sans-serif;
  --radius-xl: 28px;
  --radius-lg: 22px;
  --max: 1120px;
  /* 页面背景叠色 */
  --blob-cyan: rgba(125, 211, 252, 0.95);
  --blob-yellow: rgba(254, 240, 138, 0.9);
  --blob-pink: rgba(251, 207, 232, 0.85);
  --blob-mint: rgba(167, 243, 208, 0.75);
  /* 转转消区块 */
  --card-orange: #ff9f43;
  --card-orange-deep: #ff6b35;
  --card-cream: #fffbf0;
  --shadow-orange: rgba(255, 107, 53, 0.45);
  /* 擦拭记忆区块 */
  --card-purple: #a855f7;
  --card-purple-deep: #7c3aed;
  --card-lilac: #faf5ff;
  --shadow-purple: rgba(124, 58, 237, 0.4);
  --text-dark: #2d3748;
  --text-soft: #4a5568;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text-dark);
  line-height: 1.65;
  background-color: #38bdf8;
  background-image:
    radial-gradient(ellipse 120% 80% at 0% 0%, var(--blob-cyan) 0%, transparent 55%),
    radial-gradient(ellipse 100% 70% at 100% 10%, var(--blob-pink) 0%, transparent 50%),
    radial-gradient(ellipse 80% 60% at 50% 100%, var(--blob-mint) 0%, transparent 55%),
    radial-gradient(circle at 80% 60%, var(--blob-yellow) 0%, transparent 45%),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 24px,
      rgba(255, 255, 255, 0.06) 24px,
      rgba(255, 255, 255, 0.06) 26px
    );
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 24px;
  padding: 14px 22px;
  background: linear-gradient(180deg, #ffffff 0%, #fff8f0 100%);
  border-bottom: 5px solid var(--card-orange);
  box-shadow:
    0 8px 0 rgba(255, 159, 67, 0.35),
    0 12px 24px rgba(45, 55, 72, 0.12);
}

.site-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3.5vw, 1.65rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #c2410c;
  text-shadow:
    2px 2px 0 #fde68a,
    3px 3px 0 rgba(251, 191, 36, 0.5);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.site-nav a {
  display: inline-block;
  padding: 8px 18px;
  font-family: var(--font-display);
  font-size: 1rem;
  color: #7c2d12;
  text-decoration: none;
  background: linear-gradient(180deg, #fef08a 0%, #fde047 100%);
  border: 3px solid #f59e0b;
  border-radius: 999px;
  box-shadow: 0 4px 0 #d97706;
  transform: translateY(0);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.site-nav a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #d97706;
  color: #9a3412;
}

.site-nav a:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #d97706;
}

main {
  padding: 36px 18px 52px;
}

.game-section {
  max-width: var(--max);
  margin: 0 auto 40px;
  padding: 26px 24px 30px;
  background: var(--card-cream);
  border: 5px solid var(--card-orange);
  border-radius: var(--radius-xl);
  box-shadow:
    10px 10px 0 var(--shadow-orange),
    0 16px 32px rgba(45, 55, 72, 0.1);
}

.game-section--alt {
  background: var(--card-lilac);
  border-color: var(--card-purple);
  box-shadow:
    10px 10px 0 var(--shadow-purple),
    0 16px 32px rgba(45, 55, 72, 0.1);
}

.game-grid {
  display: grid;
  gap: 26px;
  align-items: start;
}

@media (min-width: 900px) {
  .game-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    align-items: center;
  }

  .game-grid--reverse .game-carousel-wrap {
    order: 2;
  }

  .game-grid--reverse .game-text {
    order: 1;
  }
}

.game-title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4vw, 2.1rem);
  font-weight: 400;
  color: #c2410c;
  text-shadow: 2px 2px 0 #fcd34d;
}

.game-section--alt .game-title {
  color: #6d28d9;
  text-shadow: 2px 2px 0 #e9d5ff;
}

.game-tagline {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.12rem;
  color: var(--card-orange-deep);
  font-weight: 400;
}

.game-section--alt .game-tagline {
  color: var(--card-purple-deep);
}

.game-text p {
  margin: 0 0 14px;
  color: var(--text-soft);
  font-size: 1rem;
}

.game-bullets {
  margin: 0;
  padding-left: 1.35em;
  color: var(--text-soft);
  font-size: 0.98rem;
}

.game-bullets li {
  margin-bottom: 10px;
  position: relative;
}

.game-bullets li::marker {
  color: var(--card-orange-deep);
}

.game-section--alt .game-bullets li::marker {
  color: var(--card-purple-deep);
}

.carousel {
  width: 100%;
}

.carousel-viewport {
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 5px solid #ffffff;
  outline: 4px solid var(--card-orange-deep);
  background: linear-gradient(145deg, #e0f2fe 0%, #fef3c7 100%);
  aspect-ratio: 16 / 9;
  box-shadow:
    inset 0 0 0 3px rgba(255, 255, 255, 0.8),
    6px 6px 0 rgba(251, 146, 60, 0.35);
}

.game-section--alt .carousel-viewport {
  outline-color: var(--card-purple-deep);
  background: linear-gradient(145deg, #f3e8ff 0%, #dbeafe 100%);
  box-shadow:
    inset 0 0 0 3px rgba(255, 255, 255, 0.8),
    6px 6px 0 rgba(167, 139, 250, 0.45);
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.45s cubic-bezier(0.34, 1.2, 0.64, 1);
}

@media (prefers-reduced-motion: reduce) {
  .carousel-track {
    transition: none;
  }
}

.carousel-slide {
  flex: 0 0 100%;
  margin: 0;
  height: 100%;
}

.carousel-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 16px;
}

.carousel-dot {
  width: 14px;
  height: 14px;
  padding: 0;
  border: 3px solid #78350f;
  border-radius: 50%;
  background: #fde68a;
  opacity: 0.7;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
}

.game-section--alt .carousel-dot {
  border-color: #5b21b6;
  background: #e9d5ff;
}

.carousel-dot:hover,
.carousel-dot:focus-visible {
  opacity: 1;
  outline: none;
  transform: scale(1.12);
}

.game-section:not(.game-section--alt) .carousel-dot[aria-selected="true"] {
  opacity: 1;
  background: #f97316;
  transform: scale(1.2);
  box-shadow: 0 0 0 3px #fde68a;
}

.game-section--alt .carousel-dot[aria-selected="true"] {
  opacity: 1;
  background: #a855f7;
  transform: scale(1.2);
  box-shadow: 0 0 0 3px #f5d0fe;
}

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 20px 36px;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-soft);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, #fff7ed 100%);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  border: 4px solid #fff;
  border-bottom: none;
  box-shadow:
    0 -8px 0 rgba(251, 191, 36, 0.4),
    0 -20px 40px rgba(45, 55, 72, 0.08);
}

.site-footer p {
  margin: 0 0 10px;
}

.site-footer a {
  color: #7c3aed;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 3px solid #fbbf24;
}

.site-footer a:hover {
  color: #5b21b6;
}
