@font-face {
    font-family: "YQ-LongCang";
    src: url("/assets/fonts/LongCang-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "YQ-YuWeiLiShu";
    src: url("/assets/fonts/YuWeiShuFaLiShuJianTi-1.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

* { box-sizing: border-box; }

:root {
    --mx: 50%;
    --my: 50%;
    --rx: 0deg;
    --ry: 0deg;
    --depth-x: 0px;
    --depth-y: 0px;
    --china-red: #b30d16;
    --deep-red: #71070d;
    --gold: #ffd35a;
    --gold-light: #fff4b8;
    --paper: #fff3dd;
}

html { min-height: 100%; background: #7d060d; overflow: auto; }
html.invite-page { overflow: hidden; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Microsoft YaHei", Arial, sans-serif;
    color: #5b1d13;
    background: #7d060d;
    overflow-x: hidden;
}

body::before {
    display: none;
}

.stage-bg {
    position: fixed;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.stage-bg::before {
    display: none;
}

.china-red-field {
    position: absolute;
    inset: 0;
    background: #7d060d;
}

.cloud-pattern-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.cloud-layer-back {
    opacity: .85;
    transform: translate3d(calc(var(--depth-x) * -.04), calc(var(--depth-y) * -.02), -80px);
}

.cloud-layer-front {
    opacity: .85;
    transform: translate3d(calc(var(--depth-x) * .06), calc(var(--depth-y) * .04), 40px);
}

.page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    perspective: 1200px;
    position: relative;
    z-index: 2;
}

html.invite-page .page {
    align-items: flex-start;
    padding-top: 0;
}

html.invite-page:not(.invite-detail) .page {
    padding-top: 50px;
}

html.invite-detail .page {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0 32px;
    margin-top: -50px;
}

.invite-page-title {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    font-size: 20px;
    color: rgba(255, 231, 154, .72);
    letter-spacing: .36em;
    padding: 14px 0 18px;
    text-align: center;
    font-weight: 300;
    text-shadow: 0 1px 4px rgba(79, 0, 0, .28);
    background: linear-gradient(transparent, rgba(125, 6, 13, .5));
    pointer-events: none;
}

.invite-scene,
.invite-with-actions {
    flex-shrink: 0;
}

.hero {
    width: min(1180px, 100%);
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    transform-style: preserve-3d;
    transform: rotateX(var(--rx)) rotateY(var(--ry));
}

.seal {
    margin-bottom: 20px;
    padding: 9px 18px;
    border: 2px solid rgba(255, 235, 171, .95);
    border-radius: 6px;
    color: #ffe79a;
    background: rgba(120, 0, 8, .42);
    letter-spacing: .32em;
    font-weight: 800;
    box-shadow: inset 0 0 16px rgba(255, 220, 120, .22), 0 10px 28px rgba(75, 0, 0, .2);
    transform: translateZ(90px) rotate(-2deg);
    animation: seal-stamp .55s ease-out both;
}

.brush-wrap {
    position: relative;
    width: min(1060px, 96vw);
    padding: clamp(20px, 4vw, 46px) 18px clamp(28px, 5vw, 62px);
    transform-style: preserve-3d;
    transform: translateZ(120px);
}

.brush-wrap::before {
    display: none;
}

.brush-wrap::after {
    content: "";
    position: absolute;
    left: 10%;
    right: 10%;
    bottom: 13%;
    height: 16px;
    border-radius: 50%;
    background: rgba(70, 0, 0, .24);
    transform: translateZ(-80px) rotateX(70deg);
}

.brush,
.brush-shadow {
    font-family: "YQ-YuWeiLiShu", "YQ-LongCang", "STXingkai", "FZYaoti", "STKaiti", "KaiTi", serif;
    font-size: clamp(50px, 9.4vw, 140px);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: .08em;
    white-space: normal;
    word-break: keep-all;
}

.brush {
    position: relative;
    display: inline-block;
    color: #ffd450;
    -webkit-text-stroke: 1px rgba(112, 35, 0, .52);
    transform: translateZ(105px);
    animation: brush-appear .7s ease-out both, brush-float 5.2s ease-in-out 1s infinite;
}

.brush::before {
    display: none;
}

.brush::after {
    display: none;
}

.brush-shadow {
    position: absolute;
    inset: clamp(20px, 4vw, 46px) 18px auto;
    color: rgba(70, 0, 0, .22);
    transform: translate3d(18px, 24px, -70px) rotateX(58deg) scaleY(.55);
    transform-origin: center bottom;
    user-select: none;
}

.ink-stroke {
    position: absolute;
    left: 14%;
    right: 14%;
    bottom: 12%;
    height: 18px;
    border-radius: 999px;
    background: #ffd45b;
    transform: translateZ(76px) scaleX(0);
    transform-origin: left center;
    animation: ink-stroke-write .8s ease-out .35s both;
}

.hero-subtitle {
    margin: 0 0 28px;
    color: #fff0b3;
    font-size: clamp(18px, 2.3vw, 30px);
    letter-spacing: .38em;
    text-shadow: 0 3px 10px rgba(79, 0, 0, .38);
    transform: translateZ(105px);
    animation: subtitle-in .55s ease-out .35s both;
}

.enter,
.button,
button {
    display: inline-block;
    border: 0;
    border-radius: 999px;
    padding: 14px 30px;
    background: #d71920;
    color: #fff;
    text-decoration: none;
    font-family: "Microsoft YaHei", Arial, sans-serif;
    font-weight: 800;
    box-shadow: 0 12px 28px rgba(128, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .38);
    cursor: pointer;
    transform: translateZ(100px);
    transition: transform .18s ease, box-shadow .18s ease;
}

.enter:hover,
button:hover {
    transform: translateZ(112px) translateY(-2px);
    box-shadow: 0 16px 34px rgba(128, 0, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .42);
}

.hint { display: none; }
.hint-text { margin: -4px 0 6px; color: #9b5a28; font-size: 14px; }

.card {
    width: min(960px, 100%);
    background: rgba(255, 248, 236, .96);
    border: 1px solid rgba(255, 255, 255, .56);
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 20px 58px rgba(93, 0, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .45);
}

.invite-3d { animation: invite-pop .55s ease-out both; transform-style: preserve-3d; }
.invite-scene {
    width: min(90vw, calc((100vh - 56px) * 3 / 4.25 * 1.15));
    perspective: 1800px;
    transform-style: preserve-3d;
}

.invite-book {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4.25;
    transform-style: preserve-3d;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.invite-page {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.invite-page-inner {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0;
    transition: opacity 1.1s ease 1.05s;
}

.invite-book.is-open .invite-page-inner {
    opacity: 1;
    clip-path: inset(calc(48.8% - 18px) 0 0 0);
    transform: scaleX(1.004);
}

.invite-cover-fold {
    position: absolute;
    inset: 0;
    z-index: 2;
    transform-style: preserve-3d;
    pointer-events: none;
}

.invite-cover-half {
    position: absolute;
    left: 0;
    width: 100%;
    height: 50%;
    background: transparent;
    transform-style: preserve-3d;
    transition: transform 2.1s cubic-bezier(.18, .72, .18, 1);
    will-change: transform;
}

.invite-cover-half img,
.invite-fold-face img {
    position: absolute;
    left: 0;
    width: 100%;
    height: 200%;
    object-fit: contain;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.invite-fold-face {
    position: absolute;
    inset: 0;
    overflow: hidden;
    backface-visibility: hidden;
    background: transparent;
    transform-style: preserve-3d;
}

.invite-fold-front {
    transform: rotateX(0deg) translateZ(.2px);
}

.invite-fold-back {
    transform: rotateX(180deg) translateZ(.2px);
}

.invite-cover-top {
    display: none;
}

.invite-cover-top img {
    top: 0;
}

.invite-cover-bottom {
    left: 0;
    bottom: 0;
    width: 100%;
    height: 50%;
    transform-origin: center top;
}

.invite-cover-bottom .invite-fold-front img,
.invite-cover-bottom .invite-fold-back img {
    height: 200%;
}

.invite-cover-bottom .invite-fold-front img {
    bottom: 0;
}

.invite-cover-bottom .invite-fold-back img {
    top: 7px;
}

.invite-book.is-open .invite-cover-bottom {
    transform: rotateX(116deg) translate3d(0, -2px, 16px) scaleX(1.006);
    opacity: 1;
}

.invite-img {
    width: 100%;
    max-height: 520px;
    object-fit: contain;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.setting-preview {
    width: 100%;
    max-height: 220px;
    object-fit: contain;
    border: 1px solid #f1d0aa;
    border-radius: 14px;
    background: #fffaf0;
    padding: 8px;
}

.setting-audio {
    width: 100%;
}

.form-card { max-width: 560px; }
.admin.form-card { max-width: min(1120px, 100%); }

h1 { margin-top: 0; color: #b30d16; font-family: "YQ-LongCang", "STKaiti", "KaiTi", serif; font-weight: 400; }
form { display: grid; gap: 14px; }
.inline-form { display: inline-block; }
label { display: grid; gap: 7px; font-weight: 700; }
input, select { width: 100%; border: 1px solid #efb183; border-radius: 14px; padding: 12px 14px; background: #fffdf8; color: #5b1d13; }
.form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 6px;
}

.form-actions button {
    flex: 1;
}

.back-invite-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 128px;
    border: 1px solid rgba(179, 13, 22, .22);
    border-radius: 999px;
    padding: 12px 18px;
    color: #b30d16;
    font-weight: 800;
    background: linear-gradient(135deg, #fff9ec, #ffe7bd);
    box-shadow: 0 10px 22px rgba(128, 0, 0, .12);
}
.check { display: flex; align-items: center; gap: 8px; }
.check input { width: auto; }
.error { color: #b00020; }
.success { color: #137a2a; }
.empty-invite { min-height: 320px; border: 1px solid rgba(255, 213, 103, .55); display: flex; align-items: center; justify-content: center; color: #ffd567; background: rgba(125, 6, 13, .34); }
.detail { display: grid; grid-template-columns: 120px 1fr; gap: 10px; }
.detail dt { font-weight: 700; }
nav { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
a, nav a, .pager a, .enter, .button, .accept-btn, .reject-btn, .back-invite-btn { text-decoration: none; }
nav a, .pager a { color: #b30d16; font-weight: 700; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 24px 0; }
.stats div { padding: 24px; border-radius: 22px; background: #fff4df; text-align: center; }
.stats b { display: block; font-size: 44px; color: #d71920; }
.stats span { color: #8a3a16; }
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 16px; overflow: hidden; }
th, td { padding: 12px; border-bottom: 1px solid #f4d7bd; text-align: left; }
th { background: #d71920; color: #fff; }
.pager { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 20px; }

/* ===== 管理后台样式 ===== */
.admin {
    width: min(1120px, 100%);
}

.admin h1 {
    text-align: center;
    font-family: "Microsoft YaHei", Arial, sans-serif;
    font-weight: 800;
    font-size: clamp(24px, 4vw, 36px);
    margin-bottom: 24px;
}

.admin h2 {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #5b1d13;
    margin: 28px 0 14px;
}

.admin nav {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 10px 14px;
    border-radius: 14px;
    background: #fff8ef;
    border: 1px solid #f1d9be;
}

.admin nav a {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border-radius: 10px;
    color: #8a3a16;
    font-weight: 700;
    font-size: 14px;
    transition: background .15s, color .15s;
}

.admin nav a:hover {
    background: #d71920;
    color: #fff;
}

.admin form:not(.inline-form) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.admin form:not(.inline-form) button,
.admin form:not(.inline-form) .success,
.admin form:not(.inline-form) .error {
    grid-column: 1 / -1;
}

.admin .setting-preview,
.admin .setting-audio,
.admin .hint-text {
    align-self: end;
}

.admin .stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 20px 0 28px;
}

.admin .stats div {
    padding: 28px 20px;
    border-radius: 18px;
    background: linear-gradient(135deg, #fff8ef, #fff1dc);
    border: 1px solid #f1d9be;
    text-align: center;
}

.admin .stats b {
    display: block;
    font-size: 40px;
    color: #d71920;
    font-family: "Microsoft YaHei", Arial, sans-serif;
}

.admin .stats span {
    color: #8a3a16;
    font-size: 14px;
}

.admin table {
    border-radius: 14px;
    border: 1px solid #f1d9be;
    overflow: hidden;
}

.admin th {
    background: #d71920;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    text-transform: none;
    padding: 12px 14px;
    white-space: nowrap;
}

.admin td {
    padding: 10px 14px;
    font-size: 13px;
    border-bottom: 1px solid #f4e8d8;
}

.admin tr:last-child td {
    border-bottom: none;
}

.admin tr:hover td {
    background: #fff9f0;
}

.admin .pager {
    margin-top: 16px;
    padding: 8px 0;
}

.admin .pager a,
.admin .pager span {
    font-size: 14px;
}

.admin button,
.admin .enter,
.admin .button,
.admin .copy-btn,
.admin .back-invite-btn {
    box-shadow: none;
    transform: none;
}

.admin button:hover,
.admin .enter:hover,
.admin .button:hover,
.admin .copy-btn:hover,
.admin .back-invite-btn:hover,
.admin .share-btn-admin:hover {
    box-shadow: none;
    transform: none;
}

.share-btn-admin {
    display: inline-block;
    border: 1px solid #07c160;
    border-radius: 6px;
    padding: 6px 14px;
    color: #07c160;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    background: transparent;
    transition: background .15s, color .15s;
}

.share-btn-admin:hover {
    background: #07c160;
    color: #fff;
}

.share-btn-admin.small {
    padding: 3px 10px;
    font-size: 12px;
}

.link-copy-row {
    display: grid;
    grid-template-columns: auto minmax(220px, 1fr) auto auto;
    gap: 10px;
    align-items: center;
}

.table-link {
    min-width: 260px;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 12px;
}

.copy-btn {
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    color: #7d060d;
    font-weight: 800;
    cursor: pointer;
    background: linear-gradient(135deg, #ffe8a8, #d9a936);
    box-shadow: 0 8px 18px rgba(93, 0, 0, .14);
}

.copy-btn.small {
    padding: 8px 12px;
    font-size: 13px;
}

.reject-btn.small {
    display: inline-block;
    width: auto;
    padding: 4px 12px;
    font-size: 12px;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
}

.status {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.status-done {
    color: #146c2e;
    background: #e4f7e7;
}

.status-unused {
    color: #986800;
    background: #fff0c2;
}

.status-declined {
    color: #9a1515;
    background: #ffe1dd;
}

.invite-with-actions {
    position: relative;
    width: min(90vw, calc((100vh - 56px) * 3 / 4.25 * 1.15));
}

.invite-actions {
    position: absolute;
    left: calc(min(90vw, calc((100vh - 56px) * 3 / 4.25 * 1.15)) + 60px);
    top: 50%;
    display: grid;
    gap: 14px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-50%) translateX(18px);
    pointer-events: none;
    transition: opacity .55s ease .45s, transform .55s ease .45s, visibility 0s .55s;
}

.invite-actions.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
    pointer-events: auto;
    transition: opacity .55s ease, transform .55s ease, visibility 0s;
}

.lookup-form {
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 249, 236, .92);
    box-shadow: 0 18px 40px rgba(93, 0, 0, .16);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lookup-form label {
    color: #7d060d;
    font-weight: 800;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lookup-form input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e5d9cb;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}

.lookup-form input:focus {
    border-color: #b8956a;
}

.invite-lookup-detail {
    max-height: 330px;
    overflow: auto;
    padding: 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 14px 34px rgba(93, 0, 0, .12);
}

.accept-btn,
.reject-btn {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 999px;
    padding: 14px 18px;
    font-weight: 800;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(93, 0, 0, .2);
}

.accept-btn {
    color: #7d060d;
    background: linear-gradient(135deg, #ffe8a8, #d9a936);
}

.reject-btn {
    color: #fff6db;
    background: rgba(125, 6, 13, .86);
}

.thanks-card {
    text-align: center;
}

.schedule-page {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px 16px 60px;
    min-height: 100vh;
}

.schedule-page .schedule-card {
    width: 100%;
    max-width: 420px;
    background: #fffdf8;
    border-radius: 20px;
    box-shadow: 0 4px 32px rgba(60, 40, 20, .10), 0 0 0 1px rgba(180, 150, 120, .08);
    overflow: hidden;
    position: relative;
}

.schedule-page .schedule-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #c9a87c, #d4b98c, #dfc9a0, #d4b98c, #c9a87c, #bf9d70);
    z-index: 2;
    border-radius: 4px 4px 0 0;
}

.schedule-page .card-inner {
    padding: 32px 28px 28px;
}

.schedule-page .header {
    text-align: center;
    padding-bottom: 24px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e5d9cb;
}

.schedule-page .header-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
    color: #d4b98c;
    font-size: 8px;
    letter-spacing: 4px;
}

.schedule-page .header-ornament .line-dot {
    width: 28px;
    height: 1px;
    background: #ede0cd;
}

.schedule-page .header-ornament .diamond {
    width: 7px;
    height: 7px;
    background: #c9a87c;
    border-radius: 1.5px;
    transform: rotate(45deg);
    opacity: .7;
}

.schedule-page .title-main {
    font-family: "PingFang SC", "Noto Serif SC", "STSong", Georgia, serif;
    font-size: 22px;
    font-weight: 700;
    color: #3e3232;
    letter-spacing: .06em;
    line-height: 1.3;
    margin-bottom: 6px;
}

.schedule-page .name-highlight {
    color: #8b5e3c;
    position: relative;
    display: inline-block;
}

.schedule-page .name-highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 4px;
    right: 4px;
    height: 3px;
    background: rgba(200, 160, 110, .25);
    border-radius: 2px;
    z-index: -1;
}

.schedule-page .title-sub {
    font-family: "PingFang SC", "Noto Serif SC", "STSong", Georgia, serif;
    font-size: 13px;
    font-weight: 500;
    color: #8a7b72;
    letter-spacing: .08em;
    margin-bottom: 4px;
}

.schedule-page .schedule-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .16em;
    color: #b8956a;
    padding: 5px 18px;
    border: 1px solid #ede0cd;
    border-radius: 20px;
    margin-top: 10px;
    background: rgba(250, 240, 225, .5);
}

.schedule-page .day-block {
    padding: 18px 0 16px;
    border-bottom: 1px dashed #e5d9cb;
}

.schedule-page .day-block:last-of-type {
    border-bottom: none;
    padding-bottom: 6px;
}

.schedule-page .day-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.schedule-page .day-dot {
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #c9a87c;
    box-shadow: 0 0 0 4px rgba(200, 160, 120, .12);
    position: relative;
}

.schedule-page .day-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #fff;
}

.schedule-page .day-title {
    font-family: "PingFang SC", "Noto Serif SC", "STSong", Georgia, serif;
    font-size: 17px;
    font-weight: 700;
    color: #3e3232;
    letter-spacing: .05em;
}

.schedule-page .day-number {
    color: #8b5e3c;
    font-size: 20px;
    font-weight: 800;
    margin-right: 2px;
}

.schedule-page .day-items {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-left: 20px;
}

.schedule-page .schedule-item {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
    font-size: 14px;
    line-height: 1.6;
    color: #5c4f4a;
    letter-spacing: .03em;
}

.schedule-page .schedule-item .time,
.schedule-page .schedule-item .time-range {
    font-weight: 600;
    color: #9b7b5b;
    font-size: 13.5px;
    letter-spacing: .04em;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.schedule-page .schedule-item .desc {
    color: #5c4f4a;
    flex: 1;
    min-width: 180px;
}

.schedule-page .highlight-venue {
    color: #7a5c3e;
    font-weight: 500;
}

.schedule-page .dot-sep {
    color: #d4b98c;
    margin: 0 3px;
}

.schedule-page .sub-item {
    font-size: 13.5px;
    color: #8a7b72;
}

.schedule-page .sub-item .time {
    font-size: 13px;
    color: #8a7b72;
    font-weight: 500;
}

.schedule-page .note-item {
    font-style: italic;
    color: #8a7b72;
    font-size: 13.5px;
}

.schedule-page .farewell-block {
    text-align: center;
    padding: 22px 0 10px;
    border-bottom: none;
}

.schedule-page .farewell-block .day-header {
    justify-content: center;
    margin-bottom: 8px;
}

.schedule-page .farewell-block .day-items {
    padding-left: 0;
    align-items: center;
    text-align: center;
}

.schedule-page .farewell-block .schedule-item {
    justify-content: center;
    color: #8a7b72;
}

.schedule-page .farewell-icon {
    font-size: 18px;
    margin: 0 4px;
    opacity: .7;
}

.schedule-page .hotel-info {
    margin-top: 18px;
    padding: 18px 20px;
    background: #fdf3e4;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(210, 185, 150, .2);
}

.schedule-page .hotel-name {
    font-family: "PingFang SC", "Noto Serif SC", "STSong", Georgia, serif;
    font-size: 14px;
    font-weight: 600;
    color: #3e3232;
    letter-spacing: .05em;
    margin-bottom: 2px;
}

.schedule-page .hotel-sub {
    font-size: 11.5px;
    color: #8a7b72;
    letter-spacing: .04em;
}

.schedule-page .hotel-address {
    font-size: 12px;
    color: #8a7b72;
    letter-spacing: .03em;
    line-height: 1.5;
    margin-top: 4px;
}

.schedule-page .footer-ornament {
    text-align: center;
    margin-top: 20px;
    color: #ede0cd;
    font-size: 10px;
    letter-spacing: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.schedule-page .fline {
    width: 32px;
    height: 1px;
    background: #ede0cd;
}

.schedule-page .fdot {
    width: 5px;
    height: 5px;
    background: #c9a87c;
    border-radius: 50%;
    opacity: .5;
}

.schedule-link-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 24px;
    font-size: 14px;
    text-decoration: none;
    border-radius: 8px;
}

@media screen and (max-width: 440px) {
    .schedule-page .card-inner { padding: 26px 18px 22px; }
    .schedule-page .title-main { font-size: 20px; }
    .schedule-page .day-title { font-size: 16px; }
    .schedule-page .day-number { font-size: 18px; }
    .schedule-page .schedule-item { font-size: 13px; }
    .schedule-page .day-items { padding-left: 16px; }
}

@keyframes seal-stamp { from { opacity: 0; transform: translateZ(120px) scale(1.45) rotate(-5deg); } to { opacity: 1; transform: translateZ(90px) scale(1) rotate(-2deg); } }
@keyframes brush-appear { from { opacity: 0; clip-path: inset(0 100% 0 0); transform: translateZ(105px) translateX(-16px); } to { opacity: 1; clip-path: inset(0 0 0 0); transform: translateZ(105px) translateX(0); } }
@keyframes brush-float { 0%, 100% { transform: translateZ(105px) translateY(0); } 50% { transform: translateZ(116px) translateY(-8px); } }
@keyframes ink-stroke-write { from { opacity: 0; transform: translateZ(76px) scaleX(0); } to { opacity: 1; transform: translateZ(76px) scaleX(1); } }
@keyframes subtitle-in { from { opacity: 0; transform: translateZ(80px) translateY(12px); } to { opacity: 1; transform: translateZ(105px) translateY(0); } }
@keyframes invite-pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }

@media (min-width: 701px) {
    html.invite-page .page {
        padding-top: 0;
        padding-bottom: 0;
    }
}

@media (max-width: 700px) {
    .page { padding: 16px; }
    .card { padding: 18px; }
    .hero { min-height: 74vh; }
    html.invite-detail .page { padding: 16px 16px 0; }
    .invite-page-title { font-size: 16px; margin-bottom: 8px; }
    .brush, .brush-shadow { letter-spacing: .03em; word-break: break-word; }
    .hero-subtitle { letter-spacing: .16em; }
    .seal { letter-spacing: .16em; }
    table { font-size: 13px; display: block; overflow: auto; }
    .stats { grid-template-columns: 1fr; }
    .admin form:not(.inline-form) { grid-template-columns: 1fr; }
    .link-copy-row { grid-template-columns: 1fr; }
    .invite-with-actions { width: 100%; }
    .invite-actions { position: static; transform: translateY(12px); grid-template-columns: 1fr 1fr; }
    .invite-actions.is-visible { transform: translateY(0); }
    .invite-actions-lookup { grid-template-columns: 1fr; }
    .cloud-layer-back { opacity: .85; }
    .cloud-layer-front { opacity: .85; }
    .admin nav { gap: 4px; padding: 8px; }
    .admin nav a { padding: 6px 12px; font-size: 13px; }
    .admin .stats { grid-template-columns: 1fr; gap: 10px; }
    .admin .stats b { font-size: 32px; }
}

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

/* ===== 查看登记独立页面 ===== */
.lookup-page-card {
    max-width: 480px;
    text-align: center;
}

.lookup-page-card h1 {
    margin-bottom: 20px;
}

.lookup-detail {
    text-align: left;
    padding: 16px 0;
    border-top: 1px solid #f1d9be;
    border-bottom: 1px solid #f1d9be;
    margin: 16px 0;
}

.lookup-detail dt {
    color: #8a3a16;
    font-size: 14px;
}

.lookup-detail dd {
    color: #5b1d13;
    font-size: 15px;
}

/* ===== 右上角浮动分享按钮 ===== */
.share-fab {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 999;
    height: 36px;
    padding: 0 20px;
    border: none;
    border-radius: 18px;
    background: linear-gradient(135deg, #c9a84c, #f5d98a, #c9a84c);
    color: #7d060d;
    font-family: "Microsoft YaHei", Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .1em;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .4);
    transition: transform .18s, box-shadow .18s;
}

.share-fab:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 18px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .4);
}

.share-fab:active {
    transform: scale(.96);
}

.share-fab svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ===== 微信分享引导浮层 ===== */
.wechat-share-guide {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, .72);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 16px 24px;
    cursor: pointer;
    animation: wechat-guide-in .25s ease-out;
}

.wechat-guide-arrow {
    width: 60px;
    height: 60px;
    margin-right: 16px;
    margin-bottom: 12px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M32 8 L44 28 L36 28 L36 48 L28 48 L28 28 L20 28 Z' fill='%23fff'/%3E%3C/svg%3E") no-repeat center/contain;
}

.wechat-guide-text {
    background: #fff;
    color: #333;
    border-radius: 14px;
    padding: 20px 28px;
    font-size: 16px;
    line-height: 1.7;
    max-width: 300px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .2);
}

.wechat-guide-text b {
    color: #07c160;
}

@keyframes wechat-guide-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
