
/* 全宽容器样式，包裹整个轮播图 */
.fullwidth-container {
    display: flex;  
    justify-content: center; 
    align-items: center; 
    position: relative;
    width: 100%;
    height: 380px; 
    border-radius: 15px; 
    max-width: 48rem; 
    overflow: hidden; 
    margin: 1rem 1.5rem 1rem 1.5rem; 
}

/* 高斯模糊背景样式 */
.background-blur {
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(20px); 
    z-index: -1; 
    transition: background-image 0.5s ease-in-out; 
}

/* 轮播图容器样式 */
.carousel-container {
    width: 100%;
    max-width: 700px; 
    margin: 1rem;
    position: relative; 
    border-radius: 15px; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); 
}
                
/* 轮播图样式 */
.carousel {
    position: relative;
    overflow: hidden;
    border-radius: 15px; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); 
}

/* 轮播图内部滑动容器样式 */
.carousel-slides {
    display: flex;
    transition: transform 0.5s ease-in-out; 
}

/* 每个轮播项的样式 */
.carousel-slide {
    min-width: 100%;
    height: 350px; 
    background-size: cover;
    background-position: center;
    border-radius: 15px; 
}

/* 进度条样式 */
.progress-bar {
    position: absolute;
    bottom: 0; 
    left: 50%;
    transform: translateX(-50%);
    width: 100%; 
    height: 4px;
    background-color: #ddd;
    overflow: hidden;
    border-radius: 0 0 15px 15px; 
}

/* 进度条内滑动指示条样式 */
.slider {
    position: absolute;
    height: 100%;
    background-color: #ff5733; 
    transition: left 0.5s ease-in-out; 
    border-radius: 2px;
}


/* 登录信息样式 */
/* 整体容器样式 */
.news-container {
    width: 350px;
    height: 380px;
    margin: 0 auto;
    margin-top: 1rem;
    background-color: #fff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 用户头像样式 */
.user-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

/* 用户信息样式 */
.user-info .user-name {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

/* 登录和注册按钮样式 */
.login-buttons {
    display: flex;
    /* 使用flex布局 */
    justify-content: center;
    /* 水平居中 */
    margin-bottom: 20px;
    gap: 10px;
    /* 增加按钮之间的间距 */
}

.login-buttons a {
    text-decoration: none;
    color: #fff;
}

.user-center-btn,
.logout-btn,
.login-btn,
.register-btn {
    width: 130px;
    padding: 10px;
    margin: 0;
    /* 按钮间距 */
    border: none;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-btn {
    background-color: #4CAF50;
    color: white;
}

.register-btn {
    background-color: #2196F3;
    color: white;
}

.user-center-btn {
    background-color: #FF9800;
    color: white;
}

.logout-btn {
    background-color: #f44336;
    color: white;
}

/* 按钮悬停效果 */
.user-center-btn:hover,
.logout-btn:hover,
.login-btn:hover,
.register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.register-btn:hover {
    background-color: #1976D2;
}

.login-btn:hover {
    background-color: #45a049;
}

.user-center-btn:hover {
    background-color: #FF7043;
}

.logout-btn:hover {
    background-color: #e53935;
}

/* 美化横线 */
.divider {
    width: 100%;
    height: 5px;
    background-color: #e0e0e0;
    margin: 10px 0;
}

/* 享受权益部分 */
.benefits h3 {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.benefits-row {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    margin-top: 10px;
}

.benefits-row ul {
    list-style-type: none;
    padding: 0;
    font-size: 1rem;
    color: #555;
}

.benefits-row li {
    margin: 10px 0;
    display: flex;
    align-items: center;
}

.benefits-row li i {
    margin-right: 10px;
    font-size: 1.3rem;
    color: rgb(102, 206, 251);
    /* 图标颜色 */
}

/* 首页公告容器样式 */
.announce-bar {
    display: flex;
    align-items: center;
    background-color: #f2f2f2;
    padding: 10px;
    border-radius: 5px;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.announce-icon {
    font-size: 24px;
    color: #2196F3;
    margin-right: 15px;
}
.announce-text-wrapper {
    flex-grow: 1;
    overflow: hidden; 
}
.announce-text {
    flex-grow: 1;
    overflow: hidden;
    white-space: nowrap; 
    animation: scroll-left 30s linear infinite; 
}
@keyframes scroll-left {
    0% {
        transform: translateX(100%); 
    }
    100% {
        transform: translateX(-100%); 
    }
}
