* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Noto Serif SC", Georgia, "Times New Roman", serif;
    line-height: 1.6;
    background-color: #fff;
    color: #333;
    transition: all 0.3s ease;
}


body.no-scroll {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}


.novel-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}


.audio-player {
    margin-bottom: 20px;
    text-align: center;
}

#audio-play-btn {
    padding: 10px 20px;
    background-color: #4a89dc;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

#audio-play-btn:hover {
    background-color: #3a70c0;
}

#audio-play-btn.playing {
    background-color: #e74c3c;
}


.novel-content {
    font-size: 18px;
    line-height: 1.8;
}

.chapter {
    margin-bottom: 40px;
}

.chapter-title {
    font-size: 1.6rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.novel-content p {
    margin-bottom: 20px;
    text-indent: 2em;
}


.novel-image, .novel-video {
    margin: 30px 0;
    border-radius: 4px;
    overflow: hidden;
}

.novel-image img, .novel-video video {
    width: 100%;
    height: auto;
    display: block;
}

.image-caption, .video-caption {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    padding: 10px;
    background-color: #f8f8f8;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    text-indent: 0;
}


.chapter-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.chapter-navigation button {
    padding: 8px 16px;
    background-color: #f0f0f0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

.chapter-navigation button:hover {
    background-color: #e0e0e0;
}

.chapter-indicator {
    font-size: 0.9rem;
    color: #666;
}


.ad-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.ad-popup.show {
    display: flex !important;
}

.ad-content {
    width: 90%;
    max-width: 500px;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 10000;
}

.ad-header {
    padding: 10px 15px;
    background-color: #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
}

.ad-title {
    font-weight: bold;
    color: #333;
}

#ad-timer {
    background-color: #e74c3c;
    color: white;
    padding: 3px 8px;
    border-radius: 50%;
    font-size: 0.8rem;
    min-width: 20px;
    text-align: center;
}

.ad-body {
    padding: 20px;
    text-align: center;
}

.ad-body img {
    max-width: 100%;
    height: auto;
    margin: 15px 0;
    border-radius: 4px;
}

.ad-body p {
    margin-bottom: 15px;
    color: #666;
}

#close-ad-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #4a89dc;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

#close-ad-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

#close-ad-btn:not(:disabled):hover {
    background-color: #3a70c0;
}


@media (max-width: 768px) {
    .novel-container {
        padding: 15px;
    }
    
    .novel-content {
        font-size: 16px;
    }
    
    .chapter-title {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .novel-container {
        padding: 10px;
    }
    
    .novel-content {
        font-size: 15px;
    }
    
    .chapter-title {
        font-size: 1.3rem;
    }
    
    .chapter-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .chapter-navigation button {
        width: 100%;
        margin: 5px 0;
    }
}

.page-navigation {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    background-color: #f8f8f8;
    border-bottom: 1px solid #eee;
}

.nav-btn {
    padding: 10px 20px;
    background-color: #f0f0f0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background-color: #e0e0e0;
}

.nav-btn.active {
    background-color: #4a89dc;
    color: white;
}

.page-content {
    padding: 20px;
}

.time-display {
    text-align: center;
    margin: 10px 0;
    font-size: 0.9rem;
    color: #666;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background-color: #f0f0f0;
    border-radius: 2px;
    margin: 10px 0;
    overflow: hidden;
}

.progress {
    width: 0%;
    height: 100%;
    background-color: #4a89dc;
    transition: width 0.1s linear;
}

.video-container {
    max-width: 800px;
    margin: 0 auto;
}

.video-container video {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
} 