/* 全局强制隐藏滚动条 - 优先级最高 */
* {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

*::-webkit-scrollbar {
    display: none !important;
    width: 0px !important;
    height: 0px !important;
    background: transparent !important;
}

*::-webkit-scrollbar-track {
    display: none !important;
}

*::-webkit-scrollbar-thumb {
    display: none !important;
}

*::-webkit-scrollbar-corner {
    display: none !important;
}

html,
body {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    /* 确保移动端布局稳定 */
    box-sizing: border-box !important;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none !important;
    width: 0px !important;
    height: 0px !important;
}

/* 开屏动画样式 */
#splashScreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* 上下门板样式 */
.door-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.door-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* 左右门板样式 */
.door-left {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.door-right {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

/* 上下门板开启动画 */
@keyframes doorOpenTop {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(-100%);
        opacity: 0;
    }
}

@keyframes doorOpenBottom {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(100%);
        opacity: 0;
    }
}

/* 左右门板开启动画 */
@keyframes doorOpenLeft {
    0% {
        transform: translateX(0);
        opacity: 1;
    }

    100% {
        transform: translateX(-100%);
        opacity: 0;
    }
}

@keyframes doorOpenRight {
    0% {
        transform: translateX(0);
        opacity: 1;
    }

    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

.splash-content {
    text-align: center;
    position: relative;
}

.splash-title {
    font-family: 'Pacifico', cursive;
    font-size: 48px;
    color: rgba(255, 111, 97, 0.9);
    margin: 0;
    animation: titleFadeIn 1s ease-out, titleFadeOut 1s ease-in 2.5s forwards;
    text-shadow: 0 2px 10px rgba(255, 111, 97, 0.3);
}

.splash-hearts {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    pointer-events: none;
}

/* 炸裂小心心动画 */
.heart-particle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    background: #ff6f61;
    transform: translate(-50%, -50%) rotate(45deg);
    animation: heartExplode 3s ease-out forwards;
    box-shadow: 0 0 15px rgba(255, 111, 97, 0.6);
}

.heart-particle::before,
.heart-particle::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    background: inherit;
    border-radius: 50%;
}

.heart-particle::before {
    top: -12px;
    left: 0;
}

.heart-particle::after {
    top: 0;
    left: -12px;
}

/* 添加不同大小的心心 */
.heart-particle.small {
    width: 18px;
    height: 18px;
}

.heart-particle.small::before,
.heart-particle.small::after {
    width: 18px;
    height: 18px;
    background: inherit;
}

.heart-particle.small::before {
    top: -9px;
}

.heart-particle.small::after {
    left: -9px;
}

.heart-particle.large {
    width: 30px;
    height: 30px;
}

.heart-particle.large::before,
.heart-particle.large::after {
    width: 30px;
    height: 30px;
    background: inherit;
}

.heart-particle.large::before {
    top: -15px;
}

.heart-particle.large::after {
    left: -15px;
}

@keyframes titleFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.8);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes titleFadeOut {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateY(-20px) scale(0.9);
    }
}

@keyframes heartExplode {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) rotate(45deg) scale(0);
    }

    10% {
        opacity: 1;
        transform: translate(-50%, -50%) rotate(45deg) scale(1.3);
    }

    20% {
        opacity: 1;
        transform: translate(-50%, -50%) rotate(45deg) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) rotate(405deg) scale(0.1);
    }
}

/* 音乐播放器样式 */
.music-icon {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 200; /* 高于 nav(100) 和 footer(50)，确保始终可见 */
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    opacity: 0;
    transform: scale(0.8);
    display: block;
    pointer-events: auto; /* 确保可点击 */
}

/* 播放器图标跳动动画 */
@keyframes playerIconBounce {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(0);
    }

    25% {
        opacity: 1;
        transform: scale(1.2) translateY(-10px);
    }

    50% {
        opacity: 1;
        transform: scale(0.9) translateY(5px);
    }

    75% {
        opacity: 1;
        transform: scale(1.1) translateY(-5px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* 播放器图标显示动画类 */
.music-icon.show-with-bounce {
    animation: playerIconBounce 1.2s ease-out forwards;
}

.music-icon:hover {
    transform: scale(1.1);
}

/* 边缘隐藏状态 */
.music-icon.hidden-at-edge {
    opacity: 0.5;
    transition: all 0.5s ease-out;
}

.music-icon.hidden-at-edge:hover {
    opacity: 1;
    right: 20px !important;
    transform: scale(1.1);
}

.vinyl-record {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #1a1a1a, #333);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    overflow: visible;
}

/* 添加黑胶唱片的纹理 */
.vinyl-record::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, transparent 15px, rgba(255, 255, 255, 0.1) 16px, transparent 17px),
        radial-gradient(circle at center, transparent 20px, rgba(255, 255, 255, 0.05) 21px, transparent 22px),
        radial-gradient(circle at center, transparent 25px, rgba(255, 255, 255, 0.05) 26px, transparent 27px);
    pointer-events: none;
}

.vinyl-record::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    background: #666;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
}

.vinyl-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    overflow: hidden;
    z-index: 2;
}

.vinyl-center img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

@keyframes vinylRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.vinyl-record.playing {
    animation: vinylRotate 3s linear infinite;
}

.vinyl-record.paused {
    animation-play-state: paused;
}

/* 音乐播放器动画效果 */
.music-player {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.music-player.show {
    display: block;
    opacity: 1;
}

.music-player.show .music-player-content {
    opacity: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.music-player-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 450px;
    max-height: 85vh;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 25px;
    overflow-y: auto;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 8px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.15s ease-out;
}

@keyframes slideIn {
    from {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
        filter: blur(10px);
    }

    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
        filter: blur(0px);
    }
}

.player-header {
    position: relative;
    margin-bottom: 30px;
}

.music-close {
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 30px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: color 0.3s;
}

.music-close:hover {
    color: #fff;
}

.current-song {
    display: flex;
    align-items: center;
    gap: 15px;
}

.current-song img {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
}

.song-info h3 {
    color: #fff;
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 600;
}

.song-info p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 14px;
}

.player-controls {
    margin-bottom: 30px;
}

.progress-container {
    margin-bottom: 20px;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    cursor: pointer;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6f61, #ff8a80);
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s;
}

.time-info {
    display: flex;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

.control-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
}

