:root {
    --trans-light: rgba(255, 255, 255, 0.75);
    --trans-dark: rgba(25, 25, 25, 0.88);
    --border-style: 1px solid rgb(169, 169, 169);
    --backdrop-filter: blur(5px) saturate(150%);
}

/*==============================================================================*/

/* 首页文章双列布局 - 强制覆盖 */
#recent-posts .recent-post-items {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 5px;
}

/* 每个文章卡片 */
#recent-posts .recent-post-item {
    width: auto !important;
    margin: 0 0 10px 0 !important;
}

/* 防止封面撑破 */
#recent-posts .recent-post-item .post_cover {
    width: 100%;
}

/* 移动端 */
@media screen and (max-width: 768px) {
    #recent-posts .recent-post-items {
        grid-template-columns: 1fr !important;
    }
}

/*==============================================================================*/

/* 页脚与头图透明 */
#footer {
    background: transparent !important;
}

#page-header {
    background: transparent !important;
}

/* 白天模式遮罩透明 */
#footer::before {
    background: transparent !important;
}

#page-header:not(.not-top-img):before {
    background: transparent !important;
}

/* 夜间模式遮罩透明 */
[data-theme="dark"] #footer::before {
    background: transparent !important;
}

[data-theme="dark"] #page-header:not(.not-top-img):before {
    background: transparent !important;
}

/*==============================================================================*/

/* 副标题样式修改 */
#site-subtitle {
    color: #FFFFFF !important;
    font-size: 4em !important;
}

/*==============================================================================*/

/* 网站标题区域样式 */
#site-info h1#site-title,
#site-info #site-subtitle {
    color: #FFFFFF !important;
}


/*==============================================================================*/

/*导航栏——玻璃拟态设计，始终固定顶部，无弹跳动画 */
#nav {
    position: fixed !important;
    top: 0 !important;
    left: 0;
    width: 100%;
    height: 60px;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 28px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border-bottom: 1px solid rgba(128, 128, 128, 0.12);
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.04);
    transition: none !important;
    transform: none !important;
    animation: none !important;
}

/* 内页 nav 也禁用过渡和弹跳 */
#page-header.nav-fixed #nav,
#page-header.not-top-img #nav,
#page-header #nav {
    transition: none !important;
    transform: none !important;
    animation: none !important;
    top: 0 !important;
}

/* 站点标题 */
#nav #blog-info {
    flex-shrink: 0;
    margin-right: 24px;
}
#nav .nav-site-title {
    font-size: 1.2em;
    font-weight: 700;
    letter-spacing: 2px;
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.2s ease;
}
#nav .nav-site-title:hover {
    color: #3A5FCD;
}

/* 菜单容器——与标题同行居中 */
#nav #menus {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 菜单项 */
#nav .menus_items {
    position: static !important;
    width: auto !important;
    left: auto !important;
    transform: none !important;
    display: flex;
    align-items: center;
    gap: 2px;
}

/* 菜单链接 */
#nav .menus_items .menus_item > a,
#nav #search-button .site-page {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 0.9em;
    color: #4a5568;
    text-decoration: none;
    transition: all 0.25s ease;
    position: relative;
}

#nav .menus_items .menus_item > a:hover,
#nav #search-button .site-page:hover {
    color: #3A5FCD;
    background: rgba(58, 95, 205, 0.06);
}

#nav .menus_items .menus_item > a i,
#nav #search-button .site-page i {
    font-size: 0.95em;
}

/* 当前页面激活指示 */
#nav .menus_items .menus_item > a.current {
    color: #3A5FCD;
    font-weight: 600;
}

/* 搜索按钮 */
#nav #search-button {
    margin-right: 2px;
}

/* 子菜单横向展示 */
#nav .menus_items .menus_item:hover .menus_item_child {
    display: flex !important;
}

/* 汉堡菜单按钮 */
#nav #toggle-menu {
    display: none;
}

