:root {
  --bg-light: #fff4f9;
  --bg-main: #ffe6f0;
  --primary-light: #f3bfd0;
  --primary-main: #d86f99;
  --primary-dark: #8f4564;
  --text-dark: #713f56;
  --text-light: #9b6880;
  --white: #ffffff;
  --shadow: rgba(137, 76, 106, 0.15);
  --shadow-hover: rgba(137, 76, 106, 0.25);
  --accent-warm: #edb897;
  --accent-plum: #7b3658;
  --line-soft: rgba(216, 111, 153, 0.18);
  --panel: rgba(255, 248, 251, 0.9);
  --footer-green: #7ab500;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

body {
  background:
    radial-gradient(circle at top left, rgba(255, 221, 233, 0.82), transparent 28%),
    radial-gradient(circle at top right, rgba(247, 213, 194, 0.7), transparent 32%),
    radial-gradient(circle at 50% 12%, rgba(244, 191, 208, 0.34), transparent 36%),
    linear-gradient(180deg, #fff9fc 0%, var(--bg-light) 42%, #fff1f7 100%);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  scroll-behavior: smooth;
  position: relative;
}

body.modal-open {
  overflow: hidden;
}

body.modal-open .activity-modal,
body.modal-open .guide-modal {
  overscroll-behavior: contain;
}

.page-content {
  position: relative;
  z-index: 1;
}

.ambient-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(20px);
  opacity: 0.3;
}

.ambient-orb.a {
  top: -70px;
  left: -80px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(216, 111, 153, 0.34), transparent 72%);
}

.ambient-orb.b {
  top: 100px;
  right: -100px;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(237, 184, 151, 0.3), transparent 72%);
}

.phoenix-trace {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 1px solid rgba(237, 184, 151, 0.22);
  mix-blend-mode: multiply;
  opacity: 0.24;
  background:
    conic-gradient(
      from 160deg,
      transparent 0 38deg,
      rgba(237, 184, 151, 0.28) 66deg,
      rgba(216, 111, 153, 0.16) 130deg,
      transparent 220deg 360deg
    );
  animation: phoenixTurn 28s linear infinite;
}

.phoenix-trace::before {
  content: "";
  position: absolute;
  inset: 16%;
  border-radius: 54% 46% 62% 38% / 48% 58% 42% 52%;
  border: 1px solid rgba(216, 111, 153, 0.22);
  transform: rotate(24deg);
}

.phoenix-trace.a {
  top: -130px;
  right: -40px;
}

.phoenix-trace.b {
  bottom: -190px;
  left: -130px;
  width: 360px;
  height: 360px;
  animation-direction: reverse;
}

.petal-field,
.peach-field {
  position: absolute;
  inset: 0;
}

.petal,
.peach {
  position: absolute;
  top: -12vh;
  left: 0;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-delay: var(--delay);
  animation-duration: var(--duration);
}

.petal {
  width: var(--size);
  height: calc(var(--size) * 1.3);
  border-radius: 68% 32% 70% 30% / 56% 44% 56% 44%;
  background: linear-gradient(160deg, rgba(255, 246, 248, 0.98), rgba(244, 182, 200, 0.9) 58%, rgba(224, 127, 157, 0.84));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.36),
    0 6px 14px rgba(194, 118, 145, 0.14);
  opacity: 0.24;
  animation-name: petalDrift;
}

