﻿:root {
  --bg: #f3f7ff;
  --surface: rgba(255, 255, 255, 0.76);
  --surface-strong: rgba(255, 255, 255, 0.94);
  --ink: #0e172c;
  --muted: #52607e;
  --line: rgba(119, 139, 183, 0.22);
  --brand: #155dff;
  --brand-soft: #ebf1ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Manrope', 'Noto Sans SC', 'Segoe UI', sans-serif;
  color: var(--ink);
  min-height: 100vh;
  background:
    linear-gradient(180deg, #f6f9ff 0%, #f1f6ff 48%, #eef4ff 100%);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(67, 97, 171, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(67, 97, 171, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at 50% 30%, black 15%, transparent 70%);
  z-index: -2;
}

.ambient {
  position: fixed;
  inset: auto;
  width: 40vw;
  height: 40vw;
  border-radius: 999px;
  filter: blur(88px);
  opacity: 0.35;
  pointer-events: none;
  z-index: -1;
}

.ambient-a {
  top: -15vw;
  right: -8vw;
  background: #82a0ff;
}

.ambient-b {
  bottom: -18vw;
  left: -11vw;
  background: #97ddd1;
}

#festival-fireworks {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.lantern-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

.lantern {
  position: absolute;
  width: 110px;
  transform-origin: 50% -48px;
  animation: lanternSwing 4.6s ease-in-out infinite;
  filter: drop-shadow(0 10px 16px rgba(157, 16, 16, 0.24));
}

.lantern::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -56px;
  width: 2px;
  height: 56px;
  background: linear-gradient(180deg, rgba(184, 44, 44, 0.55), rgba(120, 18, 18, 0.28));
}

.lantern::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 20px;
  width: 120px;
  height: 90px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 186, 120, 0.45) 0%, rgba(255, 90, 60, 0.2) 42%, rgba(255, 74, 74, 0) 72%);
  filter: blur(6px);
  animation: lanternGlow 2.2s ease-in-out infinite;
  z-index: -1;
}

.lantern-body {
  display: block;
  width: 110px;
  height: 94px;
  border-radius: 48% 48% 46% 46%;
  position: relative;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 206, 168, 0.24) 0%, rgba(255, 206, 168, 0) 54%),
    repeating-linear-gradient(
      90deg,
      rgba(255, 210, 210, 0.22) 0 3px,
      rgba(199, 18, 18, 0.06) 3px 24px
    ),
    linear-gradient(180deg, #f65050 0%, #da1f1f 46%, #b70f0f 100%);
  box-shadow:
    inset 0 10px 20px rgba(255, 215, 180, 0.24),
    inset 0 -12px 18px rgba(92, 3, 3, 0.38),
    0 8px 22px rgba(214, 34, 34, 0.35),
    0 0 18px rgba(255, 163, 88, 0.35);
}

.lantern-body::before {
  content: '';
  position: absolute;
  left: 9px;
  right: 9px;
  top: -5px;
  height: 10px;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffe3a5, #d49d2a);
}

.lantern-body::after {
  content: '';
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: -5px;
  height: 10px;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffe3a5, #d49d2a);
}

.lantern-emblem {
  position: absolute;
  left: 50%;
  top: 34px;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffe7b5, #e3b457);
  color: #991b1b;
  font-family: 'Noto Sans SC', serif;
  font-size: 18px;
  font-weight: 900;
  line-height: 30px;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 245, 215, 0.65);
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.16);
}

