/*
 Theme Name: Happy花椒
 Version: 1.0
 Text Domain: quhj-happyhj
 Copyright: www.quhj.com
*/
:root {
    /* 日间默认变量 */
    --bg-main: #e6edf7;
    --bg-card: rgba(255,255,255,0.18);
    --bg-nav: rgba(232, 244, 255, 0.70);
    --text-main: #222;
    --text-sub: #444;
    --text-dark-blue: #0a2463;
    --border-light: rgba(255, 255, 255, 0.35);
    --line-color: rgba(0,0,0,0.2);
    --glass-blur: 24px;
    --green-main: #34c759;
    --green-light: rgba(76, 217, 100, 0.15);
    --line-theme-light: #99e899;
    --green-main-rgb: 52, 199, 89;
}
/* 暗夜星空 */
html.dark {
    --bg-main: #0b1222;
    --bg-card: rgba(15, 23, 42, 0.72);
    --bg-nav: rgba(12, 20, 40, 0.65);
    --text-main: #f2f6ff;
    --text-sub: #c8d6f0;
    --text-dark-blue: #b8d6ff;
    --border-light: rgba(255,255,255,0.12);
    --line-color: rgba(255,255,255,0.15);
    --green-main: #4886e8;
    --green-light: rgba(72, 134, 232, 0.12);
    --line-theme-light: #305fb8;
    --green-main-rgb: 72, 134, 232;
}
/* 护眼灰 暗红色调 */
html.eye {
    --bg-main: #e8e9eb;
    --bg-card: rgba(255,255,255,0.45);
    --bg-nav: rgba(240,241,243,0.85);
    --text-main: #3a3a3a;
    --text-sub: #5c5c5c;
    --text-dark-blue: #7a2828;
    --border-light: rgba(122,40,40,0.12);
    --line-color: rgba(0,0,0,0.1);
    --glass-blur: 24px;
    --green-main: #9c2c2c;
    --green-light: rgba(156, 44, 44, 0.08);
    --line-theme-light: #c76060;
    --green-main-rgb: 156, 44, 44;
}
/* 暖米纸质 */
html.paper {
    --bg-main: #f5ede0;
    --bg-card: rgba(255,252,245,0.7);
    --bg-nav: rgba(250,244,232,0.9);
    --text-main: #4a3f30;
    --text-sub: #7a6d58;
    --text-dark-blue: #5c4a32;
    --border-light: rgba(160,130,90,0.18);
    --line-color: rgba(120,90,50,0.15);
    --glass-blur: 24px;
    --green-main: #a67c52;
    --green-light: rgba(166, 124, 82, 0.1);
    --line-theme-light: #c9a57a;
    --green-main-rgb: 166, 124, 82;
}

/* 全局基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}
html, body {
    width: 100%;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
body {
    font-family: "Microsoft Yahei", system-ui, -apple-system, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.7;
    font-size: 16px;
    padding-left: 300px;
    transition: background 0.4s ease, color 0.4s ease;
}
ul { list-style: none; }
a { text-decoration: none; color: inherit; }

/* 页面三栏布局核心 */
.wrap {
    display: flex;
    width: 100%;
    min-height: 100vh;
}
.left-banner-col {
    width: 300px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 1;
}
.left-banner-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.main-content {
    flex: 1 1 auto;
    padding: 30px 15px;
    min-width: 0;
}
.right-sidebar {
    flex: 0 0 300px;
    width: 300px;
    min-width: 300px;
    padding: 30px 15px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* ========== 液态玻璃导航 ========== */
.site-nav {
    width: 100%;
    margin-bottom: 20px;
    padding: 14px 28px;
    background: var(--bg-nav);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(0, 30, 80, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.4s ease;
}
.logo-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
}
.logo-img {
    width: 150px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
}
.logo-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, transparent, var(--line-color), transparent);
    opacity: 0.8;
}
.logo-text {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--green-main), var(--text-dark-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
}
.nav-list {
    display: flex;
    gap: 6px;
}
.nav-list li {
    position: relative;
}
.nav-list li a {
    position: relative;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 10px 18px;
    border-radius: 10px;
    color: var(--text-sub);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}
