/* 全局强制隐藏滚动条 - 优先级最高 */
* {
    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;
}

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;
    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;
}

/* 播放器图标跳动动画 */
@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;
}

/* 播放器图标滚动到边缘动画 */
@keyframes slideToEdge {
    0% {
        right: 20px;
        opacity: 1;
        transform: scale(1);
    }

    100% {
        right: -30px;
        opacity: 0.3;
        transform: scale(1);
    }
}

.music-icon.slide-to-edge {
    animation: slideToEdge 1s ease-out forwards;
}

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

/* 拖拽状态 */
.music-icon.dragging {
    cursor: grabbing !important;
    z-index: 1001 !important;
}

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

.music-icon.hidden-at-edge:hover {
    opacity: 1;
    transform: none !important;
}

/* 可见状态 */
.music-icon.visible {
    opacity: 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);
    animation: fadeIn 0.3s ease-out;
}

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

@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;
    animation: slideIn 0.4s ease-out;
    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);
}

@keyframes slideIn {
    from {
        transform: translate(-50%, -60%);
        opacity: 0;
        scale: 0.9;
    }

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

.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;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .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;
        /* 从180px减少到120px */
        padding: 6px;
        /* 从8px减少到6px */
        border-radius: 12px;
    }

    .playlist-item {
        padding: 6px 8px;
        /* 从10px减少到6px 8px */
        gap: 8px;
        /* 从10px减少到8px */
        margin-bottom: 2px;
        /* 从4px减少到2px */
        border-radius: 8px;
    }

    .playlist-item img {
        width: 30px;
        /* 从36px减少到30px */
        height: 30px;
        /* 从36px减少到30px */
        border-radius: 5px;
    }

    .playlist-item-info h5 {
        font-size: 12px;
        /* 从13px减少到12px */
        margin-bottom: 1px;
        /* 从2px减少到1px */
        line-height: 1.1;
        /* 从1.2减少到1.1 */
    }

    .playlist-item-info p {
        font-size: 10px;
        /* 从11px减少到10px */
        line-height: 1.0;
        /* 从1.1减少到1.0 */
    }

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

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

    /* 移动端滚动条优化 */
    .playlist::-webkit-scrollbar {
        width: 4px;
    }

    .music-player-content::-webkit-scrollbar {
        width: 6px;
    }
}

/* 滚动条样式 */
.playlist::-webkit-scrollbar {
    width: 6px;
}

.playlist::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.playlist::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.playlist::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.music-player-content::-webkit-scrollbar {
    width: 8px;
}

.music-player-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.music-player-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.music-player-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* 移动端开屏动画适配 */
@media (max-width: 768px) {
    .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;
    }
}

html {
    overflow-x: hidden;
    overflow-y: auto;
    /* 改为auto，让浏览器自动处理 */
    scrollbar-width: none;
    /* Firefox - 隐藏滚动条 */
    -ms-overflow-style: none;
    /* IE and Edge - 隐藏滚动条 */
    height: 100%;
    /* 确保高度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;
    /* Firefox - 隐藏滚动条 */
    -ms-overflow-style: none;
    /* IE and Edge - 隐藏滚动条 */
    /* 禁用移动端点击高亮 */
    -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;
}

/* Chrome, Safari, Opera - 隐藏滚动条 */
body::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

body::-webkit-scrollbar-track {
    display: none;
}

body::-webkit-scrollbar-thumb {
    display: none;
}

/* 更强的全局滚动条隐藏 */
html::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

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

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

/* 全局滚动条隐藏 - 适用于所有元素 */
*::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

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

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

/* 确保根元素也隐藏滚动条 */
:root {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

/* 全局禁用移动端点击高亮 */
* {
    -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: 35px;
}

#name {
    text-align: center;
    padding: 10px 20px;
    margin: 0 auto;
    max-width: 100%;
}

#name h2 {
    font-family: 'Pacifico', cursive;
    font-size: 36px;
    color: #ff6f61;
    padding: 0;
    margin: 0;
}

#timer {
    text-align: center;
    padding: 20px;
    margin: 0 auto;
    max-width: 100%;
}

#timer p {
    font-size: 20px;
    margin-bottom: 5px;
}

