:root {
    --primary-color: #23182b;
    --accent-color: #e9c46a;
    --accent-gold: #d4a373;
    --text-primary: #ffffff;
    --text-secondary: rgba(243, 229, 171, 0.78);
    --bg-light: #0d0a14;
    --bg-dark: #08060c;
    --card-bg: rgba(35, 27, 44, 0.78);
    --font-heading: 'Cormorant Garamond', 'Noto Serif SC', serif;
    --font-body: 'Montserrat', sans-serif;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Typography & Titles */
h1, h2, h3, .nav-brand {
    font-family: var(--font-heading);
    font-weight: 600;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #ffffff 0%, #f3e5ab 60%, #d4a373 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    padding-bottom: 1rem;
    letter-spacing: 1.5px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #e9c46a, transparent);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(23, 17, 32, 0.88);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-bottom: 1px solid rgba(243, 229, 171, 0.15);
    padding: 1rem 5%;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.navbar.scrolled .nav-brand, .navbar.scrolled .nav-links a {
    color: #f3e5ab;
}

.nav-brand {
    font-size: 2rem;
    color: #f3e5ab;
    text-decoration: none;
    letter-spacing: 2px;
    transition: var(--transition);
    text-shadow: 0 0 10px rgba(243, 229, 171, 0.3);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .line {
    width: 25px;
    height: 2px;
    background-color: #f3e5ab;
    margin: 5px;
    transition: var(--transition);
}

.navbar.scrolled .hamburger .line {
    background-color: #f3e5ab;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg-canvas {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: var(--hero-bg-url, url('../assets/hero_wedding_1772982552559.png'));
    background-size: cover;
    background-position: center;
    z-index: 1;
    transition: transform 15s linear;
}

.hero-section.is-ceremony-active .hero-bg-canvas {
    animation: kenBurnsZoom 20s infinite alternate linear;
}

@keyframes kenBurnsZoom {
    from { transform: scale(1.0); }
    to { transform: scale(1.15); }
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 40%, rgba(42, 27, 45, 0.45) 0%, rgba(13, 10, 20, 0.85) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
    color: white;
    width: 100%;
    max-width: 800px;
    min-width: 0;
    box-sizing: border-box;
    padding: 0 1.5rem;
    opacity: 1 !important;
    transform: none !important;
}

.hero-content .subtitle {
    font-size: 1.2rem;
    letter-spacing: 5px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    color: #d4a373;
    opacity: 0;
    transform: translateY(20px);
    filter: blur(10px);
}

.hero-section.is-ceremony-active .subtitle {
    animation: fadeInUpBlur 1.5s cubic-bezier(0.2, 0, 0.2, 1) forwards;
    animation-delay: 0.4s;
}

.hero-content .title {
    font-size: clamp(2rem, 5.5vw, 4.6rem);
    white-space: nowrap;
    word-break: keep-all;
    margin-bottom: 1.5rem;
    line-height: 1.15;
    background: linear-gradient(135deg, #ffffff 0%, #f3e5ab 60%, #d4a373 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
    opacity: 0;
    transform: translateY(30px);
    filter: blur(12px);
    max-width: 100%;
    box-sizing: border-box;
}

.hero-date-part,
.hero-loc-sep,
.hero-loc-part {
    display: inline-block;
    vertical-align: middle;
}

.hero-loc-sep {
    margin: 0 8px;
}

.hero-map-link {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}

.hero-map-link:hover {
    opacity: 0.8;
}

@media screen and (max-width: 768px) {
    .navbar {
        padding: 1rem 4%;
    }
    .nav-brand {
        font-size: clamp(1rem, 3.8vw, 1.35rem);
        max-width: calc(100% - 170px);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .hero-content {
        padding: 0 1rem;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }
    .hero-content .title {
        /* 移动端全屏幕适配：使用安全 vw 尺度，确保中式婚礼新人全名即使在大字号/老年机模式下也完整单行呈现 */
        font-size: clamp(1.1rem, 6.2vw, 2.2rem);
        white-space: nowrap;
        word-break: keep-all;
        letter-spacing: -0.2px;
        max-width: 100%;
        box-sizing: border-box;
    }
    .hero-content .subtitle {
        font-size: 0.95rem;
        letter-spacing: 3px;
    }
    .hero-content .date-location {
        font-size: 1.15rem;
        margin-bottom: 2rem;
        line-height: 1.6;
    }
    .hero-date-part {
        display: block;
        margin-bottom: 0.3rem;
    }
    .hero-loc-sep {
        display: none;
    }
    .hero-loc-part {
        display: block;
        margin-top: 0.2rem;
    }
}

@media screen and (max-width: 480px) {
    .nav-brand {
        font-size: clamp(0.92rem, 3.6vw, 1.18rem);
        max-width: calc(100% - 160px);
    }
    .hero-content {
        padding: 0 0.8rem;
    }
    .hero-content .title {
        font-size: clamp(1rem, 6vw, 1.85rem);
        white-space: nowrap;
        word-break: keep-all;
        letter-spacing: 0px;
    }
    .bgm-player.playing .player-info {
        max-width: 90px;
    }
}

@media screen and (max-width: 380px) {
    .nav-brand {
        font-size: clamp(0.85rem, 3.4vw, 1.05rem);
        max-width: calc(100% - 145px);
    }
    .hero-content {
        padding: 0 0.5rem;
    }
    .hero-content .title {
        /* 老年机及超小屏优化：确保新郎新娘名字完整单行展示、不溢出屏幕 */
        font-size: clamp(0.92rem, 5.8vw, 1.5rem);
        white-space: nowrap;
        word-break: keep-all;
        letter-spacing: -0.5px;
    }
    .hero-content .subtitle {
        font-size: 0.85rem;
        letter-spacing: 2px;
    }
    .hero-content .date-location {
        font-size: 0.95rem;
        margin-bottom: 1.6rem;
    }
    .hero-content .cta-button {
        padding: 0.85rem 2.2rem;
        font-size: 1rem;
    }
    .bgm-player.playing .player-info {
        max-width: 75px;
    }
}

.hero-section.is-ceremony-active .title {
    animation: fadeInUpBlur 1.8s cubic-bezier(0.2, 0, 0.2, 1) forwards;
    animation-delay: 1.0s;
}

.hero-content .date-location {
    font-size: 1.5rem;
    font-style: italic;
    font-family: var(--font-heading);
    color: rgba(243, 229, 171, 0.9);
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(20px);
    filter: blur(8px);
}

.hero-section.is-ceremony-active .date-location {
    animation: fadeInUpBlur 1.5s cubic-bezier(0.2, 0, 0.2, 1) forwards;
    animation-delay: 1.6s;
}

.hero-content .cta-button {
    opacity: 0;
    transform: translateY(15px);
}

.hero-section.is-ceremony-active .cta-button {
    animation: fadeInUpSimple 1s ease forwards;
    animation-delay: 2.2s;
}

@keyframes fadeInUpBlur {
    0% { opacity: 0; transform: translateY(30px); filter: blur(12px); }
    100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes fadeInUpSimple {
    to { opacity: 1; transform: translateY(0); }
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 1.1rem 3.4rem;
    background: rgba(30, 20, 42, 0.88);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1.5px solid rgba(243, 229, 171, 0.55);
    border-radius: 50px;
    color: #f3e5ab;
    font-family: var(--font-heading), 'Noto Serif SC', serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(233, 196, 106, 0.3);
    user-select: none;
}

.cta-button .btn-text {
    background: linear-gradient(135deg, #ffffff 0%, #f3e5ab 60%, #e9c46a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.cta-button .btn-sparkle {
    font-size: 0.95rem;
    animation: ctaSparkleSpin 3s infinite ease-in-out;
}

.cta-button .btn-sparkle.left { animation-delay: 0s; }
.cta-button .btn-sparkle.right { animation-delay: 1.5s; }

@keyframes ctaSparkleSpin {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.75; }
    50% { transform: scale(1.35) rotate(180deg); opacity: 1; }
}

/* 扫光微动画 */
.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 240, 208, 0.35), transparent);
    transform: skewX(-25deg);
    transition: none;
    animation: ctaShimmerSweep 5s infinite ease-in-out;
}

@keyframes ctaShimmerSweep {
    0%, 70% { left: -100%; }
    100% { left: 200%; }
}

.cta-button:hover {
    transform: translateY(-4px) scale(1.05);
    background: rgba(45, 30, 58, 0.95);
    border-color: #ffffff;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.8), 0 0 35px rgba(233, 196, 106, 0.65);
}

.cta-button:hover .btn-sparkle {
    animation-duration: 1.2s;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: #f3e5ab;
    text-align: center;
    z-index: 10;
    opacity: 0.8;
}

.scroll-indicator p {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid #f3e5ab;
    border-radius: 20px;
    margin: 0 auto;
    position: relative;
}

.wheel {
    width: 4px;
    height: 6px;
    background-color: #f3e5ab;
    border-radius: 2px;
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { top: 5px; opacity: 1; }
    100% { top: 20px; opacity: 0; }
}

/* Countdown Section */
.countdown-section {
    background: radial-gradient(circle at 50% 50%, #23182b 0%, #110d18 100%);
    padding: 5rem 0;
    text-align: center;
    border-top: 1px solid rgba(243, 229, 171, 0.15);
    border-bottom: 1px solid rgba(243, 229, 171, 0.15);
}

.countdown-section h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f3e5ab 60%, #d4a373 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.timer-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.time-box {
    background: rgba(35, 27, 44, 0.75);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(243, 229, 171, 0.3);
    width: 130px;
    height: 130px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5), inset 0 0 20px rgba(243, 229, 171, 0.05);
    transition: var(--transition);
}

.time-box:hover {
    transform: translateY(-4px);
    border-color: rgba(243, 229, 171, 0.6);
    box-shadow: 0 20px 45px rgba(233, 196, 106, 0.25);
}

.time-box .number {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    line-height: 1;
    color: #f3e5ab;
    text-shadow: 0 0 10px rgba(243, 229, 171, 0.4);
}

.time-box .label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 5px;
}

/* Story Section */
.story-section {
    background: radial-gradient(circle at 50% 30%, #1c1426 0%, #0d0a14 100%);
    padding: 6rem 0;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent, rgba(243, 229, 171, 0.6), transparent);
}

.timeline-item {
    margin-bottom: 4rem;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 3rem;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 3rem;
}

.timeline-item::after {
    content: '';
    position: absolute;
    top: 15px;
    width: 20px;
    height: 20px;
    background-color: #171120;
    border: 3px solid #e9c46a;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 12px rgba(233, 196, 106, 0.6);
}

.timeline-item:nth-child(odd)::after {
    right: -10px;
}

.timeline-item:nth-child(even)::after {
    left: -10px;
}

.timeline-content {
    background: rgba(35, 27, 44, 0.75);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(243, 229, 171, 0.25);
    padding: 2rem;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), inset 0 0 20px rgba(243, 229, 171, 0.03);
    transition: var(--transition);
    color: #ffffff;
}

.timeline-content:hover {
    transform: translateY(-5px);
    border-color: rgba(243, 229, 171, 0.6);
    box-shadow: 0 25px 60px rgba(233, 196, 106, 0.2);
}

.timeline-content h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: #f3e5ab;
}

.timeline-content .date {
    font-size: 0.9rem;
    color: #d4a373;
    font-style: italic;
    margin-bottom: 1rem;
}

.timeline-img {
    width: 100%;
    height: 200px;
    margin: 1rem 0;
    border-radius: 14px;
    overflow: hidden;
    background: #1a1222;
    border: 1px solid rgba(243, 229, 171, 0.15);
}

.timeline-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.timeline-item:hover .timeline-img img {
    transform: scale(1.08);
}

/* ==========================================
   Gallery Section (精彩瞬间 · 浪漫画廊)
   ========================================== */
