/* ============================================================
   新中式 · 中国红 婚礼邀请函 H5
   ============================================================ */

:root {
  --red: #8e1f2a;
  --red-deep: #641019;
  --red-bright: #b0232e;
  --gold: #c9a15f;
  --gold-light: #e3c98f;
  --ink: #33231a;
  --paper: #f7f1e3;
  --paper-deep: #efe5cf;
  --white: #fffdf7;
  --font-kai: "STKaiti", "KaiTi", "Kaiti SC", "FangSong", "STSong", "SimSun", serif;
  --font-song: "STSong", "SimSun", "Songti SC", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}

body {
  font-family: var(--font-kai);
  background: #2a080d radial-gradient(1200px 600px at 50% -100px, #4a1019 0%, #2a080d 60%);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { user-select: none; -webkit-user-drag: none; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; }

/* 页面容器（手机竖屏观感，桌面居中） */
#app {
  position: relative;
  max-width: 500px;
  margin: 0 auto;
  background: var(--paper);
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.6);
  min-height: 100vh;
}

/* ---------- 通用 section ---------- */
.sec {
  position: relative;
  min-height: 100vh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 28px;
  overflow: hidden;
}
@supports (height: 100svh) {
  .sec { min-height: 100svh; }
}

.sec-title {
  font-size: 30px;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 26px;
  text-align: center;
}
.sec-title::after {
  content: "";
  display: block;
  width: 52px;
  height: 2px;
  margin: 14px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.sec-title.light { color: var(--gold-light); }

/* ---------- 加载页 ---------- */
#loader {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: linear-gradient(160deg, var(--red-deep), var(--red));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
#loader.hide { opacity: 0; visibility: hidden; }
.loader-xi {
  width: 92px; height: 92px;
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; color: var(--gold-light);
  border: 1.5px solid var(--gold-light);
  border-radius: 50%;
  box-shadow: 0 0 0 7px rgba(227, 201, 143, 0.18), inset 0 0 22px rgba(227, 201, 143, 0.25);
  animation: breathe 2.2s ease-in-out infinite;
}
.loader-tip { color: rgba(255, 250, 240, 0.85); letter-spacing: 0.2em; font-size: 15px; }
.loader-bar { width: 168px; height: 2px; background: rgba(255, 255, 255, 0.18); border-radius: 2px; overflow: hidden; }
.loader-bar i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  animation: loadbar 1.5s ease forwards;
}
@keyframes loadbar { 0% { width: 0; } 100% { width: 100%; } }

