@charset "UTF-8";

/* ================================================================ */
/* 👑 3D 引擎核心 CSS (苹果 iOS 终极防撕裂 + 老设备不灭版)           */
/* ================================================================ */
.xzm-3d-scene {
    width: 100%; max-width: 320px; 
    margin: 20px auto 30px; perspective: 1200px;
    cursor: pointer; z-index: 10; position: relative;
    /* 👑 强制硬件GPU加速，修复老版 Safari 闪烁 */
    -webkit-transform: translateZ(0); 
    transform: translateZ(0);
}

/* 👑 万能比例法术：用伪元素 padding 撑开 2:3 的完美高度，兼容一切上古设备，杜绝高度坍缩！ */
.xzm-3d-scene::before {
    content: "";
    display: block;
    padding-bottom: 150%; 
}

.xzm-3d-inner {
    position: absolute; 
    top: 0; left: 0; width: 100%; height: 100%;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    transform-style: preserve-3d; 
    -webkit-transform-style: preserve-3d; 
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}

.xzm-3d-scene.is-flipped .xzm-3d-inner { 
    transform: rotateY(180deg); 
    -webkit-transform: rotateY(180deg);
}

/* 👑 核心隔离术：强制正面和背面在Z轴上拉开距离 */
.xzm-3d-front, .xzm-3d-back {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    backface-visibility: hidden; 
    -webkit-backface-visibility: hidden; 
    border-radius: 12px; overflow: hidden;
}

.xzm-3d-front {
    transform: rotateY(0deg) translateZ(1px);
    -webkit-transform: rotateY(0deg) translateZ(1px);
}
.xzm-3d-front img { width: 100%; height: 100%; object-fit: cover; }

.xzm-3d-back {
    background: rgba(24, 24, 27, 0.95); 
    display: flex; flex-direction: column; align-items: center;
    justify-content: flex-start; padding: 25px 15px;
    border: 1px solid rgba(255,255,255,0.08);
    transform: rotateY(180deg) translateZ(1px);
    -webkit-transform: rotateY(180deg) translateZ(1px);
}

/* 👑 评分防穿透护盾 */
.xzm-front-rating-badge {
    position: absolute; top: 12px; right: 12px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    color: #facc15; padding: 4px 10px; border-radius: 20px;
    font-size: 0.85rem; font-weight: bold;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    opacity: 0; 
    transition: all 0.5s ease;
    backface-visibility: hidden; 
    -webkit-backface-visibility: hidden;
    transform: translateY(-10px) translateZ(2px);
    -webkit-transform: translateY(-10px) translateZ(2px);
}
.xzm-front-rating-badge.show-badge { 
    opacity: 1; 
    transform: translateY(0) translateZ(2px); 
    -webkit-transform: translateY(0) translateZ(2px);
}

.xzm-flip-hint {
    position: absolute; bottom: 0; left: 0; width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0));
    color: #facc15; text-align: center; padding: 30px 10px 15px;
    font-size: 0.85rem; font-weight: bold; text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    animation: hint-breathe 2s infinite alternate;
    backface-visibility: hidden; 
    -webkit-backface-visibility: hidden;
    transform: translateZ(2px);
    -webkit-transform: translateZ(2px);
}
@keyframes hint-breathe { 0% { opacity: 0.7; } 100% { opacity: 1; } }

.xzm-back-title { color: #fff; font-size: 1.1rem; font-weight: bold; margin-bottom: 8px; text-align: center; }
.xzm-back-subtitle { color: #a1a1aa; font-size: 0.85rem; margin-bottom: 25px; text-align: center; line-height: 1.5; }
.xzm-back-buttons-area { width: 100%; display: flex; flex-direction: column; gap: 12px; align-items: center; flex: 1; }

.xzm-3d-back .pan-hider-wrapper, .xzm-3d-back .link-feedback-report-btn { margin: 0 !important; width: 85% !important; }
.xzm-3d-back .pan-hider-button, .xzm-3d-back .link-feedback-report-btn { width: 100% !important; justify-content: center !important; padding: 10px !important; }

/* 勾引动画 */
@keyframes xzm-nudge-hint {
    0% { transform: rotateY(0deg); -webkit-transform: rotateY(0deg); }
    30% { transform: rotateY(25deg); -webkit-transform: rotateY(25deg); } 
    60% { transform: rotateY(0deg); -webkit-transform: rotateY(0deg); }
    100% { transform: rotateY(0deg); -webkit-transform: rotateY(0deg); }
}
.xzm-nudge-active .xzm-3d-inner {
    animation: xzm-nudge-hint 1.5s ease-in-out;
}

/* ================================================================ */
/* 👑 皇家化缘区：底部操作栏并排布局 (Flexbox)                    */
/* ================================================================ */
.xzm-card-footer-action {
    width: 90%; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    gap: 8px; 
    margin-top: auto; 
    padding-bottom: 5px;
}

.xzm-3d-back .xzm-card-footer-action .link-feedback-report-btn {
    width: auto !important;
    flex: 1; 
    margin: 0 !important;
    padding: 8px 5px !important;
    font-size: 0.8rem;
}

/* 👑 高级透明暗黑质感红包按钮 */
.xzm-kofi-btn {
    flex: 1; 
    height: 36px;
    background: transparent; 
    border: 1px solid rgba(255, 255, 255, 0.08); 
    border-radius: 20px; 
    color: #8f9096 !important; 
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none !important;
    display: flex; align-items: center; justify-content: center;
    gap: 4px; 
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    backface-visibility: hidden; 
    -webkit-backface-visibility: hidden;
    transform: translateZ(2px);
    -webkit-transform: translateZ(2px);
}

.xzm-kofi-btn:hover {
    background: rgba(255, 94, 91, 0.1); 
    border-color: rgba(255, 94, 91, 0.4); 
    color: #ffffff !important; 
    transform: scale(1.03) translateY(-1px) translateZ(2px);
    -webkit-transform: scale(1.03) translateY(-1px) translateZ(2px);
}

/* ================================================================ */
/* ☕ 补全丢失的法术：Emoji 专属摇头动画                             */
/* ================================================================ */
@keyframes xzm-emoji-wiggle {
    0% { transform: rotate(0) scale(1); }
    10% { transform: rotate(-15deg) scale(1.15); }
    20% { transform: rotate(15deg) scale(1.15); }
    30% { transform: rotate(-15deg) scale(1.15); }
    40% { transform: rotate(0) scale(1); }
    100% { transform: rotate(0) scale(1); }
}

.xzm-kofi-emoji {
    display: inline-block;
    font-size: 1.1rem; 
    animation: xzm-emoji-wiggle 3s infinite ease-in-out;
    transform-origin: bottom center; 
}