#timer h2 {
    font-size: 36px;
    color: #ff6f61;
    margin: 10px 0;
}

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



/* Dates Section */
.dates-section {
    margin: 50px 0;
}

.dates-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 0 20px;
}

.date-icon {
    font-size: 32px;
    margin-bottom: 15px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

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

.date-item {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 25px 20px;
    border-radius: 15px;
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.1),
        0 2px 10px rgba(255, 111, 97, 0.1);
    text-align: center;
    width: 180px;
    animation: fadeInUp 1s forwards;
    opacity: 0;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 111, 97, 0.1);
}

.date-item:hover {
    transform: translateY(-5px);
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.15),
        0 5px 15px rgba(255, 111, 97, 0.2);
}

.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: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

.date-item span {
    font-size: 14px;
    color: #777;
}

#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;
}

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

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

#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: 999;
    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: 50%;
    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: 15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    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(0, 0, 0, 0.2);
    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, 255, 255, 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;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .view-original-btn {
        bottom: 80px;
        padding: 14px 28px;
        font-size: 18px;
        z-index: 1002;
    }
}

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

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

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

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

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 30s linear infinite;
    z-index: -1;
}

#heartCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 99;
}

.arrow {
    display: none;
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    z-index: 1001;
    user-select: none;
    padding: 0 15px;
    /* 禁用移动端点击高亮 */
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

#leftArrow {
    left: 10px;
}

#rightArrow {
    right: 10px;
}

.arrow:hover {
    color: rgba(255, 255, 255, 1);
}

.arrow.disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* 底部歌词显示 */
.bottom-lyrics {
    position: fixed;
    bottom: 50px;
    left: 0;
    right: 0;
    z-index: 150;
    pointer-events: none;
}

.bottom-lyrics-content {
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 8px 20px;
    margin: 0 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bottom-lyrics-content:not(:empty) {
    opacity: 1;
}

.bottom-lyrics-content span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    display: block;
    transition: all 0.3s ease;
}

.bottom-lyrics-content span:empty {
    display: none;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .bottom-lyrics {
        bottom: 45px;
    }

    .bottom-lyrics-content {
        margin: 0 15px;
        padding: 6px 15px;
    }

    .bottom-lyrics-content span {
        font-size: 12px;
    }
}

footer {
    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);
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 100;
    padding: 4px 0;
}

.footer-lyrics {
    text-align: center;
    margin-top: 0;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    white-space: nowrap;
    width: 100%;
    text-overflow: ellipsis;
}

.footer-lyrics.show {
    opacity: 1;
    margin-top: 5px;
    max-height: 50px;
}

.footer-lyrics span {
    color: rgba(255, 111, 97, 0.9);
    font-size: 12px;
    font-weight: 500;
    text-shadow:
        0 0 8px rgba(255, 111, 97, 0.6),
        0 1px 2px rgba(0, 0, 0, 0.8);
    display: inline;
    padding: 2px 0;
    position: relative;
    min-height: 16px;
    text-align: center;
}

/* 专门为小心心设置更高优先级的样式 */
.footer-lyrics span.heart-beating {
    color: #ff6f61;
    font-size: 14px;
    text-shadow:
        0 0 12px rgba(255, 111, 97, 0.8),
        0 0 6px rgba(255, 111, 97, 0.6),
        0 1px 2px rgba(0, 0, 0, 0.8);
    display: inline-block;
    animation: heartPulse 1.2s ease-in-out infinite;
}

.footer-lyrics span:empty {
    display: none;
}

/* 小心心跳动动画 */
@keyframes heartPulse {

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

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

/* 为小心心添加跳动效果的类 */
.heart-beating {
    display: inline-block;
    animation: heartPulse 1.2s ease-in-out infinite;
    color: #ff6f61;
    text-shadow:
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000,
        0 0 10px rgba(255, 111, 97, 0.5);
}

/* 心跳动画 */
@keyframes heartBeat {

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

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

    50% {
        transform: translateY(-50%) scale(0.9);
        opacity: 0.6;
    }

    75% {
        transform: translateY(-50%) scale(1.1);
        opacity: 0.9;
    }
}

.container {
    width: 90%;
    margin: 0 auto;
    padding: 3px 20px;
    font: 14px 'Montserrat', sans-serif;
    color: rgba(1, 1, 1, 1);
    justify-content: center;
    text-align: center;
    font-size: 12px;
}

.container a {
    color: rgba(0, 0, 0, 1);
    text-decoration: none;
    transition: color 0.3s ease;
}

.container a:hover {
    color: rgba(255, 111, 97, 0.8);
}

/* 响应式瀑布流布局 */
@media (min-width: 1600px) {
    #gallery {
        column-count: 6;
        column-gap: 25px;
        max-width: 2400px;
        padding: 20px;
    }
}