.gallery-section {
    background: radial-gradient(circle at 50% 40%, #20162a 0%, #0d0a14 70%, #08060c 100%);
    padding: 7rem 0 6rem;
    border-top: 1px solid rgba(243, 229, 171, 0.15);
    position: relative;
    overflow: hidden;
}

.gallery-section .section-tag-wrap {
    text-align: center;
    margin-bottom: 0.8rem;
}

.gallery-section .section-tag {
    display: inline-block;
    padding: 0.35rem 1.2rem;
    background: rgba(243, 229, 171, 0.1);
    border: 1px solid rgba(243, 229, 171, 0.3);
    border-radius: 30px;
    font-size: 0.78rem;
    color: #f3e5ab;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.gallery-section .section-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.72);
    font-size: 1rem;
    margin-top: -2rem;
    margin-bottom: 3.5rem;
    letter-spacing: 1px;
}

.carousel-container {
    position: relative;
    padding: 0 50px;
    margin: 0 -15px;
}

.carousel-arrow {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    background: rgba(30, 22, 38, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(243, 229, 171, 0.45);
    color: #f3e5ab;
    font-size: 1.8rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 10px 30px rgba(0,0,0,0.6), 0 0 15px rgba(243, 229, 171, 0.15);
}

.carousel-arrow:hover {
    background: linear-gradient(135deg, #e9c46a 0%, #c9935b 100%);
    color: #1a1208;
    border-color: #ffffff;
    box-shadow: 0 12px 35px rgba(233, 196, 106, 0.6);
    transform: translateY(-50%) scale(1.12);
}

.prev-arrow { left: 0; }
.next-arrow { right: 0; }

/* ==========================================
   Character Carousel 3D Filmstrip (精彩瞬间 3D 胶片画廊)
   ========================================== */
.character-carousel-container {
    position: relative;
    padding: 0 52px;
    margin: 0 auto;
    max-width: 1240px;
}

.character-filmstrip-mount {
    position: relative;
    width: 100%;
}

.character-carousel {
    position: relative;
    width: 100%;
}

.character-carousel-stage {
    --pointer-x: 50%;
    --pointer-y: 50%;
    position: relative;
    width: 100%;
    height: 520px;
    min-height: 460px;
    overflow: hidden;
    isolation: isolate;
    perspective: 1450px;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

.character-carousel-stage.is-dragging {
    cursor: grabbing;
}

.character-carousel-stage:hover {
    border-color: transparent !important;
}

.character-carousel-deck {
    position: absolute;
    inset: 0;
    z-index: 2;
    transform-style: preserve-3d;
}

.character-carousel-ambient-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 70%;
    height: 70%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(233, 196, 106, 0.08) 0%, rgba(138, 77, 186, 0.03) 45%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    filter: blur(60px);
}

.character-carousel-vignette-left,
.character-carousel-vignette-right {
    display: none !important;
}

.character-carousel-card {
    --focus: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    width: clamp(175px, 17.5vw, 248px);
    aspect-ratio: 0.70;
    padding: 7px;
    border-radius: 18px;
    color: #f3e5ab;
    background: linear-gradient(160deg, rgba(28, 19, 38, 0.96) 0%, rgba(12, 8, 18, 0.98) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(243, 229, 171, calc(0.32 + var(--focus) * 0.48));
    box-shadow:
        0 calc(14px + var(--focus) * 28px) calc(24px + var(--focus) * 44px) rgba(0, 0, 0, calc(0.65 + var(--focus) * 0.3)),
        0 0 calc(var(--focus) * 36px) rgba(233, 196, 106, calc(var(--focus) * 0.38)),
        inset 0 0 0 1px rgba(255, 255, 255, calc(0.08 + var(--focus) * 0.16)),
        inset 0 1px 0 rgba(243, 229, 171, calc(0.25 + var(--focus) * 0.45));
    appearance: none;
    outline: none;
    transform-style: preserve-3d;
    will-change: transform, opacity, filter;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.character-carousel-card.is-focused {
    border-color: rgba(243, 229, 171, 0.92);
}

.character-carousel-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 14px;
    overflow: hidden;
}

.character-carousel-portrait {
    position: absolute;
    inset: 0 0 42px 0;
    border-radius: 12px;
    overflow: hidden;
    background: #0d0914;
    border: 1px solid rgba(243, 229, 171, 0.2);
}

.character-carousel-portrait img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    transform: scale(calc(1.02 + (1 - var(--focus)) * 0.05));
    filter:
        saturate(calc(0.88 + var(--focus) * 0.22))
        contrast(1.05)
        brightness(calc(0.92 + var(--focus) * 0.12));
    transition: filter 0.3s ease, transform 0.3s ease;
}

/* 典雅黑金四角展签金属线 (Luxury Corner Accents) */
.character-carousel-corner {
    position: absolute;
    width: 8px;
    height: 8px;
    pointer-events: none;
    z-index: 2;
    border-color: rgba(243, 229, 171, 0.65);
    border-style: solid;
    opacity: calc(0.35 + var(--focus) * 0.65);
    transition: opacity 0.3s ease;
}

.character-carousel-corner.top-left {
    top: 5px;
    left: 5px;
    border-width: 1.5px 0 0 1.5px;
}

.character-carousel-corner.top-right {
    top: 5px;
    right: 5px;
    border-width: 1.5px 1.5px 0 0;
}

.character-carousel-corner.bottom-left {
    bottom: 5px;
    left: 5px;
    border-width: 0 0 1.5px 1.5px;
}

.character-carousel-corner.bottom-right {
    bottom: 5px;
    right: 5px;
    border-width: 0 1.5px 1.5px 0;
}

.character-carousel-zoom-hint {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    background: rgba(18, 12, 25, 0.88);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(243, 229, 171, 0.5);
    border-radius: 30px;
    font-size: 0.75rem;
    color: #f3e5ab;
    letter-spacing: 1px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.character-carousel-card.is-focused:hover .character-carousel-zoom-hint {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* 典雅黑金极简底托 (Black-Gold Minimalist Pedestal) */
.character-carousel-footer {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 10px;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(22, 15, 30, 0.95) 0%, rgba(10, 7, 16, 0.98) 100%);
    border: 1px solid rgba(243, 229, 171, 0.16);
    overflow: hidden;
}

.character-carousel-gold-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(243, 229, 171, 0.35), transparent);
}

.character-carousel-idx-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 12px;
    border-radius: 20px;
    background: radial-gradient(circle, rgba(233, 196, 106, 0.16) 0%, rgba(18, 12, 26, 0.85) 100%);
    border: 1px solid rgba(243, 229, 171, 0.45);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), inset 0 0 8px rgba(233, 196, 106, 0.12);
}

.character-carousel-idx-badge .idx-prefix {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 2px;
    color: rgba(243, 229, 171, 0.7);
}

.character-carousel-idx-badge .idx-number {
    font-family: 'Cormorant Garamond', 'Noto Serif SC', serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #f3e5ab;
    text-shadow: 0 0 8px rgba(243, 229, 171, 0.45);
}

/* 底部交互控制与指示器 */
.character-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.8rem;
    margin-top: 1.8rem;
    margin-bottom: 2rem;
}

.character-carousel-dots {
    display: flex;
    align-items: center;
    gap: 7px;
    max-width: 80%;
    overflow-x: auto;
    padding: 6px 4px;
}

.character-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 4px;
    background: rgba(243, 229, 171, 0.25);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.character-carousel-dot:hover {
    background: rgba(243, 229, 171, 0.6);
    transform: scale(1.2);
}

.character-carousel-dot.active {
    width: 28px;
    background: linear-gradient(90deg, #c9935b, #f3e5ab);
    box-shadow: 0 0 12px rgba(243, 229, 171, 0.6);
}

.character-carousel-counter {
    font-family: var(--font-heading), 'Noto Serif SC', serif;
    font-size: 1.05rem;
    color: rgba(243, 229, 171, 0.9);
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(25, 18, 34, 0.7);
    padding: 4px 14px;
    border-radius: 20px;
    border: 1px solid rgba(243, 229, 171, 0.25);
}

.character-carousel-counter .curr {
    color: #ffffff;
    font-weight: 700;
}

.character-carousel-counter .sep {
    opacity: 0.5;
}

@media screen and (max-width: 650px) {
    .character-carousel-container {
        padding: 0 16px;
    }
    .character-carousel-stage {
        height: 480px;
        min-height: 440px;
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
    }
    .character-carousel-card {
        width: clamp(145px, 46vw, 180px);
        border-radius: 14px;
        padding: 5px;
    }
    .character-carousel-portrait {
        inset: 0 0 36px 0;
        border-radius: 10px;
    }
    .character-carousel-footer {
        height: 36px;
        padding: 0 6px;
        gap: 6px;
        border-radius: 8px;
    }
    .character-carousel-idx-badge {
        padding: 2px 8px;
    }
    .character-carousel-idx-badge .idx-number {
        font-size: 0.92rem;
    }
    .character-carousel-controls {
        gap: 1rem;
        margin-top: 1.2rem;
        margin-bottom: 1.5rem;
    }
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.gallery-item {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    border: 1px solid rgba(243, 229, 171, 0.28);
    position: relative;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: #171120;
}

.gallery-item img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    transition: transform 0.8s ease;
    display: block;
}

.gallery-item-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(20, 14, 26, 0.1) 0%, rgba(20, 14, 26, 0.85) 100%);
    opacity: 0;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 2.5rem;
}

.overlay-icon {
    font-size: 2.2rem;
    transform: translateY(15px) scale(0.8);
    transition: transform 0.4s ease;
    filter: drop-shadow(0 0 10px rgba(243, 229, 171, 0.8));
}

.overlay-text {
    font-size: 1.1rem;
    font-family: var(--font-heading);
    color: #f3e5ab;
    letter-spacing: 2px;
    margin-top: 0.5rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

.gallery-item:hover {
    transform: translateY(-8px);
    border-color: rgba(243, 229, 171, 0.75);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75), 0 0 30px rgba(233, 196, 106, 0.25);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item:hover .overlay-icon,
.gallery-item:hover .overlay-text {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.luxury-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 2.8rem;
    border-radius: 50px;
    background: rgba(243, 229, 171, 0.08);
    border: 1px solid rgba(243, 229, 171, 0.35);
    color: #f3e5ab;
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 2px;
    transition: all 0.35s ease;
}

.luxury-more-btn:hover {
    background: linear-gradient(135deg, #c9935b 0%, #e6be68 100%);
    color: #1a1208;
    border-color: transparent;
    box-shadow: 0 12px 35px rgba(233, 196, 106, 0.5);
    transform: translateY(-3px);
}

/* ==========================================
   RSVP Section (受邀回复 · 贵宾席位)
   ========================================== */
.rsvp-section {
    background-image: url('../assets/hero_wedding_1772982552559.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    padding: 7rem 0;
    overflow: hidden;
}

.rsvp-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.28) 0%, rgba(233, 196, 106, 0.12) 45%, transparent 70%);
    filter: blur(70px);
    pointer-events: none;
    z-index: 1;
}

.rsvp-particles {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 2;
}

.rsvp-particles .r-particle {
    position: absolute;
    opacity: 0.5;
    animation: floatRsvpParticle 8s infinite ease-in-out;
}
.rsvp-particles .p1 { top: 15%; left: 10%; font-size: 1.4rem; animation-delay: 0s; }
.rsvp-particles .p2 { top: 75%; left: 85%; font-size: 1.6rem; animation-delay: 2s; }
.rsvp-particles .p3 { top: 25%; right: 12%; font-size: 1.2rem; animation-delay: 4s; }
.rsvp-particles .p4 { bottom: 15%; left: 18%; font-size: 1.5rem; animation-delay: 6s; }

@keyframes floatRsvpParticle {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.3; }
    50% { transform: translateY(-20px) rotate(15deg); opacity: 0.7; }
}

.rsvp-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(20, 14, 26, 0.85) 0%, rgba(8, 6, 12, 0.95) 100%);
    z-index: 1;
    pointer-events: none;
}

.rsvp-section > .container {
    position: relative;
    z-index: 10;
}

.rsvp-card {
    position: relative;
    z-index: 100;
    background: rgba(28, 20, 37, 0.88);
    backdrop-filter: blur(35px) saturate(200%);
    -webkit-backdrop-filter: blur(35px) saturate(200%);
    border: 1px solid rgba(243, 229, 171, 0.38);
    max-width: 680px;
    margin: 0 auto;
    padding: 4.5rem 3.5rem;
    border-radius: 36px;
    box-shadow: 0 35px 90px rgba(0, 0, 0, 0.85), inset 0 0 30px rgba(243, 229, 171, 0.05);
    text-align: center;
    color: #ffffff;
}

.rsvp-form {
    position: relative;
    z-index: 101;
    text-align: left;
}

.form-group {
    margin-bottom: 1.4rem;
    position: relative;
    z-index: 102;
}

.form-group.icon-input .input-icon {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.15rem;
    z-index: 104;
    pointer-events: none !important;
    opacity: 0.85;
}

.form-group.textarea-group .input-icon {
    top: 1.4rem;
    transform: none;
}

.form-group.icon-input input,
.form-group.icon-input select,
.form-group.icon-input textarea {
    padding-left: 3.2rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    position: relative;
    z-index: 103;
    pointer-events: auto !important;
    user-select: text !important;
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    cursor: text !important;
    width: 100%;
    padding: 1.15rem 1.2rem;
    border: 1px solid rgba(243, 229, 171, 0.28);
    border-radius: 16px;
    background: rgba(18, 12, 24, 0.85);
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.98rem;
    transition: all 0.35s ease;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4);
}

.form-group select {
    cursor: pointer !important;
    user-select: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f3e5ab' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.2rem center;
    padding-right: 2.8rem;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(243, 229, 171, 0.55);
}

.form-group select option {
    background: #1c1425;
    color: #ffffff;
    padding: 12px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #f3e5ab;
    background: rgba(28, 18, 38, 0.95);
    box-shadow: 0 0 25px rgba(243, 229, 171, 0.45), inset 0 0 10px rgba(243, 229, 171, 0.15);
}

/* 双列表单行（出席状态 / 同行人数 / 手机与邮箱） */
.form-row-dual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem;
}

.form-row-dual > .form-group {
    min-width: 0;
    margin-bottom: 1.4rem;
}

/* 祝福语快捷选择 (Quick Blessing Chips) */
.blessing-block {
    margin-bottom: 1.4rem;
}

.blessing-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.blessing-title {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: rgba(243, 229, 171, 0.92);
}

.blessing-hint {
    font-size: 0.72rem;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.42);
    white-space: nowrap;
}

.blessing-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 0.95rem;
}

.blessing-chip {
    font-family: var(--font-body);
    font-size: 0.8rem;
    line-height: 1;
    letter-spacing: 0.6px;
    padding: 0.62rem 0.9rem;
    color: #f3e5ab;
    background: rgba(18, 12, 24, 0.7);
    border: 1px dashed rgba(243, 229, 171, 0.34);
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.28s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    -webkit-tap-highlight-color: transparent;
}

.blessing-chip:hover {
    border-style: solid;
    border-color: rgba(243, 229, 171, 0.85);
    background: rgba(243, 229, 171, 0.12);
    transform: translateY(-1px);
}

.blessing-chip:active {
    transform: scale(0.97);
}

.blessing-chip:focus-visible {
    outline: 2px solid rgba(243, 229, 171, 0.8);
    outline-offset: 2px;
}

