/* ==================== 全局样式 ==================== */
html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
    height: 100%;
    touch-action: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    tap-highlight-color: transparent;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    tap-highlight-color: transparent;
}

body {
    background-color: #F0F4F8;
    background: linear-gradient(135deg, #FFE5EC 0%, #E8F4FF 50%, #F0E6FF 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: relative;
    overflow: hidden;
}

.content {
    color: #FFFFFF;
    text-align: center;
    padding: 20px;
    z-index: 1;
}

/* ==================== 登录界面样式 ==================== */
.login-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: all 0.5s ease;
    overflow: hidden;
}

.login-container.hidden {
    opacity: 0;
    visibility: hidden;
}

.login-form {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 40px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.login-title {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

.login-title h1 {
    margin: 15px 0 0 0;
    font-size: 24px;
    font-weight: 600;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: white;
    font-size: 14px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.error-message {
    margin-top: 5px;
    color: #ff6b6b;
    font-size: 12px;
    min-height: 15px;
}

.login-btn {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    outline: none;
    border-radius: 10px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.login-btn:active {
    transform: translateY(0);
}

/* ==================== 后台管理界面样式 ==================== */
.admin-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1500;
    display: flex;
    flex-direction: column;
    transition: all 0.5s ease;
}

.admin-container.hidden {
    display: none;
}

.admin-header {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header h2 {
    color: white;
    margin: 0;
    font-size: 24px;
}

.admin-logout-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    color: white;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-logout-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.admin-nav {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0 20px;
    display: flex;
    gap: 10px;
}

.admin-nav-btn {
    background: transparent;
    border: none;
    color: white;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 10px 10px 0 0;
    transition: all 0.3s ease;
    font-size: 16px;
}

.admin-nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.admin-nav-btn.active {
    background: rgba(255, 255, 255, 0.3);
}

.admin-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.admin-module {
    display: none;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.admin-module.active {
    display: block;
}

.module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.module-header h3 {
    color: white;
    margin: 0;
    font-size: 20px;
}

.module-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-input {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    color: white;
    padding: 10px 15px;
    font-size: 14px;
    width: 200px;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.action-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    outline: none;
    border-radius: 10px;
    color: white;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    color: white;
}

.admin-table th,
.admin-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.admin-table th {
    background: rgba(255, 255, 255, 0.15);
    font-weight: bold;
}

.admin-table tr:hover {
    background: rgba(255, 255, 255, 0.1);
}

.edit-btn,
.delete-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    outline: none;
    border-radius: 8px;
    color: white;
    padding: 5px 10px;
    margin-right: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
}

.edit-btn:hover {
    background: rgba(0, 123, 255, 0.5);
}

.delete-btn:hover {
    background: rgba(220, 53, 69, 0.5);
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 10px;
}

.pagination button {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: white;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination button:hover {
    background: rgba(255, 255, 255, 0.3);
}

.pagination button.active {
    background: rgba(255, 255, 255, 0.4);
}

/* ==================== 导航栏样式 ==================== */
.navbar {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #FFE5EC 0%, #E8F4FF 100%);
    border-radius: 40px;
    padding: 15px;
    display: flex;
    gap: 15px;
    box-shadow:
        8px 8px 16px rgba(255, 182, 193, 0.3),
        -8px -8px 16px rgba(135, 206, 235, 0.3),
        inset 1px 1px 2px rgba(255, 255, 255, 0.5),
        inset -1px -1px 2px rgba(255, 182, 193, 0.1);
    width: 90%;
    max-width: 500px;
    height: 80px;
    overflow: hidden;
    z-index: 1000;
}

.icon-btn {
    flex: 1;
    background: #ffffff;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    min-width: 40px;
    border: none;
    outline: none;
    box-shadow:
        4px 4px 8px rgba(255, 182, 193, 0.3),
        -4px -4px 8px rgba(135, 206, 235, 0.3);
    color: #4A5568;
}

/* 确保未激活状态下图标居中 */
.icon-btn:not(.active) {
    justify-content: center;
}

/* 未激活状态下隐藏文本 */
.icon-btn:not(.active) .btn-text {
    display: none;
}

/* 按钮文本样式 */
.btn-text {
    color: #4A5568;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    visibility: hidden;
    margin-left: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* 激活状态下显示文本 */
.icon-btn.active .btn-text {
    opacity: 1;
    visibility: visible;
    background: linear-gradient(135deg, #FF6B9D 0%, #667EEA 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
}

/* 激活状态下按钮内容布局 */
.icon-btn.active {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.icon-btn.active {
    flex: 2;
    aspect-ratio: unset;
    background: linear-gradient(135deg, rgba(255, 182, 193, 0.6) 0%, rgba(135, 206, 235, 0.6) 100%);
    box-shadow:
        6px 6px 12px rgba(255, 182, 193, 0.4),
        -6px -6px 12px rgba(135, 206, 235, 0.4),
        inset 1px 1px 2px rgba(255, 255, 255, 0.3);
}

/* 弹出容器样式 */
.popup-container {
    position: fixed;
    bottom: calc(2rem + 75px);
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    max-width: 450px;
    opacity: 0;
    pointer-events: none;
    z-index: 999;
}

/* 电脑端调整弹出容器位置 */
@media (min-width: 768px) {
    .popup-container {
        bottom: calc(2rem + 95px);
    }
}

.popup-container.active {
    opacity: 1;
    pointer-events: auto;
    animation: liquidUp 0.5s ease-out;
}

.popup-content {
    background: linear-gradient(135deg, #FFE5EC 0%, #E8F4FF 100%);
    border-radius: 30px;
    padding: 20px;
    color: #4A5568;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 16px;
    text-align: center;
    box-shadow:
        10px 10px 20px rgba(255, 182, 193, 0.3),
        -10px -10px 20px rgba(135, 206, 235, 0.3),
        inset 2px 2px 4px rgba(255, 255, 255, 0.5),
        inset -2px -2px 4px rgba(255, 182, 193, 0.1);
    position: relative;
}

#popupContentText {
    flex: 1;
    text-align: center;
    margin-right: 40px;
}

/* 关闭按钮样式 */
.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.close-btn .icon {
    width: 14px;
    height: 14px;
    stroke: rgba(255, 255, 255, 0.6);
    stroke-width: 1.5;
}

/* 液态流动动画 */
@keyframes liquidUp {
    0% {
        transform: translateX(-50%) translateY(10px) scale(0.95);
        border-radius: 50%;
    }
    50% {
        transform: translateX(-50%) translateY(5px) scale(1.01);
        border-radius: 40%;
    }
    100% {
        transform: translateX(-50%) translateY(0) scale(1);
        border-radius: 30px;
    }
}

/* 弹出选项样式 - 2*2网格布局 */
#popupContentItems {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.popup-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    background: linear-gradient(145deg, #ffffff, #f5f5f5);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    color: #4A5568;
    font-size: 14px;
    font-weight: 500;
    box-shadow:
        4px 4px 8px rgba(255, 182, 193, 0.3),
        -4px -4px 8px rgba(135, 206, 235, 0.3);
}

/* 悬停效果 */
.popup-item:hover {
    background: linear-gradient(135deg, rgba(255, 182, 193, 0.3) 0%, rgba(135, 206, 235, 0.3) 100%);
    transform: translateX(5px);
    box-shadow:
        6px 6px 12px rgba(255, 182, 193, 0.4),
        -6px -6px 12px rgba(135, 206, 235, 0.4);
}

/* 点击反馈效果 */
.popup-item:active {
    transform: translateX(3px) scale(0.98);
}

/* 选项图标样式 */
.popup-item .icon {
    width: 24px;
    height: 24px;
    stroke: url(#inactiveIconGradient);
    stroke-width: 1.8;
}

.popup-item .icon *[fill="currentColor"] {
    fill: url(#inactiveIconGradient);
}

.popup-item span {
    color: #FF6B9D;
    background: linear-gradient(135deg, #FF6B9D 0%, #667EEA 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.popup-item:hover span {
    background: linear-gradient(135deg, #FFB6C1 0%, #87CEEB 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 弹出文本内容样式 */
.popup-text {
    display: block;
    text-align: center;
    color: white;
    font-size: 16px;
    font-weight: 500;
    padding: 20px;
}

/* 弹出内容类型基础样式 */
.popup-content-type {
    width: 100%;
}

/* ==================== 雪花控制面板样式 ==================== */
.snow-controls {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.snow-control-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

.snow-control-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.snow-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toggle-switch {
    position: relative;
    width: 56px;
    height: 28px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    transition: 0.3s;
    border-radius: 34px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: #ffffff;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.toggle-switch input:checked + .toggle-slider {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #ffffff;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(28px);
}

.toggle-label {
    font-size: 15px;
    color: #ffffff;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.snow-control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 10px;
}

.snow-control-group label {
    font-size: 14px;
    color: #ffffff;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.snow-slider {
    flex: 1;
    height: 8px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.3);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.snow-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    cursor: pointer;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
    border: 2px solid #ffffff;
}

.snow-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    cursor: pointer;
    border: 2px solid #ffffff;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
}

.slider-value {
    min-width: 55px;
    text-align: right;
    font-size: 14px;
    color: #ffffff;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    background: rgba(0, 0, 0, 0.2);
    padding: 4px 8px;
    border-radius: 5px;
}

.color-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.snow-color-picker {
    width: 55px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.color-value {
    min-width: 75px;
    font-size: 14px;
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    background: rgba(0, 0, 0, 0.2);
    padding: 6px 10px;
    border-radius: 5px;
}

.snow-reset-btn {
    padding: 14px 24px;
    background: linear-gradient(135deg, #FFB6C1 0%, #87CEEB 100%);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.snow-reset-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, #87CEEB 0%, #FFB6C1 100%);
}

.snow-reset-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.snow-warning-text {
    text-align: center;
    margin-top: 15px;
    padding: 8px 12px;
    color: #FFB6C1;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    opacity: 0.8;
}

/* 雪花画布样式 */
#snowCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 99999;
}

/* ==================== 音乐播放器样式 ==================== */
.music-player {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 15px;
}

/* 左右排列布局 - 确保音乐列表在右侧 */
.music-player {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
}

.player-left {
    grid-column: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.player-right {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.controls {
    grid-column: 1 / -1;
}

/* 响应式设计 - 保持左右排列，调整间距 */
@media (max-width: 767px) {
    .music-player {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .player-right {
        grid-column: 2;
    }

    /* 小屏幕下调整元素大小 */
    .album-cover img {
        width: 80px;
        height: 80px;
    }

    .music-info h3 {
        font-size: 14px;
    }

    .music-info p {
        font-size: 12px;
    }

    .lyric-line {
        font-size: 14px;
        line-height: 18px;
    }

    .lyric-line.active {
        font-size: 16px;
    }

    #playlist li {
        font-size: 12px;
        padding: 4px 8px;
    }
}

/* 左侧区域样式 */
.player-left {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 封面图片样式 */
.album-cover {
    display: flex;
    justify-content: center;
}

.album-cover img {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* 旋转CD动画 */
@keyframes rotateCD {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 默认CD图片样式 */
.album-cover img.rotate-cd {
    border-radius: 50%; /* 圆形CD效果 */
    animation: rotateCD 10s linear infinite;
    background: radial-gradient(circle at center, rgba(100, 100, 120, 0.3) 0%, rgba(150, 150, 180, 0.4) 30%, rgba(100, 100, 120, 0.3) 31%, rgba(80, 80, 100, 0.3) 60%, rgba(120, 120, 150, 0.4) 61%, rgba(100, 100, 120, 0.3) 100%);
    border: 3px solid rgba(255, 255, 255, 0.6);
}

/* 音乐信息样式 */
.music-info {
    text-align: center;
}

.music-info h3 {
    color: #4A5568;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.music-info p {
    color: rgba(74, 85, 104, 0.8);
    font-size: 14px;
    margin: 5px 0 0 0;
}

/* 歌词区域样式 - 可滚动 */
.lyrics-container {
    height: 90px;
    overflow: auto;
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    box-shadow:
        inset 3px 3px 6px rgba(255, 182, 193, 0.2),
        inset -3px -3px 6px rgba(135, 206, 235, 0.2);
}

.lyrics {
    transition: transform 0.3s ease;
    text-align: center;
    width: 100%;
    height: auto;
}

.lyric-line {
    color: rgba(74, 85, 104, 0.7);
    font-size: 14px;
    line-height: 18px;
    margin: 5px 0;
}

.lyric-line.active {
    color: #FF6B9D;
    font-weight: 600;
    font-size: 16px;
}

/* 播放时间容器样式 */
.time-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* 进度条样式 */
.progress-bar-container {
    width: 100%;
    height: 4px;
    background: linear-gradient(145deg, #ffffff, #e6e6e6);
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
    box-shadow:
        inset 1px 1px 2px rgba(255, 182, 193, 0.2),
        inset -1px -1px 2px rgba(135, 206, 235, 0.2);
}

.progress-bar {
    width: 100%;
    height: 100%;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #FFB6C1 0%, #87CEEB 100%);
    border-radius: 2px;
    transition: width 0.3s ease;
    width: 30%;
}

/* 播放时间信息样式 */
.time-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    background: linear-gradient(90deg, #667EEA, #764BA2, #FF6B9D);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.time-separator {
    background: linear-gradient(90deg, #667EEA, #764BA2, #FF6B9D);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 右侧播放列表样式 */
.player-right {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.player-right h4 {
    color: #4A5568;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    text-align: center;
}

/* 播放列表滚动容器 */
.playlist-scroll-container {
    max-height: 200px;
    overflow-y: auto;
    background: linear-gradient(145deg, #ffffff, #e6e6e6);
    border-radius: 12px;
    padding: 6px;
    box-shadow:
        inset 3px 3px 6px rgba(255, 182, 193, 0.2),
        inset -3px -3px 6px rgba(135, 206, 235, 0.2);
}

/* 自定义滚动条样式 */
.playlist-scroll-container::-webkit-scrollbar {
    width: 6px;
}

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

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

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

/* 播放列表项样式 */
#playlist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#playlist li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    background: linear-gradient(145deg, #ffffff, #e6e6e6);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    box-shadow:
        2px 2px 4px rgba(255, 182, 193, 0.3),
        -2px -2px 4px rgba(135, 206, 235, 0.3);
}

#playlist li:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(3px);
}

#playlist li.active {
    background: rgba(255, 255, 255, 0.25);
    border-left: 3px solid white;
}

#playlist li.active .song-title {
    background: linear-gradient(135deg, #FF6B9D 0%, #667EEA 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 500;
    font-size: 13px;
    text-align: center;
}

#playlist li.active .song-artist {
    background: linear-gradient(135deg, #FF6B9D 0%, #667EEA 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 11px;
    text-align: center;
}

.song-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 4px;
    width: 100%;
}

#playlist li .song-title {
    color: #4A5568;
    font-weight: 500;
    font-size: 13px;
    text-align: center;
}

#playlist li .song-artist {
    color: rgba(74, 85, 104, 0.7);
    font-size: 11px;
    text-align: center;
}

/* 播放控制样式 */
.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    padding: 15px 0 0 0;
}

.control-btn {
    background: #ffffff;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    border: none;
    outline: none;
    box-shadow:
        4px 4px 8px rgba(255, 182, 193, 0.3),
        -4px -4px 8px rgba(135, 206, 235, 0.3);
}

.control-btn:hover {
    background: #ffffff;
    transform: scale(1.05);
    box-shadow:
        6px 6px 12px rgba(255, 182, 193, 0.4),
        -6px -6px 12px rgba(135, 206, 235, 0.4);
}

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

.control-btn .icon {
    width: 24px;
    height: 24px;
    fill: #4A5568;
    stroke: none;
}

.play-btn {
    width: 60px;
    height: 60px;
    background: white;
    box-shadow:
        6px 6px 12px rgba(255, 182, 193, 0.4),
        -6px -6px 12px rgba(135, 206, 235, 0.4);
}

.play-btn .icon {
    width: 28px;
    height: 28px;
}

.play-btn:hover .icon {
    fill: white;
}

/* 响应式设计 */
@media (max-width: 767px) {
    .music-player {
        gap: 12px;
    }

    .player-left {
        gap: 12px;
    }

    .album-cover img {
        width: 100px;
        height: 100px;
    }

    .lyric-line {
        font-size: 12px;
        line-height: 16px;
    }

    .lyric-line.active {
        font-size: 14px;
    }

    .controls {
        gap: 20px;
    }

    .control-btn {
        width: 40px;
        height: 40px;
    }

    .play-btn {
        width: 50px;
        height: 50px;
    }

    .control-btn .icon {
        width: 20px;
        height: 20px;
        fill: #4A5568;
        stroke: none;
    }

    .play-btn .icon {
        width: 24px;
        height: 24px;
        fill: #4A5568;
    }
}

@media (max-width: 480px) {
    .music-player {
        gap: 10px;
        padding: 10px;
    }

    .album-cover img {
        width: 80px;
        height: 80px;
    }

    .lyrics-container {
        height: 60px;
        padding: 10px;
    }

    .lyric-line {
        font-size: 12px;
        line-height: 16px;
    }

    .lyric-line.active {
        font-size: 14px;
    }

    #playlist li {
        font-size: 11px;
        padding: 5px 6px;
    }

    .controls {
        gap: 15px;
        padding: 10px 0 0 0;
    }

    .control-btn {
        width: 35px;
        height: 35px;
    }

    .play-btn {
        width: 45px;
        height: 45px;
    }

    .control-btn .icon {
        width: 18px;
        height: 18px;
        fill: #4A5568;
        stroke: none;
    }

    .play-btn .icon {
        width: 22px;
        height: 22px;
    }

    .play-btn:hover .icon {
        fill: white;
    }
}

/* ==================== 壁纸切换模态窗口样式 ==================== */
.wallpaper-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(240, 244, 248, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.wallpaper-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.wallpaper-modal-content {
    background: linear-gradient(135deg, #FFE5EC 0%, #E8F4FF 100%);
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    height: 600px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow:
        12px 12px 24px rgba(255, 182, 193, 0.3),
        -12px -12px 24px rgba(135, 206, 235, 0.3),
        inset 2px 2px 4px rgba(255, 255, 255, 0.5),
        inset -2px -2px 4px rgba(255, 182, 193, 0.1);
}

.wallpaper-modal-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    background: linear-gradient(135deg, #FFE5EC 0%, #E8F4FF 100%);
    border-radius: 20px 20px 0 0;
    flex-shrink: 0;
}

.wallpaper-modal-header h2 {
    color: #4A5568;
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.wallpaper-modal-header .close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(145deg, #ffffff, #e6e6e6);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    box-shadow:
        3px 3px 6px rgba(255, 182, 193, 0.3),
        -3px -3px 6px rgba(135, 206, 235, 0.3);
}

.wallpaper-modal-header .close-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

.wallpaper-modal-header .close-btn .icon {
    stroke: #4A5568;
    stroke-width: 2;
}

.wallpaper-modal-body {
    padding: 0;
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

/* 分类标签样式 */
.wallpaper-categories {
    display: flex;
    gap: 10px;
    padding: 20px 20px 10px 20px;
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, #FFE5EC 0%, #E8F4FF 100%);
    flex-shrink: 0;
}

.category-tab {
    background: linear-gradient(145deg, #ffffff, #e6e6e6);
    border-radius: 25px;
    padding: 10px 20px;
    color: #4A5568;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    border: none;
    outline: none;
}

.category-tab:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.category-tab.active {
    background: linear-gradient(135deg, #FFB6C1 0%, #87CEEB 100%);
    color: white;
}

/* 壁纸网格样式 */
.wallpaper-grid {
    display: block;
    padding: 12px 20px 20px 20px;
    overflow-y: auto;
    flex: 1;
    margin: 0;
}

/* 壁纸分类容器 - 用于缓存机制 */
.category-container {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: min-content;
    gap: 10px;
}

.wallpaper-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    width: 100%;
    aspect-ratio: 1 / 1;
    background-size: cover;
    background-position: center;
    /* CSS Containment优化：告诉浏览器这些元素互不影响，提升渲染性能 */
    contain: layout style paint;
}

.wallpaper-item:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.5);
}

.wallpaper-item.selected {
    border-color: white;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.wallpaper-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wallpaper-name-overlay {
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.95);
    font-size: 8px;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    background: rgba(0, 0, 0, 0.15);
    white-space: nowrap;
}

.wallpaper-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.download-overlay {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.download-overlay.downloading,
.download-overlay.error {
    opacity: 1;
}

.download-overlay.downloaded {
    opacity: 0;
    pointer-events: none;
}

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

.download-icon svg {
    width: 14px;
    height: 14px;
    stroke: white;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.download-icon span {
    display: none;
}

.download-icon .loading {
    animation: rotate 1s linear infinite;
}

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

.download-overlay.error {
    background: rgba(239, 68, 68, 0.8);
}

/* 壁纸模态窗口响应式设计 */
@media (max-width: 767px) {
    .wallpaper-modal-content {
        max-height: 80vh;
        width: 95%;
    }

    .wallpaper-grid {
        grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
        gap: 8px;
    }

    .wallpaper-modal-header {
        padding: 15px;
    }

    .wallpaper-modal-header h2 {
        font-size: 18px;
    }

    .wallpaper-categories {
        padding: 15px 15px 5px 15px;
    }
}

/* 平板及以上设备 */
@media (min-width: 768px) {
    .wallpaper-modal-content {
        width: 550px;
        height: 500px;
    }
    
    .wallpaper-grid {
        grid-template-columns: repeat(7, 1fr);
    }
}

/* 大屏设备 */
@media (min-width: 1200px) {
    .wallpaper-modal-content {
        width: 650px;
        height: 550px;
    }
    
    .wallpaper-grid {
        grid-template-columns: repeat(8, 1fr);
    }
}

/* ==================== 标题栏样式 ==================== */
.title-bar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    max-width: 350px;
    min-width: 250px;
    height: 60px;
    background: linear-gradient(135deg, #FFE5EC 0%, #E8F4FF 100%);
    border-radius: 35px;
    box-shadow:
        8px 8px 16px rgba(255, 182, 193, 0.3),
        -8px -8px 16px rgba(135, 206, 235, 0.3),
        inset 1px 1px 2px rgba(255, 255, 255, 0.5),
        inset -1px -1px 2px rgba(255, 182, 193, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 0 20px;
    cursor: pointer;
}

/* 隐藏所有元素模式 */
body.hide-all-elements > *:not(.title-bar):not(.wallpaper-btn):not(.wallpaper-modal):not(.poem-carousel-container) {
    opacity: 0 !important;
    visibility: hidden !important;
}

body.hide-all-elements .title-bar {
    cursor: pointer;
}

/* 壁纸切换按钮样式 */
.wallpaper-btn {
    position: fixed;
    top: 20px;
    right: calc(50% - 175px - 85px);
    background: linear-gradient(135deg, #FFE5EC 0%, #E8F4FF 100%);
    border-radius: 16px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    z-index: 1001;
    border: none;
    outline: none;
    box-shadow:
        5px 5px 10px rgba(255, 182, 193, 0.3),
        -5px -5px 10px rgba(135, 206, 235, 0.3),
        inset 1px 1px 2px rgba(255, 255, 255, 0.5),
        inset -1px -1px 2px rgba(255, 182, 193, 0.1);
}

.wallpaper-btn:hover {
    background: linear-gradient(135deg, #FFD6E0 0%, #D6E8FF 100%);
    transform: scale(1.05);
    box-shadow:
        8px 8px 16px rgba(255, 182, 193, 0.4),
        -8px -8px 16px rgba(135, 206, 235, 0.4),
        inset 1px 1px 2px rgba(255, 255, 255, 0.5),
        inset -1px -1px 2px rgba(255, 182, 193, 0.1);
}

/* 确保壁纸切换按钮图标使用正确的颜色，不被继承的文本颜色影响 */
.wallpaper-btn .icon {
    width: 18px;
    height: 18px;
    stroke: #FFB6C1;
    fill: none;
}

.wallpaper-btn .icon rect,
.wallpaper-btn .icon circle,
.wallpaper-btn .icon path {
    stroke: #FFB6C1;
    fill: none;
    stroke-width: 1.5;
}

.title-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 20px;
    height: 100%;
}

.title-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.title-image .icon {
    width: 32px;
    height: 32px;
    fill: white;
}

.title-text {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

/* ==================== 内容展示区域样式 ==================== */
.content-display {
    position: fixed;
    top: calc(20px + 60px + 20px);
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    max-width: 500px;
    height: calc(100vh - (20px + 60px + 20px + 2rem + 115px));
    max-height: none;
    background: linear-gradient(135deg, #FFE5EC 0%, #E8F4FF 100%);
    border-radius: 30px;
    padding-top: 10px;
    padding-right: 5px;
    padding-bottom: 5px;
    padding-left: 5px;
    display: flex;
    flex-direction: column;
    gap: 0;
    z-index: 100;
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
    box-shadow:
        12px 12px 24px rgba(255, 182, 193, 0.3),
        -12px -12px 24px rgba(135, 206, 235, 0.3),
        inset 2px 2px 4px rgba(255, 255, 255, 0.5),
        inset -2px -2px 4px rgba(255, 182, 193, 0.1);
}

/* 电脑端响应式设计 */
@media (min-width: 768px) {
    .title-bar {
        width: auto;
        max-width: 350px;
    }

    .content-display {
        width: 500px;
    }
}

/* 平板/手机响应式设计 */
@media (max-width: 767px) {
    .title-bar {
        width: calc(100% - 200px);
        height: 55px;
        border-radius: 30px;
    }

    .title-image .icon {
        width: 28px;
        height: 28px;
    }

    .title-text {
        font-size: 16px;
    }

    .content-display {
        width: 85%;
        top: calc(20px + 55px + 10px);
        height: calc(100vh - (20px + 55px + 10px + 2rem + 105px));
    }

    /* 手机端壁纸按钮位置调整 */
    .wallpaper-btn {
        right: calc(50% - (calc(100% - 200px) / 2) - 75px);
        height: 45px;
        width: 45px;
        border-radius: 16px;
    }
}

/* 小屏幕手机响应式设计 */
@media (max-width: 480px) {
    .title-bar {
        width: calc(100% - 180px);
        height: 50px;
        border-radius: 25px;
    }

    .title-image .icon {
        width: 24px;
        height: 24px;
    }

    .title-text {
        font-size: 14px;
    }

    .content-display {
        top: calc(20px + 50px + 10px);
        height: calc(100vh - (20px + 50px + 10px + 2rem + 95px));
    }

    /* 小屏幕手机端壁纸按钮位置调整 */
    .wallpaper-btn {
        right: calc(50% - (calc(100% - 180px) / 2) - 70px);
        height: 45px;
        width: 45px;
        border-radius: 16px;
        border: none;
        outline: none;
    }
}

/* ==================== 淡入动画 ==================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
}

/* ==================== 分页导航点样式 ==================== */
.pagination-dots {
    display: none;
}

/* 底部分页导航点样式 */
.bottom-pagination-dots {
    position: fixed;
    bottom: calc(2rem + 75px);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 12px;
    z-index: 998;
    padding: 5px 15px;
    display: flex !important;
}

/* 电脑端调整导航点位置 */
@media (min-width: 768px) {
    .bottom-pagination-dots {
        bottom: calc(2rem + 95px);
    }
}

/* 响应式设计 - 平板/手机 */
@media (max-width: 767px) {
    .bottom-pagination-dots {
        bottom: calc(2rem + 85px);
    }
}

/* 响应式设计 - 小屏幕手机 */
@media (max-width: 480px) {
    .bottom-pagination-dots {
        bottom: calc(2rem + 75px);
    }
}

/* 响应式设计 - 极小屏幕手机 */
@media (max-width: 360px) {
    .bottom-pagination-dots {
        bottom: calc(2rem + 65px);
    }
}

.bottom-pagination-dots .pagination-dot {
    width: 10px;
    height: 10px;
    background: linear-gradient(145deg, #ffffff, #e6e6e6);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow:
        2px 2px 4px rgba(255, 182, 193, 0.3),
        -2px -2px 4px rgba(135, 206, 235, 0.3);
}

.bottom-pagination-dots .pagination-dot:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.bottom-pagination-dots .pagination-dot.active {
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, #FFB6C1 0%, #87CEEB 100%);
    transform: scale(1.3);
    box-shadow:
        3px 3px 6px rgba(255, 182, 193, 0.4),
        -3px -3px 6px rgba(135, 206, 235, 0.4);
}

.pagination-dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-dot.active {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

/* ==================== 内容滑动区域样式 ==================== */
.slides-container {
    flex: 1;
    overflow: hidden;
    position: relative;
    border-radius: 30px;
    background: transparent;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 30px 15px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    opacity: 0;
    transform: translateX(100%);
    transition: transform 0.5s ease, opacity 0.5s ease;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    z-index: 1;
}

.slide::-webkit-scrollbar {
    width: 8px;
}

.slide::-webkit-scrollbar-track {
    background: transparent;
}

.slide::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    transition: background 0.3s ease;
}

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

.slide.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 10;
}

.slide.prev {
    opacity: 0;
    transform: translateX(-100%);
    z-index: 1;
}

.slide.next {
    opacity: 0;
    transform: translateX(100%);
    z-index: 1;
}

/* ==================== 页面内容样式 ==================== */
.slide-content {
    text-align: left;
    color: white;
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.slide-title-wrapper {
    display: flex;
    flex-direction: column;
    align-self: center;
    width: 90%;
}

.slide-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 0 0;
    padding: 15px 20px;
    background: linear-gradient(90deg, #667EEA, #764BA2, #FF6B9D, #C44569);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
    text-align: left;
    letter-spacing: 2px;
}

.slide-title-line {
    height: 3px;
    background: linear-gradient(90deg, #667EEA, #FF6B9D);
    border-radius: 2px;
    margin: 0;
}

.slide-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 30px;
    opacity: 0.8;
}

.slide-description {
    font-size: 16px;
    line-height: 1.8;
    margin: -10px 0 0 0;
    padding: 15px;
    background: #ffffff;
    border-radius: 12px;
    color: #4A5568;
    word-wrap: break-word;
    overflow-wrap: break-word;
    min-height: 100px;
    max-width: 100%;
}

.slide-description p {
    margin: 0 0 15px 0;
}

.slide-description p:last-child {
    margin-bottom: 0;
}

.slide-description img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
}

.slide-description ul,
.slide-description ol {
    margin: 15px 0;
    padding-left: 25px;
}

.slide-description li {
    margin: 8px 0;
}

.slide-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.slide-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    font-size: 14px;
}

.slide-feature .icon {
    width: 20px;
    height: 20px;
}

/* ==================== 留言板样式 ==================== */
.留言板-container {
    background: linear-gradient(135deg, #FFE5EC 0%, #E8F4FF 100%);
    border-radius: 15px;
    padding: 20px;
    margin-top: 30px;
    box-shadow:
        8px 8px 16px rgba(255, 182, 193, 0.3),
        -8px -8px 16px rgba(135, 206, 235, 0.3),
        inset 1px 1px 2px rgba(255, 255, 255, 0.5),
        inset -1px -1px 2px rgba(255, 182, 193, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.留言板-container:hover {
    transform: perspective(1000px) rotateX(2deg) rotateY(2deg);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.留言板-container:active {
    transform: perspective(1000px) rotateX(-1deg) rotateY(-1deg);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

@media (hover: none) {
    .留言板-container:active {
        transform: perspective(1000px) rotateX(3deg) rotateY(3deg);
        box-shadow: 0 10px 35px rgba(0, 0, 0, 0.12);
    }
}

.留言板标题 {
    color: #4A5568;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 20px 0;
    text-align: center;
}

.留言板-form {
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 15px;
}

.留言板-input,
.留言板-textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    padding: 12px 15px;
    color: #4A5568;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
    box-shadow:
        inset 3px 3px 6px rgba(255, 182, 193, 0.2),
        inset -3px -3px 6px rgba(135, 206, 235, 0.2);
    border: none;
}

.留言板-input::placeholder,
.留言板-textarea::placeholder {
    color: rgba(74, 85, 104, 0.5);
}

.留言板-input:focus,
.留言板-textarea:focus {
    outline: none;
    background: #ffffff;
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.留言板-textarea {
    resize: vertical;
    min-height: 100px;
    max-height: 300px;
}

/* 消息输入组样式 */
.message-group {
    position: relative;
    margin-bottom: 0;
}

.留言板-submit {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: auto;
    height: 35px;
    min-width: 35px;
    background: linear-gradient(135deg, #FFE5EC 0%, #E8F4FF 100%);
    border-radius: 35px;
    padding: 8px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    outline: none;
    box-shadow:
        4px 4px 8px rgba(255, 182, 193, 0.3),
        -4px -4px 8px rgba(135, 206, 235, 0.3);
}

.留言板-submit:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow:
        6px 6px 12px rgba(255, 182, 193, 0.5),
        -6px -6px 12px rgba(135, 206, 235, 0.5);
}

.留言板-submit:active {
    transform: translateY(0) scale(0.95);
}

/* 调整文本域的内边距，为右侧按钮留出空间 */
.留言板-textarea {
    padding-right: 50px;
}

/* 纸飞机默认向左旋转90度 */
.paper-plane {
    transform: rotate(-90deg);
}

/* 纸飞机飞行动画 */
@keyframes flyUp {
    0% {
        transform: translateY(0) rotate(-90deg);
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(-45deg);
        opacity: 0;
    }
}

.paper-plane.fly {
    animation: flyUp 1s ease-out forwards;
}

.留言板-messages {
    padding-right: 5px;
    border-radius: 10px;
}

.留言-item {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    box-shadow:
        4px 4px 8px rgba(255, 182, 193, 0.3),
        -4px -4px 8px rgba(135, 206, 235, 0.3);
}

.留言-item:hover {
    background: #ffffff;
    transform: translateX(5px);
}

.留言-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.留言-用户名 {
    color: #FF6B9D;
    font-weight: 600;
    font-size: 14px;
}

.留言时间 {
    color: rgba(74, 85, 104, 0.5);
    font-size: 12px;
}

.留言内容 {
    color: #4A5568;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
}

/* ==================== 页面切换按钮样式 ==================== */
/* 仅在电脑端显示 */
@media (min-width: 1024px) {
    .page-nav-btn {
        position: fixed;
        top: 50%;
        transform: translateY(-50%);
        width: 60px;
        height: 60px;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        z-index: 999;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }

    /* 相对于内容显示区域定位，使其距离内容区域更远 */
    .prev-page-btn {
        left: calc(50% - 250px - 80px);
        right: auto;
    }

    .next-page-btn {
        right: calc(50% - 250px - 80px);
        left: auto;
    }

    .page-nav-btn:hover {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.5);
        transform: translateY(-50%) scale(1.1);
        box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
    }

    .page-nav-btn:active {
        transform: translateY(-50%) scale(0.95);
    }
}

/* 在移动设备上完全隐藏切换按钮 */
@media (max-width: 1023px) {
    .page-nav-btn {
        display: none !important;
    }
}

/* ==================== 全局滚动条样式 ==================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Firefox 滚动条样式 */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) rgba(255, 255, 255, 0.05);
}

/* 统一所有元素的滚动条样式 */
.留言板-messages::-webkit-scrollbar,
.slide::-webkit-scrollbar,
.playlist-scroll-container::-webkit-scrollbar {
    width: 8px;
}

.留言板-messages::-webkit-scrollbar-track,
.slide::-webkit-scrollbar-track,
.playlist-scroll-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.留言板-messages::-webkit-scrollbar-thumb,
.slide::-webkit-scrollbar-thumb,
.playlist-scroll-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.留言板-messages::-webkit-scrollbar-thumb:hover,
.slide::-webkit-scrollbar-thumb:hover,
.playlist-scroll-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 767px) {
    .navbar {
        width: calc(100% - 40px);
        bottom: 2rem;
        padding: 12px;
        gap: 12px;
        height: 70px;
        border-radius: 35px;
    }

    .icon {
        width: 28px;
        height: 28px;
    }

    .content-display {
        width: 95%;
        height: 75vh;
        padding-top: 10px;
        padding-right: 5px;
        padding-bottom: 5px;
        padding-left: 5px;
    }

    .slide {
        padding: 20px 10px;
    }

    .slide-title-wrapper {
        width: 95%;
    }

    .slide-title {
        font-size: 22px;
        padding: 12px 15px;
    }

    .slide-description {
        font-size: 14px;
        padding: 15px;
        line-height: 1.7;
    }

    .留言板-container {
        padding: 15px;
        margin-top: 20px;
    }

    .留言板标题 {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .navbar {
        width: calc(100% - 40px);
        bottom: 2rem;
        padding: 10px;
        gap: 10px;
        height: 60px;
        border-radius: 30px;
    }

    .icon {
        width: 24px;
        height: 24px;
    }

    .content-display {
        width: 95%;
        height: 80vh;
        padding-top: 10px;
        padding-right: 5px;
        padding-bottom: 5px;
        padding-left: 5px;
    }

    .category-btn {
        padding: 10px 15px;
        font-size: 12px;
    }

    .slide {
        padding: 15px 8px;
    }

    .slide-title-wrapper {
        width: 95%;
    }

    .slide-title {
        font-size: 18px;
        padding: 10px 0;
    }

    .slide-icon {
        width: 50px;
        height: 50px;
    }

    .slide-description {
        font-size: 13px;
        padding: 12px;
        line-height: 1.6;
    }

    .留言板-container {
        padding: 12px;
        margin-top: 15px;
    }

    .留言板标题 {
        font-size: 15px;
        margin-bottom: 15px;
    }

    .留言板-textarea {
        font-size: 13px;
        padding: 10px;
    }
}

@media (max-width: 360px) {
    .navbar {
        gap: 8px;
        padding: 8px;
        border-radius: 25px;
        height: 50px;
    }

    .icon {
        width: 20px;
        height: 20px;
    }
}

@media (min-width: 768px) {
    .navbar {
        width: 500px;
        bottom: 2rem;
    }
}

/* ==================== 图标动画效果 ==================== */
.icon {
    transition: all 0.3s ease;
}

/* 有趣图标星星闪烁动画 */
.icon-btn[data-popup="有趣"]:hover .icon {
    animation: sparkle 0.6s ease-in-out infinite;
}

/* 音乐图标脉动动画 */
.icon-btn[data-popup="音乐"]:hover .icon {
    animation: pulse 1s ease-in-out infinite;
}

/* 雪花图标飘落动画 */
.icon-btn[data-popup="雪花"]:hover .icon {
    animation: float 1.5s ease-in-out infinite;
}

/* 星星闪烁动画 */
@keyframes sparkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

/* 脉动动画 */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

/* 浮动动画 */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-3px) rotate(3deg);
    }
    50% {
        transform: translateY(0px) rotate(0deg);
    }
    75% {
        transform: translateY(3px) rotate(-3deg);
    }
}

/* 按钮背景渐变动画 */
.icon-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.icon-btn:hover::before {
    left: 100%;
}

.icon-btn:hover {
    background: linear-gradient(135deg, rgba(255, 182, 193, 0.3) 0%, rgba(135, 206, 235, 0.3) 100%);
    transform: translateY(-1px);
    box-shadow:
        6px 6px 12px rgba(255, 182, 193, 0.4),
        -6px -6px 12px rgba(135, 206, 235, 0.4);
}

.icon-btn.active:hover {
    background: linear-gradient(135deg, rgba(255, 182, 193, 0.6) 0%, rgba(135, 206, 235, 0.6) 100%);
    box-shadow:
        6px 6px 12px rgba(255, 182, 193, 0.4),
        -6px -6px 12px rgba(135, 206, 235, 0.4),
        inset 1px 1px 2px rgba(255, 255, 255, 0.3);
}

/* 基础图标样式 - 只设置尺寸和过渡效果 */
.icon {
    width: 28px;
    height: 28px;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: all 0.3s ease;
}

/* ==================== 导航栏按钮图标样式 ==================== */
/* 有趣按钮图标 - 星星图标 */
.icon-btn[data-popup="有趣"] .icon {
    stroke: #FFB6C1;
    stroke-width: 1.5;
    fill: none;
}
.icon-btn[data-popup="有趣"] .icon polygon,
.icon-btn[data-popup="有趣"] .icon path,
.icon-btn[data-popup="有趣"] .icon circle {
    stroke: #FFB6C1;
    stroke-width: 1.5;
    fill: none;
}

/* 音乐按钮图标 - 音符图标 */
.icon-btn[data-popup="音乐"] .icon {
    stroke: #FFB6C1;
    stroke-width: 1.5;
    fill: none;
}
.icon-btn[data-popup="音乐"] .icon path,
.icon-btn[data-popup="音乐"] .icon circle {
    stroke: #FFB6C1;
    stroke-width: 1.5;
    fill: none;
}

/* 雪花按钮图标 - 雪花图标 */
.icon-btn[data-popup="雪花"] .icon {
    stroke: #FFB6C1;
    stroke-width: 1.5;
    fill: none;
}
.icon-btn[data-popup="雪花"] .icon polygon,
.icon-btn[data-popup="雪花"] .icon line,
.icon-btn[data-popup="雪花"] .icon circle {
    stroke: #FFB6C1;
    stroke-width: 1.5;
    fill: none;
}

/* ==================== 壁纸切换按钮图标样式 ==================== */
.wallpaper-btn .icon {
    stroke: #FFB6C1;
    stroke-width: 1.5;
    fill: none;
}
.wallpaper-btn .icon path {
    stroke: #FFB6C1;
    stroke-width: 1.5;
    fill: none;
}

/* ==================== 有趣选项下的图标样式 ==================== */
/* 有趣的数图标 - 计算器图标 */
.popup-item[data-category="有趣的数"] .icon {
    stroke: #FFB6C1;
    stroke-width: 1.8;
    fill: none;
}
.popup-item[data-category="有趣的数"] .icon rect {
    stroke: #FFB6C1;
    stroke-width: 1.8;
    fill: none;
}
.popup-item[data-category="有趣的数"] .icon circle {
    stroke: #FFB6C1;
    stroke-width: 1.8;
    fill: none;
}

/* 有趣的表图标 - 日历图标 */
.popup-item[data-category="有趣的表"] .icon {
    stroke: #FFB6C1;
    stroke-width: 1.8;
    fill: none;
}
.popup-item[data-category="有趣的表"] .icon rect {
    stroke: #FFB6C1;
    stroke-width: 1.8;
    fill: none;
}
.popup-item[data-category="有趣的表"] .icon circle {
    stroke: #FFB6C1;
    stroke-width: 1.8;
    fill: none;
}

/* 有趣的图图标 - 图片图标 */
.popup-item[data-category="有趣的图"] .icon {
    stroke: #FFB6C1;
    stroke-width: 1.8;
    fill: none;
}
.popup-item[data-category="有趣的图"] .icon rect {
    stroke: #FFB6C1;
    stroke-width: 1.8;
    fill: none;
}
.popup-item[data-category="有趣的图"] .icon circle {
    stroke: #FFB6C1;
    stroke-width: 1.8;
    fill: none;
}
.popup-item[data-category="有趣的图"] .icon polyline {
    stroke: #FFB6C1;
    stroke-width: 1.8;
    fill: none;
}

/* 有趣的魂图标 - 星星图标 */
.popup-item[data-category="有趣的魂"] .icon {
    stroke: #FFB6C1;
    stroke-width: 1.8;
    fill: none;
}
.popup-item[data-category="有趣的魂"] .icon polygon {
    stroke: #FFB6C1;
    stroke-width: 1.8;
    fill: none;
}

/* ==================== 音乐播放器控制图标样式 ==================== */
/* 播放/暂停按钮图标 */
.control-btn .icon {
    stroke: #FFB6C1;
    stroke-width: 1.5;
    fill: none;
}
.control-btn .icon path {
    stroke: #FFB6C1;
    stroke-width: 1.5;
    fill: none;
}

/* 上一首/下一首按钮图标 */
#prevBtn .icon,
#nextBtn .icon {
    stroke: #FFB6C1;
    stroke-width: 1.5;
    fill: none;
}

/* 播放按钮特殊样式 */
.play-btn .icon {
    stroke: #FFB6C1;
    stroke-width: 1.5;
    fill: none;
}

/* ==================== 关闭按钮图标样式 ==================== */
.close-btn .icon {
    stroke: #FFB6C1;
    stroke-width: 2;
    fill: none;
}

/* ==================== 悬停状态样式 ==================== */
/* 导航栏按钮悬停 */
.icon-btn:hover .icon {
    stroke: url(#inactiveIconGradient);
}
.icon-btn:hover .icon polygon,
.icon-btn:hover .icon path,
.icon-btn:hover .icon circle,
.icon-btn:hover .icon line {
    stroke: url(#inactiveIconGradient);
    fill: none;
}

/* 壁纸切换按钮悬停 */
.wallpaper-btn:hover .icon {
    stroke: #FF6B9D;
}
.wallpaper-btn:hover .icon path,
.wallpaper-btn:hover .icon circle {
    stroke: #FF6B9D;
    fill: none;
}

/* 有趣选项按钮悬停 */
.popup-item:hover .icon {
    stroke: url(#inactiveIconGradient);
}
.popup-item:hover .icon rect,
.popup-item:hover .icon circle,
.popup-item:hover .icon polygon,
.popup-item:hover .icon polyline,
.popup-item:hover .icon line {
    stroke: url(#inactiveIconGradient);
    fill: none;
}

/* 音乐控制按钮悬停 */
.control-btn:hover .icon {
    stroke: #FF6B9D;
}
.control-btn:hover .icon path {
    stroke: #FF6B9D;
    fill: none;
}

/* 关闭按钮悬停 */
.close-btn:hover .icon {
    stroke: #FF6B9D;
}
.close-btn:hover .icon path {
    stroke: #FF6B9D;
    fill: none;
}

/* ==================== 激活状态样式 ==================== */
/* 导航栏按钮激活 */
.icon-btn.active .icon {
    stroke: #FF6B9D;
}
.icon-btn.active .icon polygon,
.icon-btn.active .icon path,
.icon-btn.active .icon circle,
.icon-btn.active .icon line {
    stroke: #FF6B9D;
    fill: none;
}

/* 有趣选项按钮激活 */
.popup-item.active .icon {
    stroke: #FF6B9D;
}
.popup-item.active .icon rect,
.popup-item.active .icon circle,
.popup-item.active .icon polygon,
.popup-item.active .icon polyline,
.popup-item.active .icon line {
    stroke: #FF6B9D;
    fill: none;
}

/* 播放列表项激活 */
#playlist li.active .icon {
    stroke: #FF6B9D;
}

/* ==================== 上传进度样式 ==================== */
.upload-progress-container {
    margin-bottom: 20px;
    padding: 15px;
    background-color: rgba(248, 249, 250, 0.8);
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.upload-progress-bar {
    width: 100%;
    height: 10px;
    background-color: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}

.upload-progress {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 5px;
    transition: width 0.3s ease;
    box-shadow: 0 0 5px rgba(102, 126, 234, 0.5);
}

.upload-status {
    font-size: 12px;
    color: #666;
    text-align: center;
    font-weight: 500;
}

/* ==================== 小屏幕缩放支持 ==================== */
:root {
    --scale-factor: 1;
}

/* 当启用缩放时应用 */
body[data-scaled="true"] {
    overflow-x: hidden;
    overflow-y: auto;
}

/* 确保幻灯片容器正确缩放 */
.slides-wrapper {
    width: 100%;
    overflow: hidden;
}

/* 缩放后调整触摸目标（保持至少44px） */
@media (max-width: 390px) {
    .button,
    .clickable-element,
    .nav-button,
    .control-button {
        min-height: calc(44px / var(--scale-factor, 1));
    }
    
    /* 确保触摸目标不会太小 */
    .category-nav-item,
    .slide-control-btn,
    .留言板-submit {
        min-height: calc(44px / var(--scale-factor, 1));
        min-width: calc(44px / var(--scale-factor, 1));
    }
}