@media (min-width: 1300px) and (max-width: 1599px) {
    #gallery {
        column-count: 5;
        column-gap: 22px;
        max-width: 1400px;
        padding: 20px;
    }
}

@media (min-width: 900px) and (max-width: 1299px) {
    #gallery {
        column-count: 4;
        column-gap: 20px;
        max-width: 1200px;
        padding: 20px;
    }
}

@media (min-width: 768px) and (max-width: 899px) {
    #gallery {
        column-count: 3;
        column-gap: 18px;
        max-width: 900px;
        padding: 20px;
    }
}

/* 平板设备 */
@media (min-width: 600px) and (max-width: 767px) {
    #gallery {
        column-count: 3;
        column-gap: 15px;
        max-width: 100%;
        padding: 18px;
    }

    #gallery img {
        margin-bottom: 15px;
    }
}

/* 大屏手机 */
@media (min-width: 480px) and (max-width: 599px) {
    #gallery {
        column-count: 2;
        column-gap: 12px;
        max-width: 100%;
        padding: 15px;
    }

    #gallery img {
        margin-bottom: 12px;
    }

    nav h1 {
        font-size: 24px;
    }

    #name {
        padding: 10px 15px;
    }

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

    #timer {
        padding: 15px;
    }

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

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

    .dates-container {
        gap: 15px;
        padding: 0 0px;
    }

    .date-item {
        width: 140px;
        padding: 18px 15px;
    }

    .section-header h3 {
        font-size: 24px;
    }

    .hero-section {
        padding: 15px 0 30px 0;
        border-radius: 0 0 20px 20px;
    }
}

/* 标准手机 */
@media (min-width: 360px) and (max-width: 479px) {
    #gallery {
        column-count: 2;
        column-gap: 8px;
        max-width: 100%;
        padding: 10px;
    }

    #gallery img {
        margin-bottom: 8px;
        border-radius: 8px;
    }

    nav h1 {
        font-size: 20px;
    }

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

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

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

    .dates-container {
        gap: 12px;
        padding: 0 0px;
    }

    .date-item {
        width: 120px;
        padding: 15px 12px;
    }

    .date-icon {
        font-size: 22px;
        margin-bottom: 5px;
    }

    .section-header h3 {
        font-size: 22px;
    }

    .hero-section {
        padding: 12px 0 25px 0;
        border-radius: 0 0 15px 15px;
    }
}

nav h1 {
    font-size: 22px;
}

#name {
    padding: 8px 12px;
}

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

#timer {
    padding: 12px;
}

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

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

#dates {
    margin: 15px 5px;
    padding: 0 5px;
}

.date-item {
    width: 130px;
    padding: 12px;
    margin: 5px;
}
}

@media (max-width: 359px) {
    #gallery {
        column-count: 2;
        column-gap: 8px;
        max-width: 100%;
        padding: 10px;
    }

    #gallery img {
        margin-bottom: 8px;
    }

    nav h1 {
        font-size: 20px;
    }

    #name {
        padding: 5px 8px;
    }

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

    #timer {
        padding: 8px;
    }

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

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

    #dates {
        margin: 10px 3px;
        padding: 0 3px;
    }

    .date-item {
        width: 140px;
        padding: 10px;
        margin: 4px;
    }
}

