/* 公告区域样式 */
.announcement-container {
    max-width: 1200px;
    margin: 20px auto 0;
    padding: 0 15px;
}

.announcement-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: relative;
    border: 1px solid #eee;
    padding: 0;
    display: flex;
    flex-direction: row;
    transition: all 0.3s ease;
    min-height: 100px; /* 确保最小高度 */
}

.announcement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-color: #6366f1;
}

/* 左侧区域 - 标题和副标题 */
.announcement-header {
    width: 280px;
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    flex-shrink: 0; /* 防止左侧区域被压缩 */
}

/* 垂直红色线条 */
.announcement-title-bar {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.red-bar {
    display: inline-block;
    width: 4px;
    height: 24px;
    background: linear-gradient(to bottom, #8388f9, #6366f1, #4f46e5);
    margin-right: 10px;
    border-radius: 0;
}

/* 标题样式 */
.announcement-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.3;
}

/* 副标题样式 */
.announcement-subtitle {
    font-size: 14px;
    color: #666;
    margin-top: 15px;
    padding-left: 2px;
    display: flex;
    align-items: center;
}

.announcement-subtitle::before {
    content: "";
    display: inline-block;
    width: 15px;
    height: 15px;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="%23666" d="M447.1 0h-384c-35.25 0-64 28.75-64 63.1v287.1c0 35.25 28.75 63.1 64 63.1h96v83.98c0 9.836 11.02 15.55 19.12 9.7l124.9-93.68h144c35.25 0 64-28.75 64-63.1V63.1C511.1 28.75 483.2 0 447.1 0zM464 352c0 8.75-7.25 16-16 16h-160l-96 72v-72H64c-8.75 0-16-7.25-16-16V64c0-8.75 7.25-16 16-16h384c8.75 0 16 7.25 16 16V352z"/></svg>');
    background-repeat: no-repeat;
    background-size: contain;
    margin-right: 6px;
    opacity: 0.8;
}

/* 右侧内容区域 */
.announcement-content {
    flex: 1;
    display: flex;
    align-items: center; /* 垂直居中 */
    justify-content: flex-start; /* 左对齐 */
    background-color: #fff;
    min-height: 100px; /* 确保最小高度 */
    max-width: calc(100% - 280px); /* 确保右侧区域不会被挤压 */
    position: relative; /* 为绝对定位的子元素提供参考 */
}

/* 轮播样式 */
.announcement-carousel {
    width: 100%;
    height: 100%; /* 确保占满整个内容区域 */
    display: flex;
    align-items: center; /* 垂直居中 */
    justify-content: flex-start; /* 左对齐 */
}

.carousel-item {
    width: 100%;
    display: flex;
    align-items: center; /* 垂直居中 */
    justify-content: flex-start; /* 左对齐 */
}

.announcement-icon {
    display: none; /* 隐藏图标 */
}

.announcement-text {
    width: 100%;
    white-space: pre-wrap !important; /* 保留空格和换行，强制换行 */
    line-height: 1.6;
    color: #333;
    text-align: left; /* 文字左对齐 */
    word-wrap: break-word; /* 允许长单词换行 */
    word-break: break-word; /* 在单词内换行 */
    overflow-wrap: break-word; /* 确保长单词能够换行 */
    padding: 15px 20px 15px 30px; /* 增加左侧内边距 */
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* 左对齐 */
    min-height: 100px;
}

/* 响应式样式 */
@media (max-width: 768px) {
    .announcement-card {
        flex-direction: column;
    }
    
    .announcement-header {
        width: 100%;
        padding: 20px;
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .announcement-content {
        padding: 0;
        max-width: 100%; /* 在移动设备上占满宽度 */
        min-height: 120px; /* 确保在移动设备上有足够的高度 */
    }
    
    .announcement-text {
        min-height: 120px;
    }
}

@media (max-width: 576px) {
    .announcement-header {
        padding: 15px;
    }
    
    .announcement-title {
        font-size: 20px;
    }
    
    .announcement-subtitle {
        font-size: 14px;
        margin-left: 14px;
    }
    
    .announcement-text {
        font-size: 15px;
        padding: 10px 15px;
    }
} 