/* ================================================================
 *  专属网站-v2 · 暗夜玫瑰金 · 高定奢华
 *  与 v1 逻辑 1:1；全部资源本地（含文楷字体），离线可运行
 * ================================================================ */

@import url('../fonts/lxgwwenkai-light.css');
@import url('../fonts/lxgwwenkai-regular.css');

/* ---------- 设计令牌 ---------- */
:root {
    --bg: #170a12;
    --bg2: #24101e;
    --rose: #e8b4b8;
    --gold: #d4af37;
    --gold-bright: #f0d488;
    --gold-pale: #f8e7b0;
    --champagne: #f5e6c8;
    --text: #f5e6d8;
    --muted: #a88b8f;
    --plum: #7a3b5e;
    --gold-dim: rgba(212, 175, 55, 0.45);
    --gold-grad: linear-gradient(120deg, #f4e4bc 0%, #d4af37 22%, #a67c00 48%, #e8c97a 74%, #f4e4bc 100%);
    --glass-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
}

/* ---------- 全局 ---------- */
*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
    margin: 0; padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, sans-serif;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-height: 100vh; overflow: hidden;
    color-scheme: dark;
}

.serif { font-family: "LXGW WenKai", "KaiTi", "STKaiti", "SimSun", serif; }

/* ---------- 背景：深梅紫 + 玫瑰金光斑 + 上帝光 ---------- */
#aurora-bg {
    position: fixed; inset: 0; z-index: 0;
    overflow: hidden;
    background:
        radial-gradient(1100px 750px at 12% 88%, rgba(122, 59, 94, 0.5), transparent 62%),
        radial-gradient(950px 700px at 88% 12%, rgba(212, 175, 55, 0.14), transparent 60%),
        radial-gradient(700px 600px at 75% 80%, rgba(201, 138, 143, 0.16), transparent 60%),
        var(--bg);
}
.blob {
    position: absolute; border-radius: 50%;
    filter: blur(80px);
    will-change: transform;
}
.blob.b1 { width: 44vw; height: 44vw; left: -12vw; top: -14vw;
    background: radial-gradient(circle, rgba(201, 138, 143, 0.42), transparent 62%);
    animation: auroraDrift1 24s ease-in-out infinite alternate; }
.blob.b2 { width: 38vw; height: 38vw; right: -10vw; bottom: -12vw;
    background: radial-gradient(circle, rgba(122, 59, 94, 0.55), transparent 62%);
    animation: auroraDrift2 28s ease-in-out infinite alternate; }
.blob.b3 { width: 26vw; height: 26vw; left: 36vw; top: 28vh;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.3), transparent 62%);
    animation: auroraDrift3 32s ease-in-out infinite alternate; }
@keyframes auroraDrift1 { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(9vw, 6vh) scale(1.25); } }
@keyframes auroraDrift2 { 0% { transform: translate(0, 0) scale(1.1); } 100% { transform: translate(-8vw, -5vh) scale(0.9); } }
@keyframes auroraDrift3 { 0% { transform: translate(0, 0) scale(0.9); } 100% { transform: translate(6vw, -8vh) scale(1.3); } }

/* 缓慢旋转的上帝光 */
#rays {
    position: fixed; inset: -30%; z-index: 0; pointer-events: none; opacity: 0.13;
    background: repeating-conic-gradient(from 0deg, rgba(212, 175, 55, 0.14) 0deg 4deg, transparent 4deg 15deg);
    filter: blur(36px);
    animation: raysSpin 90s linear infinite;
}
@keyframes raysSpin { to { transform: rotate(360deg); } }

/* 暗角电影感 */
#vignette {
    position: fixed; inset: 0; z-index: 2; pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 52%, rgba(6, 2, 5, 0.62) 100%);
}

/* ---------- 玻璃拟态 ---------- */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 8px 32px rgba(0, 0, 0, 0.45);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .glass, #overlay, #toast, #compress-toast, #music-btn, #gallery-overlay, #lightbox, #beian-info {
        background: rgba(23, 10, 18, 0.94);
    }
}