.control-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.play-pause {
    width: 60px;
    height: 60px;
    font-size: 20px;
    background: linear-gradient(45deg, #ff6f61, #ff8a80);
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    justify-content: center;
}

.volume-icon {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
}

.volume-slider {
    width: 100px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    position: relative;
}

.volume-slider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #ff6f61, #ff8a80);
    border-radius: 2px;
    width: var(--volume-width, 70%);
    transition: width 0.2s ease;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: linear-gradient(45deg, #ff6f61, #ff8a80);
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: linear-gradient(45deg, #ff6f61, #ff8a80);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.playlist-container {
    margin-bottom: 20px;
}

.playlist-container h4 {
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.playlist {
    max-height: 220px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 4px 12px rgba(0, 0, 0, 0.15);
}

.playlist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 6px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
}

.playlist-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.playlist-item.active {
    background: rgba(255, 111, 97, 0.2);
    border-color: rgba(255, 111, 97, 0.3);
    box-shadow:
        0 4px 12px rgba(255, 111, 97, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.playlist-item.active:hover {
    background: rgba(255, 111, 97, 0.25);
    transform: translateY(-1px);
}

.playlist-item img {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.playlist-item-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.playlist-item-info h5 {
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.playlist-item-info p {
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lyrics-display {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lyrics-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    min-height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading {
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    padding: 20px;
    font-style: italic;
}

/* 右下角浮动按钮组 */
.floating-buttons {
    position: fixed;
    bottom: 150px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 150;
    pointer-events: auto;
}

.floating-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, rgba(255, 111, 97, 0.8), rgba(255, 138, 128, 0.8));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(255, 111, 97, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    pointer-events: none;
}

.floating-btn.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.floating-btn:hover {
    transform: scale(1.15) translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 111, 97, 0.5);
    background: linear-gradient(135deg, rgba(255, 111, 97, 1), rgba(255, 138, 128, 1));
}

.floating-btn:active {
    transform: scale(0.95);
}

.floating-btn .btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 按钮出现动画 */
@keyframes floatingBtnAppear {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.floating-btn.show {
    animation: floatingBtnAppear 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* 按钮禁用状态 */
.floating-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: linear-gradient(135deg, rgba(200, 200, 200, 0.6), rgba(220, 220, 220, 0.6));
}

.floating-btn:disabled:hover {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(200, 200, 200, 0.2);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .floating-buttons {
        bottom: 120px;
        right: 10px;
        gap: 10px;
    }

    .floating-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}

/* 基础样式 */
html {
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    font-family: 'Montserrat', sans-serif;
    color: #333;
    overflow-x: hidden;
    overflow-y: scroll;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

body::before {
    content: '';
    position: fixed;
    top: -50px;
    left: -50px;
    width: 200%;
    height: 200%;
    background-image: radial-gradient(circle at center, rgba(255, 111, 97, 0.2), transparent 70%);
    animation: rotateBackground 60s linear infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes rotateBackground {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* 全局禁用移动端点击高亮 */
* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

/* 特别针对可点击元素 */
button,
input,
a,
div[onclick],
span[onclick],
img[onclick],
.arrow,
#closeBtn,
#viewOriginalBtn,
#popup,
#popupImg {
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

nav {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    height: auto;
    padding: 4px 0;
}

nav .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3px 20px;
    text-align: center;
}

nav h1 {
    font-family: 'Pacifico', cursive;
    font-size: 24px;
    color: rgba(255, 111, 97, 0.9);
    margin: 0;
}

main {
    margin-top: 40px;
    margin-bottom: 60px;
}

#name {
    text-align: center;
    padding: 25px 30px;
    margin: 20px auto;
    max-width: 400px;
    position: relative;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 50%, #ffffff 100%);
    border-radius: 20px;
    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.08),
        0 4px 15px rgba(255, 111, 97, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(255, 111, 97, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: cardFadeIn 1s ease-out 0.2s both;
    overflow: hidden;
}

/* 卡片背景装饰 */
#name::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 111, 97, 0.03) 0%, transparent 70%);
    animation: rotateDecoration 20s linear infinite;
    z-index: 0;
}

/* 卡片右上角装饰点 */
#name::after {
    content: '';
    position: absolute;
    top: 15px;
    right: 15px;
    width: 8px;
    height: 8px;
    background: linear-gradient(45deg, rgba(255, 111, 97, 0.3), rgba(255, 138, 128, 0.3));
    border-radius: 50%;
    z-index: 1;
    animation: sparkle 2s ease-in-out infinite;
}

/* 名字周围的装饰心形 */
.name-heart-left,
.name-heart-right {
    position: absolute;
    font-size: 24px;
    top: 50%;
    transform: translateY(-50%);
    animation: heartFloat 4s ease-in-out infinite;
    opacity: 0.7;
    z-index: 3;
}

.name-heart-left {
    left: 10%;
    animation-delay: 0s;
}

.name-heart-right {
    right: 10%;
    animation-delay: 2s;
}

#name:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow:
        0 20px 45px rgba(0, 0, 0, 0.12),
        0 8px 25px rgba(255, 111, 97, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 111, 97, 0.2);
}

#name h2 {
    font-family: 'Pacifico', cursive;
    font-size: 38px;
    color: #ff6f61;
    padding: 0;
    margin: 0;
    text-shadow: 0 4px 8px rgba(255, 111, 97, 0.3);
    animation: nameGlow 3s ease-in-out infinite;
    position: relative;
    display: inline-block;
    z-index: 2;
}

/* 名字发光动画 */
@keyframes nameGlow {

    0%,
    100% {
        text-shadow: 0 4px 8px rgba(255, 111, 97, 0.3);
        transform: scale(1);
    }

    50% {
        text-shadow:
            0 4px 8px rgba(255, 111, 97, 0.5),
            0 0 20px rgba(255, 111, 97, 0.3),
            0 0 30px rgba(255, 111, 97, 0.2);
        transform: scale(1.02);
    }
}

/* 卡片淡入动画 */
@keyframes cardFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }

    60% {
        opacity: 1;
        transform: translateY(-5px) scale(1.02);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes rotateDecoration {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes sparkle {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.5);
    }
}

/* 名字周围的装饰心形 */
#name::before,
#name::after {
    content: '💕';
    position: absolute;
    font-size: 24px;
    top: 50%;
    transform: translateY(-50%);
    animation: heartFloat 4s ease-in-out infinite;
    opacity: 0.7;
}

#name::before {
    left: 10%;
    animation-delay: 0s;
}

#name::after {
    right: 10%;
    animation-delay: 2s;
}

@keyframes heartFloat {

    0%,
    100% {
        transform: translateY(-50%) rotate(0deg) scale(1);
        opacity: 0.7;
    }

    25% {
        transform: translateY(-60%) rotate(5deg) scale(1.1);
        opacity: 1;
    }

    50% {
        transform: translateY(-40%) rotate(-5deg) scale(0.9);
        opacity: 0.8;
    }

    75% {
        transform: translateY(-55%) rotate(3deg) scale(1.05);
        opacity: 0.9;
    }
}

/* Timer卡片翻转容器 */
.timer-card {
    text-align: center;
    padding: 25px 30px;
    margin: 20px auto;
    max-width: 400px;
    position: relative;
    perspective: 1000px;
    animation: cardFadeIn 1s ease-out 0.4s both;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 50%, #ffffff 100%);
    border-radius: 20px;
    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.08),
        0 4px 15px rgba(255, 111, 97, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(255, 111, 97, 0.08);
    overflow: hidden;
}

.timer-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow:
        0 20px 45px rgba(0, 0, 0, 0.12),
        0 8px 25px rgba(255, 111, 97, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 111, 97, 0.2);
}

.timer-card-inner {
    position: relative;
    width: 100%;
    height: 100px;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    cursor: pointer;
    pointer-events: auto; /* 确保可以接收点击事件 */
}

.timer-card:hover .timer-card-inner {
    transform: rotateY(180deg);
}

.timer-card-front,
.timer-card-back {
    position: absolute;
    width: 100%;
    height: 100px;
    top: 0;
    left: 0;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 20px;
    pointer-events: auto; /* 确保可以接收点击事件 */
}

/* 正面 - 倒计时 */
.timer-card-front {
    background: transparent;
}

/* 背面 - 婚礼邀请函 */
.timer-card-back {
    background: transparent;
    transform: rotateY(180deg);
}

/* 背面图标 */
.invitation-icon {
    font-size: 40px;
    margin-bottom: 5px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
    animation: iconBounceAndTrigger 2s ease-in-out;
    animation-fill-mode: forwards;
    cursor: pointer;
    padding: 10px;
    /* 增加内边距扩大点击区域 */
    border-radius: 50%;
    /* 圆形点击区域 */
    transition: background-color 0.3s ease;
    /* 悬停效果过渡 */
}

/* 图标悬停效果 */
.invitation-icon:hover {
    background-color: rgba(255, 111, 97, 0.1);
    transform: scale(1.05);
}

/* 背面文字 */
.timer-card-back .invitation-text {
    font-size: 18px;
    color: #ff6f61;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(255, 111, 97, 0.3);
}

