/* ============ detail page ============ */
.article_google__link {
    border: 1px solid var(--primary-color);
    padding: 4px 9px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
    background:  #FFFFFF;
    border-radius: 15px 15px 15px 15px;
    border: 1px solid rgba(0,0,0,0.2);
    font-size: 12px;
    color: #000000;
}
.cate_title {
    font-family: "default_bold";
    font-weight: bold;
    font-size: 14px;
    padding: 8px 12px;
    color: #FFFFFF;
    line-height: 13px;
    background: var(--primary-color);
    border-radius: 25px;
   
}
.view_num {
    color: var(--primary-color);
}
.tags {
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
}
.news_tags_container {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 8px;
}
.news_tags_container .news_tag {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: rgba(0,0,0,0.5);
    line-height: 13px;
}
.news_tags_container .news_tag::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 100%;
    background-color: var(--primary-color);
}

.message_success {
    position: fixed;
    top: 30%;
    left: 50%;
    padding: 10px;
    background-color: var(--primary-color);
    border-color: #e1f3d8;
    color: #fff;
    min-width: 300px;
    max-width: 300px;
    text-align: center;
    border-radius: 5px;
    font-size: 14px;
    transform: translateX(-50%);
    opacity: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.message_success.show {
    opacity: 1;
    display: flex;
}

.share-area {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: inherit;
}
.dtp-meta-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;

}
.share-area .share {
    color: #8b9bb4;
    font-size: 12px;
}
.share-btn img {
    width: 28px;
    min-width: 28px;
}
.dtp-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.dtp-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 40px;
    align-items: start;
}

.dtp-main {
    min-width: 0;
}
.news_detail {
    margin-bottom: var(--footer-space);
}
.news_detail .dot {
    width: 8px;
    height: 8px;
    border-radius: 100%;
    background-color: var(--primary-color);
}
/* ============ 面包屑 ============ */
.dtp-crumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #999;
    margin: 22px 0 18px;
}

.dtp-crumb a {
    color: #999;
    text-decoration: none;
}

.dtp-crumb a:hover {
    color: var(--primary-color);
}

.dtp-crumb span.sep {
    color: #ccc;
}

.dtp-crumb .cur {
    color: #666;
}

/* ============ 标题区 ============ */
.dtp-title {
    font-family: default_bold;
    font-weight: bold;
    font-size: 24px;
    color: #333333;
    line-height: 26px;
    text-align: left;
    font-style: normal;
    text-transform: none;
}


.dtp-meta {
    padding: 12px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    font-size: 12px;
    color: rgba(0,0,0,0.5);
}

.dtp-author {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    padding:16px 24px ;
    box-shadow: 0px -4px 0px 0px var(--primary-color);
    border-radius: 15px 15px 15px 15px;
    background-color: #f0f0f0;
}

.dtp-author-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    background: #eee;
    flex-shrink: 0;
    display: block;
}

.dtp-author-avatar-fallback {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
    text-transform: uppercase;
}

.dtp-author-name {
    font-family: default_bold;
    font-weight: bold;
    font-size: 18px;
    color: rgba(0,0,0,0.8);

}

.dtp-author-name:hover {
    color: var(--primary-color);
}

.dtp-author-role {
    font-size: 14px;
    color: rgba(0,0,0,0.8);
    text-align: left;
    font-style: normal;
}

.dtp-meta-divider {
    width: 1px;
    height: 28px;
    background: rgba(0, 0, 0, .1);
}

.dtp-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 400;
    font-size: 12px;
    color: rgba(0,0,0,0.5);
}

.dtp-meta-item svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    opacity: .6;
}

/* 标签行 */
.dtp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.dtp-tag {
    font-size: 12px;
    font-weight: 600;
    color: #555;
    background: #f2f2f2;
    border-radius: 999px;
    padding: 5px 14px;
    text-decoration: none;
    transition: .2s;
}

.dtp-tag:hover {
    background: var(--primary-color);
    color: #fff;
}

/* ============ 正文 ============ */
.auth_article {
    background: #FFFFFF;
    box-shadow: 0px -4px 0px 0px var(--primary-color);
    border-radius: 15px 15px 15px 15px; 
    padding: 24px;
}
.dtp-article {
    font-size: 16px;
    line-height: 1.85;
    color: #333;
}

