/* 内容详情页布局（不依赖 bootstrap 栅格） */

.article-page {
    background: #faf7f3;
    padding: 10px 0 60px;
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    color: #333;
}

.article-wrap {
    width: 1400px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== 面包屑 ===== */
.article-crumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    font-size: 13px;
    color: #a3a3a3;
    padding: 18px 0 20px;
}
.article-crumb a {
    color: #a3a3a3;
    text-decoration: none;
    transition: color .2s;
}
.article-crumb a:hover {
    color: #EE7521;
}
.crumb-sep {
    margin: 0 8px;
    color: #d5d5d5;
}
.crumb-cur {
    color: #EE7521;
}

/* ===== 主体两栏 ===== */
.article-body {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}
.article-main {
    flex: 1;
    min-width: 0;
}
.article-side {
    flex: 0 0 320px;
    width: 320px;
    position: sticky;
    top: 20px;
}

/* ===== 卡片 ===== */
.a-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, .05);
    padding: 36px 40px 40px;
    margin-bottom: 24px;
}

/* 标题 */
.article-title {
    margin: 0;
    font-size: 30px;
    line-height: 1.45;
    font-weight: 700;
    color: #242424;
    letter-spacing: .5px;
}

/* 元信息 */
.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 26px;
    margin-top: 18px;
    padding-bottom: 22px;
    border-bottom: 1px dashed #eeeeee;
    font-size: 13px;
    color: #9a9a9a;
}
.article-meta .meta-item {
    display: flex;
    align-items: center;
}
.article-meta em {
    font-style: normal;
    display: inline-block;
    padding: 2px 8px;
    margin-right: 8px;
    font-size: 12px;
    color: #EE7521;
    background: #fff4ec;
    border-radius: 4px;
}

/* ===== 正文排版 ===== */
.article-content {
    padding: 26px 0 6px;
    font-size: 16px;
    line-height: 2;
    color: #3d3d3d;
    word-break: break-word;
}
.article-content p {
    margin: 0 0 20px;
    text-align: justify;
}
.article-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 22px auto;
    border-radius: 8px;
}
.article-content h2,
.article-content h3,
.article-content h4 {
    margin: 34px 0 16px;
    padding-left: 12px;
    border-left: 4px solid #EE7521;
    font-size: 20px;
    line-height: 1.5;
    color: #242424;
}
.article-content a {
    color: #EE7521;
    text-decoration: underline;
}
.article-content blockquote {
    margin: 22px 0;
    padding: 16px 20px;
    background: #fdf6f0;
    border-left: 4px solid #EE7521;
    border-radius: 0 8px 8px 0;
    color: #666;
}
.article-content ul,
.article-content ol {
    margin: 0 0 20px;
    padding-left: 26px;
}
.article-content ul li,
.article-content ol li {
    list-style: inherit;
    margin-bottom: 8px;
}
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 15px;
}
.article-content table th,
.article-content table td {
    border: 1px solid #eeeeee;
    padding: 10px 12px;
    text-align: left;
}
.article-content table th {
    background: #fafafa;
}

/* 关键词 */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 20px;
}
.article-tags a {
    padding: 5px 14px;
    font-size: 13px;
    color: #EE7521;
    background: #fff4ec;
    border-radius: 14px;
    text-decoration: none;
    transition: all .2s;
}
.article-tags a:hover {
    color: #fff;
    background: #EE7521;
}

/* 上一篇 / 下一篇 */
.article-prevnext {
    display: flex;
    gap: 16px;
    margin-top: 30px;
    padding-top: 26px;
    border-top: 1px dashed #eeeeee;
}
.pn-item {
    flex: 1;
    min-width: 0;
    padding: 14px 18px;
    background: #fafafa;
    border-radius: 8px;
    transition: background .2s;
}
.pn-item:hover {
    background: #fff4ec;
}
.pn-label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    color: #a8a8a8;
}
.pn-item a {
    display: block;
    font-size: 14px;
    line-height: 1.6;
    color: #444;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pn-item:hover a {
    color: #EE7521;
}
.pn-none {
    font-size: 14px;
    color: #bbb;
}