/* ---------- 欢迎遮罩 ---------- */
#overlay {
    position: fixed; inset: 0; z-index: 9990;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: radial-gradient(ellipse at center, rgba(36, 16, 30, 0.55), rgba(16, 7, 12, 0.85) 75%);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    /* 退场动画由 GSAP 驱动，禁用 CSS transition 避免冲突 */
}
#overlay::before {
    /* 中央柔和光晕，柔化边缘 */
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(ellipse 620px 520px at center, rgba(212, 175, 55, 0.1), transparent 70%);
}
/* 金环徽记 */
.monogram {
    width: 74px; height: 74px; border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.6);
    display: flex; align-items: center; justify-content: center;
    position: relative; margin-bottom: 36px;
    color: var(--gold-bright); font-size: 30px;
    text-shadow: 0 0 18px rgba(212, 175, 55, 0.6);
    animation: monoGlow 3.6s ease-in-out infinite;
}
.monogram::before {
    content: ''; position: absolute; inset: -10px; border-radius: 50%;
    border: 1px dashed rgba(212, 175, 55, 0.45);
    animation: monoSpin 26s linear infinite;
}
.monogram::after {
    content: ''; position: absolute; inset: 10px; border-radius: 50%;
    border: 1px solid rgba(232, 180, 184, 0.35);
}
@keyframes monoSpin { to { transform: rotate(360deg); } }
@keyframes monoGlow {
    0%, 100% { box-shadow: 0 0 24px rgba(212, 175, 55, 0.2), inset 0 0 18px rgba(212, 175, 55, 0.08); }
    50%      { box-shadow: 0 0 46px rgba(212, 175, 55, 0.42), inset 0 0 26px rgba(212, 175, 55, 0.16); }
}

/* 金箔流光标题 */
.overlay-title {
    margin: 0 0 14px;
    font-family: "LXGW WenKai", "KaiTi", "STKaiti", serif;
    font-weight: 400;
    font-size: clamp(26px, 5.5vw, 36px);
    letter-spacing: 8px; text-indent: 8px;
    background: linear-gradient(100deg, #8a6d2f 0%, #d4af37 18%, #f8e7b0 34%, #d4af37 52%, #8a6d2f 70%, #d4af37 86%, #f8e7b0 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
    animation: goldFlow 6s linear infinite;
    filter: drop-shadow(0 2px 14px rgba(212, 175, 55, 0.25));
}
@keyframes goldFlow { 0% { background-position: 0% 0; } 100% { background-position: 200% 0; } }

.overlay-sub {
    margin: 0 0 12px;
    font-size: 11px; letter-spacing: 9px; text-indent: 9px;
    color: rgba(212, 175, 55, 0.8);
    text-transform: uppercase;
}
.overlay-divider {
    display: flex; align-items: center; gap: 12px;
    margin: 0 0 44px; color: rgba(212, 175, 55, 0.75); font-size: 11px;
}
.overlay-divider::before, .overlay-divider::after {
    content: ''; width: 64px; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.6));
}
.overlay-divider::after { background: linear-gradient(90deg, rgba(212, 175, 55, 0.6), transparent); }

/* 金描边胶囊按钮 + 扫光 */
#start-btn {
    position: relative;
    padding: 15px 58px;
    font-family: "LXGW WenKai", "KaiTi", serif;
    font-size: 20px; font-weight: 300; letter-spacing: 8px; text-indent: 8px;
    color: var(--champagne);
    background: linear-gradient(150deg, rgba(78, 32, 58, 0.92), rgba(36, 14, 30, 0.95));
    border: none; border-radius: 40px; cursor: pointer; overflow: hidden;
    box-shadow: 0 12px 44px rgba(0, 0, 0, 0.55), 0 0 26px rgba(212, 175, 55, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.16);
    transition: transform 0.3s, box-shadow 0.3s;
}
#start-btn::before {
    content: ''; position: absolute; inset: 0; border-radius: 40px; padding: 1.5px;
    background: var(--gold-grad);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    pointer-events: none;
}
#start-btn::after {
    content: ''; position: absolute; top: 0; bottom: 0; width: 42%; left: -60%;
    transform: skewX(-20deg);
    background: linear-gradient(90deg, transparent, rgba(248, 231, 176, 0.32), transparent);
    animation: btnSheen 3.6s ease-in-out infinite;
    pointer-events: none;
}
@keyframes btnSheen { 0% { left: -60%; } 55% { left: 135%; } 100% { left: 135%; } }
#start-btn:hover { transform: translateY(-3px); box-shadow: 0 16px 56px rgba(0, 0, 0, 0.6), 0 0 44px rgba(212, 175, 55, 0.34); }