.blessing-chip.active {
    color: #1a1208;
    font-weight: 700;
    border-style: solid;
    border-color: transparent;
    background: linear-gradient(135deg, #c9935b 0%, #f3e5ab 52%, #b8860b 100%);
    box-shadow: 0 8px 22px rgba(233, 196, 106, 0.38);
}

.blessing-chip.active::before {
    content: '✓ ';
}

.blessing-block > .form-group:last-child {
    margin-bottom: 0;
}

/* 选填联系方式折叠区 (Optional Contact Collapse) */
.contact-collapse {
    margin-bottom: 1.4rem;
    border: 1px dashed rgba(243, 229, 171, 0.26);
    border-radius: 18px;
    background: rgba(18, 12, 24, 0.42);
    transition: border-color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}

.contact-collapse.is-open {
    border-style: solid;
    border-color: rgba(243, 229, 171, 0.4);
    background: rgba(18, 12, 24, 0.68);
    box-shadow: inset 0 0 24px rgba(243, 229, 171, 0.06);
}

.contact-toggle {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.85rem 2.4rem 0.85rem 1rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: #f3e5ab;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.contact-toggle .ct-icon {
    font-size: 0.95rem;
    opacity: 0.9;
}

.contact-toggle .ct-label {
    font-weight: 600;
    letter-spacing: 0.8px;
    white-space: nowrap;
}

.contact-toggle .ct-label em {
    font-style: normal;
    font-weight: 400;
    font-size: 0.76rem;
    opacity: 0.62;
}

.contact-toggle .ct-note {
    margin-left: auto;
    font-size: 0.72rem;
    letter-spacing: 0.3px;
    color: rgba(255, 255, 255, 0.4);
    text-align: right;
    transition: color 0.3s ease;
}

.contact-toggle .ct-note.has-value {
    color: rgba(46, 213, 115, 0.85);
}

.contact-toggle .ct-arrow {
    position: absolute;
    right: 1rem;
    top: 50%;
    flex: none;
    font-size: 1rem;
    line-height: 1;
    color: rgba(243, 229, 171, 0.75);
    transform: translateY(-50%);
    transition: transform 0.35s ease;
}

.contact-toggle[aria-expanded="true"] .ct-arrow {
    transform: translateY(-50%) rotate(180deg);
}

.contact-toggle:focus-visible {
    outline: 2px solid rgba(243, 229, 171, 0.8);
    outline-offset: -2px;
    border-radius: 18px;
}

.contact-panel {
    padding: 0.35rem 1rem 0.2rem;
    animation: contactPanelReveal 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-panel[hidden] {
    display: none;
}

.contact-panel .form-group {
    margin-bottom: 1rem;
}

@keyframes contactPanelReveal {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .contact-panel {
        animation: none;
    }
    .blessing-chip,
    .contact-toggle .ct-arrow {
        transition: none;
    }
}

.luxury-submit-btn {
    width: 100%;
    padding: 1.25rem;
    background: linear-gradient(135deg, #c9935b 0%, #f3e5ab 50%, #b8860b 100%);
    color: #1a1208;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 3px;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 12px 35px rgba(201, 147, 91, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    position: relative;
    overflow: hidden;
    margin-top: 1rem;
}

.luxury-submit-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.6s ease;
}

.luxury-submit-btn:hover::before {
    left: 100%;
}

.luxury-submit-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 18px 45px rgba(233, 196, 106, 0.65);
    color: #000000;
}

.form-status {
    margin-top: 1.2rem;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    min-height: 1.5rem;
}

.form-status.success {
    color: #2ed573;
    text-shadow: 0 0 10px rgba(46, 213, 115, 0.4);
}

.form-status.error {
    color: #ff4757;
    text-shadow: 0 0 10px rgba(255, 71, 87, 0.4);
}

/* Footer */
.footer {
    background-color: var(--bg-dark);
    color: white;
    text-align: center;
    padding: 5rem 2rem 2.5rem;
    border-top: 1px solid rgba(243, 229, 171, 0.15);
}

.footer h3 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #f3e5ab 60%, #d4a373 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer p {
    color: #aaaaaa;
    margin-bottom: 0.5rem;
}

.copyright {
    margin-top: 3rem;
    font-size: 0.8rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        flex-direction: column;
        background-color: white;
        width: 70%;
        height: 100vh;
        justify-content: center;
        align-items: center;
        transition: 0.5s ease-in-out;
        box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    }
    
    .nav-links.nav-active {
        right: 0;
    }
    
    .nav-links a {
        color: var(--text-primary);
        font-size: 1.2rem;
    }
    
    .hamburger {
        display: block;
        z-index: 1001;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 3rem !important;
        padding-right: 0 !important;
        text-align: left !important;
        left: 0 !important;
    }
    
    .timeline-item::after {
        left: 10px !important;
    }
    
    .rsvp-card {
        padding: 2rem 1.5rem;
    }

    /* 移动端：双列表单回归单列，祝福语胶囊与折叠卡更紧凑 */
    .form-row-dual {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-row-dual > .form-group {
        margin-bottom: 1.4rem;
    }

    .blessing-head {
        align-items: center;
    }

    .blessing-hint {
        display: none;
    }

    .blessing-chips {
        gap: 0.5rem;
        /* 移动端改为单行横向滑动，避免 6 条祝福胶囊纵向堆叠撑高表单 */
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 2px 2px 6px;
        margin-bottom: 0.85rem;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .blessing-chips::-webkit-scrollbar {
        display: none;
    }

    .blessing-chip {
        flex: 0 0 auto;
        font-size: 0.74rem;
        padding: 0.56rem 0.78rem;
    }

    .contact-toggle {
        padding: 0.8rem 2.3rem 0.8rem 0.85rem;
    }

    .contact-toggle .ct-note {
        display: none;
    }

    .contact-toggle .ct-note.has-value {
        display: inline-block;
        font-size: 0.68rem;
    }

    .contact-panel {
        padding: 0.3rem 0.9rem 0.15rem;
    }

    .contact-panel .form-group:last-child {
        margin-bottom: 1.1rem;
    }
}

/* Gallery More Button */
.gallery-more {
    text-align: center;
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

.gallery-more .cta-button {
    color: var(--text-primary);
    border-color: var(--accent-color);
}

.gallery-more .cta-button:hover {
    background-color: var(--accent-color);
    color: white !important;
}

/* Lightbox Modal */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 85%;
    max-height: 85%;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    border-radius: 12px;
    overflow: visible; /* V16: 允许缩放超出边界 */
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

#lightbox-img {
    width: 100%;
    height: auto;
    max-height: 85vh;
    object-fit: contain;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: auto;
    will-change: transform;
}

.lightbox-close {
    position: fixed;
    top: max(1.5rem, calc(env(safe-area-inset-top) + 12px));
    right: max(2rem, calc(env(safe-area-inset-right) + 16px));
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(22, 14, 32, 0.88);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1.5px solid rgba(243, 229, 171, 0.65);
    color: #f3e5ab;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    z-index: 99999 !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.75), 0 0 20px rgba(233, 196, 106, 0.35);
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.lightbox-close:hover,
.lightbox-close:active {
    background: #e9c46a;
    color: #0d0a14;
    border-color: #ffffff;
    transform: scale(1.12) rotate(90deg);
    box-shadow: 0 0 25px rgba(233, 196, 106, 0.9);
}

.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(22, 14, 30, 0.85);
    border: 1.5px solid rgba(243, 229, 171, 0.45);
    color: #f3e5ab;
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.28s cubic-bezier(0.2, 0, 0.2, 1);
    z-index: 99999 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.75), 0 0 16px rgba(233, 196, 106, 0.25);
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    pointer-events: auto;
}

.lightbox-prev { left: max(2%, 18px); }
.lightbox-next { right: max(2%, 18px); }

.lightbox-prev:hover, .lightbox-next:hover {
    background: rgba(233, 196, 106, 0.35);
    border-color: #ffffff;
    color: #ffffff;
    transform: translateY(-50%) scale(1.12);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85), 0 0 25px rgba(233, 196, 106, 0.65);
}

.lightbox-prev:active, .lightbox-next:active {
    transform: translateY(-50%) scale(0.95);
}

.lightbox-counter {
    position: absolute;
    bottom: max(1.8rem, calc(env(safe-area-inset-bottom) + 16px));
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-heading), 'Cinzel', Georgia, serif;
    font-size: 0.92rem;
    letter-spacing: 2.5px;
    color: #f3e5ab;
    background: rgba(18, 12, 24, 0.82);
    padding: 0.35rem 1.2rem;
    border-radius: 20px;
    border: 1px solid rgba(243, 229, 171, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.65);
    pointer-events: none;
    z-index: 99999 !important;
    user-select: none;
    text-shadow: 0 0 8px rgba(233, 196, 106, 0.4);
}

/* Lightbox Animation for switching images */
@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.lightbox-content.animate-switch {
    animation: fadeInScale 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

@media screen and (max-width: 768px) {
    .lightbox-prev, .lightbox-next {
        width: 44px;
        height: 44px;
        font-size: 1.4rem;
    }
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
    .lightbox-counter {
        font-size: 0.82rem;
        letter-spacing: 1.8px;
        padding: 0.28rem 1rem;
        bottom: max(1.2rem, calc(env(safe-area-inset-bottom) + 10px));
    }
    .lightbox-close {
        top: max(1rem, calc(env(safe-area-inset-top) + 8px));
        right: max(1rem, calc(env(safe-area-inset-right) + 8px));
        width: 44px;
        height: 44px;
        font-size: 1.6rem;
    }
}

/* Gallery Page Specific */
.gallery-page .navbar {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    padding: 1rem 5%;
    backdrop-filter: blur(10px);
}

.gallery-page .nav-brand, .gallery-page .nav-links a {
    color: var(--text-primary);
}

.gallery-header {
    background-color: var(--primary-color);
    padding: 8rem 0 4rem; /* Top padding for navbar space */
    text-align: center;
}

.gallery-header .subtitle {
    font-size: 1.1rem;
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--text-secondary);
    margin-top: -1rem;
    margin-bottom: 2rem;
}

.gallery-container {
    padding: 4rem 0;
    background-color: var(--bg-light);
}

.gallery-page .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}

/* ==========================================
   Story Details Modal (浪漫极奢紫金玻璃拟态)
   ========================================== */
.story-modal-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 35%, rgba(40, 24, 52, 0.92) 0%, rgba(10, 8, 16, 0.96) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    overflow: hidden;
}

.story-modal-bg-glow {
    position: absolute;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(233, 196, 106, 0.18) 0%, rgba(212, 163, 115, 0.08) 40%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
    animation: storyGlowPulse 6s infinite alternate ease-in-out;
}

@keyframes storyGlowPulse {
    0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(1.25); opacity: 0.95; }
}

/* 浪漫飘落微粒 */
.story-modal-particles {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 1;
}

.story-modal-particles .m-particle {
    position: absolute;
    font-size: 1.3rem;
    opacity: 0;
    animation: storyParticleFloat 8s infinite ease-in-out;
}

.story-modal-particles .p1 { left: 18%; animation-delay: 0s; font-size: 1.5rem; }
.story-modal-particles .p2 { left: 35%; animation-delay: 2s; font-size: 1.1rem; }
.story-modal-particles .p3 { left: 62%; animation-delay: 4.2s; font-size: 1.4rem; }
.story-modal-particles .p4 { left: 80%; animation-delay: 1s; font-size: 1.2rem; }
.story-modal-particles .p5 { left: 48%; animation-delay: 5.5s; font-size: 1.6rem; }

@keyframes storyParticleFloat {
    0% { transform: translateY(105vh) rotate(0deg) scale(0.6); opacity: 0; }
    25% { opacity: 0.75; }
    75% { opacity: 0.75; }
    100% { transform: translateY(-10vh) rotate(360deg) scale(1.1); opacity: 0; }
}

/* 浪漫奢华弹窗卡片 */
.story-modal-card {
    position: relative;
    z-index: 2;
    background: rgba(28, 20, 37, 0.95);
    backdrop-filter: blur(35px) saturate(200%);
    -webkit-backdrop-filter: blur(35px) saturate(200%);
    border: 1px solid rgba(243, 229, 171, 0.4);
    max-width: 620px;
    width: 92%;
    margin: 2rem auto;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 35px 100px rgba(0, 0, 0, 0.85),
                0 0 50px rgba(233, 196, 106, 0.18),
                inset 0 0 30px rgba(243, 229, 171, 0.06);
    transform: scale(0.88) translateY(20px);
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    color: #ffffff;
    max-height: 85vh;
}

.story-modal-lightbox.active .story-modal-card {
    transform: scale(1) translateY(0);
}

/* 4角金丝优雅边框 */
.card-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(243, 229, 171, 0.6);
    pointer-events: none;
    z-index: 10;
}

.card-corner.top-left {
    top: 12px; left: 12px;
    border-right: none; border-bottom: none;
    border-top-left-radius: 6px;
}
.card-corner.top-right {
    top: 12px; right: 12px;
    border-left: none; border-bottom: none;
    border-top-right-radius: 6px;
}
.card-corner.bottom-left {
    bottom: 12px; left: 12px;
    border-right: none; border-top: none;
    border-bottom-left-radius: 6px;
}
.card-corner.bottom-right {
    bottom: 12px; right: 12px;
    border-left: none; border-top: none;
    border-bottom-right-radius: 6px;
}

/* 故事播放进度条 Indicator */
.story-progress-bar-wrap {
    display: flex;
    gap: 6px;
    padding: 12px 20px 4px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2015;
    background: linear-gradient(to bottom, rgba(13, 10, 20, 0.85) 0%, transparent 100%);
}

.story-progress-seg {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.story-progress-seg:hover {
    background: rgba(243, 229, 171, 0.4);
    transform: scaleY(1.5);
}

.story-progress-inner {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #f3e5ab 0%, #e9c46a 100%);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(243, 229, 171, 0.8);
}

.story-progress-seg.completed .story-progress-inner {
    width: 100%;
}

/* 侧边切换导航按钮 */
.story-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(17, 13, 26, 0.75);
    border: 1px solid rgba(243, 229, 171, 0.4);
    color: #f3e5ab;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2015;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.story-nav-prev { left: 14px; }
.story-nav-next { right: 14px; }

.story-nav-btn:hover {
    background: #e9c46a;
    color: #0d0a14;
    border-color: #ffffff;
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 0 20px rgba(233, 196, 106, 0.8);
}

/* 顶部图片遮罩与渐变 */
.story-img-wrap {
    width: 100%;
    height: 310px;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(243, 229, 171, 0.25);
    background: radial-gradient(circle at center, #23162f 0%, #110b17 100%);
    flex-shrink: 0;
    user-select: none;
    -webkit-user-drag: none;
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-img-wrap img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    min-width: 0;
    min-height: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: block;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: auto;
    will-change: transform;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.45);
}

.story-img-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to bottom, transparent 0%, rgba(28, 20, 37, 0.95) 100%);
    pointer-events: none;
}

