/* ============================================
   虚拟资料自动赚钱机 - 主题样式
   基于 Bootstrap 3.4.1，参考子比视觉风格
   ============================================ */

/* --- CSS 变量（参考子比设计语言） --- */
:root {
    /* 品牌主色（文库蓝，区别于子比粉） */
    --theme-color: #2196F3;
    --theme-color-hover: #1976D2;
    --theme-color-light: #E3F2FD;
    --focus-color: var(--theme-color);
    --focus-color-hover: var(--theme-color-hover);
    --focus-shadow-color: rgba(33, 150, 243, 0.4);
    --focus-color-opacity1: rgba(33, 150, 243, 0.08);
    --focus-color-opacity2: rgba(33, 150, 243, 0.16);

    /* 状态色 */
    --success-color: #4CAF50;
    --warning-color: #FF9800;
    --danger-color: #F44336;

    /* 文字色阶（参考子比 key/main/muted/muted-2/muted-3/muted-4） */
    --key-color: #2c3e50;
    --main-color: #4e5358;
    --secondary-color: #555;
    --muted-color: #777;
    --muted-2-color: #999;
    --muted-3-color: #b1b1b1;
    --muted-4-color: #d2d2d2;

    /* 背景色 */
    --body-bg-color: #f5f6f8;
    --main-bg-color: #fff;
    --muted-bg-color: #eef0f3;

    /* 边框色 */
    --main-border-color: rgba(50, 50, 50, 0.06);
    --muted-border-color: rgba(0, 0, 0, 0.03);
    --border-color: var(--main-border-color);

    /* 阴影 */
    --main-shadow: rgba(116, 116, 116, 0.08);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .06);
    --shadow-md: 0 0 10px var(--main-shadow);
    --shadow-lg: 0 6px 20px rgba(0, 0, 0, .1);

    /* 半透明背景（玻璃态） */
    --blur-bg: rgba(255, 255, 255, 0.8);
    --float-btn-bg: rgba(200, 200, 200, 0.4);

    /* 圆角 */
    --main-radius: 8px;
    --radius-sm: 4px;
    --radius-lg: 12px;

    /* 缩略图比例（卡片/列表） */
    --posts-card-scale: 70%;
    --posts-list-scale: 70%;

    /* 过渡 */
    --transition: color .2s, background .3s, opacity .3s, box-shadow .3s, transform .3s;
    --transition-fast: .2s ease-out;

    /* 兼容旧变量名 */
    --card-bg: var(--main-bg-color);
    --body-bg: var(--body-bg-color);
    --navbar-height: 60px;
    --mian-max-width: 1200px;

    /* 头/尾 */
    --header-bg: var(--blur-bg);
    --header-color: var(--main-color);
    --footer-bg: var(--main-bg-color);
    --footer-color: var(--muted-2-color);
}

/* 暗色模式：用 .dark-theme 覆盖 */
.dark-theme {
    --key-color: #f8fafc;
    --main-color: #e5eef7;
    --muted-color: #b4b6bb;
    --muted-2-color: #888a8f;
    --muted-3-color: #636469;
    --muted-4-color: #43454a;

    --body-bg-color: #292a2d;
    --main-bg-color: #323335;
    --muted-bg-color: #2d2e31;
    --main-border-color: rgba(114, 114, 114, 0.1);
    --muted-border-color: rgba(184, 184, 184, 0.02);
    --main-shadow: rgba(24, 24, 24, 0.2);

    --blur-bg: rgba(50, 51, 53, 0.8);
    --float-btn-bg: rgba(70, 70, 70, 0.4);
}

/* --- 基础重置 --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    color: var(--main-color);
    background: var(--body-bg);
    padding-top: var(--navbar-height);
}

a {
    color: var(--theme-color);
    transition: var(--transition);
}
a:hover {
    color: var(--theme-color-hover);
    text-decoration: none;
}

/* --- 卡片 --- */
.card {
    background: var(--main-bg-color);
    border-radius: var(--main-radius);
    box-shadow: var(--shadow-md);
    border: none;
    margin-bottom: 20px;
    transition: var(--transition);
}
.card:hover {
    box-shadow: var(--shadow-lg);
}
.card-body {
    padding: 20px;
}

/* --- 子比风格基础容器（兼容子比 class 命名） --- */
.theme-box {
    margin-bottom: 20px;
}
.zib-widget {
    clear: both;
    background: var(--main-bg-color);
    padding: 15px;
    box-shadow: var(--shadow-md);
    border-radius: var(--main-radius);
    margin-bottom: 20px;
}
.zib-widget > h3 {
    margin: 0 0 10px;
    font-size: 15px;
    color: var(--key-color);
}
.box-body, .box-header { padding: 15px; }
.box-header + .box-body { padding-top: 0; }
.muted-box {
    background: var(--this-bg, var(--muted-border-color));
    border-radius: var(--main-radius);
    padding: 15px;
}
.box-bg {
    background: var(--main-bg-color);
    box-shadow: var(--shadow-md);
}
.main-shadow { box-shadow: var(--shadow-md); transition: box-shadow .3s; }
.blur-bg {
    -webkit-backdrop-filter: saturate(5) blur(20px);
    backdrop-filter: saturate(5) blur(20px);
    background: var(--blur-bg);
}

/* --- 通用工具类（参考子比） --- */
.text-ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}
.text-ellipsis-2,
.text-ellipsis-3,
.text-ellipsis-5 {
    line-height: 1.4em;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
}
.text-ellipsis-2 { height: 2.8em; -webkit-line-clamp: 2; }
.text-ellipsis-3 { height: 4.2em; -webkit-line-clamp: 3; }
.text-ellipsis-5 { max-height: 7em; -webkit-line-clamp: 5; }

