/* ============================================================
   WP Self Downloader — 前台下载详情页样式
   ============================================================ */

/* ---------- 容器 ---------- */
.wsd-package-wrap {
    max-width: 860px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1f2937;
    line-height: 1.7;
}
.wsd_download_post {
    border-radius: 5px;
}

article.wsd_package {
    position: relative;
}

.wsd-article-sticky-badge {
    position: absolute;
    top: -5px;
    right: 10px;
    z-index: 20;
    pointer-events: none;
}

.wsd-article-sticky-badge::before {
    content: "";
    position: absolute;
    top: 0;
    right: -4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #e62b2b;
    transform: rotate(12deg);
    z-index: 2;
    box-shadow:
        inset 0 -4px 5px rgba(0,0,0,0.28),
        inset 0 3px 4px rgba(255,255,255,0.5),
        0 4px 8px rgba(0,0,0,0.22),
        0 10px 0 -5px #b42222;
}

.wsd-article-sticky-badge::after {
    content: "";
    position: absolute;
    top: 18px;
    right: 10px;
    width: 2px;
    height: 14px;
    background: linear-gradient(180deg, #cccccc 0%, #666666 100%);
    border-radius: 1px;
    transform: translateX(50%) rotate(12deg);
    z-index: 1;
}

/* ---------- 焦点图 ---------- */
.wsd-package-thumb {
    float: right;
    margin: 0 0 16px 20px;
}

.wsd-package-thumb .wsd-thumb-img {
    display: block;
}

/* ---------- 头部 ---------- */
.wsd-package-header {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
}

.wsd-package-header .wsd-title {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 12px;
    color: #111827;
    line-height: 1.3;
}

/* ---------- 元信息栏 ---------- */
.wsd-meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center;
    font-size: 14px;
    color: #6b7280;
}

.wsd-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.wsd-meta-item .wsd-meta-icon {
    width: 16px;
    height: 16px;
    opacity: 0.6;
}

.wsd-meta-item .wsd-meta-label {
    color: #9ca3af;
}

.wsd-meta-item .wsd-meta-value {
    color: #374151;
    font-weight: 500;
}

.wsd-detail-recommend {
    color: #f59e0b;
    font-size: 12px;
    letter-spacing: 1px;
    margin-left: 6px;
    vertical-align: middle;
}
.wsd-detail-recommend-label {
    font-size: 14px;
    color: #9ca3af;
    font-weight: 400;
    letter-spacing: 0;
    margin-right: 2px;
}

/* ---------- 描述内容 ---------- */
.wsd-package-body {
    margin-bottom: 32px;
    font-size: 15px;
    color: #374151;
}

.wsd-package-body p {
    margin: 0 0 14px;
}

.wsd-package-body img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.wsd-package-wrap .wsd-content blockquote {
    font-size: 0.95em;
    font-style: normal;
    color: #4b5563;
    background: #f9fafb;
    border-left: 4px solid #93c5fd;
    padding: 14px 18px;
    margin: 0 0 18px;
    border-radius: 0 6px 6px 0;
    line-height: 1.7;
}

.wsd-package-wrap .wsd-content blockquote p {
    margin: 0 0 8px;
}

.wsd-package-wrap .wsd-content blockquote p:last-child {
    margin: 0;
}

/* ---------- 附件列表 ---------- */
.wsd-files-section {
    margin-top: 28px;
}

.wsd-files-heading {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 16px;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wsd-files-heading .wsd-files-count {
    font-size: 13px;
    font-weight: 400;
    color: #6b7280;
    background: #f3f4f6;
    padding: 2px 10px;
    border-radius: 20px;
}

.wsd-files-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ---------- 单个附件卡片 ---------- */
.wsd-file-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.wsd-file-item:hover {
    border-color: #93c5fd;
    box-shadow: 0 2px 12px rgba(59, 130, 246, 0.08);
}

.wsd-file-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 8px;
    object-fit: contain;
    background: #f9fafb;
    padding: 2.5px;
    box-sizing: border-box;
}

.wsd-file-info {
    flex: 1;
    min-width: 0;
}

.wsd-file-name {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wsd-file-meta {
    font-size: 12px;
    color: #9ca3af;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.wsd-file-meta span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.wsd-file-version {
    color: #6366f1;
    font-weight: 500;
}

/* ---------- 下载按钮 ---------- */
.wsd-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: #2563eb;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: background 0.2s, transform 0.15s;
    flex-shrink: 0;
}

.wsd-download-btn:hover {
    background: #1d4ed8;
    color: #fff !important;
    transform: translateY(-1px);
    text-decoration: none !important;
}