#loading-box { display: none; width: 280px; text-align: center; }
#progress-container {
    width: 100%; height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 4px; overflow: hidden; margin-top: 18px;
}
#progress-bar {
    width: 0%; height: 100%;
    background: linear-gradient(90deg, #8a6d2f, #f0d488, #d4af37);
    background-size: 200% 100%;
    border-radius: 4px; transition: width 0.3s;
    animation: barShine 1.6s linear infinite;
}
@keyframes barShine { 0% { background-position: 0% 0; } 100% { background-position: 200% 0; } }
#loading-text { color: var(--muted); font-size: 13px; margin-top: 10px; letter-spacing: 3px; }

/* ---------- 拍立得（象牙白 + 金发丝描边 + 平行堆叠背框） ---------- */
.slider-container {
    position: relative; width: 300px; height: 400px;
    background: linear-gradient(160deg, #fbf7ee, #f0e8d6);
    padding: 15px 15px 70px 15px;
    border-radius: 6px;
    transform: rotate(-1.5deg); z-index: 10;
    display: flex; align-items: center; justify-content: center;
    overflow: visible;
    perspective: 1200px;
    transition: box-shadow 0.5s;
    animation: polaroidFloat 6s ease-in-out infinite;
    border: 1px solid rgba(212, 175, 55, 0.55);
    box-shadow:
        /* 相纸堆叠厚度感 */
        0 1px 0 rgba(255, 255, 255, 0.85),
        0 2px 0 rgba(210, 195, 160, 0.9),
        0 3px 0 rgba(185, 170, 138, 0.9),
        0 4px 0 rgba(160, 146, 118, 0.9),
        /* 主投影 + 金色氛围 */
        0 5px 12px rgba(0, 0, 0, 0.4),
        0 26px 70px rgba(0, 0, 0, 0.62),
        0 0 54px rgba(212, 175, 55, 0.16),
        inset 0 0 0 1px rgba(255, 255, 255, 0.75),
        inset 0 1px 6px rgba(184, 145, 47, 0.18);
}
@keyframes polaroidFloat {
    0%, 100% { transform: rotate(-1.5deg) translateY(0); }
    50%      { transform: rotate(-0.6deg) translateY(-8px); }
}
/* 背面错位深梅紫相框：与主体同角度同节奏浮动，相对位置恒定（贴在一起一起动） */
.slider-container::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(150deg, #3a1626, #20101a);
    border-radius: 6px;
    transform: rotate(-1.5deg) translate(6px, 5px);
    z-index: -1;
    animation: backFloat 6s ease-in-out infinite;
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(212, 175, 55, 0.28);
}
@keyframes backFloat {
    0%, 100% { transform: rotate(-1.5deg) translate(6px, 5px); }
    50%      { transform: rotate(-0.6deg) translate(6px, -3px); }
}
/* 底部金色题词 */
.polaroid-caption {
    position: absolute; bottom: 26px; left: 0; width: 100%;
    text-align: center; z-index: 13; pointer-events: none;
    font-family: "LXGW WenKai", "KaiTi", serif;
    font-size: 13px; letter-spacing: 4px;
    color: rgba(184, 145, 47, 0.85);
}

.img-inner-wrap {
    position: relative; width: 100%; height: 100%;
    overflow: hidden; background: #fdfaf3;
    border-radius: 2px;
    transform-style: preserve-3d;
    outline: 1px solid rgba(184, 145, 47, 0.5);
    outline-offset: -7px;
}

/* ---------- 图片（inset+margin 居中：不依赖 transform，加载后尺寸变化实时居中） ---------- */
.slide-img {
    position: absolute; inset: 0; margin: auto;
    max-width: 100%; max-height: 100%; width: auto; height: auto;
    object-fit: contain;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    user-select: none;
    -webkit-user-drag: none;
}

/* ---------- 情话（文楷 + 香槟金） ---------- */
.love-text {
    margin-top: 38px; text-align: center;
    font-family: "LXGW WenKai", "KaiTi", "STKaiti", serif;
    font-weight: 400; font-size: 20px; letter-spacing: 2px; line-height: 1.75;
    min-height: 68px; max-width: 580px;
    padding: 0 28px; z-index: 11;
    color: var(--champagne);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55), 0 2px 22px rgba(212, 175, 55, 0.3);
    position: relative;
    transition: opacity 0.6s, transform 0.6s;
}
.love-text::before, .love-text::after {
    content: '❝';
    position: absolute; color: rgba(212, 175, 55, 0.5);
    font-size: 22px; line-height: 1;
}
.love-text::before { top: -6px; left: 8px; }
.love-text::after { content: '❞'; bottom: -8px; right: 8px; }
.love-text.fade-text { opacity: 0; transform: translateY(10px); }