/* ---------- 音乐按钮 ---------- */
#musicBtn {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  right: 16px;
  z-index: 150;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(227, 201, 143, 0.85);
  background: linear-gradient(150deg, rgba(176, 35, 46, 0.92), rgba(100, 16, 25, 0.94));
  color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease;
}
#musicBtn:active { transform: scale(0.92); }
#musicBtn.off { opacity: 0.78; }
#musicBtn.off svg { opacity: 0.55; }
#musicBtn.on svg { animation: noteBeat 1.6s ease-in-out infinite; }
#musicBtn.on::after {
  content: "";
  position: absolute; inset: -5px;
  border-radius: 50%;
  border: 1px dashed rgba(227, 201, 143, 0.65);
  animation: spin 9s linear infinite;
}
@keyframes noteBeat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.14); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 花瓣 ---------- */
#petals {
  position: fixed; inset: 0;
  z-index: 140;
  pointer-events: none;
  overflow: hidden;
}
.petal {
  position: absolute;
  top: -8vh;
  background: linear-gradient(135deg, #e0525f 0%, #b0232e 70%);
  border-radius: 80% 0 80% 0;
  opacity: 0.5;
  animation: fall linear infinite;
  will-change: transform;
}
.petal.gold { background: linear-gradient(135deg, #ecd7a8 0%, #c9a15f 80%); opacity: 0.42; }
.petal.deep { background: linear-gradient(135deg, #c13a44 0%, #7c1420 80%); opacity: 0.55; }
@keyframes fall {
  0%   { transform: translate3d(0, -8vh, 0) rotate(0deg); }
  100% { transform: translate3d(var(--sway, 40px), 112vh, 0) rotate(560deg); }
}

/* ---------- ① 封面 ---------- */
.sec-cover {
  background: url("../images/photo1.jpg") center 24% / cover no-repeat;
  color: #fff;
  justify-content: flex-end;
  text-align: center;
  padding-bottom: 88px;
}
.sec-cover::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(42, 8, 13, 0.34) 0%,
    rgba(42, 8, 13, 0.08) 34%,
    rgba(42, 8, 13, 0.3) 64%,
    rgba(42, 8, 13, 0.94) 100%);
}
.cover-content { position: relative; z-index: 2; }

.cover-topline {
  display: flex; align-items: center; justify-content: center;
  gap: 14px;
  font-size: 15px;
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  color: var(--gold-light);
  margin-bottom: 22px;
}
.cover-topline i {
  display: inline-block;
  width: 46px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-light));
}
.cover-topline i:last-child { transform: scaleX(-1); }

.cover-badge {
  width: 92px; height: 92px;
  margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; color: var(--gold-light);
  border: 1.5px solid var(--gold-light);
  border-radius: 50%;
  background: rgba(100, 16, 25, 0.35);
  backdrop-filter: blur(3px);
  box-shadow: 0 0 0 7px rgba(227, 201, 143, 0.2), inset 0 0 24px rgba(227, 201, 143, 0.28);
  animation: breathe 3.2s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 7px rgba(227, 201, 143, 0.2), inset 0 0 24px rgba(227, 201, 143, 0.28); }
  50% { transform: scale(1.05); box-shadow: 0 0 0 12px rgba(227, 201, 143, 0.12), inset 0 0 30px rgba(227, 201, 143, 0.4); }
}

.cover-title {
  font-size: clamp(40px, 11.5vw, 56px);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-indent: 0.14em;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.45);
  margin-bottom: 16px;
}

.cover-names {
  display: flex; align-items: center; justify-content: center;
  gap: 18px;
  font-size: 26px;
  letter-spacing: 0.35em;
  text-indent: 0.35em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  margin-bottom: 20px;
}
.cover-names .amp {
  font-family: Georgia, serif;
  font-size: 20px;
  font-style: normal;
  color: var(--gold-light);
  letter-spacing: 0;
  text-indent: 0;
}

.cover-date {
  display: flex; align-items: center; justify-content: center;
  gap: 12px;
  font-size: 14px;
  letter-spacing: 0.22em;
  color: rgba(255, 253, 247, 0.95);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.65);
}
.cover-date i {
  width: 5px; height: 5px;
  background: var(--gold-light);
  transform: rotate(45deg);
}

.scroll-hint {
  position: absolute;
  left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom) + 22px);
  z-index: 2;
  display: flex; flex-direction: column; align-items: center;
  gap: 8px;
  color: rgba(255, 253, 247, 0.9);
  font-size: 13px;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}
.hint-line {
  width: 1px; height: 26px;
  background: linear-gradient(180deg, transparent, var(--gold-light));
  position: relative;
  overflow: hidden;
}
.hint-line::after {
  content: "";
  position: absolute; left: 0; top: -8px;
  width: 3px; height: 8px;
  border-radius: 2px;
  background: var(--gold-light);
  transform: translateX(-1px);
  animation: drop 1.6s ease-in-out infinite;
}
@keyframes drop { 0% { top: -8px; opacity: 0; } 30% { opacity: 1; } 100% { top: 26px; opacity: 0; } }

