/* AI解读区域样式 */
.ai-interpretation {
    width: 60%;
    max-width: 600px;
    padding: 25px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 20px;
    color: #fff;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.4),
                0 0 15px rgba(255, 215, 0, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: fixed;
    top: 50vh;
    left: 750px;
    transform: translateY(-50%);
    z-index: 1004; /* 🔧 修复：必须低于用户头像和语言选择器 (50000) */
    opacity: 0;
    visibility: hidden;
    display: none;
    pointer-events: auto;
}

.ai-interpretation.show {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.ai-interpretation h3 {
    color: #ffd700;
    margin: 0 0 20px 0;
    font-size: 24px;
    text-align: center;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
    font-family: 'Dancing Script', cursive;
    letter-spacing: 1px;
}

.ai-interpretation .ai-content {
    font-size: 16px;
    line-height: 1.8;
    text-align: left;
    padding: 0 20px;
    max-height: 60vh;
    overflow-y: auto;
    color: rgba(255, 255, 255, 0.9);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 215, 0, 0.3) rgba(0, 0, 0, 0.2);
}

.ai-interpretation .ai-content::-webkit-scrollbar {
    width: 6px;
}

.ai-interpretation .ai-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.ai-interpretation .ai-content::-webkit-scrollbar-thumb {
    background-color: rgba(255, 215, 0, 0.3);
    border-radius: 3px;
}

.ai-interpretation .ai-content p {
    margin: 15px 0;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.1);
}

/* 加载动画样式 */
.loading-indicator {
    text-align: center;
    padding: 30px 20px;
}

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

.loading-dots span {
    width: 10px;
    height: 10px;
    background: #ffd700;
    border-radius: 50%;
    display: inline-block;
    animation: loadingDots 1.4s infinite ease-in-out both;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

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

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

@keyframes loadingDots {
    0%, 80%, 100% { 
        transform: scale(0);
        opacity: 0.3;
    }
    40% { 
        transform: scale(1);
        opacity: 1;
    }
}

/* 错误消息样式 */
.error-message {
    color: #ff6b6b !important;
    text-align: center;
    font-weight: 500;
    padding: 15px;
    border-radius: 12px;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.2);
    margin: 15px 0;
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.1);
}

/* 确保在结果区域中正确显示 */
#resultSection {
    position: relative;
    min-height: 100vh;
}

#selectedCards {
    position: relative;
    z-index: 1;
}

/* 卡牌移动到侧边���的样式 */
.cards-side-position {
    transform: translateX(-600px) scale(0.8);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 确保卡牌移动到侧边后AI解读区域正确显示 */
.cards-side-position ~ .ai-interpretation {
    transform: translateY(-50%) translateX(0);
}

/* 调整卡牌容器的样式 */
.selected-cards-display {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 100px;
}

/* 调整卡牌间距 */
.selected-cards-display .card-final-position {
    margin: 0 15px;
} 