/* 邀请函提示文字 */
.timer-card-back .invitation-hint {
    font-size: 14px;
    color: #999;
    margin-top: 8px;
    font-style: italic;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

/* 背面悬停效果 - 翻转后显示可点击光标 */
.timer-card:hover .timer-card-back {
    cursor: pointer;
}

.timer-card-back {
    cursor: pointer;
}

.timer-card-back:hover .invitation-hint {
    opacity: 1;
    color: #ff6f61;
}

@keyframes iconBounceAndTrigger {
    0% {
        transform: translateY(0) scale(1);
    }

    10%,
    30%,
    50%,
    70% {
        transform: translateY(-8px) scale(1.1);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateY(0) scale(1);
    }

    90%,
    100% {
        transform: translateY(0) scale(1);
    }
}

@keyframes iconFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* 正面内容样式 */
.timer-card-front p {
    font-size: 22px;
    margin-bottom: 8px;
    color: #666;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: textFadeIn 2s ease-out;
    position: relative;
    z-index: 2;
}

.timer-card-front h2 {
    font-size: 42px;
    color: #ff6f61;
    margin: 15px 0;
    font-weight: 700;
    text-shadow: 0 4px 8px rgba(255, 111, 97, 0.3);
    position: relative;
    display: inline-block;
    z-index: 2;
}

/* 正面装饰星星 */
.timer-star-left,
.timer-star-right {
    position: absolute;
    font-size: 16px;
    top: 5%;
    animation: sparkleRotate 3s linear infinite;
    z-index: 3;
}

.timer-star-left {
    left: 5%;
}

.timer-star-right {
    right: 5%;
    animation-delay: 1.5s;
}

/* 背面内容样式 */
.invitation-icon {
    font-size: 40px;
    margin-bottom: 5px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
    animation: iconFloat 3s ease-in-out infinite;
    z-index: 2;
}

.timer-card-back h3 {
    font-family: 'Pacifico', cursive;
    font-size: 28px;
    color: #d63384;
    margin: 10px 0;
    text-shadow: 0 2px 6px rgba(214, 51, 132, 0.3);
    z-index: 2;
}

.timer-card-back p {
    font-size: 16px;
    color: #666;
    margin: 8px 0;
    font-weight: 500;
    z-index: 2;
}

.invitation-date {
    font-size: 18px;
    color: #ff6f61;
    font-weight: 600;
    margin-top: 10px;
    padding: 8px 16px;
    background: rgba(255, 111, 97, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(255, 111, 97, 0.2);
    z-index: 2;
}

@keyframes sparkleRotate {
    0% {
        transform: rotate(0deg) scale(1);
        opacity: 0.6;
    }

    50% {
        transform: rotate(180deg) scale(1.2);
        opacity: 1;
    }

    100% {
        transform: rotate(360deg) scale(1);
        opacity: 0.6;
    }
}

/* 倒计时数字动画 */
#loveDays {
    display: inline-block;
    animation: countPulse 2s ease-in-out infinite;
    background: linear-gradient(45deg, #ff6f61, #ff8a80, #ffb3ba);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: countPulse 2s ease-in-out infinite, gradientShift 4s ease-in-out infinite;
}

@keyframes countPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Days 文字特效 */
#timer h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ff6f61, transparent);
    border-radius: 2px;
    animation: underlineGlow 3s ease-in-out infinite;
}

@keyframes underlineGlow {

    0%,
    100% {
        opacity: 0.3;
        transform: translateX(-50%) scaleX(0.8);
    }

    50% {
        opacity: 0.8;
        transform: translateX(-50%) scaleX(1.2);
    }
}

@keyframes textFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(255, 111, 97, 0.05) 0%, rgba(255, 138, 128, 0.05) 100%);
    padding: 15px 0 5px 0;
    margin-bottom: 30px;
    border-radius: 0 0 30px 30px;
}

/* Dates Section */
.dates-section {
    margin: 15px 0;
    position: relative;
}

.dates-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
    padding: 0 20px;
    position: relative;
}

/* PC端：让生日卡片行和纪念日行都在同一行显示 */
.birthday-row {
    display: flex;
    gap: 30px;
    align-items: center;
}

.anniversary-row {
    display: flex;
    gap: 30px;
    align-items: center;
}

/* 确保PC端所有卡片在一行 */
@media screen and (min-width: 769px) {
    .dates-container {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 30px !important;
        flex-wrap: nowrap !important;
    }

    .birthday-row,
    .anniversary-row {
        margin: 0 !important;
        flex-shrink: 0;
    }

    .birthday-row {
        margin-right: 0px !important;
    }

    .anniversary-row {
        margin-left: 0px !important;
    }
}

.date-icon {
    font-size: 40px;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
    animation: iconFloat 3s ease-in-out infinite;
    position: relative;
}

/* 为不同的图标添加不同的动画延迟 */
.date-item:nth-child(1) .date-icon {
    animation-delay: 0s;
}

.date-item:nth-child(2) .date-icon {
    animation-delay: 1s;
}

.date-item:nth-child(3) .date-icon {
    animation-delay: 2s;
}

/* 图标浮动动画 */
@keyframes iconFloat {

    0%,
    100% {
        transform: translateY(0px) scale(1);
    }

    50% {
        transform: translateY(-8px) scale(1.05);
    }
}

/* 飘落花瓣 - 婚礼邀请函入口 */
.floating-petals-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 50;
    overflow: hidden;
}

.floating-petal {
    position: absolute;
    width: 20px;
    height: 20px;
    background: linear-gradient(45deg, #ffb3ba, #ff8a80, #ffcccb);
    border-radius: 50% 0 50% 0;
    cursor: pointer;
    pointer-events: auto;
    opacity: 0.8;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 111, 97, 0.3);
    animation: petalFloatSway 12s linear infinite;
}

/* 为移动端添加更大的点击区域 */
.floating-petal::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    background: transparent;
    border-radius: 50%;
    pointer-events: auto;
    z-index: 1;
}

.floating-petal:hover {
    transform: scale(1.3) rotate(45deg);
    opacity: 1;
    box-shadow: 0 4px 15px rgba(255, 111, 97, 0.5);
    background: linear-gradient(45deg, #ff6f61, #ff8a80, #ffb3ba);
}

.floating-petal.clicked {
    animation: petalClick 0.6s ease-out forwards;
    pointer-events: none;
}

/* 花瓣飘落动画 - 带左右摆动 */
@keyframes petalFloatSway {
    0% {
        transform: translateY(-100px) translateX(0px) rotate(0deg);
        opacity: 0;
    }

    5% {
        opacity: 0.8;
    }

    25% {
        transform: translateY(25vh) translateX(var(--sway-amount, 30px)) rotate(90deg);
    }

    50% {
        transform: translateY(50vh) translateX(0px) rotate(180deg);
    }

    75% {
        transform: translateY(75vh) translateX(calc(var(--sway-amount, 30px) * -0.5)) rotate(270deg);
    }

    95% {
        opacity: 0.8;
    }

    100% {
        transform: translateY(calc(100vh + 100px)) translateX(0px) rotate(360deg);
        opacity: 0;
    }
}

/* 花瓣点击动画 */
@keyframes petalClick {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }

    50% {
        transform: scale(2) rotate(180deg);
        opacity: 0.8;
    }

    100% {
        transform: scale(0) rotate(360deg);
        opacity: 0;
    }
}

/* 花瓣提示文字 */
.petal-hint {
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 20px;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 111, 97, 0.2);
    color: #ff6f61;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    z-index: 60;
    animation: hintFadeIn 1s ease-out;
    pointer-events: none;
    max-width: 280px;
    white-space: nowrap;
}

.petal-hint.fade-out {
    animation: hintFadeOut 0.5s ease-out forwards;
}

@keyframes hintFadeIn {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px) scale(0.9);
    }

    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

@keyframes hintFadeOut {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px) scale(0.9);
    }
}

/* 婚礼邀请函弹窗 */
.wedding-invitation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.4s ease-out;
}