/* 照片缩放控制悬浮栏 */
.story-zoom-toolbar {
    position: absolute;
    bottom: 12px;
    right: 14px;
    z-index: 2005;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(20, 14, 30, 0.82);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(243, 229, 171, 0.35);
    padding: 4px 10px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.story-img-wrap:hover .story-zoom-toolbar {
    opacity: 1;
}

.story-zoom-toolbar .zoom-btn {
    background: rgba(243, 229, 171, 0.12);
    border: 1px solid rgba(243, 229, 171, 0.3);
    color: #f3e5ab;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.story-zoom-toolbar .zoom-btn:hover {
    background: #e9c46a;
    color: #0d0a14;
    border-color: #ffffff;
    transform: scale(1.08);
}

/* 顶部信息栏 & 自动播放按钮 */
.story-modal-top-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
}

.story-autoplay-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(243, 229, 171, 0.12);
    border: 1px solid rgba(243, 229, 171, 0.35);
    font-size: 0.85rem;
    color: #f3e5ab;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    margin-bottom: 1rem;
}

.story-autoplay-btn:hover {
    background: rgba(243, 229, 171, 0.28);
    border-color: #f3e5ab;
    transform: scale(1.1);
}

.story-autoplay-btn.playing {
    background: linear-gradient(135deg, rgba(233, 196, 106, 0.45) 0%, rgba(212, 163, 115, 0.35) 100%);
    border-color: #e9c46a;
    color: #ffffff;
    box-shadow: 0 0 15px rgba(233, 196, 106, 0.6);
}

.story-autoplay-btn .ap-icon {
    font-size: 0.8rem;
    line-height: 1;
}

.story-modal-counter {
    font-size: 0.85rem;
    color: #e9c46a;
    font-family: var(--font-heading), serif;
    letter-spacing: 1px;
    margin-left: auto;
}

/* 故事内容流畅淡入动画 */
@keyframes storyContentChange {
    from { opacity: 0; transform: translateY(8px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.story-content-animate {
    animation: storyContentChange 0.35s cubic-bezier(0.2, 0, 0.2, 1) forwards;
}

/* 弹窗主体内容 */
.story-modal-body {
    padding: 2.2rem 2.6rem 2.4rem;
    text-align: center;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #e9c46a rgba(255, 255, 255, 0.05);
}

.story-modal-body::-webkit-scrollbar {
    width: 6px;
}
.story-modal-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}
.story-modal-body::-webkit-scrollbar-thumb {
    background: #e9c46a;
    border-radius: 3px;
}

/* 浪漫徽章 */
.story-modal-tag {
    display: inline-block;
    padding: 0.35rem 1.3rem;
    background: linear-gradient(135deg, rgba(243, 229, 171, 0.15) 0%, rgba(212, 163, 115, 0.08) 100%);
    border: 1px solid rgba(243, 229, 171, 0.35);
    border-radius: 30px;
    font-size: 0.78rem;
    color: #f3e5ab;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.story-modal-body h3 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #f3e5ab 60%, #e9c46a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.6rem;
    letter-spacing: 1.5px;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

.story-modal-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.meta-icon {
    font-size: 0.95rem;
}

.story-modal-date {
    font-size: 0.95rem;
    color: #e9c46a;
    font-style: italic;
    letter-spacing: 1px;
}

.meta-heart {
    font-size: 0.85rem;
    animation: heartPulse 1.8s infinite ease-in-out;
}

@keyframes heartPulse {
    0% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.25); opacity: 1; }
    100% { transform: scale(1); opacity: 0.7; }
}

/* 浪漫金线与心型分隔线 */
.story-modal-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 1.2rem 0 1.6rem;
}

.story-modal-divider .div-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(233, 196, 106, 0.5), transparent);
}

.story-modal-divider .div-heart {
    font-size: 0.85rem;
    color: #f3e5ab;
    letter-spacing: 2px;
}

/* 正文段落 */
#story-modal-desc {
    font-size: 1.08rem;
    line-height: 2;
    color: rgba(255, 255, 255, 0.94);
    text-align: justify;
    word-break: break-word;
    letter-spacing: 0.5px;
    padding: 0 0.5rem;
}

/* 底部致语 */
.story-modal-footer-tag {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(243, 229, 171, 0.2);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: #f3e5ab;
    letter-spacing: 2px;
    font-style: italic;
    opacity: 0.9;
}

/* 关闭按钮 */
.story-modal-card .modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(13, 10, 20, 0.75);
    border: 1px solid rgba(243, 229, 171, 0.4);
    color: #f3e5ab;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2020;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.story-modal-card .modal-close:hover {
    background: #e9c46a;
    color: #0d0a14;
    transform: rotate(90deg) scale(1.12);
    box-shadow: 0 0 20px rgba(233, 196, 106, 0.8);
}

@media screen and (max-width: 768px) {
    .story-modal-card {
        margin: 1rem auto;
        max-height: 85vh;
        width: 94%;
        border-radius: 24px;
    }
    .story-img-wrap {
        height: 220px;
    }
    .story-modal-body {
        padding: 1.6rem 1.4rem;
    }
    .story-modal-body h3 {
        font-size: 1.7rem;
    }
    #story-modal-desc {
        font-size: 1rem;
        line-height: 1.85;
    }
}

/* ==========================================
   BGM Player & Share Button (暗夜紫金玻璃拟态)
   ========================================== */
.bgm-player {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1100;
    cursor: pointer;
    background: rgba(35, 27, 44, 0.82);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(243, 229, 171, 0.35);
    border-radius: 50px;
    padding: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(233, 196, 106, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bgm-player:hover {
    border-color: rgba(243, 229, 171, 0.65);
    box-shadow: 0 15px 40px rgba(233, 196, 106, 0.35);
    transform: translateY(-2px);
}

.player-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.player-info {
    display: flex;
    flex-direction: column;
    padding-right: 14px;
    white-space: nowrap;
    overflow: hidden;
    max-width: 0;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.bgm-player:hover .player-info, 
.bgm-player.playing .player-info {
    max-width: 150px;
    opacity: 1;
}

.song-title {
    font-size: 0.85rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #f3e5ab 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-overflow: ellipsis;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.song-time {
    font-size: 0.7rem;
    color: rgba(243, 229, 171, 0.82);
    font-family: 'SF Mono', 'Courier New', Courier, monospace;
    margin-top: 2px;
    letter-spacing: 0.5px;
}

.bgm-player .disc {
    width: 44px;
    height: 44px;
    background: radial-gradient(circle, #2a1f33 0%, #120d1a 60%, #050408 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1.5px solid rgba(243, 229, 171, 0.6);
    box-shadow: 0 0 12px rgba(233, 196, 106, 0.25), inset 0 0 8px rgba(0,0,0,0.8);
    animation: rotate 4s linear infinite paused;
    color: #f3e5ab;
    flex-shrink: 0;
    transition: box-shadow 0.4s ease;
}

.bgm-player.playing .disc {
    animation-play-state: running;
    border-color: #e9c46a;
    box-shadow: 0 0 18px rgba(233, 196, 106, 0.5), inset 0 0 10px rgba(0,0,0,0.9);
}

.bgm-player .icon {
    font-size: 1.25rem;
    filter: drop-shadow(0 0 4px rgba(243, 229, 171, 0.6));
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ==========================================
   Luxury Share Floating Capsule (极奢紫金胶囊分享浮按钮)
   ========================================== */
.share-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1100;
    cursor: pointer;
    background: rgba(32, 22, 42, 0.88);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(243, 229, 171, 0.45);
    border-radius: 50px;
    padding: 8px 18px 8px 10px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(233, 196, 106, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    user-select: none;
}

.share-fab-pulse {
    position: absolute;
    top: -4px; left: -4px; right: -4px; bottom: -4px;
    border-radius: 50px;
    border: 1px solid rgba(243, 229, 171, 0.4);
    pointer-events: none;
    animation: fabPulseRing 2.5s infinite ease-in-out;
}

@keyframes fabPulseRing {
    0% { transform: scale(0.98); opacity: 0.8; }
    50% { transform: scale(1.08); opacity: 0; }
    100% { transform: scale(0.98); opacity: 0; }
}

.share-fab-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(243, 229, 171, 0.2) 0%, rgba(212, 163, 115, 0.05) 100%);
    border: 1px solid rgba(243, 229, 171, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.share-svg {
    width: 18px;
    height: 18px;
    filter: drop-shadow(0 0 4px rgba(243, 229, 171, 0.8));
}

.share-text {
    font-family: var(--font-heading), 'Noto Serif SC', serif;
    font-size: 0.88rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #f3e5ab 60%, #e9c46a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1.5px;
    white-space: nowrap;
}

.share-sparkle {
    font-size: 0.85rem;
    animation: sparkleSpin 3s infinite ease-in-out;
}

@keyframes sparkleSpin {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.7; }
    50% { transform: scale(1.25) rotate(180deg); opacity: 1; }
}

.share-fab:hover {
    transform: translateY(-4px) scale(1.05);
    background: rgba(42, 28, 56, 0.95);
    border-color: rgba(243, 229, 171, 0.8);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.75), 0 0 30px rgba(233, 196, 106, 0.4);
}

.share-fab:hover .share-icon-wrap {
    transform: rotate(15deg) scale(1.1);
    border-color: #ffffff;
}

@media screen and (max-width: 768px) {
    .bgm-player {
        top: 15px;
        right: 15px;
    }
    .share-fab {
        bottom: 25px;
        right: 25px;
        padding: 6px;
        border-radius: 50%;
    }
    .share-fab-pulse {
        border-radius: 50%;
    }
    .share-text, .share-sparkle {
        display: none;
    }
    .share-icon-wrap {
        width: 40px;
        height: 40px;
    }
    .share-svg {
        width: 20px;
        height: 20px;
    }
}

/* ==========================================
   Welcome Mask (月光来信遮罩层效果)
   ========================================== */
:root {
    --ease-cover: cubic-bezier(.22, 1, .36, 1);
}

body.cover-pending {
    height: 100dvh;
    overflow: hidden;
}

#pjax-container {
    clip-path: circle(150% at 50% 68%);
    transition: clip-path 1.6s var(--ease-cover), opacity 1s var(--ease-cover), transform 1.6s var(--ease-cover);
}

.cover-pending #pjax-container {
    clip-path: circle(0 at 50% 68%);
    opacity: 0;
    transform: translateY(28px);
}

.wedding-cover {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    overflow: clip;
    background: #091823;
    opacity: 1;
    transition: opacity .9s .55s var(--ease-cover), visibility 0s 1.6s;
    user-select: none;
}

.wedding-cover[hidden] {
    display: none;
}

.cover-art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    isolation: isolate;
    transform-origin: 50% 56%;
    transition: transform 1.6s var(--ease-cover), filter 1.3s var(--ease-cover);
}

.scene {
    position: absolute;
    inset: 0;
    z-index: -5;
    overflow: hidden;
    background: linear-gradient(160deg, #182d43, #0b1c2a 50%, #182832);
}

.scene img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 62%;
    transform: scale(1.045);
    animation: drift 38s ease-in-out infinite alternate;
    will-change: transform;
}

.shade {
    position: absolute;
    inset: 0;
    z-index: -4;
    background: linear-gradient(90deg, rgba(3, 14, 24, .74), rgba(3, 14, 24, .1) 55%, rgba(3, 14, 24, .18)),
                linear-gradient(180deg, rgba(3, 14, 24, .26), transparent 47%, rgba(3, 14, 24, .12) 70%, rgba(3, 14, 24, .85));
}

