/* ============================================================
   HLip 主题 - 文章详情页专属样式
   作用域限定在 .article-detail-page 内
   ============================================================ */

.article-detail-page {
    max-width: 1240px;
    margin: 0 auto;
    padding: 20px 20px 40px;
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: #303133;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

/* ---------- 面包屑 ---------- */
.adp-crumb {
    font-size: 13px;
    color: #8a9aa0;
    margin-bottom: 18px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 6px;
}

.adp-crumb a,
.adp-crumb a:visited {
    color: #8a9aa0;
    text-decoration: none;
    -webkit-transition: color 0.15s ease;
    transition: color 0.15s ease;
}

.adp-crumb a:hover {
    color: #dd1b43;
}

.adp-crumb-sep {
    color: #c6d2d5;
    font-size: 12px;
}

.adp-crumb-title {
    color: #41565c;
    font-weight: 500;
    max-width: 360px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---------- 布局容器 ---------- */
.adp-layout {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: flex-start;
    -ms-flex-align: flex-start;
    align-items: flex-start;
    gap: 24px;
}

.adp-side {
    -webkit-box-flex: 0 0 220px;
    -ms-flex: 0 0 220px;
    flex: 0 0 220px;
    width: 220px;
    float: none !important;
    margin: 0 !important;
}

/* ---------- 左侧菜单（.article_nav / .left_common / .left_help 结构） ---------- */
.article-detail-page .article_nav {
    float: none;
    width: 100%;
    margin: 0;
    border: none !important;
}

.article-detail-page .left_common {
    background: #fff;
    border-radius: 10px;
    -webkit-box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    font-size: 14px;
}

.article-detail-page .left_help {
    margin: 0;
    padding: 0;
}

.article-detail-page .left_help > dt {
    padding: 14px 18px;
    background: -webkit-linear-gradient(135deg, #dd1b43 0%, #c0173a 100%);
    background: linear-gradient(135deg, #dd1b43 0%, #c0173a 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    margin: 0;
    line-height: 1.4;
    height: auto;
    border: none;
    background-image: none !important;
}

.article-detail-page .left_help > dd {
    margin: 0;
    padding: 0;
}

.article-detail-page .left_help > dd > ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.article-detail-page .left_help > dd > ul > li {
    margin: 0;
    padding: 0;
    border: none;
    width: 100%;
    height: auto;
    line-height: 1.4;
    overflow: visible;
}

.article-detail-page .left_help > dd > ul > li > a {
    display: block;
    padding: 10px 18px 10px 38px;
    font-size: 13px;
    color: #60757b;
    text-decoration: none;
    -webkit-transition: all 0.15s ease;
    transition: all 0.15s ease;
    position: relative;
    border-bottom: 1px solid #f4f6f7;
    background: transparent !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.article-detail-page .left_help > dd > ul > li > a::before {
    content: "";
    position: absolute;
    left: 22px;
    top: 50%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #c6d2d5;
    -webkit-transition: background 0.15s ease;
    transition: background 0.15s ease;
}

.article-detail-page .left_help > dd > ul > li > a:hover {
    color: #dd1b43;
    background: #fff5f7 !important;
}

.article-detail-page .left_help > dd > ul > li > a:hover::before {
    background: #dd1b43;
}

/* ---------- 文章主卡片 ---------- */
.adp-article-card {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    background: #fff;
    border-radius: 12px;
    -webkit-box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    min-width: 0;
}

/* ---------- 文章头部 ---------- */
.adp-article-header {
    padding: 32px 40px 24px;
    border-bottom: 1px solid #edf1f2;
    background: -webkit-linear-gradient(180deg, #f8fcfc 0%, #fff 100%);
    background: linear-gradient(180deg, #f8fcfc 0%, #fff 100%);
}

.adp-article-title {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.4;
    color: #1a2b30;
    margin: 0 0 14px;
    letter-spacing: 0.5px;
}

.adp-article-meta {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 13px;
    color: #8a9aa0;
}

.adp-meta-item {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 5px;
}

.adp-ico {
    display: inline-block;
    width: 14px;
    height: 14px;
    position: relative;
}

.adp-ico-calendar::before {
    content: "📅";
    font-size: 12px;
}

.adp-ico-source::before {
    content: "🔗";
    font-size: 12px;
}

.adp-ico-view::before {
    content: "👁";
    font-size: 12px;
}

/* ---------- 正文排版 ---------- */
.adp-article-body {
    padding: 32px 40px;
    font-size: 15px;
    line-height: 1.85;
    color: #2c3e44;
    word-wrap: break-word;
    word-break: break-word;
}

.adp-article-body p {
    margin: 0 0 18px;
    text-align: justify;
}

.adp-article-body h1,
.adp-article-body h2,
.adp-article-body h3,
.adp-article-body h4,
.adp-article-body h5,
.adp-article-body h6 {
    margin: 28px 0 14px;
    font-weight: 600;
    color: #1a2b30;
    line-height: 1.4;
}

.adp-article-body h1 {
    font-size: 22px;
    padding-bottom: 10px;
    border-bottom: 2px solid #dd1b43;
}

.adp-article-body h2 {
    font-size: 20px;
    position: relative;
    padding-left: 14px;
}

.adp-article-body h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 4px;
    background: #dd1b43;
    border-radius: 2px;
}

.adp-article-body h3 {
    font-size: 18px;
    color: #23343a;
}

.adp-article-body h4 {
    font-size: 16px;
}

.adp-article-body a {
    color: #dd1b43;
    text-decoration: none;
    border-bottom: 1px solid rgba(221, 27, 67, 0.2);
    -webkit-transition: all 0.15s ease;
    transition: all 0.15s ease;
}

.adp-article-body a:hover {
    color: #c0173a;
    border-bottom-color: #c0173a;
}

.adp-article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 10px 0;
    -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.adp-article-body blockquote {
    margin: 18px 0;
    padding: 14px 20px;
    background: #fff5f7;
    border-left: 4px solid #dd1b43;
    border-radius: 0 6px 6px 0;
    color: #41565c;
    font-size: 14px;
}

.adp-article-body blockquote p {
    margin: 0;
}

.adp-article-body ul,
.adp-article-body ol {
    margin: 0 0 18px;
    padding-left: 24px;
}

.adp-article-body li {
    margin-bottom: 6px;
}

.adp-article-body ul li {
    list-style-type: disc;
}

.adp-article-body ol li {
    list-style-type: decimal;
}

.adp-article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0;
    font-size: 14px;
    border-radius: 6px;
    overflow: hidden;
    -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.adp-article-body table th,
.adp-article-body table td {
    padding: 10px 14px;
    border: 1px solid #edf1f2;
    text-align: left;
}

.adp-article-body table th {
    background: #fff5f7;
    color: #c0173a;
    font-weight: 600;
}

.adp-article-body table tr:nth-child(even) td {
    background: #fafcfc;
}

.adp-article-body code {
    padding: 2px 6px;
    background: #f2f4f5;
    color: #e64b35;
    border-radius: 3px;
    font-size: 13px;
    font-family: "Consolas", "Monaco", "Courier New", monospace;
}

.adp-article-body pre {
    margin: 18px 0;
    padding: 16px 20px;
    background: #1a2b30;
    color: #e8f5f4;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 13px;
    line-height: 1.6;
}

.adp-article-body pre code {
    padding: 0;
    background: transparent;
    color: inherit;
    font-size: inherit;
}

.adp-article-body hr {
    border: none;
    border-top: 1px solid #edf1f2;
    margin: 28px 0;
}

.adp-article-body strong {
    color: #1a2b30;
    font-weight: 600;
}

.adp-article-body em {
    color: #c0173a;
    font-style: normal;
    border-bottom: 1px dashed #dd1b43;
}

/* ---------- 上一篇/下一篇 ---------- */
.adp-prevnext {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 16px;
    padding: 20px 40px;
    border-top: 1px solid #edf1f2;
    background: #fafcfc;
}

.adp-pn {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 4px;
    padding: 12px 18px;
    background: #fff;
    border: 1px solid #e6ebec;
    border-radius: 8px;
    text-decoration: none;
    -webkit-transition: all 0.15s ease;
    transition: all 0.15s ease;
    min-width: 0;
}

.adp-pn:hover {
    border-color: #dd1b43;
    -webkit-box-shadow: 0 2px 10px rgba(221, 27, 67, 0.12);
    box-shadow: 0 2px 10px rgba(221, 27, 67, 0.12);
    -webkit-transform: translateY(-1px);
    transform: translateY(-1px);
}

.adp-pn-prev {
    text-align: left;
}

.adp-pn-next {
    text-align: right;
}

.adp-pn-label {
    font-size: 12px;
    color: #8a9aa0;
    letter-spacing: 1px;
}

.adp-pn-prev .adp-pn-label::before {
    content: "← ";
}

.adp-pn-next .adp-pn-label::after {
    content: " →";
}

.adp-pn-text {
    font-size: 14px;
    color: #303133;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.adp-pn:hover .adp-pn-text {
    color: #dd1b43;
}

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
    .adp-layout {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
    }

    .adp-side {
        width: 100%;
        -webkit-box-flex: 1;
        -ms-flex: 1;
        flex: 1;
    }

    .adp-article-header,
    .adp-article-body,
    .adp-prevnext {
        padding-left: 24px;
        padding-right: 24px;
    }

    .adp-article-title {
        font-size: 22px;
    }
}

@media (max-width: 640px) {
    .adp-article-header,
    .adp-article-body,
    .adp-prevnext {
        padding: 20px 18px;
    }

    .adp-article-title {
        font-size: 20px;
    }

    .adp-prevnext {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
    }
}