.dtp-article {
    word-break: break-word;
}

.dtp-article p {
    margin: 0 0 20px;
}

.dtp-article h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 36px 0 16px;
    line-height: 1.35;
}

.dtp-article h3 {
    font-size: 19px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 28px 0 12px;
    line-height: 1.4;
}

.dtp-article h4 {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 22px 0 10px;
}

.dtp-article img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
    margin: 22px auto;
}

.dtp-article a {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.dtp-article a:hover {
    opacity: .8;
}

.dtp-article ul,
.dtp-article ol {
    margin: 0 0 20px;
    padding-left: 26px;
}

.dtp-article li {
    margin-bottom: 8px;
}

.dtp-article blockquote {
    margin: 22px 0;
    padding: 16px 22px;
    border-left: 4px solid var(--primary-color);
    background: #fafafa;
    border-radius: 0 8px 8px 0;
    color: #555;
}

.dtp-article table {
    width: 100%;
    border-collapse: collapse;
    margin: 22px 0;
    font-size: 14.5px;
}

.dtp-article th,
.dtp-article td {
    border: 1px solid rgba(0, 0, 0, .1);
    padding: 10px 14px;
    text-align: left;
}

.dtp-article th {
    background: #f7f7f7;
    font-weight: 700;
}

.dtp-article iframe {
    max-width: 100%;
    border-radius: 10px;
}

.dtp-article pre {
    background: #f7f7f7;
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 14px;
}

.dtp-article hr {
    border: 0;
    border-top: 1px solid rgba(0, 0, 0, .1);
    margin: 30px 0;
}

/* 清理正文里残留的隐藏辅助块 */
.dtp-article .news_content_hide {
    display: none;
}

/* ============ 正文内广告 ============ */
.dtp-inline-ad {
    margin: 30px 0;
    text-align: center;
}

.dtp-inline-ad img,
.dtp-inline-ad video {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    margin-bottom: 24px;
}

/* ============ 上下篇 ============ */
.dtp-pager {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 24px 0 10px;
}

.dtp-pager-item {
    display: block;
    padding: 18px 20px;
    /* border: 1px solid rgba(0, 0, 0, .08); */
    border-radius: 12px;
    text-decoration: none;
    transition: .2s;
    background: #fff;
}

.dtp-pager-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .07);
}

.dtp-pager-label {
    color: var(--primary-color);
    font-family: default_bold;
    font-weight: bold;
    font-size: 14px;
}

.dtp-pager-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: default_bold;
    font-weight: bold;
    font-size: 14px;
    color: rgba(0,0,0,0.8);
}

.dtp-pager-item.is-next {
    text-align: right;
}

.dtp-pager-empty {
    border-radius: 12px;
}

/* ============ 侧边栏 ============ */

.dtp-side {
    position: -webkit-sticky;
    width: 282px;
    position: sticky;
    top: 84px;
    align-self: start;
    max-height: calc(100vh - 108px);
    display: flex;
    flex-direction: column;
    gap: 22px;
}



/* ---- 目录盒子 ---- */
.dtp-toc {
    /* flex: 1 1 auto; */
    height: fit-content;
    display: flex;
    max-height: 400px;
    min-height: 200px;
    flex-direction: column;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    width: 282px;
    background: #FFFFFF;
    position: relative;
    z-index: 10;

}
.dtp-toc .top{ 
    font-family: default_bold;
    font-weight: bold;
    font-size: 16px;
    color: #FFFFFF;
    line-height: 18px;
    text-align: center;
    padding: 12px 0 20px;
    font-style: normal;
    text-transform: uppercase;
    background-color: var(--primary-color);
    border-radius: 15px 15px 0px 0px;
}
.dtp-toc-head {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #232323;
}

.dtp-toc-head svg {
    width: 15px;
    height: 15px;
    color: var(--primary-color);
    flex-shrink: 0;
}

/* 移动端面板*/
.dtp-toc-grip {
    display: none;
}

.dtp-toc-close {
    display: none;
}

.dtp-toc-list {
    min-height: 0;
    max-height: 550px;
    overflow-y: auto;
    overscroll-behavior: contain;
    position: relative;
    padding: 12px;
    background-color: #fff;
    border-radius: 15px 15px;
    margin-top: -10px;
}

