/* 请柬坊 · 邀请函展示页样式（主题化，移动优先） */

:root {
  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "Noto Sans SC", -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --paper: #f7f3ec;
  --paper-2: #efe8dd;
  --ink: #33302b;
  --ink-soft: #7b7469;
  --accent: #7f8f6f;
  --accent-2: #c5a880;
  --line: rgba(51, 48, 43, .14);
  --veil: linear-gradient(180deg, rgba(26, 24, 20, .34) 0%, rgba(26, 24, 20, .48) 45%, rgba(26, 24, 20, .70) 100%);
  --name-color: #fbf7ef;
  --radius: 2px;
  --col: 430px;
}

/* ===== 主题 ===== */
body.theme-floral { --paper:#f6f4ec; --paper-2:#eaeee1; --ink:#31352c; --ink-soft:#77806f; --accent:#75875f; --accent-2:#c3a97e; }
body.theme-red { --paper:#f8eee9; --paper-2:#f1ddd3; --ink:#3d1a16; --ink-soft:#7d5a51; --accent:#a5231d; --accent-2:#c2a04a;
  --veil: linear-gradient(180deg, rgba(43,8,6,.42) 0%, rgba(43,8,6,.34) 45%, rgba(43,8,6,.70) 100%); }
body.theme-cream { --paper:#fdf6ef; --paper-2:#fbe9e3; --ink:#463530; --ink-soft:#8a736c; --accent:#dd8f9c; --accent-2:#8fc3dd; }
body.theme-gold { --paper:#fbf4e3; --paper-2:#f3e6c9; --ink:#463718; --ink-soft:#867348; --accent:#a97f2f; --accent-2:#d8bd7a; }
body.theme-film { --paper:#efe6d6; --paper-2:#e4d6bf; --ink:#3a2f21; --ink-soft:#7d6a53; --accent:#8a6a45; --accent-2:#bfa273; }
body.theme-home { --paper:#fdf4ec; --paper-2:#f7e4d7; --ink:#3f2a20; --ink-soft:#8a6f5f; --accent:#b23a2c; --accent-2:#d9a35c; }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.85;
  letter-spacing: .02em;
  overflow-x: hidden;
}

body > main, body > header, body > footer, body > section { position: relative; }

/* 纸张肌理层 */
.paper-grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 18% 12%, rgba(255,255,255,.55), transparent 42%),
    radial-gradient(circle at 82% 78%, rgba(0,0,0,.045), transparent 46%),
    repeating-linear-gradient(0deg, rgba(0,0,0,.012) 0 1px, transparent 1px 3px);
}

.cover, main, .page-footer { max-width: var(--col); margin: 0 auto; }

/* ===== 封面 ===== */
.cover {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 12vh 26px 16vh;
  overflow: hidden;
  text-align: center;
  color: var(--name-color);
}

.cover-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.04);
  animation: coverZoom 14s ease-out forwards;
}
@keyframes coverZoom { from { transform: scale(1.1); } to { transform: scale(1.02); } }

.cover-veil { position: absolute; inset: 0; background: var(--veil); }

.cover-frame {
  position: absolute; inset: 18px;
  border: 1px solid rgba(255,255,255,.32);
  pointer-events: none;
}
.cover-frame::before, .cover-frame::after {
  content: ""; position: absolute; width: 44px; height: 1px; background: rgba(255,255,255,.5);
}
.cover-frame::before { top: -1px; left: -1px; }
.cover-frame::after { bottom: -1px; right: -1px; }

.cover-inner { position: relative; z-index: 2; }

.cover-kicker {
  margin: 0 0 22px;
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: .34em;
  text-indent: .34em;
  opacity: .92;
}

.cover-names {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 10vw, 44px);
  line-height: 1.5;
  letter-spacing: .1em;
  text-shadow: 0 2px 18px rgba(0,0,0,.35);
}
.cover-names .amp {
  display: block;
  font-size: .62em;
  margin: .1em 0;
  letter-spacing: 0;
  opacity: .85;
}
.cover-names .nm { display: block; }

.cover-date {
  margin: 26px 0 0;
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: .3em;
  text-indent: .3em;
  opacity: .95;
}
.cover-line {
  margin: 8px 0 0;
  font-size: 12.5px;
  letter-spacing: .16em;
  opacity: .82;
}

.open-btn {
  position: absolute; bottom: 46px; left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 100px;
  color: #fff;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: .18em;
  backdrop-filter: blur(6px);
  cursor: pointer;
  animation: floatY 2.6s ease-in-out infinite;
}
.open-btn svg { animation: nudge 2.6s ease-in-out infinite; }
@keyframes floatY { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -6px); } }
@keyframes nudge { 0%,100% { opacity: .5; } 50% { opacity: 1; } }

/* ===== 通用区块 ===== */
main { position: relative; z-index: 1; }

.sec {
  padding: 62px 26px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.22,.61,.36,1);
}
.sec.is-in { opacity: 1; transform: none; }

.sec-title {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: .22em;
  text-indent: .22em;
  text-align: center;
  color: var(--ink);
}
.sec-title::after {
  content: ""; display: block; width: 26px; height: 1px; margin: 14px auto 0;
  background: var(--accent); opacity: .7;
}

.orn { display: block; width: 120px; height: 20px; margin: 0 auto 26px; color: var(--accent); opacity: .7; }

/* 引言 */
.sec-intro { background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%); }
.intro-text {
  margin: 0;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 2.2;
  text-align: center;
  color: var(--ink-soft);
  letter-spacing: .06em;
}
.intro-sign {
  margin: 22px 0 0;
  text-align: center;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: .2em;
  color: var(--accent);
}

/* 照片 */
.sec-photos { padding-top: 52px; }
.photo-lead {
  position: relative;
  margin: 0 auto;
  max-width: 330px;
  padding: 12px 12px 0;
  background: #fffdf8;
  box-shadow: 0 18px 40px -22px rgba(40, 34, 26, .45);
  transform: rotate(-1.6deg);
}
.photo-lead img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; filter: saturate(.96); }
.photo-tape {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%) rotate(-3deg);
  width: 78px; height: 22px;
  background: rgba(210, 196, 168, .55);
  border-left: 1px dashed rgba(255,255,255,.6);
  border-right: 1px dashed rgba(255,255,255,.6);
}
.photo-row { display: flex; gap: 12px; justify-content: center; margin-top: 18px; }
.photo-mini {
  flex: 1 1 0; min-width: 0; max-width: 150px;
  padding: 7px 7px 0; background: #fffdf8;
  box-shadow: 0 12px 26px -18px rgba(40,34,26,.5);
}
.photo-mini:nth-child(1) { transform: rotate(1.4deg); }
.photo-mini:nth-child(2) { transform: rotate(-1.2deg); }
.photo-mini img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.photo-caption {
  margin: 20px 0 0;
  text-align: center;
  font-family: var(--serif);
  font-size: 12.5px;
  letter-spacing: .18em;
  color: var(--ink-soft);
}

/* 倒计时 */
.sec-count { background: var(--paper-2); text-align: center; padding-top: 46px; padding-bottom: 46px; }
.count-label { margin: 0 0 18px; font-family: var(--serif); font-size: 13px; letter-spacing: .24em; color: var(--ink-soft); }
.count-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 340px; margin: 0 auto; }
.count-cell { padding: 12px 4px 8px; border: 1px solid var(--line); background: rgba(255,255,255,.42); }
.count-cell b {
  display: block;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.count-cell span { font-size: 11px; letter-spacing: .12em; color: var(--ink-soft); }
.count-done { margin: 6px 0 0; font-family: var(--serif); color: var(--accent); letter-spacing: .1em; }

/* 时间地点 */
.where-card { border: 1px solid var(--line); background: rgba(255,255,255,.4); padding: 22px 20px; }
.where-time { display: flex; align-items: flex-start; gap: 16px; padding-bottom: 18px; border-bottom: 1px dashed var(--line); }
.where-time b {
  font-family: var(--serif); font-size: 46px; line-height: 1; font-weight: 600; color: var(--accent);
  letter-spacing: -.02em;
}
.where-time div { display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; color: var(--ink-soft); letter-spacing: .1em; }
.where-time em { font-style: normal; color: var(--ink); font-size: 13px; }

.where-place { padding: 18px 0 6px; }
.where-place h3 { margin: 0 0 6px; font-family: var(--serif); font-size: 17px; font-weight: 600; letter-spacing: .06em; }
.where-place p { margin: 0; font-size: 13px; color: var(--ink-soft); line-height: 1.7; word-break: break-all; }

.where-acts { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.act {
  flex: 1 1 0; min-width: 96px;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.act-main { background: var(--accent); border-color: var(--accent); color: #fff; }
.act:active { opacity: .82; }
.where-tel {
  display: block; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line);
  font-size: 12.5px; color: var(--ink-soft); text-decoration: none; text-align: center; letter-spacing: .06em;
}

/* 流程 */
.flow-list { list-style: none; margin: 8px 0 0; padding: 0; }
.flow-item { display: grid; grid-template-columns: 78px 24px minmax(0, 1fr); align-items: center; margin-bottom: 20px; }
.flow-time { grid-column: 1; justify-self: end; font-family: var(--serif); font-size: 14px; color: var(--accent); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.flow-dot { grid-column: 2; justify-self: center; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); position: relative; }
.flow-dot::after { content: ""; position: absolute; left: 50%; top: calc(100% + 4px); width: 1px; height: 26px; background: var(--line); transform: translateX(-50%); }
.flow-item:last-child .flow-dot::after { display: none; }
.flow-text { grid-column: 3; font-size: 13.5px; color: var(--ink); line-height: 1.7; }

/* 相册 */
.album {
  display: flex; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 26px 12px;
  margin: 0 -26px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.album::-webkit-scrollbar { display: none; }
.album-item { flex: 0 0 76%; scroll-snap-align: center; }
.album-item img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; box-shadow: 0 14px 30px -20px rgba(40,34,26,.5); }
.album-tip { margin: 4px 0 0; text-align: center; font-size: 11.5px; letter-spacing: .14em; color: var(--ink-soft); }

/* 祝福 */
.sec-wish { background: var(--paper-2); }
.danmaku {
  position: relative; height: 44px; overflow: hidden; margin: 0 -26px 20px;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.danmaku-track {
  position: absolute; left: 100%; top: 0;
  white-space: nowrap; font-size: 12.5px; line-height: 20px; color: var(--accent);
  animation: dm 18s linear forwards;
  will-change: transform;
}
@keyframes dm {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-100vw - 100%)); }
}

.wish-form, .rsvp-form { display: flex; flex-direction: column; gap: 10px; }
.wish-form > *, .rsvp-form > * { flex: 0 0 auto; }
.wish-form textarea, .rsvp-form textarea { min-height: 88px; }
.field-row { display: flex; gap: 10px; }
input[type=text], input[type=tel], textarea, select {
  flex: 1 1 0; min-width: 0;
  width: 100%;
  padding: 12px 13px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  background: rgba(255,255,255,.72);
  border: 1px solid var(--line);
  border-radius: 0;
  outline: none;
  appearance: none;
}
textarea { resize: vertical; line-height: 1.7; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); background: #fff; }
.quick-pick { flex: 0 0 116px; font-size: 12.5px; color: var(--ink-soft); }

.btn-main {
  min-height: 46px;
  border: none;
  background: var(--accent);
  color: #fff;
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: .24em;
  text-indent: .24em;
  cursor: pointer;
  transition: opacity .2s, transform .2s;
}
.btn-main:active { transform: scale(.985); }
.btn-main[disabled] { opacity: .6; }
.form-tip { margin: 0; min-height: 18px; font-size: 12px; color: var(--accent); text-align: center; }

.wish-list { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.wish-item { padding: 12px 14px; background: rgba(255,255,255,.5); border-left: 2px solid var(--accent); }
.wish-name { display: block; font-family: var(--serif); font-size: 12.5px; color: var(--accent); margin-bottom: 2px; letter-spacing: .06em; }
.wish-content { font-size: 13.5px; color: var(--ink); line-height: 1.7; word-break: break-word; }

/* 回执 */
.rsvp-sub { margin: -6px 0 20px; text-align: center; font-size: 12.5px; color: var(--ink-soft); letter-spacing: .06em; }
.seg { display: flex; border: 1px solid var(--line); }
.seg-item { flex: 1 1 0; position: relative; text-align: center; padding: 12px 0; font-size: 13.5px; cursor: pointer; transition: background .2s, color .2s; }
.seg-item input { position: absolute; opacity: 0; pointer-events: none; }
.seg-item.is-on { background: var(--accent); color: #fff; }
.num-label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-soft); flex: 1 1 0; }
.num-label select { flex: 0 0 96px; }

/* 结尾 */
.sec-end { text-align: center; padding-bottom: 74px; }
.end-title { margin: 0 0 10px; font-family: var(--serif); font-size: 24px; font-weight: 600; letter-spacing: .24em; text-indent: .24em; }
.end-names { margin: 0; font-family: var(--serif); font-size: 14px; letter-spacing: .3em; color: var(--accent); }
.end-date { margin: 6px 0 26px; font-size: 12px; letter-spacing: .16em; color: var(--ink-soft); }
.btn-share {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 22px;
  border: 1px solid var(--accent);
  background: transparent; color: var(--accent);
  font-family: var(--sans); font-size: 13px; letter-spacing: .1em;
  cursor: pointer;
}
.made-by { margin: 22px 0 0; font-size: 11.5px; color: var(--ink-soft); letter-spacing: .08em; }
.made-by a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(0,0,0,.12); }

