/*
 * dhtime.net portal skin
 * Inspired by the layout conventions of modern Chinese news portals.
 * Original implementation for Z-Blog tpure; no third-party theme code.
 */
:root {
    --jn-primary: #206be7;
    --jn-primary-dark: #1457c6;
    --jn-text: #20242c;
    --jn-muted: #747b87;
    --jn-line: #edf0f4;
    --jn-bg: #f4f6f8;
    --jn-card: #fff;
    --jn-radius: 8px;
    --jn-shadow: 0 4px 18px rgba(24, 39, 75, .06);
}

html { scroll-behavior: smooth; }
body {
    color: var(--jn-text);
    background: var(--jn-bg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
}
body, input, textarea, button { font-size: 15px; }
a { color: var(--jn-text); }
a:hover { color: var(--jn-primary); }
a:focus-visible, button:focus-visible, [role="button"]:focus-visible {
    outline: 3px solid rgba(32, 107, 231, .32);
    outline-offset: 3px;
}
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
.wrapper { min-height: 100vh; background: var(--jn-bg) !important; }
.wrap { width: 1200px; max-width: calc(100% - 40px); }

/* Header */
.header {
    min-height: 64px;
    border: 0;
    border-bottom: 1px solid rgba(28, 35, 45, .07);
    box-shadow: 0 2px 12px rgba(20, 35, 60, .04);
    background: rgba(255, 255, 255, .98);
    backdrop-filter: saturate(160%) blur(12px);
}
.header.fixed { border-bottom-color: rgba(28, 35, 45, .08); }
.header .name, .logo { height: 64px; }
.header .name { width: auto; max-width: 230px; padding-right: 30px; }
.header .name a {
    padding: 0 !important;
    color: #121722;
    font-size: 25px;
    font-weight: 800;
    line-height: 64px;
    letter-spacing: -.4px;
}
.logo a { height: 64px; }
.logo a img { max-height: 40px; width: auto; }
.head { padding-left: 230px; }
.menu { float: left; }
.menu ul { height: 64px; padding-right: 54px; }
.menu li { padding: 0 16px; line-height: 64px; }
.menu li a { color: #343a46; font-size: 15px; font-weight: 500; }
.menu li:before { bottom: 0; height: 3px; border-radius: 3px 3px 0 0; }
.menu li:hover a, .menu li.on a { color: var(--jn-primary); }
.menu li .subnav { top: 64px; border-top-color: var(--jn-primary); border-radius: 0 0 6px 6px; }
.schico { height: 64px; }
.schico > a { height: 64px; }
.schfixed { top: 64px; border-top-color: var(--jn-primary); }

/* Shared layout */
.main { margin: 0; padding: 30px 0 45px; }
.main.fixed { padding-top: 94px; }
.main .mask { display: none; }
.jn-layout { display: flex; align-items: flex-start; gap: 24px; }
.jn-layout:after { display: none; }
.jn-layout > .content { width: min(100%, 860px); float: none; flex: 1 1 auto; }
.jn-layout > .sidebar { width: 316px; float: none; flex: 0 0 316px; }
.block {
    border: 0;
    border-radius: var(--jn-radius);
    box-shadow: var(--jn-shadow);
    background: var(--jn-card);
}
.jn-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 18px;
}
.jn-section-head h2 {
    color: var(--jn-text);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
}
.jn-section-head span { color: var(--jn-muted); font-size: 13px; }

/* Homepage focus grid */
.jn-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(230px, .7fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 10px;
    height: 430px;
    margin-bottom: 30px;
}
.jn-feature {
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    border-radius: var(--jn-radius);
    background: #263345;
    position: relative;
}
.jn-feature-main { grid-row: 1 / 4; }
.jn-feature > a { width: 100%; height: 100%; display: block; position: relative; }
.jn-feature img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.001);
    transition: transform .45s ease;
}
.jn-feature:hover img { transform: scale(1.045); }
.jn-feature-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(7, 13, 24, .83) 100%);
}
.jn-feature-copy {
    position: absolute;
    right: 20px;
    bottom: 16px;
    left: 20px;
    color: #fff;
}
.jn-feature-main .jn-feature-copy { right: 34px; bottom: 30px; left: 34px; }
.jn-kicker {
    display: inline-block;
    margin-bottom: 8px;
    padding: 3px 8px;
    border-radius: 3px;
    color: #fff;
    font-size: 12px;
    line-height: 1.4;
    background: var(--jn-primary);
}
.jn-feature h2 {
    display: -webkit-box;
    overflow: hidden;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.45;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .35);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.jn-feature-main h2 { font-size: 28px; line-height: 1.35; }
