/* 添加全局毛玻璃效果 */
html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    overflow: hidden;
    user-select: none;
    font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
}

/* 添加柚子厨主题背景 */
body {
    background: linear-gradient(135deg, rgba(255, 182, 193, 0.3) 0%, rgba(255, 105, 180, 0.3) 100%);
    position: relative;
}

/* 添加柚子厨炫彩背景效果 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 182, 193, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 105, 180, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 192, 203, 0.2) 0%, transparent 50%);
    z-index: -2;
}

/* 主容器毛玻璃效果 */
#main {
    height: 100%;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

/* 内容区域毛玻璃效果 */
.content {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 95%;
}

#obje-div {
    height: 420px; /* 增加高度，为图片和文字留出更多空间 */
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.15);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* 修改图片样式 - 默认隐藏，通过JS控制显示 */
#obje-div>img {
    position: relative;
    width: 100%;
    max-width: 700px;
    top: -30px;
    left: 0;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
    opacity: 0; /* 默认隐藏 */
    transform: scale(0.9); /* 默认缩小 */
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
    display: block; /* 确保元素是块级 */
    visibility: hidden; /* 初始不可见 */
}

/* 图片显示时的状态 */
#obje-div>img.show {
    opacity: 1;
    transform: scale(1);
    visibility: visible; /* 显示时可见 */
    filter: drop-shadow(0 0 15px rgba(255, 105, 180, 0.8)) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

/* 柚子厨主题控制面板毛玻璃效果 */
#panel1 {
    position: fixed;
    bottom: 10px;
    width: calc(100% - 40px);
    max-width: 800px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 101;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 20px;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.15),
        inset 0 0 0 1px rgba(255, 255, 255, 0.25);
    margin-bottom: 10px;
}

/* 柚子厨角色信息 */
.role-info {
    text-align: center;
    margin: 15px 0;
    padding: 10px;
    background: rgba(255, 182, 193, 0.2);
    border-radius: 12px;
    border: 1px solid rgba(255, 105, 180, 0.3);
}

.role-name {
    font-size: 24px;
    font-weight: bold;
    color: #ff1493;
    text-shadow: 0 2px 4px rgba(255, 20, 147, 0.3);
    margin-bottom: 5px;
}

.role-subtitle {
    font-size: 14px;
    color: #ff69b4;
    font-style: italic;
}

/* 隐藏状态效果 */
.hide {
    display: none !important;
}

.hide2 {
    opacity: 0;
    transform: translateY(20px);
    transition: all .5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

/* 按钮柚子厨主题效果 */
button {
    border: 1px solid rgba(255, 105, 180, 0.5);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 8px 16px;
    color: #333;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 
        0 4px 12px rgba(255, 105, 180, 0.15),
        inset 0 0 0 1px rgba(255, 255, 255, 0.25);
    position: relative;
    overflow: hidden;
}

button:hover {
    background: rgba(255, 182, 193, 0.3);
    border-color: rgba(255, 20, 147, 0.7);
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(255, 20, 147, 0.25),
        inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

button:active {
    transform: translateY(0);
    background: rgba(255, 105, 180, 0.35);
}

button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.7s;
}

button:hover::before {
    left: 100%;
}

#btn2 {
    height: 30px;
    background: rgba(255, 255, 255, 0.3);
}

/* 下拉选择框柚子厨主题效果 */
select {
    height: 35px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0 10px;
    color: #333;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.05),
        inset 0 0 0 1px rgba(255, 255, 255, 0.25);
    display: block;
    margin: 15px auto;
    width: 200px;
}

select:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.6);
}

select:focus {
    outline: none;
    border-color: #ff69b4;
    box-shadow: 
        0 0 0 2px rgba(255, 105, 180, 0.25),
        inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

/* 滑块柚子厨主题效果 */
datalist {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    writing-mode: vertical-lr;
    width: 350px;
}

option {
    padding: 0;
    transform: rotate(270deg);
    color: rgba(0, 0, 0, 0.6);
}

input[type="range"] {
    width: 350px;
    margin: 0;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ff69b4;
    border: 2px solid rgba(255, 255, 255, 0.9);
    cursor: pointer;
    box-shadow: 
        0 4px 12px rgba(255, 105, 180, 0.5),
        0 0 0 2px rgba(255, 255, 255, 0.6);
    transition: all 0.3s;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 
        0 6px 16px rgba(255, 105, 180, 0.7),
        0 0 0 2px rgba(255, 255, 255, 0.9);
}

input[type="range"]::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(90deg, rgba(255, 182, 193, 0.4), rgba(255, 105, 180, 0.8));
    border: none;
}

