:root {
  --ink: #2e1738;
  --muted: #796b80;
  --purple: #6b2c88;
  --purple-deep: #4c155f;
  --magenta: #c92f92;
  --gold: #f2bd54;
  --lilac: #f6edfa;
  --line: rgba(96, 43, 115, 0.13);
  --white: #ffffff;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: #eadcf0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: #eadcf0; }
body { margin: 0; min-height: 100vh; background: #eadcf0; }
button, a { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.ambient {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 15% 15%, rgba(201,47,146,.24), transparent 32%),
    radial-gradient(circle at 84% 70%, rgba(107,44,136,.28), transparent 30%),
    linear-gradient(145deg, #f9f1fb, #d7c0e0);
}

.app-shell {
  position: relative;
  width: min(100%, 480px);
  min-height: 100dvh;
  margin: 0 auto;
  background: #fbf8fc;
  box-shadow: 0 0 60px rgba(57, 22, 70, .2);
  overflow: hidden;
}

.home-view, .sub-view { min-height: 100dvh; }
.home-view { padding-bottom: max(30px, env(safe-area-inset-bottom)); }

.hero-visual { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #f8ebf8; }
.hero-visual > img { width: 100%; height: 100%; object-fit: cover; object-position: left center; }
.hero-eventline { position: absolute; z-index: 2; inset: auto 0 0; display: grid; grid-template-columns: 1fr auto; align-items: center; min-height: 58px; padding: 10px 18px 9px; color: var(--purple-deep); background: linear-gradient(90deg, rgba(255,250,255,.96), rgba(255,250,255,.78)); border-top: 1px solid rgba(107,44,136,.12); backdrop-filter: blur(10px); }
.hero-place { display: flex; grid-row: 1 / 3; align-items: center; gap: 7px; font-family: "Songti SC", "STSong", serif; font-size: 1rem; font-weight: 800; letter-spacing: .08em; }
.hero-place b { color: var(--magenta); font-family: Georgia, serif; font-size: 1.18rem; letter-spacing: .04em; }
.hero-place i { width: 18px; height: 1px; background: var(--gold); }
.hero-date, .hero-time { text-align: right; font-size: .72rem; font-weight: 700; letter-spacing: .02em; }
.hero-time { color: var(--muted); font-size: .68rem; }

.menu-section { padding: 14px 16px 12px; }
.section-heading span, .view-header span { color: var(--magenta); font-size: .68rem; letter-spacing: .18em; font-weight: 750; }
.section-heading h2, .view-header h2 { margin: 4px 0 0; font-family: "Songti SC", "STSong", serif; font-size: 1.55rem; line-height: 1.2; }
.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.menu-card { position: relative; display: flex; min-height: 132px; padding: 17px; flex-direction: column; align-items: flex-start; justify-content: space-between; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: white; color: var(--ink); text-align: left; text-decoration: none; box-shadow: 0 10px 28px rgba(56,23,69,.07); cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.menu-card[hidden] { display: none; }
.menu-card:active { transform: scale(.98); }
.menu-card::after { content: ""; position: absolute; width: 82px; height: 82px; right: -34px; bottom: -40px; border-radius: 50%; background: radial-gradient(circle, rgba(201,47,146,.11), rgba(201,47,146,0)); }
.card-live { grid-column: 1 / -1; min-height: 116px; flex-direction: row; align-items: center; justify-content: flex-start; gap: 14px; color: white; background: linear-gradient(125deg, var(--purple-deep), #a52b8c); border: 0; }
.card-live .menu-copy { flex: 1; }
.card-live small { color: rgba(255,255,255,.72) !important; }
.card-live .icon-wrap { color: white; background: rgba(255,255,255,.14); }
.card-live .card-index { color: rgba(255,255,255,.36); }
.card-more { background: linear-gradient(145deg, #fbf7fc, #f2e6f6); }
.card-more .icon-wrap { color: var(--magenta); background: white; box-shadow: 0 6px 18px rgba(71,25,86,.08); }
.icon-wrap { display: grid; width: 42px; height: 42px; place-items: center; color: var(--purple); background: var(--lilac); border-radius: 13px; }
.icon-wrap svg { width: 22px; height: 22px; }
.menu-copy { display: flex; flex-direction: column; gap: 3px; }
.menu-copy b { font-size: 1.02rem; }
.menu-copy small { color: var(--muted); font-size: .78rem; }
.card-index { position: absolute; top: 17px; right: 15px; color: rgba(107,44,136,.25); font-size: .72rem; font-weight: 800; letter-spacing: .08em; }
.live-pulse { width: 9px; height: 9px; border-radius: 50%; background: #ffcd67; box-shadow: 0 0 0 0 rgba(255,205,103,.5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255,205,103,0); } 100% { box-shadow: 0 0 0 0 rgba(255,205,103,0); } }

footer { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 17px 16px 4px; color: #938a97; font-size: .65rem; letter-spacing: .03em; }
footer i { width: 3px; height: 3px; border-radius: 50%; background: #c9bdcd; }

.sub-view { background: linear-gradient(180deg, #fbf6fc 0, #fff 210px); }
.view-header { display: flex; align-items: center; gap: 14px; min-height: 96px; padding: max(18px, env(safe-area-inset-top)) 18px 14px; color: var(--ink); border-bottom: 1px solid var(--line); background: rgba(251,246,252,.94); }
.sticky-head { position: sticky; z-index: 20; top: 0; backdrop-filter: blur(16px); }
.back-button { display: grid; width: 42px; height: 42px; place-items: center; flex: none; border: 1px solid var(--line); border-radius: 50%; background: white; color: var(--purple); }
.back-button svg { width: 22px; height: 22px; }
.view-body { padding: 18px 16px max(32px, env(safe-area-inset-bottom)); }

.agenda-image { position: relative; display: block; width: 100%; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: 0 14px 35px rgba(67,29,81,.1); }
.agenda-image img { width: 100%; height: auto; }
.agenda-image span { position: sticky; bottom: 12px; display: inline-flex; align-items: center; gap: 7px; margin: 0 0 12px; padding: 9px 14px; border-radius: 99px; background: rgba(61,22,76,.86); color: white; font-size: .8rem; box-shadow: 0 5px 18px rgba(35,8,43,.25); backdrop-filter: blur(8px); }
.agenda-image span svg { width: 16px; height: 16px; }

.expert-tabs { position: sticky; z-index: 19; top: 96px; display: flex; gap: 8px; padding: 12px 16px; overflow-x: auto; background: rgba(251,248,252,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(15px); scrollbar-width: none; }
.expert-tabs::-webkit-scrollbar { display: none; }
.expert-tabs button { flex: none; padding: 8px 13px; border: 1px solid var(--line); border-radius: 99px; background: white; color: #6f6274; font-size: .82rem; }
.expert-tabs button.is-active { border-color: var(--purple); background: var(--purple); color: white; }
.expert-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.expert-card { position: relative; display: flex; min-height: 205px; padding: 24px 10px 13px; flex-direction: column; align-items: center; overflow: hidden; border: 1px solid rgba(107,44,136,.09); border-radius: 18px; background: linear-gradient(180deg, #f8f0fb 0, #fff 72%); text-align: center; box-shadow: 0 8px 24px rgba(63,27,76,.07); transition: transform .2s ease, box-shadow .2s ease; }
.expert-card:active { transform: scale(.98); box-shadow: 0 5px 16px rgba(63,27,76,.08); }
.expert-card::before { content: ""; position: absolute; top: -60px; left: 50%; width: 180px; height: 150px; border-radius: 50%; background: radial-gradient(circle, rgba(199,60,213,.15), rgba(199,60,213,0) 68%); transform: translateX(-50%); }
.expert-card::after { content: none; }
.expert-card img { position: relative; z-index: 1; width: 108px; height: 108px; flex: none; object-fit: contain; object-position: center; border-radius: 50%; background: white; filter: drop-shadow(0 8px 10px rgba(72,26,87,.12)); }
.expert-card .expert-copy { position: relative; z-index: 2; display: block; width: 100%; margin-top: 10px; color: var(--ink); }
.expert-copy b { display: block; font-size: 1rem; line-height: 1.35; }
.expert-copy small { display: -webkit-box; min-height: 2.8em; margin-top: 4px; overflow: hidden; color: var(--muted); font-size: .73rem; line-height: 1.4; white-space: normal; text-overflow: ellipsis; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.expert-role { position: absolute; z-index: 3; top: 10px; left: 10px; padding: 5px 8px; border: 1px solid rgba(107,44,136,.09); border-radius: 99px; background: rgba(255,255,255,.92); color: var(--purple); font-size: .68rem; font-weight: 800; box-shadow: 0 4px 12px rgba(71,25,86,.07); backdrop-filter: blur(8px); }

.moments-body > p { margin: 0 1px 16px; color: var(--muted); font-size: .9rem; }
.photo-grid { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.photo-grid button { padding: 0; overflow: hidden; border: 0; border-radius: 16px; background: #eee; box-shadow: 0 8px 24px rgba(63,27,76,.1); }
.photo-grid button:nth-child(-n+2) { grid-column: 1 / -1; }
.photo-grid button img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .35s ease; }
.photo-grid button:nth-child(-n+2) img { aspect-ratio: 16 / 9; }
.photo-grid button:active img { transform: scale(1.02); }
.photo-placeholder { display: flex; min-height: 140px; align-items: center; justify-content: center; gap: 10px; border: 1px dashed rgba(107,44,136,.24); border-radius: 16px; color: var(--purple); background: var(--lilac); }
.photo-placeholder svg { width: 28px; height: 28px; }
.photo-placeholder span { font-size: .82rem; line-height: 1.45; }

.info-body { display: grid; gap: 12px; }
.info-lead { display: flex; align-items: center; gap: 16px; padding: 20px; border-radius: 20px; color: white; background: linear-gradient(130deg, var(--purple-deep), #a42d8d); box-shadow: 0 14px 32px rgba(78,25,95,.2); }
.date-number { font-family: Georgia, serif; font-size: 3.5rem; line-height: .9; color: var(--gold); }
.info-lead b { font-size: 1.14rem; }
.info-lead p { margin: 5px 0 0; color: rgba(255,255,255,.72); font-size: .86rem; }
.info-card { display: flex; gap: 13px; padding: 17px; border: 1px solid var(--line); border-radius: 17px; background: white; box-shadow: 0 8px 26px rgba(63,27,76,.06); }
.info-icon { display: grid; width: 40px; height: 40px; place-items: center; flex: none; border-radius: 12px; background: var(--lilac); color: var(--magenta); }
.info-icon svg { width: 20px; height: 20px; }
.info-card small { color: var(--magenta); font-size: .73rem; font-weight: 700; }
.info-card h3 { margin: 4px 0 2px; font-size: 1.02rem; }
.info-card p { margin: 0; color: var(--muted); font-size: .87rem; }
.travel-card { padding: 18px; border-radius: 18px; background: #f3ebf6; }
.travel-title { display: flex; align-items: center; gap: 9px; }
.travel-title svg { width: 21px; height: 21px; color: var(--purple); }
.travel-title h3 { margin: 0; font-size: 1rem; }
.travel-card dl { margin: 14px 0 0; }
.travel-card dl div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(107,44,136,.1); }
.travel-card dt { font-size: .87rem; font-weight: 650; }
.travel-card dd { margin: 0; color: var(--muted); font-size: .8rem; text-align: right; }

.download-body { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 44px; }
.document-preview { position: relative; display: block; width: min(260px, 72vw); overflow: hidden; border: 1px solid rgba(75,45,83,.14); border-radius: 6px; background: white; box-shadow: 0 18px 42px rgba(66,28,79,.18); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.document-preview:active { transform: scale(.985); box-shadow: 0 10px 28px rgba(66,28,79,.16); }
.document-preview img { width: 100%; height: auto; }
.document-preview span { position: absolute; inset: auto 10px 10px; display: flex; min-height: 38px; align-items: center; justify-content: center; gap: 7px; border-radius: 4px; color: white; background: rgba(65,20,80,.9); font-size: .78rem; font-weight: 750; box-shadow: 0 6px 18px rgba(45,12,56,.22); backdrop-filter: blur(8px); }
.document-preview span svg { width: 16px; height: 16px; }
.download-body h3 { margin: 31px 0 6px; font-size: 1.2rem; }
.download-body p { width: min(290px, 90%); margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.7; }
.download-action { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; padding: 13px 22px; border: 0; border-radius: 99px; color: white; background: linear-gradient(120deg, var(--purple-deep), var(--magenta)); box-shadow: 0 10px 24px rgba(107,44,136,.22); font-weight: 750; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.download-action:active { transform: scale(.97); box-shadow: 0 5px 15px rgba(107,44,136,.18); }
.download-action svg { width: 18px; height: 18px; }

.lightbox { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 60px 12px 30px; border: 0; background: rgba(20,7,25,.95); color: white; }
.lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(20,7,25,.78); }
.lightbox img { max-width: 100%; max-height: calc(100dvh - 110px); object-fit: contain; border-radius: 8px; }
.lightbox-close { position: fixed; z-index: 2; top: max(14px, env(safe-area-inset-top)); right: 15px; display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; background: rgba(255,255,255,.1); color: white; }
.lightbox-close svg { width: 22px; height: 22px; }

.profile-dialog { width: min(calc(100% - 28px), 430px); max-height: calc(100dvh - 36px); padding: 0 22px 26px; overflow: auto; border: 0; border-radius: 24px; background: linear-gradient(180deg, #f5e8f8 0, #fff 240px); color: var(--ink); box-shadow: 0 28px 80px rgba(32,10,39,.35); }
.profile-dialog::backdrop { background: rgba(28,9,35,.72); backdrop-filter: blur(5px); }
.profile-close { position: sticky; z-index: 2; top: 12px; display: grid; width: 39px; height: 39px; margin: 12px 0 -50px auto; place-items: center; border: 1px solid rgba(107,44,136,.14); border-radius: 50%; background: rgba(255,255,255,.88); color: var(--purple); }
.profile-close svg { width: 20px; height: 20px; }
.profile-portrait { width: 136px; height: 136px; margin: 30px auto 16px; overflow: hidden; border: 5px solid white; border-radius: 50%; box-shadow: 0 12px 30px rgba(81,31,96,.18); }
.profile-portrait img { width: 100%; height: 100%; object-fit: cover; }
.profile-role { display: table; margin: 0 auto 8px; padding: 5px 10px; border-radius: 99px; background: var(--lilac); color: var(--purple); font-size: .7rem; font-weight: 800; }
.profile-dialog h2 { margin: 0; font-family: "Songti SC", serif; font-size: 1.55rem; text-align: center; }
.profile-hospital { margin: 7px 0 0; color: var(--muted); font-size: .85rem; text-align: center; }
.profile-divider { width: 36px; height: 3px; margin: 18px auto; border-radius: 2px; background: var(--gold); }
.profile-bio { margin: 0; color: #5d5261; font-size: .9rem; line-height: 1.8; text-align: justify; }

.event-index-view { min-height: 100dvh; background: linear-gradient(180deg, #fbf6fc 0, #fff 320px); }
.event-index-header { display: flex; align-items: center; gap: 14px; padding: max(20px, env(safe-area-inset-top)) 18px 17px; border-bottom: 1px solid var(--line); }
.event-index-header div { flex: 1; }
.event-index-header span { color: var(--magenta); font-size: .68rem; font-weight: 750; letter-spacing: .18em; }
.event-index-header h1 { margin: 4px 0 0; font-family: "Songti SC", "STSong", serif; font-size: 1.62rem; line-height: 1.2; }
.event-index-body { padding: 22px 16px max(34px, env(safe-area-inset-bottom)); }
.event-index-lead { margin: 0 2px 18px; color: var(--muted); font-size: .86rem; line-height: 1.65; }
.event-list { display: grid; gap: 14px; }
.event-list-card { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; color: var(--ink); background: white; box-shadow: 0 12px 30px rgba(63,27,76,.09); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.event-list-card:active { transform: scale(.985); box-shadow: 0 7px 20px rgba(63,27,76,.1); }
.event-list-card > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: left center; }
.event-list-copy { position: relative; display: block; padding: 18px 18px 19px; }
.event-list-meta { display: flex; align-items: center; gap: 8px; color: var(--magenta); font-size: .7rem; font-weight: 800; letter-spacing: .08em; }
.event-list-meta i { width: 14px; height: 1px; background: var(--gold); }
.event-list-copy h2 { margin: 10px 0 6px; font-family: "Songti SC", "STSong", serif; font-size: 1.18rem; line-height: 1.48; }
.event-list-copy p { margin: 0; color: var(--muted); font-size: .8rem; }
.event-list-arrow { position: absolute; right: 18px; bottom: 19px; display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: white; background: var(--purple); }
.event-list-arrow svg { width: 17px; height: 17px; transform: rotate(180deg); }
.event-coming { margin-top: 14px; padding: 18px; border: 1px dashed rgba(107,44,136,.22); border-radius: 16px; color: var(--muted); background: rgba(246,237,250,.72); text-align: center; font-size: .82rem; }

@media (min-width: 481px) {
  body { padding: 28px 0; }
  .app-shell { min-height: calc(100dvh - 56px); }
  .home-view, .sub-view { min-height: calc(100dvh - 56px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
