* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

/* 书籍选择页面样式 */
.book-selection {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 20px;
    overflow-y: auto;
}

.selection-header {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInDown 0.8s ease;
}

.selection-header h1 {
    font-size: 2.5em;
    color: white;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.selection-header p {
    font-size: 1.2em;
    color: rgba(255, 255, 255, 0.8);
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* 移动端适配更多书籍 */
@media (max-width: 768px) {
    .books-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 15px;
        max-width: 100%;
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .books-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 12px;
        padding: 0 5px;
    }
}

.book-card {
    perspective: 1000px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.book-card:hover {
    transform: translateY(-5px);
}

.book-cover {
    width: 100%;
    height: 220px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 15px;
    color: white;
    overflow: hidden;
}

.book-cover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}

.book-spine {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.book-title {
    position: relative;
    z-index: 3;
    text-align: center;
}

.book-title h3 {
    font-size: 1.3em;
    margin-bottom: 5px;
    font-weight: 600;
}

.book-title p {
    font-size: 0.9em;
    opacity: 0.9;
}

/* 不同书籍的封面样式 */
.nature-cover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.city-cover {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.culture-cover {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.art-cover {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.life-cover {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.travel-cover {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

.science-cover {
    background: linear-gradient(135deg, #00d2ff 0%, #3a47d5 100%);
}

.history-cover {
    background: linear-gradient(135deg, #f77062 0%, #fe5196 100%);
}

.food-cover {
    background: linear-gradient(135deg, #ff6a88 0%, #ff99ac 100%);
}

.sports-cover {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.tech-cover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.poetry-cover {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.philosophy-cover {
    background: linear-gradient(135deg, #8e2de2 0%, #4a00e0 100%);
}

/* 书籍阅读页面样式 */
.book-reader {
    min-height: 100vh;
    display: none;
}

.reader-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: #667eea;
    font-size: 1em;
    cursor: pointer;
    padding: 8px 15px;
    border-radius: 20px;
    transition: background 0.3s ease;
}

.back-btn:hover {
    background: rgba(102, 126, 234, 0.1);
}

.book-title-header {
    flex: 1;
    text-align: center;
    color: #333;
    font-size: 1.2em;
    font-weight: 500;
}

/* 页面切换动画 */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.book-reader {
    animation: fadeIn 0.5s ease;
}

/* 音乐控制器样式 */
.music-controller {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 100;
    transition: all 0.3s ease;
}

.music-controller:hover {
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

.music-btn {
    width: 45px;
    height: 45px;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    fill: white;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.music-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.5);
}

.music-btn:active {
    transform: scale(0.95);
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    fill: #667eea;
}

.volume-slider {
    width: 80px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(102, 126, 234, 0.2);
    border-radius: 2px;
    outline: none;
    transition: background 0.3s ease;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #667eea;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.5);
}

.volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #667eea;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

.music-info {
    font-size: 0.9em;
    color: #667eea;
    font-weight: 500;
    white-space: nowrap;
}

/* 音乐播放状态图标 */
.music-playing #musicIcon {
    animation: musicPulse 2s infinite;
}

@keyframes musicPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* 移动端音乐控制器适配 */
@media (max-width: 768px) {
    .music-controller {
        bottom: 80px;
        padding: 10px 15px;
        gap: 12px;
    }
    
    .music-btn {
        width: 40px;
        height: 40px;
    }
    
    .volume-slider {
        width: 60px;
    }
    
    .music-info {
        font-size: 0.8em;
    }
}

@media (max-width: 480px) {
    .music-controller {
        bottom: 70px;
        padding: 8px 12px;
        gap: 10px;
    }
    
    .music-btn {
        width: 35px;
        height: 35px;
    }
    
    .volume-slider {
        width: 50px;
    }
    
    .music-info {
        display: none;
    }
}

/* 音乐波形动画效果 */
.music-wave {
    display: none;
    align-items: center;
    gap: 2px;
    margin-left: 10px;
}

.music-playing .music-wave {
    display: flex;
}

.music-wave span {
    width: 3px;
    height: 16px;
    background: #667eea;
    border-radius: 2px;
    animation: waveAnimation 1.2s infinite ease-in-out;
}

.music-wave span:nth-child(1) { animation-delay: 0s; }
.music-wave span:nth-child(2) { animation-delay: 0.2s; }
.music-wave span:nth-child(3) { animation-delay: 0.4s; }

@keyframes waveAnimation {
    0%, 80%, 100% {
        height: 8px;
    }
    40% {
        height: 16px;
    }
}

/* 音频文件说明样式 */
.audio-notice {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.notice-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.notice-content h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.notice-content p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.notice-content ul {
    text-align: left;
    color: #555;
    margin-bottom: 20px;
    padding-left: 20px;
}

.notice-content li {
    margin-bottom: 8px;
}

.notice-content button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1em;
    transition: transform 0.3s ease;
}

.notice-content button:hover {
    transform: scale(1.05);
}

.container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.book-container {
    position: relative;
    width: 90vw;
    max-width: 400px;
    height: 70vh;
    max-height: 600px;
    perspective: 1200px;
    margin-bottom: 20px;
}

.book {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.page {
    position: absolute;
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backface-visibility: hidden;
    transform-origin: left center;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

/* 翻页电子画册样式 */
.album-page {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transform-style: preserve-3d;
    position: relative;
}

.album-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.8) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.album-page:hover::before {
    opacity: 1;
}

.album-page-shadow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.1) 0%, transparent 10%, transparent 90%, rgba(0,0,0,0.1) 100%);
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.album-page:hover .album-page-shadow {
    opacity: 0.3;
}

/* 画册封面样式 */
.album-cover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.album-cover::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: albumShimmer 3s infinite;
}

@keyframes albumShimmer {
    0% {
        transform: rotate(0deg) translateX(-100%);
    }
    50% {
        transform: rotate(180deg) translateX(100%);
    }
    100% {
        transform: rotate(360deg) translateX(-100%);
    }
}

.album-cover-image {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.album-cover-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    animation: albumCoverLoad 1s ease-out;
}

@keyframes albumCoverLoad {
    from {
        opacity: 0;
        transform: scale(1.1);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.album-cover-placeholder {
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    backdrop-filter: blur(10px);
    border: 2px dashed rgba(255,255,255,0.3);
}

.album-cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.6) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 20px;
    text-align: center;
}

.album-title {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 4px 8px rgba(0,0,0,0.4);
    animation: titleFadeIn 1s ease-out 0.5s both;
}

.album-subtitle {
    font-size: 1.2em;
    opacity: 0.9;
    text-shadow: 1px 2px 4px rgba(0,0,0,0.3);
    animation: subtitleFadeIn 1s ease-out 0.7s both;
}

@keyframes titleFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes subtitleFadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 0.9;
        transform: translateY(0);
    }
}

/* 画册背面封面 */
.album-backcover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.album-backcover-content {
    text-align: center;
    color: white;
    padding: 30px;
}

.album-backcover-image {
    width: 120px;
    height: 120px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.2);
}

.album-backcover-title {
    font-size: 2em;
    margin-bottom: 15px;
    font-weight: 600;
}

.album-backcover-subtitle {
    font-size: 1.1em;
    opacity: 0.9;
}

/* 画册内容页面 */
.album-page-content {
    width: 100%;
    height: 100%;
    padding: 25px;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 3;
}

.album-page-header {
    text-align: center;
    margin-bottom: 20px;
}

.album-page-title {
    font-size: 1.8em;
    color: #333;
    font-weight: 600;
    margin-bottom: 10px;
    position: relative;
}

.album-page-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    margin: 10px auto 0;
    border-radius: 2px;
}

.album-image-container {
    width: 100%;
    flex: 1;
    margin: 15px 0;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.album-image-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.2);
}

.album-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    animation: albumImageReveal 0.8s ease-out;
}

@keyframes albumImageReveal {
    from {
        opacity: 0;
        transform: scale(1.05);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.album-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.3) 100%);
    pointer-events: none;
}

.album-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2em;
    font-weight: 500;
    text-shadow: 1px 2px 4px rgba(0,0,0,0.3);
}

.album-placeholder-text {
    background: rgba(255,255,255,0.1);
    padding: 10px 20px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.album-page-text {
    margin-top: 15px;
}

.album-description {
    font-size: 1em;
    line-height: 1.6;
    color: #555;
    text-align: justify;
    background: rgba(255,255,255,0.8);
    padding: 15px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* 画册翻页动画 */
.album-page-flip-animation {
    animation: albumPageFlip 0.85s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    transform-origin: left center;
}

/* 翻页特效层 */
.album-page-flip-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: 30;
    animation: flipOverlayPulse 0.85s ease-out forwards;
}

@keyframes flipOverlayPulse {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    50% {
        opacity: 0.3;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1.1);
    }
}

/* 页面进入动画 */
.album-page-coming {
    animation: albumPageComing 0.4s ease-out forwards;
    transform-origin: right center;
}

@keyframes albumPageComing {
    from {
        opacity: 0;
        transform: rotateY(90deg) scale(0.9);
    }
    to {
        opacity: 1;
        transform: rotateY(0deg) scale(1);
    }
}

@keyframes albumPageFlip {
    0% {
        transform: rotateY(0deg) scale(1);
        z-index: 15;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }
    25% {
        transform: rotateY(-45deg) scale(0.95);
        z-index: 20;
        box-shadow: -5px 10px 40px rgba(0, 0, 0, 0.3);
    }
    50% {
        transform: rotateY(-90deg) scale(0.9);
        z-index: 25;
        box-shadow: -10px 10px 50px rgba(0, 0, 0, 0.4);
    }
    75% {
        transform: rotateY(-135deg) scale(0.95);
        z-index: 20;
        box-shadow: -5px 10px 40px rgba(0, 0, 0, 0.3);
    }
    100% {
        transform: rotateY(-180deg) scale(1);
        z-index: 5;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }
}

/* 页面显示动画 */
.album-page-reveal {
    animation: albumPageReveal 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes albumPageReveal {
    from {
        opacity: 0;
        transform: translateX(20px) scale(0.95);
        filter: blur(2px);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
        filter: blur(0);
    }
}

.page-content {
    width: 100%;
    height: 100%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow-y: auto;
}

.cover-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.back-cover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    color: white;
}

.page h1 {
    font-size: 2.5em;
    margin-bottom: 15px;
    font-weight: 300;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #333;
    font-weight: 300;
}

.cover-page h1,
.back-cover h2 {
    color: white;
}

.page p {
    font-size: 1.1em;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
}

.cover-page p,
.back-cover p {
    color: rgba(255, 255, 255, 0.9);
}

.image-container {
    width: 100%;
    margin: 20px 0;
    position: relative;
}

.page-image {
    width: 100%;
    height: 220px;
    border-radius: 15px;
    object-fit: cover;
    object-position: center;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.15),
        inset 0 0 0 1px rgba(255, 255, 255, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: imageLoad 0.8s ease-out;
    display: block;
    visibility: visible;
    filter: brightness(1.05) contrast(1.1) saturate(1.1);
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.page-image:hover {
    transform: scale(1.03) translateY(-5px);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(102, 126, 234, 0.3),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    border: 3px solid rgba(102, 126, 234, 0.4);
    filter: brightness(1.1) contrast(1.15) saturate(1.2);
    animation: imageHoverPulse 0.6s ease-out;
}

.image-placeholder {
    width: 100%;
    height: 220px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2em;
    font-weight: 600;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.15),
        inset 0 0 0 1px rgba(255, 255, 255, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.8);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-container.image-error .image-placeholder {
    animation: none;
}

/* 封面图片样式 */
.cover-image {
    width: 100px;
    height: 100px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    margin: 20px auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.cover-image img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    animation: imageLoad 0.8s ease-out;
}

.cover-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.back-cover-image {
    width: 100px;
    height: 100px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    margin: 20px auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 图片加载动画 */
@keyframes imageLoad {
    from {
        opacity: 0;
        transform: scale(0.9) rotate(-2deg);
        filter: blur(4px);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
        filter: blur(0);
    }
}

@keyframes imageHoverPulse {
    0%, 100% {
        transform: scale(1.03) translateY(-5px);
    }
    50% {
        transform: scale(1.05) translateY(-7px);
    }
}

/* 图片加载状态 */
.image-loading {
    position: relative;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* 错误状态样式 */
.image-error {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    border: 3px solid rgba(255, 255, 255, 0.6);
    box-shadow: 
        0 8px 25px rgba(255, 107, 107, 0.3),
        inset 0 0 0 1px rgba(255, 255, 255, 0.4);
    animation: errorPulse 2s infinite;
}

@keyframes errorPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.02);
        opacity: 0.9;
    }
}

.image-error .image-placeholder span::before {
    content: "⚠️ ";
    margin-right: 8px;
    font-size: 1.3em;
    animation: errorIconBounce 1.5s infinite;
}

@keyframes errorIconBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

.cover-image,
.back-cover-image {
    width: 100px;
    height: 100px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    margin: 20px auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.navigation {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    fill: #667eea;
}

.nav-btn:hover:not(:disabled) {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.page-indicator {
    color: white;
    font-size: 1.1em;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.2);
    padding: 10px 20px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.page.flipped {
    transform: rotateY(-180deg);
}

.page.current {
    z-index: 10;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .book-container {
        width: 85vw;
        height: 65vh;
        max-height: 500px;
    }
    
    .page-content {
        padding: 20px;
    }
    
    .page h1 {
        font-size: 2em;
    }
    
    .page h2 {
        font-size: 1.5em;
    }
    
    .page p {
        font-size: 1em;
    }
    
    .image-placeholder {
        height: 150px;
    }
    
    .navigation {
        gap: 15px;
    }
    
    .nav-btn {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .book-container {
        width: 80vw;
        height: 60vh;
        max-height: 450px;
    }
    
    .page-content {
        padding: 15px;
    }
    
    .page h1 {
        font-size: 1.8em;
    }
    
    .page h2 {
        font-size: 1.3em;
    }
    
    .page p {
        font-size: 0.9em;
    }
    
    .image-placeholder {
        height: 120px;
    }
}

/* 传统翻页动画（保留兼容性） */
@keyframes pageFlip {
    0% {
        transform: rotateY(0deg);
        z-index: 10;
    }
    50% {
        transform: rotateY(-90deg);
        z-index: 20;
    }
    100% {
        transform: rotateY(-180deg);
        z-index: 1;
    }
}

.page-flip-animation {
    animation: pageFlip 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* 翻页电子画册专属翻页动画 */
@keyframes albumPageFlip {
    0% {
        transform: rotateY(0deg) scale(1);
        z-index: 15;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }
    25% {
        transform: rotateY(-45deg) scale(0.95);
        z-index: 20;
        box-shadow: -5px 10px 40px rgba(0, 0, 0, 0.3);
    }
    50% {
        transform: rotateY(-90deg) scale(0.9);
        z-index: 25;
        box-shadow: -10px 10px 50px rgba(0, 0, 0, 0.4);
    }
    75% {
        transform: rotateY(-135deg) scale(0.95);
        z-index: 20;
        box-shadow: -5px 10px 40px rgba(0, 0, 0, 0.3);
    }
    100% {
        transform: rotateY(-180deg) scale(1);
        z-index: 5;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }
}

.album-page-flip-animation {
    animation: albumPageFlip 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    transform-origin: left center;
}

/* 画册页面显示动画 */
@keyframes albumPageReveal {
    0% {
        opacity: 0;
        transform: translateX(30px) scale(0.92);
        filter: blur(3px);
    }
    50% {
        opacity: 0.7;
        transform: translateX(15px) scale(0.96);
        filter: blur(1px);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
        filter: blur(0);
    }
}

.album-page-reveal {
    animation: albumPageReveal 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* 画册容器增强效果 */
.book-container {
    position: relative;
    width: 90vw;
    max-width: 450px;
    height: 70vh;
    max-height: 650px;
    perspective: 1500px;
    margin-bottom: 20px;
}

.book {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #f0f0f0 0%, #ffffff 100%);
    border-radius: 10px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.2),
        inset 0 0 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* 云展网风格的双页布局 */
.page-spread {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    transform-style: preserve-3d;
    perspective: 1500px;
}

/* 云展网风格页面样式 */
.yunzhan-page {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #f8f8f8 0%, #ffffff 5%, #ffffff 95%, #f0f0f0 100%);
    border-radius: 8px;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 0 40px rgba(0, 0, 0, 0.02);
    backface-visibility: hidden;
    transform-origin: center;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: auto;
}

.yunzhan-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50px;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.05) 50%, transparent 100%);
    z-index: 1;
}

/* 云展网封面样式 */
.yunzhan-cover {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
}

.yunzhan-cover-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.yunzhan-cover-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.6;
    animation: yunzhanCoverFade 2s ease-out;
    display: block;
    visibility: visible;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}



.yunzhan-content-img {
    width: 100%;
    height: auto;
    max-height: 300px;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.yunzhan-content-img:hover {
    transform: scale(1.02);
}

@keyframes yunzhanCoverFade {
    from {
        opacity: 0;
        transform: scale(1.1);
    }
    to {
        opacity: 0.4;
        transform: scale(1);
    }
}

.yunzhan-cover-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px;
}

.yunzhan-title {
    font-size: 3em;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 4px 8px rgba(0,0,0,0.3);
    animation: yunzhanTitleSlide 1.2s ease-out;
}

.yunzhan-subtitle {
    font-size: 1.3em;
    opacity: 0.9;
    text-shadow: 1px 2px 4px rgba(0,0,0,0.3);
    animation: yunzhanSubtitleSlide 1.2s ease-out 0.2s both;
}

@keyframes yunzhanTitleSlide {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes yunzhanSubtitleSlide {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 0.9;
        transform: translateY(0);
    }
}

/* 云展网背面封面 */
.yunzhan-backcover {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    color: white;
}

.yunzhan-backcover-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.yunzhan-backcover-content {
    text-align: center;
}

.yunzhan-backcover-icon {
    margin-bottom: 30px;
    animation: yunzhanIconPulse 2s infinite;
}

@keyframes yunzhanIconPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

.yunzhan-backcover-title {
    font-size: 2.5em;
    margin-bottom: 15px;
    font-weight: 600;
}

.yunzhan-backcover-subtitle {
    font-size: 1.2em;
    opacity: 0.8;
}

/* 云展网内容页面 */
.yunzhan-content-wrapper {
    width: 100%;
    height: 100%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    position: relative;
}

.yunzhan-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 20px;
}

.yunzhan-content-title {
    font-size: 2em;
    color: #2c3e50;
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.yunzhan-content-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    border-radius: 2px;
}

.yunzhan-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
    overflow-y: auto;
}