/* ---------- ② 诚邀 ---------- */
.sec-invite { background: var(--paper); }
.invite-card {
  position: relative;
  width: 100%;
  background: var(--white);
  border: 1px solid var(--gold);
  box-shadow: inset 0 0 0 6px var(--white), inset 0 0 0 7px rgba(201, 161, 95, 0.55),
              0 16px 44px rgba(100, 16, 25, 0.14);
  padding: 46px 26px 40px;
  text-align: center;
}
/* 角花 */
.invite-card::before,
.invite-card::after {
  content: "";
  position: absolute;
  width: 46px; height: 46px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60'%3E%3Cpath d='M8 52 L8 20 Q8 8 20 8 L52 8' fill='none' stroke='%23c9a15f' stroke-width='2'/%3E%3Cpath d='M16 44 L16 26 Q16 16 26 16 L44 16' fill='none' stroke='%23c9a15f' stroke-width='1' opacity='.65'/%3E%3Ccircle cx='21' cy='21' r='2.6' fill='%23c9a15f'/%3E%3Cpath d='M34 14 c4 2 6 5 6 9 c0 4 -3 7 -7 7 c-2 0 -3 -1 -3 -2 c0 -1 1 -2 2 -2 c2 0 3 1 3 2' fill='none' stroke='%23c9a15f' stroke-width='1.2' opacity='.8'/%3E%3C/svg%3E") no-repeat center / contain;
}
.invite-card::before { top: 10px; left: 10px; }
.invite-card::after { bottom: 10px; right: 10px; transform: rotate(180deg); }

.invite-seal {
  width: 64px; height: 64px;
  margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 34px;
  color: #fff;
  background: linear-gradient(150deg, var(--red-bright), var(--red-deep));
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(142, 31, 42, 0.35);
  transform: rotate(-4deg);
}

