/* ============================================
   逗号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: #fafafa;
    color: #333;
    font: 16px/1.875 'Microsoft YaHei', 'PingFang SC', Arial, sans-serif;
    word-break: break-all;
    text-align: justify;
}
a { text-decoration: none; outline: none; color: #333; transition: color 0.25s; }
a:hover { color: #d83d30; }
li { list-style: none; }
img { max-width: 100%; vertical-align: middle; border: none; }
input, textarea { appearance: none; border: none; font-family: inherit; }
input:focus, textarea:focus { outline: none; }

:root {
    --douhao-primary: #d83d30;
    --douhao-blue: #3796f6;
    --douhao-blue-dark: #2f7cd2;
    --douhao-dark: #364e65;
    --douhao-gray: rgba(54, 78, 101, 0.6);
    --douhao-border: rgba(133, 153, 171, 0.2);
    --douhao-radius: 6px;
    --douhao-shadow: 0 2px 26px 0 rgba(133, 153, 171, 0.1);
}

.douhao-inner { width: 90%; max-width: 1600px; margin: 0 auto; }

/* ========== 顶部 ========== */
.douhao-header {
    background-color: #2d2f32;
    position: sticky;
    top: 0;
    z-index: 999;
}
.douhao-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    gap: 24px;
}
.douhao-logo { flex-shrink: 0; }
.douhao-logo a {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    height: 40px;
}
.douhao-logo a:hover { color: #fff; }
.douhao-logo img { height: 40px; width: auto; max-width: 180px; object-fit: contain; }

.douhao-nav { flex: 1; min-width: 0; }
.douhao-nav-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}
.douhao-nav-menu li { padding: 0 8px; }
.douhao-nav-menu li a {
    display: block;
    padding: 8px 14px;
    color: #dadada;
    font-size: 16px;
    line-height: 1.5;
    border-radius: 4px;
    transition: all 0.25s;
}
.douhao-nav-menu li a:hover { color: #fff; }
.douhao-nav-menu li.douhao-current a { color: var(--douhao-blue); }

.douhao-header-tools {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.douhao-search { width: 240px; }
.douhao-search-input-wrap {
    position: relative;
    background-color: #424447;
    border-radius: 4px;
    overflow: hidden;
}
.douhao-search-input {
    width: 100%;
    padding: 8px 44px 8px 14px;
    background: transparent;
    color: #fff;
    font-size: 14px;
    line-height: 24px;
}
.douhao-search-input::placeholder { color: #8a8f95; }
.douhao-search-btn {
    position: absolute;
    right: 0;
    top: 0;
    width: 40px;
    height: 100%;
    background: transparent;
    color: #b8bcc1;
    cursor: pointer;
    font-size: 14px;
    transition: color 0.25s;
}
.douhao-search-btn:hover { color: var(--douhao-blue); }

.douhao-nav-toggle {
    display: none;
    width: 32px;
    height: 32px;
    background-color: var(--douhao-blue);
    border-radius: 3px;
    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 0.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 0.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: 1.389%;
    align-items: flex-start;
}
.douhao-side-left { width: 20.834%; flex-shrink: 0; }
.douhao-side-right { width: 20.834%; flex-shrink: 0; }
.douhao-main { flex: 1; min-width: 0; }

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

.douhao-widget-title {
    font-size: 16px;
    line-height: 1.125;
    color: var(--douhao-dark);
    border-bottom: 1px solid var(--douhao-border);
    padding: 20px;
    position: relative;
    font-weight: 600;
}
.douhao-widget-title::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 14px;
    border-radius: 1.5px;
    background-color: var(--douhao-blue);
}

/* ========== 个人信息卡 ========== */
.douhao-profile {
    text-align: center;
}
.douhao-profile-cover {
    height: 100px;
    background: linear-gradient(135deg, #3796f6 0%, #2f7cd2 100%);
}
.douhao-profile-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 5px solid #fff;
    background-color: #fff;
    margin: -45px auto 12px;
    position: relative;
    z-index: 2;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 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-color: #fff;
    border-radius: 50%;
}
.douhao-profile-avatar-text {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 700;
    color: var(--douhao-blue);
    background-color: #eef6ff;
    border-radius: 50%;
}
.douhao-profile-name {
    font-size: 18px;
    line-height: 1.5;
    color: var(--douhao-dark);
    padding: 0 16px 16px;
    font-weight: 600;
}
.douhao-profile-stats {
    display: flex;
    border-top: 1px solid var(--douhao-border);
}
.douhao-profile-stat {
    flex: 1;
    padding: 14px 8px;
    text-align: center;
    font-size: 13px;
    color: var(--douhao-gray);
}
.douhao-profile-stat + .douhao-profile-stat { border-left: 1px solid var(--douhao-border); }
.douhao-profile-stat-label { line-height: 1.75; }
.douhao-profile-stat-value {
    display: block;
    font-size: 18px;
    line-height: 1.35;
    color: var(--douhao-dark);
    font-weight: 700;
}

/* ========== 移动端搜索框（PC 端隐藏） ========== */
.douhao-profile-search {
    display: none;
    padding: 0 14px 16px;
}
.douhao-profile-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
    background-color: #f7f8fa;
    border: 1px solid var(--douhao-border);
    border-radius: 6px;
    overflow: hidden;
}
.douhao-profile-search-icon {
    position: absolute;
    left: 12px;
    color: #999;
    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-color: var(--douhao-blue);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.25s;
}
.douhao-profile-search-btn:hover { background-color: var(--douhao-blue-dark); }

/* ========== 侧栏列表 ========== */
.douhao-side-widget .douhao-side-list { padding: 20px; }
.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;
    color: var(--douhao-dark);
    font-size: 14px;
    line-height: 1.75;
}
.douhao-side-list li a:hover { color: var(--douhao-primary); }
.douhao-side-thumb {
    width: 80px;
    height: 55px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    background-color: #f4f4f4;
}
.douhao-side-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.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,
.douhao-side-list .douhao-side-text {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}
.douhao-side-meta {
    font-size: 12px;
    color: var(--douhao-gray);
    line-height: 1.5;
}
.douhao-side-meta i { margin-right: 3px; }
.douhao-side-empty {
    color: #ccc;
    font-size: 13px;
    text-align: center;
    padding: 12px 0;
    border-bottom: none !important;
}