.dtp-toc-list::-webkit-scrollbar {
    width: 6px;
}

.dtp-toc-list::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, .16);
    border-radius: 999px;
}

.dtp-toc-list::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, .28);
}

.dtp-toc-list::-webkit-scrollbar-track {
    background: transparent;
}

.dtp-toc-item {
    display: block;
    position: relative;
    padding: 6px 16px 6px 18px;
    text-decoration: none;
    border-left: 3px solid transparent;
}

.dtp-toc-item:hover {
    color: var(--primary-color);
    background: #fafafa;
}

.dtp-toc-item.is-active {
    color: var(--primary-color);
    font-weight: 700;
    border-left-color: var(--primary-color);
    background: #fff5f9;
}

/* h2 */
.dtp-toc-h2 {
    font-family: default_bold;
    font-weight: bold;
    font-size: 12px;
    color: #000000;
    position: relative;
     padding-left: 20px;
}
.dtp-toc-h2::before {
    content:"";
    display:"inline-block";
    width: 8px;
    height: 8px;
    position: absolute;
    border-radius: 100%;
    background-color: var(--primary-color);
    left: 0px;
    top: 50%;
    transform: translate(50%,-50%);

}
/* h3 层级： */
.dtp-toc-h3 {
    padding-left: 34px;
    font-size: 13px;
    color: #777;
}

.dtp-toc-h3::before {
    content: "";
    position: absolute;
    left: 22px;
    top: 50%;
    width: 5px;
    height: 1px;
    background: currentColor;
    opacity: .5;
}

.dtp-toc-empty {
    padding: 20px 16px;
    font-size: 13px;
    color: #bbb;
    text-align: center;
}

/* ---- 广告位 ---- */

.dtp-ad {
    /* flex-shrink: 0; */
    flex: 1 ;
}

.dtp-side-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #aaa;
    margin-bottom: 8px;
    text-align: center;
}

.dtp-side-slot {
    background: #f6f6f6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
}

.dtp-side-slot img,
.dtp-side-slot video {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

.dtp-side-empty {
    color: #bbb;
    font-size: 13px;
}


/* 移动端目录指示条：默认隐藏（PC 不显示） */
.dtp-toc-dots {
    display: none;
}

/* 遮罩*/
.dtp-toc-mask {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9998;
    -webkit-backdrop-filter: blur(1px);
    backdrop-filter: blur(1px);
    opacity: 0;
    transition: opacity .22s ease;
}

.dtp-toc-mask.is-open {
    opacity: 1;
}

.recommend_wrapper {
    padding: 24px;
    border-radius: 15px;
    margin-top: 24px;
    background-color: #fff;
}
.recommend_wrapper  h3{
    font-family: default_bold;
    font-weight: bold;
    font-size: 18px;
    color: #000000;
    text-transform: uppercase;
}
.recommend_wrapper ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    row-gap: 0px;
    column-gap: 20px;
}