/* ---------- 爱心雨（玫瑰金） ---------- */
.heart {
    position: fixed; top: -30px; z-index: 5;
    animation: fall linear forwards;
    pointer-events: none;
    color: var(--rose);
    text-shadow: 0 0 12px rgba(232, 180, 184, 0.65);
}
@keyframes fall { to { transform: translateY(105vh) rotate(720deg); opacity: 0; } }

/* ---------- 音乐按钮（金环黑胶） ---------- */
#music-btn {
    position: fixed; top: 20px; left: 20px; z-index: 1000;
    width: 50px; height: 50px; border-radius: 50%;
    cursor: pointer;
    background: radial-gradient(circle at 35% 30%, rgba(70, 32, 52, 0.9), rgba(22, 9, 18, 0.92));
    border: 1px solid rgba(212, 175, 55, 0.55);
    color: var(--gold-bright);
    font-size: 19px; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
#music-btn:hover { transform: scale(1.1); box-shadow: 0 0 30px rgba(212, 175, 55, 0.4); }
#music-btn.playing {
    animation: vinylSpin 6s linear infinite;
    border-color: rgba(212, 175, 55, 0.9);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.38);
}
@keyframes vinylSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ---------- 上传 / 相册按钮（金环玻璃） ---------- */
#upload-wrapper {
    position: fixed; bottom: 30px; right: 24px;
    z-index: 500; display: flex; flex-direction: column; align-items: flex-end;
    gap: 8px;
}
#upload-btn {
    width: 54px; height: 54px; border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, rgba(70, 32, 52, 0.92), rgba(22, 9, 18, 0.94));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--gold-bright);
    border: 1px solid rgba(212, 175, 55, 0.55);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative; padding: 0;
}
#upload-btn svg, #gallery-btn svg { width: 22px; height: 22px; }
#upload-btn::after {
    content: ''; position: absolute; inset: -5px; border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.5);
    animation: btnPulse 2.2s ease-in-out infinite; pointer-events: none;
}
@keyframes btnPulse {
    0%, 100% { transform: scale(1); opacity: 0.55; }
    50%      { transform: scale(1.14); opacity: 0; }
}
#upload-btn:hover { transform: scale(1.1); box-shadow: 0 0 34px rgba(212, 175, 55, 0.45); border-color: rgba(212, 175, 55, 0.9); }