.douhao-side-recommend .douhao-side-thumb { width: 70px; height: 50px; }

/* ========== 搜索标签 ========== */
.douhao-side-tags {
    padding: 18px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.douhao-side-tags a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    background-color: #f7f8fa;
    color: #666;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.5;
    transition: all 0.25s;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.douhao-side-tags a:hover {
    background-color: var(--douhao-blue);
    color: #fff;
    transform: translateY(-1px);
}
.douhao-side-tags .douhao-tag-count { font-size: 11px; opacity: 0.7; }
.douhao-side-tags a:hover .douhao-tag-count { opacity: 1; }

/* ========== 友情链接 ========== */
.douhao-side-links {
    padding: 16px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.douhao-side-links a {
    display: inline-block;
    padding: 4px 12px;
    background-color: #f7f8fa;
    border-radius: 14px;
    color: #666;
    font-size: 13px;
    line-height: 1.5;
    transition: all 0.25s;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.douhao-side-links a:hover {
    background-color: var(--douhao-blue);
    color: #fff;
    transform: translateY(-1px);
}

/* ========== 中栏文章列表 ========== */
.douhao-list-item {
    position: relative;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 0 16px;
    transition: box-shadow 0.3s;
}
.douhao-list-item:hover {
    box-shadow: 0 4px 20px rgba(133, 153, 171, 0.18);
}
.douhao-list-title {
    width: 100%;
    font-size: 18px;
    line-height: 1.6;
    color: var(--douhao-dark);
    margin-bottom: 12px;
    font-weight: 700;
}
.douhao-list-title a { color: var(--douhao-dark); }
.douhao-list-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: #d83d30; }
.douhao-badge-hot { background: #fdecea; color: #c0392b; }

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

.douhao-list-excerpt {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    line-height: 1.875;
    color: var(--douhao-gray);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.douhao-list-mode-2 .douhao-list-thumb { order: 2; }
.douhao-list-mode-2 .douhao-list-excerpt { order: 1; }

.douhao-list-meta {
    width: 100%;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--douhao-border);
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 13px;
    color: var(--douhao-gray);
    line-height: 1.5;
}
.douhao-list-meta span { display: inline-flex; align-items: center; gap: 4px; }
.douhao-list-meta a { color: var(--douhao-gray); }
.douhao-list-meta a:hover { color: var(--douhao-primary); }
.douhao-list-views { margin-left: auto; }

.douhao-list-more {
    text-align: center;
    padding: 24px 0 8px;
}
.douhao-list-more a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 32px;
    background-color: #fff;
    border: 1px solid var(--douhao-border);
    border-radius: 30px;
    color: #666;
    font-size: 15px;
    transition: all 0.25s;
    box-shadow: var(--douhao-shadow);
}
.douhao-list-more a:hover {
    background-color: var(--douhao-blue);
    color: #fff;
    border-color: var(--douhao-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(55, 150, 246, 0.3);
}

/* ========== 空状态 ========== */
.douhao-empty {
    text-align: center;
    padding: 60px 20px;
    color: #ccc;
}
.douhao-empty i { font-size: 48px; display: block; margin-bottom: 12px; }
.douhao-empty p { color: #999; font-size: 14px; }

/* ========== 页脚 ========== */
.douhao-footer {
    background-color: #fff;
    border-top: 1px solid var(--douhao-border);
    padding: 22px 0;
    margin-top: 20px;
    font-size: 14px;
    line-height: 1.875;
    color: var(--douhao-gray);
}
.douhao-footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.douhao-footer-left p,
.douhao-footer-right p { margin-bottom: 0; }
.douhao-footer a { color: var(--douhao-gray); }
.douhao-footer a:hover { color: var(--douhao-blue-dark); }
.douhao-footer-stat {
    margin-top: 8px;
    text-align: center;
    font-size: 13px;
    color: #999;
}

/* ========== 返回顶部 ========== */
.douhao-back-top {
    position: fixed;
    right: 24px;
    bottom: 30px;
    width: 44px;
    height: 44px;
    background-color: var(--douhao-blue);
    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(55, 150, 246, 0.4);
    transition: all 0.3s;
}
.douhao-back-top.douhao-show { display: flex; }
.douhao-back-top:hover {
    background-color: var(--douhao-blue-dark);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(55, 150, 246, 0.5);
}

/* ========== 响应式 ========== */
@media only screen and (max-width: 1440px) {
    .douhao-side-left { width: 22%; }
    .douhao-side-right { width: 22%; }
}

@media only screen and (max-width: 1200px) {
    .douhao-container { flex-wrap: wrap; }
    .douhao-side-left,
    .douhao-side-right { width: 23%; }
    .douhao-main { flex: 1; min-width: 50%; }
    .douhao-side-thumb { width: 70px; height: 48px; }
    .douhao-side-recommend .douhao-side-thumb { width: 70px; height: 48px; }
    .douhao-list-thumb { width: 110px; height: 76px; }
    .douhao-list-title { font-size: 16px; }
}

@media only screen and (max-width: 1024px) {
    .douhao-inner { width: 94%; }
    .douhao-header-inner { padding: 10px 0; gap: 12px; }
    .douhao-logo a { font-size: 18px; height: 32px; }
    .douhao-logo img { height: 32px; }
    .douhao-nav {
        position: fixed;
        left: 0;
        top: 56px;
        width: 100%;
        height: calc(100% - 56px);
        background-color: #fff;
        overflow-y: auto;
        display: none;
        z-index: 998;
        box-shadow: 0 8px 20px rgba(0, 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 {
        padding: 0;
        border-bottom: 1px solid var(--douhao-border);
    }
    .douhao-nav-menu li:last-child { border-bottom: none; }
    .douhao-nav-menu li a {
        color: var(--douhao-dark);
        padding: 14px 8px;
        font-size: 15px;
        border-radius: 0;
    }
    .douhao-nav-menu li.douhao-current a { color: var(--douhao-blue); }
    .douhao-search { width: 180px; }
    .douhao-nav-toggle { display: block; }

    .douhao-container { gap: 12px; flex-wrap: wrap; }
    .douhao-side-left,
    .douhao-side-right { width: 100%; }
    .douhao-side-left { order: 1; }
    .douhao-main { order: 2; width: 100%; }
    .douhao-side-right { order: 3; }
    .douhao-profile-search { display: block; }
    .douhao-side-list li a { align-items: flex-start; }
    .douhao-side-thumb { width: 100px; height: 70px; }
    .douhao-side-recommend .douhao-side-thumb { width: 100px; height: 70px; }
    .douhao-side-title, .douhao-side-list .douhao-side-text { -webkit-line-clamp: 3; }
}

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

    .douhao-wrapper { padding: 12px 0; }
    .douhao-container { gap: 10px; }
    .douhao-card { border-radius: 4px; }
    .douhao-widget-title { font-size: 15px; padding: 14px 16px; }
    .douhao-widget-title::before { left: 6px; }

    .douhao-profile-cover { height: 80px; }
    .douhao-profile-avatar { width: 70px; height: 70px; margin-top: -35px; }
    .douhao-profile-avatar-text { font-size: 28px; }
    .douhao-profile-name { font-size: 16px; padding: 0 12px 12px; }
    .douhao-profile-stat { padding: 10px 6px; }
    .douhao-profile-stat-value { font-size: 16px; }

    .douhao-side-widget .douhao-side-list { padding: 12px 14px; }
    .douhao-side-list li { padding-bottom: 10px; margin-bottom: 10px; }
    .douhao-side-thumb { width: 80px; height: 56px; }
    .douhao-side-recommend .douhao-side-thumb { width: 80px; height: 56px; }

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

    .douhao-list-item { padding: 14px; gap: 0 12px; }
    .douhao-list-title { font-size: 15px; margin-bottom: 8px; }
    .douhao-list-thumb { width: 100px; height: 70px; }
    .douhao-list-excerpt { -webkit-line-clamp: 2; font-size: 13px; line-height: 1.75; }
    .douhao-list-meta { gap: 12px; font-size: 12px; padding-top: 10px; margin-top: 10px; }
    .douhao-list-more { padding: 18px 0 4px; }
    .douhao-list-more a { padding: 8px 24px; font-size: 14px; }

    .douhao-footer { padding: 16px 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; }
}

@media only screen and (max-width: 480px) {
    .douhao-list-thumb { width: 85px; height: 62px; }
    .douhao-list-title { font-size: 14px; }
    .douhao-list-excerpt { -webkit-line-clamp: 2; }
    .douhao-side-thumb { width: 70px; height: 50px; }
    .douhao-side-recommend .douhao-side-thumb { width: 70px; height: 50px; }
}

/* ========== 文章详情页 ========== */
.douhao-article {
    padding: 30px;
}
.douhao-article-title {
    font-size: 24px;
    line-height: 1.5;
    color: var(--douhao-dark);
    margin-bottom: 16px;
    font-weight: 700;
    word-break: break-word;
}
.douhao-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 13px;
    color: var(--douhao-gray);
    padding-bottom: 16px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--douhao-border);
}
.douhao-article-meta span { display: inline-flex; align-items: center; gap: 4px; }
.douhao-article-meta a { color: var(--douhao-gray); }
.douhao-article-meta a:hover { color: var(--douhao-primary); }

.douhao-article-content {
    font-size: 15px;
    line-height: 1.875;
    color: #444;
    overflow: hidden;
    word-break: break-word;
}
.douhao-article-content p { margin-bottom: 14px; text-indent: 2em; }
.douhao-article-content img { max-width: 100%; height: auto; border-radius: 6px; margin: 12px auto; display: block; }
.douhao-article-content h2,
.douhao-article-content h3 { margin: 20px 0 12px; color: var(--douhao-dark); }
.douhao-article-content blockquote {
    border-left: 3px solid var(--douhao-blue);
    padding: 10px 16px;
    margin: 14px 0;
    background: #f7f8fa;
    border-radius: 0 6px 6px 0;
    color: #666;
}
.douhao-article-content a { color: var(--douhao-primary); text-decoration: none;}
.douhao-article-content code {
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 14px;
    color: #d43a2a;
    font-family: 'Courier New', monospace;
}
.douhao-article-content pre {
    background: #2d2d3a;
    color: #e0e0e0;
    padding: 14px 18px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 12px 0;
    font-size: 13px;
    line-height: 1.7;
}
.douhao-article-content pre code { background: none; color: inherit; padding: 0; }
.douhao-article-content table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.douhao-article-content th,
.douhao-article-content td { padding: 8px 12px; border: 1px solid var(--douhao-border); }
.douhao-article-content th { background: #fafbfc; font-weight: 600; }

.douhao-article-tags {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid var(--douhao-border);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--douhao-gray);
}
.douhao-article-tags a {
    display: inline-block;
    padding: 3px 14px;
    background: #eef6ff;
    color: var(--douhao-blue);
    border-radius: 14px;
    font-size: 13px;
    transition: all 0.25s;
}
.douhao-article-tags a:hover { background: var(--douhao-blue); color: #fff; }

/* ========== 上一篇/下一篇 ========== */
.douhao-article-nav {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}
.douhao-article-nav-item {
    flex: 1;
    min-width: 0;
    background: #fff;
    border: 1px solid var(--douhao-border);
    border-radius: var(--douhao-radius);
    padding: 14px 18px;
    box-shadow: var(--douhao-shadow);
    transition: all 0.25s;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow: hidden;
}
.douhao-article-nav-item:hover {
    border-color: var(--douhao-blue);
    transform: translateY(-2px);
}
.douhao-article-nav-label {
    font-size: 12px;
    color: var(--douhao-gray);
}
.douhao-article-nav-title {
    font-size: 14px;
    color: var(--douhao-dark);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.douhao-article-nav-next { text-align: right; }
.douhao-article-nav-empty {
    color: #ccc;
    font-size: 13px;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* ========== 相关文章 ========== */
.douhao-related .douhao-widget-title { padding: 18px 24px; }
.douhao-related-list {
    padding: 18px 24px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}
.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: 78px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    background: #f4f4f4;
}
.douhao-related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.douhao-related-list li a:hover .douhao-related-thumb img { transform: scale(1.06); }
.douhao-related-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.douhao-related-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--douhao-dark);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.25s;
}
.douhao-related-list li a:hover .douhao-related-title { color: var(--douhao-primary); }
.douhao-related-excerpt {
    font-size: 12px;
    line-height: 1.6;
    color: var(--douhao-gray);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.douhao-related-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #bbb;
}
.douhao-related-meta span { display: inline-flex; align-items: center; gap: 3px; }

/* ========== 分类页 顶部标题条 ========== */
.douhao-search-header {
    padding: 22px 26px;
}
.douhao-search-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--douhao-dark);
    margin-bottom: 8px;
}
.douhao-search-title i { color: var(--douhao-blue); margin-right: 6px; }
.douhao-search-meta {
    font-size: 13px;
    color: var(--douhao-gray);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.douhao-search-split { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.douhao-search-split-item {
    display: inline-block;
    padding: 2px 10px;
    background: #eef6ff;
    color: var(--douhao-blue);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* ========== 分类页 左侧分类列表 ========== */
.douhao-side-cats {
    padding: 14px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.douhao-side-cats a {
    display: block;
    padding: 8px 12px;
    color: #555;
    font-size: 14px;
    border-radius: 6px;
    transition: all 0.25s;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.douhao-side-cats a:hover {
    background: #f7f8fa;
    color: var(--douhao-blue);
}
.douhao-side-cats a.douhao-cat-active {
    background: var(--douhao-blue);
    color: #fff;
    font-weight: 600;
}

/* ========== 搜索结果高亮 ========== */
.douhao-search-hit {
    color: var(--douhao-primary);
    font-style: normal;
    font-weight: 700;
    background: #fdecea;
    padding: 0 2px;
    border-radius: 2px;
}

/* ========== 分页 ========== */
.douhao-main .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 24px 0 8px;
}
.douhao-main .pagination > span {
    font-size: 13px;
    color: var(--douhao-gray);
    padding: 0 12px;
}
.douhao-main .pagination a,
.douhao-main .pagination .current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    background: #fff;
    border: 1px solid var(--douhao-border);
    border-radius: 6px;
    font-size: 14px;
    color: #666;
    transition: all 0.25s;
}
.douhao-main .pagination a:hover {
    border-color: var(--douhao-blue);
    color: var(--douhao-blue);
}
.douhao-main .pagination .current {
    background: var(--douhao-blue);
    border-color: var(--douhao-blue);
    color: #fff;
}

/* ========== 文章页 / 分类页 响应式 ========== */
@media only screen and (max-width: 1024px) {
    .douhao-article { padding: 20px; }
    .douhao-article-title { font-size: 20px; }
    .douhao-related-list { grid-template-columns: 1fr; }
}

@media only screen and (max-width: 768px) {
    .douhao-article { padding: 16px; }
    .douhao-article-title { font-size: 18px; margin-bottom: 12px; }
    .douhao-article-meta { gap: 12px; font-size: 12px; padding-bottom: 12px; margin-bottom: 16px; }
    .douhao-article-content { font-size: 15px; }
    .douhao-article-content p { text-indent: 1.5em; }
    .douhao-article-nav { flex-direction: column; gap: 10px; }
    .douhao-article-nav-next { text-align: left; }
    .douhao-article-nav-item { padding: 12px 14px; }
    .douhao-related-list { padding: 14px 16px; gap: 14px; }
    .douhao-related-thumb { width: 90px; height: 64px; }
    .douhao-related-title { font-size: 13px; }

    .douhao-search-header { padding: 16px 18px; }
    .douhao-search-title { font-size: 16px; }
    .douhao-search-meta { font-size: 12px; }

    .douhao-side-cats { padding: 12px 14px; flex-direction: row; flex-wrap: wrap; gap: 6px; }
    .douhao-side-cats a {
        padding: 4px 12px;
        font-size: 12px;
        background: #f7f8fa;
        border-radius: 14px;
    }
    .douhao-side-cats a.douhao-cat-active { background: var(--douhao-blue); }

    .douhao-main .pagination a,
    .douhao-main .pagination .current {
        min-width: 32px;
        height: 32px;
        padding: 0 10px;
        font-size: 13px;
    }
}

/* ========== 侧栏移动端搜索框（PC 隐藏） ========== */
.douhao-side-search-mobile {
    display: none;
    padding: 12px 14px;
}
.douhao-side-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
    background-color: #f7f8fa;
    border: 1px solid var(--douhao-border);
    border-radius: 6px;
    overflow: hidden;
}
.douhao-side-search-icon {
    position: absolute;
    left: 12px;
    color: #999;
    font-size: 13px;
    pointer-events: none;
}
.douhao-side-search-input {
    flex: 1;
    padding: 9px 12px 9px 34px;
    background: transparent;
    font-size: 14px;
    color: #333;
    line-height: 20px;
    min-width: 0;
}
.douhao-side-search-input::placeholder { color: #b8bcc1; }
.douhao-side-search-btn {
    flex-shrink: 0;
    padding: 9px 16px;
    background-color: var(--douhao-blue);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.25s;
}
.douhao-side-search-btn:hover { background-color: var(--douhao-blue-dark); }

@media only screen and (max-width: 1024px) {
    .douhao-side-search-mobile { display: block; }
}

/* ========== 侧栏标题 flex（加"更多"） ========== */
.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: #999;
    transition: color 0.25s;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.douhao-widget-title-flex .douhao-widget-more:hover {
    color: var(--douhao-blue);
}
.douhao-widget-title-flex .douhao-widget-more i {
    font-size: 11px;
}

/* ========== 搜索标签聚合页 ========== */
.douhao-tags-page {
    padding: 20px 0;
}
.douhao-tags-header {
    padding: 32px 30px;
    text-align: center;
    margin-bottom: 20px;
}
.douhao-tags-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--douhao-dark);
    line-height: 1.4;
    margin-bottom: 10px;
}
.douhao-tags-title i {
    color: var(--douhao-blue);
    margin-right: 8px;
}
.douhao-tags-desc {
    font-size: 15px;
    color: var(--douhao-gray);
    line-height: 1.75;
    margin-bottom: 12px;
}
.douhao-tags-count {
    display: inline-block;
    padding: 4px 16px;
    background: #eef6ff;
    color: var(--douhao-blue);
    border-radius: 15px;
    font-size: 14px;
    font-weight: 600;
}

.douhao-tags-cloud {
    padding: 35px 30px;
    min-height: 200px;
}
.douhao-tags-cloud-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
}
.douhao-tags-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 20px;
    background-color: #f7f8fa;
    color: #666;
    border: 1px solid var(--douhao-border);
    border-radius: 22px;
    font-size: 15px;
    line-height: 1.5;
    transition: all 0.25s;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.douhao-tags-item:hover {
    background-color: var(--douhao-blue);
    color: #fff;
    border-color: var(--douhao-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(55, 150, 246, 0.3);
}
.douhao-tags-item-count {
    display: inline-block;
    padding: 0 8px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
    line-height: 18px;
}
.douhao-tags-item:hover .douhao-tags-item-count {
    background: rgba(255, 255, 255, 0.25);
}
.douhao-tags-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    width: 100%;
}
.douhao-tags-empty i {
    font-size: 48px;
    display: block;
    margin-bottom: 15px;
    color: #ddd;
}

/* ========== 聚合页响应式 ========== */
@media only screen and (max-width: 768px) {
    .douhao-tags-header {
        padding: 22px 18px;
    }
    .douhao-tags-title {
        font-size: 20px;
    }
    .douhao-tags-desc {
        font-size: 14px;
    }
    .douhao-tags-cloud {
        padding: 22px 16px;
    }
    .douhao-tags-cloud-inner {
        gap: 8px;
    }
    .douhao-tags-item {
        padding: 5px 14px;
        font-size: 13px;
    }
    .douhao-tags-item-count {
        padding: 0 6px;
        font-size: 11px;
        line-height: 16px;
    }
}

/* ========== 阅读全文朦胧遮罩 ========== */
.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-blue);
    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-blue);
}

/* ========== 阅读全文按钮 ========== */
.douhao-readmore-wrapper {
    text-align: center;
    padding: 20px 0 10px;
    margin-top: 10px;
}
.douhao-readmore-btn {
    background: var(--douhao-blue);
    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(55, 150, 246, 0.3);
}
.douhao-readmore-btn:hover {
    background: var(--douhao-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(55, 150, 246, 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-blue);
    min-width: 30px;
    text-align: center;
    background: #eef6ff;
    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;
    }
}