.key-color { color: var(--key-color); }
.focus-color { color: var(--focus-color); }
.muted-color { color: var(--muted-color); }
.muted-2-color { color: var(--muted-2-color); }
.muted-3-color { color: var(--muted-3-color); }
.main-bg { background: var(--main-bg-color); }
.eee-bg { background: var(--muted-bg-color); }

/* hover 缩放（图片/卡片通用） */
.hover-zoom-img,
.hover-zoom-img-sm { overflow: hidden; }
.hover-zoom-img img,
.hover-zoom-img-sm img { transition: transform .3s ease; }
.hover-zoom-img:hover img { transform: scale(1.05); }
.hover-zoom-img-sm:hover img { transform: scale(1.02); }

/* 占位骨架动画 */
@keyframes vdp-placeholder {
    0% { background-position: 100% 0; }
    100% { background-position: 0 0; }
}
.vdp-placeholder {
    background: linear-gradient(118deg, rgba(121,121,121,.1) 25%, rgba(121,121,121,.2) 37%, rgba(121,121,121,.1) 63%);
    border-radius: var(--radius-sm);
    background-size: 400% 100%;
    animation: vdp-placeholder 1.5s ease infinite;
}

/* --- 导航栏 --- */
.site-header .navbar {
    background: var(--card-bg);
    border: none;
    box-shadow: var(--shadow-sm);
    min-height: var(--navbar-height);
    margin-bottom: 0;
}
.site-header .navbar-brand {
    height: var(--navbar-height);
    line-height: calc(var(--navbar-height) - 20px);
    font-size: 18px;
    font-weight: 600;
    color: var(--main-color);
    padding: 10px 15px;
}
.site-header .navbar-brand img {
    max-height: 36px;
    display: inline-block;
    vertical-align: middle;
}
.site-header .navbar-nav > li > a {
    height: var(--navbar-height);
    line-height: calc(var(--navbar-height) - 20px);
    padding: 10px 15px;
    color: var(--secondary-color);
    font-size: 14px;
}
.site-header .navbar-nav > li > a:hover,
.site-header .navbar-nav > li.active > a {
    color: var(--theme-color);
    background: transparent;
}
.navbar-search {
    display: inline-block;
    padding: 13px 10px;
}
.navbar-search .form-control {
    width: 200px;
    height: 34px;
    border-radius: 17px;
    border: 1px solid var(--border-color);
    background: var(--body-bg);
    padding: 0 15px;
    font-size: 13px;
}
.user-menu img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 5px;
}

/* --- 主内容区 --- */
.main-content {
    padding: 20px 0;
    min-height: calc(100vh - var(--navbar-height) - 200px);
}

/* --- 文档卡片 --- */
.posts-item {
    margin-bottom: 20px;
}
.doc-card {
    height: 100%;
    overflow: hidden;
    transition: transform .3s, box-shadow .3s;
}
.doc-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}
.doc-card .card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}
.doc-card .item-thumbnail {
    position: relative;
    padding-top: var(--posts-card-scale);
    overflow: hidden;
    background: var(--muted-bg-color);
    border-radius: var(--main-radius) var(--main-radius) 0 0;
}
.doc-card .item-thumbnail::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 30%;
    background: linear-gradient(to top, rgba(0,0,0,.04), transparent);
    pointer-events: none;
    opacity: 0;
    transition: opacity .3s;
}
.doc-card:hover .item-thumbnail::after { opacity: 1; }
.doc-card .item-thumbnail .card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.doc-card:hover .card-img {
    transform: scale(1.05);
}
.doc-card .placeholder-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #ccc;
}
.doc-card .item-thumbnail .card-img.img-loading {
    opacity: 0;
}
.vdp-widget-doc-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-color);
}
.vdp-widget-doc-item:last-child {
    border-bottom: 0;
}
.vdp-widget-doc-thumb {
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--body-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}
.vdp-widget-doc-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.vdp-widget-doc-body {
    flex: 1 1 auto;
    min-width: 0;
}
.vdp-widget-doc-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--main-color);
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 4px;
}
.vdp-widget-doc-title:hover {
    color: var(--theme-color);
}
.vdp-widget-doc-meta {
    font-size: 12px;
    color: var(--muted-color);
}
.vdp-widget-doc-meta span {
    margin-right: 8px;
}

/* === 排行榜 TAB === */
.vdp-rank-tab-nav {
    list-style: none;
    margin: 0 0 10px;
    padding: 4px;
    display: flex;
    background: var(--body-bg);
    border-radius: var(--radius-sm);
}
.vdp-rank-tab-nav li {
    flex: 1;
    text-align: center;
    padding: 6px 0;
    font-size: 13px;
    color: var(--secondary-color);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.vdp-rank-tab-nav li.active {
    background: var(--card-bg);
    color: var(--theme-color);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}
.vdp-rank-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: none;
}
.vdp-rank-list.active {
    display: block;
}
.vdp-rank-empty {
    text-align: center;
    color: var(--muted-color);
    padding: 20px 0;
    font-size: 13px;
}
.vdp-rank-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-color);
}
.vdp-rank-item:last-child {
    border-bottom: 0;
}
.vdp-rank-num {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    background: var(--body-bg);
    color: var(--muted-color);
}
.vdp-rank-num.top-1 { background: #f44336; color: #fff; }
.vdp-rank-num.top-2 { background: #ff9800; color: #fff; }
.vdp-rank-num.top-3 { background: #ffc107; color: #fff; }

/* === 标签云 === */
.vdp-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.vdp-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 12px;
    background: var(--body-bg);
    color: var(--secondary-color);
    font-size: 12px;
    line-height: 1.4;
    transition: var(--transition);
}
.vdp-tag:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
    color: #fff;
    background: var(--theme-color);
}
.vdp-tag sup {
    margin-left: 4px;
    font-size: 10px;
    opacity: .7;
}

/* === 图文卡片 === */
.vdp-ad-card {
    text-align: center;
}
.vdp-ad-img-wrap {
    display: block;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 10px;
}
.vdp-ad-img-wrap img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}
.vdp-ad-img-wrap:hover img {
    transform: scale(1.03);
}
.vdp-ad-desc {
    font-size: 13px;
    color: var(--secondary-color);
    line-height: 1.6;
    margin-bottom: 10px;
}
.vdp-ad-btn {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 16px;
    background: var(--theme-color);
    color: #fff;
    font-size: 13px;
    transition: var(--transition);
}
.vdp-ad-btn:hover {
    background: var(--theme-color-hover);
    color: #fff;
}