/* ===== 暗色模式 ===== */
[data-theme="dark"] #nav {
    background: rgba(15, 15, 30, 0.78);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] #nav .nav-site-title {
    color: #e0e0e0;
}

[data-theme="dark"] #nav .nav-site-title:hover {
    color: #6b9dfc;
}

[data-theme="dark"] #nav .menus_items .menus_item > a,
[data-theme="dark"] #nav #search-button .site-page {
    color: #bbb;
}

[data-theme="dark"] #nav .menus_items .menus_item > a:hover,
[data-theme="dark"] #nav #search-button .site-page:hover {
    color: #6b9dfc;
    background: rgba(107, 157, 252, 0.08);
}

[data-theme="dark"] #nav .menus_items .menus_item > a.current {
    color: #6b9dfc;
}

/* ===== 响应式 ===== */
@media screen and (max-width: 768px) {
    #nav {
        padding: 0 16px;
    }
    #nav #toggle-menu {
        display: block;
    }
    #nav .menus_items {
        display: none;
        position: absolute !important;
        top: 60px;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(12px);
        padding: 8px 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }
    #nav .menus_items.show {
        display: flex;
    }
    [data-theme="dark"] #nav .menus_items {
        background: rgba(20, 20, 35, 0.95);
    }
}

/*==============================================================================*/

/*霓虹灯*/
/* 日间模式不生效 */
[data-theme="light"] #site-name,
[data-theme="light"] #site-title,
[data-theme="light"] #site-subtitle,
[data-theme="light"] #post-info {
    animation: none;
}

/* 夜间模式生效 */
[data-theme="dark"] #site-name,
[data-theme="dark"] #site-title {
    animation: light_15px 10s linear infinite;
}

[data-theme="dark"] #site-subtitle {
    animation: light_10px 10s linear infinite;
}

[data-theme="dark"] #post-info {
    animation: light_5px 10s linear infinite;
}

/* 关键帧描述 */
@keyframes light_15px {
    0% {
        text-shadow: #5636ed 0 0 15px;
    }
    12.5% {
        text-shadow: #11ee5e 0 0 15px;
    }
    25% {
        text-shadow: #f14747 0 0 15px;
    }
    37.5% {
        text-shadow: #f1a247 0 0 15px;
    }
    50% {
        text-shadow: #f1ee47 0 0 15px;
    }
    50% {
        text-shadow: #b347f1 0 0 15px;
    }
    62.5% {
        text-shadow: #002afa 0 0 15px;
    }
    75% {
        text-shadow: #ed709b 0 0 15px;
    }
    87.5% {
        text-shadow: #39c5bb 0 0 15px;
    }
    100% {
        text-shadow: #5636ed 0 0 15px;
    }
}

@keyframes light_10px {
    0% {
        text-shadow: #5636ed 0 0 10px;
    }
    12.5% {
        text-shadow: #11ee5e 0 0 10px;
    }
    25% {
        text-shadow: #f14747 0 0 10px;
    }
    37.5% {
        text-shadow: #f1a247 0 0 10px;
    }
    50% {
        text-shadow: #f1ee47 0 0 10px;
    }
    50% {
        text-shadow: #b347f1 0 0 10px;
    }
    62.5% {
        text-shadow: #002afa 0 0 10px;
    }
    75% {
        text-shadow: #ed709b 0 0 10px;
    }
    87.5% {
        text-shadow: #39c5bb 0 0 10px;
    }
    100% {
        text-shadow: #5636ed 0 0 10px;
    }
}

@keyframes light_5px {
    0% {
        text-shadow: #5636ed 0 0 5px;
    }
    12.5% {
        text-shadow: #11ee5e 0 0 5px;
    }
    25% {
        text-shadow: #f14747 0 0 5px;
    }
    37.5% {
        text-shadow: #f1a247 0 0 15px;
    }
    50% {
        text-shadow: #f1ee47 0 0 5px;
    }
    50% {
        text-shadow: #b347f1 0 0 5px;
    }
    62.5% {
        text-shadow: #002afa 0 0 5px;
    }
    75% {
        text-shadow: #ed709b 0 0 5px;
    }
    87.5% {
        text-shadow: #39c5bb 0 0 5px;
    }
    100% {
        text-shadow: #5636ed 0 0 5px;
    }
}