.mist {
    position: absolute;
    z-index: -3;
    left: -25%;
    right: -25%;
    top: 48%;
    height: 38%;
    filter: blur(28px);
    opacity: .18;
    background: radial-gradient(ellipse at 50% 50%, #92afbb, transparent 60%);
    animation: mist 26s ease-in-out infinite alternate;
    pointer-events: none;
}

.water-light {
    position: absolute;
    z-index: -2;
    inset: 64% 0 4%;
    background: linear-gradient(100deg, transparent 38%, #e9d7af12 49%, transparent 61%);
    mix-blend-mode: screen;
    animation: water 12s ease-in-out infinite alternate;
    pointer-events: none;
}

.cover-title {
    position: absolute;
    top: 6%;
    left: 0;
    width: 100%;
    margin: 0;
    text-align: center;
    font-family: "Songti SC", "STSong", "SimSun", Georgia, serif;
    font-weight: 400;
    font-size: clamp(24px, 3vw, 36px);
    letter-spacing: .4em;
    padding-left: .4em;
    color: #ead7b3;
    text-shadow: 0 0 24px #e5bf7340;
}

.cover-title small {
    display: block;
    margin-top: 15px;
    font-family: Georgia, serif;
    font-size: 11px;
    letter-spacing: .3em;
    padding-left: 0;
    color: #cab38a;
}

.cover-envelope {
    position: absolute;
    left: 50%;
    top: 54%;
    width: min(50vw, 78dvh);
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    isolation: isolate;
}

.cover-envelope:before {
    content: "";
    position: absolute;
    inset: 12% 5% 0;
    border-radius: 45%;
    background: radial-gradient(ellipse, #edc97657, transparent 70%);
    filter: blur(26px);
    animation: envelope-aura 6s ease-in-out infinite;
    z-index: -1;
    pointer-events: none;
}

.cover-envelope:after {
    content: "";
    position: absolute;
    bottom: -3%;
    left: 20%;
    width: 60%;
    height: 8%;
    border-radius: 50%;
    background: #0009;
    filter: blur(17px);
    animation: envelope-shadow 6s ease-in-out infinite;
    z-index: -2;
    pointer-events: none;
}

.envelope-float {
    position: relative;
    width: 100%;
    height: 100%;
    animation: envelope-float 6s ease-in-out infinite;
    filter: drop-shadow(0 0 10px #f2cf8770) drop-shadow(0 0 30px #edc16b50) drop-shadow(0 22px 24px #0007);
}

.envelope-float picture,
.envelope-float img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cover-open {
    position: absolute;
    left: 41%;
    top: 72%;
    width: 18%;
    height: 18%;
    border: 0;
    border-radius: 50%;
    background: transparent;
    isolation: isolate;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
}

.cover-open:before {
    content: "";
    position: absolute;
    inset: -7%;
    border: 1px solid #f4d59a88;
    border-radius: 50%;
    box-shadow: 0 0 24px #edd6a82e;
    animation: seal-breathe 3s ease-in-out infinite;
    pointer-events: none;
}

.cover-open:hover:before {
    border-color: #ffe7b7;
    box-shadow: 0 0 32px #f7d79580;
}

.cover-open:focus-visible {
    outline: 2px solid #ffe7b7;
    outline-offset: 8px;
}

.cover-prompt {
    position: absolute;
    bottom: max(3.5%, calc(env(safe-area-inset-bottom) + 18px));
    left: 0;
    width: 100%;
    margin: 0;
    text-align: center;
    font-family: "Songti SC", "STSong", "SimSun", Georgia, serif;
    font-size: clamp(12px, 1.7svh, 16px);
    letter-spacing: .22em;
    color: #f7ebd6;
    text-shadow: 0 2px 8px #000;
    pointer-events: none;
    z-index: 1;
}

.cover-prompt small {
    display: block;
    font-family: Georgia, serif;
    font-style: italic;
    font-size: 11px;
    letter-spacing: .08em;
    color: #d1bf9e;
    margin-top: 9px;
}

.cover-opening .wedding-cover {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.cover-opening .cover-art {
    transform: translateY(-8%) scale(1.18);
    filter: blur(5px);
}

.cover-opening .envelope-float,
.cover-opening .cover-envelope:before,
.cover-opening .cover-envelope:after {
    animation-play-state: paused;
}

.cover-opening .cover-open:before {
    animation: none;
    transform: scale(1.45);
    opacity: 0;
    transition: transform .55s, opacity .55s;
}

@keyframes drift {
    from { transform: scale(1.045) translate(-.35%, .2%); }
    to { transform: scale(1.105) translate(.45%, -.45%); }
}

@keyframes mist {
    from { transform: translateX(-8%); opacity: .1; }
    to { transform: translateX(8%); opacity: .23; }
}

@keyframes water {
    from { transform: translateX(-13%); opacity: .3; }
    to { transform: translateX(14%); opacity: .65; }
}

@keyframes seal-breathe {
    0%, 100% { transform: scale(.97); opacity: .35; }
    50% { transform: scale(1.08); opacity: .9; }
}

@keyframes envelope-float {
    0%, 100% { transform: translateY(5px) rotate(-.6deg); filter: drop-shadow(0 0 10px #f2cf8770) drop-shadow(0 0 30px #edc16b50) drop-shadow(0 22px 24px #0007); }
    50% { transform: translateY(-10px) rotate(.6deg); filter: drop-shadow(0 0 14px #f2cf87a3) drop-shadow(0 0 44px #edc16b70) drop-shadow(0 28px 28px #0008); }
}

@keyframes envelope-aura {
    0%, 100% { opacity: .55; transform: scale(.96); }
    50% { opacity: 1; transform: scale(1.06); }
}

@keyframes envelope-shadow {
    0%, 100% { opacity: .6; transform: scaleX(1); }
    50% { opacity: .3; transform: scaleX(.85); }
}

@keyframes mobile-pan {
    from { transform: translateX(0) scale(1.035); }
    to { transform: translateX(calc(-100% + 100vw)) scale(1.035); }
}

@media (max-aspect-ratio: 1/1) {
    .cover-envelope { top: 56%; width: min(98vw, 63dvh); }
    .cover-title { top: 10%; font-size: 26px; }
    .cover-prompt { bottom: 12%; font-size: 13px; }
}

@media (max-width: 760px) {
    .scene img {
        width: auto;
        height: 100%;
        max-width: none;
        object-position: left center;
        animation: mobile-pan 38s ease-in-out infinite alternate;
        opacity: .88;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wedding-cover, .cover-art { transition: none; }
    .cover-open:before, .envelope-float, .cover-envelope:before, .cover-envelope:after { animation: none; }
}

/* ==========================================
   WeChat Share Mask & Share Modal (紫金浪漫分享系统)
   ========================================== */
.wechat-share-mask {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 8, 16, 0.92);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 10000;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    user-select: none;
}

.wechat-arrow {
    position: absolute;
    top: 20px;
    right: 30px;
    animation: bounceDown 1.5s infinite ease-in-out;
}

.wechat-card {
    text-align: center;
    background: rgba(35, 27, 44, 0.88);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(243, 229, 171, 0.35);
    padding: 2.5rem 2rem;
    border-radius: 28px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    max-width: 360px;
    width: 88%;
}

.wechat-tag {
    font-size: 0.8rem;
    color: #f3e5ab;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.wechat-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #ffffff;
    font-weight: 500;
}

.wechat-text .highlight {
    color: #f3e5ab;
    font-weight: 700;
}

.wechat-tip {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

@keyframes bounceDown {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(12px) scale(1.1); }
}

/* Share Modal Dialog */
.share-modal-lightbox {
    z-index: 2005;
}

.share-modal-card {
    position: relative;
    background: rgba(28, 20, 37, 0.95);
    backdrop-filter: blur(35px) saturate(200%);
    -webkit-backdrop-filter: blur(35px) saturate(200%);
    border: 1px solid rgba(243, 229, 171, 0.38);
    max-width: 480px;
    width: 90%;
    margin: 2rem auto;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.85), 0 0 40px rgba(233, 196, 106, 0.15);
    padding: 2.5rem 2rem;
    text-align: center;
    color: #ffffff;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.share-modal-lightbox.active .share-modal-card {
    transform: scale(1);
}

.share-modal-header .share-modal-tag {
    display: inline-block;
    padding: 0.3rem 1.1rem;
    background: rgba(243, 229, 171, 0.12);
    border: 1px solid rgba(243, 229, 171, 0.3);
    border-radius: 20px;
    font-size: 0.75rem;
    color: #f3e5ab;
    letter-spacing: 2px;
    margin-bottom: 0.8rem;
}

.share-modal-header h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: #f3e5ab;
    margin-bottom: 0.4rem;
}

.share-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.8rem;
}

.share-qr-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.8rem;
}

.qr-box {
    width: 190px;
    height: 190px;
    padding: 10px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4), 0 0 15px rgba(243, 229, 171, 0.3);
    border: 2px solid rgba(243, 229, 171, 0.6);
}

.qr-box img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 8px;
}

.qr-tip {
    font-size: 0.85rem;
    color: #e9c46a;
    margin-top: 0.8rem;
    letter-spacing: 0.5px;
}

.share-actions {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.share-btn {
    width: 100%;
    padding: 0.95rem 1.2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.share-btn.primary {
    background: linear-gradient(135deg, #c9935b 0%, #e6be68 50%, #b8860b 100%);
    color: #1a1208;
    border: none;
    box-shadow: 0 6px 20px rgba(201, 147, 91, 0.4);
}

.share-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(233, 196, 106, 0.6);
}

.share-btn.secondary {
    background: rgba(243, 229, 171, 0.1);
    color: #f3e5ab;
    border: 1px solid rgba(243, 229, 171, 0.35);
}

.share-btn.secondary:hover {
    background: rgba(243, 229, 171, 0.2);
    border-color: rgba(243, 229, 171, 0.6);
}

.share-toast {
    margin-top: 1rem;
    font-size: 0.88rem;
    color: #2ed573;
    font-weight: 600;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.3s ease;
    min-height: 1.2rem;
}

.share-toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Lightbox Active State (V12.1 Fix) */
.lightbox.active {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* ==========================================
   Admin Performance & Aesthetics (V13)
   ========================================== */
.pagination-container { user-select: none; }
.pagination-btn {
    padding: 0.4rem 0.8rem;
    border: 1px solid #ddd;
    background: white;
    color: var(--text-primary);
    cursor: pointer;
    border-radius: 6px;
    font-size: 0.85rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.pagination-btn:hover:not(:disabled) {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: rgba(212, 163, 115, 0.05);
    transform: translateY(-1px);
}
.pagination-btn.active {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    box-shadow: 0 4px 10px rgba(212, 163, 115, 0.3);
}
.pagination-btn:disabled {
    background: #f8f9fa;
    color: #ced4da;
    cursor: not-allowed;
    border: 1px solid #e9ecef;
}

/* === V13.1 Premium Glassmorphism Refinement === */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7); 
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none; /* V13.3 默认隐藏 */
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active { 
    display: block !important; /* 不再使用 flex，改用绝对居中定位 */
    opacity: 1; 
    pointer-events: auto; 
}

.v13-premium {
    position: absolute; /* 经典居中，拒绝底部吸附 */
    top: 50%;
    left: 50%;
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.8);
    width: 95%;
    max-width: 680px;
    border-radius: 32px !important;
    padding: 0 !important;
    overflow-y: auto;
    max-height: 90vh; /* 防止全屏溢出 */
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.2) !important;
    transform: translate(-50%, -40%) scale(0.98);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .v13-premium {
    transform: translate(-50%, -50%) scale(1);
}

.detail-header {
    background: linear-gradient(135deg, rgba(212, 163, 115, 0.1), rgba(212, 163, 115, 0.02));
    padding: 2.5rem 2.5rem 1.5rem 2.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.03) !important;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.header-main {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.detail-icon {
    font-size: 2.5rem;
    background: #fff;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

.title-area h3 { 
    margin: 0; 
    font-size: 1.6rem; 
    color: #1a1a1a; 
    font-weight: 700;
    letter-spacing: -0.5px;
}

.badge-v13 {
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 0.5rem;
}
.badge-v13.yes { background: #e8f5e9; color: #2e7d32; }
.badge-v13.no { background: #feebee; color: #c62828; }

.lightbox-close-v13 {
    font-size: 2.2rem;
    color: #bbb;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1;
}
.lightbox-close-v13:hover { color: #333; transform: rotate(90deg); }

.detail-body-v13 { padding: 2.5rem; }

.info-grid-v13 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2.5rem;
    background: #fafafa;
    padding: 1.5rem;
    border-radius: 20px;
    border: 1px solid #f0f0f0;
}

.info-item-v13 {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.info-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #888;
    letter-spacing: 1.5px;
    font-weight: 700;
}

.info-value { 
    font-size: 1.1rem; 
    color: #222; 
    font-weight: 600; 
    word-break: break-all;
}

.info-value-mono { 
    font-family: 'SF Mono', 'Courier New', monospace; 
    font-size: 0.9rem; 
    color: #666; 
}

.info-item-v13.full { grid-column: span 2; }

.message-section-v13 {
    background: white;
    border: 1px dashed #e0e0e0;
    border-radius: 18px;
    padding: 2rem;
}

.message-content-v13 {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    font-style: italic;
    white-space: pre-wrap;
    max-height: 250px;
    overflow-y: auto;
}

.detail-footer-v13 {
    padding: 1.5rem 2.5rem;
    background: rgba(0,0,0,0.02);
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.modal-close-btn-v13 {
    background: #333;
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 14px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.modal-close-btn-v13:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

@media screen and (max-width: 600px) {
    .info-grid-v13 { grid-template-columns: 1fr; gap: 1.5rem; }
    .info-item-v13.full { grid-column: span 1; }
    .v13-premium { width: 92%; border-radius: 24px !important; }
    .detail-header { padding: 1.5rem; }
}

/* ==========================================
   Custom Romantic Gold Cursor System (紫金微芒光效鼠标)
   ========================================== */
@media (hover: hover) and (pointer: fine) {
    body, a, button, select, label, [role="button"] {
        cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23F3E5AB' stroke='%23D4A373' stroke-width='1.5' d='M4.5 3L19 10.5L12 13L9.5 20L4.5 3Z'/%3E%3C/svg%3E"), auto !important;
    }
    
    a, button, select, .gallery-item, .welcome-btn, .cta-button, .timeline-item, .share-fab, .bgm-player, .modal-close, .carousel-arrow, .time-box, .city-badge {
        cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='7' fill='%23E9C46A' opacity='0.85'/%3E%3Ccircle cx='12' cy='12' r='3.5' fill='%23FFFFFF'/%3E%3C/svg%3E") 12 12, pointer !important;
    }

    input, textarea {
        cursor: text !important;
    }
}

.custom-cursor {
    position: fixed;
    top: 0; left: 0;
    width: 8px; height: 8px;
    background: #ffffff;
    border-radius: 50%;
    pointer-events: none !important;
    z-index: 99999;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px #f3e5ab, 0 0 20px #e9c46a;
    transition: transform 0.15s ease-out, opacity 0.3s ease;
    opacity: 0;
}

.custom-cursor-follower {
    position: fixed;
    top: 0; left: 0;
    width: 36px; height: 36px;
    border: 1.5px solid rgba(243, 229, 171, 0.65);
    background: rgba(233, 196, 106, 0.1);
    border-radius: 50%;
    pointer-events: none !important;
    z-index: 99998;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 15px rgba(233, 196, 106, 0.25);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    opacity: 0;
}

body.cursor-hover .custom-cursor {
    transform: translate(-50%, -50%) scale(1.6);
    background: #e9c46a;
}

body.cursor-hover .custom-cursor-follower {
    transform: translate(-50%, -50%) scale(1.65);
    border-color: rgba(243, 229, 171, 0.9);
    background: rgba(233, 196, 106, 0.2);
    box-shadow: 0 0 25px rgba(233, 196, 106, 0.5);
}

body.cursor-active .custom-cursor {
    transform: translate(-50%, -50%) scale(0.75);
}

body.cursor-active .custom-cursor-follower {
    transform: translate(-50%, -50%) scale(0.85);
}

/* ==========================================
   Gallery View Switcher (画廊展示风格切换器)
   ========================================== */
.gallery-view-switcher {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    margin: 0 auto 3rem;
    padding: 0.4rem;
    background: rgba(28, 20, 36, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(243, 229, 171, 0.3);
    border-radius: 50px;
    width: fit-content;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(243, 229, 171, 0.05);
}

.view-switch-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.6rem;
    border-radius: 40px;
    background: transparent;
    border: none;
    color: rgba(243, 229, 171, 0.7);
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.view-switch-btn:hover {
    color: #ffffff;
    background: rgba(243, 229, 171, 0.12);
}

.view-switch-btn.active {
    background: linear-gradient(135deg, #c9935b 0%, #e6be68 50%, #b8860b 100%);
    color: #1a1208;
    box-shadow: 0 6px 20px rgba(233, 196, 106, 0.4);
}

.gallery-view-panel {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-view-panel.active {
    display: block;
    opacity: 1;
}

/* ==========================================
   Harry Potter Hogwarts Spellbook (3D 动态柔韧弯曲翻页魔法书相册)
   Powered by Meng To 18-Strip Curved Leaf Engine & Dynamic Shading Physics
   ========================================== */
.hp-spellbook-container {
    max-width: 1080px;
    margin: 1rem auto 2.5rem;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
}

.hp-spellbook-wrapper {
    position: relative;
    background: radial-gradient(circle at 50% 25%, #101316 0%, #080a0c 55%, #000000 100%);
    border-radius: 24px;
    padding: 1.2rem 1.6rem 1.8rem;
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.98), 
        inset 0 0 60px rgba(0, 0, 0, 0.95);
    border: none;
    overflow: hidden;
}

/* 4角古代发光符文包角徽章 - 彻底移除 */
.hp-corner-embellish {
    display: none !important;
}

/* ---------------- 3D Sketchbook Stage ---------------- */
.sb-wrap {
    display: grid;
    justify-items: center;
    gap: 18px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.sb-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
    touch-action: pan-y;
}

/* 左右显眼发光翻页按钮 */
.sb-arrow {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1.5px solid rgba(0, 255, 136, 0.45);
    background: rgba(14, 18, 20, 0.92);
    color: #00ff88;
    cursor: pointer;
    transition: all 0.28s cubic-bezier(0.2, 0, 0.2, 1);
    -webkit-tap-highlight-color: transparent;
    z-index: 80;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8), 0 0 16px rgba(0, 255, 100, 0.25);
    backdrop-filter: blur(12px);
    pointer-events: auto;
}
.sb-arrow svg {
    pointer-events: none;
}
.sb-arrow:hover {
    color: #ffffff;
    background: rgba(0, 255, 100, 0.2);
    border-color: #39ff14;
    transform: scale(1.12);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.9), 0 0 26px rgba(0, 255, 136, 0.75);
}
.sb-arrow:active {
    transform: scale(0.95);
}
.sb-arrow:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 书本 3D 舞台与透视空间 */
.sb-3d {
    position: relative;
    flex: 1 1;
    min-width: 0;
    max-width: 900px;
    perspective: 1750px;
    perspective-origin: 50% 46%;
}

.sb-tilt {
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(var(--zoom, 1));
    will-change: transform;
}

.sb-book {
    position: relative;
    width: 100%;
    aspect-ratio: 1760 / 1240;
    transform-style: preserve-3d;
    z-index: 1;
}

/* 书本底部接触面与弥散阴影池 (Ambient & Contact Cast Shadows) */
.sb-cast {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}
.sb-cast.ambient {
    left: 5%; right: 5%; top: 27%; bottom: 2%;
    background: radial-gradient(50% 50% at 50% 58%, rgba(0, 255, 136, 0.16) 0%, rgba(0, 0, 0, 0.65) 46%, rgba(0, 0, 0, 0) 74%);
    filter: blur(32px);
    opacity: calc(1 - var(--shade, 0) * 0.45);
}
.sb-cast.contact {
    left: 9%; right: 9%; top: 62%; bottom: 10%;
    background: radial-gradient(50% 44% at 50% 42%, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.45) 50%, rgba(0, 0, 0, 0) 78%);
    filter: blur(12px);
    opacity: calc(1 - var(--shade, 0) * 0.55);
}
.sb-cast.hair {
    left: 12%; right: 12%; top: 70%; bottom: 17%;
    background: radial-gradient(50% 52% at 50% 40%, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0) 76%);
    filter: blur(5px);
    opacity: calc(1 - var(--shade, 0) * 0.65);
}

.sb-full {
    position: absolute;
    inset: 0;
}
.sb-full img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.sb-half {
    position: absolute;
    top: 0; bottom: 0;
    width: 50%;
    overflow-x: clip;
    overflow-y: visible;
}
.sb-half.left { left: 0; }
.sb-half.right { left: 50%; }
.sb-half-img {
    width: 200%;
    max-width: none;
    height: auto;
    display: block;
}
.sb-half-img.right { margin-left: -100%; }

/* 翻页叶片在下方静止页投射的幽微遮光阴影 (Gutter Shade) */
.gutter-shade {
    position: absolute;
    top: var(--pg, 21.8%);
    bottom: var(--pg, 21.8%);
    width: 46%;
    pointer-events: none;
    opacity: calc(var(--shade, 0) * 0.62);
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 5.2%, #000 94.8%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0, #000 5.2%, #000 94.8%, transparent 100%);
}
.gutter-shade.left {
    right: 0;
    background: linear-gradient(270deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0) 85%);
}
.gutter-shade.right {
    left: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0) 85%);
}

/* ---------------- 核心 18 段弯曲叶片 (The Turning Leaf: 18 Nested Strips) ---------------- */
.curl {
    position: absolute;
    top: 0;
    height: 100%;
    width: calc(var(--bw, 0px) * var(--span));
    transform-style: preserve-3d;
    z-index: 6;
}
.curl.next {
    left: 50%;
    transform-origin: left center;
    transform: rotateY(calc(-1 * var(--tt, 0deg)));
}
.curl.prev {
    right: 50%;
    transform-origin: right center;
    transform: rotateY(var(--tt, 0deg));
}

.strip {
    position: absolute;
    top: 0;
    height: 100%;
    width: calc(var(--bw, 0px) * var(--span) / var(--n));
    transform-style: preserve-3d;
}
.curl.next .strip { transform-origin: left center; }
.curl.prev .strip { transform-origin: right center; }
.curl.next > .strip { left: 0; }
.curl.prev > .strip { right: 0; left: auto; }
.curl.next .strip .strip { left: 100%; transform: rotateY(var(--td, 0deg)); }
.curl.prev .strip .strip { right: 100%; transform: rotateY(calc(-1 * var(--td, 0deg))); }

.face {
    position: absolute;
    top: 0; bottom: 0; left: 0; right: -1.1px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    background-repeat: no-repeat;
    background-size: var(--bw, 0px) auto;
}
.face.back { transform: rotateY(180deg); }

.face .sh, .face .gl {
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 5.2%, #000 94.8%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0, #000 5.2%, #000 94.8%, transparent 100%);
}
.strip.edge .face .sh, .strip.edge .face .gl {
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 9%, #000 91%, transparent 100%), var(--hf);
    mask-image: linear-gradient(180deg, transparent 0, #000 9%, #000 91%, transparent 100%), var(--hf);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
}
.curl.next .strip.edge .face.front,
.curl.prev .strip.edge .face.back {
    --hf: linear-gradient(90deg, #000 0 22%, transparent 96%);
}
.curl.next .strip.edge .face.back,
.curl.prev .strip.edge .face.front {
    --hf: linear-gradient(270deg, #000 0 22%, transparent 96%);
}

.face .sh {
    position: absolute;
    left: 0; right: 0; top: var(--pg, 21.8%); bottom: var(--pg, 21.8%);
    pointer-events: none;
}
.curl.next .face.front .sh,
.curl.prev .face.back .sh {
    background: linear-gradient(90deg, rgba(0, 0, 0, var(--a1, 0)), rgba(0, 0, 0, var(--a2, 0)));
}
.curl.next .face.back .sh,
.curl.prev .face.front .sh {
    background: linear-gradient(90deg, rgba(0, 0, 0, var(--a2, 0)), rgba(0, 0, 0, var(--a1, 0)));
}

.face .gl {
    position: absolute;
    left: 0; right: 0; top: var(--pg, 21.8%); bottom: var(--pg, 21.8%);
    pointer-events: none;
    background: #4efd54;
    opacity: calc(var(--shade, 0) * var(--lit, 1) * var(--lit, 1) * 0.24);
}

/* ---------------- 霍格沃茨黑曜石放大镜 (Interactive Obsidian Magnifier Loupe) ---------------- */
.loupe {
    position: absolute;
    left: 0; top: 0;
    width: var(--lr, 250px);
    height: var(--lr, 250px);
    pointer-events: none;
    z-index: 80;
    opacity: 0;
    transition: opacity 0.25s ease;
    will-change: transform;
}
.loupe.on { opacity: 1; pointer-events: auto; }
.loupe.held .ring { cursor: grabbing; }

.loupe .ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    pointer-events: auto;
    cursor: grab;
    padding: calc(var(--lr, 250px) * 0.058);
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.5),
        0 10px 22px rgba(0, 0, 0, 0.6),
        0 26px 45px rgba(0, 0, 0, 0.7),
        0 48px 75px rgba(0, 0, 0, 0.85);
}
/* 幽邃奥术雕花透镜圆环底圈 */
.loupe .ring:before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    pointer-events: none;
    background: linear-gradient(146deg,
        #b3ffcc 0%, #39ff14 16%, #00b34d 34%, #04260f 50%,
        #33cc66 66%, #ccffdd 80%, #0d4d22 100%);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.9),
        inset 0 -2px 3px rgba(0, 45, 18, 0.75);
    -webkit-mask-image: radial-gradient(circle closest-side at 50% 50%, transparent 0 88.2%, #000 89.8% 100%);
    mask-image: radial-gradient(circle closest-side at 50% 50%, transparent 0 88.2%, #000 89.8% 100%);
}

/* 黑曜石钛金手柄 */
.loupe .grip {
    position: absolute;
    left: 50%; top: 50%;
    width: calc(var(--lr, 250px) * 0.74);
    height: calc(var(--lr, 250px) * 0.125);
    transform-origin: 0 50%;
    transform: rotate(40deg) translate(calc(var(--lr, 250px) * 0.33), -50%);
    border-radius: calc(var(--lr, 250px) * 0.06);
    pointer-events: auto;
    cursor: grab;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0) 45%, rgba(0, 0, 0, 0.65) 100%),
        linear-gradient(90deg, #2a2e33 0%, #15181b 30%, #0a0c0e 70%, #1a1e22 100%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.75), 0 18px 36px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.lens {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-repeat: no-repeat;
    overflow: hidden;
    box-shadow:
        inset 0 0 0 1px rgba(0, 255, 136, 0.35),
        inset 0 4px 14px rgba(0, 0, 0, 0.6),
        inset 0 -7px 18px rgba(0, 255, 136, 0.15);
}
.lens .mag { display: none; }

/* 放大镜背后的镜中世界副本 */
.zoomwrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 2;
    opacity: 0;
}
.zoominner {
    position: absolute;
    inset: 0;
    transform-origin: 0 0;
}

.lens:before, .lens:after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    pointer-events: none;
}
.lens:before { z-index: 1; }
.lens:after { z-index: 2; }

/* 凸透镜边缘色散与暗角 */
.lens:before {
    background: radial-gradient(circle at 50% 50%,
        rgba(0,0,0,0) 54%, rgba(0,0,0,.25) 76%, rgba(0,0,0,.65) 100%);
    box-shadow:
        inset 0 0 0 2px rgba(0, 255, 136, 0.3),
        inset 0 0 0 4px rgba(0, 0, 0, 0.5);
}
/* 透镜凸面高光反光 */
.lens:after {
    background:
        radial-gradient(36% 26% at 29% 19%, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0) 76%),
        radial-gradient(24% 16% at 74% 86%, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0) 80%),
        linear-gradient(150deg, rgba(255, 255, 255, 0.08) 0 18%, rgba(255, 255, 255, 0) 42%);
}

/* ---------------- 交互视控工具栏 (Zoom & Controls) ---------------- */
.sb-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 6px 14px;
    background: rgba(12, 15, 18, 0.88);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.85);
}
.tool {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    transition: all 0.2s ease;
}
.tool:hover {
    background: rgba(0, 255, 136, 0.15);
    color: #00ff88;
    transform: scale(1.08);
}
.tool[aria-pressed="true"] {
    background: linear-gradient(135deg, #00ff88, #00b34d);
    color: #041208;
    box-shadow: 0 0 16px rgba(0, 255, 136, 0.6);
}
.tool:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: transparent;
    transform: none;
}
.tool svg {
    width: 17px;
    height: 17px;
    display: block;
}
.tool-sep {
    width: 1px;
    height: 18px;
    background: rgba(255, 255, 255, 0.12);
    margin: 0 4px;
}
.zoom-read {
    font-size: 12px;
    letter-spacing: 0.08em;
    color: #00ff88;
    min-width: 44px;
    text-align: center;
    font-variant-numeric: tabular-nums;
    font-family: var(--font-body), sans-serif;
    font-weight: 600;
}

.sb-zone {
    position: absolute;
    top: 0; bottom: 0;
    border: 0;
    background: transparent;
    cursor: grab;
    z-index: 60;
    -webkit-tap-highlight-color: transparent;
}
.sb-zone:active { cursor: grabbing; }
.sb-prev { left: 0; width: 50%; }
.sb-next { right: 0; width: 50%; }

/* ---------------- 顶部标题与提示 - 彻底移除 ---------------- */
.sb-captions {
    display: none !important;
}

.hp-page-counter {
    font-family: var(--font-heading), "Cinzel", Georgia, serif;
    font-size: 0.95rem;
    letter-spacing: 3px;
    color: #00ff88;
    text-shadow: 0 0 12px rgba(0, 255, 136, 0.65);
    text-align: center;
    margin: 4px 0 2px;
}

.sb-hint {
    display: none !important;
}

/* ---------------- 移动端全屏幕适配 ---------------- */
@media screen and (max-width: 768px) {
    .hp-spellbook-wrapper {
        padding: 1.2rem 0.6rem 1.6rem;
        border-radius: 16px;
    }
    .sb-3d {
        max-width: 100%;
    }
    .sb-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 85;
        width: 44px;
        height: 44px;
        background: rgba(10, 24, 14, 0.9);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8), 0 0 16px rgba(0, 255, 100, 0.4);
    }
    .sb-arrow.left { left: 4px; }
    .sb-arrow.right { right: 4px; }
    .sb-caption {
        font-size: 0.95rem;
        letter-spacing: 1.5px;
    }
    .sb-hint {
        font-size: 9.5px;
        letter-spacing: 0.05em;
        padding: 0 10px;
    }
}


/* ==========================================
   DriftWall 3D Floating Gallery Component (React Bits Variant)
   ========================================== */
.drift-wall {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 650px;
  overflow: hidden;
  perspective: var(--dw-perspective, 1200px);
  perspective-origin: 50% 50%;
  --dw-tile-w: 200px;
  --dw-tile-h: 132px;
  --dw-gap: 18px;
  --dw-radius: 14px;
  --dw-lift: 64px;
  --dw-dim: 0.85;
  --dw-gray: 0;
  --dw-overlay: rgba(6, 0, 16, 0.25);
  --dw-edge: 40%;
  -webkit-mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, #000 var(--dw-edge, 40%), transparent 100%);
  mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, #000 var(--dw-edge, 40%), transparent 100%);
}

.drift-wall__plane {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: row;
  transform-style: preserve-3d;
  cursor: pointer;
  transform-origin: 50% 50%;
  will-change: transform;
}

.drift-wall__col {
  position: relative;
  width: calc(var(--dw-tile-w) + var(--dw-gap));
  transform-style: preserve-3d;
}

.drift-wall__track {
  display: flex;
  flex-direction: column;
  will-change: transform;
  transform-style: preserve-3d;
}

.drift-wall__tile {
  position: relative;
  display: block;
  width: 100%;
  height: calc(var(--dw-tile-h) + var(--dw-gap));
  flex: 0 0 auto;
  outline: none;
  transform-style: preserve-3d;
}

.drift-wall__inner {
  position: absolute;
  inset: calc(var(--dw-gap) / 2);
  display: block;
  border-radius: var(--dw-radius);
  overflow: hidden;
  background: #0b0b12;
  opacity: var(--dw-dim);
  transform: translateZ(0);
  pointer-events: none;
  transition:
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.drift-wall__tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(var(--dw-gray)) saturate(0.92);
  transition: filter 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  user-select: none;
  -webkit-user-drag: none;
}

.drift-wall__overlay {
  position: absolute;
  inset: 0;
  background: var(--dw-overlay);
  opacity: 0.42;
  pointer-events: none;
  transition: opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.drift-wall__tile.is-active .drift-wall__inner,
.drift-wall__tile:focus-visible .drift-wall__inner {
  opacity: 1;
  transform: translateZ(var(--dw-lift));
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.8), 0 0 25px rgba(233, 196, 106, 0.4);
}

.drift-wall__tile.is-active img,
.drift-wall__tile:focus-visible img {
  filter: grayscale(0) saturate(1.1);
}

.drift-wall__tile.is-active .drift-wall__overlay,
.drift-wall__tile:focus-visible .drift-wall__overlay {
  opacity: 0;
}

.drift-wall__tile:focus-visible .drift-wall__inner {
  box-shadow:
    0 24px 60px -18px rgba(0, 0, 0, 0.8),
    0 0 0 2px rgba(255, 255, 255, 0.9);
}

.drift-wall-wrapper {
  height: 620px;
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(243, 229, 171, 0.35);
  background: rgba(13, 10, 20, 0.88);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 0 30px rgba(233, 196, 106, 0.08);
  position: relative;
}

@media screen and (max-width: 768px) {
  .drift-wall {
    min-height: 460px;
    height: clamp(450px, 68vh, 540px);
    --dw-edge: 55%;
    -webkit-mask-image: radial-gradient(ellipse 95% 95% at 50% 50%, #000 var(--dw-edge, 55%), transparent 100%);
    mask-image: radial-gradient(ellipse 95% 95% at 50% 50%, #000 var(--dw-edge, 55%), transparent 100%);
  }
  .drift-wall-wrapper {
    height: clamp(450px, 68vh, 540px);
    border-radius: 20px;
  }
  .drift-wall__tile {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  .drift-wall__inner {
    border-radius: 12px;
  }
  .drift-wall__tile:active .drift-wall__inner {
    transform: scale(0.96) translateZ(20px);
    opacity: 1;
  }
}

.drift-wall-mobile-hint {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.82rem;
  color: #f3e5ab;
  letter-spacing: 1.5px;
  opacity: 0.88;
  display: none;
}

@media screen and (max-width: 768px) {
  .drift-wall-mobile-hint {
    display: block;
  }
}

/* ==========================================
   RSVP VIP Thank You Modal (尊贵回复致谢弹窗)
   ========================================== */
.rsvp-ty-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    background: radial-gradient(circle at 50% 45%, rgba(42, 24, 60, 0.96) 0%, rgba(10, 6, 18, 0.98) 100%);
    backdrop-filter: blur(30px) saturate(220%);
    -webkit-backdrop-filter: blur(30px) saturate(220%);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 1.5rem;
}

.rsvp-ty-lightbox.active {
    opacity: 1;
    visibility: visible;
}

/* 旋转金辉光芒背景 */
.rsvp-ty-bg-rays {
    position: absolute;
    width: 850px;
    height: 850px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: conic-gradient(
        from 0deg at 50% 50%,
        rgba(243, 229, 171, 0.22) 0deg,
        transparent 25deg,
        rgba(233, 196, 106, 0.16) 50deg,
        transparent 75deg,
        rgba(243, 229, 171, 0.22) 100deg,
        transparent 125deg,
        rgba(212, 163, 115, 0.18) 150deg,
        transparent 175deg,
        rgba(243, 229, 171, 0.22) 200deg,
        transparent 225deg,
        rgba(233, 196, 106, 0.16) 250deg,
        transparent 275deg,
        rgba(243, 229, 171, 0.22) 300deg,
        transparent 325deg,
        rgba(243, 229, 171, 0.22) 360deg
    );
    border-radius: 50%;
    pointer-events: none;
    animation: rsvpRaysRotate 30s linear infinite;
    z-index: 0;
    filter: drop-shadow(0 0 25px rgba(233, 196, 106, 0.25));
}

@keyframes rsvpRaysRotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 动态飘落/迸发金粉与心形微粒容器 */
.rsvp-ty-particles {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.rsvp-ty-particle {
    position: absolute;
    user-select: none;
    pointer-events: none;
    will-change: transform, opacity;
    filter: drop-shadow(0 0 8px rgba(243, 229, 171, 0.85));
    animation: rsvpParticleAnim var(--duration, 4s) cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes rsvpParticleAnim {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(0.2);
        opacity: 0;
    }
    15% {
        opacity: 1;
    }
    85% {
        opacity: 0.9;
    }
    100% {
        transform: translate(var(--tx, 0px), var(--ty, -250px)) rotate(var(--rot, 360deg)) scale(var(--sc, 1.2));
        opacity: 0;
    }
}

/* 弹窗主卡片 (3D 弹跳出场，支持安全居中与防溢出滚动) */
.rsvp-ty-card {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 500px;
    margin: auto;
    background: linear-gradient(145deg, rgba(38, 26, 52, 0.96) 0%, rgba(20, 14, 28, 0.96) 100%);
    backdrop-filter: blur(35px) saturate(200%);
    -webkit-backdrop-filter: blur(35px) saturate(200%);
    border: 1.8px solid rgba(243, 229, 171, 0.55);
    border-radius: 28px;
    padding: 2.4rem 2rem 2rem;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.9), 0 0 45px rgba(233, 196, 106, 0.3), inset 0 0 30px rgba(243, 229, 171, 0.08);
    text-align: center;
    color: #ffffff;
    transform: scale(0.7) translateY(40px);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
    max-height: calc(100dvh - 2.5rem);
    max-height: calc(100vh - 2.5rem);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(243, 229, 171, 0.35) transparent;
}

.rsvp-ty-card::-webkit-scrollbar {
    width: 4px;
}
.rsvp-ty-card::-webkit-scrollbar-thumb {
    background: rgba(243, 229, 171, 0.35);
    border-radius: 4px;
}
.rsvp-ty-card::-webkit-scrollbar-track {
    background: transparent;
}

.rsvp-ty-lightbox.active .rsvp-ty-card {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* 弹窗专用右上角关闭按钮 */
.rsvp-ty-card .modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(13, 10, 20, 0.75);
    border: 1px solid rgba(243, 229, 171, 0.4);
    color: #f3e5ab;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 20;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.rsvp-ty-card .modal-close:hover {
    background: #e9c46a;
    color: #0d0a14;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 15px rgba(233, 196, 106, 0.8);
}

/* 四角金丝饰条 */
.ty-corner {
    position: absolute;
    width: 22px;
    height: 22px;
    border-color: rgba(243, 229, 171, 0.85);
    border-style: solid;
    pointer-events: none;
}
.ty-corner.top-left { top: 12px; left: 12px; border-width: 2px 0 0 2px; border-top-left-radius: 6px; }
.ty-corner.top-right { top: 12px; right: 12px; border-width: 2px 2px 0 0; border-top-right-radius: 6px; }
.ty-corner.bottom-left { bottom: 12px; left: 12px; border-width: 0 0 2px 2px; border-bottom-left-radius: 6px; }
.ty-corner.bottom-right { bottom: 12px; right: 12px; border-width: 0 2px 2px 0; border-bottom-right-radius: 6px; }

/* 顶部皇家图章与脉冲环 */
.rsvp-ty-badge-wrap {
    position: relative;
    width: 68px;
    height: 68px;
    margin: -0.8rem auto 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rsvp-ty-ring-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(243, 229, 171, 0.7);
    box-shadow: 0 0 25px rgba(233, 196, 106, 0.6);
    animation: tyRingPulseAnim 2.5s infinite ease-in-out;
}

@keyframes tyRingPulseAnim {
    0%, 100% { transform: scale(1); opacity: 0.85; }
    50% { transform: scale(1.2); opacity: 0.3; box-shadow: 0 0 40px rgba(243, 229, 171, 0.9); }
}

.rsvp-ty-seal-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffe082 0%, #e9c46a 50%, #b8860b 100%);
    border: 2.5px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(233, 196, 106, 0.7);
    position: relative;
    z-index: 2;
}

.seal-emoji {
    font-size: 1.8rem;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
    animation: tyCrownBounce 3s infinite ease-in-out;
}

@keyframes tyCrownBounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-4px) rotate(6deg); }
}