/* === 评论达人榜 === */
.vdp-comment-rank {
    list-style: none;
    margin: 0;
    padding: 0;
}
.vdp-comment-rank-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-color);
}
.vdp-comment-rank-item:last-child {
    border-bottom: 0;
}
.vdp-comment-rank-avatar img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: block;
}
.vdp-comment-rank-body {
    flex: 1 1 auto;
    min-width: 0;
}
.vdp-comment-rank-name {
    display: block;
    color: var(--main-color);
    font-size: 13px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.vdp-comment-rank-count {
    font-size: 12px;
    color: var(--muted-color);
}

/* === 文档轮播 Banner（Swiper） === */
.vdp-slider-wrap {
    position: relative;
    margin: 0 0 12px;
}
.vdp-slider {
    border-radius: var(--main-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.vdp-slider .swiper-slide img {
    width: 100%;
    display: block;
}
.vdp-slider .vdp-slider-placeholder {
    width: 100%;
    background: var(--muted-bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    color: var(--muted-3-color);
}
.vdp-slider .vdp-slider-link {
    display: block;
    color: inherit;
    text-decoration: none;
    position: relative;
}
.vdp-slider .vdp-slider-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 30px 16px 12px;
    background: linear-gradient(to top, rgba(0,0,0,.75), transparent);
    color: #fff;
    font-size: 14px;
    text-align: left;
    line-height: 1.4;
    z-index: 2;
}

/* Swiper 控件主题色 */
.vdp-slider .swiper-pagination-bullet {
    background: rgba(255,255,255,.6);
    opacity: 1;
    width: 8px; height: 8px;
}
.vdp-slider .swiper-pagination-bullet-active {
    background: #fff;
    width: 18px;
    border-radius: 4px;
}
.vdp-slider-arrow {
    --swiper-navigation-size: 22px;
    color: #fff;
    background: rgba(0,0,0,.35);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    opacity: 0;
    transition: opacity .3s, background .2s;
}
.vdp-slider:hover .vdp-slider-arrow { opacity: 1; }
.vdp-slider-arrow:hover { background: rgba(0,0,0,.55); }
.vdp-slider-arrow::after { font-size: 14px; font-weight: 600; }

/* === 文档网格大图 === */
.vdp-docs-grid {
    display: grid;
    gap: 14px;
}
.vdp-grid-col-2 { grid-template-columns: repeat(2, 1fr); }
.vdp-grid-col-3 { grid-template-columns: repeat(3, 1fr); }
.vdp-grid-col-4 { grid-template-columns: repeat(4, 1fr); }
.vdp-grid-item {
    min-width: 0;
}
.vdp-grid-thumb {
    position: relative;
    display: block;
    width: 100%;
    padding-top: 70%;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: var(--body-bg);
    margin-bottom: 8px;
}
.vdp-grid-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}
.vdp-grid-thumb:hover img {
    transform: scale(1.05);
}
.vdp-grid-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #ccc;
}
.vdp-grid-ext {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
}
.vdp-grid-price {
    position: absolute;
    bottom: 8px;
    right: 8px;
    z-index: 2;
    background: var(--danger-color);
    color: #fff;
    padding: 1px 7px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 500;
}
.vdp-grid-title {
    color: var(--main-color);
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 4px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 2.6em;
}
.vdp-grid-title:hover {
    color: var(--theme-color);
}
.vdp-grid-meta {
    font-size: 12px;
    color: var(--muted-color);
}
.vdp-grid-meta span {
    margin-right: 8px;
}

/* === 焦点图 + 列表 === */
.vdp-focus-list {
    display: flex;
    gap: 14px;
}
.vdp-focus-left {
    flex: 0 0 50%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}
.vdp-focus-card {
    display: block;
    color: inherit;
}
.vdp-focus-thumb {
    position: relative;
    width: 100%;
    padding-top: 60%;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--body-bg);
}
.vdp-focus-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}
.vdp-focus-card:hover .vdp-focus-thumb img {
    transform: scale(1.05);
}
.vdp-focus-title {
    margin-top: 6px;
    font-size: 13px;
    color: var(--main-color);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.vdp-focus-card:hover .vdp-focus-title {
    color: var(--theme-color);
}
.vdp-focus-list-right {
    flex: 1 1 50%;
    list-style: none;
    margin: 0;
    padding: 0;
    min-width: 0;
}
.vdp-focus-list-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px dashed var(--border-color);
    font-size: 13px;
}
.vdp-focus-list-item:last-child {
    border-bottom: 0;
}
.vdp-focus-list-title {
    flex: 1 1 auto;
    min-width: 0;
    color: var(--secondary-color);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.vdp-focus-list-title:hover {
    color: var(--theme-color);
}
.vdp-focus-list-count {
    flex: 0 0 auto;
    font-size: 12px;
    color: var(--muted-color);
}
@media (max-width: 767px) {
    .vdp-grid-col-3, .vdp-grid-col-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .vdp-focus-list {
        flex-direction: column;
    }
    .vdp-focus-left,
    .vdp-focus-list-right {
        flex: 1 1 auto;
    }
}

/* === PostList 多样式 widget === */
.vdp-postlist {
    list-style: none;
    margin: 0;
    padding: 0;
}
.vdp-postlist-empty {
    color: var(--muted-color);
    text-align: center;
    padding: 16px 0;
    font-size: 13px;
}

/* 样式 ① 纯标题列表 */
.vdp-postlist-simple > li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 0;
    border-bottom: 1px dashed var(--border-color);
    font-size: 13px;
    line-height: 1.5;
}
.vdp-postlist-simple > li:last-child {
    border-bottom: 0;
}
.vdp-postlist-simple > li::before {
    content: '';
    flex: 0 0 4px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--theme-color);
    opacity: .5;
    margin-right: 4px;
}
.vdp-postlist-simple .vdp-postlist-title {
    flex: 1 1 auto;
    min-width: 0;
    color: var(--secondary-color);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.vdp-postlist-simple .vdp-postlist-title:hover {
    color: var(--theme-color);
}
.vdp-postlist-simple .vdp-postlist-meta {
    flex: 0 0 auto;
    font-size: 12px;
    color: var(--muted-color);
}

/* 样式 ③ 卡片（自动 2 列布局，移动端单列） */
.vdp-postlist-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.vdp-postlist-card {
    min-width: 0;
}
.vdp-postlist-cat-overlay {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0,0,0,.6);
    color: #fff;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 11px;
}
.vdp-postlist-cat-overlay .vdp-postlist-cat {
    color: #fff;
    background: transparent;
    padding: 0;
}

