/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft Yahei", sans-serif;
}

body {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ced4da' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* 页面容器 */
.page-wrapper {
    width: 100%;
    max-width: 850px;
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
    border: 1px solid transparent;
    background-clip: padding-box;
    background-image: linear-gradient(to right, #409eff, #6a5acd);
}

/* 标题区域 */
.page-header {
    padding: 25px 30px;
    background: linear-gradient(90deg, #409eff, #6a5acd);
    color: #fff;
    text-align: center;
}

.page-header h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.page-header p {
    font-size: 14px;
    opacity: 0.9;
}

/* 图片容器 */
.image-container {
    width: 100%;
    height: 680px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f9f9f9;
    overflow: hidden;
    position: relative;
}

/* 图片装饰层 */
.image-decor {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, rgba(64, 158, 255, 0.05) 0%, rgba(106, 90, 205, 0.05) 100%);
    z-index: 1;
}

/* 序列图片样式 */
.sequence-image {
    position: absolute;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: opacity 0.2s ease-in-out;
    z-index: 2;
}

#image-1 { opacity: 1; }
#image-2 { opacity: 0; }

/* 悬浮控制层 */
.hover-controls {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-container:hover .hover-controls {
    opacity: 1;
}

/* 控制按钮样式 */
.control-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.control-btn:hover {
    background-color: rgba(64, 158, 255, 0.9);
    transform: scale(1.05);
}

.small-btn {
    width: 40px;
    height: 40px;
    margin-right: 15px;
}

/* 底部控制栏 */
.control-bar {
    padding: 12px 20px;
    background-color: #2d3436;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

/* 进度条容器 */
.progress-container {
    flex: 1;
    padding: 0 10px;
}

#progress-bar {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: #4a4a4a;
    border-radius: 3px;
    outline: none;
    margin-bottom: 8px;
}

#progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #409eff;
    cursor: pointer;
    transition: all 0.1s ease;
}

#progress-bar::-moz-range-thumb {
    -moz-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #409eff;
    cursor: pointer;
    border: none;
    transition: all 0.1s ease;
}

/* 进度文本 */
.progress-text {
    font-size: 12px;
    color: #b2bec3;
    text-align: right;
}

/* 速度控制区域 */
.speed-control {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 10px;
    border-left: 1px solid #4a4a4a;
}

.control-label {
    color: #b2bec3;
}

.speed-tag {
    color: #409eff;
    background-color: rgba(64, 158, 255, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
}