.wsd-download-btn:active {
    transform: translateY(0);
}

.wsd-download-btn svg {
    width: 16px;
    height: 16px;
}

/* ---------- 空状态 ---------- */
.wsd-no-files {
    text-align: center;
    padding: 40px 20px;
    color: #9ca3af;
    background: #f9fafb;
    border-radius: 10px;
    border: 1px dashed #d1d5db;
    font-size: 14px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 640px) {
    .wsd-package-header .wsd-title {
        font-size: 20px;
    }

    .wsd-meta-bar {
        gap: 10px;
        font-size: 13px;
    }

    .wsd-file-item {
        flex-wrap: wrap;
        gap: 8px 12px;
        padding: 12px 14px;
    }

    .wsd-file-icon {
        width: 34px;
        height: 34px;
        padding: 2px;
        border-radius: 6px;
    }

    .wsd-file-info {
        flex: 1;
        min-width: 0;
    }

    .wsd-file-name {
        font-size: 14px;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        word-break: break-all;
    }

    .wsd-file-meta {
        font-size: 11px;
        gap: 8px;
    }

    .wsd-download-btn {
        width: 100%;
        justify-content: center;
        padding: 10px;
        font-size: 14px;
        margin-top: 2px;
    }

    .wsd-file-changelog {
        margin-top: 8px;
        padding-top: 8px;
        border-top: 1px solid #f3f4f6;
    }

    .wsd-file-changelog-text {
        font-size: 12px;
        line-height: 1.6;
    }
}

/* ============================================================
   下载首页 [wsd_download_home]
   ============================================================ */

.wsd-home-wrap,
.wsd-cat-page-wrap {
    max-width: 960px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1f2937;
    line-height: 1.7;
    padding: 24px 0px;
}

/* ---------- 分类标签（横向排列） ---------- */
.wsd-home-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.wsd-cat-card {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    text-decoration: none !important;
    color: #374151;
    font-size: 13px;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.wsd-cat-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
    background: #f0f7ff;
}

.wsd-cat-card.active {
    border-color: #2563eb;
    background: #2563eb;
    color: #fff;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.wsd-cat-card.active .wsd-cat-count {
    color: #bfdbfe;
}

.wsd-cat-name {
    font-weight: 500;
}

.wsd-cat-count {
    font-size: 10px;
    color: #9ca3af;
}

/* ---------- 筛选栏 ---------- */
.wsd-home-filter-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #6b7280;
}

.wsd-home-filter-bar strong {
    color: #111827;
}

.wsd-filter-clear {
    margin-left: auto;
    color: #ef4444;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

.wsd-filter-clear:hover {
    color: #dc2626;
}

/* ---------- 下载包列表 ---------- */
.wsd-home-list {
    display: grid;
    grid-template-columns: repeat(var(--wsd-cols, 3), 1fr);
    gap: 16px;
}

/* ---------- 单个下载包卡片 ---------- */
.wsd-pkg-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 5px;
    overflow: hidden;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.wsd-pkg-card:hover {
    border-color: #d1d5db;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.wsd-pkg-badges {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.wsd-pkg-badge {
    font-size: 10px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(2px);
    line-height: 1;
}

.wsd-pkg-badge-sticky {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
}
.wsd-pkg-badge-sticky img {
    width: 11px;
    height: 11px;
    display: block;
}

.wsd-pkg-badge-recommend {
    position: absolute;
    top: 2px;
    right: 2px;
    padding: 0 5px 1px 6px;
    border-radius: 8px;
    color: #fcd34d;
    letter-spacing: 1px;
}

.wsd-pkg-badge-circle {
    width: 16px;
    padding: 0 0 1px 1px;
    border-radius: 50%;
}

.wsd-pkg-card-body {
    flex: 1;
    padding: 16px 18px 12px;
}

.wsd-pkg-cat {
    display: inline-block;
    font-size: 11px;
    color: #6366f1;
    background: #eef2ff;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
    font-weight: 500;
}

.wsd-pkg-title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.wsd-pkg-title a {
    color: #111827;
    text-decoration: none;
}

.wsd-pkg-title a:hover {
    color: #2563eb;
}

.wsd-pkg-excerpt {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3!important;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wsd-pkg-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    border-top: 1px solid #f3f4f6;
    background: #fafafa;
}

.wsd-pkg-count {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #9ca3af;
}

.wsd-pkg-btn {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    background: #2563eb;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.2s;
}

.wsd-pkg-btn:hover {
    background: #1d4ed8;
    color: #fff !important;
}

/* ---------- 分页 ---------- */
.wsd-home-pager {
    margin-top: 28px;
    text-align: center;
}

.wsd-home-pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    margin: 0 3px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    color: #374151;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
}