/*==============================================================================*/

/* 侧边栏个人信息卡片动态渐变色 */
#aside-content .card-widget.card-info {
    background: linear-gradient(
            -45deg,
            #e8d8b9,
            #eccec5,
            #a3e9eb,
            #bdbdf0,
            #eec1ea
    );
    box-shadow: 0 0 5px rgb(66, 68, 68);
    position: relative;
    background-size: 400% 400%;
    -webkit-animation: Gradient 10s ease infinite;
    -moz-animation: Gradient 10s ease infinite;
    animation: Gradient 10s ease infinite !important;
}

@-webkit-keyframes Gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@-moz-keyframes Gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes Gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* 黑夜模式适配 */
[data-theme="dark"] #aside-content .card-widget.card-info {
    background: #191919ee;
}

/* 个人信息Follow me按钮 */
#aside-content .card-widget.card-info #card-info-btn {
    background-color: #3eb8be;
    border-radius: 8px;
}

/*==============================================================================*/

/* 首页文章卡片 */
#recent-posts > .recent-post-item {
    background: var(--trans-light);
    backdrop-filter: var(--backdrop-filter);
    border-radius: 25px;
    border: var(--border-style);
}

/* 首页侧栏卡片 */
#aside-content .card-widget {
    background: var(--trans-light);
    backdrop-filter: var(--backdrop-filter);
    border-radius: 18px;
    border: var(--border-style);
}

/* 文章页、归档页、普通页面 */
div#post,
div#page,
div#archive {
    background: var(--trans-light);
    backdrop-filter: var(--backdrop-filter);
    border: var(--border-style);
    border-radius: 20px;
}


/* 夜间模式遮罩 */
[data-theme="dark"] #recent-posts > .recent-post-item,
[data-theme="dark"] #aside-content .card-widget,
[data-theme="dark"] div#post,
[data-theme="dark"] div#archive,
[data-theme="dark"] div#page {
    background: var(--trans-dark);
}


/* 夜间模式页脚页头遮罩透明 */
[data-theme="dark"] #footer::before {
    background: transparent !important;
}

[data-theme="dark"] #page-header::before {
    background: transparent !important;
}

/* 阅读模式 */
.read-mode #aside-content .card-widget {
    background: rgba(158, 204, 171, 0.5) !important;
}

.read-mode div#post {
    background: rgba(158, 204, 171, 0.5) !important;
}

/* 夜间模式下的阅读模式 */
[data-theme="dark"] .read-mode #aside-content .card-widget {
    background: rgba(25, 25, 25, 0.9) !important;
    color: #ffffff;
}

[data-theme="dark"] .read-mode div#post {
    background: rgba(25, 25, 25, 0.9) !important;
    color: #ffffff;
}

/*==============================================================================*/
/*文章标题风车转动*/
/* 文章页H1-H6图标样式效果 */
/* 控制风车转动速度 4s那里可以自己调节快慢 */
h1::before,
h2::before,
h3::before,
h4::before,
h5::before,
h6::before {
    -webkit-animation: ccc 4s linear infinite;
    animation: ccc 4s linear infinite;
}

/* 控制风车转动方向 -1turn 为逆时针转动，1turn 为顺时针转动，相同数字部分记得统一修改 */
@-webkit-keyframes ccc {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    to {
        -webkit-transform: rotate(-1turn);
        transform: rotate(-1turn);
    }
}

@keyframes ccc {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    to {
        -webkit-transform: rotate(-1turn);
        transform: rotate(-1turn);
    }
}

