:root {
  --red: #c4121a;
  --red-deep: #9b1219;
  --gold: #c6a15a;
  --ink: #3d2a28;
  --muted: rgba(61, 42, 40, 0.58);
  --line: #f0e2da;
  --bg: #f6f1ee;
  --app: 480px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; width: 100%; }
html { -webkit-text-size-adjust: 100%; }
body {
  min-height: 100%;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: var(--ink);
  background: #faf7f5;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; }
img { max-width: 100%; display: block; }

.app {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  background: #faf7f5;
  position: relative;
}

.hero {
  position: relative;
  background: #c4161c url("../assets/banner.jpg?v=4") center top / 100% auto no-repeat;
  aspect-ratio: 5120 / 2937;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28px;
  background: linear-gradient(180deg, transparent, #faf7f5);
  pointer-events: none;
}
.banner { width: 100%; height: auto; }

.menu {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  row-gap: 32px;
  padding: 22px 6% 104px;
}
.menu a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: rise 0.65s ease both;
}
.menu a:nth-child(1) { animation-delay: 0.04s; }
.menu a:nth-child(2) { animation-delay: 0.1s; }
.menu a:nth-child(3) { animation-delay: 0.16s; }
.menu a:nth-child(4) { animation-delay: 0.22s; }
.menu a:nth-child(5) { animation-delay: 0.28s; }
.menu a:nth-child(6) { animation-delay: 0.34s; }
.menu a:nth-child(7) { animation-delay: 0.4s; }
.menu a:nth-child(8) { animation-delay: 0.46s; }
.menu a:nth-child(9) { animation-delay: 0.52s; }

.bubble {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(160deg, #e24b45 0%, var(--red) 55%, var(--red-deep) 100%);
  box-shadow: 0 8px 16px rgba(176, 24, 32, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.bubble::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(198, 161, 90, 0.45);
  animation: halo 2.8s ease-in-out infinite;
}
.menu a:hover .bubble,
.menu a:focus-visible .bubble {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 12px 20px rgba(176, 24, 32, 0.28);
}
.menu a:active .bubble { transform: scale(0.96); }
.bubble svg { width: 32px; height: 32px; position: relative; z-index: 1; }
.label {
  margin-top: 8px;
  width: 92px;
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
  line-height: 1.35;
}

.footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  color: #fff;
  font-size: 13px;
  z-index: 20;
  padding-bottom: env(safe-area-inset-bottom);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 48px;
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid #f3e8e4;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.topbar h1 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  text-align: center;
  color: var(--red-deep);
}
.back {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
}
.back svg { width: 22px; height: 22px; }
.float-back {
  position: fixed;
  z-index: 25;
  right: 16px;
  bottom: calc(68px + env(safe-area-inset-bottom));
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  color: #fff;
  box-shadow: 0 8px 18px rgba(176, 24, 32, 0.28);
}
.float-back svg { width: 22px; height: 22px; }
.float-back:active { transform: scale(0.96); }

.page { padding: 16px 16px 92px; }
.page > * { animation: rise 0.5s ease both; }
.page > *:nth-child(2) { animation-delay: 0.05s; }
.page > *:nth-child(3) { animation-delay: 0.1s; }
.page > *:nth-child(4) { animation-delay: 0.14s; }
.page > *:nth-child(5) { animation-delay: 0.18s; }

.hero-note {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff8f4;
  color: #8a4e32;
  font-size: 13px;
  border: 1px solid #f3ddd4;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 14px 12px;
  margin-bottom: 12px;
  box-shadow: 0 8px 20px rgba(160, 40, 40, 0.05);
}
.card h2 {
  margin: 0 0 10px;
  font-size: 16px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.card h2::before {
  content: "";
  width: 3px;
  height: 15px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--gold), var(--red));
  flex: none;
}
.card p { margin: 0 0 8px; font-size: 14px; }
.card p:last-child { margin-bottom: 0; }
.meta { color: var(--muted); font-size: 13px; }
.k {
  display: inline-block;
  min-width: 3em;
  color: var(--red);
}

.phone {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px dashed #f0e0d8;
  font-size: 14px;
}
.phone:first-of-type { border-top: 0; }
.phone a,
.phone .num {
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}
.role { color: var(--muted); font-size: 12px; margin-top: 2px; }

.day { margin-bottom: 22px; }
.day-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 12px;
}
.day-head strong { font-size: 18px; letter-spacing: 0.02em; }
.day-head span {
  font-size: 12px;
  color: #fff;
  background: var(--red);
  border-radius: 999px;
  padding: 2px 10px;
}
.slot {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 6px 18px;
  align-items: start;
  padding: 16px 2px;
  border-top: 1px solid #f3e6e1;
}
.slot:first-child { border-top: 0; }
.slot time {
  color: var(--red);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  padding-top: 1px;
}
.slot-body { min-width: 0; }
.slot-place {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}
.visit {
  margin: 8px 0 0;
  padding-left: 1.25em;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
}
.visit li { margin: 2px 0; }
.slot-title,
.slot-link {
  display: block;
  color: var(--ink);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.55;
}
.parallel {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #f0e2db;
}
.agenda-box {
  margin-top: 10px;
  padding: 4px 12px 6px;
  background: #fff7f5;
  border: 1px solid #f3e4de;
  border-radius: 12px;
}
.mini {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: item;
}
.mini li {
  position: relative;
  padding: 8px 0 8px 26px;
  font-size: 14px;
  line-height: 1.55;
  border-bottom: 1px solid #f6ece8;
}
.mini li:last-child { border-bottom: 0; }
.mini li::before {
  counter-increment: item;
  content: counter(item);
  position: absolute;
  left: 0;
  top: 10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mini-part {
  margin: 10px 0 2px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--red);
}
.mini-part:first-child { margin-top: 6px; }
@media (max-width: 560px) {
  .slot {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 14px 0;
  }
  .slot time { padding-top: 0; }
}