/* 页脚备案 */
.page-footer {
  padding: 16px 26px 26px;
  display: flex; flex-direction: column; gap: 2px;
  font-size: 11px; color: var(--ink-soft); text-align: center; letter-spacing: .04em;
  opacity: .8;
}

/* 音乐按钮 */
.music-btn {
  position: fixed; top: 16px; right: 16px; z-index: 30;
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.5);
  background: rgba(28,26,22,.32);
  color: #fff;
  backdrop-filter: blur(6px);
  cursor: pointer;
  padding: 0;
}
.music-btn .music-ring {
  position: absolute; inset: -3px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.36);
  opacity: 0;
}
.music-btn.is-playing .music-ring { opacity: 1; animation: ring 2.4s linear infinite; }
@keyframes ring { to { transform: rotate(360deg); } }
.music-btn.is-playing svg { animation: beat 1.6s ease-in-out infinite; }
@keyframes beat { 0%,100% { transform: scale(1); } 50% { transform: scale(1.12); } }

/* 分享遮罩 */
.share-mask[hidden] { display: none !important; }

.share-mask {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(18,16,14,.82);
  color: #f5efe4;
  display: flex; flex-direction: column; align-items: flex-end;
  padding: 18px 22px;
  text-align: right;
}
.share-mask p { max-width: 240px; font-size: 13px; line-height: 1.8; letter-spacing: .04em; }
.share-arrow { color: #f5efe4; transform: rotate(28deg); margin: 10px 6px 0 0; animation: nudge 1.6s ease-in-out infinite; }

/* 预览模式 */
body.is-preview .open-btn { display: none; }
body.is-preview .sec { opacity: 1; transform: none; }

/* 桌面：居中手机画幅 */
@media (min-width: 620px) {
  body { background: #e9e4da; }
  .paper-grain { display: none; }
  .cover, main, .page-footer {
    max-width: var(--col);
    margin: 0 auto;
    box-shadow: 0 0 60px -20px rgba(40,34,26,.28);
    background-color: var(--paper);
  }
  .cover { min-height: 92vh; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .sec { opacity: 1; transform: none; }
}

/* 版式：海报（单页）稍微收紧留白 */
.layout-poster .cover { min-height: 88vh; }
.layout-poster .section { padding: 46px 0; }
.layout-poster .inv-nav { display: none; }

/* 翻页版式：整屏吸附 + 右侧页码点 */
.flip-mode { scroll-snap-type: y proximity; }
.layout-page .cover, .layout-page .sec {
  min-height: 100vh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 64px;
  padding-bottom: 64px;
}
.layout-page .cover { justify-content: flex-end; }
.flip-dots {
  position: fixed; right: 9px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 8px; z-index: 60;
  padding: 10px 7px; border-radius: 999px;
  background: rgba(24,24,22,.28); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.flip-dots a {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,.55); box-shadow: 0 0 0 1px rgba(0,0,0,.12);
  display: block; transition: transform .25s ease, background .25s ease;
}
.flip-dots a.is-on { background: #7a5c3a; transform: scale(1.5); }
.flip-tip {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%);
  font-size: 11px; letter-spacing: .16em; color: rgba(255,255,255,.9);
  background: rgba(24,24,22,.42); padding: 5px 14px; border-radius: 999px;
  z-index: 60; opacity: 0; transition: opacity .4s ease; pointer-events: none;
}
.flip-tip.is-show { opacity: 1; }
.btn-share.ghost { background: transparent; color: currentColor; border: 1px solid currentColor; }
.layout-poster .sec-end .btn-share { margin-top: 10px; }

/* ============================================================
   模板版式变体：每套模板按 id 固定落在 6 种设计之一
   ============================================================ */

main.flow { display: flex; flex-direction: column; }

.cover-portraits, .cover-couplet { display: none; }

/* 默认（变体 1）区块顺序 */
.variant-1 .sec-intro { order: 1; }
.variant-1 .sec-photos { order: 2; }
.variant-1 .sec-count  { order: 3; }
.variant-1 .sec-where  { order: 4; }
.variant-1 .sec-flow   { order: 5; }
.variant-1 .sec-album  { order: 6; }
.variant-1 .sec-wish   { order: 7; }
.variant-1 .sec-rsvp   { order: 8; }
.variant-1 .sec-end    { order: 9; }

/* ---------- 变体 2：双人圆框（暖底 + 圆照片 + 囍） ---------- */
.variant-2 .cover-bg, .variant-2 .cover-veil, .variant-2 .cover-frame { display: none; }
.variant-2 .cover { background: var(--paper); color: var(--ink); min-height: 94vh; }
.variant-2 .cover-portraits {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  position: relative; z-index: 2; margin-bottom: 30px;
}
.variant-2 .po { width: 34vw; max-width: 132px; aspect-ratio: 1 / 1; border-radius: 50%; overflow: hidden; border: 4px solid #fff; box-shadow: 0 12px 28px -18px rgba(0,0,0,.45); }
.variant-2 .po img { width: 100%; height: 100%; object-fit: cover; display: block; }
.variant-2 .po-xi {
  position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%);
  font-family: var(--serif); font-size: 34px; color: var(--accent-2);
  background: var(--paper); padding: 0 6px; line-height: 1;
}
.variant-2 .cover-kicker { color: var(--ink-soft); }
.variant-2 .cover-names { text-shadow: none; font-size: clamp(24px, 7vw, 34px); }
.variant-2 .cover-names .nm { display: inline; }
.variant-2 .cover-names .amp { display: inline; font-size: .8em; margin: 0 .4em; }
.variant-2 .cover-date { color: var(--ink); }
.variant-2 .cover-line { color: var(--ink-soft); }
.variant-2 .open-btn { background: var(--accent); border-color: var(--accent); color: #fff; }

/* 变体 2 区块顺序：照片 → 引言 → 地点 → 倒计时 → 相册 … */
.variant-2 .sec-photos { order: 1; }
.variant-2 .sec-intro  { order: 2; }
.variant-2 .sec-where  { order: 3; }
.variant-2 .sec-count  { order: 4; }
.variant-2 .sec-album  { order: 5; }
.variant-2 .sec-flow   { order: 6; }
.variant-2 .sec-wish   { order: 7; }
.variant-2 .sec-rsvp   { order: 8; }
.variant-2 .sec-end    { order: 9; }
.variant-2 .photo-lead { transform: none; padding: 10px; }
.variant-2 .photo-tape { display: none; }

/* ---------- 变体 3：竖排杂志 ---------- */
.variant-3 .cover { padding: 0; display: block; color: var(--ink); background: var(--paper); }
.variant-3 .cover-bg { width: 64%; left: 0; right: auto; }
.variant-3 .cover-veil { left: 0; width: 64%; background: linear-gradient(180deg, rgba(20,18,14,.16), rgba(20,18,14,.52)); }
.variant-3 .cover-frame { display: none; }
.variant-3 .cover-inner {
  position: absolute; right: 0; top: 0; bottom: 0; width: 36%;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 24px 10px; text-align: center;
}
.variant-3 .cover-kicker { display: none; }
.variant-3 .cover-names {
  writing-mode: vertical-rl; text-shadow: none; font-size: clamp(28px, 8vw, 40px);
  letter-spacing: .16em; line-height: 1.3;
}
.variant-3 .cover-names .amp { display: block; font-size: .5em; margin: .2em 0; opacity: .7; }
.variant-3 .cover-names .nm { display: block; }
.variant-3 .cover-date { writing-mode: vertical-rl; margin: 18px 0 0; font-size: 12px; letter-spacing: .18em; color: var(--ink-soft); }
.variant-3 .cover-line { display: none; }
.variant-3 .open-btn { left: 32%; background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.6); color: #fff; }
.variant-3 .cover-couplet { display: none; }

/* 变体 3 区块顺序：引言 → 倒计时 → 照片 → 相册 …，标题左对齐 */
.variant-3 .sec-intro { order: 1; }
.variant-3 .sec-count { order: 2; }
.variant-3 .sec-photos { order: 3; }
.variant-3 .sec-album { order: 4; }
.variant-3 .sec-where { order: 5; }
.variant-3 .sec-flow { order: 6; }
.variant-3 .sec-wish { order: 7; }
.variant-3 .sec-rsvp { order: 8; }
.variant-3 .sec-end { order: 9; }
.variant-3 .sec-title { text-align: left; text-indent: 0; padding-left: 14px; border-left: 3px solid var(--accent); }
.variant-3 .sec-title::after { margin: 10px 0 0; }
.variant-3 .sec-intro { background: var(--paper); }
.variant-3 .intro-text { text-align: left; }
.variant-3 .intro-sign { text-align: left; }
.variant-3 .photo-lead { margin-left: 0; transform: none; }

/* ---------- 变体 4：极简线框（黑白、留白） ---------- */
.variant-4 .cover-veil { background: rgba(250,248,243,.9); }
.variant-4 .cover-bg { filter: grayscale(1); }
.variant-4 .cover { color: var(--ink); }
.variant-4 .cover-frame { inset: 26px; border: 1px solid rgba(0,0,0,.22); }
.variant-4 .cover-kicker { color: var(--ink-soft); letter-spacing: .5em; }
.variant-4 .cover-names { text-shadow: none; font-weight: 300; letter-spacing: .22em; }
.variant-4 .cover-date { color: var(--ink-soft); letter-spacing: .4em; }
.variant-4 .open-btn { background: #fff; border-color: var(--ink); color: var(--ink); }

.variant-4 .sec { background: var(--paper); }
.variant-4 .sec-count { background: var(--paper); }
.variant-4 .sec-title { font-weight: 400; letter-spacing: .3em; font-size: 17px; }
.variant-4 .sec-title::after { width: 40px; }
.variant-4 .sec-intro { order: 3; }
.variant-4 .sec-count { order: 1; }
.variant-4 .sec-where { order: 2; }
.variant-4 .sec-flow { order: 4; }
.variant-4 .sec-photos { order: 5; }
.variant-4 .sec-album { order: 6; }
.variant-4 .sec-wish { order: 7; }
.variant-4 .sec-rsvp { order: 8; }
.variant-4 .sec-end { order: 9; }
.variant-4 .photo-lead { transform: none; box-shadow: none; border: 1px solid var(--line); padding: 10px; }
.variant-4 .photo-tape { display: none; }
.variant-4 .photo-mini { box-shadow: none; border: 1px solid var(--line); }
.variant-4 .photo-mini:nth-child(1), .variant-4 .photo-mini:nth-child(2) { transform: none; }
.variant-4 .where-card { background: transparent; }
.variant-4 .count-cell { background: transparent; border-color: var(--line); }

/* ---------- 变体 5：中式红金 ---------- */
.variant-5 .cover { background: #6d0f12; color: #f6e4bd; }
.variant-5 .cover-bg { opacity: .28; filter: sepia(.3); }
.variant-5 .cover-veil { background: linear-gradient(180deg, rgba(72,6,8,.55), rgba(40,3,4,.82)); }
.variant-5 .cover-frame { inset: 14px; border: 2px solid rgba(214,177,104,.6); }
.variant-5 .cover-frame::after { border-top: 1px solid rgba(214,177,104,.55); }
.variant-5 .cover-names { color: #f3dfb6; letter-spacing: .18em; }
.variant-5 .cover-kicker { color: rgba(246,228,189,.85); letter-spacing: .42em; }
.variant-5 .cover-date { color: #f3dfb6; letter-spacing: .36em; }
.variant-5 .cover-couplet {
  display: flex; gap: 10px; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  z-index: 2; color: #e8cd94; font-family: var(--serif); font-size: 15px;
  writing-mode: vertical-rl; letter-spacing: .28em; padding: 12px 6px;
  border-left: 1px solid rgba(214,177,104,.5); border-right: 1px solid rgba(214,177,104,.5);
}
.variant-5 .open-btn { background: rgba(243,223,182,.12); border-color: #d6b168; color: #f3dfb6; }

.variant-5 .sec-title { color: var(--accent); letter-spacing: .3em; }
.variant-5 .sec-count { background: #f7ecdf; }
.variant-5 .sec-intro { background: linear-gradient(180deg, #fbf5ea, #f4e6d2); }
.variant-5 .where-card { border-color: rgba(165,35,29,.35); background: rgba(255,251,242,.6); }
.variant-5 .count-cell { border-color: rgba(165,35,29,.25); }
.variant-5 .flow-dot, .variant-5 .flow-time { color: var(--accent); }
.variant-5 .sec-intro { order: 1; }
.variant-5 .sec-where { order: 2; }
.variant-5 .sec-photos { order: 3; }
.variant-5 .sec-flow { order: 4; }
.variant-5 .sec-count { order: 5; }
.variant-5 .sec-album { order: 6; }
.variant-5 .sec-wish { order: 7; }
.variant-5 .sec-rsvp { order: 8; }
.variant-5 .sec-end { order: 9; }

/* ---------- 变体 6：森系散页 ---------- */
.variant-6 .cover-bg, .variant-6 .cover-veil, .variant-6 .cover-frame { display: none; }
.variant-6 .cover {
  background: var(--paper-2); color: var(--ink);
  justify-content: flex-end; min-height: 100vh; padding: 0 26px 12vh;
}
.variant-6 .cover::before {
  content: ""; position: absolute; top: 8vh; left: 50%; transform: translateX(-50%) rotate(-3deg);
  width: min(74vw, 300px); height: 52vh; background: #fffdf8 12px 12px / cover no-repeat;
  background-image: var(--v6-photo, none);
  box-shadow: 0 24px 44px -30px rgba(0,0,0,.5);
  border: 10px solid #fffdf8;
  z-index: 1;
}
.variant-6 .cover-inner { z-index: 3; }
.variant-6 .cover-kicker { color: var(--ink-soft); }
.variant-6 .cover-names { text-shadow: none; }
.variant-6 .cover-names .nm { display: inline; }
.variant-6 .cover-names .amp { display: inline; font-size: .7em; margin: 0 .35em; }
.variant-6 .cover-date { color: var(--ink); }
.variant-6 .cover-line { color: var(--ink-soft); }
.variant-6 .open-btn { background: var(--accent); border-color: var(--accent); color: #fff; bottom: 30px; }

.variant-6 .sec-album { order: 1; }
.variant-6 .sec-photos { order: 2; }
.variant-6 .sec-intro { order: 3; }
.variant-6 .sec-where { order: 4; }
.variant-6 .sec-flow { order: 5; }
.variant-6 .sec-count { order: 6; }
.variant-6 .sec-wish { order: 7; }
.variant-6 .sec-rsvp { order: 8; }
.variant-6 .sec-end { order: 9; }
.variant-6 .sec-photos { background: var(--paper-2); }
.variant-6 .photo-lead { transform: rotate(2deg); max-width: 300px; }
.variant-6 .photo-mini:nth-child(1) { transform: rotate(-3deg); }
.variant-6 .photo-mini:nth-child(2) { transform: rotate(2.4deg); }
.variant-6 .album-item img { border: 8px solid #fffdf8; box-shadow: 0 16px 30px -24px rgba(0,0,0,.5); }

/* ============================================================
   装饰维度：同一种版式下再分出不同气质
   ============================================================ */

/* 封面构图 A：居中（默认） */

/* 封面构图 B：文字左对齐 + 左侧竖线（照片类封面） */
body.deco-2:not(.variant-2):not(.variant-6) .cover-inner { text-align: left; }
body.deco-2 .cover-names,
body.deco-2 .cover-date,
body.deco-2 .cover-line { text-align: left; }
body.deco-2:not(.variant-2):not(.variant-6) .cover::after {
  content: ""; position: absolute; z-index: 1;
  left: 28px; top: 26%; bottom: 26%; width: 1px;
  background: rgba(255,255,255,.4);
}

/* 封面构图 C：姓名横排 + 大字距 */
body.deco-3 .cover-names .nm { display: inline; }
body.deco-3 .cover-names .amp { display: inline; font-size: .62em; margin: 0 .55em; }
body.deco-3 .cover-names { letter-spacing: .26em; }

/* 封面构图 D：内容压到画面下方，上方留白 */
body.deco-4:not(.variant-2):not(.variant-6) .cover { justify-content: flex-end; padding-bottom: 22vh; }
body.deco-4 .cover-kicker { margin-bottom: 14px; }

/* 边框 B：双线细框 */
body.frame-2 .cover-frame { inset: 16px; border: 3px double rgba(255,255,255,.45); }
body.frame-2 .cover-frame::before,
body.frame-2 .cover-frame::after { display: none; }

/* 边框 C：四角括号 */
body.frame-3 .cover-frame { border: none; inset: 22px; background:
  linear-gradient(rgba(255,255,255,.55), rgba(255,255,255,.55)) left top / 46px 1px no-repeat,
  linear-gradient(rgba(255,255,255,.55), rgba(255,255,255,.55)) left top / 1px 46px no-repeat,
  linear-gradient(rgba(255,255,255,.55), rgba(255,255,255,.55)) right top / 46px 1px no-repeat,
  linear-gradient(rgba(255,255,255,.55), rgba(255,255,255,.55)) right top / 1px 46px no-repeat,
  linear-gradient(rgba(255,255,255,.55), rgba(255,255,255,.55)) left bottom / 46px 1px no-repeat,
  linear-gradient(rgba(255,255,255,.55), rgba(255,255,255,.55)) left bottom / 1px 46px no-repeat,
  linear-gradient(rgba(255,255,255,.55), rgba(255,255,255,.55)) right bottom / 46px 1px no-repeat,
  linear-gradient(rgba(255,255,255,.55), rgba(255,255,255,.55)) right bottom / 1px 46px no-repeat;
}

/* 照片 B：无衬纸的细框照片 */
body.photo-2 .photo-lead { transform: none; background: transparent; padding: 0; box-shadow: none; }
body.photo-2 .photo-lead img { outline: 1px solid var(--line); outline-offset: 9px; }
body.photo-2 .photo-tape { display: none; }
body.photo-2 .photo-mini { background: transparent; padding: 0; box-shadow: none; transform: none !important; }
body.photo-2 .photo-mini img { outline: 1px solid var(--line); outline-offset: 7px; }

/* 照片 C：主图出血铺满一行 */
body.photo-3 .photo-lead {
  max-width: none; margin: 0 -26px; padding: 0; transform: none; box-shadow: none; background: transparent;
}
body.photo-3 .photo-lead img { aspect-ratio: 4 / 3; }
body.photo-3 .photo-tape { display: none; }

/* 标题 B：左对齐短横线 */
body.title-2 .sec-title { text-align: left; text-indent: 0; letter-spacing: .12em; }
body.title-2 .sec-title::after { margin: 10px 0 0; width: 34px; }
body.title-2 .intro-text,
body.title-2 .intro-sign { text-align: left; }

/* 标题 C：居中 + 双细线 */
body.title-3 .sec-title { letter-spacing: .34em; text-indent: .34em; }
body.title-3 .sec-title::after {
  width: 88px; height: 3px; background: transparent;
  border-top: 1px solid var(--accent); border-bottom: 1px solid var(--accent); opacity: .55;
}

/* ============================================================
   扩展版式 7-12
   ============================================================ */

/* ---------- 变体 7：胶片电影 ---------- */
.variant-7 .cover { background: #171614; color: #f2ede2; }
.variant-7 .cover-bg { filter: grayscale(1) contrast(1.05); }
.variant-7 .cover-veil { background: linear-gradient(180deg, rgba(0,0,0,.5), rgba(0,0,0,.88)); }
.variant-7 .cover-frame { display: none; }
.variant-7 .cover::before, .variant-7 .cover::after {
  content: ""; position: absolute; left: 0; right: 0; height: 20px; z-index: 2;
  background: repeating-linear-gradient(90deg, transparent 0 12px, rgba(242,237,226,.32) 12px 24px, transparent 24px 36px);
}
.variant-7 .cover::before { top: 0; }
.variant-7 .cover::after { bottom: 0; }
.variant-7 .cover-kicker { letter-spacing: .5em; color: rgba(242,237,226,.7); }
.variant-7 .cover-names { text-shadow: none; letter-spacing: .16em; }
.variant-7 .open-btn { background: rgba(255,255,255,.08); border-color: rgba(242,237,226,.5); }
.variant-7 .sec-photos { order: 1; }
.variant-7 .sec-intro { order: 2; }
.variant-7 .sec-count { order: 3; background: #1c1a17; }
.variant-7 .sec-count .count-cell { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.18); color: #f2ede2; }
.variant-7 .sec-count .count-cell b, .variant-7 .sec-count .count-label { color: #f2ede2; }
.variant-7 .sec-where { order: 4; }
.variant-7 .sec-flow { order: 5; }
.variant-7 .sec-album { order: 6; }
.variant-7 .sec-wish { order: 7; }
.variant-7 .sec-rsvp { order: 8; }
.variant-7 .sec-end { order: 9; }
.variant-7 .photo-lead { transform: none; background: #0f0e0c; padding: 26px 10px 10px; }
.variant-7 .photo-tape { background: repeating-linear-gradient(90deg, transparent 0 8px, rgba(255,255,255,.3) 8px 16px, transparent 16px 24px); top: 0; height: 14px; }

/* ---------- 变体 8：教堂拱门 ---------- */
.variant-8 .cover { justify-content: flex-end; align-items: center; padding: 0 26px 12vh; color: var(--ink); }
.variant-8 .cover-veil { background: linear-gradient(180deg, rgba(247,243,236,0) 0%, rgba(247,243,236,.05) 42%, var(--paper) 60%, var(--paper) 100%); }
.variant-8 .cover-frame { inset: 9vh 9% auto; height: 43vh; border: 1px solid rgba(255,255,255,.6); border-radius: 260px 260px 0 0; }
.variant-8 .cover-frame::before, .variant-8 .cover-frame::after { display: none; }
.variant-8 .cover-kicker { color: var(--ink-soft); margin-bottom: 12px; }
.variant-8 .cover-names { text-shadow: none; font-size: clamp(26px, 7.4vw, 36px); }
.variant-8 .open-btn { background: var(--accent); border-color: var(--accent); color: #fff; }
.variant-8 .sec-where { order: 1; }
.variant-8 .sec-intro { order: 2; }
.variant-8 .sec-photos { order: 3; }
.variant-8 .sec-count { order: 4; }
.variant-8 .sec-flow { order: 5; }
.variant-8 .sec-album { order: 6; }
.variant-8 .sec-wish { order: 7; }
.variant-8 .sec-rsvp { order: 8; }
.variant-8 .sec-end { order: 9; }

/* ---------- 变体 9：报纸头版 ---------- */
.variant-9 .cover { background: #f6f2e6; color: #26221c; justify-content: flex-start; align-items: flex-start; text-align: left; padding: 11vh 26px 8vh; }
.variant-9 .cover-bg { opacity: .16; filter: grayscale(1); }
.variant-9 .cover-veil { display: none; }
.variant-9 .cover-frame { display: none; }
.variant-9 .cover-kicker { letter-spacing: .3em; border-bottom: 1px solid #26221c; padding-bottom: 8px; width: 100%; font-size: 11px; }
.variant-9 .cover-names {
  border-top: 3px double #26221c; border-bottom: 1px solid #26221c;
  padding: 16px 0; width: 100%; font-size: clamp(26px, 8vw, 38px); letter-spacing: .06em;
}
.variant-9 .cover-names .nm { display: block; }
.variant-9 .cover-date { letter-spacing: .2em; }
.variant-9 .open-btn { background: #26221c; border-color: #26221c; color: #f6f2e6; }
.variant-9 .sec-title { text-align: left; text-indent: 0; border-bottom: 2px solid var(--ink); padding-bottom: 8px; font-size: 21px; }
.variant-9 .sec-title::after { display: none; }
.variant-9 .intro-text { text-align: justify; }
.variant-9 .intro-sign { text-align: right; }
.variant-9 .sec-intro { order: 1; background: #f6f2e6; }
.variant-9 .sec-where { order: 2; background: #f6f2e6; }
.variant-9 .sec-flow { order: 3; background: #f6f2e6; }
.variant-9 .sec-photos { order: 4; background: #f6f2e6; }
.variant-9 .sec-count { order: 5; background: #efe9d9; }
.variant-9 .sec-album { order: 6; background: #f6f2e6; }
.variant-9 .sec-wish { order: 7; background: #f6f2e6; }
.variant-9 .sec-rsvp { order: 8; background: #f6f2e6; }
.variant-9 .sec-end { order: 9; background: #f6f2e6; }

/* ---------- 变体 10：手账便签 ---------- */
.variant-10 .cover-bg, .variant-10 .cover-veil, .variant-10 .cover-frame { display: none; }
.variant-10 .cover {
  background:
    linear-gradient(180deg, #fdf3e3 0%, #fbe8e4 100%);
  color: #4a3b33; justify-content: flex-end; padding: 0 26px 13vh; text-align: left;
}
.variant-10 .cover::before {
  content: ""; position: absolute; top: 9vh; left: 50%; transform: translateX(-50%) rotate(2.4deg);
  width: min(76vw, 320px); height: 48vh; border: 10px solid #fffdf8; border-bottom-width: 34px;
  background: url('') center/cover no-repeat;
  background-image: var(--v6-photo, none);
  box-shadow: 0 22px 40px -28px rgba(0,0,0,.45);
}
.variant-10 .cover::after {
  content: ""; position: absolute; top: 8vh; left: 50%; transform: translateX(-64%) rotate(-4deg);
  width: 96px; height: 24px; background: rgba(214,177,104,.45);
}
.variant-10 .cover-kicker { color: #a5715f; letter-spacing: .22em; }
.variant-10 .cover-names { text-shadow: none; font-family: var(--serif); font-size: clamp(28px, 8vw, 38px); }
.variant-10 .cover-names .nm { display: inline; }
.variant-10 .cover-names .amp { display: inline; font-size: .7em; margin: 0 .3em; }
.variant-10 .cover-date { color: #6b5446; }
.variant-10 .cover-line { color: #8a7365; }
.variant-10 .open-btn { background: #e9a8a0; border-color: #e9a8a0; color: #fff; }
.variant-10 .sec { background: #fdf6ea; }
.variant-10 .where-card, .variant-10 .wish-item, .variant-10 .count-cell { border-radius: 14px; border-style: dashed; }
.variant-10 .count-cell { background: #fff; }
.variant-10 .sec-title { color: #a5715f; }
.variant-10 .sec-title::after { background: #e9a8a0; }
.variant-10 .sec-album { order: 1; }
.variant-10 .sec-photos { order: 2; }
.variant-10 .sec-intro { order: 3; }
.variant-10 .sec-where { order: 4; }
.variant-10 .sec-flow { order: 5; }
.variant-10 .sec-count { order: 6; }
.variant-10 .sec-wish { order: 7; }
.variant-10 .sec-rsvp { order: 8; }
.variant-10 .sec-end { order: 9; }

/* ---------- 变体 11：水墨留白 ---------- */
.variant-11 .cover { background: #f3efe4; color: #2c2a25; }
.variant-11 .cover-bg { filter: grayscale(1) contrast(.95); opacity: .72; }
.variant-11 .cover-veil { background: linear-gradient(180deg, rgba(243,239,228,.55), rgba(243,239,228,.9)); }
.variant-11 .cover-frame { inset: 20px; border: 1px solid rgba(44,42,37,.25); }
.variant-11 .cover-kicker { color: #6f675a; letter-spacing: .42em; }
.variant-11 .cover-names { writing-mode: vertical-rl; text-shadow: none; letter-spacing: .2em; font-size: clamp(30px, 8.6vw, 42px); }
.variant-11 .cover-names .nm { display: block; }
.variant-11 .cover-names .amp { display: block; font-size: .5em; margin: .3em 0; opacity: .6; }
.variant-11 .cover-date { writing-mode: vertical-rl; color: #6f675a; letter-spacing: .16em; margin-top: 16px; }
.variant-11 .cover-line { display: none; }
.variant-11 .cover-inner { display: flex; flex-direction: column; align-items: center; }
.variant-11 .cover-inner::after {
  content: "喜"; position: absolute; right: 8px; bottom: -46px;
  width: 38px; height: 38px; display: grid; place-items: center;
  font-family: var(--serif); font-size: 20px; color: #fff; background: #9b3a2f; border-radius: 3px;
}
.variant-11 .open-btn { background: rgba(255,255,255,.65); border-color: rgba(44,42,37,.35); color: #2c2a25; }
.variant-11 .photo-lead img, .variant-11 .photo-mini img, .variant-11 .album-item img { filter: grayscale(.9) contrast(.95); }
.variant-11 .sec-title { font-weight: 400; letter-spacing: .4em; font-size: 18px; }
.variant-11 .sec-intro { order: 1; }
.variant-11 .sec-flow { order: 2; }
.variant-11 .sec-where { order: 3; }
.variant-11 .sec-photos { order: 4; }
.variant-11 .sec-count { order: 5; }
.variant-11 .sec-album { order: 6; }
.variant-11 .sec-wish { order: 7; }
.variant-11 .sec-rsvp { order: 8; }
.variant-11 .sec-end { order: 9; }

/* ---------- 变体 12：糖果派对 ---------- */
.variant-12 .cover {
  background:
    radial-gradient(circle at 18% 22%, rgba(255,255,255,.5), transparent 38%),
    radial-gradient(circle at 82% 78%, rgba(255,255,255,.35), transparent 42%),
    linear-gradient(160deg, var(--paper), var(--paper-2));
  color: var(--ink);
}
.variant-12 .cover-bg { opacity: .22; filter: saturate(1.15) blur(1px); }
.variant-12 .cover-veil { background: linear-gradient(180deg, rgba(255,255,255,.42), rgba(255,255,255,.7)); }
.variant-12 .cover-frame { display: none; }
.variant-12 .cover::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(var(--accent) 2.5px, transparent 2.5px),
    radial-gradient(var(--accent-2) 3.5px, transparent 3.5px),
    radial-gradient(rgba(255,255,255,.9) 2px, transparent 2px);
  background-size: 52px 52px, 86px 86px, 34px 34px;
  background-position: 0 0, 24px 32px, 12px 16px;
  opacity: .5;
}
.variant-12 .cover-kicker {
  display: inline-block; padding: 5px 14px; border-radius: 100px;
  background: rgba(255,255,255,.75); color: var(--accent); letter-spacing: .18em;
}
.variant-12 .cover-names { text-shadow: 0 2px 12px rgba(255,255,255,.9); font-family: var(--sans); font-weight: 600; letter-spacing: .06em; color: #2c2a25; }
.variant-12 .cover-names .nm { display: inline; }
.variant-12 .cover-names .amp { display: inline; margin: 0 .28em; font-size: .7em; }
.variant-12 .open-btn { background: var(--accent); border-color: var(--accent); color: #fff; }
.variant-12 .sec-title { font-family: var(--sans); font-weight: 500; letter-spacing: .14em; }
.variant-12 .where-card { border-radius: 18px; border-style: none; background: #fff; box-shadow: 0 18px 38px -30px rgba(0,0,0,.4); }
.variant-12 .count-cell { border-radius: 16px; background: #fff; border: none; box-shadow: 0 12px 26px -22px rgba(0,0,0,.4); }
.variant-12 .count-cell b { color: var(--accent); }
.variant-12 .wish-item, .variant-12 .photo-mini, .variant-12 .photo-lead { border-radius: 14px; }
.variant-12 .btn-main { border-radius: 100px; letter-spacing: .1em; }
.variant-12 .seg-item:first-child { border-radius: 12px 0 0 12px; }
.variant-12 .seg-item:last-child { border-radius: 0 12px 12px 0; }
.variant-12 .sec-count { order: 1; }
.variant-12 .sec-album { order: 2; }
.variant-12 .sec-photos { order: 3; }
.variant-12 .sec-wish { order: 4; }
.variant-12 .sec-intro { order: 5; }
.variant-12 .sec-where { order: 6; }
.variant-12 .sec-flow { order: 7; }
.variant-12 .sec-rsvp { order: 8; }
.variant-12 .sec-end { order: 9; }

/* ============================================================
   整屏翻页海报：把每一屏做成独立海报版面（layout=page）
   ============================================================ */

.layout-page .cover { justify-content: flex-end; padding-bottom: 13vh; }

/* 场景编号：右侧竖排小字 */
.layout-page .sec[data-scene]::before {
  content: attr(data-scene);
  position: absolute; right: 14px; top: 12vh;
  writing-mode: vertical-rl; font-family: var(--sans);
  font-size: 9px; letter-spacing: .34em; text-transform: uppercase;
  opacity: .32; z-index: 3;
}

/* 引言：整屏大字 */
.layout-page .sec-intro {
  justify-content: center; text-align: center;
  background: var(--paper);
  padding: 18vh 30px 14vh;
}
.layout-page .sec-intro .intro-text { text-shadow: 0 1px 12px rgba(247,243,236,.85); }
.layout-page .sec-intro .intro-sign { text-shadow: 0 1px 10px rgba(247,243,236,.9); }
.layout-page .sec-intro .orn { width: 84px; margin: 0 auto 26px; opacity: .6; }
.layout-page .sec-intro .sec-title {
  font-size: clamp(24px, 6.8vw, 32px); letter-spacing: .08em; text-indent: .08em;
  margin-bottom: 26px; white-space: nowrap; text-shadow: 0 2px 18px rgba(247,243,236,.9);
}
.layout-page .sec-intro .intro-text {
  font-size: 16px; line-height: 2.2; max-width: 300px; margin: 0 auto 30px;
  color: var(--ink-soft);
}
.layout-page .sec-intro .intro-sign { letter-spacing: .24em; font-size: 12px; }

/* 照片：满屏出血 + 底部渐隐说明 */
.layout-page .sec-photos {
  padding: 0; justify-content: flex-end; background: #14130f; overflow: hidden;
}
.layout-page .sec-photos .photo-lead {
  position: absolute; inset: 0; margin: 0; max-width: none; padding: 0;
  transform: none; background: none; box-shadow: none; z-index: 0;
}
.layout-page .sec-photos .photo-lead img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; }
.layout-page .sec-photos .photo-tape { display: none; }
.layout-page .sec-photos .photo-lead::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.05) 40%, rgba(0,0,0,.62) 100%);
}
.layout-page .sec-photos .photo-row {
  position: relative; z-index: 2; display: flex; gap: 8px; padding: 0 22px;
  margin-bottom: 10px;
}
.layout-page .sec-photos .photo-mini {
  width: 74px; height: 92px; padding: 3px; background: rgba(255,255,255,.9);
  transform: rotate(-2deg); box-shadow: 0 12px 26px -16px rgba(0,0,0,.7);
}
.layout-page .sec-photos .photo-mini:nth-child(2) { transform: rotate(2.5deg); }
.layout-page .sec-photos .photo-mini img { height: 100%; object-fit: cover; }
.layout-page .sec-photos .photo-caption {
  position: relative; z-index: 2; color: #f3efe6; padding: 0 26px 12vh;
  font-size: 12px; letter-spacing: .22em; margin: 0;
}

/* 倒计时：深色主色整屏 */
.layout-page .sec-count {
  background: var(--accent); color: #f6f1e6;
  justify-content: center; padding: 18vh 26px;
}
.layout-page .sec-count .count-label { color: rgba(255,255,255,.78); letter-spacing: .3em; margin-bottom: 34px; }
.layout-page .sec-count .count-grid { gap: 14px; }
.layout-page .sec-count .count-cell {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.22);
  padding: 18px 4px 12px;
}
.layout-page .sec-count .count-cell b { font-size: clamp(34px, 10vw, 48px); color: #fff; line-height: 1; }
.layout-page .sec-count .count-cell span { color: rgba(255,255,255,.7); margin-top: 8px; }

/* 地点：纸面 + 大日期 */
.layout-page .sec-where { background: var(--paper-2); justify-content: center; padding: 14vh 26px; }
.layout-page .sec-where .sec-title { font-size: 15px; letter-spacing: .4em; margin-bottom: 26px; }
.layout-page .sec-where .where-card {
  background: transparent; border: none; padding: 0; box-shadow: none;
  display: block; text-align: left;
}
.layout-page .sec-where .where-time {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 16px 0; margin-bottom: 20px; align-items: baseline;
}
.layout-page .sec-where .where-time b { font-size: 46px; }
.layout-page .sec-where .where-place h3 { font-size: 24px; letter-spacing: .08em; }
.layout-page .sec-where .where-place p { font-size: 13px; color: var(--ink-soft); }
.layout-page .sec-where .where-acts { margin-top: 22px; flex-direction: column; }
.layout-page .sec-where .where-acts .act { width: 100%; }

/* 流程：整屏时间线 */
.layout-page .sec-flow { background: var(--paper); justify-content: center; padding: 16vh 34px; }
.layout-page .sec-flow .sec-title { font-size: 16px; letter-spacing: .4em; margin-bottom: 34px; }
.layout-page .sec-flow .flow-list { gap: 0; }
.layout-page .sec-flow .flow-item { padding: 18px 0; }
.layout-page .sec-flow .flow-time { font-family: var(--sans); font-size: 12px; letter-spacing: .18em; }
.layout-page .sec-flow .flow-text { font-size: 17px; }

/* 相册：整屏密排 */
.layout-page .sec-album { background: var(--paper-2); justify-content: center; padding: 12vh 18px; }
.layout-page .sec-album .sec-title { font-size: 14px; letter-spacing: .34em; margin-bottom: 22px; }
.layout-page .sec-album .album-grid { gap: 4px; }
.layout-page .sec-album .album-item { border-radius: 1px; }

/* 祝福：深色留言墙 */
.layout-page .sec-wish { background: #211f1b; color: #f0ebe0; justify-content: center; padding: 12vh 26px; }
.layout-page .sec-wish .sec-title { color: #f0ebe0; font-size: 15px; letter-spacing: .34em; }
.layout-page .sec-wish .sec-title::after { background: rgba(255,255,255,.4); }
.layout-page .sec-wish .wish-item {
  background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: #f0ebe0;
}
.layout-page .sec-wish .wish-item .wish-name { color: rgba(255,255,255,.9); }
.layout-page .sec-wish .wish-form input,
.layout-page .sec-wish .wish-form textarea {
  background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.18); color: #fff;
}

/* 回执：居中表单 */
.layout-page .sec-rsvp { background: var(--paper); justify-content: center; padding: 14vh 30px; }
.layout-page .sec-rsvp .sec-title { font-size: 15px; letter-spacing: .4em; }

/* 结束：主色收尾 */
.layout-page .sec-end {
  background: var(--accent); color: #f6f1e6;
  justify-content: center; text-align: center; padding: 18vh 30px;
}
.layout-page .sec-end .end-names { font-size: clamp(26px, 7.4vw, 36px); letter-spacing: .2em; }
.layout-page .sec-end .end-note, .layout-page .sec-end .end-word { color: rgba(255,255,255,.72); }
.layout-page .sec-end .btn-share { border-color: rgba(255,255,255,.5); color: #fff; }

/* 翻页进入动画 */
.layout-page .sec { transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.layout-page .sec:not(.is-in) { opacity: 0; transform: translateY(26px); }

/* ============================================================
   整屏海报的背景照片层 / 纸纹层
   ============================================================ */

.layout-page .sec-intro,
.layout-page .sec-count,
.layout-page .sec-where,
.layout-page .sec-flow,
.layout-page .sec-wish,
.layout-page .sec-rsvp,
.layout-page .sec-end { position: relative; overflow: hidden; }

.layout-page .sec-intro > *,
.layout-page .sec-count > *,
.layout-page .sec-where > *,
.layout-page .sec-flow > *,
.layout-page .sec-wish > *,
.layout-page .sec-rsvp > *,
.layout-page .sec-end > * { position: relative; z-index: 2; }

/* 引言：虚化照片作底，压一层米纸 */
.layout-page .sec-intro::after {
  content: ""; position: absolute; inset: -12px; z-index: 0;
  background-image:
    radial-gradient(ellipse at 50% 52%, rgba(247,243,236,.9) 0%, rgba(247,243,236,.6) 50%, rgba(247,243,236,0) 78%),
    linear-gradient(180deg, rgba(247,243,236,.1), rgba(247,243,236,.22)),
    var(--scene-photo);
  background-size: cover; background-position: center;
  filter: blur(6px) saturate(.92);
}

/* 倒计时：照片压暗后叠主色，数字仍是主角 */
.layout-page .sec-count::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 66%, transparent), color-mix(in srgb, var(--accent) 88%, transparent)),
    var(--scene-photo);
  background-size: cover; background-position: center;
  filter: blur(6px) saturate(.9);
}

/* 地点：极淡照片 + 大留白 */
.layout-page .sec-where::after {
  content: ""; position: absolute; inset: -10px; z-index: 0;
  background-image:
    linear-gradient(180deg, rgba(247,243,236,.9), rgba(247,243,236,.97)),
    var(--scene-photo);
  background-size: cover; background-position: center 30%;
  filter: blur(4px);
}

/* 流程：竖线纸纹 + 细横格 */
.layout-page .sec-flow::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, rgba(44,42,37,.045) 0 1px, transparent 1px 30px),
    radial-gradient(circle at 50% 0%, rgba(44,42,37,.06), transparent 62%);
  opacity: .9;
}

/* 祝福：暗底虚化照片，留言卡浮在上面 */
.layout-page .sec-wish::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(180deg, rgba(20,18,16,.82), rgba(20,18,16,.92)),
    var(--scene-photo);
  background-size: cover; background-position: center;
  filter: blur(8px) grayscale(.6);
}

/* 回执：照片虚化到几乎只剩颜色 */
.layout-page .sec-rsvp::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(180deg, rgba(247,243,236,.93), rgba(247,243,236,.97)),
    var(--scene-photo);
  background-size: cover; background-position: center;
  filter: blur(6px);
}

/* 结尾：主色压照片，收束整条请柬 */
.layout-page .sec-end::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 78%, transparent), color-mix(in srgb, var(--accent) 94%, transparent)),
    var(--scene-photo);
  background-size: cover; background-position: center;
  filter: blur(4px) saturate(.9);
}

/* 相册：纸面细网格，让整屏不空 */
.layout-page .sec-album::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(44,42,37,.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(44,42,37,.04) 1px, transparent 1px);
  background-size: 24px 24px;
}
.layout-page .sec-album { position: relative; overflow: hidden; }
.layout-page .sec-album > * { position: relative; z-index: 2; }

/* 背景照片层（直接铺在区块上，避免伪元素兼容问题） */
.layout-page .sec-intro {
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse at 50% 52%, rgba(247,243,236,.92) 0%, rgba(247,243,236,.6) 50%, rgba(247,243,236,.06) 78%),
    linear-gradient(180deg, rgba(247,243,236,.16), rgba(247,243,236,.34)),
    var(--scene-photo);
  background-size: cover, cover, cover;
  background-position: center;
}
.layout-page .sec-count {
  background-color: var(--accent);
  background-image:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 72%, transparent), color-mix(in srgb, var(--accent) 90%, transparent)),
    var(--scene-photo);
  background-size: cover, cover;
  background-position: center;
}
.layout-page .sec-where {
  background-color: var(--paper-2);
  background-image:
    linear-gradient(180deg, rgba(247,243,236,.86), rgba(247,243,236,.96)),
    var(--scene-photo);
  background-size: cover, cover;
  background-position: center 30%;
}
.layout-page .sec-wish {
  background-color: #211f1b;
  background-image:
    linear-gradient(180deg, rgba(20,18,16,.8), rgba(20,18,16,.92)),
    var(--scene-photo);
  background-size: cover, cover;
  background-position: center;
}
.layout-page .sec-rsvp {
  background-color: var(--paper);
  background-image:
    linear-gradient(180deg, rgba(247,243,236,.9), rgba(247,243,236,.97)),
    var(--scene-photo);
  background-size: cover, cover;
  background-position: center;
}
.layout-page .sec-end {
  background-color: var(--accent);
  background-image:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 80%, transparent), color-mix(in srgb, var(--accent) 95%, transparent)),
    var(--scene-photo);
  background-size: cover, cover;
  background-position: center;
}
.layout-page .sec-album {
  background-color: var(--paper-2);
  background-image:
    linear-gradient(90deg, rgba(44,42,37,.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(44,42,37,.04) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* 真实元素做背景照片层（兼容性最好） */
.layout-page .scene-photo {
  position: absolute; inset: -14px; z-index: 0;
  background-size: cover; background-position: center;
  filter: blur(7px) saturate(.95);
  transform: scale(1.03);
  pointer-events: none;
}
.layout-page .sec-intro .scene-photo { opacity: .55; }
.layout-page .sec-count .scene-photo { opacity: .5; filter: blur(7px) grayscale(.25) saturate(.9); }
.layout-page .sec-where .scene-photo { opacity: .38; }
.layout-page .sec-wish .scene-photo { opacity: .35; filter: blur(8px) grayscale(.6); }
.layout-page .sec-rsvp .scene-photo { opacity: .3; }
.layout-page .sec-end .scene-photo { opacity: .42; }

.layout-page .sec-intro::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse at 50% 52%, rgba(247,243,236,.92) 0%, rgba(247,243,236,.55) 52%, rgba(247,243,236,.1) 82%);
}
.layout-page .sec-count::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 66%, transparent), color-mix(in srgb, var(--accent) 88%, transparent));
}
.layout-page .sec-where::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(247,243,236,.82), rgba(247,243,236,.95));
}
.layout-page .sec-wish::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(20,18,16,.8), rgba(20,18,16,.92));
}
.layout-page .sec-rsvp::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(247,243,236,.9), rgba(247,243,236,.97));
}
.layout-page .sec-end::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 78%, transparent), color-mix(in srgb, var(--accent) 94%, transparent));
}
.layout-page .sec-intro > *,
.layout-page .sec-count > *,
.layout-page .sec-where > *,
.layout-page .sec-wish > *,
.layout-page .sec-rsvp > *,
.layout-page .sec-end > * { position: relative; z-index: 2; }

/* 修正层级：场景照片必须在文字之下 */
.layout-page .sec > .scene-photo {
  position: absolute; inset: -14px; z-index: 0; transform: scale(1.03);
}
.layout-page .sec-intro::after {
  background: radial-gradient(ellipse at 50% 54%, rgba(247,243,236,.95) 0%, rgba(247,243,236,.62) 48%, rgba(247,243,236,.12) 80%);
}

/* 结尾二维码 */
.layout-page .end-qr {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  margin: 26px auto 6px; width: max-content; padding: 12px 14px 10px;
  background: rgba(255,255,255,.94); border-radius: 8px;
}
.layout-page .end-qr img { width: 96px; height: 96px; display: block; }
.layout-page .end-qr span { font-size: 11px; letter-spacing: .1em; color: #4a443b; }

/* 桌面端：整屏翻页收成居中的海报卡片，不再拉满整个浏览器 */
@media (min-width: 720px) {
  body.layout-page { background: #171614; }
  .layout-page .cover, .layout-page .sec {
    max-width: 560px; margin-left: auto; margin-right: auto;
    min-height: calc(100vh - 24px);
    box-shadow: 0 26px 64px -40px rgba(0,0,0,.75);
  }
  .layout-page .cover { margin-top: 18px; border-radius: 18px 18px 0 0; }
  .layout-page .sec { border-radius: 0; }
  .layout-page .sec-end { border-radius: 0 0 18px 18px; margin-bottom: 28px; }
  .layout-page .sec + .sec { border-top: 1px solid rgba(0,0,0,.06); }
  .layout-page .flip-dots { right: calc(50% - 316px); }
  .layout-page .flip-tip { bottom: 26px; }
}

/* ============================================================
   版式 13-18
   ============================================================ */

/* 13 黑金杂志 */
.variant-13 .cover { background: #14130f; color: #efe7d5; }
.variant-13 .cover-bg { filter: grayscale(.75) contrast(1.1); opacity: .9; }
.variant-13 .cover-veil { background: linear-gradient(180deg, rgba(10,9,7,.35), rgba(10,9,7,.9)); }
.variant-13 .cover-frame { inset: 18px; border: 1px solid rgba(198,166,106,.45); }
.variant-13 .cover-kicker { color: #c6a66a; letter-spacing: .4em; }
.variant-13 .cover-names { font-size: clamp(30px, 9vw, 44px); letter-spacing: .2em; color: #f6efdf; }
.variant-13 .cover-names .nm { display: inline; }
.variant-13 .cover-names .amp { display: inline; font-size: .58em; margin: 0 .4em; color: #c6a66a; }
.variant-13 .open-btn { background: transparent; border-color: #c6a66a; color: #e8d7ae; }
.variant-13 .sec-count { background: #14130f; color: #efe7d5; }
.variant-13 .sec-count .count-cell { border-color: rgba(198,166,106,.4); background: rgba(255,255,255,.04); }
.variant-13 .sec-count .count-cell b { color: #d8b878; }
.variant-13 .sec-end { background: #14130f; }
.variant-13 .sec-end .end-names { color: #efe7d5; }
.variant-13 .sec-title { color: #14130f; }

/* 14 油画古典 */
.variant-14 .cover { background: #2a2018; }
.variant-14 .cover-veil { background: linear-gradient(180deg, rgba(28,20,14,.25), rgba(28,20,14,.75)); }
.variant-14 .cover-frame { inset: 16px; border: 10px solid rgba(255,250,238,.92); box-shadow: inset 0 0 0 1px rgba(160,120,60,.5); }
.variant-14 .cover-frame::before, .variant-14 .cover-frame::after { display: none; }
.variant-14 .cover-kicker { color: #f0dfc4; letter-spacing: .34em; }
.variant-14 .cover-names { font-style: italic; letter-spacing: .1em; color: #fff6e6; }
.variant-14 .open-btn { background: rgba(240,223,196,.15); border-color: rgba(240,223,196,.6); color: #f3e7d0; }
.variant-14 .sec { background: #f6efdf; }
.variant-14 .sec-title { color: #3f2f20; letter-spacing: .24em; }
.variant-14 .where-card { background: #fffaf0; border-color: #d8c6a6; }
.variant-14 .photo-lead { padding: 10px; background: #fffaf0; box-shadow: 0 18px 34px -26px rgba(60,40,20,.6); }
.variant-14 .photo-tape { display: none; }

/* 15 田园清新 */
.variant-15 .cover { background: #f4f1e4; color: #33402f; }
.variant-15 .cover-veil { background: linear-gradient(180deg, rgba(244,241,228,.45), rgba(244,241,228,.92)); }
.variant-15 .cover-frame { inset: 16px; border: 1px solid rgba(74,94,64,.35); }
.variant-15 .cover-frame::before, .variant-15 .cover-frame::after { display: none; }
.variant-15 .cover-kicker { color: #5d7350; letter-spacing: .3em; }
.variant-15 .cover-names { color: #33402f; text-shadow: none; }
.variant-15 .open-btn { background: #5d7350; border-color: #5d7350; color: #fff; }
.variant-15 .sec { background: #f7f5ec; }
.variant-15 .sec-title { color: #4a5e40; }
.variant-15 .sec-title::after { background: #9db089; }
.variant-15 .where-card { background: #fffdf5; border-color: #cfd9c2; }

/* 16 霓虹派对 */
.variant-16 .cover { background: #120f2a; color: #f3e9ff; }
.variant-16 .cover-bg { filter: saturate(1.4) contrast(1.05); opacity: .55; }
.variant-16 .cover-veil { background: linear-gradient(180deg, rgba(18,15,42,.55), rgba(18,15,42,.9)); }
.variant-16 .cover-frame { display: none; }
.variant-16 .cover-kicker { color: #9d8cff; letter-spacing: .3em; }
.variant-16 .cover-names { color: #fff; text-shadow: 0 0 18px rgba(140,110,255,.75); }
.variant-16 .open-btn { background: rgba(140,110,255,.25); border-color: rgba(180,160,255,.6); color: #f3e9ff; }
.variant-16 .sec { background: #171335; color: #efe9ff; }
.variant-16 .sec-title { color: #efe9ff; }
.variant-16 .sec-title::after { background: linear-gradient(90deg, #8f7bff, #ff7bc6); }
.variant-16 .where-card, .variant-16 .wish-item, .variant-16 .count-cell { background: rgba(255,255,255,.06); border-color: rgba(180,160,255,.28); color: #efe9ff; }
.variant-16 .where-place p, .variant-16 .intro-text { color: rgba(239,233,255,.75); }
.variant-16 .count-cell b { color: #c9bbff; }

/* 17 国潮朱红 */
.variant-17 .cover { background: #e8ddc8; color: #2e2a22; }
.variant-17 .cover-bg { filter: grayscale(1) contrast(.9); opacity: .2; }
.variant-17 .cover-veil { background: linear-gradient(180deg, rgba(232,221,200,.6), rgba(232,221,200,.94)); }
.variant-17 .cover-frame { inset: 18px; border: 1px solid rgba(155,58,47,.5); }
.variant-17 .cover-kicker { color: #9b3a2f; letter-spacing: .35em; }
.variant-17 .cover-names { writing-mode: vertical-rl; color: #2e2a22; text-shadow: none; letter-spacing: .16em; }
.variant-17 .cover-names .nm { display: block; }
.variant-17 .cover-names .amp { display: block; font-size: .5em; margin: .3em 0; color: #9b3a2f; }
.variant-17 .cover-inner::after {
  content: "囍"; position: absolute; right: 6px; bottom: -44px; width: 40px; height: 40px;
  display: grid; place-items: center; background: #9b3a2f; color: #f3e7cf; font-family: var(--serif); font-size: 20px;
}
.variant-17 .open-btn { background: #9b3a2f; border-color: #9b3a2f; color: #f6e9d2; }
.variant-17 .sec { background: #f2ead8; }
.variant-17 .sec-title { color: #8f3428; }
.variant-17 .sec-title::after { background: #9b3a2f; }
.variant-17 .where-card { background: #f9f2e2; border-color: #cbb894; }

/* 18 牛皮纸 */
.variant-18 .cover { background: #c9b08a; color: #322619; }
.variant-18 .cover-bg { filter: sepia(.55) contrast(.95); opacity: .75; }
.variant-18 .cover-veil { background: linear-gradient(180deg, rgba(201,176,138,.4), rgba(201,176,138,.9)); }
.variant-18 .cover-frame { inset: 16px; border: 8px solid rgba(250,245,233,.9); }
.variant-18 .cover-frame::before, .variant-18 .cover-frame::after { display: none; }
.variant-18 .cover-kicker { color: #6b533a; letter-spacing: .26em; font-size: 10px; }
.variant-18 .cover-names { color: #2e2317; text-shadow: none; font-size: clamp(26px, 7.6vw, 36px); }
.variant-18 .cover-names .nm { display: inline; }
.variant-18 .cover-names .amp { display: inline; margin: 0 .3em; font-size: .65em; }
.variant-18 .open-btn { background: #6b533a; border-color: #6b533a; color: #f7efe0; }
.variant-18 .sec { background: #d9c6a6; color: #33271a; }
.variant-18 .sec-title { color: #4a3623; }
.variant-18 .sec-title::after { background: rgba(74,54,35,.5); }
.variant-18 .where-card { background: #efe1c6; border-color: #b99f7c; }
.variant-18 .photo-lead { background: #f7efe0; padding: 10px; }

/* ============================================================
   新增装饰维度
   ============================================================ */

/* 构图 E：右对齐 + 右侧竖线 */
body.deco-5:not(.variant-2):not(.variant-6) .cover-inner,
body.deco-5 .cover-names, body.deco-5 .cover-date { text-align: right; }
body.deco-5:not(.variant-2):not(.variant-6) .cover::after {
  content: ""; position: absolute; z-index: 1; right: 28px; top: 26%; bottom: 26%; width: 1px;
  background: rgba(255,255,255,.4);
}

/* 构图 F：只留姓名与日期，弱化眉标 */
body.deco-6 .cover-kicker { display: none; }
body.deco-6 .cover-names { letter-spacing: .3em; }
body.deco-6 .cover-line { opacity: .7; }

/* 边框 D：无框 */
body.frame-4 .cover-frame { display: none; }

/* 照片 D：双色调 */
body.photo-4 .photo-lead img,
body.photo-4 .photo-mini img { filter: grayscale(1) sepia(.35) contrast(1.05); }

/* 标题 D：无下划线的窄字距小标题 */
body.title-4 .sec-title { font-size: 15px; letter-spacing: .3em; text-indent: .3em; font-weight: 400; }
body.title-4 .sec-title::after { display: none; }

/* ============================================================
   动态特效
   ============================================================ */

/* 封面照片缓慢推近 */
@keyframes coverZoom {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to   { transform: scale(1.1) translate3d(0, -1.6%, 0); }
}
.cover-bg { animation: coverZoom 26s ease-in-out infinite alternate; will-change: transform; }

/* 封面光尘 / 花瓣：柔光小点缓慢飘落 */
.fx-petals { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.fx-petals i {
  position: absolute; top: -8%;
  width: 7px; height: 7px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.9), rgba(255,255,255,0) 70%);
  opacity: 0; animation: petalFall linear infinite;
  filter: blur(.3px);
}
.fx-petals i:nth-child(1) { left: 8%;  animation-duration: 16s; animation-delay: -2s;  transform: scale(.9); }
.fx-petals i:nth-child(2) { left: 20%; animation-duration: 22s; animation-delay: -9s;  transform: scale(1.4); }
.fx-petals i:nth-child(3) { left: 34%; animation-duration: 18s; animation-delay: -4s; }
.fx-petals i:nth-child(4) { left: 47%; animation-duration: 25s; animation-delay: -13s; transform: scale(1.2); }
.fx-petals i:nth-child(5) { left: 59%; animation-duration: 17s; animation-delay: -7s;  transform: scale(.8); }
.fx-petals i:nth-child(6) { left: 70%; animation-duration: 23s; animation-delay: -15s; }
.fx-petals i:nth-child(7) { left: 82%; animation-duration: 19s; animation-delay: -5s;  transform: scale(1.3); }
.fx-petals i:nth-child(8) { left: 92%; animation-duration: 27s; animation-delay: -11s; transform: scale(.95); }
.fx-petals i:nth-child(9) { left: 27%; animation-duration: 29s; animation-delay: -20s; transform: scale(1.6); opacity: .0; }
.fx-petals i:nth-child(10){ left: 64%; animation-duration: 21s; animation-delay: -18s; transform: scale(1.1); }
@keyframes petalFall {
  0%   { transform: translate3d(0, -10vh, 0) rotate(0deg); opacity: 0; }
  12%  { opacity: .55; }
  70%  { opacity: .4; }
  100% { transform: translate3d(7vw, 112vh, 0) rotate(160deg); opacity: 0; }
}

/* 封面斜向光泽扫过 */
.cover-shine {
  position: absolute; inset: -20% -40%; z-index: 1; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.22) 48%, rgba(255,255,255,.04) 54%, transparent 62%);
  transform: translateX(-60%);
  animation: shineSweep 9s ease-in-out infinite;
}
@keyframes shineSweep {
  0%, 55% { transform: translateX(-70%); opacity: 0; }
  65%     { opacity: .9; }
  85%     { transform: translateX(70%); opacity: 0; }
  100%    { transform: translateX(70%); opacity: 0; }
}

/* 照片轻微呼吸 */
.photo-lead img, .album-item img { animation: photoBreath 18s ease-in-out infinite alternate; }
@keyframes photoBreath {
  from { transform: scale(1); }
  to   { transform: scale(1.045); }
}

/* 整屏场景：内容逐层升起 */
@keyframes sceneRise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}
.layout-page .sec.is-in > :not(.scene-photo) { animation: sceneRise .85s cubic-bezier(.2,.7,.2,1) both; }
.layout-page .sec.is-in > .sec-title { animation-delay: .06s; }
.layout-page .sec.is-in > .intro-text,
.layout-page .sec.is-in > .photo-lead { animation-delay: .12s; }

/* 标题下划线从左展开 */
.layout-page .sec .sec-title::after { transform: scaleX(0); transform-origin: center; transition: transform .9s cubic-bezier(.2,.7,.2,1) .15s; }
.layout-page .sec.is-in .sec-title::after { transform: scaleX(1); }

/* 倒计时数字跳动 */
@keyframes numPop {
  0% { transform: translateY(-2px) scale(1.16); opacity: .55; }
  100% { transform: none; opacity: 1; }
}
.count-cell b.is-tick { animation: numPop .42s ease-out; display: inline-block; }

/* 播放中的音乐按钮脉动 */
.music-btn.is-playing { animation: musicPulse 2.6s ease-in-out infinite; }
@keyframes musicPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,.28); }
  50%      { box-shadow: 0 0 0 10px rgba(255,255,255,0); }
}

/* 结尾二维码轻微浮动 */
.layout-page .end-qr { animation: qrFloat 5.5s ease-in-out infinite alternate; }
@keyframes qrFloat {
  from { transform: translateY(0); }
  to   { transform: translateY(-6px); }
}

/* 页码点当前项呼吸 */
.flip-dots a.is-on { animation: dotPulse 2.2s ease-in-out infinite; }
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,.35); }
  50%      { box-shadow: 0 0 0 6px rgba(255,255,255,0); }
}

/* 尊重省电/减少动态 */
@media (prefers-reduced-motion: reduce) {
  .cover-bg, .fx-petals i, .cover-shine, .photo-lead img, .album-item img,
  .layout-page .sec.is-in > :not(.scene-photo), .layout-page .end-qr,
  .music-btn.is-playing, .flip-dots a.is-on, .count-cell b.is-tick { animation: none !important; }
  .layout-page .sec .sec-title::after { transform: none; transition: none; }
}

/* ============================================================
   封面结构：四种完全不同的封面形态
   ============================================================ */

/* C2 纯文字封面：不用照片，靠排版和纸面撑起来 */
body.ctype-2 .cover {
  background:
    radial-gradient(circle at 50% 8%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 55%),
    linear-gradient(165deg, var(--paper), var(--paper-2));
  color: var(--ink);
  justify-content: center; text-align: center;
}
body.ctype-2 .cover-bg,
body.ctype-2 .cover-veil,
body.ctype-2 .cover-portraits,
body.ctype-2 .cover-shine { display: none; }
body.ctype-2 .cover-frame { inset: 20px; border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent); }
body.ctype-2 .cover-kicker { color: var(--accent); letter-spacing: .4em; margin-bottom: 26px; }
body.ctype-2 .cover-names { font-size: clamp(36px, 10vw, 52px); line-height: 1.3; letter-spacing: .14em; text-shadow: none; }
body.ctype-2 .cover-names .nm { display: block; }
body.ctype-2 .cover-names .amp { display: block; font-size: .42em; margin: .32em 0; opacity: .7; }
body.ctype-2 .cover-date { letter-spacing: .3em; margin-top: 18px; }
body.ctype-2 .cover-line { opacity: .75; }
body.ctype-2 .open-btn { margin-top: 8px; }
body.ctype-2 .fx-petals i { background: radial-gradient(circle, color-mix(in srgb, var(--accent) 55%, #fff), transparent 70%); }

/* C3 双联照片封面：左右各一张，中间金色囍 */
body.ctype-3 .cover { background: #100f0d; color: #f6f0e3; }
body.ctype-3 .cover-bg { display: none; }
body.ctype-3 .cover-veil {
  display: block; z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,.12) 40%, rgba(0,0,0,.78) 100%);
}
body.ctype-3 .cover-frame { z-index: 2; }
body.ctype-3 .cover-portraits {
  display: grid; grid-template-columns: 1fr 1fr; gap: 5px;
  position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%;
  margin: 0; padding: 0;
}
body.ctype-3 .po {
  width: 100%; height: 100%; max-width: none; aspect-ratio: auto;
  border-radius: 0; border: none; box-shadow: none; overflow: hidden;
}
body.ctype-3 .po img { width: 100%; height: 100%; object-fit: cover; }
body.ctype-3 .po-xi {
  position: absolute; left: 50%; top: 34%; transform: translate(-50%, -50%);
  background: transparent; color: #e6cd93; font-size: 52px; z-index: 2;
  text-shadow: 0 2px 16px rgba(0,0,0,.5);
}
body.ctype-3 .cover-inner { position: relative; z-index: 3; margin-top: auto; padding-bottom: 16vh; text-align: center; }
body.ctype-3 .cover-kicker { color: rgba(255,255,255,.82); }
body.ctype-3 .cover-names { color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.5); }
body.ctype-3 .cover-date, body.ctype-3 .cover-line { color: rgba(255,255,255,.86); }
body.ctype-3 .cover-names .nm { display: inline; }
body.ctype-3 .cover-names .amp { display: inline; margin: 0 .32em; font-size: .6em; }

/* C4 拼贴封面：两张白边宝丽来斜贴在纸上 */
body.ctype-4 .cover {
  background: linear-gradient(160deg, var(--paper), var(--paper-2));
  color: var(--ink);
}
body.ctype-4 .cover-bg { opacity: .18; filter: grayscale(.4); }
body.ctype-4 .cover-veil { display: none; }
body.ctype-4 .cover-frame { display: none; }
body.ctype-4 .cover-portraits { display: block; position: absolute; inset: 0; z-index: 1; }
body.ctype-4 .po {
  position: absolute; width: 43%; aspect-ratio: 3 / 4;
  border: 9px solid #fffdf7; border-bottom-width: 26px; border-radius: 2px;
  box-shadow: 0 22px 42px -26px rgba(0,0,0,.55); overflow: hidden;
}
body.ctype-4 .po img { width: 100%; height: 100%; object-fit: cover; }
body.ctype-4 .po-a { left: 5%; top: 12%; transform: rotate(-6deg); }
body.ctype-4 .po-b { right: 5%; top: 26%; transform: rotate(5deg); }
body.ctype-4 .po-xi {
  position: absolute; left: 50%; top: 8%; transform: translateX(-50%);
  font-family: var(--serif); font-size: 40px; color: var(--accent);
  background: transparent; z-index: 2;
}
body.ctype-4 .cover-inner { position: relative; z-index: 3; margin-top: auto; padding-bottom: 11vh; }
body.ctype-4 .cover-kicker { color: var(--ink-soft); }
body.ctype-4 .cover-names { font-size: clamp(24px, 7vw, 34px); text-shadow: none; }
body.ctype-4 .cover-names .nm { display: inline; }
body.ctype-4 .cover-names .amp { display: inline; margin: 0 .3em; font-size: .62em; opacity: .7; }

/* ============================================================
   封面结构 C5-C8：对照婚贝常见的四类封面
   ============================================================ */

.ctype-hero, .ctype-contact, .brush-cover { display: none; }

/* C5 白底双圆 + 联系新人 + 下方大图 */
body.ctype-5 .cover { background: #fff; color: #1d1a16; justify-content: flex-start; padding: 0; }
body.ctype-5 .cover-bg, body.ctype-5 .cover-veil, body.ctype-5 .cover-frame,
body.ctype-5 .cover-shine, body.ctype-5 .cover-couplet, body.ctype-5 .fx-petals { display: none; }
body.ctype-5 .cover-inner { display: none; }
body.ctype-5 .cover-portraits {
  display: flex; position: absolute; top: 8vh; left: 0; right: 0; z-index: 3;
  justify-content: space-around; align-items: center; margin: 0; padding: 0 6%;
}
body.ctype-5 .po {
  width: 38vw; max-width: 168px; aspect-ratio: 1 / 1; border-radius: 50%;
  overflow: hidden; border: none; box-shadow: none;
}
body.ctype-5 .po img { width: 100%; height: 100%; object-fit: cover; }
body.ctype-5 .po-xi { display: none; }
body.ctype-5 .ctype-contact {
  display: flex; position: absolute; top: calc(8vh + 38vw + 26px); left: 0; right: 0;
  z-index: 3; justify-content: space-around; align-items: flex-start; flex-wrap: wrap; padding: 0 8%;
}
body.ctype-5 .cc-person { display: flex; flex-direction: column; gap: 4px; align-items: center; }
body.ctype-5 .cc-person b { font-size: 18px; font-weight: 600; letter-spacing: .06em; }
body.ctype-5 .cc-person span { font-size: 11px; letter-spacing: .18em; color: #9a938a; text-transform: uppercase; }
body.ctype-5 .cc-call {
  width: 100%; margin-top: 18px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; border-radius: 8px; background: #c8322f; color: #fff; font-size: 15px;
}
body.ctype-5 .ctype-hero {
  display: block; position: absolute; left: 0; right: 0; bottom: 0; height: 36vh; overflow: hidden;
}
body.ctype-5 .ctype-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
body.ctype-5 .open-btn { position: absolute; right: 18px; bottom: 18px; z-index: 6; background: rgba(255,255,255,.9); color: #1d1a16; border-color: rgba(0,0,0,.15); }

/* C6 红拱门照片 */
body.ctype-6 .cover { background: #fff; color: #1d1a16; justify-content: flex-end; padding-bottom: 12vh; }
body.ctype-6 .cover-bg, body.ctype-6 .cover-veil, body.ctype-6 .cover-frame,
body.ctype-6 .cover-portraits, body.ctype-6 .cover-shine { display: none; }
body.ctype-6 .ctype-hero {
  display: block; position: absolute; top: 7vh; left: 9%; right: 9%; height: 51vh;
  border: 3px solid #bd2f2a; border-radius: 50% 50% 0 0 / 30% 30% 0 0; overflow: hidden;
}
body.ctype-6 .ctype-hero img { width: 100%; height: 100%; object-fit: cover; }
body.ctype-6 .cover-inner { position: relative; z-index: 3; text-align: center; }
body.ctype-6 .cover-kicker { display: none; }
body.ctype-6 .cover-names { font-size: clamp(20px, 6vw, 26px); color: #bd2f2a; text-shadow: none; letter-spacing: .04em; }
body.ctype-6 .cover-names .nm { display: inline; }
body.ctype-6 .cover-names .amp { display: inline; margin: 0 .2em; font-size: .7em; }
body.ctype-6 .cover-date { color: #4a443b; letter-spacing: .1em; }
body.ctype-6 .cover-line { color: #8a8378; }
body.ctype-6 .open-btn { background: #bd2f2a; border-color: #bd2f2a; color: #fff; }

/* C7 黑圆框 + 毛笔标题 */
body.ctype-7 .cover { background: #fbfaf6; color: #211e19; justify-content: flex-start; padding: 0; }
body.ctype-7 .cover-bg, body.ctype-7 .cover-veil, body.ctype-7 .cover-frame,
body.ctype-7 .cover-shine, body.ctype-7 .cover-couplet { display: none; }
body.ctype-7 .cover-portraits { display: block; position: absolute; top: 8vh; left: 50%; transform: translateX(-50%); z-index: 2; margin: 0; }
body.ctype-7 .po-a {
  width: 46vw; max-width: 200px; aspect-ratio: 1 / 1; border-radius: 50%;
  border: 12px solid #1c1a16; box-shadow: 0 0 0 3px #c8a96a inset; overflow: hidden;
}
body.ctype-7 .po-a img { width: 100%; height: 100%; object-fit: cover; }
body.ctype-7 .po-b, body.ctype-7 .po-xi { display: none; }
body.ctype-7 .cover-inner { position: relative; z-index: 3; margin-top: auto; padding-bottom: 13vh; text-align: center; }
body.ctype-7 .cover-kicker, body.ctype-7 .cover-date, body.ctype-7 .cover-line { display: none; }
body.ctype-7 .cover-names { font-size: 15px; letter-spacing: .24em; text-shadow: none; color: #6b6459; }
body.ctype-7 .cover-names .nm { display: inline; }
body.ctype-7 .cover-names .amp { display: inline; margin: 0 .4em; font-size: .8em; }
body.ctype-7 .brush-cover { display: block; position: absolute; top: 48vh; left: 0; right: 0; text-align: center; z-index: 3; }
body.ctype-7 .brush-date { display: none; }
body.ctype-7 .brush-title {
  font-family: 'Ma Shan Zheng', var(--serif); font-size: clamp(30px, 9vw, 42px);
  font-weight: 400; line-height: 1.1; color: #211e19; letter-spacing: .04em;
}
body.ctype-7 .brush-en {
  font-family: 'Zhi Mang Xing', cursive; font-size: 16px; color: #211e19;
  letter-spacing: .08em; margin-top: 6px;
}
body.ctype-7 .brush-names { margin-top: 12px; font-size: 13px; letter-spacing: .14em; color: #8a8378; }
body.ctype-7 .brush-names span { color: #c0392b; margin: 0 6px; }
body.ctype-7 .open-btn { background: #1c1a16; border-color: #1c1a16; color: #fff; }

/* C8 全屏照片 + 毛笔大字 */
body.ctype-8 .cover { color: #fff; }
body.ctype-8 .cover-veil { background: linear-gradient(180deg, rgba(0,0,0,.18) 30%, rgba(0,0,0,.55) 78%, rgba(0,0,0,.62) 100%); }
body.ctype-8 .cover-frame, body.ctype-8 .cover-portraits, body.ctype-8 .cover-couplet,
body.ctype-8 .cover-inner { display: none; }
body.ctype-8 .brush-cover {
  display: block; position: relative; z-index: 3; text-align: center;
  margin-top: auto; padding-bottom: 12vh; width: 100%;
}
body.ctype-8 .brush-date { font-family: 'Zhi Mang Xing', cursive; font-size: 20px; letter-spacing: .12em; color: #fff; margin-bottom: 8px; }
body.ctype-8 .brush-title {
  font-family: 'Ma Shan Zheng', var(--serif); font-size: clamp(46px, 15vw, 76px);
  font-weight: 400; line-height: 1.08; letter-spacing: .04em; color: #fff;
  text-shadow: 0 3px 18px rgba(0,0,0,.45);
}
body.ctype-8 .brush-en {
  font-family: 'Zhi Mang Xing', cursive; font-size: 22px; letter-spacing: .22em;
  color: rgba(255,255,255,.92); margin-top: 4px;
}
body.ctype-8 .brush-names { margin-top: 18px; font-size: 15px; letter-spacing: .12em; color: #fff; }
body.ctype-8 .brush-names span { color: #e8c07a; margin: 0 8px; font-family: var(--serif); }
body.ctype-8 .open-btn { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.55); color: #fff; }

/* C7/C8 收尾修正 */
body.ctype-7 .cover-names { display: none; }
body.ctype-7 .brush-cover::after {
  content: "诚邀生命中重要的你，来见证这场双向奔赴的圆满";
  display: block; margin: 26px auto 0; max-width: 300px;
  font-size: 13px; line-height: 2; letter-spacing: .08em; color: #7c756a;
}
body.ctype-8 .brush-title { font-size: clamp(36px, 11.5vw, 58px); white-space: nowrap; letter-spacing: .02em; }
body.ctype-8 .brush-cover { padding-bottom: 15vh; }

/* ---------- 变体 19：白纸极简（对照婚贝白底模板） ---------- */
.variant-19 .cover {
  background: #fff; color: #1b1916; justify-content: flex-end; padding-bottom: 12vh;
}
.variant-19 .cover-bg { filter: grayscale(.15) brightness(1.12); opacity: .92; }
.variant-19 .cover-veil { background: linear-gradient(180deg, rgba(255,255,255,.18) 32%, rgba(255,255,255,.82) 76%, rgba(255,255,255,.94) 100%); }
.variant-19 .cover-frame { inset: 18px; border: 1px solid rgba(28,26,22,.18); }
.variant-19 .cover-kicker { color: #6f685d; letter-spacing: .4em; }
.variant-19 .cover-names { color: #1b1916; text-shadow: 0 1px 14px rgba(255,255,255,.6); font-weight: 400; letter-spacing: .12em; }
.variant-19 .cover-names .nm { display: block; }
.variant-19 .cover-names .amp { display: block; font-size: .42em; margin: .28em 0; color: #a8433a; }
.variant-19 .cover-date { color: #3d3830; letter-spacing: .22em; }
.variant-19 .cover-line { color: #6f685d; }
.variant-19 .open-btn { background: #fff; border-color: #1b1916; color: #1b1916; }
.variant-19 .sec { background: #fff; color: #1b1916; }
.variant-19 .sec-title { color: #1b1916; font-size: 15px; letter-spacing: .38em; font-weight: 400; }
.variant-19 .sec-title::after { background: #a8433a; width: 42px; }
.variant-19 .intro-text { color: #4a453c; line-height: 2.2; }
.variant-19 .intro-sign { color: #8a8378; }
.variant-19 .sec-count { background: #fff; color: #1b1916; }
.variant-19 .sec-count .count-label { color: #6f685d; }
.variant-19 .sec-count .count-cell { border-color: #e5e1d6; background: #fff; }
.variant-19 .sec-count .count-cell b { color: #a8433a; }
.variant-19 .sec-count .count-cell span { color: #8a8378; }
.variant-19 .sec-where { background: #fff; }
.variant-19 .where-card { border: none; border-top: 1px solid #e5e1d6; border-bottom: 1px solid #e5e1d6; background: transparent; box-shadow: none; }
.variant-19 .where-time b { color: #a8433a; }
.variant-19 .flow-dot { background: #a8433a; }
.variant-19 .flow-item::before { border-color: #a8433a; }
.variant-19 .wish-item { background: #fff; border: none; border-bottom: 1px solid #eee9dd; border-radius: 0; }
.variant-19 .wish-wall { background: #fff; }
.variant-19 .album-item img { border-radius: 6px; }
.variant-19 .sec-end { background: #fff; color: #1b1916; }
.variant-19 .sec-end .end-names { color: #1b1916; }
.variant-19 .qr-box { border-color: #e5e1d6; }

/* ---------- 对比度修正：深色屏不再出现“同色文字” ---------- */
.layout-page .sec-wish .wish-content { color: #fff; font-size: 14px; }
.layout-page .sec-wish .wish-name { color: #f0e2c4; }
.layout-page .sec-wish .wish-item { background: rgba(255,255,255,.07); border-left-color: rgba(240,226,196,.6); }
.layout-page .sec-wish input::placeholder,
.layout-page .sec-wish textarea::placeholder { color: rgba(255,255,255,.55); }
.layout-page .sec-wish select,
.layout-page .sec-wish .quick-pick { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.2); }
.layout-page .sec-wish select option { background: #211f1b; color: #fff; }
.layout-page .sec-wish .form-tip { color: rgba(255,255,255,.7); }
.layout-page .sec-end .end-title,
.layout-page .sec-end .end-names { color: #fff; }
.layout-page .sec-end .end-date { color: rgba(255,255,255,.82); }
.layout-page .sec-end .orn { color: rgba(255,255,255,.5); }

/* 深色主色主题（red/green 等）结尾屏统一白字 */
.layout-page .sec-end { color: #fbf7ee; }

/* 深色倒计时屏标题/说明统一浅色 */
.variant-7 .sec-count .sec-title,
.variant-13 .sec-count .sec-title { color: #fff; }
.variant-7 .sec-count .sec-title::after,
.variant-13 .sec-count .sec-title::after { background: rgba(255,255,255,.5); }