/* 设置风车颜色 */
#content-inner.layout h1::before {
    color: #ef50a8;
    margin-left: -1.55rem;
    font-size: 1.3rem;
    margin-top: -0.23rem;
}

#content-inner.layout h2::before {
    color: #fb7061;
    margin-left: -1.35rem;
    font-size: 1.1rem;
    margin-top: -0.12rem;
}

#content-inner.layout h3::before {
    color: #ffbf00;
    margin-left: -1.22rem;
    font-size: 0.95rem;
    margin-top: -0.09rem;
}

#content-inner.layout h4::before {
    color: #a9e000;
    margin-left: -1.05rem;
    font-size: 0.8rem;
    margin-top: -0.09rem;
}

#content-inner.layout h5::before {
    color: #57c850;
    margin-left: -0.9rem;
    font-size: 0.7rem;
    margin-top: 0rem;
}

#content-inner.layout h6::before {
    color: #5ec1e0;
    margin-left: -0.9rem;
    font-size: 0.66rem;
    margin-top: 0rem;
}

/* s设置风车hover动效 6s那里可以自己调节快慢*/
#content-inner.layout h1:hover,
#content-inner.layout h2:hover,
#content-inner.layout h3:hover,
#content-inner.layout h4:hover,
#content-inner.layout h5:hover,
#content-inner.layout h6:hover {
    color: var(--theme-color);
}

#content-inner.layout h1:hover::before,
#content-inner.layout h2:hover::before,
#content-inner.layout h3:hover::before,
#content-inner.layout h4:hover::before,
#content-inner.layout h5:hover::before,
#content-inner.layout h6:hover::before {
    color: var(--theme-color);
    -webkit-animation: ccc 6s linear infinite;
    animation: ccc 6s linear infinite;
}

/* 字体 */
@font-face {
    font-family: 'xwWenKai';
    src: url('../font/xwWenKai.woff2') format('woff2'),
         url('../font/LXGWWenKai-Light.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'xwWenKai', sans-serif;
}

/* 加载动画 */
.loading-img {
    background: url(https://cdn.staticaly.com/gh/HappyLeeCode/IMG@main/img/avatar.webp) no-repeat center center;
    background-size: cover;
}

/*==============================================================================*/
/* ===== 界面美化增强 ===== */

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(58, 95, 205, 0.25);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(58, 95, 205, 0.5);
}
[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: rgba(150, 160, 200, 0.3);
}
[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: rgba(150, 160, 200, 0.55);
}

/* 文字选中 */
::selection {
    background: rgba(58, 95, 205, 0.2);
    color: inherit;
}
[data-theme="dark"] ::selection {
    background: rgba(100, 140, 240, 0.3);
}

/* 文章卡片悬浮动效 */
#recent-posts .recent-post-item {
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1.2),
                box-shadow 0.3s ease;
}
#recent-posts .recent-post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}
[data-theme="dark"] #recent-posts .recent-post-item:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

/* 封面图片悬浮缩放 */
.post_cover a {
    overflow: hidden;
    border-radius: 15px 15px 0 0;
}
.post_cover a img {
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1.2);
}
.post_cover a:hover img {
    transform: scale(1.05);
}

/* 侧边栏卡片悬浮微动 */
#aside-content .card-widget {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
#aside-content .card-widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}
[data-theme="dark"] #aside-content .card-widget:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* 文章内链接下划线动画 */
#article-container a:not(.headerlink):not(.fancybox):not(.social-icon):not(.tag) {
    text-decoration: none;
    background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
    transition: background-size 0.3s ease;
    padding-bottom: 2px;
}
#article-container a:not(.headerlink):not(.fancybox):not(.social-icon):not(.tag):hover {
    background-size: 100% 1px;
}

/* 引用块美化 */
blockquote {
    border-left: 4px solid #3A5FCD !important;
    background: rgba(58, 95, 205, 0.04);
    border-radius: 0 10px 10px 0;
    padding: 1rem 1.3rem;
    margin: 1.2rem 0;
    transition: border-color 0.3s ease;
}
[data-theme="dark"] blockquote {
    background: rgba(58, 95, 205, 0.08);
}