.recommend_wrapper ul li .recommend_item_link{
    border-bottom: 1px solid #ccc;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
}
@media (min-width: 769px) {
    .recommend_wrapper ul li:nth-last-child(-n+2) .recommend_item_link {
        border-bottom: none;
    }
}
.recommend_wrapper ul li:hover .recommend_item_link img{
   transform: scale(1.05);
   transition: all 0.3s ease-in-out;
}
.recommend_wrapper ul li:hover .recommend_title {
  color: var(--primary-color);
}
.recommend_wrapper ul li .recommend_img {
    display: block;
    width: 60px;
    height: 60px;
    border-radius: 4px;
    flex-shrink: 0;
    overflow: hidden;
}
.recommend_wrapper ul li img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.recommend_title_date {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.recommend_title_date .recommend_title{
    font-family: default_bold;
    font-weight: bold;
    font-size: 12px;
    color: #333333;
}
.recommend_title_date .recommend_date{
    font-size: 12px;
    color: rgba(0,0,0,0.5);
    display: flex;
    align-items: baseline;
    gap: 4px;
}
.recommend_title_date .recommend_date::before{
    content:"";
    display:block;
    width: 8px;
    height: 8px;
    background: rgba(0,0,0,0.2);
    border-radius: 100%;
}



/* ============ 响应式（三端自适应） ============ */
@media (max-width: 1024px) {
    .dtp-layout {
        grid-template-columns: minmax(0, 1fr) 260px;
        gap: 28px;
    }

    .dtp-title {
        font-size: 30px;
    }

    .dtp-toc-list {
        height: 340px;
    }
    .dtp-side-slot a {
        width: 100%;
    }
}


@media (max-width: 768px) {
    .dtp-pager-item { 
        padding: 10px ;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    .tags {
        gap: 8px;
    }
   
    .news_tags_container {
        display: flex;
        flex-wrap: wrap;
    }
    .google_icon {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        flex-shrink: 0;
        margin-bottom: -7px;
    }
    .news_tags_container .news_tag {
        font-size: 12px;
    }

    .article_google__link {
        flex-shrink: 0;
        white-space: nowrap;
    }
    .dtp-title {
        font-size: 14px;
        line-height: 16px;
    }
    .dtp-meta-container {
        padding: 10px 0;
    }
    .dtp-meta {
        padding: 10px 0;
     }
    .recommend_wrapper ul {
        grid-template-columns: repeat(1, 1fr);
    }
    .recommend_wrapper ul li:last-child .recommend_item_link {
        border-bottom: none;
    }
    .dtp-toc-dots {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 10px;
        position: fixed;
        right: 6px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 9997;
        max-height: 50vh;
        overflow-y: auto;
        padding: 10px 6px;
        background: rgba(255, 255, 255, 0.92);
        border-radius: 14px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        -webkit-tap-highlight-color: transparent;
        scrollbar-width: none;
    }
    .dtp-toc-dots::-webkit-scrollbar {
        display: none;
    }

    .dtp-toc-dot {
        display: block;
        width: 14px;
        height: 3px;
        border-radius: 2px;
        background: #ccc;
        transition: width 0.25s ease, background 0.25s ease;
        cursor: pointer;
        flex-shrink: 0;
    }
    .dtp-toc-dot.is-active {
        width: 20px;
        background: var(--primary-color, #AF0400);
    }

    /* 面板已打开时指示条淡出，避免和面板叠在一起 */
    .dtp-toc-dots.is-hidden {
        opacity: 0;
        pointer-events: none;
    }

    /* ---- 面板：从右侧滑出，高度与目录内容等高 ---- */

  
    .dtp-side {
        position: static;
        width: 100%;
    }

    .dtp-side #dtpToc {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 50%;
        right: 0;
        bottom: auto;
        left: auto;
        height: auto;
        max-height: calc(100vh - 48px);
        z-index: 9999;
        margin: 0;
        border: 0;
        border-radius: 16px 0 0 16px;
        box-shadow: -10px 0 34px rgba(0, 0, 0, .18);
        transform: translate(101%, -50%);
        transition: transform .3s cubic-bezier(.22, .61, .36, 1);
        will-change: transform;
    }

    .dtp-side #dtpToc.is-open {
        transform: translate(0, -50%);
    }

    .dtp-side #dtpToc:not(.is-open) {
        pointer-events: none;
    }

    .dtp-toc-head {
        flex-shrink: 0;
        justify-content: space-between;
        padding: 18px 18px;
    }

    .dtp-toc-title {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .dtp-toc-close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: #f2f2f2;
        color: #666;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .dtp-toc-close svg {
        width: 14px;
        height: 14px;
        color: currentColor;
    }

    .dtp-toc-close:active {
        background: #e6e6e6;
    }

 
    .dtp-side .dtp-toc-list {
        height: auto;
        flex: 1 1 auto;
        min-height: 0;
        width: min(78vw, 320px);
        padding: 10px 0;
        overscroll-behavior: contain;
    }

    .dtp-toc-item {
        padding-top: 15px;
        padding-bottom: 15px;
        padding-left: 20px;
        font-size: 14.5px;
    }

    .dtp-toc-h3 {
        padding-left: 38px;
        font-size: 13.5px;
    }

    .dtp-toc-h3::before {
        left: 26px;
    }

    .dtp-toc-empty {
        padding: 26px 18px;
    }
      .dtp-layout {
        grid-template-columns: minmax(0, 1fr);
    }
        .dtp-pager {
        grid-template-columns: minmax(0, 1fr);
    }

    .dtp-pager-item.is-next {
        text-align: left;
    }

    .dtp-crumb {
        font-size: 12px;
    }
}
