/**
 * 现代化卡片样式优化
 * 作者: Claude Code
 * 日期: 2025-12-10
 * 说明: 提升首页卡片视觉效果和交互体验
 */

/* ==========================================================================
   卡片通用样式增强
   ========================================================================== */

#posts .post-item {
    /* 微妙底部阴影 - 营造悬浮感 */
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);

    /* 更圆润的圆角 */
    border-radius: 16px;

    /* 平滑过渡动画 */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* 轻微的背景色变化（暗黑模式下会自动适配） */
    position: relative;
    overflow: hidden;
}

/* 卡片悬停效果 */
#posts .post-item:hover {
    /* 加深阴影 + 上浮效果 */
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    transform: translateY(-6px);
}

/* ==========================================================================
   缩略图优化
   ========================================================================== */

#posts .post-item .thumbnail {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

/* 图片悬停缩放效果 */
#posts .post-item .thumbnail img {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

#posts .post-item:hover .thumbnail img {
    transform: scale(1.08);
}

/* 图片遮罩渐变 - 让文字更易读 */
#posts .post-item .thumbnail::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

#posts .post-item:hover .thumbnail::after {
    opacity: 1;
}

/* ==========================================================================
   列表式卡片特殊优化
   ========================================================================== */

#posts .post-item.post-item-list {
    padding: 16px;
}

#posts .post-item.post-item-list .thumbnail {
    margin-right: 16px;
}

/* 标题左侧彩色条优化 */
#posts .post-item.post-item-list .title-l-c {
    height: 30px;
    width: 4px;
    border-radius: 2px;
    transition: all 0.3s ease;
}

#posts .post-item.post-item-list:hover .title-l-c {
    height: 40px;
    width: 5px;
}

/* ==========================================================================
   卡片式布局优化
   ========================================================================== */

#posts .post-item-card .post-item-block {
    padding: 0;
    border-radius: 16px;
    overflow: hidden;
}

#posts .post-item-card .post-info {
    padding: 20px;
}

#posts .post-item-card .thumbnail {
    border-radius: 16px 16px 0 0;
}

/* ==========================================================================
   标签优化 - 毛玻璃效果
   ========================================================================== */

#posts .post-item .post-tags .badge,
#posts .post-item .info-title .badge {
    backdrop-filter: blur(8px);
    background-color: rgba(var(--bs-danger-rgb), 0.85) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

#posts .post-item .post-tags .badge:hover,
#posts .post-item .info-title .badge:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 置顶标签特殊效果 */
#posts .post-item .post-tags .badge.bg-danger,
#posts .post-item .info-title .badge.bg-danger {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%) !important;
}

/* ==========================================================================
   标题优化
   ========================================================================== */

#posts .post-item .info-title {
    margin-bottom: 12px;
}

#posts .post-item .info-title a {
    transition: color 0.2s ease;
    font-weight: 600;
    line-height: 1.6;
}

#posts .post-item:hover .info-title a {
    color: var(--pk-c-primary);
}

/* ==========================================================================
   摘要文本优化
   ========================================================================== */

#posts .post-item .info-meta {
    margin: 12px 0;
    line-height: 1.8;
    color: rgba(0, 0, 0, 0.6);
}

/* 暗黑模式适配 */
body.puock-dark #posts .post-item .info-meta {
    color: rgba(255, 255, 255, 0.65);
}

/* ==========================================================================
   底部信息栏优化
   ========================================================================== */

#posts .post-item .info-footer {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

body.puock-dark #posts .post-item .info-footer {
    border-top-color: rgba(255, 255, 255, 0.08);
}

/* 图标和文字对齐优化 */
#posts .post-item .info-footer i {
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

#posts .post-item .info-footer a:hover i {
    opacity: 1;
}

/* ==========================================================================
   加载动画优化
   ========================================================================== */

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#posts .post-item {
    animation: cardFadeIn 0.5s ease forwards;
}

/* 错开加载动画 */
#posts .post-item:nth-child(1) { animation-delay: 0s; }
#posts .post-item:nth-child(2) { animation-delay: 0.1s; }
#posts .post-item:nth-child(3) { animation-delay: 0.2s; }
#posts .post-item:nth-child(4) { animation-delay: 0.3s; }
#posts .post-item:nth-child(5) { animation-delay: 0.4s; }
#posts .post-item:nth-child(6) { animation-delay: 0.5s; }

/* ==========================================================================
   响应式优化
   ========================================================================== */

/* 平板设备 */
@media (max-width: 992px) {
    #posts .post-item {
        border-radius: 14px;
    }

    #posts .post-item-card .post-info {
        padding: 16px;
    }
}