.lantern-knot {
  display: block;
  width: 24px;
  height: 10px;
  margin: 1px auto 0;
  border-radius: 0 0 6px 6px;
  background: linear-gradient(180deg, #ffe7b7, #d8a438);
}

.lantern-tassel {
  display: block;
  width: 2px;
  height: 30px;
  margin: 0 auto;
  background: linear-gradient(180deg, #c61717, #8f0909);
  position: relative;
}

.lantern-tassel::after {
  content: '';
  position: absolute;
  left: -6px;
  top: 30px;
  width: 14px;
  height: 15px;
  border-radius: 0 0 12px 12px;
  background: linear-gradient(180deg, #ffd877, #e7b650);
}

.lantern-a {
  left: 6%;
  top: 12px;
}

.lantern-c {
  left: 17%;
  top: 34px;
  width: 88px;
  opacity: 0.88;
  animation-duration: 4.9s;
  animation-delay: -0.6s;
}

.lantern-c .lantern-body {
  width: 88px;
  height: 76px;
}

.lantern-c .lantern-emblem {
  top: 27px;
  width: 24px;
  height: 24px;
  line-height: 24px;
  font-size: 14px;
}

.lantern-c .lantern-knot {
  width: 20px;
}

.page {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 20px 56px;
}

.topbar {
  position: sticky;
  top: 12px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding: 10px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(12px);
}

.brand {
  font-weight: 800;
  letter-spacing: 0.2em;
  font-size: 12px;
  color: #27417f;
}

.lang-switch {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.lang-switch button {
  border: none;
  border-radius: 999px;
  padding: 7px 13px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.lang-switch button.active {
  background: var(--ink);
  color: #fff;
}

.hero,
.panel {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 50px rgba(16, 29, 57, 0.12);
  position: relative;
  overflow: hidden;
}

.hero::before,
.panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.hero {
  padding: 36px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: #2d57c8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.kicker {
  margin: 14px 0 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #3c5a9e;
  text-transform: uppercase;
}

#title {
  margin: 10px 0 14px;
  font-size: clamp(34px, 5.6vw, 66px);
  line-height: 1.04;
  letter-spacing: -0.033em;
  white-space: pre-line;
}

.description {
  max-width: 840px;
  margin: 0;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.66;
  color: var(--muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  padding: 12px 18px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, #2568ff, #1457e6);
  color: #fff;
  box-shadow: 0 12px 24px rgba(21, 93, 255, 0.34);
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.8);
}

.tag-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list li {
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #35559a;
  background: rgba(230, 237, 255, 0.9);
  border: 1px solid rgba(133, 157, 214, 0.28);
}

.metric-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.metric-list li {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: var(--surface-strong);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.metric-list li:hover,
.highlight-list li:hover,
.copy-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(20, 39, 84, 0.1);
}

.metric-value {
  font-size: 14px;
  font-weight: 800;
  color: #243b76;
  letter-spacing: 0.02em;
}

.metric-label {
  margin-top: 5px;
  font-size: 12px;
  color: var(--muted);
}

.panel {
  margin-top: 16px;
  padding: 24px;
}

.panel h2 {
  margin: 0 0 14px;
  font-size: clamp(22px, 2.5vw, 30px);
  letter-spacing: -0.02em;
}

.highlight-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.highlight-list li {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 15px;
  color: var(--muted);
  line-height: 1.58;
  font-size: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bilingual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.screen-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.screen-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.screen-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(20, 39, 84, 0.14);
}

.screen-frame {
  margin: 0;
  border-bottom: 1px solid var(--line);
  background: #eaf0ff;
}

.screen-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.screen-copy {
  padding: 14px;
}

.screen-copy h3 {
  margin: 0 0 6px;
  font-size: 16px;
  color: #2e4480;
}

.screen-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
}

.copy-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.copy-card h3 {
  margin: 0 0 8px;
  font-size: 14px;
  color: #2e4480;
}

.copy-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.footer {
  margin-top: 16px;
  text-align: right;
  color: var(--muted);
  font-size: 12px;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.65s ease forwards;
}

.reveal-1 {
  animation-delay: 0.02s;
}

.reveal-2 {
  animation-delay: 0.08s;
}

.reveal-3 {
  animation-delay: 0.14s;
}

.reveal-4 {
  animation-delay: 0.2s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes lanternSwing {
  0%,
  100% {
    transform: rotate(4deg);
  }
  50% {
    transform: rotate(-5deg);
  }
}

@keyframes lanternGlow {
  0%,
  100% {
    opacity: 0.55;
    transform: translateX(-50%) scale(0.95);
  }
  50% {
    opacity: 0.9;
    transform: translateX(-50%) scale(1.08);
  }
}

@media (max-width: 920px) {
  .page {
    padding: 14px 14px 44px;
  }

  .topbar {
    top: 8px;
  }

  .hero {
    padding: 24px;
  }

  .metric-list,
  .highlight-list,
  .screen-list,
  .bilingual-grid {
    grid-template-columns: 1fr;
  }

  .footer {
    text-align: left;
  }

  .lantern-c {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lantern {
    animation: none;
  }

  .lantern::after {
    animation: none;
    opacity: 0.65;
  }
}
