/* 6Q嘉年华 · 校园地图背景（锁定版布局） */

.q-app--park {
  background: #b8d996;
}

.park-world {
  flex: 1;
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* aspect-ratio 保证容器有高度，避免 absolute 子元素塌陷 */
.park-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 390 / 780;
  min-height: 680px;
  flex-shrink: 0;
  background: #b8d996;
}

.campus-map {
  display: block;
  width: 100%;
  height: 100%;
}

/* ── 设施层（待加回，坐标基于 390×780 viewBox 百分比） ── */
.venue-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.venue {
  position: absolute;
  /* 34% ≈ 原尺寸 1.5 倍，兼顾可见性与不溢出 */
  width: 34%;
  min-width: 118px;
  max-width: 148px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  font-family: inherit;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.18s ease;
}

.venue-art-wrap { width: 100%; line-height: 0; }
.venue-art { width: 100%; height: auto; display: block; filter: drop-shadow(0 4px 0 rgba(74,80,72,0.1)); }

.venue-label {
  margin-top: 4px;
  background: #fff;
  border: 2px solid #4a5048;
  border-radius: 12px;
  padding: 5px 14px 6px;
  box-shadow: 0 2px 0 #4a5048;
  white-space: nowrap;
  text-align: center;
}

.venue-label strong { display: block; font-size: 12px; font-weight: 900; color: #4a5048; }
.venue-label span { display: block; font-size: 10px; font-weight: 700; color: #888; margin-top: 1px; }

/* 开放 */
.venue.is-open .venue-label span { color: #d48806; }
.venue.is-open:hover { transform: translate(-50%, -58%) scale(1.05) translateY(-3px); }

/* 不开放 · 置灰（徽章保持原色） */
.venue.is-closed {
  opacity: 0.72;
  cursor: default;
}
.venue.is-closed .venue-art-wrap,
.venue.is-closed .venue-label {
  filter: grayscale(0.9) saturate(0.45);
}
.venue.is-closed .venue-glow { display: none; }
.venue.is-closed:hover { transform: translate(-50%, -58%); }
.venue.is-closed .venue-label { opacity: 0.85; }

/* 积分加倍 · 顶栏提示 */
.venue-boost-tip {
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translate(-50%, -100%);
  background: linear-gradient(135deg, #534ab7, #7c6cf0);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 10px;
  white-space: nowrap;
  border: 2px solid #fff;
  box-shadow: 0 2px 0 rgba(83, 74, 183, 0.35);
  z-index: 4;
  pointer-events: none;
  letter-spacing: 0.3px;
}

.venue.is-boost .venue-glow {
  background: radial-gradient(circle, rgba(124, 108, 240, 0.45) 0%, transparent 70%);
}

.venue-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 220, 80, 0.42) 0%, transparent 70%);
  animation: venue-glow 2.2s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes venue-glow {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

/* 锚点在主路采样点，left/top 已横向偏移到路侧草地 */
.venue { transform: translate(-50%, -58%); }
.venue:active { transform: translate(-50%, -58%) scale(0.97); }
.venue.is-closed:active { transform: translate(-50%, -58%); }

/*
 * 沿路布局（viewBox 390×780，锚点 translate(-50%,-58%)）
 * 安全区：left 18%–82%（宽 34% 不溢出）
 *  左列：集卡、答题  |  右列：情绪合成、拼图
 */
/* 6Q集卡 · 当前抽卡次数（设施右侧） */
.venue-draw-count {
  position: absolute;
  right: -4px;
  top: 22%;
  transform: translate(42%, -50%);
  z-index: 8;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 72px;
  padding: 7px 10px 8px;
  border-radius: 14px;
  border: 2.5px solid #fff;
  background: linear-gradient(145deg, #fff7d6 0%, #ffe08a 42%, #f5b942 100%);
  box-shadow:
    0 3px 0 #c98a12,
    0 6px 14px rgba(201, 138, 18, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  animation: venue-draw-pulse 2.4s ease-in-out infinite;
}

.venue-draw-count.is-zero {
  background: linear-gradient(145deg, #f5f3ef 0%, #e8e4da 100%);
  box-shadow:
    0 2px 0 #b8b4aa,
    0 4px 10px rgba(74, 80, 72, 0.12);
  animation: none;
  opacity: 0.92;
}

.venue-draw-count.has-draws .venue-draw-count-value strong {
  color: #b45309;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
}

.venue-draw-count-label {
  font-size: 9px;
  font-weight: 800;
  color: #6b5010;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

.venue-draw-count.is-zero .venue-draw-count-label {
  color: #888;
}

.venue-draw-count-value {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  line-height: 1;
  white-space: nowrap;
}

.venue-draw-count-value em {
  font-style: normal;
  font-size: 14px;
  font-weight: 900;
  color: #534ab7;
  margin-right: 1px;
}

.venue-draw-count-value strong {
  font-size: 22px;
  font-weight: 900;
  color: #4a5048;
  font-variant-numeric: tabular-nums;
}

.venue-draw-count-unit {
  font-size: 11px;
  font-weight: 900;
  color: #6b5010;
  margin-left: 1px;
}

.venue-draw-count.is-zero .venue-draw-count-unit,
.venue-draw-count.is-zero .venue-draw-count-value em {
  color: #999;
}

@keyframes venue-draw-pulse {
  0%, 100% { transform: translate(42%, -50%) scale(1); }
  50% { transform: translate(42%, -50%) scale(1.06); }
}

.venue--cards  { left: 42.0%; top: 18.0%; z-index: 12; }
.venue--2048   { left: 76.0%; top: 45.0%; z-index: 14; }
.venue--quiz   { left: 32.0%; top: 70.0%; z-index: 16; }
.venue--puzzle { left: 78.0%; top: 72.0%; z-index: 18; }

.park-toast {
  position: absolute;
  bottom: 72px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: #4a5048;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 14px;
  border: 2.5px solid #fff;
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  max-width: 86%;
  white-space: nowrap;
}

.park-toast.is-show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ── 路边活动路牌（左下角 · 融入地图） ── */
.park-signpost {
  position: absolute;
  left: 15%;
  bottom: 5%;
  top: auto;
  z-index: 25;
  width: 28%;
  min-width: 88px;
  max-width: 118px;
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  transform: translate(-50%, 0);
  filter: drop-shadow(0 3px 0 rgba(74, 80, 72, 0.12));
  transition: transform 0.18s ease, filter 0.18s ease;
}

.park-signpost-art {
  width: 100%;
  height: auto;
  display: block;
  transform-origin: 50% 95%;
  animation: signpost-idle 5s ease-in-out infinite;
}

@keyframes signpost-idle {
  0%, 100% { transform: rotate(-1.2deg); }
  50% { transform: rotate(1deg); }
}

.park-signpost-board--main {
  transform: rotate(-2deg);
  transform-origin: 44px 32px;
}

.park-signpost:active {
  transform: translate(-50%, 0) scale(0.96);
  filter: drop-shadow(0 1px 0 rgba(74, 80, 72, 0.1));
}

/* 情绪合成上方 · 今日活动提示（简洁胶囊） */
.venue-activity-hint {
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translate(-50%, -100%);
  z-index: 6;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  filter: drop-shadow(0 3px 8px rgba(74, 80, 72, 0.1));
  transition: opacity 0.28s ease, visibility 0.28s ease, transform 0.28s ease;
}

.venue-activity-hint:not(:empty) {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, calc(-100% - 2px));
}

.venue-activity-hint-inner {
  display: inline-flex;
  align-items: stretch;
  max-width: 148px;
  background: #fff;
  border: 2px solid #4a5048;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 2px 0 #4a5048;
}

.venue-activity-hint-inner--solo {
  padding: 0;
}

.venue-activity-hint-inner--solo .venue-activity-hint-today {
  padding: 6px 12px;
  color: #4a5048;
  background: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

.venue-activity-hint-today {
  display: flex;
  align-items: center;
  padding: 6px 9px 6px 11px;
  font-size: 10px;
  font-weight: 700;
  color: #888;
  background: #f7f5ef;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.venue-activity-hint-badge {
  display: flex;
  align-items: center;
  padding: 6px 12px 6px 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.venue-activity-hint--score .venue-activity-hint-badge {
  color: #b45309;
  background: #fffbeb;
}

.venue-activity-hint--card .venue-activity-hint-badge {
  color: #534ab7;
  background: #f5f3ff;
}

.venue-activity-hint--both .venue-activity-hint-badge {
  color: #534ab7;
  background: linear-gradient(90deg, #fffbeb 0%, #f5f3ff 100%);
  font-size: 11px;
}

.park-signpost.is-expanded {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 0) scale(0.9);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* ── 活动时间表 · 放大路牌弹窗 ── */
#modal-schedule.q-modal-overlay--signpost {
  align-items: flex-end;
  justify-content: flex-start;
  padding: 0 0 7% 6%;
}

.schedule-modal {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(88vw, 300px);
  max-height: 56vh;
  transform-origin: 18% 100%;
  transform: scale(0.28) translateY(12px);
  opacity: 0;
  transition: transform 0.34s cubic-bezier(0.34, 1.2, 0.64, 1), opacity 0.22s ease;
  filter: drop-shadow(0 4px 0 rgba(74, 80, 72, 0.14));
}

#modal-schedule.is-open .schedule-modal {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.schedule-modal-board {
  width: 100%;
  display: flex;
  flex-direction: column;
  max-height: calc(56vh - 36px);
  background: #fffef5;
  border: 3px solid #4a5048;
  border-radius: 12px;
  box-shadow: 0 5px 0 #4a5048;
  transform: rotate(-1.5deg);
  overflow: hidden;
}

.schedule-modal-head {
  flex-shrink: 0;
  padding: 12px 12px 8px;
  border-bottom: 2px solid rgba(74, 80, 72, 0.1);
  background: linear-gradient(180deg, #fffef5 0%, #f8f3e4 100%);
}

.schedule-modal-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.schedule-modal-cal {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.schedule-modal-titles h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  color: #4a5048;
  line-height: 1.1;
  letter-spacing: 0.5px;
}

.schedule-modal-tagline {
  margin: 2px 0 0;
  font-size: 12px;
  font-weight: 800;
  color: #534ab7;
  line-height: 1.2;
}

.schedule-modal-sub {
  margin: 8px 0 0;
  padding: 5px 8px;
  font-size: 10px;
  font-weight: 700;
  color: #534ab7;
  line-height: 1.35;
  background: rgba(245, 240, 220, 0.85);
  border: 1.5px solid rgba(74, 80, 72, 0.12);
  border-radius: 8px;
}

.schedule-flow {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin: 8px;
  padding: 8px;
  background: rgba(245, 240, 220, 0.55);
  border: 2px solid rgba(74, 80, 72, 0.1);
  border-radius: 8px;
}

.schedule-week-nav {
  display: grid;
  grid-template-columns: 28px 1fr 28px;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
}

.schedule-week-arrow {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 2px solid #4a5048;
  border-radius: 7px;
  background: #fffef5;
  color: #4a5048;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 0 rgba(74, 80, 72, 0.2);
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}

.schedule-week-arrow:active:not(:disabled) {
  transform: translateY(1px);
  box-shadow: 0 1px 0 rgba(74, 80, 72, 0.15);
}

.schedule-week-arrow.is-disabled,
.schedule-week-arrow:disabled {
  opacity: 0.35;
  cursor: default;
  box-shadow: none;
  background: rgba(255, 254, 245, 0.6);
}

.schedule-week-head {
  min-width: 0;
  padding: 5px 6px;
  background: #fffef5;
  border-radius: 6px;
  border: 2px solid #4a5048;
  box-shadow: 0 2px 0 rgba(74, 80, 72, 0.15);
  text-align: center;
}

.schedule-week-head--active,
.schedule-week-nav--active .schedule-week-head {
  background: #f5f2ff;
  border-color: #534ab7;
  box-shadow: 0 2px 0 rgba(83, 74, 183, 0.25);
}

.schedule-week-head-text {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
  flex-wrap: wrap;
}

.schedule-week-label {
  font-size: 11px;
  font-weight: 900;
  color: #4a5048;
}

.schedule-week-head--active .schedule-week-label,
.schedule-week-nav--active .schedule-week-label {
  color: #534ab7;
}

.schedule-week-range {
  font-size: 9px;
  font-weight: 800;
  color: #888;
  white-space: nowrap;
}

.schedule-week-progress {
  display: block;
  margin-top: 2px;
  font-size: 9px;
  font-weight: 800;
  color: #888;
}

.schedule-week-nav--active .schedule-week-progress {
  color: #534ab7;
}

.schedule-days-viewport {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.schedule-days-panel {
  position: relative;
  min-height: 88px;
}

.schedule-days-panel.is-animating {
  overflow: hidden;
}

.schedule-days {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.schedule-days--in-next {
  position: absolute;
  inset: 0;
  animation: schedule-slide-in-next 0.2s ease forwards;
}

.schedule-days--in-prev {
  position: absolute;
  inset: 0;
  animation: schedule-slide-in-prev 0.2s ease forwards;
}

.schedule-days--out-next {
  animation: schedule-slide-out-next 0.2s ease forwards;
}

.schedule-days--out-prev {
  animation: schedule-slide-out-prev 0.2s ease forwards;
}

@keyframes schedule-slide-in-next {
  from { transform: translateX(100%); opacity: 0.2; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes schedule-slide-in-prev {
  from { transform: translateX(-100%); opacity: 0.2; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes schedule-slide-out-next {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(-100%); opacity: 0.2; }
}

@keyframes schedule-slide-out-prev {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(100%); opacity: 0.2; }
}

.schedule-day {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 5px;
  padding: 4px 6px;
  border-radius: 6px;
  background: #fffef5;
  border: 1.5px solid rgba(74, 80, 72, 0.08);
}

.schedule-day--active {
  background: #fff;
  border-color: #534ab7;
  box-shadow: inset 0 0 0 1px rgba(83, 74, 183, 0.12);
}

.schedule-day--past {
  opacity: 0.48;
}

.schedule-day-date {
  font-size: 10px;
  font-weight: 900;
  color: #888;
  line-height: 1.2;
}

.schedule-day--active .schedule-day-date {
  color: #534ab7;
}

.schedule-day-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.schedule-day-title {
  font-size: 11px;
  font-weight: 800;
  color: #4a5048;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.schedule-day-venue {
  font-size: 9px;
  font-weight: 700;
  color: #888;
}

.schedule-day-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  justify-content: flex-end;
}

.schedule-tag {
  font-size: 8px;
  font-weight: 800;
  padding: 2px 4px;
  border-radius: 5px;
  white-space: nowrap;
  line-height: 1.2;
  border: 1px solid;
}

.schedule-tag--score {
  background: #fff7e6;
  color: #d48806;
  border-color: #ffd591;
}

.schedule-tag--card {
  background: #f0ebff;
  color: #534ab7;
  border-color: #c4b5fd;
}

.schedule-modal-close {
  flex-shrink: 0;
  margin: 0 10px 10px;
  padding: 8px 12px;
  width: calc(100% - 20px);
  border: 2.5px solid #4a5048;
  border-radius: 10px;
  background: #534ab7;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 3px 0 #3d368f;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.schedule-modal-close:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #3d368f;
}

.schedule-modal-pole {
  width: 10px;
  height: 28px;
  margin-top: -1px;
  background: #b88848;
  border: 2px solid #6B5010;
  border-radius: 0 0 3px 3px;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.15);
}

.schedule-modal-ground {
  width: 56px;
  height: 8px;
  margin-top: -2px;
  border-radius: 50%;
  background: rgba(74, 80, 72, 0.14);
}
