.sub-sidebar-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: 40px;
    /* 缩进对齐 */
}

.sub-sidebar-menu.show {
    max-height: 150px;
    /* 足够容纳所有子项 */
}

.rotate {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

/* 子菜单项样式 */
.sub-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    font-size: 14px;
    color: #333;
    cursor: pointer;
}

/* 橙色三角形图标 */
.sub-item::before {
    content: "";
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 12px solid #ff8c00;
    /* 橙色 */
}

.sub-item:hover {
    background-color: #fff9f0;
    /* 浅橙色背景，和主题色呼应 */
    transform: translateY(-2px);
    /* 轻微上浮 */
    box-shadow: 0 4px 12px rgba(247, 148, 29, 0.12);
    /* 柔和阴影 */
    border-color: #f7941d;
    /* 虚线边框变成主题色 */
}

/* 二维码卡片样式 */
.qrcode-card {
    width: 200px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    margin-left: 8px;
}

/* 顶部橙色栏 */
.card-header {
    background-color: #ff8c00;
    color: #fff;
    text-align: center;
    padding: 20px;
    font-size: 14px;
    font-weight: 500;
}

/* 二维码区域 */
.qrcode-area {
    margin-left: 15px;
    padding: 20px;
    text-align: center;
}

.qrcode-img {
    width: 100%;
    height: auto;
    display: block;
}

/* 底部橙色栏（电话） */
.card-phone {
    background-color: #ff8c00;
    color: #fff;
    padding: 15px 20px;
    font-size: 14px;
    border-radius: 0 0 8px 8px;
    margin: 0 10px 20px;
}

/* 服务时间 */
.card-service {
    text-align: center;
    padding: 0 20px 20px;
    font-size: 14px;
    color: #333;
}

.alert-container {
    width: 100%;
    margin-bottom: 20px;
}

/* 预警条目容器 */
.alert-item {
    display: flex;
    gap: 20px;
    padding: 20px 20px;
    background-color: #fff;
    border-bottom: 1px dashed #ccc;
    align-items: flex-start;
    /* 新增：过渡动画 + 悬浮基础样式 */
    transition: all 0.3s ease;
    padding: 20px 12px;
    /* 调整内边距，让悬浮背景更美观 */
    margin-bottom: 4px;
    /* 避免悬浮时和下一条目重叠 */
}

.alert-item:last-child {
    border-bottom: none;
}

/* 新增：鼠标悬浮时的效果 */
.alert-item:hover {
    background-color: #fff9f0;
    /* 浅橙色背景，和主题色呼应 */
    transform: translateY(-2px);
    /* 轻微上浮 */
    box-shadow: 0 4px 12px rgba(247, 148, 29, 0.12);
    /* 柔和阴影 */
    border-color: #f7941d;
    /* 虚线边框变成主题色 */
    cursor: pointer;
}

/* 左侧图片区 */
.alert-img {
    width: 140px;
    flex-shrink: 0;
}

.alert-tag {
    background-color: #f7941d;
    color: #fff;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 3px 3px 0 0;
    text-align: center;
    font-weight: bold;
}

.alert-img img {
    width: 100%;
    height: 140px;
    display: block;
    border: 1px solid #eee;
    border-top: none;
}

/* 右侧内容区 */
.alert-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.alert-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.alert-title {
    font-size: 22px;
    font-weight: bold;
    color: #222;
}

.alert-date {
    font-size: 14px;
    color: #666;
}

.alert-desc {
    font-size: 14px;
    color: #444;
    line-height: 1.6;
}

.alert-more {
    align-self: flex-start;
}

.alert-more button {
    background-color: #fff;
    color: #f7941d;
    border: 1px solid #f7941d;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.alert-more button:hover {
    background-color: #f7941d;
    color: #fff;
}

/* 卡片容器 - 四列布局 */
.EncyclopediaCard-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

/* 卡片基础样式 */
.EncyclopediaCard {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

/* 卡片悬浮效果 */
.EncyclopediaCard:hover {
    background-color: #ff8c00;
    color: #fff !important;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* 卡片图片区 */
.EncyclopediaCard-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* 卡片内容区 */
.EncyclopediaCard-content {
    padding: 24px;
}

.EncyclopediaCard-more {
    color: #fff;
}

.EncyclopediaCard-more::after {
    border-color: #fff;
}

/* 卡片标题 */
.EncyclopediaCard-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
    line-height: 1.4;
}

/* 卡片描述 */
.EncyclopediaCard-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-all;
}

/* 查看详情按钮 */
.EncyclopediaCard-more {
    font-size: 16px;
    color: #333;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid #eee;
    width: 100%;
}

.EncyclopediaCard-more::after {
    content: "";
    width: 16px;
    height: 16px;
    border-right: 2px solid #999;
    border-top: 2px solid #999;
    transform: rotate(45deg);
    margin-left: auto;
}

/* 悬浮时文字变白 */
.EncyclopediaCard:hover .EncyclopediaCard-title,
.EncyclopediaCard:hover .EncyclopediaCard-desc,
.EncyclopediaCard:hover .EncyclopediaCard-more {
    color: #fff;
}

.EncyclopediaCard:hover .EncyclopediaCard-more {
    border-top-color: rgba(255, 255, 255, 0.3);
}

.EncyclopediaCard:hover .EncyclopediaCard-more::after {
    border-right-color: #fff;
    border-top-color: #fff;
}

/* 整体容器：左大右小布局 */
.case-container {
    display: grid;
    grid-template-columns: 48% 48%;
    gap: 4%;
    align-items: start;
    background-color: #fff;
    padding: 15px 20px;
    margin-bottom: 20px;
}

/* 左侧大卡片 */
.case-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.case-main-title {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    line-height: 1.4;
}

.case-main-desc {
    font-size: 14px;
    color: #555;
    line-height: 1.8;
}

.case-main-date {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
}

.case-main-date::before {
    content: "";
    width: 4px;
    height: 16px;
    background-color: #ff8c00;
    display: inline-block;
}

.case-main-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
}

/* 右侧列表 */
.case-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.case-item {
    display: grid;
    grid-template-columns: 40% 58%;
    gap: 2%;
    align-items: start;
    padding-bottom: 24px;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.case-item:last-child {
    border-bottom: none;
}

.case-item:hover {
    transform: translateX(4px);
}

.case-item-img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
}

.case-item-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.case-item-title {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    line-height: 1.4;
}

.case-item-desc {
    font-size: 12px;
    color: #555;
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-all;
}

.case-item-date {
    font-size: 12px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
}

.case-item-date::before {
    content: "";
    width: 4px;
    height: 14px;
    background-color: #ff8c00;
    display: inline-block;
}

.more {
    text-align: right;
    /* 鼠标放上去显示小手 */
    cursor: pointer;
}

.more:hover {
    color: #ff8c00;
}

@media (max-width: 1024px) {
    .case-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .case-main-img {
        height: 300px;
    }

    .case-item {
        grid-template-columns: 35% 63%;
    }
}

@media (max-width: 1200px) {
    .EncyclopediaCard-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .alert-item {
        flex-direction: column;
    }

    .alert-img {
        width: 100%;
    }

    .alert-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .EncyclopediaCard-container {
        grid-template-columns: 1fr;
    }

    .EncyclopediaCard-img {
        height: 220px;
    }

    .case-item {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .case-item-img {
        height: 200px;
    }
}