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

body {
    font-family: 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    color: #333;
    overflow: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('images/mc_0.png') center/cover;
    filter: blur(200px);
    z-index: -1;
    opacity: 0.3;
}

.app-container {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

/* 三页面容器 */
.pages-container {
    width: 300vw;
    height: 100vh;
    display: flex;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateX(-100vw); /* 默认显示中间页面 */
}

/* 单个页面 */
.page {
    width: 100vw;
    height: 100vh;
    flex-shrink: 0;
    overflow: hidden;
}

.page-content {
    width: 100%;
    height: 100%;
    max-width: 440px;
    margin: 0 auto;
    padding: 20px;
    
    /*  强模糊毛玻璃 */
    background: rgba(255, 255, 255, 0.45);       
    backdrop-filter: blur(120px);                   
    -webkit-backdrop-filter: blur(62px);     
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 25px;
    overflow: hidden;
}

/* 让背景图在毛玻璃后面显示 */
.page-content::before {
    content: '';
    position: absolute;
    top: -80px;
    left: -80px; 
    right: -80px; 
    bottom: -80px;
    background: inherit;
    background-size: cover;
    background-position: center;
    z-index: -2;
    filter: blur(40px); 
}

/* 左页面和右页面的内容样式 */
.page-left .page-content,
.page-right .page-content {
    justify-content: flex-start;
    padding: 0;
}
.page-content > * {
    position: relative;
    z-index: 1;
}
/* 紧凑模式顶部 */
.compact-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.compact-bg-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(220, 203, 203, 0.3);
    flex-shrink: 0;
}

.compact-bg-circle .bg-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.compact-title {
    flex: 1;
    margin: 0 15px;
    padding: 0;
    text-align: left;
}

.compact-title h2 {
    font-size: 14px;
    line-height: 1.2;
    font-weight: 400;
    color: #000;
    margin: 0;
}

.compact-play-button {
    flex-shrink: 0;
}

.compact-play-pause-btn {
    background: transparent;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.compact-play-icon {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

/* 页面主要内容区域 */
.page-main-content {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0 20px;
}

.page-header {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
    padding: 20px 0 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.page-header h3 {
    font-size: 20px;
    font-weight: 500;
    color: #000;
    margin: 0;
}

.content-text {
    flex: 1;
    width: 100%;
    padding: 0;
    overflow-y: auto;
    line-height: 1.6;
    color: #262626;
    font-size: 15px;
    text-align: justify;
}

.content-text h1, .content-text h2, .content-text h3 {
    margin: 20px 0 10px 0;
    color: #000;
}

.content-text p {
    margin-bottom: 15px;
}

.content-text strong {
    color: #2476FD;
    font-weight: 600;
}

/* 中间页面特定样式 */
.page-center .page-content {
    justify-content: center;
}

/* 圆形背景图 */
.bg-circle {
    width: 341px;
    height: 341px;
    border-radius: 50%;
    overflow: hidden;
    margin: 20px 0 30px 0;
    box-shadow: 0 0 40px rgba(220, 203, 203, 0.5);
    flex-shrink: 0;
}

.bg-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 标题区域 */
.content-title {
    width: 100%;
    text-align: left;
    margin-bottom: 20px;
    padding: 0 45px;
}

.content-title h2 {
    font-size: 22px;
    font-weight: 500;
    color: #000;
    line-height: 1.4;
    word-wrap: break-word;
}

/* 灵犀AI标签 */
.ai-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 45px;
    margin-bottom: 30px;
    width: 100%;
}

.ai-badge {
    width: 19px;
    height: 19px;
    border-radius: 50%;
    overflow: hidden;
}

.ai-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ai-brand span {
    font-size: 14px;
    font-weight: 400;
    color: #696969;
}

/* 音频进度条 */
.audio-progress {
    width: 100%;
    margin-bottom: 30px;
    padding: 0 46px;
}

.time-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 10px;
    color: #A8A8A8;
}

.progress-container {
    width: 100%;
    height: 4px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

#progress-bar {
    width: 100%;
    height: 40px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(to right, #2476FD 0%, #2476FD var(--progress, 0%), white var(--progress, 0%), white 100%);
    /* border-radius: 10px; */
    cursor: pointer;
    outline: none;
}

#progress-bar::-webkit-slider-track {
    height: 40px;
    background: transparent;
    /* border-radius: 10px; */
}

#progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 16px;
    width: 16px;
    /* border-radius: 50%; */
    background: #2476FD;
    cursor: pointer;
    /* border: 2px solid white; */
    /* box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); */
}