/* 头部文本 */
.rsvp-ty-subtag {
    font-size: 0.75rem;
    letter-spacing: 2.5px;
    color: #f3e5ab;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
    font-weight: 600;
}

.rsvp-ty-title {
    font-family: var(--font-heading), 'Noto Serif SC', serif;
    font-size: 1.85rem;
    margin-bottom: 0.6rem;
    background: linear-gradient(135deg, #ffffff 0%, #f3e5ab 60%, #e9c46a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    font-weight: 700;
}

.rsvp-ty-salutation {
    font-size: 1.02rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0.6rem;
}

.ty-highlight-name {
    color: #f3e5ab;
    font-weight: 700;
    font-size: 1.15rem;
    border-bottom: 1.5px dashed rgba(243, 229, 171, 0.8);
    padding: 0 5px;
    text-shadow: 0 0 10px rgba(243, 229, 171, 0.4);
}

.rsvp-ty-intro {
    font-size: 0.9rem;
    color: rgba(243, 229, 171, 0.88);
    margin-bottom: 1.15rem;
    line-height: 1.5;
}

/* 回复凭证票卡 (Ticket Card) */
.rsvp-ty-ticket-card {
    background: rgba(16, 10, 22, 0.88);
    border: 1px solid rgba(243, 229, 171, 0.35);
    border-radius: 18px;
    padding: 1.15rem 1.25rem;
    margin-bottom: 1.15rem;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.7);
    text-align: left;
    position: relative;
    overflow: hidden;
}