/* 复选框柚子厨主题效果 */
input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 5px;
    border: 1px solid rgba(255, 105, 180, 0.5);
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    cursor: pointer;
    position: relative;
    margin-right: 8px;
    transition: all 0.3s;
    vertical-align: middle;
}

input[type="checkbox"]:checked {
    background: rgba(255, 105, 180, 0.4);
    border-color: rgba(255, 20, 147, 0.9);
}

input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 14px;
}

/* 标签样式 */
label {
    color: #333;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
}

/* 震动动画效果 */
.shake {
    animation: shake 300ms ease-in-out;
}

@keyframes shake {
    10%, 90% { transform: translate3d(-2px, 2px, 0) rotate(-0.5deg); }
    20%, 80% { transform: translate3d(4px, -4px, 0) rotate(1deg); }
    30%, 70% { transform: translate3d(-8px, 8px, 0) rotate(-1.5deg); }
    40%, 60% { transform: translate3d(6px, -6px, 0) rotate(2deg); }
    50% { transform: translate3d(-8px, 8px, 0) rotate(-2.5deg); }
    45%, 55% { transform: translate3d(4px, 4px, 0) rotate(3deg); }
    35%, 65% { transform: translate3d(-6px, -6px, 0) rotate(-3.5deg); }
    25%, 75% { transform: translate3d(10px, 10px, 0) rotate(4deg); }
    15%, 85% { transform: translate3d(-8px, -8px, 0) rotate(-4.5deg); }
}

/* 隐藏鼠标指针 */
.hidecur {
    cursor: none;
}

/* 响应式调整 */
@media (max-width: 768px) {
    #panel1 {
        width: calc(100% - 20px);
        padding: 15px;
        border-radius: 15px;
    }
    
    input[type="range"] {
        width: 100%;
        max-width: 350px;
    }
    
    #obje-div {
        height: 380px; /* 移动端稍小一点 */
    }
    
    #obje-div>img {
        top: -20px; /* 移动端稍小一点 */
    }
    
    .role-name {
        font-size: 20px;
    }
    
    select {
        width: 180px;
    }
}

/* 添加柚子厨动态效果 */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-10px) rotate(2deg); }
}

#obje-div>img.show {
    animation: float 6s ease-in-out infinite;
}

/* 柚子厨发光效果 */
@keyframes pinkGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 182, 193, 0.5); }
    50% { box-shadow: 0 0 40px rgba(255, 105, 180, 0.8); }
}

#panel1 {
    animation: pinkGlow 3s ease-in-out infinite;
}

/* ================= 自定义音乐播放器样式 ================= */
#custom-music-player {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 800px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-bottom: none;
    border-radius: 20px 20px 0 0;
    padding: 15px 20px;
    z-index: 200;
    opacity: 0.95;
    box-shadow: 
        0 -10px 40px rgba(0, 0, 0, 0.15),
        inset 0 0 0 1px rgba(255, 255, 255, 0.25);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#custom-music-player.hide2 {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
    pointer-events: none;
}

.custom-player-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.music-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#music-title {
    color: #333;
    font-weight: 600;
    font-size: 14px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

.music-progress {
    display: flex;
    align-items: center;
    gap: 10px;
}

#progress-bar {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

#progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ff69b4;
    border: 2px solid rgba(255, 255, 255, 0.9);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(255, 105, 180, 0.5);
}

#progress-bar::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ff69b4;
    border: 2px solid rgba(255, 255, 255, 0.9);
    cursor: pointer;
}

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

.control-buttons button {
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 105, 180, 0.4);
    transition: all 0.3s;
}

.control-buttons button:hover {
    background: rgba(255, 182, 193, 0.3);
    transform: scale(1.1);
}

#play-btn {
    width: 40px;
    height: 40px;
    font-size: 18px;
    background: rgba(255, 105, 180, 0.25);
}

#volume-slider {
    width: 80px;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ff69b4;
    border: 2px solid rgba(255, 255, 255, 0.9);
    cursor: pointer;
}

/* 音乐列表面板 */
#music-list-panel {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 15px 15px 0 0;
    padding: 15px;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
    max-height: 300px;
    overflow-y: auto;
    display: none;
}

#music-list-panel.hide {
    display: none;
}

#music-list-panel:not(.hide) {
    display: block;
}

#music-list-panel h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 16px;
    text-align: center;
}

#music-list {
    list-style: none;
    padding: 0;
    margin: 0 0 10px 0;
}

#music-list li {
    padding: 10px;
    margin: 5px 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    color: #333;
    font-size: 14px;
    border: 1px solid transparent;
}

#music-list li:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(5px);
}

#music-list li.active {
    background: rgba(255, 105, 180, 0.25);
    border-color: rgba(255, 105, 180, 0.6);
    font-weight: 600;
}