.yunzhan-image-section {
    text-align: center;
    margin: 20px 0;
    position: relative;
    z-index: 10;
}

.yunzhan-content-img {
    width: 100%;
    height: 300px;
    max-height: 300px;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    display: block;
    visibility: visible;
    opacity: 0;
    object-fit: cover;
    object-position: center;
    position: relative;
    z-index: 10;
    background: linear-gradient(135deg, #f0f0f0 0%, #ffffff 100%);
}

.yunzhan-content-img[src]:not([src=""]) {
    opacity: 0;
    transition: opacity 0.6s ease;
}

.yunzhan-content-img.loaded {
    opacity: 1;
}

.yunzhan-content-img:hover {
    transform: scale(1.02);
}

.yunzhan-image-caption {
    margin-top: 10px;
    font-size: 0.9em;
    color: #666;
    font-style: italic;
}

.yunzhan-text-content {
    background: rgba(255,255,255,0.7);
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid #3498db;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.yunzhan-content-text {
    font-size: 1.1em;
    line-height: 1.8;
    color: #333;
    text-align: justify;
    text-indent: 2em;
}

/* 云展网页面装饰 */
.yunzhan-page-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 10;
}

.yunzhan-page-border {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 0;
}

.yunzhan-page-shadow {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(to left, rgba(0,0,0,0.1) 0%, transparent 100%);
    opacity: 0.6;
}

