/* 全局样式微调 */
body {
    background-color: #161025;
    color: #F2E1FF;
    overflow: hidden; /* 防止滚动 */
    -webkit-font-smoothing: antialiased;
}

#page-result {
    padding-bottom: 6rem; /* 给底部按钮留足空间 */
    box-sizing: border-box;
}

#page-entrance {
    padding-bottom: 4rem; /* 确保开始按钮不会被遮挡 */
    box-sizing: border-box;
}

/* 噪点背景纹理 */
.noise-bg {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
}

/* 磨砂玻璃卡片 */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(229, 160, 192, 0.15);
    box-shadow: 0 4px 30px rgba(58, 40, 89, 0.3);
}

/* 隐藏滚动条 */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

/* 闪烁光效 */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* 增强的治愈系微交互动画 */
@keyframes gentle-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

@keyframes soft-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(229, 160, 192, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(229, 160, 192, 0.5);
    }
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

/* 星空层样式优化 */
.starry-layer {
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

/* 标签按钮样式修复和微交互增强 */
.tag-btn {
    -webkit-tap-highlight-color: transparent;
    -webkit-focus-ring-color: transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* 涟漪效果样式 */
.tag-btn .ripple {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(229, 160, 192, 0.3);
    transform: scale(0);
    animation: ripple 0.6s ease-out;
    pointer-events: none;
}

.tag-btn:focus {
    outline: none;
    box-shadow: 0 0 15px rgba(229, 160, 192, 0.3);
}

.tag-btn:focus:not(:hover) {
    transform: none !important;
}

/* 确保选中状态在各种情况下都保持 */
.tag-btn.bg-gold,
.tag-btn.text-black,
.tag-btn.border-gold {
    background-color: #E5A0C0 !important;
    color: #161025 !important;
    border-color: #E5A0C0 !important;
    opacity: 1 !important;
}

.tag-btn.bg-gold:focus,
.tag-btn.bg-gold:hover,
.tag-btn.bg-gold:active {
    background-color: #E5A0C0 !important;
    color: #161025 !important;
    border-color: #E5A0C0 !important;
    opacity: 1 !important;
}

