/*!
 * new_details.css —— 资讯详情页
 * 依赖 common.css（头部、页脚、面包屑、友情链接、基础变量）
 * 结构：面包屑 → 通栏封面 → 居中标题 + 元信息 → 正文 → 上一篇/下一篇
 */

/* ============================================================
   1. 主体容器
   ============================================================ */
.art {
    padding: 24px 0 64px;
    background: #fff;
    border-bottom: 1px solid var(--line);
}

/* 与头部同宽：封面 / 面包屑贴容器边 */
.art-in {
    width: 100%;
}

/* 标题 + 元信息 + 正文同一块浅底卡片 */
.art-text {
    /*margin-top: 24px;*/
    padding: 38px 32px 44px;
    background: #F9FAFF;
    border-radius: 8px;
}

/* ============================================================
   2. 封面
   ============================================================ */
.art-cover {
    margin: 0;
    border-radius: 4px;
    overflow: hidden;
    background: #f2f4f8;
    aspect-ratio: 3 / 1;
}

.art-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================================
   3. 标题与元信息
   ============================================================ */
.art-title {
    margin: 0;
    font-size: 24px;
    line-height: 1.55;
    font-weight: 700;
    color: var(--ink);
    text-align: center;
}

.art-meta {
    margin: 14px 0 0;
    font-size: 14px;
    line-height: 1.8;
    color: #8a909c;
    text-align: center;
}

/* 元信息之间用细竖线分隔 */
.art-meta span {
    display: inline-block;
}

.art-meta span + span::before {
    content: "";
    display: inline-block;
    width: 1px;
    height: 12px;
    margin: 0 14px;
    vertical-align: -1px;
    background: #d7dbe4;
}

/* ============================================================
   4. 正文
   ============================================================ */
.art-body {
    margin-top: 30px;
    font-size: 15.5px;
    line-height: 2.05;
    color: #3d3d3d;
    word-break: break-word;
}

.art-body p {
    margin: 0 0 16px;
}

/* tag 锚文本：加粗变红 */
.art-body a.tag-anchor,
.art-body a.tag-anchor:visited {
    color: #e60012;
    font-weight: 700;
    text-decoration: none;
}

.art-body a.tag-anchor:hover {
    text-decoration: underline;
}

.art-body h2 {
    margin: 36px 0 14px;
    font-size: 18px;
    line-height: 1.6;
    font-weight: 700;
    color: var(--ink);
}

.art-body h3 {
    margin: 24px 0 10px;
    padding-left: 8px;
    font-size: 15.5px;
    line-height: 1.7;
    font-weight: 700;
    color: var(--ink);
}

.art-body p:last-child {
    margin-bottom: 0;
}

/* ============================================================
   5. 上一篇 / 下一篇
   ============================================================ */
.art-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 26px;
}

/* 上一篇 / 下一篇统一：白底描边，hover 才变蓝（两者效果完全一致） */
.art-nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 52px;
    padding: 0 20px;
    border: 1px solid #e4e8f1;
    border-radius: 6px;
    background: #fff;
    color: #4a505c;
    font-size: 14px;
    overflow: hidden;
    transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}

.art-nav-k {
    flex: none;
    font-weight: 700;
    color: var(--ink);
    transition: color .25s var(--ease);
}

.art-nav-t {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.art-nav-item:hover {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
}

.art-nav-item:hover .art-nav-k {
    color: #fff;
}

/* 分隔线与友情链接之间留出呼吸间距 */
.art + .links {
    padding-top: 46px;
}

/* ============================================================
   6. 响应式
   ============================================================ */
@media (max-width: 992px) {
    .art {
        padding: 18px 0 48px;
    }

    .art-text {
        padding: 28px 20px 32px;
        border-radius: 6px;
    }

    .art-title {
        font-size: 21px;
    }

    .art-meta {
        font-size: 13px;
    }

    .art-meta span + span::before {
        margin: 0 10px;
    }

    .art-body {
        margin-top: 22px;
        font-size: 15px;
        line-height: 1.95;
    }

    .art-body h2 {
        margin-top: 30px;
        font-size: 17px;
    }

    .art-body h3 {
        margin-top: 20px;
        font-size: 15px;
    }

    .art-nav {
        margin-top: 22px;
    }
}

@media (max-width: 640px) {
    .art-text {
        padding: 22px 14px 26px;
        border-radius: 6px;
    }

    .art-cover {
        border-radius: 3px;
        /*aspect-ratio: 16 / 9;*/
    }

    .art-title {
        font-size: 19px;
        line-height: 1.5;
    }

    /* 手机上元信息一行一条，去掉竖线，避免折行时线条跑到行首 */
    .art-meta span {
        display: block;
    }

    .art-meta span + span::before {
        display: none;
    }

    .art-meta span + span {
        margin-top: 2px;
    }

    .art-nav {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .art-nav-item {
        height: 48px;
        padding: 0 16px;
        font-size: 13px;
    }
}

/* 无上一篇 / 下一篇 */
.art-nav-item--empty { cursor: default; opacity: .6; }
.art-nav-item--empty:hover { transform: none; box-shadow: none; }