.peach {
  width: calc(var(--size) * 1.34);
  height: calc(var(--size) * 1.22);
  border-radius: 48% 48% 52% 52%;
  background:
    radial-gradient(circle at 32% 28%, #ffe3c2 0 18%, rgba(255, 227, 194, 0.4) 23%, transparent 26%),
    linear-gradient(180deg, #ffd4a8 0%, #f4a566 56%, #d9764d 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 245, 234, 0.35),
    0 8px 20px rgba(177, 103, 61, 0.15);
  opacity: 0.16;
  animation-name: peachDrift;
}

.peach::after {
  content: "";
  position: absolute;
  top: -10%;
  left: 50%;
  width: 32%;
  height: 18%;
  border-radius: 0 100% 0 100%;
  background: linear-gradient(180deg, rgba(84, 145, 101, 0.96), rgba(46, 93, 62, 0.82));
  transform: rotate(-22deg);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes scanline {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes petalDrift {
  from {
    transform: translate3d(calc(var(--x) * 1vw), -12vh, 0) rotate(0deg);
  }
  to {
    transform: translate3d(calc((var(--x) + var(--sway)) * 1vw), 110vh, 0) rotate(540deg);
  }
}

@keyframes peachDrift {
  from {
    transform: translate3d(calc(var(--x) * 1vw), -12vh, 0) rotate(-8deg);
  }
  to {
    transform: translate3d(calc((var(--x) + var(--sway)) * 1vw), 110vh, 0) rotate(120deg);
  }
}

@keyframes phoenixTurn {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.hero-banner {
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.36), transparent 30%),
    linear-gradient(135deg, rgba(255, 233, 241, 0.96) 0%, rgba(247, 207, 221, 0.92) 48%, rgba(241, 188, 163, 0.88) 100%);
  padding: 60px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(216, 111, 153, 0.16);
}

.banner-decoration {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
}

.deco-item {
  position: absolute;
  color: rgba(143, 69, 100, 0.3);
  opacity: 0.22;
  animation: float 6s ease-in-out infinite;
}

.deco-item:nth-child(1) {
  top: 20%;
  left: 10%;
  font-size: 40px;
  animation-delay: 0s;
}

.deco-item:nth-child(2) {
  top: 60%;
  right: 12%;
  font-size: 50px;
  animation-delay: 1s;
}

.deco-item:nth-child(3) {
  bottom: 15%;
  left: 15%;
  font-size: 35px;
  animation-delay: 2s;
}

.banner-content {
  position: relative;
  z-index: 2;
  animation: fadeInUp 0.8s ease-out;
}

.banner-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  color: var(--primary-dark);
  margin-bottom: 10px;
  letter-spacing: 2px;
  text-shadow: 0 10px 24px rgba(255, 255, 255, 0.35);
}

.banner-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #8f5b71;
  font-weight: 500;
  letter-spacing: 1px;
}

.poster-section {
  padding: 40px 20px;
  max-width: 1260px;
  margin: 0 auto;
}

.poster-showcase {
  display: grid;
  grid-template-columns: minmax(170px, 214px) minmax(0, 700px) minmax(170px, 214px);
  grid-template-areas: "guide-left poster guide-right";
  gap: 18px;
  align-items: center;
}

.guide-card {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 252, 253, 0.94), rgba(255, 239, 246, 0.92)),
    radial-gradient(circle at top right, rgba(237, 184, 151, 0.2), transparent 34%);
  border: 1px solid rgba(216, 111, 153, 0.14);
  box-shadow: 0 14px 28px rgba(137, 76, 106, 0.1);
  backdrop-filter: blur(10px);
}

.guide-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 54%);
  pointer-events: none;
}

.guide-card-left {
  grid-area: guide-left;
}

.guide-card-right {
  grid-area: guide-right;
}

.guide-card-copy,
.guide-preview {
  position: relative;
  z-index: 1;
}

.guide-card-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(216, 111, 153, 0.12);
  color: #b44f7c;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.guide-card-title {
  margin: 8px 0 4px;
  color: var(--primary-dark);
  font-size: 1.02rem;
  font-weight: 900;
  line-height: 1.2;
}

.guide-card-text {
  margin: 0;
  color: var(--text-light);
  font-size: 0.8rem;
  line-height: 1.45;
}

.guide-preview {
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.guide-preview-img {
  width: 100%;
  display: block;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  object-position: top center;
  border-radius: 14px;
  border: 1px solid rgba(216, 111, 153, 0.18);
  box-shadow: 0 10px 20px rgba(137, 76, 106, 0.12);
  transition: transform 0.35s ease, box-shadow 0.35s ease, filter 0.35s ease;
}

.guide-preview:hover .guide-preview-img,
.guide-preview:focus-visible .guide-preview-img {
  transform: translateY(-3px) scale(1.012);
  box-shadow: 0 16px 28px rgba(137, 76, 106, 0.15);
  filter: saturate(1.04);
}

.guide-preview-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(223, 124, 163, 0.14), rgba(143, 69, 100, 0.14));
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.poster-wrapper {
  grid-area: poster;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 8px 30px var(--shadow);
  transition: all 0.4s ease;
  animation: fadeInUp 0.8s ease-out 0.2s both;
  border: 1px solid rgba(216, 111, 153, 0.14);
}

.poster-wrapper:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px var(--shadow-hover);
}

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

.divider {
  width: 80%;
  height: 2px;
  background: repeating-linear-gradient(90deg, rgba(216, 111, 153, 0.72), rgba(216, 111, 153, 0.72) 8px, transparent 8px, transparent 16px);
  margin: 0 auto 30px;
}

