/* 基础通用样式 - 所有屏幕共享 */
.listmain {
    background-color: #fff;
}

/* 新增 xlTitle 通用样式（党建风格装饰标题） */
.xlTitle {
    position: relative;
    display: block;
    color: #5F5F5F;
    font-weight: 600;
    text-align: center;
    overflow: hidden;
    margin: 1rem 0;
}

.xlTitle::before,
.xlTitle::after {
    content: "";
    position: absolute;
    height: 0.12rem;
    top: 50%;
    width: 30%;
    background-color: #eee; /* 补充分割线颜色，否则看不到 */
}

.xlTitle::before {
    left: 0;
}

.xlTitle::after {
    right: 0;
}

/* 新增 detailsAuthor 责任编辑样式 */
.detailsAuthor {
    width: 100%;
    text-align: right;
    margin: 2rem 0 1rem;
    padding: 1rem 0;
    border-top: 1px solid #eee;
}

.detailsAuthor span {
    font-size: 1.1rem;
    color: #666;
    display: inline-block;
    padding-left: 1.5rem;
    position: relative;
}

.detailsAuthor span::before {
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    /* 补充默认内容，示例为编辑图标（可替换为字体图标） */
}

/* 1. 超小屏 + 小屏 通用样式 (≤40rem / 640px) */
@media (max-width: 40rem) {
    .listmain {
        height: auto;
        background-color: #fff;
        padding: 0 0.8rem;
        margin: 0 auto;
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1), 2px 0 5px rgba(0, 0, 0, 0.1);
    }

    .dqwz {
        width: 100%;
        height: auto;
        line-height: 2.2rem;
        color: #b6070a;
        font-size: 1rem;
        font-weight: 600;
        border-bottom: 1px solid #b6070a;
        margin-bottom: 1rem;
        padding: 0.5rem 0;
    }

    .dqwz a {
        color: #b6070a;
        font-size: 1rem;
        font-weight: 600;
    }

    /* xlTitle 小屏/超小屏通用样式 */
    .xlTitle {
        font-size: 1rem;
        margin: 0.8rem 0;
    }

    .xlTitle::before,
    .xlTitle::after {
        width: 20%;
    }

    /* detailsAuthor 小屏/超小屏通用样式 */
    .detailsAuthor span {
        font-size: 0.9rem;
        padding-left: 1.2rem;
    }

    .detailsAuthor span::before {
        font-size: 1rem;
    }

    /* 详情页小屏/超小屏通用适配 */
    .detailsFr {
        width: 100%;
        height: auto;
        padding: 0.75rem 0;
    }

    .detailsTitle {
        width: 100%;
        text-align: center;
        font-size: 1.5rem;
        color: #333;
        font-weight: 600;
        margin-bottom: 1rem;
        line-height: 1.4;
        padding: 0 0.5rem;
    }

    .detailsInfo {
        width: 100%;
        text-align: center;
        font-size: 0.85rem;
        color: #666;
        margin-bottom: 1.25rem;
        padding: 0.5rem 0;
        border-bottom: 1px solid #eee;
    }

    .detailsInfo span {
        margin: 0 0.3rem;
        display: block;
        margin-bottom: 0.5rem;
    }

    .detailsContent {
        width: 100%;
        font-size: 1.125rem;
        color: #444;
        line-height: 1.7;
        padding: 0 0.25rem;
    }

    .detailsContent p {
        margin-bottom: 1rem;
    }

    .detailsContent img {
        max-width: 88% !important;
        height: auto !important;
        margin-bottom: .625rem;
        cursor: pointer;
    }

    .detailsTag {
        width: 100%;
        margin: 1.25rem 0;
        padding: 0.6rem;
        background-color: #f9f9f9;
        border-left: 0.25rem solid #b6070a;
    }

    .detailsTag h3 {
        font-size: 1rem;
        color: #b6070a;
        margin-bottom: 0.5rem;
        font-weight: 600;
    }

    .detailsTag ul {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .detailsTag li {
        list-style: none;
    }

    .detailsTag li a {
        color: #666;
        font-size: 0.85rem;
        padding: 0.2rem 0.6rem;
        background-color: #fff;
        border: 1px solid #eee;
        border-radius: 1.25rem;
    }

    .detailsShare {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 1rem 0;
        border-top: 1px solid #eee;
        border-bottom: 1px solid #eee;
        margin: 1rem 0 1.5rem;
    }

    .detailsShare span {
        font-size: 1.05rem;
        color: #666;
    }

    .shareIcons {
        display: flex;
        gap: 1rem;
    }

    .shareIcons a {
        width: 2rem;
        height: 2rem;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #f5f5f5;
        border-radius: 50%;
        color: #666;
    }
}

