/* 江西古建概览 - 卡片样式优化（允许换行，避免溢出） */
.xm_cszs {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 15px;
}

.xm_cszs li {
    padding: 8px 12px;
    width: calc(50% - 10px);
    box-sizing: border-box;
    transition: all 0.2s;
    font-size: 12px;          /* 略微缩小字体，容纳更多字符 */
    backdrop-filter: blur(2px);
    /* 允许换行 */
    white-space: normal;
    word-break: break-word;   /* 长单词或数字自动换行 */
    line-height: 1.3;
}

.xm_cszs li:hover {
    transform: translateY(-2px);
}

/* 数字样式：不再强制右浮动，用 flex 控制 */
.xm_cszs li span {
    font-weight: bold;
    font-size: 13px;
    margin-left: 8px;
    white-space: nowrap;      /* 数字本身不换行，但整体可以换行 */
}

/* 百分比项内部段落：允许换行，但尽量保持一行 */
.xm_cszs li p {
    margin: 4px 0;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;          /* 允许换行 */
    gap: 6px;
    white-space: normal;
}

.xm_cszs li p span,
.xm_cszs li p cite {
    white-space: nowrap;      /* 数字和百分号不内部换行 */
}

.xm_cszs li p cite {
    font-style: normal;
    margin-left: 2px;
}

/* 前两项（国保、省保等）占满整行，允许换行 */
.xm_cszs li:first-child,
.xm_cszs li:nth-child(2) {
    width: 100%;
    font-weight: bold;
    white-space: normal;
}

.xm_cszs li:first-child span,
.xm_cszs li:nth-child(2) span {
    font-size: 15px;
}

/* 响应式 */
@media (max-width: 800px) {
    .xm_cszs li {
        width: 100%;
    }
}
.xm_cszs li {
    margin-bottom: 12px;          /* 每个条目下方增加间距 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    white-space: nowrap;
}

/* 让条目内的数字稍微右移，与文字分开 */
.xm_cszs li span {
    margin-left: 12px;            /* 增加左侧间距，避免紧贴文字 */
    float: none;                  /* 取消浮动，用 flex 控制 */
}

/* 强制每个条目内部内容不换行 */
.xm_cszs li,
.xm_cszs li * {
    white-space: nowrap;
    overflow: visible;
}

/* 调整前两项（不可移动文物总量等）的样式保持一致 */
.xm_cszs li:first-child,
.xm_cszs li:nth-child(2) {
    width: 100%;
    margin-bottom: 12px;
}
/* 修复百分比项中数字与百分号间距过大的问题 */
.xm_cszs li p {
    gap: 2px !important;      /* 将间距从默认的较大值（如8px）缩小到2px */
}

/* 确保数字和百分号之间无额外外边距 */
.xm_cszs li p span:last-child {
    margin-right: 0 !important;
}
.xm_cszs li p cite {
    margin-left: 0 !important;
    padding-left: 0 !important;
}