/* 移动端通用优化 - 最后加载，覆盖所有移动端样式 */
@media only screen and (max-width: 768px) {
    #name h2 {
        font-family: 'Pacifico', cursive !important;
        font-size: 28px !important;
        color: #ff6f61 !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    #timer p {
        font-size: 20px !important;
        margin-bottom: 5px !important;
    }

    #timer h2 {
        font-size: 35px !important;
        color: #ff6f61 !important;
        margin: 10px 0 !important;
    }

    #dates {
        display: flex !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
        margin: 15px 0px !important;
        padding: 0 15px !important;
        gap: 10px !important;
        align-items: flex-start !important;
    }

    .date-item {
        background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%) !important;
        padding: 18px 12px !important;
        margin: 0 !important;
        border-radius: 16px !important;
        box-shadow:
            0 8px 25px rgba(255, 111, 97, 0.15),
            0 4px 12px rgba(0, 0, 0, 0.1) !important;
        text-align: center !important;
        transition: all 0.3s ease !important;
        animation: fadeInUp 1s forwards !important;
        opacity: 1 !important;
        border: 1px solid rgba(255, 111, 97, 0.1) !important;
        position: relative !important;
        overflow: hidden !important;
    }

    .date-item::before {
        content: '' !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 3px !important;
        background: linear-gradient(90deg, #ff6f61, #ff8a80) !important;
        border-radius: 16px 16px 0 0 !important;
    }

    .date-item:hover {
        transform: translateY(-3px) !important;
        box-shadow:
            0 12px 35px rgba(255, 111, 97, 0.2),
            0 6px 18px rgba(0, 0, 0, 0.15) !important;
    }

    .date-icon {
        font-size: 24px !important;
        margin-bottom: 8px !important;
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1)) !important;
    }

    /* 生日卡片 - 两个并排 */
    .date-item:nth-child(1),
    .date-item:nth-child(2) {
        width: 120px !important;
        flex: 0 0 120px !important;
        min-width: 100px !important;
        max-width: 120px !important;
    }

    /* 纪念日卡片 - 单独一行居中，强制换行 */
    .date-item:nth-child(3) {
        width: 140px !important;
        flex: 0 0 100% !important;
        max-width: 140px !important;
        margin: 15px auto 0 auto !important;
    }

    .date-item p {
        font-size: 16px !important;
        font-weight: 700 !important;
        margin-bottom: 4px !important;
        color: #333 !important;
        line-height: 1.2 !important;
    }

    .date-item span {
        font-size: 11px !important;
        color: #666 !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        font-weight: 500 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
    }

    /* 移动端图片查看按钮优化 */
    #closeBtn {
        font-size: 30px !important;
        top: 20px !important;
        right: 25px !important;
    }

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

    .arrow {
        font-size: 14px !important;
        padding: 0 0px !important;
    }

    #leftArrow {
        left: 15px !important;
    }

    #rightArrow {
        right: 15px !important;
    }
}

/* 针对347px
及更小屏幕的底栏歌词优化 */
@media only screen and (max-width: 400px) {
    footer {
        padding: 2px 0 !important;
    }

    .footer-lyrics.show {
        margin-top: 2px !important;
        max-height: 30px !important;
        padding: 0 10px !important;
    }

    .footer-lyrics span {
        font-size: 10px !important;
        line-height: 1.2 !important;
        padding: 1px 0 !important;
        min-height: 12px !important;
    }

    .footer-lyrics span.heart-beating {
        font-size: 11px !important;
    }

    .container {
        padding: 2px 15px !important;
        font-size: 10px !important;
    }
}

/* 针对347px及更小屏幕的进一步优化 */
@media only screen and (max-width: 350px) {
    footer {
        padding: 1px 0 !important;
    }

    .footer-lyrics.show {
        margin-top: 1px !important;
        max-height: 25px !important;
        padding: 0 8px !important;
    }

    .footer-lyrics span {
        font-size: 9px !important;
        line-height: 1.1 !important;
        padding: 0 !important;
        min-height: 10px !important;
        text-shadow: 0 0 4px rgba(255, 111, 97, 0.4), 0 1px 1px rgba(0, 0, 0, 0.6) !important;
    }

    .footer-lyrics span.heart-beating {
        font-size: 10px !important;
        text-shadow: 0 0 6px rgba(255, 111, 97, 0.6), 0 0 3px rgba(255, 111, 97, 0.4), 0 1px 1px rgba(0, 0, 0, 0.6) !important;
    }

    .container {
        padding: 1px 10px !important;
        font-size: 9px !important;
    }
}