.invite-line { color: #7a6a52; letter-spacing: 0.3em; text-indent: 0.3em; font-size: 15px; margin: 14px 0; }
.invite-date {
  font-size: 23px;
  color: var(--red);
  letter-spacing: 0.06em;
  font-weight: 700;
}
.invite-date span { font-size: 14px; font-weight: 400; letter-spacing: 0.1em; }
.invite-lunar { color: #8a7a5e; font-size: 14px; letter-spacing: 0.18em; margin-top: 6px; }
.invite-names {
  display: flex; align-items: center; justify-content: center;
  gap: 12px;
  font-size: 25px;
  color: var(--ink);
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  font-weight: 700;
}
.invite-names em { font-family: Georgia, serif; color: var(--gold); font-style: normal; font-size: 18px; letter-spacing: 0; text-indent: 0; }
.invite-foot {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed rgba(201, 161, 95, 0.6);
  color: var(--gold);
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  font-size: 15px;
}

/* ---------- ③ 倒计时 ---------- */
.sec-count {
  background:
    radial-gradient(420px 260px at 85% -8%, rgba(227, 201, 143, 0.16), transparent 70%),
    radial-gradient(520px 320px at 8% 108%, rgba(0, 0, 0, 0.22), transparent 70%),
    linear-gradient(160deg, var(--red) 0%, var(--red-deep) 100%);
  color: var(--paper);
}
.sec-count::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(rgba(227, 201, 143, 0.12) 1px, transparent 1.4px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent);
}
.count-inner { position: relative; z-index: 2; text-align: center; }
.count-sub { letter-spacing: 0.3em; text-indent: 0.3em; color: rgba(255, 253, 247, 0.8); font-size: 14px; margin-bottom: 26px; }
.count-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 30px;
}
.count-item {
  min-width: 70px;
  padding: 16px 6px 12px;
  background: rgba(255, 253, 247, 0.07);
  border: 1px solid rgba(227, 201, 143, 0.45);
  border-radius: 14px;
  backdrop-filter: blur(2px);
}
.count-item b {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 700;
  color: var(--gold-light);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.count-item span { font-size: 13px; color: rgba(255, 253, 247, 0.85); letter-spacing: 0.3em; }
.count-date { color: rgba(255, 253, 247, 0.78); letter-spacing: 0.16em; font-size: 13px; margin-top: 4px; }
.count-venue {
  margin-top: 14px;
  color: rgba(255, 253, 247, 0.92);
  font-size: 15px;
  letter-spacing: 0.12em;
}
.count-venue::before {
  content: "囍";
  display: block;
  margin: 0 auto 8px;
  width: 30px; height: 30px;
  line-height: 30px;
  font-size: 16px;
  color: var(--gold-light);
  border: 1px solid rgba(227, 201, 143, 0.6);
  border-radius: 50%;
}

/* ---------- ④ 时间地点 ---------- */
.sec-info { background: var(--paper); gap: 18px; }
.info-card {
  width: 100%;
  background: var(--white);
  border: 1px solid rgba(201, 161, 95, 0.55);
  border-top: 3px solid var(--red);
  border-radius: 12px;
  padding: 22px 22px 20px;
  text-align: center;
  position: relative;
  box-shadow: 0 10px 30px rgba(100, 16, 25, 0.1);
}
.info-icon {
  width: 46px; height: 46px;
  margin: 0 auto 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--red);
  background: rgba(142, 31, 42, 0.08);
  border-radius: 50%;
}
.info-card h3 { color: var(--red); font-size: 18px; letter-spacing: 0.24em; text-indent: 0.24em; margin-bottom: 10px; }
.info-main { font-size: 16px; color: var(--ink); letter-spacing: 0.04em; font-weight: 600; }
.info-sub { font-size: 14px; color: #6d5a3f; letter-spacing: 0.08em; margin-top: 6px; }
.info-time {
  display: inline-flex; align-items: baseline; gap: 10px;
  margin: 12px 0 4px;
  padding: 8px 18px;
  background: linear-gradient(150deg, var(--red), var(--red-deep));
  border-radius: 999px;
  color: #fff;
}
.info-time b { font-family: Georgia, serif; font-size: 26px; color: var(--gold-light); }
.info-time span { font-size: 13px; letter-spacing: 0.3em; }
.info-btns { display: flex; gap: 12px; justify-content: center; margin-top: 16px; }
.btn-nav {
  flex: 1; max-width: 150px;
  padding: 11px 0;
  border-radius: 999px;
  background: linear-gradient(150deg, var(--red-bright), var(--red-deep));
  color: #fff;
  font-size: 15px;
  letter-spacing: 0.2em;
  text-indent: 0.2em;
  text-align: center;
  box-shadow: 0 6px 16px rgba(142, 31, 42, 0.3);
  transition: transform 0.15s ease;
}
.btn-nav:active { transform: scale(0.96); }
.btn-nav.ghost {
  background: rgba(201, 161, 95, 0.12);
  border: 1px solid #b08d4f;
  color: var(--red-deep);
  box-shadow: none;
}

/* ---------- ⑤ 相册 ---------- */
.sec-gallery { background: var(--paper); padding-left: 0; padding-right: 0; }
.gallery {
  display: flex;
  gap: 16px;
  width: 100%;
  padding: 4px 0 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.gallery::-webkit-scrollbar { display: none; }
.slide {
  flex: 0 0 80%;
  scroll-snap-align: center;
  background: var(--white);
  border: 1px solid var(--gold-light);
  border-radius: 14px;
  padding: 8px 8px 12px;
  box-shadow: 0 12px 30px rgba(100, 16, 25, 0.14);
  margin: 0;
}
.slide .ph { border-radius: 8px; overflow: hidden; }
.slide img {
  display: block;
  width: 100%;
  height: min(58vh, 520px);
  object-fit: cover;
  border-radius: 8px;
}
.slide figcaption {
  padding-top: 10px;
  text-align: center;
  font-size: 15px;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  color: var(--red);
}
.dots { display: flex; gap: 8px; margin-top: 16px; }
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #d9c9a8;
  transition: all 0.3s ease;
}
.dot.on { width: 24px; border-radius: 5px; background: linear-gradient(90deg, var(--red-bright), var(--red)); }
.gallery-hint { margin-top: 12px; font-size: 13px; color: #8a7357; letter-spacing: 0.3em; text-indent: 0.3em; }

/* ---------- ⑥ 故事 ---------- */
.sec-story { background: var(--paper-deep); }
.story-list { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 20px; }
.story-item {
  display: flex; align-items: center; gap: 16px;
  min-height: 102px;
  background: var(--white);
  border: 1px solid rgba(201, 161, 95, 0.5);
  border-radius: 12px;
  padding: 18px 18px;
  box-shadow: 0 8px 24px rgba(100, 16, 25, 0.08);
}
.story-num {
  flex: none;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, var(--red-bright), var(--red-deep));
  color: var(--gold-light);
  font-size: 20px;
  border-radius: 10px;
  transform: rotate(-3deg);
  box-shadow: 0 4px 12px rgba(142, 31, 42, 0.3);
}
.story-text h3 { color: var(--red); font-size: 18px; letter-spacing: 0.3em; margin-bottom: 6px; }
.story-text p { font-size: 15px; line-height: 1.9; color: #55432f; }
.more-hint {
  margin-top: 26px;
  display: flex; flex-direction: column; align-items: center;
  gap: 8px;
  color: #6d5a3f;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
}

/* ---------- ⑦ 结尾 ---------- */
.sec-end {
  background: url("../images/photo4.jpg") center / cover no-repeat;
  color: #fff;
  text-align: center;
  justify-content: flex-start;
  padding-top: max(84px, 11vh);
  padding-bottom: calc(36px + env(safe-area-inset-bottom));
}
.sec-end::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(20, 6, 8, 0.68) 0%,
    rgba(20, 6, 8, 0.28) 30%,
    rgba(20, 6, 8, 0.24) 58%,
    rgba(20, 6, 8, 0.86) 100%);
}
.end-content { position: relative; z-index: 2; }
.end-bottom { position: relative; z-index: 2; margin-top: auto; }
.end-topline {
  display: flex; align-items: center; justify-content: center;
  gap: 16px;
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  color: var(--gold-light);
  font-size: 15px;
  margin-bottom: 10px;
}
.end-topline i { width: 52px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-light)); }
.end-topline i:last-child { transform: scaleX(-1); }
.end-title {
  font-size: clamp(40px, 11vw, 54px);
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.6);
  margin-bottom: 14px;
}
.end-names { font-size: 21px; letter-spacing: 0.3em; text-indent: 0.3em; margin-bottom: 8px; text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.end-ask { color: var(--gold-light); letter-spacing: 0.26em; text-indent: 0.26em; font-size: 15px; text-shadow: 0 2px 10px rgba(0,0,0,.6); }

/* 地图卡片（位于标题之下、页面中下部，避免遮挡照片人物面部） */
.end-map {
  position: relative;
  z-index: 2;
  width: min(76%, 340px);
  margin-top: auto;   /* 推到人物面部下方 */
  margin-bottom: 12px;
}
.map-card {
  display: block;
  border: 1.5px solid var(--gold-light);
  border-radius: 16px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease;
}
.map-card:active { transform: scale(0.98); }
.map-box { position: relative; }
.map-svg { display: block; width: 100%; height: auto; }
.map-box img.map-real { display: block; width: 100%; height: 200px; object-fit: cover; }
.pin-pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: pinPulse 2s ease-out infinite;
}
@keyframes pinPulse {
  0% { transform: scale(0.55); opacity: 0.7; }
  80%, 100% { transform: scale(1.15); opacity: 0; }
}
.map-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 14px;
  background: var(--white);
}
.map-addr {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--ink);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.map-go {
  flex: none;
  font-size: 13px;
  color: var(--red);
  letter-spacing: 0.1em;
  padding: 6px 12px;
  border: 1px solid rgba(176, 35, 46, 0.45);
  border-radius: 999px;
  background: rgba(176, 35, 46, 0.06);
}
.end-foot { font-size: 14px; line-height: 2.1; color: rgba(255, 255, 255, 0.95); letter-spacing: 0.14em; text-shadow: 0 1px 10px rgba(0,0,0,.85); }

/* ---------- 提示气泡 ---------- */
#toast {
  position: fixed;
  left: 50%;
  bottom: calc(48px + env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(20px);
  z-index: 260;
  max-width: 84vw;
  padding: 12px 22px;
  background: rgba(51, 35, 26, 0.92);
  color: #fff;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: 0.08em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 入场动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.in { opacity: 1; transform: none; }
.sec-cover .cover-content { animation: coverIn 1.4s 0.25s ease both; }
@keyframes coverIn {
  from { opacity: 0; transform: translateY(44px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 桌面端微调 ---------- */
@media (min-width: 560px) {
  .sec { padding-left: 40px; padding-right: 40px; }
  .slide { flex-basis: 66%; }
}