.pills { display: flex; flex-direction: column; gap: 12px; padding-top: 4px; }
.pill {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  min-height: 72px;
  padding: 14px 40px 14px 16px;
  border-radius: 16px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(196, 18, 26, 0.12);
  box-shadow: 0 10px 24px rgba(160, 40, 40, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pill::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 36%, rgba(255, 255, 255, 0.7) 50%, transparent 64%);
  transform: translateX(-130%);
  animation: sheen 6s ease-in-out infinite;
  pointer-events: none;
}
.pill::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-top: 1.6px solid var(--red);
  border-right: 1.6px solid var(--red);
  transform: translateY(-50%) rotate(45deg);
}
.pills .pill:nth-child(2)::before { animation-delay: 0.7s; }
.pills .pill:nth-child(3)::before { animation-delay: 1.4s; }
.pills .pill:nth-child(4)::before { animation-delay: 2.1s; }
.pill:hover,
.pill:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(160, 40, 40, 0.1);
}
.pill:active { transform: scale(0.985); }
.pill .name {
  display: block;
  width: 100%;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: 15px;
  line-height: 1.45;
}
.pill small {
  display: block;
  margin-top: 4px;
  font-weight: 500;
  font-size: 12px;
  color: var(--gold);
}

.agenda-list { margin: 0; padding: 0; list-style: none; counter-reset: item; }
.agenda-list li {
  position: relative;
  padding: 10px 0 10px 34px;
  border-top: 1px solid #f6eee9;
  font-size: 15px;
}
.agenda-list li::before {
  counter-increment: item;
  content: counter(item);
  position: absolute;
  left: 0;
  top: 11px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff4f2;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.part {
  margin: 14px 0 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--red);
}

.map {
  width: 100%;
  border-radius: 12px;
  margin-top: 8px;
}
.nav-row { display: flex; gap: 8px; margin-top: 10px; }
.nav-row a {
  flex: 1;
  text-align: center;
  background: #fff6f4;
  color: var(--red);
  border-radius: 999px;
  padding: 8px 0;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid #f3ddd6;
}

.empty {
  text-align: center;
  padding: 48px 20px 20px;
  color: var(--muted);
}
.empty .bubble { margin: 0 auto 14px; }
.empty h2 { margin: 0 0 8px; color: var(--ink); font-size: 18px; }
.empty p { margin: 0; font-size: 14px; }

a.year {
  display: block;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
a.year:hover,
a.year:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(160, 40, 40, 0.1);
}
a.year h2 {
  align-items: flex-start;
}
a.year h2 .year-name {
  flex: 1;
  min-width: 0;
  line-height: 1.45;
}
.year-when {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--muted);
}
a.year h2::after {
  content: "查看新闻";
  margin-left: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--red);
  white-space: nowrap;
}
.year { margin-bottom: 16px; }
.year h2 { margin-bottom: 8px; }
.year img {
  width: 100%;
  border-radius: 12px;
  background: #fafafa;
}
.year .cap {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
}
.year .cap.host {
  text-align: left;
  color: var(--ink);
}
.year .cap.host + .cap.host { margin-top: 2px; }
.kv-wrap { position: relative; }
.kv { display: block; width: 100%; height: auto; }
.kv-wrap::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28px;
  background: linear-gradient(180deg, transparent, #faf7f5);
  pointer-events: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; width: auto; }
.lightbox button {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 22px;
}

@keyframes rise {
  from { opacity: 0; translate: 0 14px; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes halo {
  0%, 100% { transform: scale(0.98); opacity: 0.85; }
  50% { transform: scale(1.08); opacity: 0.2; }
}
@keyframes sheen {
  0%, 62% { transform: translateX(-130%); }
  100% { transform: translateX(130%); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