/* 样式 ⑤ 宽幅横排卡 */
.vdp-postlist-wide {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.vdp-postlist-wide-item {
    display: flex;
    gap: 12px;
    padding: 8px;
    border-radius: var(--main-radius);
    transition: background .2s, box-shadow .3s;
}
.vdp-postlist-wide-item:hover {
    background: var(--main-bg-color);
    box-shadow: var(--shadow-md);
}
.vdp-postlist-wide-item:not(:last-child) {
    border-bottom: 1px solid var(--main-border-color);
}
.vdp-postlist-wide-thumb {
    flex: 0 0 140px;
    width: 140px;
    height: 92px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--body-bg);
    position: relative;
    display: block;
}
.vdp-postlist-wide-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}
.vdp-postlist-wide-thumb:hover img {
    transform: scale(1.05);
}
.vdp-postlist-wide-thumb .vdp-grid-placeholder {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}
.vdp-postlist-wide-body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.vdp-postlist-wide-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--main-color);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 4px;
}
.vdp-postlist-wide-title:hover {
    color: var(--theme-color);
}
.vdp-postlist-wide-excerpt {
    color: var(--muted-color);
    font-size: 12px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
}
.vdp-postlist-wide-meta {
    font-size: 12px;
    color: var(--muted-color);
}
.vdp-postlist-wide-meta span {
    margin-right: 10px;
}

/* 公共：分类徽章 */
.vdp-postlist-cat {
    display: inline-block;
    padding: 1px 7px;
    margin-right: 6px;
    border-radius: 3px;
    background: var(--theme-color-light);
    color: var(--theme-color);
    font-size: 11px;
    line-height: 1.6;
    vertical-align: middle;
}
.vdp-postlist-cat:hover {
    background: var(--theme-color);
    color: #fff;
}

@media (max-width: 767px) {
    .vdp-postlist-cards {
        grid-template-columns: 1fr;
    }
    .vdp-postlist-wide-thumb {
        flex: 0 0 110px;
        width: 110px;
        height: 78px;
    }
}
.doc-card .format-badge {
    position: absolute;
    top: 10px;
    left: 10px;
}
.doc-card .price-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: var(--danger-color);
    color: #fff;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 500;
}
.doc-card .price-badge.free {
    background: var(--success-color);
}
.doc-card .item-body {
    padding: 12px 15px;
}
.doc-card .item-heading {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 42px;
}
.doc-card .item-meta {
    font-size: 12px;
    color: var(--muted-color);
}
.doc-card .item-meta span {
    margin-right: 10px;
}

/* --- 格式徽章 --- */
.badge-format {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
}

/* --- 筛选栏 --- */
.doc-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: var(--card-bg);
    border-radius: var(--main-radius);
    box-shadow: var(--shadow-sm);
}
.filter-tabs .filter-tab {
    display: inline-block;
    padding: 4px 12px;
    margin-right: 5px;
    border-radius: var(--radius-sm);
    color: var(--secondary-color);
    font-size: 13px;
}
.filter-tabs .filter-tab.active {
    background: var(--theme-color);
    color: #fff;
}
.filter-categories .badge-category {
    display: inline-block;
    padding: 3px 10px;
    margin-left: 5px;
    border-radius: 12px;
    background: var(--body-bg);
    color: var(--secondary-color);
    font-size: 12px;
}
.filter-categories .badge-category:hover {
    background: var(--theme-color-light);
    color: var(--theme-color);
}

/* --- 文档详情页 --- */
.doc-single .doc-title {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 15px;
    line-height: 1.4;
}
.doc-single .doc-meta {
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}
.doc-single .doc-meta .meta-item {
    display: inline-block;
    margin-right: 15px;
    font-size: 13px;
    color: var(--muted-color);
}