#close-list-btn {
    width: 100%;
    padding: 8px;
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

#close-list-btn:hover {
    background: rgba(255, 255, 255, 0.35);
}

/* 上传按钮特殊样式 */
#upload-btn {
    background: rgba(255, 105, 180, 0.25);
    border-color: rgba(255, 105, 180, 0.6);
}

/* 响应式调整 */
@media (max-width: 768px) {
    #custom-music-player {
        width: calc(100% - 20px);
        padding: 12px 15px;
    }
    
    .control-buttons {
        justify-content: center;
    }
    
    .control-buttons button {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    #play-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    #volume-slider {
        width: 60px;
    }
    
    #music-title {
        font-size: 12px;
    }
}

/* 社会主义核心价值观词条轮播效果 - 点击位置显示 */
.core-value-text {
    position: fixed;
    font-size: 24px;
    font-weight: bold;
    color: #ff1493;
    text-shadow: 
        0 0 8px rgba(255, 20, 147, 0.8),
        0 0 16px rgba(255, 20, 147, 0.6);
    opacity: 0;
    z-index: 9999;
    pointer-events: none;
    font-family: "Microsoft YaHei", "SimHei", sans-serif;
    text-align: center;
    background: linear-gradient(45deg, rgba(255, 182, 193, 0.2), rgba(255, 105, 180, 0.2));
    padding: 8px 16px;
    border-radius: 12px;
    backdrop-filter: blur(8px) saturate(180%);
    -webkit-backdrop-filter: blur(8px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    min-width: 80px;
    box-shadow: 
        0 8px 24px rgba(255, 20, 147, 0.3),
        inset 0 0 0 1px rgba(255, 255, 255, 0.15);
    animation: none; /* 通过JS控制 */
    white-space: nowrap;
    letter-spacing: 1px;
    transform-origin: center;
}

.core-value-text.show {
    animation: coreValueAppear 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes coreValueAppear {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.7) rotate(-5deg);
        filter: blur(4px);
    }
    15% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.05) rotate(0deg);
        filter: blur(0);
    }
    25% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        filter: blur(0);
    }
    60% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        filter: blur(0);
    }
    80% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(0.95) rotate(0deg);
        filter: blur(2px);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8) rotate(5deg);
        filter: blur(4px);
    }
}

/* 给每个词条添加不同的颜色效果 */
.core-value-text.fucqiang { 
    color: #ff3366; 
    text-shadow: 0 0 8px rgba(255, 51, 102, 0.8);
}
.core-value-text.minzhu { 
    color: #ff6600; 
    text-shadow: 0 0 8px rgba(255, 102, 0, 0.8);
}
.core-value-text.wenming { 
    color: #ff9900; 
    text-shadow: 0 0 8px rgba(255, 153, 0, 0.8);
}
.core-value-text.hexie { 
    color: #ffcc00; 
    text-shadow: 0 0 8px rgba(255, 204, 0, 0.8);
}
.core-value-text.ziyou { 
    color: #99ff33; 
    text-shadow: 0 0 8px rgba(153, 255, 51, 0.8);
}
.core-value-text.pingdeng { 
    color: #33ccff; 
    text-shadow: 0 0 8px rgba(51, 204, 255, 0.8);
}
.core-value-text.gongzheng { 
    color: #3366ff; 
    text-shadow: 0 0 8px rgba(51, 102, 255, 0.8);
}
.core-value-text.fazhi { 
    color: #6633ff; 
    text-shadow: 0 0 8px rgba(102, 51, 255, 0.8);
}
.core-value-text.aiguo { 
    color: #ff33cc; 
    text-shadow: 0 0 8px rgba(255, 51, 204, 0.8);
}
.core-value-text.jingye { 
    color: #cc33ff; 
    text-shadow: 0 0 8px rgba(204, 51, 255, 0.8);
}
.core-value-text.chengxin { 
    color: #ff33ff; 
    text-shadow: 0 0 8px rgba(255, 51, 255, 0.8);
}
.core-value-text.youshan { 
    color: #ff6699; 
    text-shadow: 0 0 8px rgba(255, 102, 153, 0.8);
}

/* 添加背景光效 */
.core-value-text::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: radial-gradient(circle at center, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0) 70%);
    border-radius: 16px;
    z-index: -1;
    opacity: 0;
    animation: valueGlowPulse 1.5s ease-out;
}

@keyframes valueGlowPulse {
    0%, 100% { opacity: 0; }
    15%, 60% { opacity: 0.5; }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .core-value-text {
        font-size: 20px;
        padding: 6px 12px;
        min-width: 70px;
    }
}