/* 超小屏专属微调 (≤25rem / 400px) - 仅保留差异化样式 */
@media (max-width: 25rem) {
    .listmain {
        padding: 0 0.5rem;
        box-shadow: -1px 0 3px rgba(0, 0, 0, 0.05), 1px 0 3px rgba(0, 0, 0, 0.05);
    }

    .dqwz {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
        padding: 0.3rem 0;
    }

    .dqwz a {
        font-size: 0.9rem;
    }

    .xlTitle {
        font-size: 0.9rem;
        margin: 0.6rem 0;
    }

    .xlTitle::before,
    .xlTitle::after {
        width: 15%;
    }

    .detailsAuthor span {
        font-size: 0.8rem;
        padding-left: 1rem;
    }

    .detailsAuthor span::before {
        font-size: 0.9rem;
    }

    .detailsTitle {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
        padding: 0 0.3rem;
    }

    .detailsInfo {
        font-size: 0.75rem;
        margin-bottom: 1rem;
    }

    .detailsInfo span {
        margin-bottom: 0.3rem;
    }

    .detailsContent {
        font-size: 1.125rem;
        line-height: 1.6;
    }

    .detailsContent p {
        margin-bottom: 1.25rem;
    }

    .detailsContent img {
        margin: 0.8rem auto;
    }

    .detailsTag {
        margin: 1rem 0;
        padding: 0.5rem;
    }

    .detailsTag h3 {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }

    .detailsTag li a {
        font-size: 0.75rem;
        padding: 0.15rem 0.5rem;
    }

    .detailsShare {
        margin: 0.8rem 0 1.2rem;
        gap: 0.6rem;
    }

    .detailsShare span {
        font-size: 0.95rem;
    }

    .shareIcons {
        gap: 0.8rem;
    }

    .shareIcons a {
        width: 1.8rem;
        height: 1.8rem;
    }
}

/* 3. 中屏 (平板/笔记本, 40.01rem ~ 75rem / 641px ~ 1200px) */
@media (min-width: 40.01rem) and (max-width: 75rem) {
    .listmain {
        width: 90%;
        max-width: 70rem;
        height: auto;
        background-color: #fff;
        padding: 3rem;
        margin: 0 auto;
        box-shadow: -3px 0 8px rgba(0, 0, 0, 0.15), 3px 0 8px rgba(0, 0, 0, 0.15);
    }

    .dqwz {
        width: 100%;
        height: 2rem;
        color: #b6070a;
        font-size: 1.15rem;
        font-weight: 600;
        border-bottom: 2px solid #b6070a;
        margin-bottom: 1.8rem;
    }

    .dqwz a {
        color: #b6070a;
        font-size: 1.15rem;
        font-weight: 600;
    }

    /* xlTitle 中屏样式 */
    .xlTitle {
        font-size: 1.05rem;
        margin: 1rem 0;
    }

    .xlTitle::before,
    .xlTitle::after {
        width: 25%;
    }

    /* detailsAuthor 中屏样式 */
    .detailsAuthor span {
        font-size: 1.05rem;
        padding-left: 1.4rem;
    }

    .detailsAuthor span::before {
        font-size: 1.15rem;
    }

    /* 详情页中屏适配 */
    .detailsFr {
        width: 100%;
        height: auto;
        padding: 0.9rem 0;
    }

    .detailsTitle {
        font-size: 1.8rem;
        margin-bottom: 1.2rem;
        line-height: 1.4;
    }

    .detailsInfo {
        font-size: 0.95rem;
        margin-bottom: 1.8rem;
    }

    .detailsInfo span {
        margin: 0 0.8rem;
        display: inline-block; /* 恢复行内显示，区别于小屏 */
    }

    .detailsContent {
        font-size: 1.25rem;
        line-height: 1.9;
    }

    .detailsContent p {
        margin-bottom: 1.2rem;
    }

    .detailsContent img {
        margin: 1.2rem auto;
    }

    .detailsTag {
        margin: 1.8rem 0;
        padding: 0.8rem;
    }

    .detailsTag h3 {
        font-size: 1.15rem;
        margin-bottom: 0.65rem;
    }

    .detailsTag li a {
        font-size: 0.95rem;
        padding: 0.25rem 0.7rem;
    }

    .detailsShare {
        flex-direction: row; /* 恢复横向布局，区别于小屏 */
        justify-content: space-between;
        align-items: center;
        gap: 0;
        padding: 0.9rem 0;
        margin: 0.9rem 0 1.8rem;
    }

    .detailsShare span {
        font-size: 1.05rem;
    }

    .shareIcons {
        gap: 0.9rem;
    }

    .shareIcons a {
        width: 2.2rem;
        height: 2.2rem;
        /* 保留hover效果，中屏设备通常有鼠标交互 */
        transition: all 0.3s;
    }

    .shareIcons a:hover {
        background-color: #b6070a;
        color: #fff;
    }
}