.nav-list li a::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 20px;
    height: 2px;
    background: var(--green-main);
    border-radius: 2px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 6px var(--green-main);
}
.nav-list li a:hover {
    color: var(--green-main);
    background: var(--green-light);
}
.nav-list li a:hover::after {
    transform: translateX(-50%) scaleX(1);
}
/* 当前页高亮 */
.nav-list li.current-menu-item a,
.nav-list li.current_page_item a {
    color: var(--green-main);
    font-weight: 600;
}
.nav-list li.current-menu-item a::after,
.nav-list li.current_page_item a::after {
    transform: translateX(-50%) scaleX(1);
}

/* 顶部流光标语 */
.banner-box {
    width: 100%;
    text-align: center;
    margin-bottom: 30px;
}
.banner-text {
    font-size: 26px;
    font-weight: 600;
    letter-spacing: 4px;
    display: inline-block;
    background: linear-gradient(90deg, #0099cc, #333399, #009999, #0099cc);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: streamLight 4s linear infinite;
}
.banner-line {
    width: 100%;
    height: 1px;
    margin: 8px auto 0;
    background: linear-gradient(to right, transparent, var(--line-color), transparent);
}
@keyframes streamLight {
    0% { background-position: 0% 0%; }
    100% { background-position: 300% 0%; }
}

/* 通用玻璃卡片样式 */
.card, .single-post-card, .related-item {
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--border-light);
    border-radius: 6px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    background: var(--bg-card);
}
.card:hover, .single-post-card:hover, .related-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}
.card {
    padding: 12px 20px;
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
}
.card h2 {
    font-size: 18px;
    color: var(--text-dark-blue);
    font-weight: 600;
    letter-spacing: 1px;
    line-height: 1.4;
}
.card h1 {
    font-size: 24px;
    color: var(--text-dark-blue);
    letter-spacing: 1.2px;
    font-weight: 700;
    line-height: 1.3;
}
.card .post-content, .card .page-content {
    font-size: 16px;
    color: var(--text-main);
    line-height: 1.8;
}
.cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}
.main-content > .cards-container {
    gap: 32px;
    margin-top: 40px;
}
.main-content > .cards-container .card {
    min-height: 145px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}
.main-content > .cards-container .card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 45px rgba(0, 35, 90, 0.18), 0 5px 15px rgba(0,35,90,0.1);
}
.main-content > .cards-container .card h2 {
    font-size: 22px;
    letter-spacing: 2px;
}

/* 文章底部按钮组 */
.post-btn-group {
    max-width: 800px;
    margin: 0 auto 30px;
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
.btn-outline {
    padding: 10px 28px;
    background: var(--bg-card);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--border-light);
    border-radius: 10px;
    color: var(--text-main);
    font-size: 14px;
    text-decoration: none;
    transition: all .25s;
}
.btn-outline:hover {
    border-color: var(--green-main);
    color: var(--green-main);
    transform: translateY(-1px);
}

/* 网站页脚 */
.site-footer {
    width: 100%;
    padding: 14px 20px;
    background: var(--bg-nav);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    box-shadow: 0 8px 30px rgba(0, 30, 80, 0.12);
    text-align: center;
    margin-top: 20px;
    color: var(--text-main);
}

/* 侧边栏专属样式 */
.right-sidebar .card {
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--border-light);
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0, 40, 100, 0.1);
    background: var(--bg-card);
}
.right-sidebar .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(0, 40, 100, 0.2);
}
.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: block;
    object-fit: cover;
    border: 3px solid var(--border-light);
}
.divider-line, .music-divider, .tag-divider {
    width: 80%;
    height: 1px;
    margin: 15px auto;
    background: linear-gradient(to right, transparent, var(--line-color), transparent);
    border: none;
}
.profile-desc { text-align: left; }
audio {
    width: 100%;
    display: block;
    margin-bottom: 12px;
}
.music-title {
    text-align: center;
    margin-bottom: 15px;
    font-size: 16px;
}