.invitation-modal-content {
    background: linear-gradient(145deg,
            rgba(255, 255, 255, 0.95) 0%,
            rgba(248, 249, 250, 0.9) 50%,
            rgba(255, 255, 255, 0.95) 100%);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 20px;
    padding: 30px 25px;
    width: 320px;
    max-width: 90vw;
    max-height: 600px;
    overflow-y: auto;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.15),
        0 8px 25px rgba(255, 111, 97, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(255, 111, 97, 0.1);
    position: relative;
    animation: modalSlideIn 0.5s ease-out;
    text-align: center;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: rgba(255, 111, 97, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 111, 97, 0.1);
}

.modal-close:hover {
    color: #ff6f61;
    background: rgba(255, 111, 97, 0.2);
    transform: scale(1.1);
}

.invitation-modal-header {
    margin-bottom: 30px;
}

.modal-wedding-rings {
    font-size: 50px;
    margin-bottom: 20px;
    animation: ringsRotate 4s ease-in-out infinite;
    display: inline-block;
}

.modal-invitation-title {
    font-family: 'Pacifico', cursive;
    font-size: 36px;
    color: #ff6f61;
    margin: 0 0 15px 0;
    text-shadow: 0 3px 10px rgba(255, 111, 97, 0.3);
}

.modal-invitation-subtitle {
    font-size: 18px;
    color: #666;
    font-weight: 500;
    margin-bottom: 30px;
}

.modal-couple-names {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px 0;
    gap: 20px;
    flex-wrap: nowrap;
    /* 确保不换行 */
}

.modal-groom-name,
.modal-bride-name {
    font-family: 'Pacifico', cursive;
    font-size: 28px;
    color: #ff6f61;
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(255, 111, 97, 0.2);
}

.modal-heart-divider {
    font-size: 24px;
    animation: heartBeat 2s ease-in-out infinite;
}

.modal-wedding-info {
    margin: 30px 0;
    padding: 25px;
    background: rgba(255, 111, 97, 0.08);
    border-radius: 20px;
    border: 1px solid rgba(255, 111, 97, 0.15);
    display: flex;
    justify-content: center;
    align-items: center;
}

.invitation-icon-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.bouncing-invitation {
    font-size: 48px;
    animation: invitationBounce 2s ease-in-out infinite;
    display: inline-block;
}

@keyframes invitationBounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) scale(1);
    }

    40% {
        transform: translateY(-15px) scale(1.1);
    }

    60% {
        transform: translateY(-8px) scale(1.05);
    }
}

.modal-info-item {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px 0;
    gap: 12px;
}

.modal-info-icon {
    font-size: 20px;
    width: 30px;
    text-align: center;
}

.modal-info-text {
    font-size: 18px;
    color: #555;
    font-weight: 600;
}

.modal-blessing-text {
    font-size: 16px;
    color: #888;
    font-style: italic;
    margin: 30px 0 0 0;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 111, 97, 0.15);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes ringsRotate {

    0%,
    100% {
        transform: rotate(0deg) scale(1);
    }

    25% {
        transform: rotate(8deg) scale(1.1);
    }

    50% {
        transform: rotate(0deg) scale(1);
    }

    75% {
        transform: rotate(-8deg) scale(1.1);
    }
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .floating-petal {
        width: 18px;
        height: 18px;
    }

    /* 移动端扩大点击区域 */
    .floating-petal::before {
        top: -20px;
        left: -20px;
        right: -20px;
        bottom: -20px;
    }

    .petal-hint {
        top: 15%;
        padding: 10px 16px;
        font-size: 13px;
        margin: 0 15px;
        max-width: 250px;
        border-radius: 18px;
    }

    .invitation-modal-content {
        padding: 25px 20px;
        margin: 15px;
        width: 280px;
        max-width: calc(100vw - 30px);
        max-height: 500px;
        border-radius: 18px;
    }

    .modal-invitation-title {
        font-size: 26px;
    }

    .modal-groom-name,
    .modal-bride-name {
        font-size: 22px;
    }

    .modal-couple-names {
        flex-direction: row !important;
        /* 强制在一行显示 */
        gap: 8px;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: center;
    }

    .modal-heart-divider {
        order: 0;
        font-size: 20px;
    }

    .modal-wedding-rings {
        font-size: 42px;
        margin-bottom: 15px;
    }

    .modal-wedding-info {
        margin: 20px 0;
        padding: 18px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .bouncing-invitation {
        font-size: 40px;
    }

    .modal-info-item {
        margin: 10px 0;
        gap: 8px;
    }

    .modal-info-icon {
        font-size: 16px;
        width: 24px;
    }

    .modal-info-text {
        font-size: 15px;
    }

    .modal-blessing-text {
        font-size: 14px;
        margin: 20px 0 0 0;
        padding-top: 18px;
    }
}

/* Gallery Section */
.gallery-section {
    margin: 50px 0;
}

.date-item {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 50%, #ffffff 100%);
    padding: 30px 25px;
    border-radius: 20px;
    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.08),
        0 4px 15px rgba(255, 111, 97, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    text-align: center;
    width: 200px;
    /* PC端默认宽度 */
    animation: fadeInUp 1s forwards;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(255, 111, 97, 0.08);
    position: relative;
    overflow: hidden;
}

/* 添加卡片背景装饰 */
.date-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 111, 97, 0.03) 0%, transparent 70%);
    animation: rotateDecoration 20s linear infinite;
    z-index: 0;
}

.date-item::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: linear-gradient(45deg, rgba(255, 111, 97, 0.1), rgba(255, 138, 128, 0.1));
    border-radius: 50%;
    z-index: 0;
}

@keyframes rotateDecoration {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.date-item>* {
    position: relative;
    z-index: 1;
}

.date-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow:
        0 20px 45px rgba(0, 0, 0, 0.12),
        0 8px 25px rgba(255, 111, 97, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 111, 97, 0.2);
}