/* 云展网翻页动画 */
.yunzhan-page-flip {
    animation: yunzhanPageFlip 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes yunzhanPageFlip {
    0% {
        transform: rotateY(0deg);
        z-index: 10;
        opacity: 1;
    }
    50% {
        transform: rotateY(90deg);
        z-index: 20;
        opacity: 0.8;
    }
    100% {
        transform: rotateY(180deg);
        z-index: 5;
        opacity: 0.7;
    }
}

/* 云展网响应式设计 */
@media (max-width: 768px) {
    .yunzhan-content-wrapper {
        padding: 25px;
    }
    
    .yunzhan-title {
        font-size: 2.2em;
    }
    
    .yunzhan-content-title {
        font-size: 1.6em;
    }
    
    .yunzhan-content-text {
        font-size: 1em;
        text-indent: 1.5em;
    }
    
    .yunzhan-content-img {
        max-height: 200px;
    }
}

/* 云展网页面加载动画 */
.yunzhan-page {
    animation: yunzhanPageLoad 0.6s ease-out forwards;
}

@keyframes yunzhanPageLoad {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 翻页电子画册样式 */
.album-page {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 8px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    backface-visibility: hidden;
    transform-origin: center;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

/* 专辑封面样式 */
.album-cover {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    position: relative;
}

/* 专辑内容页面 */
.album-page-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 30px;
    position: relative;
}

/* 专辑图片 */
.album-image {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* 专辑图片容器 */
.album-image-container {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.album-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2em;
}

/* 云展网页面悬停效果 */
.yunzhan-page:hover {
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 0 40px rgba(0, 0, 0, 0.03);
}

/* 云展网阅读进度指示器 */
.yunzhan-progress-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9em;
    z-index: 100;
    backdrop-filter: blur(10px);
}

/* 云展网工具栏样式 */
.yunzhan-toolbar {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 100;
}

.yunzhan-tool-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.yunzhan-tool-btn:hover {
    background: white;
    transform: scale(1.1);
}

.yunzhan-tool-btn svg {
    width: 20px;
    height: 20px;
    fill: #333;
}

/* 页码显示优化 */
.navigation .page-indicator {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* 云展网风格的按钮优化 */
.nav-btn {
    background: white;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.nav-btn:hover:not(:disabled) {
    background: #f8f8f8;
    border-color: #3498db;
    transform: translateY(-2px);
}

.nav-btn:disabled {
    background: #f5f5f5;
    border-color: #e0e0e0;
    opacity: 0.5;
}

.book:hover {
    transform: translateY(-5px);
}

/* 触摸反馈 */
.page {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.page:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

/* 页面翻转状态管理 */
.page:not(.current):not(.flipped) {
    z-index: 1;
}

.page.flipped {
    z-index: 1;
}

.page.current {
    z-index: 10;
}

/* 加载动画 */
.book {
    animation: bookAppear 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes bookAppear {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 滚动条美化 */
.page-content::-webkit-scrollbar {
    width: 4px;
}

.page-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 2px;
}

.page-content::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.3);
    border-radius: 2px;
}

.page-content::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.5);
}

/* 画册页面滚动条美化 */
.album-page-content::-webkit-scrollbar {
    width: 3px;
}

.album-page-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.album-page-content::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.4);
    border-radius: 2px;
}