/* 标签云 */
.tag-title {
    font-size: 16px;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 500;
}
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}
.tag-list a {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    transition: all 0.3s ease;
    font-weight: 500;
}
.tag-list .tag-item-0 { background: #ffcccc; color: #cc0000; }
.tag-list .tag-item-1 { background: #ccffcc; color: #009933; }
.tag-list .tag-item-2 { background: #ccccff; color: #333399; }
.tag-list .tag-item-3 { background: #ffffcc; color: #cc9900; }
.tag-list .tag-item-4 { background: #ffccff; color: #993399; }
.tag-list .tag-item-5 { background: #ccffff; color: #009999; }
.tag-list .tag-item-6 { background: #ffd9b3; color: #cc6600; }
.tag-list .tag-item-7 { background: #d9ffcc; color: #006633; }
.tag-list .tag-item-8 { background: #b3d9ff; color: #0066cc; }
.tag-list .tag-item-9 { background: #ffcce6; color: #990066; }
html.dark .tag-list a { filter: brightness(0.85); }
html.paper .tag-list a { filter: saturate(0.85); }
.tag-list a:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 图片灯箱弹窗 */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background-color: rgba(0,0,0,0.8);
}
.lightbox-center {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-wrap {
    position: relative;
    display: inline-block;
    border: 4px solid #fff;
}
.lightbox-content {
    display: block;
    max-width: 90vw;
    max-height: 80vh;
    border: none;
}
.lightbox-text {
    position: absolute;
    left: -4px;
    right: -4px;
    top: 100%;
    margin-top: 8px;
    background: #000;
    color: #fff;
    padding: 10px 15px;
    text-align: center;
    line-height: 1.8;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
    pointer-events: none;
}
.lightbox-wrap:hover .lightbox-text {
    opacity: 1;
    transform: translateY(0);
}
.lightbox-close, .lightbox-prev, .lightbox-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #000;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    user-select: none;
    position: absolute;
    z-index: 10;
    transition: background 0.2s ease;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
    background-color: #333;
}
.lightbox-close { top: 10px; right: 10px; }
.lightbox-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 10px; top: 50%; transform: translateY(-50%); }

/* 暗夜模式星空背景 */
html.dark::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -999999;
    background: #0b1222;
    pointer-events: none;
}
#starWrap {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: -999998;
    pointer-events: none;
    overflow: hidden;
}
#starWrap span {
    animation: twinkle var(--twinkle-speed, 3s) infinite ease-in-out;
}
@keyframes twinkle {
    0%, 100% { opacity: 0.12; }
    50% { opacity: 1; }
}
@keyframes meteor {
    0% { transform: translate(0,0) rotate(-40deg); opacity:1; }
    100% { transform: translate(260px,150px) rotate(-40deg); opacity:0; }
}
html:not(.dark) #starWrap { display: none !important; }

/* 高分屏适配 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    body { font-size: 17px; }
}

/* 响应式媒体查询 */
@media screen and (max-width: 1400px) {
    body { padding-left: 260px; }
    .left-banner-col { width: 260px; }
    .right-sidebar { flex: 0 0 280px; width: 280px; min-width:280px; }
    .site-nav { padding: 12px 20px; }
    .nav-list { gap: 4px; }
    .nav-list li a { padding: 8px 14px; font-size: 14px; }
    .banner-text { font-size: 24px; }
    .card { padding: 10px 16px; }
}
@media screen and (max-width: 1200px) {
    body { padding-left: 220px; }
    .left-banner-col { width: 220px; }
    .wrap { flex-wrap: wrap; }
    .main-content { flex: 1 1 100%; }
    .right-sidebar {
        flex: 0 0 100%;
        width: 100%;
        min-width: 100%;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        margin-top: 20px;
        padding: 0 15px 30px;
    }
    .cards-container { grid-template-columns: repeat(2, 1fr); }
}
@media screen and (max-width: 992px) {
    body { padding-left: 0; }
    .left-banner-col {
        width: 100%;
        height: 280px;
        position: fixed;
    }
    .wrap { flex-direction: column; margin-top: 280px; }
    .main-content, .right-sidebar { padding: 20px 12px; }
    .site-nav { flex-direction: column; gap: 15px; text-align: center; padding: 16px 20px; }
    .nav-list { flex-wrap: wrap; justify-content: center; gap: 6px; }
    .banner-text { font-size: 22px; letter-spacing: 2px; }
    .cards-container { grid-template-columns: 1fr; }
    .related-posts { grid-template-columns: 1fr; }
}
@media screen and (max-width:768px){
    .left-banner-col { height: 220px; }
    .wrap { margin-top: 220px; }
    .logo-img { width: 120px; height: 32px; }
    .logo-line { display: none; }
    .banner-text { font-size: 20px; }
    .single-post-card { padding: 20px; }
    .avatar { width: 100px; height: 100px; }
}

/* ========== 全局主题统一通用类 ========== */
.green-dot {
    background: var(--green-main);
    border-radius: 50%;
}
.line-green {
    background: var(--green-main);
}
.timeline-center-line {
    background: var(--line-theme-light);
}
.tag-text { color: var(--green-main); }
.tag-border { border-color: var(--green-main); }
.runtime-text { color: var(--green-main); }
.percent-text { color: var(--green-main); }
.bar-bg { background: var(--green-main); }
.timeline-line { border-color: var(--green-main); }
.timeline-dot { background: var(--green-main); }
.timeline-time { color: var(--green-main); }

.theme-block {
    background: rgba(var(--green-main-rgb), 0.16);
    border: 1px solid rgba(var(--green-main-rgb), 0.32);
    border-radius: 6px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    position: relative;
    z-index: 1;
}
.timeline-bar {
    background: linear-gradient(90deg, rgba(var(--green-main-rgb),0.35), rgba(var(--green-main-rgb),0.08));
    border-radius: 4px;
    height: 32px;
    border: none;
}

/* 随笔/碎碎念页面 */
.date-block {
    background: var(--green-main);
    color: #fff;
    border-radius: 10px;
    padding: 10px 0;
    box-shadow: 0 2px 4px rgba(var(--green-main-rgb),0.1);
    transition: box-shadow 0.3s ease;
}
.date-year-month {
    color: var(--green-main);
    font-size: 14px;
    margin-top: 8px;
    font-weight: 600;
    letter-spacing: 1px;
}
.read-more-link {
    color: var(--green-main);
    border-bottom: 1px solid rgba(var(--green-main-rgb), 0.4);
}

/* 收藏页面 */
.fav-title::before {
    content: "●";
    color: var(--green-main);
    font-size: 20px;
}
.read-more {
    color: var(--green-main);
    position: absolute;
    right: 20px;
    bottom: 15px;
    font-size: 14px;
    transition: all 0.25s ease;
}
.read-more:hover {
    color: var(--line-theme-light);
    letter-spacing: 1px;
}
.cards-container .card {
    text-align: left;
    display: block !important;
    min-height: auto !important;
    position: relative;
    padding-bottom: 45px !important;
}
.card-desc {
    color: var(--text-sub);
    margin-bottom: 20px;
}

/* 友情链接页面 */
.link-copy-btn {
    border:1px solid rgba(var(--green-main-rgb),0.35);
    background:var(--bg-card);
    color:var(--green-main);
    border-radius:6px;
    padding:6px 14px;
    cursor:pointer;
    font-size:14px;
    transition:0.2s;
}
.link-card-item {
    position:relative;
    display:block;
    border:1px solid rgba(var(--green-main-rgb),0.35);
    background:var(--bg-card);
    padding:12px;
    border-radius:6px;
    text-decoration:none;
    overflow:hidden;
}
.link-card-bg {
    position:absolute;
    left:0;
    top:0;
    width:0;
    height:100%;
    background:var(--green-main);
    transition:width 0.3s ease;
    z-index:1;
}
.link-card-text {
    position:relative;
    z-index:2;
    transition:color 0.3s ease;
}
.link-card-text h4 {
    margin:0 0 6px;
    color:var(--green-main);
    font-size:16px;
}
.link-card-text p {
    margin:0;
    color:var(--text-sub);
    font-size:13px;
}

/* ========== 文章详情页 ========== */
.single-post-card {
    padding: 40px;
    max-width: 800px;
    margin: 0 auto 30px;
}

.post-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line-color);
}

.post-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 16px 0;
    line-height: 1.4;
    color: var(--text-dark-blue);
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    color: var(--text-sub);
    font-size: 13px;
    opacity: 0.85;
}
.post-meta a {
    color: var(--text-sub);
    text-decoration: none;
    transition: color .2s;
}
.post-meta a:hover {
    color: var(--green-main);
}
.post-read-time {
    color: var(--green-main);
    font-weight: 500;
    opacity: 1;
}

.post-tags {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.post-tags a {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    color: var(--text-sub);
    background: var(--green-light);
    border-radius: 20px;
    text-decoration: none;
    transition: all .2s;
}
.post-tags a:hover {
    color: var(--green-main);
    transform: translateY(-1px);
}

/* 正文排版 */
.post-content {
    font-size: 16px;
    line-height: 1.85;
    color: var(--text-main);
}
.post-content p {
    margin-bottom: 18px;
}
.post-content h2,
.post-content h3,
.post-content h4 {
    margin: 32px 0 16px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-dark-blue);
}
.post-content h2 { font-size: 22px; }
.post-content h3 { font-size: 19px; }

.post-content ul,
.post-content ol {
    margin: 16px 0;
    padding-left: 28px;
}
.post-content li {
    margin-bottom: 8px;
    line-height: 1.8;
}

/* 文中图片 */
.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    margin: 12px 0;
}
html.dark .post-content img { box-shadow: 0 4px 16px rgba(0,0,0,0.3); }

/* 引用块 */
.post-content blockquote {
    margin: 20px 0;
    padding: 16px 20px;
    border-left: 4px solid var(--green-main);
    background: var(--green-light);
    border-radius: 0 8px 8px 0;
    color: var(--text-sub);
}
.post-content blockquote p { margin: 0; }

/* 代码块 */
.post-content pre {
    margin: 20px 0;
    padding: 16px 20px;
    background: #1e1e1e;
    color: #d4d4d4;
    border-radius: 10px;
    overflow-x: auto;
    font-size: 14px;
    line-height: 1.6;
}
.post-content code {
    font-family: 'Consolas', 'Monaco', monospace;
}
.post-content p code {
    padding: 2px 6px;
    background: var(--green-light);
    border-radius: 4px;
    font-size: 14px;
    color: var(--green-main);
}

/* 版权声明 */
.post-copyright {
    margin-top: 40px;
    padding: 16px 20px;
    background: var(--green-light);
    border-radius: 10px;
    font-size: 13px;
    color: var(--text-sub);
    line-height: 1.8;
    border: 1px solid var(--border-light);
}
.post-copyright p { margin: 0; }
.post-copyright a {
    color: var(--green-main);
    text-decoration: none;
}

/* 上下篇导航 */
.post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto 30px;
}
.post-navigation > div { flex: 1; }
.post-navigation a {
    display: block;
    padding: 16px 20px;
    background: var(--bg-card);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--border-light);
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-main);
    font-size: 14px;
    transition: all .25s;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.post-navigation a:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    border-color: var(--green-main);
    color: var(--green-main);
}
.nav-next { text-align: right; }