/* 移动设备 */
@media (max-width: 576px) {
    #posts .post-item {
        border-radius: 12px;
        box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
    }

    #posts .post-item:hover {
        /* 移动端减少悬停效果 */
        transform: translateY(-2px);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    }

    #posts .post-item.post-item-list {
        padding: 12px;
    }

    #posts .post-item-card .post-info {
        padding: 12px;
    }

    /* 移动端禁用图片缩放（性能考虑） */
    #posts .post-item:hover .thumbnail img {
        transform: scale(1.02);
    }
}

/* ==========================================================================
   暗黑模式特殊优化
   ========================================================================== */

body.puock-dark #posts .post-item {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

body.puock-dark #posts .post-item:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   性能优化
   ========================================================================== */

/* 使用 GPU 加速 */
#posts .post-item,
#posts .post-item .thumbnail img {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* 减少重绘 */
#posts .post-item * {
    will-change: auto;
}

#posts .post-item:hover {
    will-change: transform, box-shadow;
}

/* ==========================================================================
   Sidebar / Pagination / Comments / Footer 收口优化
   ========================================================================== */

/* Sidebar 卡片化与层级统一 */
#sidebar .sidebar-main > .p-block,
#sidebar .sidebar-main .card,
#sidebar .sidebar-main .block {
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

#sidebar .sidebar-main > .p-block + .p-block,
#sidebar .sidebar-main .block + .block {
    margin-top: 14px;
}

#sidebar .sidebar-main > .p-block:hover,
#sidebar .sidebar-main .card:hover,
#sidebar .sidebar-main .block:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

#sidebar .sidebar-main .widget-title,
#sidebar .sidebar-main .title,
#sidebar .sidebar-main h3,
#sidebar .sidebar-main h4 {
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 10px;
}

/* 分页统一风格（文章分页 + 评论分页） */
.pagination {
    gap: 8px;
    flex-wrap: wrap;
}

.pagination li,
.pagination .page-numbers {
    list-style: none;
}

.pagination li a,
.pagination li span,
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background-color: rgba(255, 255, 255, 0.9);
    color: inherit;
    transition: all 0.2s ease;
}

.pagination li a:hover,
.pagination .page-numbers:hover {
    border-color: var(--pk-c-primary);
    color: var(--pk-c-primary);
    transform: translateY(-1px);
}

.pagination .current,
.pagination li span.current {
    background: var(--pk-c-primary);
    color: #fff;
    border-color: var(--pk-c-primary);
    box-shadow: 0 6px 14px rgba(var(--bs-primary-rgb), 0.28);
}

/* 评论区整体质感 */
#comments {
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    padding: 18px;
}

#comments #comment-form textarea,
#comments #comment-form input[type="text"],
#comments #comment-form input[type="email"],
#comments #comment-form input[type="url"] {
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#comments #comment-form textarea:focus,
#comments #comment-form input[type="text"]:focus,
#comments #comment-form input[type="email"]:focus,
#comments #comment-form input[type="url"]:focus {
    border-color: var(--pk-c-primary);
    box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), 0.12);
}

#post-comments .comment,
#post-comments .comment-body,
#post-comments li.comment {
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background-color: rgba(255, 255, 255, 0.82);
    padding: 12px;
}

#post-comments li.comment + li.comment {
    margin-top: 12px;
}

#post-comments .comment .comment-meta,
#post-comments .comment .comment-metadata {
    font-size: 0.9em;
    opacity: 0.75;
}

/* Footer 收口：弱对比分层 */
#footer {
    margin-top: 32px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.015) 0%, rgba(0, 0, 0, 0.04) 100%);
    backdrop-filter: saturate(140%);
}

#footer .container {
    padding-top: 24px;
    padding-bottom: 12px;
}

#footer .info {
    opacity: 0.85;
}

/* 文章页 / 页面容器一致化 */
#post-main > .p-block,
#page-empty #post-main > .p-block {
    border-radius: 22px;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

#post-main > .p-block + .p-block,
#post-main .single-next-or-pre,
.single-next-or-pre {
    border-radius: 18px;
    overflow: hidden;
}

#post-main > .p-block.p-flex-sc {
    border-radius: 18px;
}

.single-next-or-pre a > div {
    overflow: hidden;
}

.single-next-or-pre a:first-child > div {
    border-top-left-radius: 18px;
    border-bottom-left-radius: 18px;
}

.single-next-or-pre a:last-child > div {
    border-top-right-radius: 18px;
    border-bottom-right-radius: 18px;
}

#post-main .options .option {
    border-radius: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#post-main .options .option:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

#post-main .entry-content-box {
    margin-top: 2px;
}

#post-main .footer-info {
    border-top: 1px dashed rgba(0, 0, 0, 0.1);
    padding-top: 14px;
}

/* 全站页面节奏统一（首页/搜索/列表） */
#content .row.row-cols-1 {
    row-gap: 18px;
}