.album-page-content::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.6);
}

/* 画册页面加载动画 */
@keyframes albumPageLoad {
    from {
        opacity: 0;
        transform: translateY(30px) rotateX(15deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

.album-page {
    animation: albumPageLoad 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* 响应式设计增强 */
@media (max-width: 768px) {
    .album-title {
        font-size: 2em;
    }
    
    .album-page-title {
        font-size: 1.5em;
    }
    
    .album-description {
        font-size: 0.9em;
        padding: 12px;
    }
    
    .album-page-flip-animation {
        animation-duration: 0.7s;
    }
    
    .album-page-reveal {
        animation-duration: 0.5s;
    }
}

@media (max-width: 480px) {
    .album-title {
        font-size: 1.8em;
    }
    
    .album-subtitle {
        font-size: 1em;
    }
    
    .album-page-title {
        font-size: 1.3em;
    }
    
    .album-page-content {
        padding: 20px;
    }
    
    .album-description {
        font-size: 0.85em;
        padding: 10px;
    }
    
    .album-image-container {
        height: 180px;
    }
}

/* 触摸反馈优化 */
.album-page {
    cursor: grab;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.3s ease;
}

.album-page:active {
    cursor: grabbing;
    transform: scale(0.98);
}

/* 翻页按钮优化 */
.nav-btn:active {
    transform: scale(0.95);
}

/* 画册状态指示器 */
.album-page-status {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(102, 126, 234, 0.9);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8em;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.album-page:hover .album-page-status {
    opacity: 1;
}

/* 页面加载完成后的光效 */
.album-page::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    transform: rotate(45deg);
    opacity: 0;
    pointer-events: none;
    z-index: 5;
}

.album-page:hover::after {
    animation: albumPageShine 2s ease-in-out;
}

@keyframes albumPageShine {
    0% {
        opacity: 0;
        transform: rotate(45deg) translateY(-100%);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: rotate(45deg) translateY(100%);
    }
}