/* 生日卡片特殊样式 */
.date-item:nth-child(1),
.date-item:nth-child(2) {
    background: linear-gradient(145deg, #fff5f5 0%, #ffe8e8 50%, #fff5f5 100%);
    border-color: rgba(255, 182, 193, 0.3);
}

.date-item:nth-child(1):hover,
.date-item:nth-child(2):hover {
    box-shadow:
        0 20px 45px rgba(0, 0, 0, 0.12),
        0 8px 25px rgba(255, 182, 193, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* 纪念日卡片特殊样式 */
.date-item:nth-child(3) {
    background: linear-gradient(145deg, #fff0f5 0%, #ffe4e1 50%, #fff0f5 100%);
    border-color: rgba(255, 20, 147, 0.2);
}

.date-item:nth-child(3):hover {
    box-shadow:
        0 20px 45px rgba(0, 0, 0, 0.12),
        0 8px 25px rgba(255, 20, 147, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.date-item:nth-child(1) {
    animation-delay: 0.2s;
}

.date-item:nth-child(2) {
    animation-delay: 0.4s;
}

.date-item:nth-child(3) {
    animation-delay: 0.6s;
}

.date-item p {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #ff6f61;
    text-shadow: 0 2px 4px rgba(255, 111, 97, 0.2);
    letter-spacing: 0.5px;
    font-family: 'Montserrat', sans-serif;
}

.date-item span {
    font-size: 15px;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.date-item:hover span {
    opacity: 1;
    color: #555;
}

/* 为生日卡片的文字添加特殊颜色 */
.date-item:nth-child(1) p,
.date-item:nth-child(2) p {
    color: #ff69b4;
    text-shadow: 0 2px 4px rgba(255, 105, 180, 0.2);
}

/* 为纪念日卡片的文字添加特殊颜色 */
.date-item:nth-child(3) p {
    color: #dc143c;
    text-shadow: 0 2px 4px rgba(220, 20, 60, 0.2);
}

#gallery {
    column-count: 4;
    column-gap: 20px;
    padding: 20px;
    width: calc(100% - 40px);
    /* max-width: 1400px; */
    margin: 0 auto;
}

#gallery img {
    width: 100% !important;
    height: auto !important;
    margin-bottom: 20px;
    border-radius: 10px;
    position: relative;
    opacity: 1;
    break-inside: avoid;
    display: block;
    object-fit: contain;
    max-width: 100%;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* 图片加载动画 */
#gallery img {
    opacity: 0;
    animation: fadeIn 0.6s ease-in-out forwards;
}

#gallery img::after {
    content: attr(data-date);
    position: absolute;
    bottom: 8px;
    left: 8px;
    color: #fff;
    font-size: 11px;
    background: rgba(0, 0, 0, 0.6);
    padding: 2px 6px;
    border-radius: 4px;
    text-shadow: none;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

#gallery img:hover::after {
    opacity: 1;
}

#popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

#imgDate {
    display: none;
    text-align: center;
    color: #fff;
    font-size: 24px;
    margin-top: 2.5%;
}

#popupImg {
    max-width: 80%;
    max-height: 80%;
    margin: 1% auto 0 auto;
    display: block;
    border-radius: 10px;
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

#closeBtn {
    position: absolute;
    top: 30px;
    right: 50px;
    color: #fff;
    font-size: 50px;
    cursor: pointer;
    z-index: 1001;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#closeBtn:hover {
    color: #ffffff75;
}

.view-original-btn {
    display: none;
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 111, 97, 0.9);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(255, 111, 97, 0.3);
    z-index: 1002;
    pointer-events: auto;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.view-original-btn:hover {
    background-color: rgba(255, 111, 97, 1);
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 111, 97, 0.4);
}

.view-original-btn:disabled {
    background-color: rgba(128, 128, 128, 0.6);
    cursor: not-allowed;
    transform: translateX(-50%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* 缩略图列表样式 */
.thumbnail-list {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1001;
}

.thumbnail-container {
    height: 100%;
    padding: 10px 0;
    overflow: hidden;
}

.thumbnail-scroll {
    display: flex;
    align-items: center;
    height: 80px;
    padding: 0 20px;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 10px;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.thumbnail-scroll::-webkit-scrollbar {
    display: none;
}

.thumbnail-item {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    background: rgba(255, 255, 255, 0.1);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.thumbnail-item:hover {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.thumbnail-item.active {
    border-color: #ff6f61;
    box-shadow: 0 0 15px rgba(255, 111, 97, 0.5);
    transform: scale(1.15);
}

.thumbnail-item.active img {
    transform: scale(1.05);
}

/* 加载状态 */
.thumbnail-item.loading {
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

.thumbnail-item.loading::after {
    content: '...';
    animation: loading-dots 1.5s infinite;
}

@keyframes loading-dots {

    0%,
    20% {
        content: '';
    }

    40% {
        content: '.';
    }

    60% {
        content: '..';
    }

    80%,
    100% {
        content: '...';
    }
}

.view-original-btn:hover {
    background-color: rgba(255, 111, 97, 1);
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.view-original-btn:active {
    transform: translateX(-50%) translateY(0);
}

.view-original-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 美化音乐控制器样式 */
.mini-music-controller {
    position: relative;
    width: 90%;
    max-width: 420px;
    margin: 30px auto 40px auto;
    background: linear-gradient(135deg,
            rgba(255, 111, 97, 0.6) 0%,
            rgba(255, 138, 128, 0.5) 50%,
            rgba(255, 182, 193, 0.4) 100%);
    border-radius: 24px;
    padding: 24px;
    box-shadow:
        0 20px 40px rgba(255, 111, 97, 0.15),
        0 8px 16px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    animation: miniControllerFadeIn 1s ease-out 0.5s forwards;
    overflow: hidden;
}

/* 添加装饰性背景动画 */
.mini-music-controller::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    animation: rotateBackground 20s linear infinite;
    z-index: 0;
    pointer-events: none;
}

/* 添加闪烁装饰点 */
.mini-music-controller::after {
    content: '';
    position: absolute;
    top: 15px;
    right: 15px;
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: sparkle 2s ease-in-out infinite;
    z-index: 1;
}

@keyframes miniControllerFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    60% {
        opacity: 1;
        transform: translateY(-5px) scale(1.02);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes rotateBackground {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes sparkle {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.5);
    }
}

.mini-music-controller:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 25px 50px rgba(255, 111, 97, 0.2),
        0 12px 24px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.mini-controller-content {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
}

.mini-album-cover {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.mini-album-cover:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.mini-album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
}

.mini-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 111, 97, 0.8), rgba(255, 138, 128, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    transform: scale(0.8);
}

.mini-album-cover:hover .mini-play-overlay {
    opacity: 1;
    transform: scale(1);
}

.mini-play-overlay span {
    color: white;
    font-size: 24px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    font-weight: bold;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.mini-song-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    position: relative;
}

.mini-song-title {
    color: rgba(255, 255, 255, 0.98);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.mini-song-title:hover {
    transform: translateX(5px);
}

.mini-song-artist {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.mini-song-artist:hover {
    transform: translateX(5px);
}

.mini-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.mini-control-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.mini-control-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
}

.mini-control-btn:hover::before {
    width: 100%;
    height: 100%;
}

.mini-control-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.15) rotate(10deg);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.mini-control-btn:active {
    transform: scale(0.95);
}

.mini-play-btn {
    width: 48px;
    height: 48px;
    font-size: 18px;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    border-color: rgba(255, 255, 255, 0.5);
    color: rgba(255, 111, 97, 0.9);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.mini-play-btn:hover {
    background: linear-gradient(45deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.9));
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.4);
    transform: scale(1.2);
}

.mini-volume-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 12px;
    position: relative;
    z-index: 2;
}

.mini-volume-icon {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.mini-volume-icon:hover {
    transform: scale(1.2);
}

.mini-volume-slider {
    width: 70px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mini-volume-slider:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scaleY(1.5);
}

.mini-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.mini-volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.mini-volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.mini-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.mini-progress-bar:hover {
    height: 6px;
    background: rgba(255, 255, 255, 0.4);
}

.mini-progress-fill {
    height: 100%;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.9) 0%,
            rgba(255, 255, 255, 0.7) 50%,
            rgba(255, 255, 255, 0.9) 100%);
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s ease;
    position: relative;
}

.mini-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 8px;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 0 2px 2px 0;
    animation: progressGlow 2s ease-in-out infinite;
}

@keyframes progressGlow {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .mini-music-controller {
        width: 85%;
        max-width: none;
        margin: 15px auto 25px auto;
        padding: 18px;
        border-radius: 20px;
    }

    .mini-controller-content {
        gap: 12px;
        margin-bottom: 12px;
    }

    #popupImg {
        top: 45%;
    }

    .mini-album-cover {
        width: 50px;
        height: 50px;
        border-radius: 12px;
    }

    .mini-song-title {
        font-size: 14px;
        font-weight: 700;
    }

    .mini-song-artist {
        font-size: 12px;
        font-weight: 500;
    }

    .mini-control-btn {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }

    .mini-play-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .mini-volume-container {
        margin-left: 8px;
    }

    .mini-volume-slider {
        width: 55px;
    }
}

@media screen and (max-width: 480px) {
    .mini-music-controller {
        width: 85%;
        padding: 16px;
        margin: 12px auto 12px auto;
        border-radius: 18px;
    }

    .mini-controller-content {
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 10px;
    }

    .mini-song-info {
        order: 1;
        flex: 1 1 100%;
        margin-bottom: 8px;
        text-align: center;
    }

    .mini-song-title {
        font-size: 13px;
        margin-bottom: 3px;
    }

    .mini-song-artist {
        font-size: 11px;
    }

    .mini-album-cover {
        order: 2;
        width: 44px;
        height: 44px;
        border-radius: 10px;
    }

    .mini-controls {
        order: 3;
        flex: 1;
        margin-left: 10%;
        gap: 8px;
    }

    .mini-control-btn {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .mini-play-btn {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }

    .mini-volume-container {
        order: 4;
        margin-left: 0;
        justify-content: center;
        gap: 8px;
    }

    #popupImg {
        top: 45%;
    }

    .mini-volume-slider {
        width: 50px;
    }

    .mini-volume-icon {
        font-size: 13px;
    }
}

@media screen and (max-width: 360px) {
    .mini-music-controller {
        width: 85%;
        padding: 14px;
        margin: 10px auto 18px auto;
    }

    .mini-song-title {
        font-size: 12px;
    }

    .mini-song-artist {
        font-size: 10px;
    }

    .mini-album-cover {
        width: 40px;
        height: 40px;
    }

    .mini-control-btn {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .mini-play-btn {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }

    .mini-volume-slider {
        width: 45px;
    }
}

.mini-play-overlay span {
    color: white;
    font-size: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: bold;
}

.mini-song-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.mini-song-title {
    color: rgba(255, 255, 255, 0.98);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.3px;
}

.mini-song-artist {
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.mini-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

.mini-control-btn {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.mini-control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.mini-play-btn {
    width: 42px;
    height: 42px;
    font-size: 16px;
    background: linear-gradient(45deg, rgba(255, 111, 97, 0.9), rgba(255, 138, 128, 0.9));
    border-color: rgba(255, 111, 97, 0.4);
}

.mini-play-btn:hover {
    background: linear-gradient(45deg, rgba(255, 111, 97, 1), rgba(255, 138, 128, 1));
    box-shadow: 0 4px 12px rgba(255, 111, 97, 0.4);
}

.mini-volume-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 10px;
}

.mini-volume-icon {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.mini-volume-slider {
    width: 60px;
    height: 3px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.mini-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: linear-gradient(45deg, #ff6f61, #ff8a80);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.mini-volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: linear-gradient(45deg, #ff6f61, #ff8a80);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.mini-progress-bar {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
}

.mini-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6f61, #ff8a80);
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s ease;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .mini-music-controller {
        width: 85%;
        max-width: none;
        margin: 15px auto 25px auto;
        padding: 14px;
        border-radius: 16px;
    }

    .mini-controller-content {
        gap: 10px;
        margin-bottom: 10px;
    }

    .mini-album-cover {
        width: 45px;
        height: 45px;
        border-radius: 10px;
    }

    .mini-song-title {
        font-size: 13px;
        font-weight: 700;
    }

    .mini-song-artist {
        font-size: 11px;
        font-weight: 500;
    }

    .mini-control-btn {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .mini-play-btn {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }

    .mini-volume-container {
        margin-left: 6px;
    }

    .mini-volume-slider {
        width: 45px;
    }
}

@media screen and (max-width: 480px) {
    .mini-music-controller {
        width: 85%;
        padding: 12px;
        margin: 12px auto 20px auto;
        border-radius: 14px;
    }

    .mini-controller-content {
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 8px;
    }

    .mini-song-info {
        order: 1;
        flex: 1 1 100%;
        margin-bottom: 6px;
        text-align: center;
    }

    .mini-song-title {
        font-size: 12px;
        margin-bottom: 2px;
    }

    .mini-song-artist {
        font-size: 10px;
    }

    .mini-album-cover {
        order: 2;
        width: 40px;
        height: 40px;
        border-radius: 8px;
    }

    .mini-controls {
        order: 3;
        flex: 1;
        justify-content: center;
        gap: 6px;
    }

    .mini-control-btn {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }

    .mini-play-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .mini-volume-container {
        order: 4;
        margin-left: 0;
        justify-content: center;
        gap: 6px;
    }

    .mini-volume-slider {
        width: 40px;
    }

    .mini-volume-icon {
        font-size: 12px;
    }
}

/* 底部歌词显示样式 */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 50;
    transition: all 0.3s ease;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1);
}

footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#copyrightText {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    margin: 0;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

#copyrightText a {
    color: rgba(255, 111, 97, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

#copyrightText a:hover {
    color: #ff8a80;
}

/* 底部歌词样式 */
.footer-lyrics {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* background: rgba(255, 255, 255, 0.1);
       backdrop-filter: blur(30px);
       -webkit-backdrop-filter: blur(30px); */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 2;
    /* box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1); */
}

.footer-lyrics.show {
    opacity: 1;
    visibility: visible;
}

#footerLyricText {
    color: rgba(255, 111, 97, 0.95);
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    padding: 0 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* 跳动的小心心动画 */
.heart-beating {
    display: inline-block;
    color: #ff6f61;
    animation: heartBeat 1.5s ease-in-out infinite;
    margin: 0 0px;
}

@keyframes heartBeat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

/* 箭头导航样式 */
.arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    z-index: 999999;
    user-select: none;
    transition: all 0.3s ease;
    display: none;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#leftArrow {
    left: 20px;
}

#rightArrow {
    right: 20px;
}

.arrow:hover {
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.arrow.show {
    display: flex;
}

/* 心形画布样式 */
#heartCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

/* 移动端响应式设计 - 强制覆盖所有样式 */
@media screen and (max-width: 768px) {

    /* 确保移动端整体布局稳定 */
    html,
    body {
        width: 100vw !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    /* 导航栏适配 */
    nav h1 {
        font-size: 20px;
    }

    nav .container {
        padding: 3px 15px;
    }

    /* 主标题适配 */
    #name {
        max-width: 350px;
        padding: 20px 25px;
        margin: 15px auto;
    }

    #name h2 {
        font-size: 30px;
        padding: 0 15px;
    }

    /* 名字装饰心形移动端调整 */
    .name-heart-left,
    .name-heart-right {
        font-size: 20px;
    }

    .name-heart-left {
        left: 5%;
    }

    .name-heart-right {
        right: 5%;
    }

    /* 计时器适配 */
    #timer {
        max-width: 380px;
        padding: 25px 30px;
        margin: 15px auto;
    }

    #timer p {
        font-size: 18px;
    }

    /* 倒计时装饰星星移动端调整 */
    .timer-star-left,
    .timer-star-right {
        font-size: 14px;
    }

    .timer-star-left {
        left: 10%;
    }

    .timer-star-right {
        right: 10%;
    }

    #timer h2 {
        font-size: 32px;
    }

    /* 日期卡片容器适配 - 移动端弹性布局 */
    .dates-container {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 15px !important;
        padding: 0 15px !important;
        width: 100% !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
        text-align: center !important;
    }

    /* 移动端：生日卡片行水平排列 */
    .birthday-row {
        display: flex !important;
        gap: 15px !important;
        justify-content: center !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        margin: 0 auto !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        flex-shrink: 0 !important;
        order: 1 !important;
    }

    /* 移动端：纪念日卡片跟随布局 */
    .anniversary-row {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        margin: 0 auto !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        flex-shrink: 0 !important;
        order: 2 !important;
    }

    /* 移动端卡片尺寸调整 - 最高优先级强制140px */
    body .dates-section .dates-container .birthday-row .date-item,
    body .dates-section .dates-container .anniversary-row .date-item,
    body .dates-section .dates-container .date-item,
    body .birthday-row .date-item,
    body .anniversary-row .date-item,
    body .date-item {
        width: 160px !important;
        max-width: 180px !important;
        min-width: 140px !important;
        padding: 12px 8px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        flex-shrink: 0 !important;
    }

    /* 移动端图标和文字尺寸调整 */
    body .dates-section .date-item .date-icon,
    body .birthday-row .date-item .date-icon,
    body .anniversary-row .date-item .date-icon,
    body .date-item .date-icon {
        font-size: 22px !important;
        margin-bottom: 8px !important;
    }

    body .dates-section .date-item p,
    body .birthday-row .date-item p,
    body .anniversary-row .date-item p,
    body .date-item p {
        font-size: 14px !important;
        margin-bottom: 3px !important;
    }

    body .dates-section .date-item span,
    body .birthday-row .date-item span,
    body .anniversary-row .date-item span,
    body .date-item span {
        font-size: 10px !important;
    }

    /* 图片画廊适配 */
    #gallery {
        column-count: 2;
        column-gap: 10px;
        padding: 10px;
        width: calc(100% - 30px);
        margin: 0 auto;
    }

    /* 弹窗适配 */
    #popupImg {
        max-width: 82%;
        max-height: 85%;
    }

    #closeBtn {
        top: 20px;
        right: 20px;
        font-size: 40px;
    }

    /* 箭头导航适配 */
    .arrow {
        font-size: 11px;
        width: 20px;
        height: 20px;
    }

    #leftArrow {
        left: 10px;
    }

    #rightArrow {
        right: 10px;
    }

    /* 音乐播放器适配 */
    .music-icon {
        top: 15px;
        right: 15px;
    }

    .vinyl-record {
        width: 50px;
        height: 50px;
    }

    .vinyl-center {
        width: 32px;
        height: 32px;
    }

    .music-player-content {
        width: 95%;
        max-width: 380px;
        padding: 20px;
        max-height: 90vh;
    }

    /* 底部版权信息适配 */
    footer {
        height: 40px;
    }

    #copyrightText {
        font-size: 11px;
    }

    #footerLyricText {
        font-size: 10px;
        padding: 0 1px;
    }
}

