/* 微相册样式 - 终极居中版 🚀 */
.photo-album {
    /* 强制占满可用宽度，居中的基础 */
    width: 100%;
    /* 上下间距，左右自动居中 */
    margin: 30px auto;
    /* 子元素水平居中 */
    text-align: center;
    /* 防止被其他样式干扰 */
    display: block;
    float: none !important;
}

.album-container {
    position: relative;
    width: 600px;
    height: 400px;
    /* 核心居中！加!important强制生效 */
    margin: 0 auto !important;
    /* 绝对不允许浮动 */
    float: none !important;
    /* 不被其他样式挤压 */
    padding: 0 !important;
    border: 5px double #9932CC;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(171, 46, 255, 0.5);
    overflow: hidden;
}

.album-img {
    width: 600px;
    height: 400px;
    /* 图片本身居中 */
    margin: 0 auto !important;
    object-fit: cover;
    display: block !important;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 动画不变 */
.album-img.fade-in {
    animation: fadeInScale 0.8s ease forwards;
}

@keyframes fadeInScale {
    0% { opacity: 0; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

.album-img {
    /* 保留原来的样式 */
    cursor: pointer; /* 鼠标变成小手，提示可点击 */
}

/* 按钮不变（高度30px） */
.album-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 30px;
    background-color: #800080;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 0 8px rgba(0,0,0,0.3);
    z-index: 10;
    transition: background-color 0.3s ease;
}

.album-btn.prev { left: 15px; }
.album-btn.next { right: 15px; }
.album-btn:hover { background-color: #900090; }

/* 指示器不变 */
.album-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.indicator-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #E0AEFF;
    border: 1px solid #9932CC;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator-dot.active {
    background-color: #9932CC;
    transform: scale(1.2);
}