.activity-section {
  padding: 20px 20px 60px;
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 30px;
  padding-left: 10px;
  border-left: 4px solid var(--primary-main);
}

.activity-toolbar {
  display: grid;
  gap: 18px;
  margin: -8px 0 28px;
  padding: 22px 22px 18px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 251, 253, 0.94), rgba(255, 241, 247, 0.94)),
    radial-gradient(circle at top right, rgba(237, 184, 151, 0.28), transparent 34%);
  border: 1px solid var(--line-soft);
  box-shadow: 0 16px 34px rgba(137, 76, 106, 0.09);
}

.toolbar-note,
.toolbar-meta {
  margin: 0;
}

.toolbar-note {
  color: var(--text-dark);
  font-size: 0.98rem;
  font-weight: 600;
}

.toolbar-meta {
  color: var(--text-light);
  font-size: 0.92rem;
}

.filter-group {
  display: grid;
  gap: 10px;
}

.filter-label {
  color: var(--primary-dark);
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  padding: 10px 16px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(255, 250, 252, 0.88);
  color: var(--text-dark);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  box-shadow: 0 8px 20px rgba(137, 76, 106, 0.06);
}

.filter-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(137, 76, 106, 0.1);
}

.filter-chip.is-active {
  background: linear-gradient(135deg, #df7ca3, #8f4564);
  color: var(--white);
  border-color: transparent;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.activity-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 242, 247, 0.95) 100%);
  border-radius: 18px;
  box-shadow: 0 10px 30px var(--shadow);
  transition: all 0.3s ease;
  animation: fadeInUp 0.6s ease-out both;
  animation-delay: var(--card-delay, 0s);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(216, 111, 153, 0.12);
  content-visibility: auto;
  contain-intrinsic-size: 430px;
}

.activity-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 38px var(--shadow-hover);
}

.card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #ffe7f0, #fffafc 58%, #f7dfd3 100%);
}

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

.card-media::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 55%;
  background: linear-gradient(180deg, transparent, rgba(90, 38, 62, 0.46));
}

.card-chip,
.card-order {
  position: absolute;
  z-index: 1;
}

.card-chip {
  top: 15px;
  left: 15px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 250, 252, 0.84);
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid rgba(216, 111, 153, 0.16);
  max-width: calc(100% - 92px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-order {
  right: 15px;
  bottom: 12px;
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.24);
}

.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-schedule {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 247, 250, 0.98), rgba(249, 229, 236, 0.96)),
    radial-gradient(circle at top right, rgba(237, 184, 151, 0.18), transparent 35%);
  border: 1px solid rgba(216, 111, 153, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.card-schedule-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.card-schedule-label {
  color: var(--text-light);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.card-schedule-value {
  color: var(--primary-dark);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.65;
  white-space: pre-line;
}

.card-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.card-status.is-ongoing {
  background: rgba(216, 111, 153, 0.14);
  color: #9c476c;
}

.card-status.is-upcoming {
  background: rgba(237, 184, 151, 0.22);
  color: #9a5a3b;
}

.card-status.is-ended {
  background: rgba(146, 116, 133, 0.14);
  color: #775869;
}

.card-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: rgba(216, 111, 153, 0.12);
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 700;
  align-self: flex-start;
}

.card-title {
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.card-unit {
  color: var(--text-dark);
  font-size: 0.98rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.card-summary {
  color: var(--text-light);
  font-size: 0.92rem;
  line-height: 1.68;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-info-list {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.card-info-row {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(216, 111, 153, 0.12);
  font-size: 0.94rem;
}

.card-info-label {
  color: var(--text-light);
}

.card-info-value {
  color: var(--text-dark);
  font-weight: 600;
  word-break: break-word;
  white-space: pre-line;
  line-height: 1.6;
}

.btn-group {
  display: flex;
  gap: 12px;
  width: 100%;
  margin-top: auto;
  flex-wrap: wrap;
}

.btn {
  flex: 1;
  min-width: 100px;
  padding: 10px 15px;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: linear-gradient(135deg, #df7ca3, #8f4564);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: scale(1.03);
  animation: pulse 1s ease-in-out infinite;
}

.cards-load-status {
  margin-top: 24px;
  text-align: center;
  color: var(--text-light);
  font-size: 0.94rem;
  letter-spacing: 0.02em;
}

.cards-load-status.is-complete {
  color: var(--primary-dark);
  font-weight: 700;
}

.cards-sentinel {
  margin: 18px auto 0;
  width: fit-content;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 250, 252, 0.82);
  color: var(--text-light);
  border: 1px dashed rgba(216, 111, 153, 0.26);
  box-shadow: 0 8px 24px rgba(137, 76, 106, 0.08);
}

.cards-sentinel[hidden] {
  display: none;
}

.empty-state {
  background: rgba(255, 250, 252, 0.84);
  color: var(--text-light);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 6px 20px var(--shadow);
}

.activity-modal[hidden] {
  display: none;
}

.activity-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(71, 34, 51, 0.48);
  backdrop-filter: blur(8px);
  z-index: 0;
}

.activity-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100vw - 48px));
  max-height: none;
  margin: 0;
  overflow: auto;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 252, 253, 0.98) 0%, rgba(255, 240, 246, 0.96) 100%);
  box-shadow: 0 28px 80px rgba(71, 34, 51, 0.3);
  border: 1px solid rgba(216, 111, 153, 0.16);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  margin: 0;
  border: none;
  border-radius: 50%;
  background: rgba(216, 111, 153, 0.1);
  color: var(--primary-dark);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.modal-content-wrap {
  padding: 28px 32px 32px;
  clear: both;
}