/* 返回列表 */
.back-list {
    display: inline-block;
    margin-top: 26px;
    padding: 10px 30px;
    font-size: 14px;
    color: #EE7521;
    border: 1px solid #EE7521;
    border-radius: 22px;
    text-decoration: none;
    transition: all .2s;
}
.back-list:hover {
    color: #fff;
    background: #EE7521;
}

/* ===== 区块标题 ===== */
.side-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 700;
    color: #242424;
}
.side-title::before {
    content: '';
    width: 4px;
    height: 17px;
    background: #EE7521;
    border-radius: 2px;
}

/* ===== 相关内容 ===== */
.rel-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.rel-item {
    display: block;
    background: #fff;
    border: 1px solid #f2f2f2;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    transition: all .25s;
}
.rel-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .1);
    border-color: transparent;
}
.rel-thumb {
    padding-top: 62%;
    background: #f5f5f5 center center / cover no-repeat;
    transition: transform .35s;
}
.rel-item:hover .rel-thumb {
    transform: scale(1.05);
}
.rel-thumb.no-pic {
    background: linear-gradient(135deg, #fdf1e7, #f6e3d3);
    position: relative;
}
.rel-thumb.no-pic::after {
    content: '宣杭口腔';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d9bba5;
    font-size: 14px;
    letter-spacing: 2px;
}
.rel-body {
    padding: 14px 16px 18px;
}
.rel-title {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    height: 48px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.rel-item:hover .rel-title {
    color: #EE7521;
}
.rel-desc {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.7;
    color: #999;
    height: 44px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.rel-date {
    display: block;
    margin-top: 10px;
    font-size: 12px;
    color: #bbb;
}

/* ===== 侧栏卡片 ===== */
.side-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, .05);
    padding: 22px 24px;
    margin-bottom: 24px;
}

/* 热门排行 */
.hot-list li {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px dashed #f0f0f0;
}
.hot-list li:last-child {
    border-bottom: none;
}
.hot-rank {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    line-height: 20px;
    text-align: center;
    font-size: 12px;
    color: #fff;
    background: #cfcfcf;
    border-radius: 4px;
}
.hot-list li:nth-child(1) .hot-rank,
.hot-list li:nth-child(2) .hot-rank,
.hot-list li:nth-child(3) .hot-rank {
    background: #EE7521;
}
.hot-info {
    min-width: 0;
    flex: 1;
}
.hot-title {
    display: block;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hot-info:hover .hot-title {
    color: #EE7521;
}
.hot-date {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #bbb;
}

/* 最新资讯 */
.latest-list li {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px dashed #f0f0f0;
}
.latest-list li:last-child {
    border-bottom: none;
}
.latest-thumb {
    flex: 0 0 84px;
    width: 84px;
    height: 60px;
    border-radius: 6px;
    background: #f5f5f5 center center / cover no-repeat;
}
.latest-thumb.no-pic {
    background: linear-gradient(135deg, #fdf1e7, #f6e3d3);
}
.latest-info {
    min-width: 0;
    flex: 1;
}
.latest-title {
    display: block;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    text-decoration: none;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.latest-info:hover .latest-title {
    color: #EE7521;
}
.latest-date {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #bbb;
}

/* ===== 响应式 ===== */
@media (max-width: 1280px) {
    .article-wrap {
        width: 100%;
    }
}
@media (max-width: 1024px) {
    .article-body {
        flex-direction: column;
    }
    .article-side {
        flex: none;
        width: 100%;
        position: static;
    }
    .a-card {
        padding: 24px 20px 28px;
    }
    .article-title {
        font-size: 24px;
    }
    .rel-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 640px) {
    .rel-grid {
        grid-template-columns: 1fr;
    }
    .article-prevnext {
        flex-direction: column;
    }
}
