/* ============================================
   逗号CMS - 新闻资讯主题样式
   ============================================ */

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
article, aside, details, figcaption, figure, footer, header, main, nav, section { display: block; }

body {
    background-color: #f5f6f8;
    color: #222;
    font: 15px/1.7 'Microsoft YaHei', 'PingFang SC', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    word-break: break-all;
}
a { text-decoration: none; outline: none; color: #333; transition: color .25s; }
a:hover { color: #2b7cd3; }
li { list-style: none; }
img { max-width: 100%; vertical-align: middle; border: none; }
input, textarea, button { appearance: none; border: none; font-family: inherit; }
input:focus, textarea:focus, button:focus { outline: none; }

:root {
    --douhao-primary: #2b7cd3;
    --douhao-primary-dark: #1f6ab8;
    --douhao-red: #e05244;
    --douhao-orange: #ef8f31;
    --douhao-dark: #1f2937;
    --douhao-gray: #6b7280;
    --douhao-light: #9ca3af;
    --douhao-border: #eaecef;
    --douhao-radius: 6px;
    --douhao-shadow: 0 1px 3px rgba(0,0,0,.04);
}

.douhao-inner { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* ========== 顶部导航 ========== */
.douhao-header {
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
    position: sticky;
    top: 0;
    z-index: 999;
}
.douhao-header-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.douhao-logo { flex-shrink: 0; }
.douhao-logo a {
    display: flex;
    align-items: center;
    font-size: 22px;
    font-weight: 700;
    color: var(--douhao-primary);
    height: 40px;
}
.douhao-logo img { height: 36px; width: auto; max-width: 160px; object-fit: contain; }

.douhao-nav { flex: 1; min-width: 0; }
.douhao-nav-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}
.douhao-nav-menu li a {
    display: block;
    padding: 8px 14px;
    color: #333;
    font-size: 15px;
    line-height: 1.5;
    border-radius: 4px;
    transition: all .25s;
}
.douhao-nav-menu li a:hover { color: var(--douhao-primary); background: #f0f6ff; }
.douhao-nav-menu li.douhao-current a { color: var(--douhao-primary); font-weight: 600; }

.douhao-header-tools {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.douhao-search { width: 220px; }
.douhao-search-input-wrap {
    position: relative;
    background: #f4f5f7;
    border-radius: 18px;
    overflow: hidden;
}
.douhao-search-input {
    width: 100%;
    padding: 8px 44px 8px 16px;
    background: transparent;
    color: #333;
    font-size: 14px;
    line-height: 20px;
}
.douhao-search-input::placeholder { color: #9ca3af; }
.douhao-search-btn {
    position: absolute;
    right: 0;
    top: 0;
    width: 40px;
    height: 100%;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    font-size: 14px;
    transition: color .25s;
}
.douhao-search-btn:hover { color: var(--douhao-primary); }

.douhao-nav-toggle {
    display: none;
    width: 36px;
    height: 36px;
    background: var(--douhao-primary);
    border-radius: 4px;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
}
.douhao-nav-toggle span {
    position: absolute;
    left: 22%;
    top: 50%;
    transform: translateY(-50%);
    width: 56%;
    height: 2px;
    background-color: #fff;
    transition: background .3s;
}
.douhao-nav-toggle span::before,
.douhao-nav-toggle span::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #fff;
    transition: all .3s;
}
.douhao-nav-toggle span::before { bottom: 7px; }
.douhao-nav-toggle span::after { top: 7px; }
.douhao-nav-toggle.douhao-open span { background-color: transparent; }
.douhao-nav-toggle.douhao-open span::before { transform: rotate(45deg); bottom: 0; }
.douhao-nav-toggle.douhao-open span::after { transform: rotate(-45deg); top: 0; }

/* ========== 主体 ========== */
.douhao-wrapper { padding: 20px 0; }

.douhao-container {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.douhao-main { flex: 1; min-width: 0; }
.douhao-side { width: 320px; flex-shrink: 0; }

/* ========== 卡片通用 ========== */
.douhao-card {
    background: #fff;
    border-radius: var(--douhao-radius);
    box-shadow: var(--douhao-shadow);
    border: 1px solid var(--douhao-border);
    margin-bottom: 16px;
    overflow: hidden;
}
.douhao-card:last-child { margin-bottom: 0; }

/* ========== 筛选区 ========== */
.douhao-filter { padding: 6px 18px; }
.douhao-filter-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
}
.douhao-filter-row:last-child { border-bottom: none; }
.douhao-filter-label {
    flex-shrink: 0;
    color: #9ca3af;
    font-weight: 500;
    line-height: 26px;
    width: 60px;
}
.douhao-filter-label i { margin-right: 4px; }
.douhao-filter-list {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.douhao-filter-list a {
    display: inline-block;
    padding: 4px 12px;
    color: #4b5563;
    font-size: 13px;
    line-height: 1.6;
    border-radius: 14px;
    transition: all .25s;
}
.douhao-filter-list a:hover {
    background: #f0f6ff;
    color: var(--douhao-primary);
}
.douhao-filter-list a.douhao-filter-current {
    background: var(--douhao-primary);
    color: #fff;
    font-weight: 500;
}
.douhao-filter-list a i { margin-right: 3px; font-size: 12px; }

/* ========== 列表头 ========== */
.douhao-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid var(--douhao-border);
}
.douhao-list-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--douhao-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}
.douhao-list-title i { color: var(--douhao-primary); }
.douhao-list-tag {
    display: inline-block;
    padding: 1px 8px;
    font-size: 11px;
    font-weight: 500;
    background: #e0f0ff;
    color: var(--douhao-primary);
    border-radius: 8px;
}
.douhao-list-tag-hot { background: #fdecea; color: #c0392b; }
.douhao-list-tag-latest { background: #e6f4ea; color: #1e7e34; }
.douhao-list-count { font-size: 13px; color: var(--douhao-light); }

/* ========== 文章列表 ========== */
.douhao-articles { padding: 0; }
.douhao-article-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    border-bottom: 1px solid #f3f4f6;
    transition: background .25s;
}
.douhao-article-item:last-child { border-bottom: none; }
.douhao-article-item:hover { background: #fafbfc; }

.douhao-article-thumb {
    flex-shrink: 0;
    width: 200px;
    height: 130px;
    border-radius: 4px;
    overflow: hidden;
    background: #f4f5f7;
    display: block;
}
.douhao-article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.douhao-article-item:hover .douhao-article-thumb img { transform: scale(1.05); }

.douhao-article-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.douhao-article-title {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--douhao-dark);
    margin-bottom: 10px;
}
.douhao-article-title a { color: var(--douhao-dark); }
.douhao-article-title a:hover { color: var(--douhao-primary); }
.douhao-badge {
    display: inline-block;
    padding: 1px 8px;
    margin-left: 6px;
    font-size: 11px;
    line-height: 18px;
    font-weight: 500;
    vertical-align: middle;
    border-radius: 10px;
}
.douhao-badge-recommend { background: #fff3e0; color: #d35400; }
.douhao-badge-hot { background: #fdecea; color: #c0392b; }

.douhao-article-excerpt {
    color: var(--douhao-gray);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 12px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.douhao-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 12.5px;
    color: var(--douhao-light);
}
.douhao-article-meta i { margin-right: 4px; }

/* ========== 分页 ========== */
.douhao-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    gap: 12px;
    flex-wrap: wrap;
}
.douhao-page-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    background: #f4f5f7;
    color: #4b5563;
    font-size: 14px;
    border-radius: 4px;
    transition: all .25s;
}
.douhao-page-btn:hover { background: var(--douhao-primary); color: #fff; }
.douhao-page-disabled { color: #cbd5e0; cursor: not-allowed; background: #f4f5f7; }
.douhao-page-disabled:hover { background: #f4f5f7; color: #cbd5e0; }
.douhao-page-info { font-size: 13px; color: var(--douhao-gray); }
.douhao-page-info strong { color: var(--douhao-primary); }

/* ========== 空状态 ========== */
.douhao-empty {
    text-align: center;
    padding: 80px 20px;
    color: #cbd5e0;
}
.douhao-empty i { font-size: 48px; display: block; margin-bottom: 12px; }
.douhao-empty p { color: var(--douhao-light); font-size: 14px; }

/* ========== 个人信息卡 ========== */
.douhao-profile {
    text-align: center;
    padding-bottom: 20px;
    position: relative;
    z-index: 5;
    overflow: visible;
}
.douhao-profile-cover {
    height: 110px;
    background: linear-gradient(135deg, #4facfe 0%, #2b7cd3 100%);
}
.douhao-profile-avatar {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    border: 4px solid #fff;
    background: #fff;
    margin: -42px auto 12px;
    position: relative;
    z-index: 2;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    display: flex;
    align-items: center;
    justify-content: center;
}
.douhao-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
    background: #fff;
    border-radius: 50%;
}
.douhao-profile-avatar-text {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: 700;
    color: var(--douhao-primary);
    background: #e8f2ff;
    border-radius: 50%;
}
.douhao-profile-name {
    font-size: 17px;
    font-weight: 600;
    color: var(--douhao-dark);
    padding: 0 16px 14px;
}

.douhao-profile-contact {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 0 16px 12px;
}
.douhao-contact-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 14px;
    font-size: 13px;
    color: #fff;
    border-radius: 4px;
    transition: opacity .25s;
}
.douhao-contact-item:hover { color: #fff; opacity: .88; }
.douhao-contact-qq { background: #12b7f5; }
.douhao-contact-wechat {
    background: #07c160;
    position: relative;
    z-index: 10;
}
.douhao-contact-wechat:hover { z-index: 20; }
.douhao-contact-mail { background: #2b7cd3; }
.douhao-contact-item i { font-size: 14px; }

.douhao-contact-qrcode {
    position: absolute;
    left: 50%;
    bottom: 42px;
    width: 150px;
    height: 150px;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 8px;
    box-shadow: 0 6px 24px rgba(0,0,0,.15);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(6px);
    transition: opacity .25s, visibility .25s, transform .25s;
    pointer-events: none;
    z-index: 99;
}
.douhao-contact-qrcode::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -7px;
    width: 12px;
    height: 12px;
    background: #fff;
    border-right: 1px solid rgba(0,0,0,.08);
    border-bottom: 1px solid rgba(0,0,0,.08);
    transform: translateX(-50%) rotate(45deg);
}
.douhao-contact-wechat:hover .douhao-contact-qrcode {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.douhao-profile-worktime {
    font-size: 12.5px;
    color: #5c626d;
    padding: 20px 16px 16px;
    border-bottom: 1px dashed var(--douhao-border);
    margin-bottom: 10px;
}

.douhao-profile-search { display: none; padding: 0 16px 4px; }
.douhao-profile-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
    background: #f4f5f7;
    border: 1px solid var(--douhao-border);
    border-radius: 6px;
    overflow: hidden;
}
.douhao-profile-search-icon {
    position: absolute;
    left: 12px;
    color: #9ca3af;
    font-size: 13px;
    pointer-events: none;
}
.douhao-profile-search-input {
    flex: 1;
    padding: 9px 12px 9px 34px;
    background: transparent;
    font-size: 14px;
    color: #333;
    line-height: 20px;
    min-width: 0;
}
.douhao-profile-search-input::placeholder { color: #b8bcc1; }
.douhao-profile-search-btn {
    flex-shrink: 0;
    padding: 9px 16px;
    background: var(--douhao-primary);
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    transition: background .25s;
}
.douhao-profile-search-btn:hover { background: var(--douhao-primary-dark); }

/* ========== 侧栏 Widget ========== */
.douhao-widget-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--douhao-dark);
    border-bottom: 1px solid var(--douhao-border);
    padding: 14px 18px;
    position: relative;
}
.douhao-widget-title::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 14px;
    border-radius: 1.5px;
    background: var(--douhao-primary);
}

.douhao-side-tags {
    padding: 14px 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.douhao-side-tags a {
    display: inline-block;
    padding: 4px 12px;
    background: #f4f5f7;
    color: #4b5563;
    border-radius: 14px;
    font-size: 12.5px;
    line-height: 1.6;
    transition: all .25s;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.douhao-side-tags a:hover {
    background: var(--douhao-primary);
    color: #fff;
    transform: translateY(-1px);
}

.douhao-side-links {
    padding: 14px 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.douhao-side-links a {
    display: inline-block;
    padding: 4px 12px;
    background: #f4f5f7;
    border-radius: 14px;
    color: #4b5563;
    font-size: 12.5px;
    line-height: 1.6;
    transition: all .25s;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.douhao-side-links a:hover {
    background: var(--douhao-primary);
    color: #fff;
    transform: translateY(-1px);
}

.douhao-side-empty {
    color: #cbd5e0;
    font-size: 13px;
    padding: 4px 0;
}

/* ========== 页脚 ========== */
.douhao-footer {
    background: #1f2937;
    color: #9ca3af;
    padding: 24px 0;
    margin-top: 30px;
    font-size: 14px;
    line-height: 1.9;
}
.douhao-footer .douhao-inner { padding: 0 20px; }
.douhao-footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}
.douhao-footer-left p { margin: 0; }
.douhao-footer a { color: #9ca3af; }
.douhao-footer a:hover { color: #fff; }
.douhao-footer-stat {
    margin-top: 10px;
    text-align: center;
    font-size: 12.5px;
    color: #6b7280;
}

.douhao-footer-sns {
    display: flex;
    align-items: center;
    gap: 12px;
}
.douhao-sns {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    color: #9ca3af;
    font-size: 18px;
    transition: background .25s, color .25s, transform .25s;
}
.douhao-sns:hover {
    background: var(--douhao-primary);
    color: #fff;
    transform: translateY(-2px);
}
.douhao-sns-qq:hover { background: #12b7f5; }
.douhao-sns-wechat:hover { background: #07c160; }
.douhao-sns-qrcode {
    position: absolute;
    left: 50%;
    bottom: 46px;
    width: 160px;
    height: 160px;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 8px;
    box-shadow: 0 6px 24px rgba(0,0,0,.15);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(6px);
    transition: opacity .25s, visibility .25s, transform .25s;
    pointer-events: none;
    z-index: 10;
}
.douhao-sns-qrcode::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -7px;
    width: 12px;
    height: 12px;
    background: #fff;
    border-right: 1px solid rgba(0,0,0,.08);
    border-bottom: 1px solid rgba(0,0,0,.08);
    transform: translateX(-50%) rotate(45deg);
}
.douhao-sns-wechat:hover .douhao-sns-qrcode {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ========== 返回顶部 ========== */
.douhao-back-top {
    position: fixed;
    right: 24px;
    bottom: 30px;
    width: 44px;
    height: 44px;
    background: var(--douhao-primary);
    color: #fff;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    z-index: 999;
    box-shadow: 0 2px 12px rgba(43,124,211,.4);
    transition: all .3s;
}
.douhao-back-top.douhao-show { display: flex; }
.douhao-back-top:hover {
    background: var(--douhao-primary-dark);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(43,124,211,.5);
}

/* ========== 响应式 ========== */
@media only screen and (max-width: 1024px) {
    .douhao-header-inner { padding: 0 16px; gap: 12px; height: 56px; }
    .douhao-logo a { font-size: 18px; height: 32px; }
    .douhao-logo img { height: 30px; }

    .douhao-nav {
        position: fixed;
        left: 0;
        top: 56px;
        width: 100%;
        height: calc(100% - 56px);
        background: #fff;
        overflow-y: auto;
        display: none;
        z-index: 998;
        box-shadow: 0 8px 20px rgba(0,0,0,.08);
    }
    .douhao-nav.douhao-open { display: block; }
    .douhao-nav-menu {
        flex-direction: column;
        padding: 12px 20px;
        gap: 0;
        align-items: stretch;
    }
    .douhao-nav-menu li {
        border-bottom: 1px solid var(--douhao-border);
    }
    .douhao-nav-menu li:last-child { border-bottom: none; }
    .douhao-nav-menu li a {
        padding: 14px 8px;
        font-size: 15px;
        border-radius: 0;
    }
    .douhao-nav-menu li.douhao-current a { background: #f0f6ff; }
    .douhao-search { width: 180px; }
    .douhao-nav-toggle { display: block; }

    .douhao-container { gap: 14px; flex-wrap: wrap; }
    .douhao-main { width: 100%; order: 2; }
    .douhao-side { width: 100%; display: contents; }
    .douhao-profile { order: 1; width: 100%; }
    .douhao-side-widget { width: 100%; order: 3; }
    .douhao-side-widget:last-child { margin-bottom: 16px; }
    .douhao-profile-search { display: block; }
}

@media only screen and (max-width: 768px) {
    .douhao-wrapper { padding: 12px 0; }
    .douhao-inner { padding: 0 12px; }
    .douhao-search { display: none; }
    .douhao-logo a { font-size: 16px; height: 28px; }
    .douhao-logo img { height: 26px; max-width: 130px; }

    .douhao-article-item { padding: 14px 12px; gap: 12px; }
    .douhao-article-thumb { width: 120px; height: 86px; }
    .douhao-article-title { font-size: 15px; margin-bottom: 6px; }
    .douhao-article-excerpt {
        font-size: 13px;
        margin-bottom: 8px;
        -webkit-line-clamp: 2;
    }
    .douhao-article-meta { font-size: 12px; gap: 10px; }
    .douhao-article-meta span:nth-child(2) { display: none; }

    .douhao-list-head { padding: 12px 14px; }
    .douhao-list-title { font-size: 15px; }
    .douhao-list-count { font-size: 12px; }

    .douhao-filter { padding: 4px 12px; }
    .douhao-filter-row { padding: 10px 0; gap: 10px; }
    .douhao-filter-label { width: 60px; font-size: 13px; }
    .douhao-filter-list a { padding: 3px 10px; font-size: 12.5px; }

    .douhao-widget-title { padding: 12px 14px; font-size: 14px; }
    .douhao-side-tags,
    .douhao-side-links { padding: 12px 14px; gap: 6px; }
    .douhao-side-tags a,
    .douhao-side-links a { font-size: 12px; padding: 3px 10px; }

    .douhao-profile-contact { padding: 0 14px 10px; }
    .douhao-contact-item { padding: 4px 12px; font-size: 12.5px; }
    .douhao-profile-worktime { font-size: 12px; padding-bottom: 12px; margin-bottom: 12px; }

    .douhao-pagination { padding: 12px 14px; }
    .douhao-page-btn { padding: 7px 16px; font-size: 13px; }

    .douhao-footer { padding: 18px 0; font-size: 13px; }
    .douhao-footer-inner { justify-content: center; text-align: center; }
    .douhao-back-top { right: 14px; bottom: 16px; width: 38px; height: 38px; font-size: 15px; }
    .douhao-sns-qrcode { bottom: 42px; width: 140px; height: 140px; }
}

@media only screen and (max-width: 480px) {
    .douhao-article-thumb { width: 100px; height: 74px; }
    .douhao-article-title { font-size: 14px; }
    .douhao-article-excerpt { -webkit-line-clamp: 2; }
}

/* ========== 文章详情页 ========== */
.douhao-article { padding: 30px 34px; }
.douhao-article-head {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--douhao-border);
    margin-bottom: 24px;
}
.douhao-article-h1 {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--douhao-dark);
    margin-bottom: 14px;
    word-break: break-word;
}
.douhao-article-info {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 13px;
    color: var(--douhao-light);
}
.douhao-article-info i { margin-right: 4px; }
.douhao-article-info a { color: var(--douhao-light); }
.douhao-article-info a:hover { color: var(--douhao-primary); }

.douhao-article-body {
    font-size: 16px;
    line-height: 1.9;
    color: #333;
    word-break: break-word;
    overflow: hidden;
}
.douhao-article-body p { margin-bottom: 18px; text-indent: 2em; }
.douhao-article-body img,
.douhao-article-body h2,
.douhao-article-body h3,
.douhao-article-body h4,
.douhao-article-body blockquote,
.douhao-article-body ul,
.douhao-article-body ol,
.douhao-article-body pre,
.douhao-article-body table {
    text-indent: 0;
}
.douhao-article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 12px auto;
    display: block;
}
.douhao-article-body h2,
.douhao-article-body h3,
.douhao-article-body h4 {
    margin: 24px 0 14px;
    color: var(--douhao-dark);
    font-weight: 600;
}
.douhao-article-body h2 { font-size: 20px; }
.douhao-article-body h3 { font-size: 18px; }
.douhao-article-body h4 { font-size: 16px; }
.douhao-article-body blockquote {
    border-left: 4px solid var(--douhao-primary);
    background: #f8fafc;
    padding: 12px 18px;
    margin: 16px 0;
    color: #555;
    border-radius: 0 6px 6px 0;
}
.douhao-article-body a { color: var(--douhao-primary); text-decoration: underline; }
.douhao-article-body ul,
.douhao-article-body ol { margin: 12px 0 18px 24px; }
.douhao-article-body li { margin-bottom: 6px; }
.douhao-article-body code {
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 14px;
    color: #d43a2a;
}
.douhao-article-body pre {
    background: #2d2d3a;
    color: #e0e0e0;
    padding: 16px 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 16px 0;
    font-size: 13px;
    line-height: 1.7;
}
.douhao-article-body pre code {
    background: none;
    color: inherit;
    padding: 0;
}
.douhao-article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}
.douhao-article-body th,
.douhao-article-body td {
    border: 1px solid var(--douhao-border);
    padding: 8px 12px;
}
.douhao-article-body th {
    background: #fafbfc;
    font-weight: 600;
}

.douhao-article-tags {
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid var(--douhao-border);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 14px;
    color: var(--douhao-gray);
}
.douhao-article-tags a {
    display: inline-block;
    padding: 3px 14px;
    background: #e8f2ff;
    color: var(--douhao-primary);
    border-radius: 14px;
    font-size: 13px;
    transition: all .25s;
}
.douhao-article-tags a:hover { background: var(--douhao-primary); color: #fff; }

/* ========== 上下篇导航 ========== */
.douhao-article-nav {
    display: flex;
    gap: 16px;
}
.douhao-nav-item {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 18px;
    margin-bottom: 16px;
    transition: border-color .25s, transform .25s;
}
.douhao-nav-item:hover { border-color: var(--douhao-primary); transform: translateY(-2px); }
.douhao-nav-label { font-size: 12px; color: var(--douhao-light); }
.douhao-nav-title {
    font-size: 14px;
    color: var(--douhao-dark);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.douhao-nav-next { text-align: right; }
.douhao-nav-empty {
    color: #cbd5e0;
    font-size: 13px;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* ========== 相关文章 ========== */
.douhao-related-list {
    padding: 18px 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.douhao-related-list li { overflow: hidden; }
.douhao-related-list li a { display: flex; gap: 12px; align-items: flex-start; }
.douhao-related-thumb {
    width: 110px;
    height: 76px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    background: #f4f5f7;
}
.douhao-related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}
.douhao-related-list li a:hover .douhao-related-thumb img { transform: scale(1.05); }
.douhao-related-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.douhao-related-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--douhao-dark);
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color .25s;
}
.douhao-related-list li a:hover .douhao-related-title { color: var(--douhao-primary); }
.douhao-related-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--douhao-light);
}

/* ========== 侧栏列表 ========== */
.douhao-side-list { padding: 14px 18px; }
.douhao-side-list li {
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px dashed var(--douhao-border);
    overflow: hidden;
}
.douhao-side-list li:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: none; }
.douhao-side-list li a { display: flex; gap: 10px; align-items: center; }
.douhao-side-thumb {
    width: 76px;
    height: 54px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    background: #f4f5f7;
}
.douhao-side-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}
.douhao-side-list li a:hover .douhao-side-thumb img { transform: scale(1.06); }
.douhao-side-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.douhao-side-title {
    font-size: 14px;
    color: var(--douhao-dark);
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color .25s;
}
.douhao-side-list li a:hover .douhao-side-title { color: var(--douhao-primary); }
.douhao-side-meta {
    font-size: 12px;
    color: var(--douhao-light);
}

/* ========== 文章页移动端 ========== */
@media only screen and (max-width: 1024px) {
    .douhao-side-list { padding: 12px 14px; }
    .douhao-side-list li { padding-bottom: 10px; margin-bottom: 10px; }
    .douhao-related-list { grid-template-columns: 1fr; padding: 14px 16px; }
    .douhao-related-thumb { width: 90px; height: 64px; }
}

@media only screen and (max-width: 768px) {
    .douhao-article { padding: 18px 16px; }
    .douhao-article-h1 { font-size: 19px; margin-bottom: 12px; }
    .douhao-article-head { padding-bottom: 16px; margin-bottom: 18px; }
    .douhao-article-info { gap: 12px; font-size: 12px; }
    .douhao-article-body { font-size: 15px; line-height: 1.85; }
    .douhao-article-body p { margin-bottom: 14px; }
    .douhao-article-nav { flex-direction: column; }
    .douhao-nav-next { text-align: left; }
    .douhao-nav-item { margin-bottom: 0; }
    .douhao-article-nav { gap: 12px; }
}

.douhao-main .pagination {
    background: #fff;
    border-radius: var(--douhao-radius);
    box-shadow: var(--douhao-shadow);
    border: 1px solid var(--douhao-border);
    padding: 16px 20px;
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}
.douhao-main .pagination > span {
    font-size: 13px;
    color: var(--douhao-gray);
    padding: 0 10px;
}
.douhao-main .pagination a,
.douhao-main .pagination .current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: #f4f5f7;
    border-radius: 4px;
    font-size: 13px;
    color: #4b5563;
    transition: all .25s;
}
.douhao-main .pagination a:hover {
    background: var(--douhao-primary);
    color: #fff;
}
.douhao-main .pagination .current {
    background: var(--douhao-primary);
    color: #fff;
}
/* ========== 搜索高亮 ========== */
.douhao-search-hit {
    color: var(--douhao-primary);
    font-style: normal;
    font-weight: 700;
    background: #e8f2ff;
    padding: 0 2px;
    border-radius: 2px;
}

/* ========== 搜索标签聚合页 ========== */
.douhao-tags-page {
    padding: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.douhao-tag-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 18px;
    background: #f4f5f7;
    color: #4b5563;
    border-radius: 20px;
    font-size: 14px;
    line-height: 1.5;
    transition: all .25s;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.douhao-tag-item:hover {
    background: var(--douhao-primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(43,124,211,.3);
}
.douhao-tag-count {
    display: inline-block;
    padding: 0 8px;
    background: rgba(0,0,0,.06);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
    line-height: 18px;
}
.douhao-tag-item:hover .douhao-tag-count {
    background: rgba(255,255,255,.25);
}

@media only screen and (max-width: 768px) {
    .douhao-tags-page { padding: 16px 14px; gap: 8px; }
    .douhao-tag-item { padding: 5px 14px; font-size: 13px; }
    .douhao-tag-count { padding: 0 6px; font-size: 11px; line-height: 16px; }
}
/* ========== 侧栏标题加「更多」 ========== */
.douhao-widget-title-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.douhao-widget-title-flex .douhao-widget-more {
    font-size: 13px;
    font-weight: 400;
    color: var(--douhao-light);
    transition: color .25s;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.douhao-widget-title-flex .douhao-widget-more:hover {
    color: var(--douhao-primary);
}
.douhao-widget-title-flex .douhao-widget-more i {
    font-size: 11px;
}
.douhao-side-list li a { align-items: flex-start; }
.douhao-side-list .douhao-side-text { justify-content: center; }
.douhao-article-item .douhao-article-content { justify-content: center; }

/* ========== 阅读全文朦胧遮罩 ========== */
.douhao-readmore-preview {
    position: relative;
}
.douhao-readmore-overlay {
    position: relative;
    margin-top: -150px;
    padding-top: 80px;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.92) 50%, rgba(255,255,255,0.98) 80%, #fff 100%);
    text-align: center;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    pointer-events: none;
}
.douhao-readmore-overlay .douhao-readmore-overlay-text {
    padding: 20px 30px 30px;
    pointer-events: auto;
}
.douhao-readmore-overlay-arrow {
    animation: douhaoArrowBounce 1.5s ease-in-out infinite;
    font-size: 32px;
    color: var(--douhao-primary);
    display: block;
    margin-bottom: 8px;
}
.douhao-readmore-overlay-arrow i {
    display: block;
}
.douhao-readmore-overlay-hint {
    font-size: 14px;
    color: #999;
    letter-spacing: 2px;
}
@keyframes douhaoArrowBounce {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.6;
    }
    50% {
        transform: translateY(10px);
        opacity: 1;
    }
}
.douhao-readmore-overlay-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}
.douhao-readmore-overlay-link:hover .douhao-readmore-overlay-arrow {
    opacity: 0.8;
}
.douhao-readmore-overlay-link:hover .douhao-readmore-overlay-hint {
    color: var(--douhao-primary);
}

/* ========== 阅读全文按钮 ========== */
.douhao-readmore-wrapper {
    text-align: center;
    padding: 20px 0 10px;
    margin-top: 10px;
}
.douhao-readmore-btn {
    background: var(--douhao-primary);
    color: #fff;
    border: none;
    padding: 12px 40px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(43, 124, 211, 0.3);
}
.douhao-readmore-btn:hover {
    background: var(--douhao-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(43, 124, 211, 0.4);
}
.douhao-readmore-btn i {
    margin-right: 8px;
}

/* ========== 阅读全文广告弹窗 ========== */
.douhao-readmore-ad-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}
.douhao-readmore-ad-overlay.douhao-show {
    display: flex;
}
.douhao-readmore-ad-box {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    max-width: 520px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.douhao-readmore-ad-tip {
    text-align: center;
    font-size: 15px;
    color: #555;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.douhao-countdown-number {
    display: inline-block;
    font-size: 22px;
    font-weight: 700;
    color: var(--douhao-primary);
    min-width: 30px;
    text-align: center;
    background: #e8f2ff;
    padding: 0 10px;
    border-radius: 6px;
    line-height: 1.4;
}
.douhao-countdown-text {
    font-size: 15px;
    color: #555;
}
.douhao-readmore-ad-body {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}
.douhao-readmore-ad-body img {
    max-width: 100%;
    height: auto;
}

/* ========== 阅读全文响应式 ========== */
@media only screen and (max-width: 768px) {
    .douhao-readmore-overlay {
        margin-top: -120px;
        padding-top: 60px;
        min-height: 100px;
    }
    .douhao-readmore-overlay-arrow {
        font-size: 26px;
    }
    .douhao-readmore-overlay-hint {
        font-size: 13px;
    }
    .douhao-readmore-btn {
        padding: 10px 30px;
        font-size: 14px;
    }
    .douhao-readmore-ad-box {
        padding: 20px;
    }
    .douhao-readmore-ad-tip .douhao-countdown-number {
        font-size: 18px;
        min-width: 24px;
    }
    .douhao-readmore-ad-tip .douhao-countdown-text {
        font-size: 13px;
    }
}