/* 公告栏容器 */
.ripro-announcement {
    position: relative;
    margin: 20px auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    max-width: 100%;
}

/* 链接容器 */
.announcement-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.announcement-link:hover .ripro-announcement {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* 鼠标悬停效果 */
.ripro-announcement:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* 背景图片层 */
.announcement-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

/* 毛玻璃效果层 - 基础样式 */
.announcement-glass {
    position: absolute;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 10px;
    z-index: 2;
    transform: translateZ(0); /* 提升性能 */
    transition: all 0.3s ease;
}

/* 内容容器 */
.announcement-content {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    z-index: 3;
    overflow: auto;
}

/* 标题样式 */
.announcement-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 25px 0;
    padding: 0;
    text-align: center;
    color: #333;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    letter-spacing: 1px;
    word-break: break-word;
}

/* 内容文本样式 */
.announcement-text {
    width: 90%;
    text-align: center;
    line-height: 1.8;
    color: #444;
    word-break: break-word;
}

/* 无背景图片时的透明处理 */
.ripro-announcement:not(:has(.announcement-bg)) .announcement-glass {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* 链接状态下的指针样式 */
.announcement-link .ripro-announcement {
    cursor: pointer;
}

/* ================= 响应式设计 ================= */
@media (max-width: 768px) {
    .ripro-announcement {
        width: 95% !important;
        height: auto !important;
        min-height: 200px;
        margin: 15px auto;
    }
    
    .announcement-content {
        padding: 20px 15px;
    }
    
    .announcement-title {
        font-size: 22px;
        margin-bottom: 15px;
    }
    
    .announcement-text {
        width: 100%;
    }
    
    /* 移除悬停效果避免移动端冲突 */
    .ripro-announcement:hover {
        transform: none;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    }
    
    .announcement-link:hover .ripro-announcement {
        transform: none;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    }
}

@media (max-width: 480px) {
    .ripro-announcement {
        border-radius: 8px;
        min-height: 180px;
    }
    
    .announcement-title {
        font-size: 20px;
        margin-bottom: 10px;
    }
    
    .announcement-content {
        padding: 15px 10px;
    }
}

/* 防止内容溢出 */
.announcement-content * {
    max-width: 100%;
}

/* 修复移动端点击延迟 */
.announcement-link {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* 毛玻璃效果增强 */
.announcement-glass {
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.5), 
                0 0 20px rgba(0, 0, 0, 0.1);
}