.wsd-home-pager .page-numbers:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.wsd-home-pager .page-numbers.current {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.wsd-home-pager .page-numbers.dots {
    border: none;
    background: none;
}

/* ---------- 空状态 ---------- */
.wsd-home-empty {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
    font-size: 15px;
}

/* ---------- 详情页右侧边栏 ---------- */
.wsd-sidebar-download-info {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}

/* 下载计数 */
.wsd-sb-count {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 16px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.wsd-sb-count-num {
    font-size: 32px;
    font-weight: 700;
    color: #2563eb;
    line-height: 1.2;
    letter-spacing: -.5px;
}

.wsd-sb-count-label {
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
    letter-spacing: .5px;
}

.wsd-sb-divider {
    height: 1px;
    background: #e5e7eb;
}

/* 附件头部 */
.wsd-sb-attach-head {
    padding: 10px 14px;
    background: #f9fafb;
}

.wsd-sb-attach-count {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* 附件列表 */
.wsd-sb-attach-list {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: none;
}

.wsd-sb-attach-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-top: 1px solid #f3f4f6;
    transition: background .15s;
}

.wsd-sb-attach-item:hover {
    background: #f9fafb;
}

.wsd-sb-attach-index {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #f3f4f6;
    color: #9ca3af;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wsd-sb-attach-item:first-child .wsd-sb-attach-index {
    background: #dbeafe;
    color: #2563eb;
}

.wsd-sb-attach-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    object-fit: contain;
    border-radius: 4px;
}

.wsd-sb-attach-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wsd-sb-attach-name {
    font-size: 13px;
    font-weight: 500;
    color: #1f2937;
    line-height: 1.3;
    word-break: break-all;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wsd-sb-attach-meta {
    font-size: 11px;
    color: #9ca3af;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.wsd-sb-attach-ver {
    color: #6b7280;
    font-weight: 500;
}

/* 下载按钮 */
.wsd-sb-attach-dl {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all .15s;
    text-decoration: none;
}

.wsd-sb-attach-dl:hover {
    background: #2563eb;
    color: #fff;
}

.wsd-sb-empty {
    padding: 20px 14px;
    text-align: center;
    color: #9ca3af;
    font-size: 13px;
    margin: 0;
}

/* ============================================================
   侧边栏 — 软件信息卡片（图标、下载次数、软件大小）
   ============================================================ */
.wsd-info-card {
    background: linear-gradient(135deg, #f0f4ff 0%, #f8fafc 100%);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    border: 1px solid #eef0f2;
}

.wsd-info-card-row {
    display: flex;
    align-items: center;
    padding-bottom: 2px;
    border-bottom: 1px solid rgba(0,0,0,.06);
}

/* 图标区域 — 左侧 */
.wsd-info-card-thumb {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 0 10px 10px;
}

.wsd-info-card-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,.08);
    background: #fff;
    padding: 3px;
}

.wsd-info-card-img-plh {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    padding: 12px;
}

.wsd-info-card-img-plh svg {
    width: 32px;
    height: 32px;
    color: #94a3b8;
}

/* 右侧内容区 */
.wsd-info-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 0 14px;
}

/* 下载次数 */
.wsd-info-card-hero {
    display: flex;
    align-items: baseline;
    gap: 3px;
    flex-wrap: wrap;
}

.wsd-info-card-hero-num {
    font-size: 21px;
    font-weight: 700;
    color: #1e40af;
    line-height: 1.2;
    letter-spacing: -.5px;
}

.wsd-info-card-hero-num ~ .wsd-info-card-hero-num {
    color: #0d9488;
}

.wsd-info-card-hero-label {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
}

.wsd-info-card-hero-sep {
    display: inline-block;
    width: 1px;
    height: 14px;
    background: linear-gradient(to bottom, transparent, #d1d5db, transparent);
    margin: 0 10px;
    align-self: center;
}

/* 摘要 */
.wsd-info-card-excerpt {
    padding: 10px 14px 14px;
    font-size: 12px;
    color: #64748b;
    line-height: 1.6;
}

/* 标签 */
.wsd-info-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 14px 14px;
}

.wsd-info-card-tag {
    display: inline-block;
    padding: 3px 10px;
    font-size: 11px;
    color: #475569;
    background: #cccccc55;
    border-radius: 20px;
    text-decoration: none;
    transition: background .2s, color .2s;
}

.wsd-info-card-tag:hover {
    background: #2563eb;
    color: #fff;
}

