/* 只参考配色方案，从 cnruqi.site/css/style.css 提取 */
:root {
    --bg-color: #f2f2f7;
    --text-main: #1d1d1f;
    --text-gray: #86868b;
    --accent: #2997ff;
    --glass-panel: rgba(255, 255, 255, 0.4);
    --glass-border: rgba(255, 255, 255, 0.6);
    --card-bg: rgba(255, 255, 255, 0.85);
    --font-std: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; outline: none; }

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-std);
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

/* --- 背景流光 (参考配色) --- */
.ambient-light {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1; pointer-events: none; overflow: hidden;
    background: #f0f4f8;
}
.blob {
    position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.7;
    animation: float 25s infinite ease-in-out alternate;
}
.blob-1 { top: -10%; left: -10%; width: 600px; height: 600px; background: #e0c3fc; animation-delay: 0s; }
.blob-2 { bottom: -10%; right: -5%; width: 500px; height: 500px; background: #8ec5fc; animation-delay: -5s; }
.blob-3 { top: 30%; left: 40%; width: 400px; height: 400px; background: #ffdee9; animation-delay: -10s; }
@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, 60px) scale(1.1); }
}

/* --- 主轮播容器 --- */
.carousel-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 40px;
}

/* --- 图片区域 --- */
.image-wrapper {
    width: 90%;
    max-width: 1200px;
    height: 70vh;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    background: white;
}

#currentImage {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
    transition: opacity 0.5s ease;
}

.image-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: none;
    pointer-events: none;
}

/* --- 控制区域 --- */
.controls-wrapper {
    width: 90%;
    max-width: 1200px;
    margin-top: 30px;
}

/* 进度指示器 */
.progress-indicator {
    width: 100%;
    height: 4px;
    background: rgba(0,0,0,0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress-bar {
    height: 100%;
    background: var(--accent);
    width: 0%;
    transition: width 0.1s linear;
}

/* 图片信息 */
.image-info {
    text-align: center;
    margin-bottom: 20px;
}

.image-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.image-counter {
    font-size: 16px;
    color: var(--text-gray);
    font-weight: 500;
}

/* 控制按钮 */
.control-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--card-bg);
    color: var(--text-main);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    background: white;
}

.btn:active {
    transform: translateY(0);
}

.btn-pause {
    background: var(--accent);
    color: white;
    border: none;
}

.btn-pause:hover {
    background: #1a85ff;
}

/* 自动播放状态 */
.auto-status {
    text-align: center;
    font-size: 13px;
    color: var(--text-gray);
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* --- 暂停状态样式 --- */
.paused .auto-status {
    color: var(--text-gray);
    opacity: 0.6;
}

.paused .btn-pause {
    background: var(--text-gray);
}

/* --- 移动端适配 --- */
@media screen and (max-width: 768px) {
    .carousel-container {
        padding: 20px;
    }
    
    .image-wrapper {
        width: 95%;
        height: 60vh;
    }
    
    .image-title {
        font-size: 24px;
    }
    
    .control-buttons {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .btn {
        padding: 10px 18px;
        font-size: 13px;
    }
}

/* --- 图片切换动画 --- */
.fade-out {
    opacity: 0;
}

.fade-in {
    opacity: 1;
}

/* --- 加载状态 --- */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-gray);
}

/* --- 错误状态 --- */
.error {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: #ff3b30;
    text-align: center;
    padding: 40px;
}

.error h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.error p {
    font-size: 14px;
    color: var(--text-gray);
}