.modal-hero {
  display: grid;
  grid-template-columns: minmax(340px, 0.8fr) minmax(0, 1.2fr);
  gap: 28px;
  align-items: stretch;
}

.modal-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(440px, 58vh, 620px);
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(135deg, #ffeaf2, #fffafc 58%, #f7dfd3 100%);
  border: 1px solid rgba(216, 111, 153, 0.12);
  padding: 18px;
}

.modal-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.modal-kicker {
  color: #c55e89;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  margin-bottom: 12px;
}

.modal-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.15;
  color: var(--primary-dark);
  margin-bottom: 12px;
  font-weight: 900;
}

.modal-unit {
  color: var(--text-dark);
  font-size: 1.06rem;
  line-height: 1.8;
  margin-bottom: 18px;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.modal-tag {
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(216, 111, 153, 0.1);
  color: var(--primary-dark);
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
}

.modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 28px;
}

.modal-card {
  background: rgba(255, 251, 252, 0.78);
  border: 1px solid rgba(216, 111, 153, 0.12);
  border-radius: 18px;
  padding: 24px;
}

.modal-card[hidden] {
  display: none;
}

.modal-card h3,
.modal-gallery-head h3 {
  color: var(--primary-dark);
  font-size: 1.2rem;
  margin-bottom: 12px;
  font-weight: 800;
}

.modal-card p {
  margin: 0;
  color: var(--text-light);
  white-space: pre-line;
  line-height: 1.8;
}

.modal-gallery {
  margin-top: 28px;
  background: rgba(255, 251, 252, 0.74);
  border: 1px solid rgba(216, 111, 153, 0.12);
  border-radius: 18px;
  padding: 24px;
}

.modal-gallery[hidden] {
  display: none;
}

.modal-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.gallery-item,
.gallery-empty {
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #fff2f7, #ffffff);
  border: 1px solid rgba(216, 111, 153, 0.12);
}

.gallery-item img {
  width: 100%;
  height: 240px;
  object-fit: contain;
  display: block;
}

.gallery-empty {
  padding: 22px;
  color: var(--text-light);
  line-height: 1.7;
}

.modal-credit {
  margin-top: 18px;
  color: var(--text-light);
  font-size: 0.92rem;
}

.guide-modal[hidden] {
  display: none;
}

.guide-modal {
  position: fixed;
  inset: 0;
  z-index: 1250;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.guide-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(71, 34, 51, 0.56);
  backdrop-filter: blur(10px);
}

.guide-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(1360px, calc(100vw - 20px));
  max-height: calc(100vh - 20px);
  overflow: auto;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 252, 253, 0.99) 0%, rgba(255, 241, 247, 0.96) 100%);
  border: 1px solid rgba(216, 111, 153, 0.16);
  box-shadow: 0 34px 90px rgba(71, 34, 51, 0.34);
}

.guide-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: rgba(216, 111, 153, 0.12);
  color: var(--primary-dark);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.guide-modal-content {
  padding: 14px;
}

.guide-modal-head {
  margin-bottom: 10px;
  padding-right: 48px;
}

.guide-modal-title {
  margin: 0;
  color: var(--primary-dark);
  font-size: clamp(1.18rem, 2vw, 1.7rem);
  font-weight: 900;
  line-height: 1.2;
}

