/* 行道篇加载动画 */
.custom-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f9f6f0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading-content {
    text-align: center;
    position: relative;
}

/* 卷轴式加载容器 */
.scroll-loading {
    width: 250px;
    height: 300px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 卷轴顶部 */
.scroll-top {
    width: 210px;
    height: 30px;
    background: #8B4513;
    border-radius: 10px 10px 0 0;
    border-bottom: 2px solid #5D2906;
    position: relative;
    z-index: 2;
}

/* 卷轴纸面 */
.scroll-paper {
    width: 200px;
    height: 240px;
    background: #FFF8E1;
    border-left: 1px solid #D7CCA1;
    border-right: 1px solid #D7CCA1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
    background-image: repeating-linear-gradient(
        0deg,
        rgba(139, 69, 19, 0.03) 0px,
        rgba(139, 69, 19, 0.03) 1px,
        transparent 1px,
        transparent 4px
    );
    z-index: 1;
}

/* 卷轴底部 */
.scroll-bottom {
    width: 210px;
    height: 30px;
    background: #8B4513;
    border-radius: 0 0 10px 10px;
    border-top: 2px solid #5D2906;
    position: relative;
    z-index: 2;
}

/* 加载图标 */
.loading-icon {
    width: 60px;
    height: 60px;
    fill: #8B4513;
    animation: pulse 1.5s infinite alternate;
    margin-bottom: 20px;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.7; }
    100% { transform: scale(1.1); opacity: 1; }
}

/* 加载文本 */
.loading-text {
    font-family: 'Ma Shan Zheng', cursive;
    color: #2c1810;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

/* 加载点动画 */
.loading-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
}

.dot {
    width: 8px;
    height: 8px;
    background: #8B4513;
    border-radius: 50%;
    display: inline-block;
    animation: dot-fade 1.4s infinite;
}

.dot:nth-child(2) {
    animation-delay: 0.2s;
}

.dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dot-fade {
    0%, 60%, 100% { 
        transform: scale(0.75);
        opacity: 0.4;
    }
    30% { 
        transform: scale(1.2);
        opacity: 1;
    }
}

/* 整体动画 */
.scroll-loading {
    animation: float 3s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
} 