#upload-badge {
    position: absolute; top: -5px; right: -5px;
    background: linear-gradient(135deg, #f4e4bc, #d4af37);
    color: #3a2412;
    min-width: 22px; height: 22px; border-radius: 11px;
    font-size: 11px; font-weight: 600; line-height: 22px;
    display: none; align-items: center; justify-content: center;
    text-align: center; padding: 0 5px;
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.65); z-index: 501;
}
#upload-label, #gallery-label {
    font-size: 12px; color: var(--champagne);
    font-family: "LXGW WenKai", "KaiTi", serif; letter-spacing: 2px;
    background: rgba(30, 12, 24, 0.66);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: 20px; border: 1px solid rgba(212, 175, 55, 0.35);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
    opacity: 0; pointer-events: none;
    transition: all 0.3s; white-space: nowrap;
}
#upload-label { transform: translateX(10px); }
#upload-wrapper:hover #upload-label { opacity: 1; transform: translateX(0); }
#file-input { display: none; }

#gallery-btn {
    position: fixed; bottom: 30px; left: 24px; z-index: 500;
    width: 54px; height: 54px; border-radius: 50%;
    cursor: pointer;
    background: radial-gradient(circle at 35% 30%, rgba(70, 32, 52, 0.92), rgba(22, 9, 18, 0.94));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--gold-bright);
    border: 1px solid rgba(212, 175, 55, 0.55);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
#gallery-btn:hover { transform: scale(1.1) rotate(-8deg); box-shadow: 0 0 34px rgba(212, 175, 55, 0.45); border-color: rgba(212, 175, 55, 0.9); }
#gallery-label {
    position: fixed; bottom: 92px; left: 24px; z-index: 500;
    transform: translateY(-6px);
}
#gallery-btn:hover ~ #gallery-label { opacity: 1; transform: translateY(0); }

/* ---------- 相册网格 ---------- */
#gallery-overlay {
    position: fixed; inset: 0; z-index: 800;
    display: none; flex-direction: column; align-items: center;
    background:
        radial-gradient(ellipse at 50% 30%, rgba(122, 59, 94, 0.22), transparent 60%),
        radial-gradient(ellipse at 15% 90%, rgba(212, 175, 55, 0.1), transparent 55%),
        radial-gradient(ellipse at center, rgba(40, 16, 30, 0.8), rgba(20, 9, 14, 0.92));
    backdrop-filter: blur(30px) saturate(150%);
    -webkit-backdrop-filter: blur(30px) saturate(150%);
    padding: 24px 28px 32px;
    overflow: hidden;
}
#gallery-overlay::before {
    /* 细微噪点纹理，增强玻璃质感 */
    content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}
#gallery-overlay.open { display: flex; }
#gallery-head {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; max-width: 860px; margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.35);
}
#gallery-title {
    font-family: "LXGW WenKai", "KaiTi", serif; font-weight: 400;
    font-size: clamp(19px, 4vw, 25px); letter-spacing: 5px;
    background: linear-gradient(100deg, #d4af37, #f8e7b0, #d4af37);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 2px 10px rgba(212, 175, 55, 0.25));
}
#gallery-close {
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: var(--gold-bright); font-size: 17px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.25s;
}
#gallery-close:hover { background: rgba(212, 175, 55, 0.2); transform: rotate(90deg); }
#gallery-grid {
    width: 100%; max-width: 860px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 14px;
    overflow-y: auto; padding: 6px 6px 20px;
    scrollbar-width: thin; scrollbar-color: rgba(212, 175, 55, 0.45) transparent;
}
#gallery-grid::-webkit-scrollbar { width: 8px; }
#gallery-grid::-webkit-scrollbar-thumb { background: rgba(212, 175, 55, 0.4); border-radius: 4px; }
.g-item {
    aspect-ratio: 3 / 4;
    border-radius: 10px; overflow: hidden;
    cursor: pointer; position: relative;
    border: 1px solid rgba(212, 175, 55, 0.55);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s;
}
.g-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.g-item:hover { transform: scale(1.04) translateY(-2px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 26px rgba(212, 175, 55, 0.4); border-color: rgba(212, 175, 55, 0.85); }
#gallery-empty { color: var(--muted); font-size: 15px; margin-top: 40px; font-family: "LXGW WenKai", "KaiTi", serif; letter-spacing: 2px; }

/* ---------- 灯箱 ---------- */
#lightbox {
    position: fixed; inset: 0; z-index: 900;
    display: none; align-items: center; justify-content: center;
    background: rgba(10, 4, 8, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
#lightbox.open { display: flex; }
#lightbox-img {
    max-width: 88vw; max-height: 82vh;
    border-radius: 10px;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.7), 0 0 60px rgba(212, 175, 55, 0.2);
    border: 1px solid rgba(212, 175, 55, 0.5);
    object-fit: contain;
    user-select: none;
}
.lb-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 46px; height: 46px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: var(--gold-bright); font-size: 24px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.25s; z-index: 2;
    padding-bottom: 4px;
}
.lb-btn:hover { background: rgba(212, 175, 55, 0.2); transform: translateY(-50%) scale(1.08); }
#lb-prev { left: 20px; }
#lb-next { right: 20px; }
#lb-close {
    position: absolute; top: 20px; right: 20px;
    width: 42px; height: 42px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: var(--gold-bright); font-size: 18px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.25s;
}
#lb-close:hover { background: rgba(212, 175, 55, 0.2); transform: rotate(90deg); }
#lb-counter {
    position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
    color: rgba(245, 230, 200, 0.8); font-size: 13px; letter-spacing: 3px;
    background: rgba(0, 0, 0, 0.4); padding: 6px 18px; border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    font-family: "LXGW WenKai", "KaiTi", serif;
}