.guide-modal-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 8px;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff0f6, #ffffff 58%, #f8e0d4 100%);
  border: 1px solid rgba(216, 111, 153, 0.12);
}

.guide-modal-frame img {
  max-width: 100%;
  max-height: calc(100vh - 78px);
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
  box-shadow: 0 12px 28px rgba(137, 76, 106, 0.12);
  border-radius: 10px;
}

footer {
  background: var(--footer-green);
  color: var(--white);
  padding: 40px 20px;
  margin-top: 40px;
}

.footer-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.footer-address, .footer-contact {
  line-height: 1.8;
}

.footer-wechat {
  text-align: center;
  flex-shrink: 0;
}

.footer-social-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.social-item {
  text-align: center;
  line-height: 1.5;
}

.social-item a {
  color: var(--white);
  text-decoration: none;
  display: block;
  transition: opacity 0.3s ease;
}

.social-item a:hover {
  opacity: 0.8;
}

.social-item i {
  font-size: 22px;
  margin-bottom: 5px;
  display: inline-block;
}

.social-item span {
  display: block;
  font-size: 0.9rem;
}

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.3);
  margin: 20px 0;
}

.footer-bottom {
  text-align: center;
  line-height: 1.8;
  font-size: 0.9rem;
}

.footer-contact a {
  color: var(--white);
  text-decoration: underline;
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #df7ca3, #8f4564);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 4px 15px var(--shadow);
  transition: all 0.3s ease;
  z-index: 999;
  text-decoration: none;
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-5px);
}

.countdown-timer {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: linear-gradient(180deg, rgba(103, 45, 70, 0.96) 0%, rgba(143, 69, 100, 0.94) 48%, rgba(216, 111, 153, 0.92) 100%);
  backdrop-filter: blur(10px);
  padding: 50px 20px;
  border-bottom: 2px solid rgba(243, 191, 208, 0.5);
  box-shadow: 0 4px 30px rgba(103, 45, 70, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.countdown-timer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    linear-gradient(90deg, transparent 48%, rgba(243, 191, 208, 0.08) 49%, rgba(243, 191, 208, 0.08) 51%, transparent 52%),
    linear-gradient(0deg, transparent 48%, rgba(243, 191, 208, 0.08) 49%, rgba(243, 191, 208, 0.08) 51%, transparent 52%),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 50px,
        rgba(243, 191, 208, 0.03) 50px,
        rgba(243, 191, 208, 0.03) 51px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 50px,
        rgba(243, 191, 208, 0.03) 50px,
        rgba(243, 191, 208, 0.03) 51px
    );
  background-size: 100px 100px, 100px 100px, 50px 50px, 50px 50px;
  pointer-events: none;
}

.countdown-timer::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #f3bfd0, #d86f99, #f3bfd0, transparent);
  animation: scanline 2s linear infinite;
}

.countdown-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.countdown-label {
  font-size: clamp(0.65rem, 1.5vw, 0.8rem);
  color: rgba(255, 229, 238, 0.92);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 5px;
  font-weight: 500;
}

.countdown-days {
  font-size: clamp(2rem, 8vw, 4rem);
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 0 20px rgba(255, 214, 228, 0.8), 0 0 40px rgba(216, 111, 153, 0.5);
  line-height: 1;
  letter-spacing: 2px;
  animation: breathe 3s ease-in-out infinite;
}

.countdown-days span {
  background: linear-gradient(180deg, #ffffff 0%, #ffdbe8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.countdown-time {
  font-size: clamp(0.7rem, 2.5vw, 1.1rem);
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
  letter-spacing: 2px;
  margin-top: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.countdown-time .time-unit {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 12px;
  border-radius: 4px;
  border: 1px solid rgba(243, 191, 208, 0.34);
}

.countdown-time .time-value {
  color: #ffd6e4;
  font-weight: 700;
  min-width: 24px;
  text-align: center;
}

.countdown-time .time-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85em;
}

.countdown-decoration {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 224, 235, 0.34);
  font-size: 1.2rem;
}

.countdown-decoration.left {
  left: 10px;
}

.countdown-decoration.right {
  right: 10px;
}

.countdown-finished {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffdce9;
  text-shadow: 0 0 20px rgba(255, 214, 228, 0.8);
}

