/* 行道篇主容器 */
.xingdao-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #f9f6f0;
}

/* 页面样式 */
.xingdao-page {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.xingdao-page.active-page {
    opacity: 1;
    transform: translateY(0);
}

/* 内容布局 */
.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

/* 封面样式 */
.cover-title {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 4rem;
    color: #2c1810;
    text-align: center;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.cover-subtitle {
    font-family: 'ZCOOL XiaoWei', serif;
    font-size: 1.8rem;
    color: #8B4513;
    text-align: center;
    opacity: 0.8;
}

/* 阶段标签 */
.stage-tag {
    position: absolute;
    top: 2rem;
    right: 2rem;
    padding: 0.5rem 1.5rem;
    background: rgba(139, 69, 19, 0.1);
    border: 1px solid #8B4513;
    border-radius: 20px;
    font-family: 'ZCOOL XiaoWei', serif;
    color: #8B4513;
    font-size: 1.2rem;
    animation: fade-in 1s ease-out;
}

@keyframes fade-in {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 页面标题 */
.page-title {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 2.5rem;
    color: #2c1810;
    margin-bottom: 2rem;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* 正文样式 */
.page-text {
    font-family: 'ZCOOL XiaoWei', serif;
    font-size: 1.2rem;
    line-height: 2;
    color: #333;
    padding: 0 2rem;
}

.page-text p {
    margin-bottom: 1rem;
    text-align: justify;
}

.author-sign {
    text-align: right !important;
    font-style: italic;
    color: #8B4513;
    margin-top: 2rem;
}

/* 导航按钮 */
.navigation-controls {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 100;
}

.nav-btn {
    width: 50px;
    height: 50px;
    border: none;
    background: rgba(139, 69, 19, 0.1);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: rgba(139, 69, 19, 0.2);
}

.arrow {
    color: #8B4513;
    font-size: 1.5rem;
}

.home-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transition: all 0.3s ease;
}

/* 添加光晕效果 */
.home-btn::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(178, 34, 34, 0.5) 0%,
        rgba(178, 34, 34, 0.3) 40%,
        rgba(178, 34, 34, 0) 70%
    );
    animation: glow-pulse 2s infinite alternate;
    z-index: -1;
}

.home-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(139, 69, 19, 0.2);
    transition: all 0.3s ease;
    animation: icon-breath 3s infinite ease-in-out;
}

/* 悬停效果 */
.home-btn:hover {
    transform: translateY(-3px);
}

.home-btn:hover::before {
    animation-duration: 1s;
    background: radial-gradient(
        circle,
        rgba(178, 34, 34, 0.7) 0%,
        rgba(178, 34, 34, 0.4) 40%,
        rgba(178, 34, 34, 0) 70%
    );
}

.home-btn:hover .home-icon {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(178, 34, 34, 0.4);
}

/* 添加动画关键帧 */
@keyframes glow-pulse {
    0% { opacity: 0.5; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1.05); }
}

@keyframes icon-breath {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* 页码显示 */
.page-indicator {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    font-family: 'ZCOOL XiaoWei', serif;
    color: #8B4513;
    font-size: 1rem;
    z-index: 100;
    padding: 0.3rem 0.8rem;
    background: rgba(255, 252, 242, 0.7);
    border-radius: 20px;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .cover-title {
        font-size: 3rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .stage-tag {
        font-size: 1rem;
        padding: 0.3rem 1rem;
        top: 1rem;
        right: 1rem;
    }
    
    .page-text {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    .navigation-controls {
        right: 1rem;
    }
    
    .nav-btn {
        width: 40px;
        height: 40px;
    }
    
    .home-btn {
        width: 50px;
        height: 50px;
    }
    
    .home-icon {
        width: 35px;
        height: 35px;
    }
}

/* 内容过长时添加滚动提示 */
.scroll-indicator {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    color: #8B4513;
    font-size: 1.2rem;
    animation: bounce-down 1.5s infinite;
    opacity: 0.7;
}

@keyframes bounce-down {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
} 