/* 分割线 */
hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(128, 128, 128, 0.25), transparent);
    margin: 2rem 0;
}

/* 标签云增强 */
.tag-cloud a,
.card-tag-cloud a {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1.2);
    border-radius: 12px !important;
}
.tag-cloud a:hover,
.card-tag-cloud a:hover {
    transform: translateY(-2px) scale(1.06);
    box-shadow: 0 4px 12px rgba(58, 95, 205, 0.2);
}

/* 按钮通用增强 */
a.button,
button,
.btn,
#card-info-btn {
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1.2) !important;
    border-radius: 8px !important;
}
a.button:hover,
button:hover,
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* 返回顶部/右侧按钮 */
#rightside > div {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1.2);
    border-radius: 10px;
    margin: 6px 0;
}
#rightside > div:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 14px rgba(58, 95, 205, 0.3);
    background: var(--theme-color, #3A5FCD);
}

/* 目录激活项 */
#aside-content .toc-link.active {
    border-left: 3px solid #3A5FCD;
    padding-left: 10px;
    transition: all 0.2s ease;
    font-weight: 500;
}

/* 文章元信息 */
.post-meta {
    opacity: 0.85;
}

/* 分类/归档列表悬浮 */
.card-category-list .card-category-list-item,
.card-archive-list .card-archive-list-item {
    transition: all 0.25s ease;
    border-radius: 8px;
}
.card-category-list .card-category-list-item:hover,
.card-archive-list .card-archive-list-item:hover {
    padding-left: 6px;
    background: rgba(58, 95, 205, 0.04);
}
[data-theme="dark"] .card-category-list .card-category-list-item:hover,
[data-theme="dark"] .card-archive-list .card-archive-list-item:hover {
    background: rgba(58, 95, 205, 0.1);
}

/* 表格容器溢出处理 */
#article-container table {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
}
#article-container th {
    background: rgba(58, 95, 205, 0.06);
    font-weight: 600;
}

/* 图片通用圆角 */
#article-container img:not(.no-fancybox):not(.no-lightbox) {
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* 代码块标题栏更圆润 */
#article-container figure.highlight {
    border-radius: 10px;
    overflow: hidden;
}

/* 文章页头部信息动画 */
#post-info {
    transition: opacity 0.5s ease;
}

/* 导航栏菜单项悬浮效果 */
#nav .menus_items .menus_item > a {
    transition: color 0.2s ease, text-shadow 0.2s ease;
}
#nav .menus_items .menus_item > a:hover {
    text-shadow: 0 0 8px rgba(58, 95, 205, 0.4);
}

/* 动画卡片渐现 (配合wowjs) */
.recent-post-item.animate__zoomIn {
    --animate-duration: 0.6s;
}

/* 首页分类磁贴增强 */
#catalog_magnet .category-list .category-list-item {
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1.2);
}
#catalog_magnet .category-list .category-list-item:hover {
    transform: translateY(-4px);
}

/*==============================================================================*/
/* ===== 首页 Post Cover 文章摘要美化 ===== */

/* 覆盖 Butterfly 遮罩为渐变——底部更深增强文字可读性 */
.recent-post-item .post_cover:before {
    background: linear-gradient(
        to bottom,
        rgba(18, 18, 18, 0.05) 0%,
        rgba(18, 18, 18, 0.18) 40%,
        rgba(18, 18, 18, 0.48) 80%,
        rgba(18, 18, 18, 0.62) 100%
    ) !important;
}

/* 摘要文字增强 */
.recent-post-info .content {
    font-size: 0.9em;
    line-height: 1.75;
    margin-top: 8px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    position: relative;
}