/* ---------- 上传密码弹窗 ---------- */
#pwd-overlay {
    position: fixed; inset: 0; z-index: 9500;
    display: none; align-items: center; justify-content: center;
    background: rgba(14, 6, 10, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
#pwd-overlay.open { display: flex; }
.pwd-box {
    width: 320px; padding: 30px 28px 24px;
    border-radius: 18px; text-align: center;
    background: linear-gradient(150deg, rgba(56, 24, 42, 0.94), rgba(24, 10, 20, 0.96));
    border: 1px solid rgba(212, 175, 55, 0.45);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(212, 175, 55, 0.12);
    animation: pwdIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes pwdIn {
    from { opacity: 0; transform: translateY(14px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.pwd-box.shake { animation: pwdShake 0.4s; }
@keyframes pwdShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-9px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-6px); }
    80% { transform: translateX(4px); }
}
.pwd-title {
    font-family: "LXGW WenKai", "KaiTi", serif;
    font-size: 19px; letter-spacing: 4px; color: var(--gold-bright);
    margin-bottom: 6px;
}
.pwd-sub { font-size: 12px; color: var(--muted); margin-bottom: 18px; letter-spacing: 1px; }
.pwd-box input {
    width: 100%; padding: 11px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 10px;
    color: var(--champagne); font-size: 15px; letter-spacing: 3px;
    outline: none; text-align: center;
    transition: border-color 0.25s, box-shadow 0.25s;
}
.pwd-box input:focus {
    border-color: rgba(212, 175, 55, 0.85);
    box-shadow: 0 0 16px rgba(212, 175, 55, 0.2);
}
.pwd-box input::placeholder { letter-spacing: 1px; color: rgba(168, 139, 143, 0.6); }
#pwd-msg { min-height: 22px; font-size: 12px; color: #e06a6a; margin-top: 8px; letter-spacing: 1px; }
.pwd-btns { display: flex; gap: 12px; margin-top: 6px; }
.pwd-btns button {
    flex: 1; padding: 10px 0;
    border-radius: 22px; cursor: pointer;
    font-family: "LXGW WenKai", "KaiTi", serif;
    font-size: 15px; letter-spacing: 3px;
    transition: all 0.25s;
}
#pwd-cancel {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--muted);
}
#pwd-cancel:hover { background: rgba(255, 255, 255, 0.12); }
#pwd-ok {
    background: linear-gradient(120deg, rgba(212, 175, 55, 0.85), rgba(200, 107, 255, 0.75));
    border: none; color: #2a1608; font-weight: 600;
    box-shadow: 0 4px 18px rgba(212, 175, 55, 0.3);
}
#pwd-ok:hover { filter: brightness(1.15); }