#progress-bar::-moz-range-track {
    height: 40px;
    background: white;
    /* border-radius: 10px; */
    border: none;
}

#progress-bar::-moz-range-progress {
    height: 40px;
    background: #2476FD;
    /* border-radius: 10px; */
    border: none;
}

#progress-bar::-moz-range-thumb {
    height: 16px;
    width: 16px;
    /* border-radius: 50%; */
    background: #2476FD;
    cursor: pointer;
    /* border: 2px solid white; */
    /* box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); */
}

/* 工具栏 */
.toolbar {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 10px;
    margin-bottom: 40px;
    /* padding: 0 15px; */
}

/* 速度控制 */
.speed-control {
    position: relative;
}

.speed-toggle {
    background: transparent;
    border: none;
    border-radius: 50%;
    /* width: 47px; */
    height: 47px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.speed-icon {
    width: 23px;
    height: 23px;
}

.control-btn {
    background: transparent;
    border: none;
    border-radius: 50%;
    width: 47px;
    height: 47px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.control-icon {
    width: 20px;
    height: 20px;
    margin-bottom: 2px;
}

.play-pause-btn {
    background: #FFFFFF;
    border: none;
    border-radius: 50%;
    min-width: 51px;
    min-height: 51px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-icon {
    width: 21px;
    height: 21px;
    object-fit: contain;
}

.like-btn {
    background: transparent;
    border: none;
    border-radius: 50%;
    width: 47px;
    height: 47px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    /* color: #666; */
    font-size: 1.2rem;
}

.like-btn:hover {
    background: transparent;
    border-color: transparent;
}



.like-btn:active {
    background: transparent;
    transform: scale(0.95);
}

/* 速度选项 */
.speed-options {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 20px;
    padding: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
    z-index: 100;
}

.speed-options.active {
    display: flex;
}

.speed-option {
    border: none;
    background: transparent;
    padding: 8px 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    color: #333;
    font-weight: 500;
}

.speed-option:hover {
    background: #f0f0f0;
}

.speed-option.active {
    background: #667eea;
    color: white;
}

/* 跳转按钮的文字 */
.control-btn .btn-text {
    font-size: 0.7rem;
    font-weight: 400;
    margin-top: 2px;
    color: #333;
}

/* 页面指示器 */
.page-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 20px 0;
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.indicator.active {
    background: #2476FD;
    transform: scale(1.2);
}

/* 点赞动画 */
.like-animation {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    color: #ff6b6b;
    opacity: 0;
    z-index: 1000;
    pointer-events: none;
    transition: all 0.6s ease;
}

.like-animation.show {
    opacity: 1;
    animation: likeEffect 3s ease forwards;
}

@keyframes likeEffect {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0.5);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -70%) scale(1);
    }
}

/* 响应式设计 */
@media (max-width: 480px) {
    .page-content {
        max-width: 100%;
        border-radius: 0;
        padding: 15px;
    }
    
    .toolbar {
        gap: 15px;
        padding: 15px 46px;
    }
    
    .bg-circle {
        width: 280px;
        height: 280px;
    }
}

@media (max-width: 360px) {
    .toolbar {
        gap: 10px;
        padding: 10px;
    }
    
    .bg-circle {
        width: 240px;
        height: 240px;
    }
} 
 /* 加载样式*/
 #global-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.6s ease;
}

#global-loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    text-align: center;
    color: #333;
}

.spinner {
    width: 56px;
    height: 56px;
    border: 5px solid #f0f0f0;
    border-top: 5px solid #1890ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 24px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#global-loading p {
    font-size: 17px;
    font-weight: 500;
    margin: 0;
    letter-spacing: 0.5px;
}