.rsvp-ty-ticket-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 4px; height: 100%;
    background: linear-gradient(180deg, #ffe082, #e9c46a, #c9935b);
}

.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px dashed rgba(243, 229, 171, 0.25);
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ticket-label {
    font-size: 0.8rem;
    color: rgba(243, 229, 171, 0.85);
    letter-spacing: 1px;
    font-weight: 600;
}

.ty-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.85rem;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
}

.ty-status-badge.attending {
    background: rgba(46, 213, 115, 0.18);
    border: 1.5px solid rgba(46, 213, 115, 0.65);
    color: #2ed573;
    box-shadow: 0 0 15px rgba(46, 213, 115, 0.35);
    text-shadow: 0 0 8px rgba(46, 213, 115, 0.5);
}

.ty-status-badge.declined {
    background: rgba(255, 107, 129, 0.18);
    border: 1.5px solid rgba(255, 107, 129, 0.65);
    color: #ff6b81;
    box-shadow: 0 0 15px rgba(255, 107, 129, 0.35);
    text-shadow: 0 0 8px rgba(255, 107, 129, 0.5);
}

.ticket-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
    margin-bottom: 0.75rem;
}

.ticket-item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(32, 22, 44, 0.7);
    padding: 0.55rem 0.85rem;
    border-radius: 12px;
    border: 1px solid rgba(243, 229, 171, 0.18);
}