#content #posts {
    margin-top: 2px;
}

#content #posts + .pagination,
#content .pk-pagination,
#content nav.pagination {
    margin-top: 18px;
}

/* 空内容状态（搜索无结果等） */
#content .p-block .global-search-form {
    max-width: 640px;
    margin: 0 auto;
}

#content .p-block .global-search-form input.form-control {
    border-radius: 10px;
    min-height: 42px;
    border: 1px solid rgba(0, 0, 0, 0.12);
}

#content .p-block .global-search-form .btn {
    border-radius: 10px;
    min-width: 120px;
}

/* 轮播图圆角统一 */
#index-banners,
#index-banners .index-banner-swiper,
#index-banners .swiper-wrapper,
#index-banners .swiper-slide,
#index-banners .swiper-slide > a {
    border-radius: 18px;
}

#index-banners {
    overflow: hidden;
}

#index-banners .index-banner-swiper,
#index-banners .swiper-slide,
#index-banners .swiper-slide > a {
    display: block;
    overflow: hidden;
}

#index-banners .swiper-slide > a {
    position: relative;
}

#index-banners .swiper-slide img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px;
}

#index-banners .swiper-title {
    border-radius: 0 0 18px 18px;
    overflow: hidden;
}

/* 暗黑模式收口 */
body.puock-dark #sidebar .sidebar-main > .p-block,
body.puock-dark #sidebar .sidebar-main .card,
body.puock-dark #sidebar .sidebar-main .block {
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

body.puock-dark .pagination li a,
body.puock-dark .pagination li span,
body.puock-dark .pagination .page-numbers {
    background-color: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
}

body.puock-dark #comments {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

body.puock-dark #post-comments .comment,
body.puock-dark #post-comments .comment-body,
body.puock-dark #post-comments li.comment {
    background-color: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}

body.puock-dark #comments #comment-form textarea,
body.puock-dark #comments #comment-form input[type="text"],
body.puock-dark #comments #comment-form input[type="email"],
body.puock-dark #comments #comment-form input[type="url"] {
    background-color: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.9);
}

body.puock-dark #footer {
    border-top-color: rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.01) 0%, rgba(255, 255, 255, 0.03) 100%);
}

body.puock-dark #post-main > .p-block,
body.puock-dark #page-empty #post-main > .p-block {
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

body.puock-dark #post-main .options .option:hover {
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

body.puock-dark #post-main .footer-info {
    border-top-color: rgba(255, 255, 255, 0.12);
}

body.puock-dark #content .p-block .global-search-form input.form-control {
    background-color: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.92);
}

body.puock-dark #content .p-block .global-search-form input.form-control::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

body.puock-dark #index-banners .swiper-slide img {
    box-shadow: none;
}

body.puock-dark #breadcrumb nav {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

body.puock-dark #breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.35);
}

body.puock-dark .global-top-notice {
    border-color: rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

body.puock-dark .global-top-notice .notice-icon {
    background: rgba(var(--bs-primary-rgb), 0.18);
}

body.puock-dark #sidebar .widget-puock-author {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
}

body.puock-dark #sidebar .widget-puock-author .header img {
    border-color: rgba(17, 24, 39, 0.95);
}

body.puock-dark #sidebar .widget-puock-author .row > div + div::before {
    background: rgba(255, 255, 255, 0.08);
}

/* 分类/文章列表顶部区域跟随页面背景，避免面包屑卡片外侧露白 */
#content,
#content > .cat-top-info,
#content > .cat-top-info + .container {
    background-color: var(--pk-bg-body) !important;
}

/* 面包屑 / 顶部通知 / 小工具深化美化 */
#breadcrumb {
    margin-bottom: 16px;
}

#breadcrumb nav {
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    padding: 10px 14px;
}

#breadcrumb .breadcrumb {
    margin-bottom: 0;
    padding: 0;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

#breadcrumb .breadcrumb-item,
#breadcrumb .breadcrumb-item a {
    font-size: 0.92rem;
}

#breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: rgba(0, 0, 0, 0.35);
    padding-right: 8px;
}

#breadcrumb .breadcrumb-item.active {
    color: var(--pk-c-primary);
    font-weight: 600;
}

.global-top-notice {
    position: relative;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.05) 0%, rgba(255, 255, 255, 0.9) 100%);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.global-top-notice::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--pk-c-primary) 0%, rgba(var(--bs-primary-rgb), 0.35) 100%);
}

.global-top-notice .global-top-notice-swiper {
    min-height: 28px;
}

.global-top-notice .swiper-slide a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 6px;
}

.global-top-notice .notice-icon {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--bs-primary-rgb), 0.1);
    color: var(--pk-c-primary);
    flex-shrink: 0;
}