/* 摘要底部淡出遮罩 */
.recent-post-info {
    position: relative;
}
.recent-post-info:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.45), transparent);
    pointer-events: none;
    border-radius: 0 0 20px 20px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

/* 标题增强 */
.recent-post-info .article-title {
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    margin-bottom: 4px;
}

/* 元信息行美化 */
.recent-post-info .article-meta-wrap {
    font-size: 0.78em;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.recent-post-info .article-meta-wrap .post-meta-date {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.recent-post-info .article-meta-wrap .article-meta-label {
    display: none; /* 隐藏 "Created"/"Updated" 标签使更简洁 */
}

.recent-post-info .article-meta-wrap .article-meta-separator {
    margin: 0 4px;
    opacity: 0.4;
}

/* 无封面文章卡片适配 */
.recent-post-item:not(:has(.post_cover)) .recent-post-info .content,
.recent-post-info.no-cover .content {
    color: var(--font-color, #4c4948);
    text-shadow: none;
}
.recent-post-item:not(:has(.post_cover)) .recent-post-info:after,
.recent-post-info.no-cover:after {
    display: none;
}

/*==============================================================================*/
/* ===== 文章页 post-copyright 版权区块美化 ===== */

.post-copyright {
    position: relative;
    margin: 40px 0 20px;
    padding: 20px 20px 20px 24px;
    background: rgba(58, 95, 205, 0.04);
    border: none !important;
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* 左侧装饰条 */
.post-copyright:before {
    content: '' !important;
    position: absolute;
    top: 14px;
    bottom: 14px;
    left: 0;
    width: 4px;
    background: linear-gradient(180deg, #3A5FCD, #FF7A59);
    border-radius: 0 4px 4px 0;
    display: block !important;
}

/* 右上角版权图标 */
.post-copyright:after {
    position: absolute;
    top: 12px;
    right: 16px;
    color: rgba(58, 95, 205, 0.2);
    font-size: 2.5em;
    content: '\f1f9' !important;
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    pointer-events: none;
    z-index: 0;
}

/* 每行 flex 布局 */
.post-copyright__author,
.post-copyright__type,
.post-copyright__notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    position: relative;
    z-index: 1;
}

.post-copyright__author + .post-copyright__type,
.post-copyright__type + .post-copyright__notice {
    border-top: 1px solid rgba(128, 128, 128, 0.12);
}

/* 图标美化 */
.post-copyright .post-copyright-meta {
    flex-shrink: 0;
    min-width: 32px;
    color: #3A5FCD;
    font-weight: 600;
    font-size: 0.85em;
    display: flex;
    align-items: center;
    gap: 4px;
}

.post-copyright .post-copyright-meta i {
    font-size: 1.15em;
    width: 20px;
    text-align: center;
}

/* 信息文字 */
.post-copyright .post-copyright-info {
    color: var(--font-color, #4c4948);
    font-size: 0.88em;
    line-height: 1.6;
    word-break: break-all;
}

.post-copyright .post-copyright-info a {
    color: #3A5FCD;
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-copyright .post-copyright-info a:hover {
    color: #FF7A59;
    text-decoration: underline;
}

/* 悬浮动效 */
.post-copyright:hover {
    box-shadow: 0 4px 20px rgba(58, 95, 205, 0.1);
    transform: translateY(-1px);
}

/* 暗色模式 */
[data-theme="dark"] .post-copyright {
    background: rgba(58, 95, 205, 0.08);
}

[data-theme="dark"] .post-copyright .post-copyright-meta {
    color: #6b9dfc;
}

[data-theme="dark"] .post-copyright .post-copyright-info {
    color: #ccc;
}

[data-theme="dark"] .post-copyright .post-copyright-info a {
    color: #6b9dfc;
}

[data-theme="dark"] .post-copyright .post-copyright-info a:hover {
    color: #FF7A59;
}

[data-theme="dark"] .post-copyright:after {
    color: rgba(107, 157, 252, 0.12);
}

[data-theme="dark"] .post-copyright:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

