/* ==================== 六爻模块样式 ==================== */
.ly-coin-wrapper {
    width: 84px;
    height: 84px;
    flex: 0 0 84px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    box-shadow: none;
    border: none;
    position: relative;
    perspective: 1000px;
    transform: translateZ(0);
}

.ly-coin {
    width: 100%;
    height: 100%;
    margin: 0;
    display: block;
    object-fit: cover;
    transition: transform 0.1s;
    border-radius: 50%;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    transform: translateZ(0);
    will-change: transform;
}

.ly-coin-wrapper.rolling {
    animation: flip3d 0.8s ease-out;
}

@keyframes flip3d {
    0% {
        transform: rotateY(0deg) rotateX(0deg) scale(1);
        box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    }
    25% {
        transform: rotateY(720deg) rotateX(180deg) scale(1.04);
        box-shadow: 0 8px 16px rgba(0,0,0,0.4);
    }
    50% {
        transform: rotateY(1440deg) rotateX(360deg) scale(1.08);
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    }
    75% {
        transform: rotateY(2160deg) rotateX(540deg) scale(1.04);
        box-shadow: 0 8px 16px rgba(0,0,0,0.4);
    }
    100% {
        transform: rotateY(2880deg) rotateX(720deg) scale(1);
        box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    }
}

.yao-display {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    justify-content: center;
    gap: 0;
    min-height: 30px;
    margin-bottom: 2px;
    padding: 0 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    position: relative;
}

.yao-line {
    width: 80px;
    height: 5px;
    margin: 12px 0;
    transition: all 0.3s;
    position: relative;
    background: transparent;
}

.yao-line.yang.normal {
    background: #333;
    border-radius: 2px;
}

.yao-line.yang.old {
    background: #f44336;
    border-radius: 2px;
}

.yao-line.normal:before,
.yao-line.old:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 48%;
    height: 100%;
    border-radius: 2px;
    background: #333;
}

.yao-line.normal:after,
.yao-line.old:after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 48%;
    height: 100%;
    border-radius: 2px;
    background: #333;
}

.yao-line.old:before,
.yao-line.old:after {
    background: #f44336;
}

.yao-line.yang:before,
.yao-line.yang:after {
    display: none;
}

@media (max-width: 768px) {
    .ly-coin-wrapper {
        width: 72px;
        height: 72px;
        flex: 0 0 72px;
    }
}
