/* ============================================
   detail.css  文章详情页样式
   ============================================ */

.article-wrap {
    background: #fff;
    border: 1px solid #d4e2f1;
    border-radius: 6px;
    padding: 36px 48px;
    min-height: 780px;
}

/* ----- 标题 ----- */
.article-title {
    font-size: 28px;
    color: #222;
    font-weight: bold;
    line-height: 1.6;
    text-align: center;
    padding-bottom: 16px;
}

/* ----- meta(时间/来源/浏览) ----- */
.article-meta {
    text-align: center;
    color: #999;
    font-size: 13px;
    padding: 0 0 18px;
    border-bottom: 1px dashed #e0e8f2;
    margin-bottom: 28px;
}

.article-meta span {
    margin: 0 16px
}

.article-meta span.label {
    color: #888
}

.article-meta span.val {
    color: #555
}

/* ----- 正文 ----- */
.article-body {
    font-size: 15px;
    color: #444;
    line-height: 2;
}

.article-body img {
    max-width: 100%
}

.article-body p {
    margin: 0 0 16px;
    text-indent: 2em;
}

.article-body h4 {
    font-size: 17px;
    color: #0036A2;
    font-weight: bold;
    margin: 26px 0 12px;
    padding-left: 12px;
    border-left: 3px solid #e63838;
}

.article-body strong {
    color: #222
}

.article-body ul {
    margin: 8px 0 14px 30px;
}

.article-body ul li {
    list-style: disc;
    padding: 3px 0;
    color: #555;
}

/* ----- 底部操作 ----- */
.article-foot {
    margin-top: 30px;
    padding-top: 18px;
    border-top: 1px dashed #e0e8f2;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.article-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: #f4f8fc;
    border: 1px solid #d4e2f1;
    border-radius: 6px;
    color: #666;
    font-size: 13px;
    transition: all .15s;
}

.article-back:hover {
    background: #0036A2;
    border-color: #0036A2;
    color: #fff
}

.article-share {
    color: #999;
    font-size: 12px
}

.article-share a {
    margin-left: 12px;
    color: #0036A2
}

.article-share a:hover {
    color: #e63838
}

/* ----- 相关推荐 ----- */
.article-related {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid #e7eef6;
}

.article-related h4 {
    font-size: 14px;
    color: #0036A2;
    font-weight: bold;
    margin-bottom: 12px;
    padding-left: 10px;
    border-left: 3px solid #e63838;
}

.article-related ul {
    padding-left: 0;
}

.article-related ul li {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 13px;
    border-bottom: 1px dashed #e0e6ee;
}

.article-related ul li:last-child {
    border-bottom: 0
}

.article-related ul li a {
    color: #555;
    flex: 1;
    /*padding-left: 14px;*/
    /*position: relative;*/
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.article-related ul li a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 4px;
    height: 4px;
    background: #0036A2;
    border-radius: 50%;
    transform: translateY(-50%);
}

.article-related ul li a:hover {
    /*color: #e63838*/
}

.article-related ul li .date {
    color: #999;
    font-size: 12px;
    flex: 0 0 80px;
    text-align: right;
    padding-left: 20px;
}

/* ============================================
   媒体查询 - Tablet (≤1024)
   ============================================ */
@media (max-width: 1024px) {
    .article-wrap {
        padding: 30px 36px;
        min-height: auto
    }

    .article-title {
        font-size: 24px
    }

    .article-meta {
        margin-bottom: 22px
    }

    .article-body {
        font-size: 14px;
        line-height: 1.9
    }

    .article-body h4 {
        font-size: 16px;
        margin: 22px 0 10px
    }

    .article-foot {
        margin-top: 24px;
        padding-top: 14px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px
    }

    .article-back {
        display: none;
    }

    .article-audit {
        padding-top: 16px;
    }
}

/* ============================================
   媒体查询 - Mobile (≤768)
   ============================================ */
@media (max-width: 768px) {
    .article-wrap {
        padding: 18px 14px
    }

    .article-title {
        font-size: 20px;
        padding-bottom: 10px
    }

    .article-meta {
        font-size: 12px;
        padding-bottom: 14px;
        margin-bottom: 18px
    }

    .article-meta span {
        margin: 0 8px
    }

    .article-body {
        font-size: 14px;
        line-height: 1.8
    }

    .article-body p {
        margin: 0 0 12px;
        text-indent: 2em
    }

    .article-body h4 {
        font-size: 15px;
        margin: 18px 0 8px;
        padding-left: 10px
    }

    .article-foot {
        margin-top: 20px;
        padding-top: 12px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px
    }

    .article-back {
        padding: 6px 14px;
        font-size: 12px;
        display: none;
    }

    .article-share {
        font-size: 11px
    }

    .article-share a {
        margin-left: 8px
    }

    .article-related {
        margin-top: 20px;
        padding-top: 14px
    }

    .article-related h4 {
        font-size: 13px;
        margin-bottom: 8px
    }

    .article-related ul li {
        flex-wrap: wrap;
        padding: 5px 0;
        font-size: 13px;
        gap: 4px
    }

    .article-related ul li .date {
        flex: 1 0 100%;
        text-align: left;
        padding-left: 14px;
        font-size: 11px
    }

    .article-audit {
        padding-top: 12px;
        font-size: 12px;
    }

    .wechat-share-box {
        width: auto;
        padding: 18px;
    }

    .wechat-share-title {
        font-size: 15px;
    }

    .wechat-share-hint {
        font-size: 12px;
    }

    .wechat-share-url {
        font-size: 11px;
        max-height: 80px;
    }

    .wechat-share-actions {
        gap: 8px;
    }

    .wechat-share-actions button {
        padding: 5px 12px;
        font-size: 12px;
    }
}

/* ----- 一审/二审/三审 审核信息 ----- */
.article-audit {
    padding-top: 20px;
}

/* ----- 微信分享弹层 ----- */
.wechat-share-mask {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.wechat-share-box {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    max-width: 90%;
    width: 380px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .2);
}

.wechat-share-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.wechat-share-hint {
    font-size: 13px;
    color: #666;
    margin: 0 0 12px;
    line-height: 1.6;
}

.wechat-share-url {
    background: #f5f5f5;
    padding: 10px;
    border-radius: 4px;
    font-size: 12px;
    word-break: break-all;
    color: #333;
    max-height: 100px;
    overflow: auto;
    margin-bottom: 16px;
    font-family: monospace;
}

.wechat-share-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.wechat-share-actions button {
    padding: 6px 18px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}

.wechat-share-actions .btn-primary {
    background: #07c160;
    color: #fff;
    border-color: #07c160;
}
