/* 暖叮读 Custom Styles */

body {
    font-family: -apple-system, "Noto Sans SC", "Microsoft YaHei", sans-serif;
    color: #4A3A2A;
    background-color: #FFFFFF;
}

/* Book Card */
.book-card {
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
}

.book-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1) !important;
}

/* Reader pages */
.reader-page {
    transition: background-color 0.3s;
}

/* Fullscreen reader */
.reader-container:-webkit-full-screen {
    width: 100vw;
    height: 100vh;
}

.reader-container:-webkit-full-screen .reader-toolbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.reader-container:-webkit-full-screen .reader-page {
    height: calc(100vh - 56px);
    padding-top: 56px;
}

/* Buttons */
.btn-primary-custom {
    background-color: #E8834A;
    border-color: #E8834A;
    color: white;
}

.btn-primary-custom:hover {
    background-color: #D0733A;
    border-color: #D0733A;
    color: white;
}

/* Cards */
.card {
    border-radius: 12px;
}

.card-img-top {
    border-radius: 12px 12px 0 0;
}

/* Badge emotion colors */
.badge-emotion {
    font-size: 0.875rem;
    padding: 0.4em 0.8em;
}

/* Loading animation */
@keyframes pulse-glow {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.loading-pulse {
    animation: pulse-glow 1.5s ease-in-out infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .reader-progress-bar {
        width: 100px;
    }
    .card-img-top {
        height: 150px !important;
    }
}