/* ============================================================
   右侧边栏通用 Widget 美化（搜索、近期文章、近期评论、归档、分类）
   ============================================================ */

/* ---------- Widget 容器 ---------- */
#right-sidebar .widget {
    background: #fff;
    border: 1px solid #eef0f2;
    border-radius: 10px;
    padding: 20px 18px;
    margin-bottom: 16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    transition: box-shadow 0.2s;
}

#right-sidebar .widget:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

/* ---------- Widget 标题 ---------- */
#right-sidebar .widget-title {
    font-size: 12px !important;
    font-weight: 600;
    color: #374151;
    margin: 0 0 12px;
    padding: 0 0 0 14px;
    border-left: 2px solid #2563eb;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

/* ---------- 搜索表单 ---------- */
#right-sidebar .widget_search .search-form {
    display: flex;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #f9fafb;
}

#right-sidebar .widget_search .search-form:focus-within {
    border-color: #2563eb;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

#right-sidebar .widget_search .search-field {
    flex: 1;
    border: none !important;
    padding: 10px 14px;
    font-size: 13px;
    color: #1f2937;
    background: transparent;
    outline: none;
    min-width: 0;
}

#right-sidebar .widget_search .search-field::placeholder {
    color: #9ca3af;
    font-size: 13px;
}

#right-sidebar .widget_search .search-submit {
    flex-shrink: 0;
    border: none;
    background: #2563eb;
    color: #fff;
    padding: 0 16px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
}

#right-sidebar .widget_search .search-submit:hover {
    background: #1d4ed8;
}

/* ---------- 通用列表项 ---------- */
#right-sidebar .widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#right-sidebar .widget ul li {
    padding: 9px 0;
    border-bottom: 1px solid #f3f4f6;
    margin-bottom: 0;
    font-size: 13px;
    color: #4b5563;
    line-height: 1.5;
    transition: padding-left 0.2s;
}

#right-sidebar .widget ul li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

#right-sidebar .widget ul li:first-child {
    padding-top: 0;
}

#right-sidebar .widget ul li a {
    color: #4b5563;
    text-decoration: none;
    transition: color 0.2s;
    display: inline;
}

#right-sidebar .widget ul li a:hover {
    color: #2563eb;
}

/* ---------- 近期文章 ---------- */
#right-sidebar .widget_recent_entries ul li {
    padding: 10px 0 10px 16px;
    position: relative;
}

#right-sidebar .widget_recent_entries ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15px;
    width: 5px;
    height: 5px;
    background: #d1d5db;
    border-radius: 50%;
    transition: background 0.2s;
}

#right-sidebar .widget_recent_entries ul li:hover::before {
    background: #2563eb;
}

#right-sidebar .widget_recent_entries ul li a {
    font-weight: 500;
    color: #374151;
    display: block;
    line-height: 1.4;
}

#right-sidebar .widget_recent_entries .post-date {
    display: block;
    font-size: 11px;
    color: #9ca3af;
    margin-top: 3px;
}

/* ---------- 近期评论 ---------- */
#right-sidebar .widget_recent_comments ul li {
    padding: 10px 0 10px 16px;
    position: relative;
    font-size: 13px;
    line-height: 1.5;
}

#right-sidebar .widget_recent_comments ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15px;
    width: 5px;
    height: 5px;
    background: #d1d5db;
    border-radius: 50%;
    transition: background 0.2s;
}

#right-sidebar .widget_recent_comments ul li:hover::before {
    background: #8b5cf6;
}

#right-sidebar .widget_recent_comments .comment-author-link {
    font-weight: 600;
    color: #1f2937;
}

#right-sidebar .widget_recent_comments ul li > a {
    font-weight: 500;
    color: #374151;
}

/* ---------- 归档 ---------- */
#right-sidebar .widget_archive ul li {
    padding: 0;
    border-bottom: none;
}

#right-sidebar .widget_archive ul li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 0 9px 18px;
    color: #4b5563;
    font-size: 13px;
    border-bottom: 1px solid #f3f4f6;
    position: relative;
    text-decoration: none;
    transition: color 0.2s, padding-left 0.2s;
}

#right-sidebar .widget_archive ul li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    background: #d1d5db;
    border-radius: 50%;
    transition: background 0.2s;
}

#right-sidebar .widget_archive ul li a:hover {
    color: #2563eb;
    padding-left: 22px;
}

#right-sidebar .widget_archive ul li a:hover::before {
    background: #2563eb;
}

#right-sidebar .widget_archive ul li:last-child a {
    border-bottom: none;
}