/* ---------- 拖拽遮罩 ---------- */
#drop-overlay {
    position: fixed; inset: 0; z-index: 400;
    background: rgba(58, 24, 44, 0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: none; align-items: center; justify-content: center; pointer-events: none;
}
#drop-zone-msg {
    background: rgba(26, 10, 22, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 46px 68px; border-radius: 22px; text-align: center;
    color: var(--champagne);
    font-family: "LXGW WenKai", "KaiTi", serif; letter-spacing: 3px;
    box-shadow: 0 14px 50px rgba(0, 0, 0, 0.6), 0 0 40px rgba(212, 175, 55, 0.15);
    border: 1.5px dashed rgba(212, 175, 55, 0.65);
}
#drop-zone-msg .drop-icon { font-size: 40px; margin-bottom: 12px; color: var(--gold-bright); }
#drop-zone-msg .drop-text { font-size: 18px; }

/* ---------- Toast（深玻璃 + 金色状态条） ---------- */
#toast {
    position: fixed; top: 30px; left: 50%; transform: translateX(-50%);
    z-index: 10000; padding: 14px 30px; border-radius: 30px;
    color: var(--champagne); font-size: 15px; letter-spacing: 1px;
    font-family: "LXGW WenKai", "KaiTi", serif;
    background: rgba(26, 10, 22, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(212, 175, 55, 0.35);
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.5);
    opacity: 0; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    border-left: 3px solid var(--gold);
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(4px); }
#toast.success { border-left-color: #7ed3a0; }
#toast.error   { border-left-color: #e06a6a; }
#toast.info    { border-left-color: #8fa6d9; }

#compress-toast {
    position: fixed; bottom: 110px; right: 30px; z-index: 10000;
    background: rgba(26, 10, 22, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(212, 175, 55, 0.35);
    padding: 12px 20px; border-radius: 14px; color: var(--champagne); font-size: 13px;
    font-family: "LXGW WenKai", "KaiTi", serif; letter-spacing: 1px;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.4);
    display: none; align-items: center; gap: 10px;
}
.compress-spinner {
    width: 16px; height: 16px; border-radius: 50%;
    border: 2px solid rgba(212, 175, 55, 0.25); border-top-color: var(--gold-bright);
    animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 备案信息 ---------- */
#beian-info {
    position: fixed; bottom: 0; left: 0; width: 100%; z-index: 10000;
    text-align: center; padding: 8px 0;
    background: rgba(16, 7, 12, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(212, 175, 55, 0.14);
    opacity: 0.75;
}
#beian-info a { display: inline-flex; align-items: center; text-decoration: none; }
#beian-info img { width: 18px; height: 18px; opacity: 0.85; }
#beian-info p {
    margin: 0 0 0 5px; color: rgba(199, 178, 160, 0.55); font-size: 12px;
    font-family: inherit;
}

/* ---------- 响应式 ---------- */
@media (max-width: 640px) {
    .slider-container { width: 82vw; max-width: 340px; height: calc(82vw * 4 / 3); max-height: 455px; padding: 12px 12px 60px 12px; }
    #upload-btn, #gallery-btn { width: 48px; height: 48px; }
    #upload-wrapper { bottom: 16px; right: 12px; }
    #gallery-btn { bottom: 16px; left: 12px; }
    #gallery-label { left: 12px; bottom: 72px; }
    .love-text { font-size: 17px; margin-top: 28px; min-height: 74px; }
    #music-btn { width: 46px; height: 46px; top: 14px; left: 14px; }
    #gallery-overlay { padding: 18px 14px 24px; }
    #gallery-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; }
    .lb-btn { width: 40px; height: 40px; font-size: 20px; }
    #lb-prev { left: 8px; } #lb-next { right: 8px; }
    #beian-info p { font-size: 10px; }
    .overlay-divider::before, .overlay-divider::after { width: 34px; }
}