/* --- 文档预览 --- */
.doc-preview {
    margin: 20px 0;
}
.doc-preview .section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}
.doc-preview .preview-images {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.doc-preview .preview-page {
    position: relative;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.doc-preview .preview-page img {
    width: 100%;
    height: auto;
    display: block;
}
.doc-preview .page-num {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,.6);
    color: #fff;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
}

/* --- 下载区 --- */
.doc-download-section {
    border: 2px solid var(--theme-color-light);
}
.download-paid .price-info {
    text-align: center;
    margin-bottom: 15px;
}
.download-paid .price {
    font-size: 28px;
    font-weight: 700;
    color: var(--danger-color);
}
.download-paid .price-tip {
    display: block;
    font-size: 13px;
    color: var(--muted-color);
    margin-top: 5px;
}
.download-paid .pay-buttons {
    text-align: center;
    margin-bottom: 10px;
}
.download-paid .pay-buttons .btn {
    margin: 0 5px;
    min-width: 140px;
}
.download-paid .vip-tip {
    text-align: center;
    font-size: 12px;
    color: var(--muted-color);
    margin-top: 10px;
}
.download-free {
    text-align: center;
}
.btn-download {
    min-width: 200px;
}

/* --- 分页 --- */
.pagination-wrap {
    text-align: center;
    margin: 30px 0;
}
.pagination-wrap .page-numbers {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 3px;
    border-radius: var(--radius-sm);
    background: var(--card-bg);
    color: var(--secondary-color);
    box-shadow: var(--shadow-sm);
}
.pagination-wrap .page-numbers.current {
    background: var(--theme-color);
    color: #fff;
}

/* --- 侧边栏（旧版兼容） --- */
.sidebar .widget,
.sidebar .vdp-widget {
    background: var(--card-bg);
    border-radius: var(--main-radius);
    box-shadow: var(--shadow-sm);
    padding: 20px;
    margin-bottom: 20px;
}
.sidebar .widget-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

/* --- 页脚 --- */
.site-footer {
    background: #2c3e50;
    color: #aaa;
    padding: 40px 0 0;
    margin-top: 40px;
}
.site-footer .footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 15px 0;
    margin-top: 30px;
}
.site-footer .copyright {
    margin: 0;
    font-size: 13px;
}
.site-footer .footer-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}
.site-footer .footer-nav li {
    display: inline-block;
    margin-left: 15px;
}
.site-footer .footer-nav li a {
    color: #aaa;
    font-size: 13px;
}

/* --- 404 --- */
.error-404 {
    padding: 80px 0;
}
.error-404 .error-code {
    font-size: 120px;
    font-weight: 700;
    color: var(--border-color);
    margin: 0;
}
.error-404 .error-message {
    font-size: 24px;
    margin: 10px 0 20px;
}

/* --- 搜索/分类头部 --- */
.search-header,
.category-header {
    margin-bottom: 20px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: var(--main-radius);
    box-shadow: var(--shadow-sm);
}
.search-title,
.category-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 5px;
}
.search-count,
.category-desc {
    font-size: 13px;
    color: var(--muted-color);
    margin: 0;
}