/* 超小屏幕适配 (小于480px) */
@media screen and (max-width: 480px) {

    /* 日期卡片容器适配 - 保持弹性布局 */
    .dates-container {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 12px !important;
        padding: 0 0px !important;
        width: 100% !important;
        text-align: center !important;
    }

    /* 超小屏幕：生日卡片仍然水平排列 */
    .birthday-row {
        display: flex !important;
        gap: 12px !important;
        justify-content: center !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        margin: 0 auto !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        flex-shrink: 0 !important;
        order: 1 !important;
    }

    /* 超小屏幕：纪念日卡片跟随布局 */
    .anniversary-row {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        margin: 0 auto !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        flex-shrink: 0 !important;
        order: 2 !important;
    }
    .timer-card.invitation-expanded .embedded-invitation {
        padding-bottom: 15px !important;
    }

    /* 移动端卡片尺寸调整 - 最大140px */
    .date-item {
        width: 140px !important;
        max-width: 140px !important;
        min-width: 140px !important;
        padding: 16px 10px !important;
        box-sizing: border-box !important;
        flex-shrink: 0 !important;
    }

    .date-item .date-icon {
        font-size: 26px;
        margin-bottom: 10px;
    }

    .date-item p {
        font-size: 16px;
        margin-bottom: 4px;
    }

    .date-item span {
        font-size: 11px;
    }

    #name {
        max-width: 80%;
        padding: 20px 20px;
        margin: 12px auto;
    }

    #name h2 {
        font-size: 26px;
    }

    /* 超小屏幕名字装饰调整 */
    .name-heart-left,
    .name-heart-right {
        font-size: 16px;
    }

    .name-heart-left {
        left: 2%;
    }

    .name-heart-right {
        right: 2%;
    }

    #timer {
        max-width: 80%;
        padding: 15px 20px;
        margin: 12px auto;
    }

    #timer h2 {
        font-size: 26px;
    }

    /* 超小屏幕英文装饰调整 */
    #timer p {
        font-size: 14px;
    }

    .timer-star-left,
    .timer-star-right {
        font-size: 12px;
    }

    .timer-star-left {
        left: 5%;
        top: 15%;
    }

    .timer-star-right {
        right: 5%;
        top: 15%;
    }

    /* 图片画廊在超小屏幕上单列显示 */
    #gallery {
        column-count: 1;
        padding: 10px;
        width: calc(100% - 30px);
    }

    .music-player-content {
        width: 98%;
        padding: 15px;
    }
}