@media (max-width: 992px) {
  .poster-showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "poster poster"
      "guide-left guide-right";
    gap: 14px;
  }

  .footer-top-row {
    flex-direction: column;
    text-align: center;
  }

  .footer-social-row,
  .modal-hero,
  .modal-grid {
    grid-template-columns: 1fr;
  }

  .card-schedule-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .modal-image-wrap {
    height: auto;
    min-height: 380px;
  }
}

@media (max-width: 768px) {
  body.modal-open .ambient-layer {
    position: absolute;
    inset: 0;
    min-height: 100%;
  }

  body.modal-open .ambient-orb {
    opacity: 0.14;
    filter: blur(14px);
  }

  body.modal-open .phoenix-trace,
  body.modal-open .peach-field {
    display: none;
  }

  body.modal-open .petal {
    opacity: 0.1;
    animation-play-state: paused;
  }

  body.modal-open .deco-item,
  body.modal-open .countdown-days,
  body.modal-open .countdown-timer::after {
    animation: none;
  }

  body.modal-open .countdown-timer,
  body.modal-open .modal-backdrop,
  body.modal-open .guide-modal-backdrop {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  body.modal-open .activity-modal-dialog,
  body.modal-open .guide-modal-dialog {
    contain: layout paint style;
    transform: translateZ(0);
  }

  .poster-section {
    padding: 28px 14px 0;
  }

  .poster-showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "poster poster"
      "guide-left guide-right";
    gap: 10px;
  }

  .guide-card {
    padding: 10px;
    gap: 8px;
    border-radius: 16px;
  }

  .guide-card-title {
    margin: 6px 0 2px;
    font-size: 0.9rem;
  }

  .guide-card-text {
    font-size: 0.72rem;
    line-height: 1.35;
  }

  .guide-preview-img {
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: top center;
    border-radius: 12px;
  }

  .guide-preview-cta {
    padding: 7px 10px;
    font-size: 0.72rem;
  }

  .guide-card-kicker {
    padding: 4px 7px;
    font-size: 0.58rem;
  }

  .activity-section {
    padding: 18px 14px 48px;
  }

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

  .card-chip {
    top: 10px;
    left: 10px;
    padding: 6px 10px;
    font-size: 0.74rem;
  }

  .card-order {
    right: 10px;
    bottom: 10px;
    font-size: 1.18rem;
  }

  .card-body {
    padding: 14px;
  }

  .card-schedule {
    margin-bottom: 12px;
    padding: 10px 12px;
  }

  .card-schedule-label {
    font-size: 0.74rem;
  }

  .card-schedule-value {
    font-size: 0.86rem;
    line-height: 1.5;
  }

  .card-status {
    padding: 4px 9px;
    font-size: 0.7rem;
  }

  .card-badge {
    padding: 4px 10px;
    font-size: 0.72rem;
  }

  .card-title {
    font-size: 0.98rem;
    line-height: 1.35;
  }

  .card-unit {
    font-size: 0.84rem;
    margin-bottom: 8px;
  }

  .card-summary {
    font-size: 0.8rem;
    line-height: 1.55;
    margin-bottom: 12px;
    -webkit-line-clamp: 2;
  }

  .btn {
    min-width: 0;
    padding: 8px 10px;
    font-size: 0.84rem;
  }
}

@media (max-width: 576px) {
  .countdown-timer {
    padding: 12px 15px;
  }

  .countdown-decoration {
    display: none;
  }

  .countdown-time {
    gap: 5px;
  }

  .countdown-time .time-unit {
    padding: 3px 8px;
  }

  .footer-social-row {
    grid-template-columns: 1fr;
  }

  .activity-modal-dialog {
    width: 100%;
    max-height: none;
  }

  .guide-modal-dialog {
    width: 100%;
    max-height: none;
  }

  .modal-content-wrap,
  .card-body {
    padding: 18px;
  }

  .guide-modal-content {
    padding: 10px;
  }

  .modal-close {
    top: 8px;
    right: 8px;
  }

  .guide-modal-close {
    top: 10px;
    right: 10px;
  }

  .gallery-item img {
    height: 190px;
  }

  .activity-toolbar {
    padding: 18px 16px 16px;
  }

  .filter-pills {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .filter-chip {
    white-space: nowrap;
  }

  .guide-modal-head {
    margin-bottom: 8px;
    padding-right: 40px;
  }

  .guide-modal-frame {
    min-height: 0;
    padding: 6px;
    border-radius: 14px;
  }

  .guide-modal-title {
    font-size: 1rem;
  }

  .guide-modal-frame img {
    max-height: calc(100vh - 64px);
  }
}