/* 4. 大屏 (≥75.01rem / 1201px) */
@media (min-width: 75.01rem) {
    .listmain {
        width: 75rem;
        height: auto;
        background-color: #fff;
        padding: 5rem;
        margin: 0 auto;
        box-shadow: -5px 0 10px rgba(0, 0, 0, 0.2), 5px 0 10px rgba(0, 0, 0, 0.2);
    }

    .dqwz {
        width: 100%;
        height: 2.2rem;
        color: #b6070a;
        font-size: 1.25rem;
        font-weight: 600;
        border-bottom: 2px solid #b6070a;
        margin-bottom: 2rem;
    }

    .dqwz a {
        color: #b6070a;
        font-size: 1.25rem;
        font-weight: 600;
    }

    /* xlTitle 大屏样式 */
    .xlTitle {
        font-size: 1rem;
        color: #5F5F5F;
        font-weight: normal;
        text-align: center;
        margin-top: 1.25rem;
        margin-bottom: 1.25rem;
    }

    /* detailsAuthor 大屏样式 */
    .detailsAuthor span {
        font-size: 1.15rem;
    }

    /* 详情页核心样式 */
    .detailsFr {
        width: 100%;
        height: auto;
        padding: 1rem 0;
    }

    .detailsTitle {
        width: 100%;
        text-align: center;
        font-size: 2.25rem;
        color: #333;
        font-weight: 600;
        margin-bottom: 1.5rem;
        line-height: 1.4;
    }

    .detailsInfo {
        width: 100%;
        text-align: center;
        font-size: 1rem;
        color: #666;
        margin-bottom: 2rem;
        padding: 0.5rem 0;
        border-bottom: 1px solid #eee;
    }

    .detailsInfo span {
        margin: 0 1rem;
    }

    .detailsContent {
        width: 100%;
        font-size: 1.25rem;
        color: #444;
        line-height: 2;
    }

    .detailsContent p {
        margin-bottom: 1.5rem;
        text-indent: 2.5rem;
    }

    .detailsContent img {
        max-width: 100%;
        height: auto;
        margin: 1.5rem auto;
        display: block;
    }

    .detailsTag {
        width: 100%;
        margin: 2rem 0;
        padding: 1rem;
        background-color: #f9f9f9;
        border-left: 0.25rem solid #b6070a;
    }

    .detailsTag h3 {
        font-size: 1.25rem;
        color: #b6070a;
        margin-bottom: 0.75rem;
        font-weight: 600;
    }

    .detailsTag ul {
        display: flex;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .detailsTag li {
        list-style: none;
    }

    .detailsTag li a {
        color: #666;
        font-size: 1rem;
        padding: 0.3rem 0.8rem;
        background-color: #fff;
        border: 1px solid #eee;
        border-radius: 1.25rem;
        transition: all 0.3s;
    }

    .detailsTag li a:hover {
        color: #b6070a;
        border-color: #b6070a;
    }

    .detailsShare {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 0;
        border-top: 1px solid #eee;
        border-bottom: 1px solid #eee;
        margin: 1rem 0 2rem;
    }

    .detailsShare span {
        font-size: 1.1rem;
        color: #666;
    }

    .shareIcons {
        display: flex;
        gap: 1rem;
    }

    .shareIcons a {
        width: 2.5rem;
        height: 2.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #f5f5f5;
        border-radius: 50%;
        color: #666;
        transition: all 0.3s;
    }

    .shareIcons a:hover {
        background-color: #b6070a;
        color: #fff;
    }
}