/* 中等屏幕适配 (769px - 1024px) */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .dates-container {
        gap: 25px;
    }

    .date-item {
        width: 180px;
    }

    #gallery {
        column-count: 3;
    }
}

/* 为卡片添加闪烁装饰效果 */
.date-item .sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 111, 97, 0.6);
    border-radius: 50%;
    animation: sparkle 2s ease-in-out infinite;
    z-index: 2;
}

.date-item .sparkle:nth-child(1) {
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

.date-item .sparkle:nth-child(2) {
    top: 30%;
    right: 20%;
    animation-delay: 0.5s;
}

.date-item .sparkle:nth-child(3) {
    bottom: 25%;
    left: 25%;
    animation-delay: 1s;
}

.date-item .sparkle:nth-child(4) {
    bottom: 35%;
    right: 15%;
    animation-delay: 1.5s;
}

@keyframes sparkle {

    0%,
    100% {
        opacity: 0;
        transform: scale(0);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }
}

/* 卡片装饰元素 */
.card-decoration {
    position: absolute;
    bottom: 15px;
    right: 15px;
    z-index: 2;
}

.decoration-heart {
    font-size: 18px;
    opacity: 0.7;
    animation: heartPulse 2s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

@keyframes heartPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* 为不同卡片的装饰心形设置不同颜色 */
.date-item:nth-child(1) .decoration-heart {
    filter: hue-rotate(320deg) drop-shadow(0 2px 4px rgba(255, 105, 180, 0.3));
}

.date-item:nth-child(2) .decoration-heart {
    filter: hue-rotate(300deg) drop-shadow(0 2px 4px rgba(255, 182, 193, 0.3));
}

.date-item:nth-child(3) .decoration-heart {
    filter: hue-rotate(340deg) drop-shadow(0 2px 4px rgba(220, 20, 60, 0.3));
}

/* 移动端适配 */
@media (max-width: 1200px) {
    #gallery {
        column-count: 3;
    }
}

@media (max-width: 900px) {
    #gallery {
        column-count: 2;
    }
}

/* 这个媒体查询已经合并到上面的主要移动端样式中 */

.music-icon {
    top: 15px;
    right: 15px;
}

.vinyl-record {
    width: 50px;
    height: 50px;
}

.vinyl-center {
    width: 32px;
    height: 32px;
}

.music-icon.hidden-at-edge {
    opacity: 0.2;
}

.music-icon.hidden-at-edge:hover {
    opacity: 0.8;
}

.music-player-content {
    width: 75%;
    max-width: 380px;
    padding: 18px;
    max-height: 88vh;
    border-radius: 20px;
}

.player-header {
    margin-bottom: 20px;
}

.current-song {
    flex-direction: column;
    text-align: center;
    gap: 8px;
}

.current-song img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
}

.song-info h3 {
    font-size: 16px;
    margin-bottom: 2px;
}

.song-info p {
    font-size: 13px;
}

.player-controls {
    margin-bottom: 20px;
}

.control-buttons {
    gap: 15px;
}

.control-btn {
    width: 45px;
    height: 45px;
    font-size: 16px;
}

.play-pause {
    width: 55px;
    height: 55px;
    font-size: 18px;
}

.playlist-container h4 {
    font-size: 14px;
    margin-bottom: 8px;
}

.playlist {
    max-height: 120px;
    padding: 6px;
    border-radius: 12px;
}

.playlist-item {
    padding: 6px 8px;
    gap: 8px;
    margin-bottom: 2px;
    border-radius: 8px;
}

.playlist-item img {
    width: 30px;
    height: 30px;
    border-radius: 5px;
}

.playlist-item-info h5 {
    font-size: 12px;
    margin-bottom: 1px;
    line-height: 1.1;
}

.playlist-item-info p {
    font-size: 10px;
    line-height: 1.0;
}

.lyrics-display {
    padding: 15px;
    min-height: 50px;
    border-radius: 14px;
}