/* --- 响应式 --- */
@media (max-width: 991px) {
    .sidebar {
        margin-top: 20px;
    }
    .doc-filter-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
@media (max-width: 767px) {
    .posts-item {
        width: 50%;
    }
    .navbar-search .form-control {
        width: 150px;
    }
    .doc-single .doc-title {
        font-size: 18px;
    }
    .download-paid .pay-buttons .btn {
        display: block;
        width: 100%;
        margin: 5px 0;
    }
}
@media (max-width: 480px) {
    .posts-item {
        width: 100%;
    }
}

/* ============================================
   页面骨架（page-shell）— 模块化布局
   ============================================ */

/* --- 全宽通栏（fluid） --- */
.fluid-widget {
    margin-top: 20px;
}
.fluid-widget:empty {
    display: none;
}
.vdp-fluid-top {
    margin-top: 20px;
    margin-bottom: 0;
}
.vdp-fluid-bottom {
    margin-top: 20px;
    margin-bottom: 20px;
}
.fluid-widget .widget {
    background: var(--card-bg);
    border-radius: var(--main-radius);
    box-shadow: var(--shadow-sm);
    padding: 20px;
    margin-bottom: 20px;
}
.fluid-widget .widget:last-child {
    margin-bottom: 0;
}

/* --- 主内容 + 侧栏布局 --- */
.vdp-content {
    min-width: 0;
}
.vdp-no-sidebar .vdp-content {
    width: 100%;
}
.content-wrap {
    width: 100%;
}
.content-layout > * {
    margin-bottom: 20px;
}
.content-layout > *:last-child {
    margin-bottom: 0;
}

/* --- 侧栏 --- */
.vdp-sidebar {
    padding-left: 15px;
    padding-right: 15px;
}
.vdp-sidebar > div:empty,
.vdp-sidebar > aside:empty {
    display: none;
}

/* --- 主内容上/下小工具坑位 --- */
.content-layout > .widget {
    background: var(--card-bg);
    border-radius: var(--main-radius);
    box-shadow: var(--shadow-sm);
    padding: 20px;
}

/* --- 通用 widget 容器（所有 sidebar 区域共用） --- */
.widget {
    word-break: break-word;
}
.vdp-widget {
    background: var(--main-bg-color);
    border-radius: var(--main-radius);
    box-shadow: var(--shadow-md);
    padding: 15px;
    margin-bottom: 20px;
    word-break: break-word;
    transition: box-shadow .3s;
}
.vdp-widget:last-child {
    margin-bottom: 0;
}
.vdp-widget.mb20 {
    margin-bottom: 20px;
}
/* fluid 通栏内的 widget 不再额外加白底（因为外层已经统一处理） */
.fluid-widget .vdp-widget {
    margin-bottom: 15px;
}
.fluid-widget .vdp-widget:last-child {
    margin-bottom: 0;
}

/* ============================================
   小工具结构（widget-class.php 输出）
   ============================================ */

.vdp-widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}
.vdp-widget-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    color: var(--main-color);
    line-height: 1.4;
    flex: 1 1 auto;
    min-width: 0;
}
.vdp-widget-title::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 14px;
    background: var(--theme-color);
    border-radius: 2px;
    margin-right: 8px;
    vertical-align: -1px;
}
.vdp-widget-subtitle {
    font-size: 12px;
    color: var(--muted-color);
    font-weight: 400;
    margin-left: 8px;
}
.vdp-widget-more {
    font-size: 12px;
    color: var(--muted-color);
    flex: 0 0 auto;
    margin-left: 10px;
}
.vdp-widget-more:hover {
    color: var(--theme-color);
}
.vdp-widget-more .fa {
    margin-left: 2px;
}
.vdp-widget-close {
    flex: 0 0 auto;
    margin-left: 8px;
    padding: 0 6px;
    line-height: 1;
    font-size: 18px;
    color: var(--muted-color);
    background: transparent;
    border: 0;
    cursor: pointer;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.vdp-widget-close:hover {
    background: var(--body-bg);
    color: var(--danger-color);
}
.vdp-widget-title-empty {
    flex: 1 1 auto;
}
.vdp-widget-body {
    line-height: 1.6;
}

/* 全宽通栏中的 widget 标题更紧凑 */
.fluid-widget .vdp-widget-header {
    margin-bottom: 12px;
}

/* --- 侧栏 affix 随动 --- */
.vdp-sidebar [data-affix="true"] {
    position: sticky;
    top: calc(var(--navbar-height) + 20px);
}

/* ============================================
   响应式 — page-shell
   ============================================ */
@media (max-width: 991px) {
    .vdp-sidebar {
        margin-top: 20px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .vdp-sidebar [data-affix="true"] {
        position: static;
    }
}

/* ============================================
   子比风格小工具样式（Stage B）
   ============================================ */

/* === 1. 滚动公告 === */
.vdp-notice-bar {
    position: relative;
    height: 36px;
    line-height: 36px;
    overflow: hidden;
    padding: 0 14px;
    margin-bottom: 0;
}
.vdp-notice-bar.radius8 { border-radius: var(--main-radius); }
.vdp-notice-bar.radius { border-radius: 36px; padding: 0 20px; }
.vdp-notice-bar.c-blue   { background: rgba(33, 150, 243, .1);  color: #1976D2; }
.vdp-notice-bar.c-red    { background: rgba(244, 67, 54, .1);   color: #D32F2F; }
.vdp-notice-bar.c-yellow { background: rgba(255, 152, 0, .12);  color: #E65100; }
.vdp-notice-bar.c-green  { background: rgba(76, 175, 80, .1);   color: #2E7D32; }
.vdp-notice-bar.c-purple { background: rgba(156, 39, 176, .1);  color: #7B1FA2; }
.vdp-notice-bar.b-theme  { background: var(--theme-color);   color: #fff; }
.vdp-notice-bar.b-red    { background: #F44336;              color: #fff; }
.vdp-notice-bar.b-blue   { background: #2196F3;              color: #fff; }
.vdp-notice-bar.b-green  { background: #4CAF50;              color: #fff; }
.vdp-notice-track {
    position: relative;
    height: 100%;
}
.vdp-notice-item {
    height: 36px;
    line-height: 36px;
    position: absolute;
    left: 0; right: 0;
    opacity: 0;
    transition: transform .5s ease, opacity .5s ease;
    transform: translateY(100%);
}
.vdp-notice-item.is-active {
    opacity: 1;
    transform: translateY(0);
}
.vdp-notice-item.is-leaving {
    opacity: 0;
    transform: translateY(-100%);
}
.vdp-notice-item a,
.vdp-notice-item span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: inherit;
    text-decoration: none;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.vdp-notice-icon {
    flex: 0 0 auto;
    font-size: 13px;
}
.vdp-notice-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1 1 auto;
    min-width: 0;
}

/* === 2. 链接列表（多样式） === */
.vdp-links { display: grid; gap: 10px; }
.vdp-links--cols-2 { grid-template-columns: repeat(2, 1fr); }
.vdp-links--cols-3 { grid-template-columns: repeat(3, 1fr); }
.vdp-links--cols-4 { grid-template-columns: repeat(4, 1fr); }
.vdp-links--cols-5 { grid-template-columns: repeat(5, 1fr); }
.vdp-link-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: var(--radius-sm);
    color: var(--main-color);
    text-decoration: none;
    transition: background .2s, transform .2s;
}
.vdp-link-item:hover {
    background: var(--focus-color-opacity1);
    color: var(--focus-color);
    text-decoration: none;
}
.vdp-link-icon {
    flex: 0 0 auto;
    width: 36px; height: 36px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--muted-bg-color);
    display: flex; align-items: center; justify-content: center;
    font-weight: 600; color: var(--muted-color);
}
.vdp-link-icon img {
    width: 100%; height: 100%; object-fit: cover;
}
.vdp-link-meta { flex: 1 1 auto; min-width: 0; }
.vdp-link-title {
    display: block;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.vdp-link-desc {
    display: block;
    font-size: 12px;
    color: var(--muted-2-color);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* card 样式：左小图 + 右两行 */
.vdp-links--card .vdp-link-item {
    background: var(--main-bg-color);
    box-shadow: var(--shadow-sm);
    padding: 12px;
}
.vdp-links--card .vdp-link-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
/* image 样式：仅图标 */
.vdp-links--image .vdp-link-item {
    padding: 4px;
    justify-content: center;
}
.vdp-links--image .vdp-link-img-wrap {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: var(--main-radius);
    overflow: hidden;
    background: var(--muted-bg-color);
    position: relative;
}
.vdp-links--image .vdp-link-img-wrap img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .3s;
}
.vdp-links--image .vdp-link-item:hover .vdp-link-img-wrap img {
    transform: scale(1.06);
}
.vdp-link-text-fallback {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 600;
    color: var(--muted-color);
}
/* bigcard 样式：大图 + 文字蒙版 */
.vdp-links--bigcard .vdp-link-item { padding: 0; }
.vdp-link-bigcard {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--main-radius);
    overflow: hidden;
    color: #fff;
}
.vdp-link-bg {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    transition: transform .4s;
}
.vdp-link-bigcard:hover .vdp-link-bg { transform: scale(1.05); }
.vdp-link-mask {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,.7), rgba(0,0,0,0) 60%);
}
.vdp-link-bigcard .vdp-link-meta {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 12px;
    z-index: 2;
}
.vdp-link-bigcard .vdp-link-title { color: #fff; font-weight: 600; }
.vdp-link-bigcard .vdp-link-desc { color: rgba(255,255,255,.85); }

/* === 3. 一言 === */
.vdp-yiyan {
    position: relative;
    padding: 18px 36px 14px 18px;
    background: var(--focus-color-opacity1);
    border-radius: var(--main-radius);
    color: var(--main-color);
}
.vdp-yiyan-quote {
    position: absolute;
    top: 10px; left: 12px;
    font-size: 14px;
    color: var(--focus-color);
    opacity: .35;
}
.vdp-yiyan-text {
    font-size: 14px;
    line-height: 1.7;
    margin-left: 22px;
    color: var(--key-color);
    transition: opacity .3s;
}
.vdp-yiyan-from {
    text-align: right;
    font-size: 12px;
    color: var(--muted-color);
    margin-top: 4px;
    transition: opacity .3s;
}
.vdp-yiyan-from:empty { display: none; }
.vdp-yiyan-refresh {
    position: absolute;
    top: 8px; right: 8px;
    width: 24px; height: 24px;
    border: 0;
    background: transparent;
    color: var(--muted-color);
    cursor: pointer;
    border-radius: 50%;
    transition: background .2s, color .2s, transform .4s;
}
.vdp-yiyan-refresh:hover {
    background: var(--main-bg-color);
    color: var(--focus-color);
    transform: rotate(180deg);
}
.vdp-yiyan.is-fading .vdp-yiyan-text,
.vdp-yiyan.is-fading .vdp-yiyan-from { opacity: 0; }

/* === 4. 图标卡片 === */
.vdp-icon-cards { display: grid; gap: 10px; }
.vdp-icon-cards--cols-2 { grid-template-columns: repeat(2, 1fr); }
.vdp-icon-cards--cols-3 { grid-template-columns: repeat(3, 1fr); }
.vdp-icon-cards--cols-4 { grid-template-columns: repeat(4, 1fr); }
.vdp-icon-cards--cols-6 { grid-template-columns: repeat(6, 1fr); }
.vdp-icon-card {
    display: flex; flex-direction: column; align-items: center;
    padding: 14px 8px;
    background: var(--main-bg-color);
    border-radius: var(--main-radius);
    color: var(--main-color);
    text-decoration: none;
    transition: transform .3s, box-shadow .3s;
    text-align: center;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}
.vdp-icon-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    text-decoration: none;
}
.vdp-icon-card-icon {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--this-bg, var(--muted-bg-color));
    color: #fff !important;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    margin-bottom: 8px;
    opacity: .9;
}
.vdp-icon-card-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--key-color);
    margin-bottom: 2px;
}
.vdp-icon-card-desc {
    font-size: 11px;
    color: var(--muted-2-color);
}
/* cover 样式：背景图卡片 */
.vdp-icon-card--cover {
    aspect-ratio: 16 / 9;
    padding: 0;
    color: #fff;
    justify-content: flex-end;
}
.vdp-icon-card--cover .vdp-icon-card-bg {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    background-color: var(--muted-bg-color);
    transition: transform .4s;
}
.vdp-icon-card--cover:hover .vdp-icon-card-bg { transform: scale(1.06); }
.vdp-icon-card-mask {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,.65), rgba(0,0,0,0) 70%);
}
.vdp-icon-card--cover .vdp-icon-card-body {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 10px;
    text-align: left;
}
.vdp-icon-card--cover .vdp-icon-card-title { color: #fff; }
.vdp-icon-card--cover .vdp-icon-card-desc { color: rgba(255,255,255,.85); }

/* === 5. 图文封面卡片 === */
.vdp-graphic-cover {
    position: relative;
    display: block;
    width: 100%;
    border-radius: var(--main-radius);
    overflow: hidden;
    color: #fff;
    text-decoration: none;
    background: var(--muted-bg-color);
}
.vdp-graphic-cover.vdp-cover-small  { height: 120px; }
.vdp-graphic-cover.vdp-cover-medium { height: 180px; }
.vdp-graphic-cover.vdp-cover-large  { height: 260px; }
.vdp-graphic-cover .vdp-cover-media {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .5s;
}
a.vdp-graphic-cover:hover .vdp-cover-media { transform: scale(1.04); }
.vdp-cover-mask {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,.7), rgba(0,0,0,0) 65%);
    pointer-events: none;
}
.vdp-cover-meta {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 16px;
    z-index: 2;
    color: #fff;
}
.vdp-cover-title {
    margin: 0 0 4px;
    font-size: 16px;
    color: #fff;
}
.vdp-cover-sub {
    margin: 0;
    font-size: 12px;
    color: rgba(255,255,255,.85);
}
.vdp-cover-btn {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 12px;
    background: rgba(255,255,255,.2);
    backdrop-filter: blur(6px);
    border-radius: 16px;
    font-size: 12px;
    color: #fff;
}

