/* ============================================================
   模板 A · 年会 / 活动邀请函（竖屏 H5）
   颜色、文字都在 index.html 顶部的「配置区」改，这个文件一般不用动。
   ============================================================ */

:root {
  /* 这里是默认值，会被 index.html 配置区里的 colors 覆盖 */
  --main: #E8352B;  --main-rgb: 232, 53, 43;
  --deep: #B3121A;  --deep-rgb: 179, 18, 26;
  --gold: #FFC84A;  --gold-rgb: 255, 200, 74;
  --paper: #FFF7F0; --paper-rgb: 255, 247, 240;
  --ink: #3A0E0D;   --ink-rgb: 58, 14, 13;

  --vh: 100vh; /* 首屏高度，main.js 会按屏幕实际高度改写 */
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --num: "DIN Alternate", "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--deep);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
ul, ol { list-style: none; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
[hidden] { display: none !important; }

.page {
  position: relative;
  max-width: 430px;
  margin: 0 auto;
  overflow: hidden;
  background: var(--paper);
}
.backdrop { display: none; }

/* ============================================================
   第 1 屏：封面
   ============================================================ */
.hero {
  position: relative;
  display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-box-orient: vertical; -webkit-flex-direction: column; flex-direction: column;
  -webkit-box-align: center; -webkit-align-items: center; align-items: center;
  min-height: 100vh;
  min-height: var(--vh);
  padding: 14px 20px 46px;
  overflow: hidden;
  color: #fff;
  text-align: center;
  background: var(--main);
  background:
    radial-gradient(circle at 50% 31%, rgba(255, 236, 190, .20) 0, rgba(255, 236, 190, 0) 40%),
    radial-gradient(circle at 50% 31%, rgba(var(--gold-rgb), .34) 0, rgba(var(--gold-rgb), 0) 46%),
    linear-gradient(180deg, var(--main) 0%, var(--main) 50%, var(--deep) 100%);
}
.hero > * { position: relative; z-index: 2; }
.hero-bg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }

/* 放射光线（main.js 生成） */
.rays {
  position: absolute; left: 50%; top: 33%;
  width: 1200px; height: 1200px; margin: -600px 0 0 -600px;
  opacity: .1;
  -webkit-mask-image: radial-gradient(circle, #000 0, #000 22%, rgba(0, 0, 0, 0) 58%);
  mask-image: radial-gradient(circle, #000 0, #000 22%, rgba(0, 0, 0, 0) 58%);
  -webkit-animation: spin 120s linear infinite; animation: spin 120s linear infinite;
}
.rays svg { width: 100%; height: 100%; fill: #fff; }

.glow {
  position: absolute; left: 50%; top: 33%;
  width: 360px; height: 360px; margin: -180px 0 0 -180px; border-radius: 50%;
  border: 1px solid rgba(var(--gold-rgb), .35);
  box-shadow: 0 0 0 26px rgba(255, 255, 255, .035), 0 0 0 60px rgba(255, 255, 255, .03);
}

/* 两侧彩带 + 彩纸：都放在标题区（公司名以下、票根以上），不会压到别的内容 */
.hero-fx { position: absolute; left: -20px; right: -20px; top: 0; bottom: 0; z-index: 0; pointer-events: none; }
.streamer { position: absolute; width: auto; height: 38%; min-height: 110px; }
.streamer path { stroke: var(--gold); }
.streamer-l { left: -12px; top: 0; }
.streamer-r { right: -12px; top: 6%; }
.streamer-r path { stroke: #FFE9C7; }

/* 彩纸（main.js 生成，位置写在 main.js 里） */
.confetti { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.cf {
  position: absolute; display: block; width: 12px; height: 12px;
  -webkit-transform: rotate(var(--r, 0deg)); transform: rotate(var(--r, 0deg));
  -webkit-animation: float var(--d, 5s) ease-in-out var(--dl, 0s) infinite alternate;
  animation: float var(--d, 5s) ease-in-out var(--dl, 0s) infinite alternate;
}
.cf svg { width: 100%; height: 100%; overflow: visible; }

/* 顶部：公司名 + 示例标签 */
.hero-top {
  display: -webkit-flex; display: flex;
  -webkit-align-items: center; align-items: center;
  -webkit-justify-content: space-between; justify-content: space-between;
  width: 100%; height: 40px;
}
.brand { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; min-width: 0; margin-right: 12px; font-size: 15px; letter-spacing: .06em; }
.brand b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-mark {
  display: -webkit-flex; display: flex; -webkit-flex: none; flex: none;
  -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center;
  width: 30px; height: 30px; margin-right: 9px; border-radius: 9px; overflow: hidden;
  background: var(--gold); color: var(--deep);
  font-size: 16px; font-weight: 800; letter-spacing: 0;
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.demo-tag {
  -webkit-flex: none; flex: none; margin-left: auto;
  padding: 3px 11px 3px 12px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .55);
  font-size: 12px; font-weight: 600; letter-spacing: .12em; line-height: 18px;
}

/* 中间：大数字 + 主标题 */
.hero-main {
  -webkit-box-flex: 1; -webkit-flex: 1 0 auto; flex: 1 0 auto;
  display: -webkit-flex; display: flex;
  -webkit-flex-direction: column; flex-direction: column;
  -webkit-align-items: center; align-items: center;
  -webkit-justify-content: center; justify-content: center;
  position: relative;
  width: 100%; padding: 14px 0 20px;
}
.hero-en, .hero-title, .hero-slogan { position: relative; z-index: 1; }
.hero-en {
  display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center;
  font-size: 13px; font-weight: 600; letter-spacing: .44em; color: var(--gold);
}
.hero-en span { margin: 0 12px 0 calc(12px + .44em); }
.hero-en i { display: block; width: 26px; height: 1px; background: var(--gold); opacity: .7; }
.hero-year-wrap { position: relative; z-index: 1; margin-top: 2px; }
.spark { position: absolute; fill: #fff; -webkit-animation: twinkle 2.6s ease-in-out infinite; animation: twinkle 2.6s ease-in-out infinite; }
.spark-1 { left: -10px; top: 4px; width: 20px; height: 20px; }
.spark-2 { right: -14px; top: -8px; width: 26px; height: 26px; fill: #FFF3D0; -webkit-animation-delay: .9s; animation-delay: .9s; }
.spark-3 { right: -4px; bottom: 16px; width: 12px; height: 12px; -webkit-animation-delay: 1.7s; animation-delay: 1.7s; }
.hero-year {
  font-family: var(--num);
  font-size: 150px; font-size: 38.6vw;
  font-weight: 700; line-height: .98; letter-spacing: -.01em;
  color: var(--gold);
  background: linear-gradient(180deg, #FFF6D2 6%, var(--gold) 52%, #FF9D2E 96%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-filter: drop-shadow(0 5px 0 rgba(var(--deep-rgb), .55)) drop-shadow(0 16px 22px rgba(80, 0, 0, .28));
  filter: drop-shadow(0 5px 0 rgba(var(--deep-rgb), .55)) drop-shadow(0 16px 22px rgba(80, 0, 0, .28));
}
.hero-title {
  margin-top: 2px; padding-left: .12em;
  font-size: 60px; font-size: 15.4vw;
  font-weight: 800; line-height: 1.16; letter-spacing: .12em;
  color: #FFF8EC;
  -webkit-text-stroke: 1px #FFF8EC;
  text-shadow: 0 4px 0 rgba(var(--deep-rgb), .5), 0 12px 26px rgba(80, 0, 0, .3);
}
/* 主标题超过 4 个字时自动缩小（main.js 按字数加 len-5 / len-6 / len-7） */
.hero-title.len-5 { font-size: 12.4vw; }
.hero-title.len-6 { font-size: 10.4vw; }
.hero-title.len-7 { font-size: 8.8vw; letter-spacing: .06em; padding-left: .06em; }
.hero-slogan {
  display: -webkit-inline-flex; display: inline-flex; -webkit-align-items: center; align-items: center;
  height: 38px; margin-top: 18px; padding: 0 16px; border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .32);
  font-size: 15px; font-weight: 600; letter-spacing: .14em; color: #fff;
}
.hero-slogan span { margin: 0 9px 0 calc(9px + .14em); }
.hero-slogan svg { width: 11px; height: 11px; fill: var(--gold); }

/* 票根：时间地点 + 倒计时 */
.ticket {
  width: 100%;
  border-radius: 20px;
  color: var(--ink); text-align: left;
  background: #fff;
  background:
    radial-gradient(circle at 0 calc(100% - 66px), rgba(255, 255, 255, 0) 9px, #fff 9.5px) left top / 51% 100% no-repeat,
    radial-gradient(circle at 100% calc(100% - 66px), rgba(255, 255, 255, 0) 9px, #fff 9.5px) right top / 51% 100% no-repeat;
  -webkit-filter: drop-shadow(0 14px 22px rgba(90, 0, 0, .3));
  filter: drop-shadow(0 14px 22px rgba(90, 0, 0, .3));
}
.ticket-main { display: -webkit-flex; display: flex; padding: 16px 20px 14px; }
.ticket-col { -webkit-flex: 1 1 0; flex: 1 1 0; min-width: 0; }
.ticket-col-r { padding-left: 18px; border-left: 1px solid rgba(var(--main-rgb), .16); }
.ticket-label { font-size: 12px; font-weight: 600; letter-spacing: .3em; color: var(--main); }
.ticket-date { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; margin-top: 1px; }
.ticket-date b { font-family: var(--num); font-size: 34px; font-weight: 700; line-height: 40px; letter-spacing: .01em; }
.ticket-date span {
  margin-left: 8px; padding: 0 7px; border-radius: 6px;
  background: var(--main); color: #fff;
  font-size: 12px; font-weight: 600; line-height: 20px;
}
.ticket-venue { margin-top: 1px; font-size: 22px; font-weight: 700; line-height: 40px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 场地名超过 6 个字：缩小并允许两行 */
.ticket-venue.is-long {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  height: 40px; font-size: 16px; line-height: 20px; white-space: normal;
}
.ticket-sub { font-size: 13px; line-height: 20px; color: rgba(var(--ink-rgb), .66); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ticket-stub {
  display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center;
  -webkit-justify-content: space-between; justify-content: space-between;
  height: 66px; margin: 0 20px;
  border-top: 2px dashed rgba(var(--main-rgb), .28);
}
.cd-label { font-size: 13px; font-weight: 600; color: rgba(var(--ink-rgb), .8); white-space: nowrap; }
.cd { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; }
.cd-cell { display: -webkit-inline-flex; display: inline-flex; -webkit-align-items: baseline; align-items: baseline; margin-left: 5px; }
.cd-cell b {
  display: block; min-width: 34px; padding: 0 5px; border-radius: 9px;
  background: var(--main); color: #fff;
  font-family: var(--num); font-size: 20px; font-weight: 700; line-height: 34px; text-align: center;
  font-variant-numeric: tabular-nums;
}
.cd-cell i { margin-left: 3px; font-size: 12px; font-style: normal; color: rgba(var(--ink-rgb), .62); }
.cd-over { font-size: 14px; font-weight: 600; color: var(--main); }

.scroll-hint {
  display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column;
  -webkit-align-items: center; align-items: center;
  margin-top: 16px;
  font-size: 12px; letter-spacing: .24em; color: rgba(255, 255, 255, .8);
}
.scroll-hint span { padding-left: .24em; }
.scroll-hint svg { width: 18px; height: 18px; margin-top: 1px; stroke: currentColor; -webkit-animation: bob 1.6s ease-in-out infinite; animation: bob 1.6s ease-in-out infinite; }

/* 首屏入场：从下往上依次出现 */
.hero-top, .hero-en, .hero-year-wrap, .hero-title, .hero-slogan, .ticket, .scroll-hint {
  -webkit-animation: rise .9s cubic-bezier(.2, .8, .2, 1) both; animation: rise .9s cubic-bezier(.2, .8, .2, 1) both;
}
.hero-en { -webkit-animation-delay: .1s; animation-delay: .1s; }
.hero-year-wrap { -webkit-animation-name: pop; animation-name: pop; -webkit-animation-delay: .18s; animation-delay: .18s; }
.hero-title { -webkit-animation-delay: .36s; animation-delay: .36s; }
.hero-slogan { -webkit-animation-delay: .5s; animation-delay: .5s; }
.ticket { -webkit-animation-delay: .66s; animation-delay: .66s; }
.scroll-hint { -webkit-animation-delay: 1s; animation-delay: 1s; }

/* ============================================================
   中间几屏：浅色底
   ============================================================ */
.sheet {
  position: relative; z-index: 3;
  margin-top: -26px; padding: 6px 20px 52px;
  border-radius: 26px;
  background: var(--paper);
}
.sec { padding-top: 46px; }
.sec-head { margin-bottom: 20px; text-align: center; }
.sec-head-sub { margin-top: 40px; }
.sec-en { font-size: 11px; font-weight: 600; letter-spacing: .4em; padding-left: .4em; color: var(--main); opacity: .85; }
.sec-title {
  display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center;
  margin-top: 2px; padding-left: .1em;
  font-size: 27px; font-weight: 800; line-height: 1.35; letter-spacing: .1em;
}
.sec-title::before, .sec-title::after {
  content: ""; -webkit-flex: none; flex: none; width: 8px; height: 8px; margin: 0 14px; border-radius: 2px;
  background: var(--gold);
  -webkit-transform: rotate(45deg); transform: rotate(45deg);
}
.sec-title::after { margin-left: calc(14px - .1em); }

.card, .letter, .info, .dress, .notes {
  background: #fff; border-radius: 20px;
  box-shadow: 0 10px 28px rgba(var(--main-rgb), .09), 0 0 0 1px rgba(var(--main-rgb), .06);
}

/* 邀请语 */
.letter { position: relative; padding: 30px 24px 26px; }
.letter::before {
  content: ""; position: absolute; left: 8px; right: 8px; top: 8px; bottom: 8px;
  border: 1px solid rgba(var(--gold-rgb), .9); border-radius: 14px; pointer-events: none;
}
.seal {
  position: absolute; right: 22px; top: -20px;
  display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--main); color: #FFF4E0;
  font-size: 26px; font-weight: 800;
  box-shadow: 0 8px 16px rgba(var(--main-rgb), .34);
  -webkit-transform: rotate(-10deg); transform: rotate(-10deg);
}
.seal::before {
  content: ""; position: absolute; left: 5px; right: 5px; top: 5px; bottom: 5px; border-radius: 50%;
  border: 1.5px dashed rgba(255, 255, 255, .55);
}
.letter-to { font-size: 18px; font-weight: 700; }
.letter-body p {
  margin-top: 10px;
  font-size: 16px; line-height: 1.95; text-align: justify; text-indent: 2em;
  color: rgba(var(--ink-rgb), .9);
}
.letter-from { margin-top: 20px; text-align: right; }
.letter-from b { display: block; font-size: 15px; font-weight: 700; }
.letter-from span { font-size: 13px; color: rgba(var(--ink-rgb), .6); }

/* 时间与地点 */
.info { padding: 6px 20px; }
.info li { display: -webkit-flex; display: flex; -webkit-align-items: flex-start; align-items: flex-start; padding: 16px 0; }
.info li + li { border-top: 1px dashed rgba(var(--main-rgb), .2); }
.info-ic {
  -webkit-flex: none; flex: none;
  display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center;
  width: 42px; height: 42px; margin-right: 14px; border-radius: 13px;
  background: rgba(var(--main-rgb), .09); color: var(--main);
}
.info-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.info-tx { -webkit-flex: 1; flex: 1; min-width: 0; }
.info-k { font-size: 12px; letter-spacing: .1em; color: rgba(var(--ink-rgb), .56); }
.info-v { font-size: 17px; font-weight: 700; line-height: 1.45; }
.info-s { margin-top: 2px; font-size: 13.5px; line-height: 1.6; color: rgba(var(--ink-rgb), .66); }

/* 活动流程 */
.agenda li { position: relative; display: -webkit-flex; display: flex; -webkit-align-items: flex-start; align-items: flex-start; padding-bottom: 12px; }
.agenda li:last-child { padding-bottom: 0; }
.agenda li::before {
  content: ""; position: absolute; left: 66px; top: 30px; bottom: -22px; width: 2px;
  background: rgba(var(--main-rgb), .16);
}
.agenda li:last-child::before { display: none; }
.agenda-time {
  -webkit-flex: none; flex: none; width: 52px; padding-top: 15px;
  font-family: var(--num); font-size: 19px; font-weight: 700; line-height: 24px; color: var(--main);
  font-variant-numeric: tabular-nums;
}
.agenda-dot {
  -webkit-flex: none; flex: none; position: relative; z-index: 1;
  width: 14px; height: 14px; margin: 20px 16px 0 8px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px rgba(var(--gold-rgb), .7);
}
.agenda-body {
  -webkit-flex: 1; flex: 1; min-width: 0; padding: 13px 16px 14px; border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(var(--main-rgb), .07), 0 0 0 1px rgba(var(--main-rgb), .06);
}
.agenda-body b { display: block; font-size: 17px; font-weight: 700; line-height: 1.5; }
.agenda-body span { display: block; font-size: 14px; line-height: 1.6; color: rgba(var(--ink-rgb), .66); }

/* 着装 */
.dress { padding: 24px 20px 22px; text-align: center; }
.dress-text { font-size: 16px; line-height: 1.8; }
.swatches { display: -webkit-flex; display: flex; -webkit-justify-content: center; justify-content: center; margin-top: 18px; }
.swatches li { width: 84px; font-size: 13px; color: rgba(var(--ink-rgb), .7); }
.swatches i {
  display: block; width: 48px; height: 48px; margin: 0 auto 8px; border-radius: 50%;
  border: 3px solid #fff; box-shadow: 0 6px 14px rgba(var(--ink-rgb), .18), 0 0 0 1px rgba(var(--ink-rgb), .08);
}

/* 须知 */
.notes { padding: 6px 20px; }
.notes li { display: -webkit-flex; display: flex; -webkit-align-items: flex-start; align-items: flex-start; padding: 15px 0; font-size: 16px; line-height: 1.6; }
.notes li + li { border-top: 1px dashed rgba(var(--main-rgb), .2); }
.notes b {
  -webkit-flex: none; flex: none; width: 24px; height: 24px; margin: 1px 12px 0 0; border-radius: 50%;
  background: var(--main); color: #fff;
  font-family: var(--num); font-size: 14px; font-weight: 700; line-height: 24px; text-align: center;
}

/* ============================================================
   结尾：请回复主办方
   ============================================================ */
.rsvp {
  position: relative; z-index: 1;
  margin-top: -26px; padding: 84px 24px 30px;
  padding-bottom: calc(30px + env(safe-area-inset-bottom));
  overflow: hidden; text-align: center; color: #fff;
  background: var(--main);
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, .22) 0, rgba(255, 255, 255, 0) 52%),
    linear-gradient(180deg, var(--main) 0%, var(--deep) 100%);
}
.rsvp > * { position: relative; z-index: 2; }
.rsvp-bg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.rays-b { top: 40%; }
.rsvp-year {
  font-family: var(--num); font-size: 22px; font-weight: 700; letter-spacing: .5em; padding-left: .5em; line-height: 1.2;
  color: var(--gold);
}
.rsvp-title {
  margin-top: 6px; padding-left: .1em;
  font-size: 34px; font-weight: 800; line-height: 1.3; letter-spacing: .1em; color: #FFF8EC;
  text-shadow: 0 3px 0 rgba(var(--deep-rgb), .5);
}
.rsvp-text { max-width: 300px; margin: 12px auto 0; font-size: 15.5px; line-height: 1.8; color: rgba(255, 255, 255, .92); }
.rsvp-btn {
  display: -webkit-inline-flex; display: inline-flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center;
  min-width: 232px; height: 56px; margin-top: 26px; padding: 0 30px; border-radius: 999px;
  background: var(--gold); color: var(--ink);
  font-size: 18px; font-weight: 800; letter-spacing: .12em;
  box-shadow: 0 6px 0 rgba(0, 0, 0, .16), 0 18px 30px rgba(60, 0, 0, .28);
  -webkit-transition: -webkit-transform .15s ease, box-shadow .15s ease; transition: transform .15s ease, box-shadow .15s ease;
}
.rsvp-btn span { padding-left: .12em; }
.rsvp-btn:active { -webkit-transform: translateY(4px); transform: translateY(4px); box-shadow: 0 2px 0 rgba(0, 0, 0, .16), 0 8px 16px rgba(60, 0, 0, .28); }
.rsvp-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.rsvp-contact {
  display: table; margin: 22px auto 0; padding: 9px 16px; border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, .6);
  font-size: 13px; line-height: 1.6; color: rgba(255, 255, 255, .92);
}
.foot-note { margin-top: 40px; font-size: 12px; letter-spacing: .04em; color: rgba(255, 255, 255, .66); }

/* 轻提示 */
.toast {
  position: fixed; left: 50%; bottom: 14%; z-index: 50;
  max-width: 300px; width: -webkit-max-content; width: max-content; padding: 11px 18px; border-radius: 14px;
  background: rgba(30, 12, 10, .92); color: #fff;
  font-size: 14px; line-height: 1.5; text-align: center;
  opacity: 0; pointer-events: none;
  -webkit-transform: translate(-50%, 10px); transform: translate(-50%, 10px);
  -webkit-transition: opacity .25s ease, -webkit-transform .25s ease; transition: opacity .25s ease, transform .25s ease;
}
.toast.show { opacity: 1; -webkit-transform: translate(-50%, 0); transform: translate(-50%, 0); }

/* ============================================================
   滚动渐显（main.js 给进入屏幕的元素加 .in）
   ============================================================ */
.js .reveal {
  opacity: 0;
  -webkit-transform: translateY(22px); transform: translateY(22px);
  -webkit-transition: opacity .7s ease, -webkit-transform .7s cubic-bezier(.2, .8, .2, 1);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1);
}
.js .reveal.in { opacity: 1; -webkit-transform: none; transform: none; }

@-webkit-keyframes rise { from { opacity: 0; -webkit-transform: translateY(22px); } to { opacity: 1; -webkit-transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@-webkit-keyframes pop { 0% { opacity: 0; -webkit-transform: scale(.82); } 70% { opacity: 1; -webkit-transform: scale(1.04); } 100% { opacity: 1; -webkit-transform: none; } }
@keyframes pop { 0% { opacity: 0; transform: scale(.82); } 70% { opacity: 1; transform: scale(1.04); } 100% { opacity: 1; transform: none; } }
@-webkit-keyframes spin { to { -webkit-transform: rotate(360deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@-webkit-keyframes bob { 0%, 100% { -webkit-transform: translateY(0); } 50% { -webkit-transform: translateY(5px); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@-webkit-keyframes twinkle { 0%, 100% { opacity: 1; -webkit-transform: scale(1); } 50% { opacity: .35; -webkit-transform: scale(.7); } }
@keyframes twinkle { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
@-webkit-keyframes float {
  from { -webkit-transform: translate(0, 0) rotate(var(--r, 0deg)); }
  to { -webkit-transform: translate(var(--dx, 4px), 12px) rotate(calc(var(--r, 0deg) + 18deg)); }
}
@keyframes float {
  from { transform: translate(0, 0) rotate(var(--r, 0deg)); }
  to { transform: translate(var(--dx, 4px), 12px) rotate(calc(var(--r, 0deg) + 18deg)); }
}

/* 用户在系统里开了「减弱动态效果」，或者截图模式：不做动画，直接显示 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { -webkit-animation: none !important; animation: none !important; -webkit-transition: none !important; transition: none !important; }
  .js .reveal { opacity: 1; -webkit-transform: none; transform: none; }
}
.shot *, .shot *::before, .shot *::after { -webkit-animation: none !important; animation: none !important; -webkit-transition: none !important; transition: none !important; }
.shot .reveal { opacity: 1 !important; -webkit-transform: none !important; transform: none !important; }

/* ============================================================
   屏幕尺寸适配
   ============================================================ */
/* 小屏手机（宽度 ≤ 360） */
@media (max-width: 360px) {
  .hero { padding-left: 16px; padding-right: 16px; }
  .ticket-main { padding-left: 16px; padding-right: 16px; }
  .ticket-stub { margin: 0 14px; }
  .ticket-col-r { padding-left: 14px; }
  .ticket-date b { font-size: 30px; }
  .ticket-venue { font-size: 19px; }
  .cd-label { font-size: 12px; }
  .cd-cell { margin-left: 3px; }
  .cd-cell b { min-width: 30px; padding: 0 3px; font-size: 18px; line-height: 32px; }
  .sheet { padding-left: 16px; padding-right: 16px; }
}
/* 屏幕比较矮：收紧首屏间距 */
@media (max-height: 700px) {
  .hero-main { padding: 6px 0 14px; }
  .hero-year { font-size: 34vw; }
  .hero-title { font-size: 14vw; }
  .hero-slogan { margin-top: 12px; }
  .scroll-hint { margin-top: 10px; }
}
/* 宽度超过手机：页面保持手机宽，居中显示 */
@media (min-width: 431px) {
  .hero-year { font-size: 166px; }
  .hero-title { font-size: 66px; }
  .hero-title.len-5 { font-size: 53px; }
  .hero-title.len-6 { font-size: 44px; }
  .hero-title.len-7 { font-size: 38px; }
}
@media (min-width: 700px) {
  body {
    padding: 36px 0;
    background:
      radial-gradient(circle at 50% 0, rgba(255, 255, 255, .16) 0, rgba(255, 255, 255, 0) 60%),
      linear-gradient(160deg, var(--main) 0%, var(--deep) 70%);
    background-attachment: fixed;
    min-height: 100vh;
  }
  .page { border-radius: 34px; box-shadow: 0 40px 90px rgba(40, 0, 0, .45), 0 0 0 10px rgba(255, 255, 255, .08); }
  .backdrop { display: block; }
  .backdrop-year {
    position: fixed; left: 50%; top: 50%; margin: -150px 0 0 -700px; width: 440px; text-align: right;
    font-family: var(--num); font-size: 190px; font-weight: 700; line-height: 1; letter-spacing: -.02em;
    color: rgba(255, 255, 255, .1);
  }
  .backdrop-tip {
    position: fixed; left: 50%; top: 50%; margin: 60px 0 0 -700px; width: 440px; text-align: right;
    font-size: 15px; letter-spacing: .3em; color: rgba(255, 255, 255, .5);
  }
}
@media (min-width: 700px) and (max-width: 1100px) {
  .backdrop { display: none; }
}