.lyrics-content p {
    font-size: 14px;
}

.splash-title {
    font-size: 28px;
    padding: 0 20px;
}

.splash-hearts {
    width: 400px;
    height: 400px;
}

.heart-particle {
    width: 18px;
    height: 18px;
}

.heart-particle::before,
.heart-particle::after {
    width: 18px;
    height: 18px;
}

.heart-particle::before {
    top: -9px;
}

.heart-particle::after {
    left: -9px;
}

.heart-particle.small {
    width: 14px;
    height: 14px;
}

.heart-particle.small::before,
.heart-particle.small::after {
    width: 14px;
    height: 14px;
}

.heart-particle.small::before {
    top: -7px;
}

.heart-particle.small::after {
    left: -7px;
}

.heart-particle.large {
    width: 22px;
    height: 22px;
}

.heart-particle.large::before,
.heart-particle.large::after {
    width: 22px;
    height: 22px;
}

.heart-particle.large::before {
    top: -11px;
}

.heart-particle.large::after {
    left: -11px;
}

/* 缩略图列
表移动端适配 */
@media screen and (max-width: 768px) {
    .thumbnail-list {
        height: 80px;
    }

    .thumbnail-container {
        padding: 5px 0;
    }

    .thumbnail-scroll {
        height: 70px;
        padding: 0 15px;
        gap: 8px;
    }

    .thumbnail-item {
        width: 50px;
        height: 50px;
    }

    .view-original-btn {
        bottom: 100px;
        padding: 10px 20px;
        font-size: 12px;
    }

    #popupImg {
        max-height: 65% !important;
    }

    #imgDate {
        font-size: 16px;
        top: 15px;
        left: 20px;
    }

    #closeBtn {
        font-size: 35px;
        top: 15px;
        right: 20px;
    }
}

/* ===
================= 动态邀请函样式 ==================== */

/* 邀请函展开状态 */
.timer-card.invitation-expanded {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 10000 !important;
    border-radius: 0 !important;
    transform: none !important;
    background: #f5f5f5 !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    max-width: none !important;
    margin: 0 !important;
    perspective: none !important;
    animation: none !important;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

/* 
  邀请函与首页顶/底栏共存时，避免被固定毛玻璃遮挡：
  - 顶栏(nav)固定在顶部，底栏(footer)固定在底部
  - 给邀请函内容区域预留安全间距
*/
.timer-card.invitation-expanded .embedded-invitation {
    /* nav 高度不固定，这里留足安全区 */
    padding-top: 60px !important;
    /* footer 固定高度约 45px，这里留足安全区 */
    padding-bottom: 40px !important;
    box-sizing: border-box !important;
    /* 让滚动区域不被顶/底栏遮挡 */
    height: 100vh !important;
}

/* 嵌入式邀请函容器 */
.embedded-invitation {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
    height: 100vh;
    overflow-y: auto;
    padding: 0;
    background: #f5f5f5;

    /* 隐藏滚动条 */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.embedded-invitation::-webkit-scrollbar {
    display: none;
}

/* 邀请函加载状态 */
.invitation-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10001;
}

.invitation-loading .loading-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 111, 97, 0.2);
}

.invitation-loading .loading-spinner {
    font-size: 48px;
    margin-bottom: 20px;
    animation: loadingBounce 1.5s ease-in-out infinite;
}

.invitation-loading p {
    font-size: 18px;
    color: #ff6f61;
    margin: 0 0 20px 0;
    font-weight: 600;
}

.loading-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    background: #ff6f61;
    border-radius: 50%;
    animation: loadingDots 1.4s ease-in-out infinite both;
}

.loading-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.loading-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0s;
}

@keyframes loadingBounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) scale(1);
    }

    40% {
        transform: translateY(-20px) scale(1.1);
    }

    60% {
        transform: translateY(-10px) scale(1.05);
    }
}

@keyframes loadingDots {

    0%,
    80%,
    100% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* 邀请函错误状态 */
.invitation-error {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10001;
}

.invitation-error .error-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 111, 97, 0.2);
}

.invitation-error .error-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.invitation-error h3 {
    color: #ff6f61;
    margin: 0 0 15px 0;
    font-size: 24px;
}

.invitation-error p {
    color: #666;
    margin: 0 0 25px 0;
    font-size: 16px;
}

.invitation-error .retry-btn,
.invitation-error .back-btn {
    display: inline-block;
    margin: 0 10px;
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.invitation-error .retry-btn {
    background: linear-gradient(45deg, #ff6f61, #ff8a80);
    color: white;
}

.invitation-error .back-btn {
    background: rgba(255, 255, 255, 0.8);
    color: #666;
    border: 1px solid rgba(255, 111, 97, 0.2);
}

.invitation-error .retry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 111, 97, 0.4);
}

.invitation-error .back-btn:hover {
    background: rgba(255, 111, 97, 0.1);
    color: #ff6f61;
}

/* 嵌入式花瓣效果 */
.embedded-petal {
    position: absolute;
    font-size: 20px;
    opacity: 0.7;
    pointer-events: none;
    animation: embeddedPetalFall 6s linear infinite;
    z-index: 1;
}

@keyframes embeddedPetalFall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.7;
    }

    90% {
        opacity: 0.7;
    }

    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* 移动端适配 */
@media screen and (max-width: 768px) {

    .invitation-loading .loading-content,
    .invitation-error .error-content {
        padding: 30px 20px;
        margin: 0 20px;
        max-width: calc(100vw - 40px);
    }

    .invitation-loading .loading-spinner,
    .invitation-error .error-icon {
        font-size: 36px;
    }

    .invitation-loading p,
    .invitation-error h3 {
        font-size: 14px;
    }

    .invitation-error .retry-btn,
    .invitation-error .back-btn {
        display: block;
        margin: 10px auto;
        width: 200px;
    }

}

/* 确保嵌入的邀请函样式正确 */
.embedded-invitation .invitation-main-card {
    margin: 20px auto 10px auto;
    max-width: 600px;
}

.embedded-invitation nav {
    position: relative;
    top: 0;
}

.embedded-invitation main {
    margin-top: 0;
}

/* 禁用timer卡片在展开状态下的hover效果 */
.timer-card.invitation-expanded:hover {
    transform: none !important;
    box-shadow: none !important;
    border-color: transparent !important;
}

.timer-card.invitation-expanded .timer-card-inner {
    transform: none !important;
}

/* 确保音乐播放器图标在邀请函打开时始终可点击，不被邀请函容器阻挡 */
.timer-card.invitation-expanded #musicIcon {
    z-index: 10002 !important;
    position: fixed !important;
    pointer-events: auto !important;
}

/* 确保邀请函容器不会阻挡右上角的音乐图标 */
.timer-card.invitation-expanded::before {
    content: '';
    position: fixed;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    z-index: 10001;
    pointer-events: none;
}

/* 确保
嵌入式邀请函中的返回按钮正确显示 */
.embedded-invitation .back-button-container {
    margin-top: 30px !important;
    margin-bottom: 20px !important;
    text-align: center !important;
    position: relative !important;
    z-index: 10 !important;
}

.embedded-invitation .back-button {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 15px 30px !important;
    background: linear-gradient(45deg, #ff6f61, #ff8a80) !important;
    color: white !important;
    border: none !important;
    border-radius: 25px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgba(255, 111, 97, 0.3) !important;
    position: relative !important;
    z-index: 10 !important;
}

.embedded-invitation .back-button:hover {
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 0 8px 25px rgba(255, 111, 97, 0.4) !important;
}

.embedded-invitation .back-icon {
    font-size: 18px !important;
    animation: heartPulse 2s ease-in-out infinite !important;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .embedded-invitation .back-button {
        padding: 12px 25px !important;
        font-size: 14px !important;
    }

    .embedded-invitation .back-icon {
        font-size: 16px !important;
    }
}