/* === 6. 最近评论 === */
.vdp-new-comments {
    list-style: none;
    margin: 0;
    padding: 0;
}
.vdp-new-comment-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px dashed var(--main-border-color);
}
.vdp-new-comment-item:last-child { border-bottom: 0; }
.vdp-new-comment-avatar img {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: block;
}
.vdp-new-comment-body { flex: 1 1 auto; min-width: 0; }
.vdp-new-comment-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}
.vdp-new-comment-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--key-color);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.vdp-new-comment-time {
    font-size: 11px;
    color: var(--muted-2-color);
    flex: 0 0 auto;
}
.vdp-new-comment-text {
    display: block;
    font-size: 13px;
    line-height: 1.5;
    color: var(--main-color);
    text-decoration: none;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.vdp-new-comment-text:hover { color: var(--focus-color); text-decoration: none; }
.vdp-new-comment-post {
    display: inline-block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--muted-color);
    text-decoration: none;
}
.vdp-new-comment-post:hover { color: var(--focus-color); }

/* === 7. 用户排行榜 === */
.vdp-user-ranking {
    list-style: none;
    counter-reset: rank;
    margin: 0;
    padding: 0;
}
.vdp-rank-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px dashed var(--main-border-color);
}
.vdp-rank-user:last-child { border-bottom: 0; }
.vdp-rank-num {
    flex: 0 0 24px;
    width: 24px; height: 24px;
    line-height: 24px;
    text-align: center;
    border-radius: 50%;
    font-size: 12px;
    color: var(--muted-color);
    background: var(--muted-bg-color);
    font-weight: 600;
}
.vdp-rank-user.top-1 .vdp-rank-num { background: linear-gradient(135deg, #FFD700, #FFA000); color: #fff; }
.vdp-rank-user.top-2 .vdp-rank-num { background: linear-gradient(135deg, #C0C0C0, #9E9E9E); color: #fff; }
.vdp-rank-user.top-3 .vdp-rank-num { background: linear-gradient(135deg, #CD7F32, #8D6E63); color: #fff; }
.vdp-rank-avatar img {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: block;
}
.vdp-rank-body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.vdp-rank-name {
    font-size: 13px;
    color: var(--key-color);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.vdp-rank-name:hover { color: var(--focus-color); text-decoration: none; }
.vdp-rank-count {
    font-size: 11px;
    color: var(--muted-2-color);
    margin-top: 2px;
}

/* widget-empty 提示统一样式 */
.vdp-widget-empty {
    color: var(--muted-2-color);
    font-size: 13px;
    text-align: center;
    padding: 16px 0;
    margin: 0;
}

/* === PostList 样式 ⑥：迷你（双列，参考子比 posts-mini） === */
.vdp-postlist-mini {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.vdp-postlist-mini-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
}
.vdp-postlist-mini-thumb {
    flex: 0 0 76px;
    width: 76px;
    height: 0;
    padding-bottom: 53px; /* ~70% of 76 */
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: var(--muted-bg-color);
    display: block;
}
.vdp-postlist-mini-thumb img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .3s;
}
.vdp-postlist-mini-thumb .vdp-grid-placeholder {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex; align-items: center; justify-content: center;
    color: var(--muted-3-color);
    font-size: 22px;
}
.vdp-postlist-mini-body {
    flex: 1 1 auto;
    min-width: 0;
}
.vdp-postlist-mini-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--key-color);
    font-size: 13px;
    line-height: 1.45;
    margin-bottom: 4px;
    text-decoration: none;
}
.vdp-postlist-mini-title:hover {
    color: var(--focus-color);
    text-decoration: none;
}
.vdp-postlist-mini-meta {
    font-size: 11px;
    color: var(--muted-2-color);
}
.vdp-postlist-mini-meta span {
    margin-right: 8px;
}
@media (max-width: 480px) {
    .vdp-postlist-mini { grid-template-columns: 1fr; }
}

/* PostList card 样式 ③ 优化（子比 posts-item.card.style3 hover 效果） */
.vdp-postlist-card {
    background: var(--main-bg-color);
    border-radius: var(--main-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .3s, box-shadow .3s;
}
.vdp-postlist-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.vdp-postlist-card .vdp-grid-thumb {
    border-radius: 0;
    margin-bottom: 0;
}
.vdp-postlist-card .vdp-grid-title,
.vdp-postlist-card .vdp-grid-meta {
    padding-left: 10px;
    padding-right: 10px;
}
.vdp-postlist-card .vdp-grid-meta {
    padding-bottom: 10px;
}

@media (max-width: 767px) {
    .vdp-fluid-top,
    .vdp-fluid-bottom {
        margin-top: 12px;
    }
    .content-layout > * {
        margin-bottom: 12px;
    }
    .fluid-widget .widget,
    .content-layout > .widget {
        padding: 15px;
    }
}