/* 相关阅读 */
.related-section {
    max-width: 800px;
    margin: 40px auto 0;
}
.related-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-dark-blue);
}
.related-posts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.related-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    text-decoration: none;
}
.related-item:hover {
    border-color: var(--green-main);
}
.related-item-title {
    color: var(--text-main);
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    margin-right: 12px;
}
.related-item-date {
    color: var(--text-sub);
    font-size: 12px;
    opacity: 0.7;
    flex-shrink: 0;
}
/* ========== 出站链接提醒弹窗 ========== */
.outbound-modal-mask {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: fadeIn .2s ease;
}
.outbound-modal-mask.show {
    display: flex;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.outbound-modal {
    width: 90%;
    max-width: 420px;
    background: var(--bg-card);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--border-light);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    padding: 30px;
    animation: slideUp .25s ease;
}
@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.outbound-modal-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--green-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 22px;
    color: var(--green-main);
}

.outbound-modal-title {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 10px;
}

.outbound-modal-desc {
    text-align: center;
    font-size: 14px;
    color: var(--text-sub);
    line-height: 1.7;
    margin-bottom: 8px;
}

.outbound-modal-url {
    text-align: center;
    font-size: 13px;
    color: var(--green-main);
    word-break: break-all;
    margin-bottom: 24px;
    padding: 10px 14px;
    background: var(--green-light);
    border-radius: 8px;
    font-family: 'Consolas', monospace;
}

.outbound-modal-btns {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.outbound-btn-cancel,
.outbound-btn-confirm {
    flex: 1;
    padding: 12px 0;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
    transition: all .25s;
    border: 1px solid var(--border-light);
    text-align: center;
}

.outbound-btn-cancel {
    background: var(--bg-card);
    color: var(--text-sub);
}
.outbound-btn-cancel:hover {
    color: var(--text-main);
    border-color: var(--line-color);
}

.outbound-btn-confirm {
    background: var(--green-main);
    color: #fff;
    border-color: var(--green-main);
}
.outbound-btn-confirm:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(var(--green-main-rgb), 0.35);
}