/* 首页灰底层次收口：让背景像页面留白，而不是卡片下面的一整块灰垫 */
body:not(.puock-dark) #content.container {
    background-color: transparent !important;
}

body:not(.puock-dark) #content.container > .global-top-notice {
    margin-bottom: 18px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03), 0 10px 28px rgba(15, 23, 42, 0.045);
    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
}

body:not(.puock-dark) #content.container > .global-top-notice::before {
    opacity: 0.72;
}

body:not(.puock-dark) #content.container #posts .post-item,
body:not(.puock-dark) #content.container #posts .post-item-card .post-item-block,
body:not(.puock-dark) #content.container #sidebar .sidebar-main > .p-block,
body:not(.puock-dark) #content.container #sidebar .sidebar-main .card,
body:not(.puock-dark) #content.container #sidebar .sidebar-main .block,
body:not(.puock-dark) #content.container #sidebar .pk-widget,
body:not(.puock-dark) #content.container #sidebar .widget {
    border: 1px solid rgba(226, 232, 240, 0.86);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.025), 0 8px 22px rgba(15, 23, 42, 0.04);
}

body:not(.puock-dark) #content.container #posts .post-item:hover,
body:not(.puock-dark) #content.container #posts .post-item-card:hover .post-item-block,
body:not(.puock-dark) #content.container #sidebar .sidebar-main > .p-block:hover,
body:not(.puock-dark) #content.container #sidebar .sidebar-main .card:hover,
body:not(.puock-dark) #content.container #sidebar .sidebar-main .block:hover {
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.035), 0 14px 30px rgba(15, 23, 42, 0.065);
}

#sidebar .pk-widget,
#sidebar .widget-puock-author,
#sidebar .widget {
    border-radius: 16px;
}

#sidebar .pk-widget .t-lg.border-bottom,
#sidebar .widget .t-lg.border-bottom {
    border-bottom-width: 2px !important;
    padding-bottom: 10px !important;
}

#sidebar .widget-puock-author {
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07);
    background: rgba(255, 255, 255, 0.9);
}

#sidebar .widget-puock-author .header {
    min-height: 112px;
    background-size: cover;
    background-position: center;
    position: relative;
}

#sidebar .widget-puock-author .header::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.3) 100%);
}

#sidebar .widget-puock-author .header img {
    position: absolute;
    left: 50%;
    bottom: -28px;
    transform: translateX(-50%);
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.95);
    z-index: 1;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
}

#sidebar .widget-puock-author .content {
    padding: 40px 16px 16px;
}

#sidebar .widget-puock-author .row > div {
    position: relative;
}

#sidebar .widget-puock-author .row > div + div::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: rgba(0, 0, 0, 0.06);
}

/* 移动端细调 */
@media (max-width: 576px) {
    #comments {
        padding: 14px;
        border-radius: 12px;
    }

    #post-comments .comment,
    #post-comments .comment-body,
    #post-comments li.comment {
        padding: 10px;
        border-radius: 10px;
    }

    .pagination li a,
    .pagination li span,
    .pagination .page-numbers {
        min-width: 32px;
        height: 32px;
        border-radius: 8px;
        padding: 0 10px;
        font-size: 0.9em;
    }

    #footer .container {
        padding-top: 18px;
    }

    #post-main > .p-block,
    #page-empty #post-main > .p-block {
        border-radius: 12px;
    }

    #post-main .options {
        gap: 8px;
    }

    #index-banners,
    #index-banners .index-banner-swiper,
    #index-banners .swiper-wrapper,
    #index-banners .swiper-slide,
    #index-banners .swiper-slide > a,
    #index-banners .swiper-slide img {
        border-radius: 14px;
    }

    #index-banners .swiper-title {
        border-radius: 0 0 14px 14px;
    }

    #breadcrumb nav {
        padding: 9px 12px;
        border-radius: 12px;
    }

    .global-top-notice {
        border-radius: 14px;
    }

    .global-top-notice .swiper-slide a {
        gap: 8px;
    }

    #sidebar .widget-puock-author .content {
        padding: 38px 14px 14px;
    }
}

/* 文章页卡片圆角最终覆盖，放在文件末尾避免被响应式规则压回去 */
#post #post-main > .p-block {
    border-radius: 22px !important;
    overflow: hidden !important;
}

#post #post-main > .p-block.p-flex-sc {
    border-radius: 18px !important;
}

#post .single-next-or-pre,
#post .single-next-or-pre a > div {
    overflow: hidden !important;
}

#post .single-next-or-pre {
    border-radius: 18px !important;
}

#post .single-next-or-pre a:first-child > div {
    border-top-left-radius: 18px !important;
    border-bottom-left-radius: 18px !important;
}

#post .single-next-or-pre a:last-child > div {
    border-top-right-radius: 18px !important;
    border-bottom-right-radius: 18px !important;
}