.t-icon { font-size: 1.05rem; }
.t-label { font-size: 0.78rem; color: rgba(255, 255, 255, 0.7); }
.t-value { font-size: 0.85rem; color: #f3e5ab; font-weight: 700; margin-left: auto; }

.ticket-message-box {
    background: rgba(243, 229, 171, 0.06);
    border-radius: 12px;
    padding: 0.75rem 0.95rem;
    border-left: 2.5px solid #e9c46a;
    position: relative;
    font-style: italic;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.85rem;
    line-height: 1.5;
}

.quote-mark { color: #e9c46a; font-size: 1.2rem; font-weight: bold; }
.quote-mark.end { margin-left: 2px; }

/* 新人邀约卡片 */
.rsvp-ty-invitation-note {
    background: linear-gradient(135deg, rgba(45, 30, 60, 0.75) 0%, rgba(26, 18, 36, 0.75) 100%);
    border: 1px solid rgba(243, 229, 171, 0.28);
    border-radius: 16px;
    padding: 1.05rem 1.2rem;
    margin-bottom: 1.4rem;
    text-align: center;
}

.note-couple {
    font-family: var(--font-heading), 'Noto Serif SC', serif;
    font-size: 1.25rem;
    color: #f3e5ab;
    font-weight: 700;
    margin-bottom: 0.35rem;
    letter-spacing: 1px;
}

.note-details {
    font-size: 0.82rem;
    color: rgba(243, 229, 171, 0.9);
    margin-bottom: 0.45rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.note-details .dot { color: #e9c46a; }

.note-blessing {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.75);
}

/* 按钮组 */
.rsvp-ty-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.rsvp-ty-btn {
    padding: 0.85rem 2.5rem;
    border-radius: 50px;
    font-size: 0.96rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    letter-spacing: 1.5px;
    border: none;
    font-family: var(--font-body);
}

.rsvp-ty-btn.primary {
    background: linear-gradient(135deg, #ffe082 0%, #e9c46a 50%, #b8860b 100%);
    color: #1a1106;
    box-shadow: 0 12px 30px rgba(233, 196, 106, 0.5);
    min-width: 220px;
}

.rsvp-ty-btn.primary:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 18px 40px rgba(233, 196, 106, 0.75);
    color: #000000;
}

/* ==========================================
   移动端响应式深度适配 (< 600px 手机屏)
   解决弹窗过大、超出全屏、顶部被截断问题
   ========================================== */
@media screen and (max-width: 600px) {
    .rsvp-ty-lightbox {
        padding: 0.75rem;
        align-items: center;
    }

    .rsvp-ty-bg-rays {
        width: 130vw;
        height: 130vw;
        max-width: 480px;
        max-height: 480px;
    }

    .rsvp-ty-card {
        width: 100%;
        max-width: 400px;
        padding: 1.35rem 1.1rem 1.2rem;
        border-radius: 20px;
        max-height: calc(100dvh - 1.5rem);
        max-height: calc(100vh - 1.5rem);
        margin: auto;
        box-shadow: 0 16px 45px rgba(0, 0, 0, 0.88), 0 0 25px rgba(233, 196, 106, 0.25);
        border-width: 1.4px;
    }

    /* 手机端四角金丝饰条缩小边距 */
    .ty-corner {
        width: 13px;
        height: 13px;
        border-width: 1.5px;
    }
    .ty-corner.top-left { top: 8px; left: 8px; }
    .ty-corner.top-right { top: 8px; right: 8px; }
    .ty-corner.bottom-left { bottom: 8px; left: 8px; }
    .ty-corner.bottom-right { bottom: 8px; right: 8px; }

    /* 手机端关闭按钮紧凑置于卡片右上角 */
    .rsvp-ty-card .modal-close {
        top: 0.6rem;
        right: 0.6rem;
        width: 30px;
        height: 30px;
        font-size: 1.25rem;
    }

    /* 顶部皇冠印章徽章轻量缩小 */
    .rsvp-ty-badge-wrap {
        width: 48px;
        height: 48px;
        margin: -0.3rem auto 0.5rem;
    }

    .rsvp-ty-seal-icon {
        width: 40px;
        height: 40px;
        border-width: 2px;
    }

    .seal-emoji {
        font-size: 1.25rem;
    }

    /* 标题与问候语字号自适应压缩 */
    .rsvp-ty-subtag {
        font-size: 0.65rem;
        letter-spacing: 1.2px;
        margin-bottom: 0.2rem;
    }

    .rsvp-ty-title {
        font-size: 1.25rem;
        margin-bottom: 0.28rem;
        line-height: 1.25;
        letter-spacing: 0.5px;
    }

    .rsvp-ty-salutation {
        font-size: 0.86rem;
        margin-bottom: 0.28rem;
    }

    .ty-highlight-name {
        font-size: 0.98rem;
        padding: 0 3px;
    }

    .rsvp-ty-intro {
        font-size: 0.76rem;
        line-height: 1.4;
        margin-bottom: 0.7rem;
    }

    /* 票据凭证卡片紧凑排版 */
    .rsvp-ty-ticket-card {
        padding: 0.7rem 0.8rem;
        border-radius: 12px;
        margin-bottom: 0.7rem;
    }

    .ticket-header {
        margin-bottom: 0.45rem;
        padding-bottom: 0.35rem;
        gap: 0.35rem;
    }

    .ticket-label {
        font-size: 0.7rem;
        letter-spacing: 0.5px;
    }

    .ty-status-badge {
        padding: 0.2rem 0.55rem;
        font-size: 0.72rem;
        border-radius: 12px;
    }

    /* 关键：保持并排双列！避免纵向换行拉长撑爆屏幕 */
    .ticket-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.45rem;
        margin-bottom: 0.45rem;
    }

    .ticket-item {
        padding: 0.38rem 0.48rem;
        border-radius: 8px;
        gap: 0.3rem;
    }

    .t-icon {
        font-size: 0.88rem;
    }

    .t-label {
        font-size: 0.68rem;
    }

    .t-value {
        font-size: 0.76rem;
    }

    .ticket-message-box {
        padding: 0.45rem 0.65rem;
        border-radius: 8px;
        font-size: 0.75rem;
        line-height: 1.35;
    }

    .quote-mark {
        font-size: 1rem;
    }

    /* 新人邀约卡片紧凑排版 */
    .rsvp-ty-invitation-note {
        padding: 0.6rem 0.75rem;
        border-radius: 12px;
        margin-bottom: 0.75rem;
    }

    .note-couple {
        font-size: 0.98rem;
        margin-bottom: 0.18rem;
    }

    .note-details {
        font-size: 0.72rem;
        margin-bottom: 0.2rem;
        gap: 0.25rem;
    }

    .note-blessing {
        font-size: 0.7rem;
        line-height: 1.3;
    }

    /* 操作按钮全宽并适度减薄 */
    .rsvp-ty-actions {
        flex-direction: column;
        gap: 0;
    }

    .rsvp-ty-btn {
        width: 100%;
        min-width: 0;
        padding: 0.62rem 1.2rem;
        font-size: 0.88rem;
        border-radius: 30px;
        letter-spacing: 1px;
    }
}

/* 超窄小屏 (<= 360px) 进一步微调 */
@media screen and (max-width: 360px) {
    .rsvp-ty-card {
        padding: 1.15rem 0.8rem 1rem;
        border-radius: 16px;
    }

    .rsvp-ty-title {
        font-size: 1.12rem;
    }

    .ticket-grid {
        gap: 0.35rem;
    }

    .ticket-item {
        padding: 0.32rem 0.4rem;
    }

    .t-label {
        font-size: 0.65rem;
    }

    .t-value {
        font-size: 0.72rem;
    }

    .note-couple {
        font-size: 0.92rem;
    }

    .note-details {
        font-size: 0.68rem;
    }
}

/* 矮屏/横屏手机 (高度 <= 620px) 空间极致优化 */
@media screen and (max-height: 620px) {
    .rsvp-ty-badge-wrap {
        display: none; /* 隐藏顶部徽章，释放约 60px 纵向高度 */
    }

    .rsvp-ty-card {
        padding-top: 1.1rem;
        padding-bottom: 0.9rem;
    }

    .rsvp-ty-intro {
        display: none; /* 隐藏说明文字，进一步释放纵向空间 */
    }

    .rsvp-ty-invitation-note .note-blessing {
        display: none;
    }
}

/* ==========================================
   Schedule Module Enhanced (精简/详细视角 & 响应式)
   ========================================== */
.schedule-wrapper {
    max-width: 860px;
    margin: 0 auto;
}

.schedule-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    background: rgba(28, 20, 37, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(243, 229, 171, 0.2);
    border-radius: 20px;
    padding: 0.8rem 1.2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.schedule-mode-switch {
    display: inline-flex;
    background: rgba(13, 10, 20, 0.6);
    border-radius: 30px;
    padding: 4px;
    border: 1px solid rgba(243, 229, 171, 0.15);
}

.schedule-mode-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 0.45rem 1.1rem;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.schedule-mode-btn:hover {
    color: #ffffff;
}

.schedule-mode-btn.active {
    background: linear-gradient(135deg, rgba(233,196,106,0.3) 0%, rgba(212,163,115,0.18) 100%);
    color: #f3e5ab;
    border: 1px solid rgba(243, 229, 171, 0.45);
    box-shadow: 0 4px 12px rgba(233, 196, 106, 0.2);
}

.schedule-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.schedule-action-btn {
    background: linear-gradient(135deg, rgba(233, 196, 106, 0.18) 0%, rgba(212, 163, 115, 0.08) 100%);
    border: 1px solid rgba(243, 229, 171, 0.35);
    color: #f3e5ab;
    padding: 0.48rem 1.15rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.schedule-action-btn:hover {
    background: linear-gradient(135deg, rgba(233, 196, 106, 0.35) 0%, rgba(212, 163, 115, 0.2) 100%);
    border-color: rgba(243, 229, 171, 0.65);
    transform: translateY(-1.5px);
    box-shadow: 0 6px 18px rgba(233, 196, 106, 0.3);
}

.schedule-count-tag {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.4rem 0.85rem;
    border-radius: 20px;
    white-space: nowrap;
}

.schedule-count-tag strong {
    color: #e9c46a;
}

.schedule-checklist-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    position: relative;
}

.schedule-timeline-line {
    position: absolute;
    left: 37px;
    top: 25px;
    bottom: 25px;
    width: 2px;
    background: linear-gradient(180deg, rgba(243, 229, 171, 0.5) 0%, rgba(233, 196, 106, 0.15) 100%);
    z-index: 1;
    pointer-events: none;
}

.schedule-checklist-item {
    background: rgba(28, 20, 37, 0.78);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1.5px solid rgba(243, 229, 171, 0.25);
    border-radius: 20px;
    padding: 1.3rem 1.6rem;
    display: flex;
    gap: 1.4rem;
    align-items: flex-start;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.3s ease !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.schedule-checklist-item:hover {
    border-color: rgba(243, 229, 171, 0.55) !important;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.55), 0 0 20px rgba(233, 196, 106, 0.18) !important;
}

.schedule-checklist-item.is-expanded {
    border-color: rgba(243, 229, 171, 0.6) !important;
    background: rgba(35, 25, 46, 0.88);
}

.schedule-timeline-node {
    flex-shrink: 0;
    position: relative;
    z-index: 3;
}

.schedule-step-badge {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(233,196,106,0.3) 0%, rgba(212,163,115,0.12) 100%);
    border: 1.5px solid rgba(243,229,171,0.5);
    color: #f3e5ab;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    box-shadow: inset 0 0 12px rgba(243,229,171,0.2), 0 0 12px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
}

.schedule-checklist-item:hover .schedule-step-badge,
.schedule-checklist-item.is-expanded .schedule-step-badge {
    border-color: #f3e5ab;
    box-shadow: 0 0 16px rgba(243, 229, 171, 0.4), inset 0 0 14px rgba(243, 229, 171, 0.3);
    transform: scale(1.05);
}

.schedule-item-body {
    flex: 1;
    min-width: 0;
}

.schedule-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    padding: 0.1rem 0;
}

.schedule-title-group {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.schedule-item-title {
    margin: 0;
    font-size: 1.25rem;
    color: #f3e5ab;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
}

.schedule-checklist-item:hover .schedule-item-title {
    color: #ffffff;
}

.schedule-header-right {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-shrink: 0;
}

.schedule-location-badge {
    font-size: 0.82rem;
    color: #e9c46a;
    background: rgba(233, 196, 106, 0.12);
    border: 1px solid rgba(233, 196, 106, 0.28);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.schedule-time-badge {
    font-weight: 700;
    color: #1a1208;
    background: linear-gradient(135deg, #e9c46a 0%, #d4a373 100%);
    padding: 0.32rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 14px rgba(233, 196, 106, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
}

.schedule-expand-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(243, 229, 171, 0.08);
    border: 1px solid rgba(243, 229, 171, 0.25);
    color: #f3e5ab;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.25s ease, border-color 0.25s ease;
    flex-shrink: 0;
}

.schedule-checklist-item:hover .schedule-expand-icon {
    background: rgba(243, 229, 171, 0.2);
    border-color: rgba(243, 229, 171, 0.5);
}

.schedule-checklist-item.is-expanded .schedule-expand-icon {
    transform: rotate(180deg);
    background: rgba(233, 196, 106, 0.3);
    border-color: rgba(243, 229, 171, 0.6);
    color: #ffffff;
}

.schedule-item-detail-wrap {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    overflow: hidden;
}

.schedule-checklist-item.is-expanded .schedule-item-detail-wrap {
    grid-template-rows: 1fr;
    opacity: 1;
}

.schedule-item-detail-inner {
    min-height: 0;
    padding-top: 0.8rem;
    margin-top: 0.75rem;
    border-top: 1px dashed rgba(243, 229, 171, 0.18);
}

.schedule-item-content {
    margin: 0;
    font-size: 0.94rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    font-family: 'Montserrat', sans-serif;
    border-left: 2.5px solid rgba(233, 196, 106, 0.6);
    padding-left: 0.85rem;
    background: rgba(243, 229, 171, 0.03);
    border-radius: 0 8px 8px 0;
    padding: 0.6rem 0.85rem;
}

@media screen and (max-width: 640px) {
    .schedule-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.8rem;
        padding: 0.9rem 1rem;
        border-radius: 16px;
    }

    .schedule-mode-switch {
        width: 100%;
        display: flex;
    }

    .schedule-mode-btn {
        flex: 1;
        justify-content: center;
        padding: 0.5rem 0.5rem;
        font-size: 0.84rem;
    }

    .schedule-toolbar-actions {
        justify-content: space-between;
        width: 100%;
    }

    .schedule-action-btn {
        flex: 1;
        justify-content: center;
        padding: 0.5rem 0.8rem;
        font-size: 0.82rem;
    }

    .schedule-checklist-list {
        gap: 0.9rem;
    }

    .schedule-timeline-line {
        left: 29px;
        top: 20px;
        bottom: 20px;
    }

    .schedule-checklist-item {
        gap: 0.8rem;
        padding: 1.1rem 1.1rem;
        border-radius: 16px;
    }

    .schedule-step-badge {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .schedule-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
    }

    .schedule-header-right {
        width: 100%;
        justify-content: space-between;
    }

    .schedule-item-title {
        font-size: 1.15rem;
    }

    .schedule-time-badge {
        font-size: 0.78rem;
        padding: 0.25rem 0.75rem;
    }

    .schedule-actions-row {
        flex-direction: column !important;
        gap: 1rem !important;
        width: 100%;
    }

    .schedule-actions-row a {
        width: 100% !important;
        text-align: center;
        justify-content: center;
    }
}