/* 归档计数 */
#right-sidebar .widget_archive ul li a .count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 20px;
    padding: 0 7px;
    background: #f3f4f6;
    color: #9ca3af;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
    margin-left: 8px;
    transition: background 0.2s, color 0.2s;
}

#right-sidebar .widget_archive ul li a:hover .count {
    background: #eff6ff;
    color: #2563eb;
}

/* ---------- 分类 ---------- */
#right-sidebar .widget_categories ul li {
    padding: 0;
    border-bottom: none;
}

#right-sidebar .widget_categories ul li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 0 9px 18px;
    color: #4b5563;
    font-size: 13px;
    border-bottom: 1px solid #f3f4f6;
    position: relative;
    text-decoration: none;
    transition: color 0.2s, padding-left 0.2s;
}

#right-sidebar .widget_categories ul li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    background: #d1d5db;
    border-radius: 50%;
    transition: background 0.2s;
}

#right-sidebar .widget_categories ul li a:hover {
    color: #2563eb;
    padding-left: 22px;
}

#right-sidebar .widget_categories ul li a:hover::before {
    background: #2563eb;
}

#right-sidebar .widget_categories ul li:last-child a {
    border-bottom: none;
}

/* 分类计数 */
#right-sidebar .widget_categories ul li a .count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 20px;
    padding: 0 7px;
    background: #f3f4f6;
    color: #9ca3af;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
    margin-left: 8px;
    transition: background 0.2s, color 0.2s;
}

#right-sidebar .widget_categories ul li a:hover .count {
    background: #eff6ff;
    color: #2563eb;
}

/* 分类下拉选择框 */
#right-sidebar .widget_archive select,
#right-sidebar .widget_categories select {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 13px;
    color: #4b5563;
    background: #f9fafb;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
    transition: border-color 0.2s, background 0.2s;
}

#right-sidebar .widget_archive select:focus,
#right-sidebar .widget_categories select:focus {
    border-color: #2563eb;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

/* ---------- 标签云 ---------- */
#right-sidebar .widget_tag_cloud .tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

#right-sidebar .widget_tag_cloud .tag-cloud-link {
    display: inline-block;
    padding: 4px 10px;
    background: #f3f4f6;
    color: #4b5563;
    border-radius: 5px;
    font-size: 12px !important;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

#right-sidebar .widget_tag_cloud .tag-cloud-link:hover {
    background: #2563eb;
    color: #fff;
}

/* ---------- RSS Widget ---------- */
#right-sidebar .widget_rss .rss-widget-icon {
    display: none;
}

#right-sidebar .widget_rss .widget-title .rsswidget:first-child {
    display: none;
}

#right-sidebar .widget_rss ul li {
    padding: 10px 0;
}

#right-sidebar .widget_rss .rsswidget {
    font-weight: 600;
    color: #1f2937;
    font-size: 13px;
}

#right-sidebar .widget_rss .rss-date {
    display: block;
    font-size: 11px;
    color: #9ca3af;
    margin-top: 3px;
}

#right-sidebar .widget_rss .rssSummary {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
    line-height: 1.5;
}

#right-sidebar .widget_rss cite {
    display: block;
    font-size: 11px;
    color: #9ca3af;
    margin-top: 3px;
    font-style: normal;
}

/* ---------- 日历 ---------- */
#right-sidebar .widget_calendar table {
    width: 100%;
    border-collapse: collapse;
}

#right-sidebar .widget_calendar caption {
    font-weight: 600;
    color: #1f2937;
    padding: 6px 0;
    font-size: 13px;
}

#right-sidebar .widget_calendar th,
#right-sidebar .widget_calendar td {
    padding: 6px 2px;
    text-align: center;
    font-size: 12px;
}

#right-sidebar .widget_calendar th {
    color: #9ca3af;
    font-weight: 500;
    border-bottom: 1px solid #e5e7eb;
}

#right-sidebar .widget_calendar td a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #2563eb;
    color: #fff;
    border-radius: 50%;
    text-decoration: none;
    font-weight: 600;
    font-size: 11px;
}

#right-sidebar .widget_calendar #prev a,
#right-sidebar .widget_calendar #next a {
    background: transparent;
    color: #2563eb;
    width: auto;
    height: auto;
    font-size: 12px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
    .wsd-home-list {
        grid-template-columns: repeat(2, 1fr);
    }

    #right-sidebar .widget {
        padding: 20px 16px;
    }
}

@media (max-width: 480px) {
    .wsd-home-list {
        grid-template-columns: 1fr;
    }

    .wsd-pkg-card-foot {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }

    .wsd-pkg-btn {
        text-align: center;
        justify-content: center;
    }
}