.jn-feature time { display: block; margin-top: 10px; color: rgba(255,255,255,.78); font-size: 13px; }

/* Homepage category cards */
.jn-topics {
    margin-bottom: 30px;
    padding: 25px 26px 28px;
    border-radius: var(--jn-radius);
    box-shadow: var(--jn-shadow);
    background: #fff;
}
.jn-topic-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.jn-topic-card {
    min-height: 96px;
    padding: 19px 20px;
    border: 1px solid #e8edf5;
    border-radius: 7px;
    box-sizing: border-box;
    background: linear-gradient(135deg, #f8fbff 0%, #eef4ff 100%);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.jn-topic-card:nth-child(2n) { background: linear-gradient(135deg, #f9fbff 0%, #f2efff 100%); }
.jn-topic-card:hover {
    color: var(--jn-text);
    border-color: rgba(32, 107, 231, .25);
    box-shadow: 0 8px 24px rgba(32, 107, 231, .1);
    transform: translateY(-2px);
}
.jn-topic-card strong { display: block; margin-bottom: 7px; color: var(--jn-text); font-size: 17px; }
.jn-topic-card span {
    display: -webkit-box;
    overflow: hidden;
    color: var(--jn-muted);
    font-size: 13px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

/* Homepage article stream */
.jn-feed-head {
    margin: 0;
    padding: 18px 26px;
    border-bottom: 1px solid var(--jn-line);
    border-radius: var(--jn-radius) var(--jn-radius) 0 0;
    background: #fff;
}
.jn-feed .block { padding: 0 26px; border-radius: 0 0 var(--jn-radius) var(--jn-radius); }
.jn-feed .post {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    column-gap: 22px;
    margin: 0;
    padding: 25px 0;
    border-bottom: 1px solid var(--jn-line);
}
.jn-feed .post:last-child { padding-bottom: 25px; }
.jn-feed .post h2,
.jn-feed .post .info,
.jn-feed .post .intro,
.jn-feed .post > div:last-child { grid-column: 2; }
.jn-feed .post h2 { margin: -3px 0 5px; line-height: 1.45; }
.jn-feed .post h2 a { color: var(--jn-text); font-size: 20px; font-weight: 700; }
.jn-feed .post h2 a:hover { color: var(--jn-primary); }
.jn-feed .post .info { margin-bottom: 10px; color: var(--jn-muted); font-size: 13px; }
.jn-feed .postimg {
    grid-column: 1;
    grid-row: 1 / 6;
    width: 220px;
    margin: 0;
    float: none;
    border-radius: 6px;
    overflow: hidden;
}
.jn-feed .postimg a { padding-bottom: 62.5%; }
.jn-feed .postimg img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.jn-feed .postimg:hover img { transform: scale(1.04); }
.jn-feed .post .intro { margin: 0 0 10px; color: var(--jn-muted); font-size: 14px; line-height: 1.75; }
.jn-feed .post .intro.isimg { height: auto; -webkit-line-clamp: 2; }
.jn-feed .post .readmore { padding: 0; border: 0; color: var(--jn-primary); font-size: 13px; }
.jn-feed .post .readmore:after { margin-left: 3px; }
.jn-feed .post.no-thumb > * { grid-column: 1 / -1; }

/* Sidebar */
.jn-ad {
    margin: 0 0 24px;
    border-radius: var(--jn-radius);
    background: #e9edf2;
    overflow: hidden;
    position: relative;
}
.jn-ad a { display: block; }
.jn-ad img { display: block; width: 100%; height: auto; object-fit: cover; }
.jn-ad-label {
    padding: 2px 5px;
    color: rgba(255,255,255,.9);
    font-size: 10px;
    line-height: 1.3;
    border-radius: 2px;
    background: rgba(0,0,0,.45);
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 2;
}
.jn-ad-banner { width: 100%; max-height: 96px; }
.jn-ad-banner img { width: 100%; height: 96px; max-height: 96px; object-fit: cover; }
.jn-ad-sidebar { max-height: 240px; margin-bottom: 20px; box-shadow: var(--jn-shadow); }
.jn-ad-sidebar img { height: 240px; max-height: 240px; object-fit: cover; }
.jn-ad-inarticle { margin: 0 0 24px; }
.jn-couplet {
    width: 120px;
    margin: 0;
    border-radius: 4px;
    box-shadow: 0 5px 25px rgba(16, 26, 44, .18);
    position: fixed;
    top: 150px;
    z-index: 88;
}
.jn-couplet img { width: 120px; max-height: 360px; object-fit: cover; }
.jn-couplet-left { left: max(10px, calc(50% - 750px)); }
.jn-couplet-right { right: max(10px, calc(50% - 750px)); }
.jn-ad-close {
    width: 100%;
    padding: 4px 0;
    color: #626a77;
    font-size: 11px;
    line-height: 1.5;
    border: 0;
    border-top: 1px solid #e5e8ec;
    background: #fff;
    cursor: pointer;
}
.jn-ad-close:hover { color: var(--jn-primary); }

.sidebox {
    margin-bottom: 20px;
    padding: 22px;
    border: 0;
    border-radius: var(--jn-radius);
    box-shadow: var(--jn-shadow);
}
.sidebox dt {
    margin-bottom: 12px;
    padding: 0 0 12px;
    color: var(--jn-text);
    font-size: 18px;
    font-weight: 700;
    border-bottom: 1px solid var(--jn-line);
    position: relative;
}
.sidebox dt:after {
    content: "";
    width: 30px;
    height: 3px;
    border-radius: 3px;
    background: var(--jn-primary);
    position: absolute;
    bottom: -1px;
    left: 0;
}
.sidebox dd { color: var(--jn-muted); font-size: 14px; line-height: 1.8; }
.sidebox dd li { padding: 8px 0; border-color: var(--jn-line); }
.sidebox dd a { color: #4c5260; }
.jn-hot-tags { background: #fff; }
.jn-tag-cloud { display: flex; flex-wrap: wrap; gap: 9px 8px; }
.jn-tag-cloud a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    color: #4c5a70;
    font-size: 13px;
    line-height: 1.5;
    border: 1px solid #e5eaf1;
    border-radius: 4px;
    background: #f7f9fc;
    transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.jn-tag-cloud a:hover { color: var(--jn-primary); border-color: #b9d1fa; background: #f0f6ff; }
.jn-tag-cloud small { color: #98a1af; font-size: 10px; }
#divContorPanel { display: none !important; }

/* Category archive */
.jn-catalog { min-width: 0; }
.jn-breadcrumbs { margin: 0 0 16px; }
.breadcrumbs {
    color: var(--jn-muted);
    font-size: 13px;
    line-height: 1.6;
}
.breadcrumbs a { color: #596170; }
.breadcrumbs span { margin: 0 8px; }
.jn-catalog-header {
    margin-bottom: 20px;
    padding: 24px 26px;
    border-radius: var(--jn-radius);
    box-shadow: var(--jn-shadow);
    background: #fff;
}
.jn-catalog-header h1 { margin-bottom: 7px; color: var(--jn-text); font-size: 26px; font-weight: 700; }
.jn-catalog-header p { color: var(--jn-muted); font-size: 14px; line-height: 1.75; }
.jn-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
    padding: 0;
    box-shadow: none;
    background: transparent;
}
.jn-card-grid .post {
    display: flex;
    min-width: 0;
    margin: 0;
    padding: 0 18px 18px;
    border: 0;
    border-radius: var(--jn-radius);
    box-shadow: var(--jn-shadow);
    box-sizing: border-box;
    background: #fff;
    overflow: hidden;
    flex-direction: column;
}
.jn-card-grid .postimg { order: -1; width: calc(100% + 36px); margin: 0 -18px 16px; float: none; }
.jn-card-grid .postimg a { padding-bottom: 62.5%; }
.jn-card-grid .postimg img { width: 100%; height: 100%; object-fit: cover; }
.jn-card-grid .post h2 { margin-bottom: 8px; line-height: 1.5; }
.jn-card-grid .post h2 a {
    display: -webkit-box;
    overflow: hidden;
    color: var(--jn-text);
    font-size: 17px;
    font-weight: 700;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.jn-card-grid .post .info { margin-bottom: 8px; font-size: 12px; }
.jn-card-grid .post .intro {
    display: -webkit-box;
    height: auto;
    margin: 0;
    overflow: hidden;
    color: var(--jn-muted);
    font-size: 13px;
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}
.jn-card-grid .post > div:last-child { margin-top: auto; padding-top: 12px; }
.jn-card-grid .readmore { padding: 0; border: 0; font-size: 12px; }

/* Article detail */
.article .jn-layout, .page .jn-layout { gap: 24px; }
.article .content, .page .content { width: min(100%, 860px); }
.article .block, .page .block { padding: 34px 40px; }
.article .post, .page .post { margin: 0; padding: 0; border: 0; }
.article .post h1, .page .post h1 {
    margin: 18px 0 14px;
    color: #171b24;
    font-size: 32px;
    font-weight: 750;
    line-height: 1.4;
    letter-spacing: -.45px;
}
.article .article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 16px;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--jn-line);
    color: var(--jn-muted);
}
.article .article-meta > span { margin: 0; color: var(--jn-muted); }
.article .article-meta .updated:before { content: ""; }
.article-summary {
    margin: 0 0 24px;
    padding: 16px 18px;
    color: #535b68;
    font-size: 15px;
    line-height: 1.85;
    border-left: 3px solid var(--jn-primary);
    border-radius: 0 5px 5px 0;
    background: #f6f9fe;
}
.single.postcon, .article .single {
    color: #303641;
    font-size: 17px;
    line-height: 1.95;
}
.single.postcon p, .article .single p { margin: 0 0 1.25em; }
.single.postcon h2, .single.postcon h3, .single.postcon h4,
.article .single h2, .article .single h3, .article .single h4 {
    margin: 1.7em 0 .8em;
    color: #171b24;
    font-weight: 700;
    line-height: 1.45;
}
.single.postcon img, .article .single img { height: auto; border-radius: 5px; }
.single.postcon a, .article .single a { color: var(--jn-primary); text-decoration: underline; text-underline-offset: 3px; }
.risk-notice {
    margin: 28px 0 20px;
    padding: 16px 18px;
    color: #765920;
    font-size: 14px;
    line-height: 1.75;
    border: 1px solid #f2dfb5;
    border-radius: 6px;
    background: #fffaf0;
}
.article .tags { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--jn-line); }
.pages { margin-top: 20px; border-radius: var(--jn-radius); box-shadow: var(--jn-shadow); background: #fff; }

/* Footer */
.footer {
    padding: 34px 0;
    color: #aeb6c5;
    border: 0;
    background: #242a34;
}
.footer-brand { margin-bottom: 7px; color: #fff; font-size: 18px; font-weight: 700; }
.footer-copy { color: #aeb6c5; font-size: 13px; }
.footer-links { margin-top: 10px; }
.footer-links a { margin: 0 9px; color: #d8dde6; }

/* Security and accessibility fallbacks */
[target="_blank"] { text-decoration-skip-ink: auto; }
@font-face {
    font-family: 'iconfont';
    src: url('fonts/iconfont.woff2') format('woff2'), url('fonts/iconfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@media (max-width: 1220px) {
    .wrap { width: auto; max-width: none; padding-right: 20px; padding-left: 20px; }
    .header .wrap { padding-right: 20px; padding-left: 20px; }
    .jn-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .jn-couplet { display: none !important; }
}

@media (max-width: 1080px) {
    .header { min-height: 54px; }
    .header .name, .logo { height: 54px; }
    .header .name a { font-size: 21px; line-height: 54px; }
    .logo a { height: 54px; }
    .head { padding: 0; }
    .menu { border-top-color: var(--jn-line); background: #fff; }
    .menu ul { height: auto; }
    .menu ul li { border-color: var(--jn-line); }
    .main { padding-top: 20px; }
    .main.fixed { padding-top: 74px; }
    .jn-layout { display: block; }
    .jn-layout > .content { width: 100%; }
    .jn-layout > .sidebar { display: none; }
    .jn-hero { height: 390px; }
}

@media (max-width: 750px) {
    .wrap, .header .wrap { padding-right: 14px; padding-left: 14px; }
    .main { padding-top: 14px; padding-bottom: 25px; }
    .jn-hero {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: 230px 105px;
        gap: 7px;
        height: auto;
        margin-bottom: 18px;
    }
    .jn-feature-main { grid-column: 1 / 4; grid-row: 1; }
    .jn-feature:not(.jn-feature-main) { grid-row: 2; }
    .jn-feature-copy { right: 10px; bottom: 9px; left: 10px; }
    .jn-feature-main .jn-feature-copy { right: 18px; bottom: 17px; left: 18px; }
    .jn-feature h2 { font-size: 12px; -webkit-line-clamp: 2; }
    .jn-feature-main h2 { font-size: 20px; }
    .jn-feature:not(.jn-feature-main) .jn-kicker { display: none; }
    .jn-feature time { display: none; }
    .jn-topics { margin-bottom: 18px; padding: 18px 16px; }
    .jn-ad { margin-bottom: 16px; border-radius: 5px; }
    .jn-ad-banner, .jn-ad-banner img { height: 56px; max-height: 56px; }
    .jn-ad-banner img { min-height: 0; }
    .jn-topic-grid { grid-template-columns: repeat(2, 1fr); gap: 9px; }
    .jn-topic-card { min-height: 82px; padding: 15px; }
    .jn-topic-card strong { font-size: 15px; }
    .jn-section-head { margin-bottom: 13px; }
    .jn-section-head h2 { font-size: 19px; }
    .jn-section-head > span { display: none; }
    .jn-feed-head { padding: 16px 18px; }
    .jn-feed .block { padding: 0 18px; }
    .jn-feed .post {
        grid-template-columns: 112px minmax(0, 1fr);
        column-gap: 13px;
        padding: 18px 0;
    }
    .jn-feed .postimg { width: 112px; }
    .jn-feed .post h2 { margin-top: -2px; line-height: 1.45; }
    .jn-feed .post h2 a { font-size: 16px; }
    .jn-feed .post .info { margin-bottom: 0; font-size: 12px; }
    .jn-feed .post .info .user, .jn-feed .post .info .view, .jn-feed .post .info .cmt { display: none; }
    .jn-feed .post .intro, .jn-feed .post > div:last-child { display: none; }
    .jn-card-grid { grid-template-columns: 1fr; gap: 14px; padding: 0; }
    .jn-card-grid .post { padding: 0 16px 16px; }
    .jn-card-grid .postimg { width: calc(100% + 32px); margin-right: -16px; margin-left: -16px; }
    .jn-catalog-header { padding: 20px; }
    .jn-catalog-header h1 { font-size: 23px; }
    .article .block, .page .block { padding: 24px 20px; }
    .article .post h1, .page .post h1 { margin-top: 14px; font-size: 25px; line-height: 1.45; }
    .article .article-meta { gap: 5px 12px; font-size: 12px; }
    .article .article-meta .view { display: none; }
    .article-summary { padding: 14px 15px; font-size: 14px; }
    .single.postcon, .article .single { font-size: 17px; line-height: 1.9; }
    .footer { padding: 28px 14px; }
}
