/*
 Theme Name: Happy花椒
 Version: 2.0
 Text Domain: quhj-happyhj
 Copyright: www.quhj.com
 描述：花椒博客主题 - 净化优化版
 统一全站玻璃拟态卡片风格，完善响应式
*/

/* ========== CSS 变量 - 全站统一 ========== */
: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;

    /* 统一卡片变量 */
    --card-radius: 14px;
    --card-shadow: 0 4px 20px rgba(0, 30, 80, 0.08);
    --card-shadow-hover: 0 12px 35px rgba(0, 40, 100, 0.18);
    --card-transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 暗夜星空 */
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.dark body {
    background: linear-gradient(135deg, #0a0f1a 0%, #0d1526 30%, #111a2e 60%, #0f1624 100%);
    background-attachment: fixed;
}
html.dark #starWrap {
    opacity: 0.9;
}
html.dark .card,
html.dark .sidebar-card,
html.dark .about-profile-card,
html.dark .about-content-card,
html.dark .about-timeline-card {
    backdrop-filter: blur(20px) saturate(150%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(150%) !important;
}

/* ========== 关于页面时间轴修复 ========== */
body .about-timeline-card {
    padding: 40px 30px !important;
}
.about-timeline-card .timeline-wrap {
    position: relative;
}
.about-timeline-card .timeline-center-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    transform: translateX(-50%);
    z-index: 1;
    background: var(--line-theme-light);
}
.about-timeline-card .timeline-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 30px;
    margin-bottom: 36px;
    position: relative;
    z-index: 2;
}
.about-timeline-card .timeline-item {
    padding: 0 12px !important;
    background: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transition: none !important;
    width: auto !important;
    margin: 0 !important;
    position: static !important;
    float: none !important;
    display: block !important;
}
.about-timeline-card .timeline-item::before,
.about-timeline-card .timeline-item::after {
    display: none !important;
}
.about-timeline-card .timeline-left,
.about-timeline-card .timeline-right {
    margin: 0 !important;
    padding: 0 12px !important;
    float: none !important;
    width: auto !important;
}
.about-timeline-card .timeline-left {
    text-align: right;
}
.about-timeline-card .timeline-right {
    text-align: left;
}
.about-timeline-card .timeline-item-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.about-timeline-card .timeline-left .timeline-item-header {
    justify-content: flex-end;
}
.about-timeline-card .timeline-time {
    font-weight: 500;
    font-size: 15px;
    color: var(--green-main);
}
.about-timeline-card .timeline-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--green-main);
}
.about-timeline-card .timeline-dot-glow {
    box-shadow: 0 0 8px var(--green-main), 0 0 16px rgba(var(--green-main-rgb), 0.4);
}
.about-timeline-card .timeline-desc {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-sub);
}
.about-timeline-card .timeline-spacer {
    width: 0;
}

@media screen and (max-width: 992px) {
    .about-timeline-card .timeline-center-line {
        left: 20px;
    }
    .about-timeline-card .timeline-row {
        grid-template-columns: 40px 1fr;
        gap: 15px;
    }
    .about-timeline-card .timeline-left,
    .about-timeline-card .timeline-right {
        text-align: left;
        grid-column: 2;
    }
    .about-timeline-card .timeline-left .timeline-item-header {
        justify-content: flex-start;
    }
    .about-timeline-card .timeline-spacer {
        display: none;
    }
}

/* 护眼灰 暗红色调 */
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,245,235,0.85);
    --text-main: #4b3621;
    --text-sub: #705c43;
    --text-dark-blue: #6b4423;
    --border-light: rgba(107, 68, 35, 0.15);
    --line-color: rgba(107, 68, 35, 0.2);
    --green-main: #b8860b;
    --green-light: rgba(184, 134, 11, 0.12);
    --line-theme-light: #daa520;
    --green-main-rgb: 184, 134, 11;
}

/* ========== 全局基础重置 ========== */
* {
    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; }
img { max-width: 100%; height: auto; }

/* ========== 三栏布局核心 ========== */
.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;
}

/* ========== 统一玻璃卡片 - 全站核心 ========== */
body .card,
body .single-post-card,
body .related-item,
body .sidebar-card,
body .home-card,
body .fav-card,
body .wptheme-item,
body .note-card,
body .moment-card,
body .timeline-photo-card,
body .link-info-card,
body .link-list-card,
body .about-profile-card,
body .about-content-card,
body .about-timeline-card,
body .guestbook-form-card {
    background: var(--bg-card) !important;
    backdrop-filter: blur(var(--glass-blur)) !important;
    -webkit-backdrop-filter: blur(var(--glass-blur)) !important;
    border-radius: var(--card-radius) !important;
    box-shadow: var(--card-shadow) !important;
    transition: var(--card-transition) !important;
}

body .card:hover,
body .single-post-card:hover,
body .related-item:hover,
body .sidebar-card:hover,
body .home-card:hover,
body .fav-card:hover,
body .wptheme-item:hover,
body .note-card:hover,
body .moment-card:hover,
body .timeline-photo-card:hover,
body .link-info-card:hover,
body .link-list-card:hover,
body .about-profile-card:hover,
body .about-content-card:hover,
body .about-timeline-card:hover,
body .guestbook-form-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: var(--card-shadow-hover) !important;
}

/* 卡片内边距基础 */
.card {
    padding: 24px 28px;
    width: 100%;
    margin-bottom: 24px;
}

/* 卡片标题统一 */
.card h1,
.card h2,
.card h3 {
    color: var(--text-dark-blue);
    font-weight: 600;
    line-height: 1.4;
}
.card h1 { font-size: 26px; letter-spacing: 1.2px; }
.card h2 { font-size: 20px; letter-spacing: 1px; }
.card h3 { font-size: 18px; }

/* 卡片内容文字 */
.card .post-content,
.card .page-content {
    font-size: 16px;
    color: var(--text-main);
    line-height: 1.8;
    text-align: left;
}

/* ========== 液态玻璃导航 ========== */
.site-nav {
    width: 100%;
    margin-bottom: 24px;
    padding: 16px 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: var(--card-radius);
    box-shadow: var(--card-shadow),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--card-transition);
}
.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: 32px;
}
.banner-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.banner-date-left {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-sub);
    letter-spacing: 0.5px;
    opacity: 0.7;
    flex: 0 0 auto;
    text-align: left;
    white-space: nowrap;
    padding-left: 28px;
}
.banner-text {
    flex: 1 1 auto;
    text-align: center;
}
.banner-right-space {
    flex: 0 0 auto;
    width: 200px;
}
.banner-date-sep {
    color: var(--line-color);
    opacity: 0.6;
    margin: 0 6px;
}
.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: 10px auto 0;
    background: linear-gradient(to right, transparent, var(--line-color), transparent);
}
@keyframes streamLight {
    0% { background-position: 0% 0%; }
    100% { background-position: 300% 0%; }
}

/* ========== 页面统一标题样式 ========== */
.page-section-title {
    font-size: 30px;
    font-weight: 600;
    letter-spacing: 4px;
    color: var(--text-dark-blue);
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}
.page-section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--green-main), transparent);
    margin: 18px auto 0;
    border-radius: 2px;
}

/* ========== 侧边栏专属样式 ========== */
.right-sidebar .sidebar-card {
    border-radius: 10px;
    margin-bottom: 16px;
    padding: 20px;
}

/* 滚动入场动画 */
.scroll-fade {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
}
.scroll-fade.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 头像 - 极简圆形大气款 */
.avatar-box {
    width: 130px;
    height: 130px;
    margin: 10px auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--bg-card);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    transition: all 0.35s ease;
}
.avatar-box:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}
.avatar-box .avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: none;
}

.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; }
.profile-desc h3 {
    text-align: center;
    margin-bottom: 8px;
    color: var(--text-dark-blue);
}
.profile-desc p {
    font-size: 14px;
    color: var(--text-sub);
    line-height: 1.8;
    margin: 6px 0;
}
.profile-desc .divider-line { margin: 12px auto; }

/* 关于花椒按钮 */
.about-btn {
    display: inline-block;
    padding: 7px 26px;
    background: linear-gradient(90deg, #58d370, #2ca248);
    color: #fff;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.24s ease;
    box-shadow: 0 1px 5px rgba(40,167,69,0.15);
    font-size: 14px;
    font-weight: 500;
    border: none;
}
.about-btn:hover {
    background: linear-gradient(90deg, #62dd7c, #31b052);
    transform: translateY(-1px);
    box-shadow: 0 3px 9px rgba(40,167,69,0.22);
}

/* 区块标题 */
.sidebar-block-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark-blue);
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

/* 主题切换按钮 */
.theme-switch-wrap {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
}
.theme-btn {
    flex: 1;
    padding: 7px 0;
    border: 1px solid var(--green-main);
    background: transparent;
    color: var(--green-main);
    cursor: pointer;
    font-size: 13px;
    border-radius: 6px;
    transition: all 0.25s ease;
}
.theme-btn.active {
    background: var(--green-light);
    font-weight: 600;
}

/* 快速导航 */
.sidebar-quick-nav {
    text-align: center;
}
.quick-nav-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
}
.sidebar-nav-item {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    color: var(--text-main);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.25s ease;
    font-size: 14px;
    background: var(--green-light);
    border: 1px solid transparent;
}
.nav-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green-main);
    margin-right: 12px;
    flex-shrink: 0;
    box-shadow: 0 0 6px var(--green-main), 0 0 12px rgba(var(--green-main-rgb), 0.5);
    transition: all 0.25s ease;
}
.sidebar-nav-item .nav-text {
    flex: 1;
    font-weight: 500;
    text-align: left;
}
.sidebar-nav-item .nav-arrow {
    color: var(--text-sub);
    font-size: 12px;
    opacity: 0.6;
    transition: all 0.25s ease;
}
.sidebar-nav-item:hover {
    border-color: var(--green-main);
    transform: translateX(3px);
    color: var(--green-main);
}
.sidebar-nav-item:hover .nav-dot {
    box-shadow: 0 0 10px var(--green-main), 0 0 20px rgba(var(--green-main-rgb), 0.7);
    transform: scale(1.2);
}
.sidebar-nav-item:hover .nav-arrow {
    color: var(--green-main);
    opacity: 1;
    transform: translateX(3px);
}

/* ========== 封面卡片款音乐播放器 ========== */
.music-card {
    padding: 0 !important;
    overflow: hidden;
}
.music-cover {
    position: relative;
    width: 100%;
    padding-top: 60%;
    overflow: hidden;
}
.music-cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.music-card:hover .music-cover img {
    transform: scale(1.06);
}
.music-cover-mask {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
    pointer-events: none;
}
.music-body {
    padding: 14px 16px 16px;
}
.music-info {
    margin-bottom: 12px;
}
.music-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark-blue);
    margin-bottom: 3px;
}
.music-artist {
    font-size: 12px;
    color: var(--text-sub);
}
.music-progress {
    height: 4px;
    background: rgba(0,0,0,0.08);
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
    margin-bottom: 10px;
}
.music-progress-bar {
    width: 0%;
    height: 100%;
    background: var(--green-main);
    border-radius: 2px;
    transition: width 0.1s linear;
}
.music-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.music-time {
    font-size: 11px;
    color: var(--text-sub);
    min-width: 30px;
}
.music-play-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: var(--green-main);
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 2px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(var(--green-main-rgb), 0.35);
}
.music-play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(var(--green-main-rgb), 0.45);
}

/* 标签 */
.tag-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark-blue);
    text-align: center;
    margin-bottom: 8px;
}
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}
.tag-list a {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.25s ease;
}
.tag-list a:hover {
    transform: translateY(-2px);
}
.tag-item-0 { background: rgba(255, 107, 107, 0.15); color: #ff6b6b; }
.tag-item-1 { background: rgba(102, 217, 126, 0.15); color: #66d97e; }
.tag-item-2 { background: rgba(78, 205, 255, 0.15); color: #4ecdff; }
.tag-item-3 { background: rgba(255, 193, 7, 0.15); color: #ffc107; }
.tag-item-4 { background: rgba(156, 136, 255, 0.15); color: #9c88ff; }
.tag-item-5 { background: rgba(255, 159, 243, 0.15); color: #ff9ff3; }
.tag-item-6 { background: rgba(255, 159, 67, 0.15); color: #ff9f43; }
.tag-item-7 { background: rgba(0, 210, 211, 0.15); color: #00d2d3; }
.tag-item-8 { background: rgba(84, 160, 255, 0.15); color: #54a0ff; }
.tag-item-9 { background: rgba(255, 234, 167, 0.25); color: #f0b400; }
    cursor: pointer;
}
.about-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--green-main-rgb), 0.35);
}

/* 音乐播放器 */
audio {
    width: 100%;
    display: block;
    margin-bottom: 12px;
}
.music-title {
    text-align: center;
    margin-bottom: 15px;
    font-size: 16px;
    color: var(--text-dark-blue);
    font-weight: 500;
}

/* 标签云 */
.tag-title {
    font-size: 16px;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 500;
    color: var(--text-dark-blue);
}
.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);
}

/* 主题切换按钮 */
.theme-switcher {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}
.theme-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--border-light);
    cursor: pointer;
    transition: all 0.3s ease;
}
.theme-btn:hover {
    transform: scale(1.15);
    border-color: var(--green-main);
}
.theme-btn.day { background: linear-gradient(135deg, #87ceeb, #fff); }
.theme-btn.dark { background: linear-gradient(135deg, #0b1222, #1a237e); }
.theme-btn.eye { background: linear-gradient(135deg, #e8e9eb, #9c2c2c); }
.theme-btn.paper { background: linear-gradient(135deg, #f5ede0, #daa520); }

/* ========== 首页卡片网格 ========== */
.home-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.home-grid .card {
    text-align: left;
    margin-bottom: 0;
}

/* 首页文章卡片 - 带缩略图 */
.post-card {
    overflow: hidden;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
}
.post-card-thumb {
    display: block;
    width: 100%;
    height: 200px;
    overflow: hidden;
}
.post-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.post-card:hover .post-card-thumb img {
    transform: scale(1.06);
}
.post-card-body {
    padding: 20px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.post-card-title {
    margin-bottom: 10px;
    font-size: 17px;
    font-weight: 600;
    color: var(--text-dark-blue);
    line-height: 1.4;
}
.post-card-title a {
    color: inherit;
    transition: color 0.3s ease;
}
.post-card:hover .post-card-title a {
    color: var(--green-main);
}
.post-card-date {
    font-size: 12px;
    color: var(--text-sub);
    opacity: 0.7;
    margin-bottom: 10px;
}
.post-card-excerpt {
    font-size: 14px;
    color: var(--text-sub);
    line-height: 1.7;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 查看更多按钮 */
.view-more-btn {
    display: inline-block;
    font-size: 13px;
    color: var(--green-main);
    text-decoration: none;
    padding: 6px 16px;
    border-radius: 20px;
    background: var(--green-light);
    transition: all 0.25s ease;
    font-weight: 500;
}
.view-more-btn:hover {
    background: var(--green-main);
    color: #fff;
    transform: translateX(3px);
}

/* ========== 收藏页卡片 ========== */
.fav-card {
    position: relative;
    padding: 26px 24px 48px;
    text-decoration: none;
    display: block;
    color: inherit;
    overflow: hidden;
}
/* 卡片顶部微妙高光 */
.fav-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.6),
        transparent);
    opacity: 0.5;
    transition: all 0.4s ease;
}
.fav-card:hover::before {
    left: 5%;
    right: 5%;
    opacity: 0.8;
}
.fav-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark-blue);
    margin: 0 0 12px 0;
    line-height: 1.4;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.fav-card:hover .fav-title {
    color: var(--green-main);
}
.fav-excerpt {
    font-size: 14px;
    color: var(--text-sub);
    line-height: 1.75;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.fav-arrow {
    position: absolute;
    right: 24px;
    bottom: 16px;
    font-size: 13px;
    color: var(--green-main);
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
}
.fav-card:hover .fav-arrow {
    opacity: 1;
    gap: 8px;
}

/* ========== 碎碎念时间轴 ========== */
.moments-timeline {
    position: relative;
    padding-left: 36px;
}
.moments-timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: linear-gradient(180deg,
        transparent 0%,
        var(--line-theme-light) 15%,
        var(--line-theme-light) 85%,
        transparent 100%);
    box-shadow: 0 0 12px rgba(var(--green-main-rgb), 0.25);
    border-radius: 2px;
}
.moment-item {
    position: relative;
    margin-bottom: 32px;
}
.moment-item:last-child { margin-bottom: 0; }
.moment-dot {
    position: absolute;
    left: -36px;
    top: 20px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--green-main);
    border: 3px solid var(--bg-main);
    box-shadow: 0 0 0 3px rgba(var(--green-main-rgb), 0.18),
                0 0 16px rgba(var(--green-main-rgb), 0.35);
    z-index: 2;
    transition: all 0.35s ease;
}
.moment-item:hover .moment-dot {
    transform: scale(1.2);
    box-shadow: 0 0 0 5px rgba(var(--green-main-rgb), 0.12),
                0 0 24px rgba(var(--green-main-rgb), 0.5);
}
.moment-date {
    display: inline-block;
    padding: 4px 12px;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--green-main);
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.moment-card {
    padding: 20px 24px;
}
.moment-title {
    margin: 0 0 10px 0;
    font-size: 17px;
    font-weight: 600;
    color: var(--text-dark-blue);
    line-height: 1.4;
}
.moment-content {
    font-size: 14.5px;
    color: var(--text-sub);
    line-height: 1.85;
}
.moment-content p {
    margin: 0 0 8px 0;
}
.moment-content p:last-child { margin-bottom: 0; }
.moment-content video,
.moment-content .wp-video {
    max-width: 100%;
    height: auto;
    margin: 10px 0;
}

/* ========== 随笔列表 ========== */
.note-item {
    display: flex;
    gap: 24px;
    margin-bottom: 30px;
    align-items: flex-start;
}
.note-card {
    flex: 1;
    display: flex;
    gap: 24px;
    padding: 26px;
    align-items: flex-start;
    position: relative;
    min-height: 180px;
}
.note-text {
    flex: 1;
    padding-bottom: 36px;
}
.note-text h2 {
    margin: 0 0 12px 0;
    font-size: 20px;
    color: var(--text-dark-blue);
    font-weight: 600;
}
.note-text h2 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}
.note-text h2 a:hover {
    color: var(--green-main);
}
.note-excerpt {
    color: var(--text-sub);
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}
.note-thumb {
    width: 220px;
    height: 140px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
}
.note-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.note-thumb:hover img {
    transform: scale(1.05);
}
.read-more-link {
    position: absolute;
    right: 26px;
    bottom: 14px;
    font-size: 14px;
    text-decoration: none;
    color: var(--green-main);
    transition: all 0.2s ease;
}
.read-more-link:hover {
    transform: translateX(3px);
}

/* 日期块 */
.date-block-wrap {
    min-width: 80px;
    margin-top: 6px;
    text-align: center;
    transition: all 0.3s ease;
    padding: 4px 0;
}
.date-block-wrap:hover {
    transform: translateY(-5px);
}
.date-block-wrap:hover .date-block {
    box-shadow: 0 6px 14px rgba(var(--green-main-rgb), 0.22);
}
.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-block .day {
    font-size: 36px;
    line-height: 1;
    font-weight: 700;
}
.date-year-month {
    color: var(--green-main);
    font-size: 14px;
    margin-top: 8px;
    font-weight: 600;
    letter-spacing: 1px;
}

/* ========== 照片时光轴 ========== */
.timeline {
    position: relative;
    padding: 10px 0;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, transparent, var(--line-theme-light), transparent);
    transform: translateX(-50%);
}
.timeline-item {
    width: 46%;
    margin-bottom: 45px;
    position: relative;
}
.timeline-item.left  { margin-right: auto; padding-right: 30px; }
.timeline-item.right { margin-left: auto;  padding-left: 30px;  }
.timeline-date {
    display: inline-block;
    padding: 4px 14px;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    color: var(--green-main);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.timeline-item.right .timeline-date { float: left;  }
.timeline-item.left .timeline-date  { float: right; }
.timeline-photo-card {
    clear: both;
    padding: 10px;
}
.timeline-photos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.timeline-photos.single { grid-template-columns: 1fr; }
.timeline-photo {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    line-height: 0;
}
.timeline-photo img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}
.timeline-photo:hover img {
    transform: scale(1.05);
}
.timeline-photo-title {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 20px 12px 10px;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    color: #fff;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.timeline-photo:hover .timeline-photo-title { opacity: 1; }
.timeline-item::after {
    content: '';
    position: absolute;
    top: 16px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--green-main);
    border: 3px solid var(--bg-main);
    z-index: 2;
    box-shadow: 0 0 0 3px rgba(var(--green-main-rgb), 0.2);
    transition: all 0.3s ease;
}
.timeline-item:hover::after {
    transform: scale(1.25);
    box-shadow: 0 0 0 6px rgba(var(--green-main-rgb), 0.15);
}
.timeline-item.left::after  { right: -7px; transform: translateX(50%); }
.timeline-item.right::after { left: -7px;  transform: translateX(-50%); }
.timeline-item.left:hover::after  { transform: translateX(50%) scale(1.25); }
.timeline-item.right:hover::after { transform: translateX(-50%) scale(1.25); }

/* 灯箱 */
.photo-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(15, 15, 20, 0.9);
    backdrop-filter: blur(6px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}
.lb-box {
    position: relative;
    display: inline-block;
    max-width: 90vw;
    max-height: 90vh;
}
.photo-lightbox img {
    max-width: 100%;
    max-height: 90vh;
    display: block;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lb-text {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 30px 20px 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
    font-size: 14px;
    border-radius: 0 0 8px 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.lb-box:hover .lb-text { opacity: 1; }
.lb-close {
    position: absolute;
    top: 20px; right: 30px;
    font-size: 36px;
    color: #fff;
    cursor: pointer;
    z-index: 10;
    width: 44px; height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    transition: all 0.2s ease;
}
.lb-close:hover {
    background: rgba(255,255,255,0.2);
    transform: rotate(90deg);
}
.lb-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 32px;
    color: #fff;
    background: rgba(255,255,255,0.1);
    width: 50px; height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    user-select: none;
    border-radius: 8px;
    transition: all 0.2s ease;
}
.lb-arrow:hover { background: rgba(255,255,255,0.2); }
.lb-prev { left: 20px;  }
.lb-next { right: 20px; }

/* ========== WordPress主题列表 ========== */
.wptheme-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}
.wptheme-item {
    margin-bottom: 0;
    text-align: left;
    overflow: hidden;
    padding: 0;
}
.wptheme-thumb {
    display: block;
    width: 100%;
    height: 240px;
    overflow: hidden;
}
.wptheme-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.wptheme-item:hover .wptheme-thumb img {
    transform: scale(1.08);
}
.wptheme-body {
    padding: 20px 22px;
}
.wptheme-title {
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark-blue);
    line-height: 1.4;
}
.wptheme-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}
.wptheme-title a:hover {
    color: var(--green-main);
}
.wptheme-excerpt {
    font-size: 14px;
    color: var(--text-sub);
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

/* ========== 标签页卡片 ========== */
.tag-cards-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 24px;
}
.tag-card-item {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: left;
}
.tag-card-item h2 {
    margin: 0;
    font-size: 18px;
    line-height: 1.4;
}
.tag-card-item h2 a {
    color: var(--text-dark-blue);
    text-decoration: none;
    transition: color 0.2s;
}
.tag-card-item:hover h2 a {
    color: var(--green-main);
}
.tag-card-excerpt {
    color: var(--text-sub);
    font-size: 14px;
    line-height: 1.7;
    flex-grow: 1;
}
.tag-card-more {
    text-align: right;
    margin-top: 8px;
}
.tag-card-more a {
    color: var(--green-main);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}
.tag-card-more a:hover {
    transform: translateX(3px);
}

/* ========== 友情链接 ========== */
.link-two-col {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
}
.link-card-header {
    padding: 20px 24px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}
.link-card-header h3 {
    margin: 0;
    color: var(--text-main);
    font-size: 20px;
    font-weight: 600;
}
.link-info-card,
.link-list-card {
    padding: 0;
    overflow: hidden;
    text-align: left;
}
.link-info-rows {
    padding: 12px 24px 8px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.link-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    gap: 12px;
    font-size: 14px;
    text-align: left;
    border: 1px solid rgba(var(--green-main-rgb), 0.35);
    background: var(--bg-card);
    border-radius: 8px;
    transition: border-color 0.3s ease;
}
.link-info-row:hover {
    border-color: var(--green-main);
}
.link-info-label {
    color: var(--text-sub);
    flex-shrink: 0;
}
.link-info-value {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-main);
}
.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: 13px;
    transition: all 0.2s;
    flex-shrink: 0;
}
.link-copy-btn:hover {
    background: var(--green-light);
}
.link-tips {
    padding: 0 24px 24px;
    text-align: left;
}
.link-tips h4 {
    margin: 0 0 14px;
    color: var(--text-main);
    font-size: 16px;
    font-weight: 600;
}
.tips-list {
    color: var(--text-sub);
    font-size: 13px;
    line-height: 1.8;
}
.tip-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}
.tip-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #f53f3f;
    flex-shrink: 0;
}
.link-grid {
    padding: 20px 24px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}
.link-empty {
    color: var(--text-sub);
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 0;
}
.link-card-item {
    position: relative;
    display: block;
    border: 1px solid rgba(var(--green-main-rgb), 0.35);
    background: var(--bg-card);
    padding: 14px;
    border-radius: 8px;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.3s ease;
}
.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: 15px;
    transition: color 0.3s ease;
}
.link-card-text p {
    margin: 0;
    color: var(--text-sub);
    font-size: 13px;
    transition: color 0.3s ease;
}
.link-card-item:hover {
    border-color: var(--green-main);
    transform: translateY(-3px);
}
.link-card-item:hover .link-card-bg {
    width: 100%;
}
.link-card-item:hover h4 {
    color: #fff;
}
.link-card-item:hover p {
    color: rgba(255, 255, 255, 0.85);
}

/* ========== 留言板便签墙 ========== */
.guestbook-wrap {
    max-width: 1000px;
    margin: 0 auto;
}
.gb-sticky-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}
.gb-sticky-item {
    position: relative;
    background: #fffde7;
    padding: 20px 18px 16px;
    border-radius: 4px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    min-height: 160px;
}
html.dark .gb-sticky-item {
    background: #1a1a2e;
    color: #e0e0e0;
}
.gb-sticky-item:hover {
    transform: translateY(-5px) rotate(1deg);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.gb-sticky-tape {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 20px;
    background: rgba(255, 200, 100, 0.6);
    border-radius: 2px;
}
.gb-sticky-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.gb-sticky-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 16px;
}
.gb-sticky-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gb-sticky-meta {
    flex: 1;
    min-width: 0;
}
.gb-sticky-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark-blue);
}
.gb-sticky-time {
    font-size: 11px;
    color: var(--text-sub);
    opacity: 0.7;
}
.gb-sticky-content {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-main);
    word-break: break-word;
}
.gb-sticky-child {
    margin-left: 20px;
    margin-top: 12px;
    padding-left: 12px;
    border-left: 2px solid rgba(var(--green-main-rgb), 0.3);
    font-size: 13px;
}

/* 评论表单 */
.comment-form-card {
    max-width: 600px;
    margin: 0 auto 40px;
}
.comment-form-card input,
.comment-form-card textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text-main);
    font-size: 14px;
    transition: border-color 0.3s ease;
    margin-bottom: 12px;
}
.comment-form-card input:focus,
.comment-form-card textarea:focus {
    outline: none;
    border-color: var(--green-main);
}
.comment-form-card textarea {
    min-height: 120px;
    resize: vertical;
}
.comment-submit-btn {
    background: var(--green-main);
    color: #fff;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
}
.comment-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--green-main-rgb), 0.35);
}

/* ========== 关于页面 ========== */
.about-wrap {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}
.page-title {
    margin-bottom: 40px;
}
.title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.title-row h1 {
    font-size: 32px;
    margin: 0;
    color: var(--text-dark-blue);
}
.title-row p {
    margin: 0;
    font-size: 15px;
    color: var(--text-sub);
}
.green-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green-main);
    flex-shrink: 0;
}
.line-green {
    width: 160px;
    height: 1px;
    margin-left: 20px;
    background: var(--green-main);
}
.about-two-col {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
}
.about-info-card {
    padding: 0;
    overflow: hidden;
}
.about-info-header {
    padding: 24px;
    text-align: center;
    background: var(--green-light);
}
.about-info-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--border-light);
    object-fit: cover;
    margin-bottom: 12px;
}
.about-info-name {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark-blue);
    margin-bottom: 4px;
}
.about-info-desc {
    font-size: 13px;
    color: var(--text-sub);
}
.about-info-body {
    padding: 20px 24px;
}
.info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--line-color);
    font-size: 14px;
}
.info-row:last-child { border-bottom: none; }
.info-label { color: var(--text-sub); }
.info-value { color: var(--text-main); font-weight: 500; }

/* 建站统计 */
.site-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 30px;
}
.stat-item {
    text-align: center;
    padding: 20px;
}
.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--green-main);
    margin-bottom: 4px;
}
.stat-label {
    font-size: 13px;
    color: var(--text-sub);
}

/* 建站时光轴 */
.site-timeline {
    position: relative;
    padding-left: 30px;
    margin-top: 30px;
}
.site-timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, transparent, var(--line-theme-light), transparent);
}
.site-timeline-item {
    position: relative;
    margin-bottom: 24px;
}
.site-timeline-item::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--green-main);
    border: 3px solid var(--bg-main);
    box-shadow: 0 0 0 2px rgba(var(--green-main-rgb), 0.2);
}
.site-timeline-time {
    font-size: 14px;
    font-weight: 600;
    color: var(--green-main);
    margin-bottom: 4px;
}
.site-timeline-desc {
    font-size: 14px;
    color: var(--text-sub);
    line-height: 1.7;
}

/* ========== 文章详情页 ========== */
.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;
}
.copyright-url {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0;
}
.copyright-url .url-text {
    flex: 1;
    padding: 6px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    color: var(--text-sub);
    font-size: 13px;
    word-break: break-all;
}
.copy-btn {
    padding: 6px 14px;
    font-size: 13px;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    background: var(--bg-card);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    color: var(--text-sub);
}
.copy-btn:hover {
    border-color: var(--green-main);
    color: var(--green-main);
}

/* 文章底部按钮组 */
.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);
}

/* 上下篇导航 */
.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: var(--card-radius);
    text-decoration: none;
    color: var(--text-main);
    font-size: 14px;
    transition: all .25s;
    box-shadow: var(--card-shadow);
}
.post-navigation a:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
    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;
    margin-bottom: 0;
}
.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;
}

/* ========== 404页面 ========== */
.error-404 {
    text-align: center;
    padding: 100px 20px;
}
.error-404 h1 {
    font-size: 80px;
    font-weight: 200;
    color: var(--text-dark-blue);
    letter-spacing: 6px;
    margin-bottom: 20px;
}
.error-404 p {
    font-size: 16px;
    color: var(--text-sub);
    margin-bottom: 40px;
}
.error-404 a {
    color: var(--green-main);
    text-decoration: none;
    border-bottom: 1px solid var(--green-main);
    padding-bottom: 2px;
    transition: all 0.3s ease;
}
.error-404 a:hover {
    letter-spacing: 1px;
}

/* ========== 图片灯箱弹窗 ========== */
.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;
    border-radius: 8px;
}
.lightbox-content {
    display: block;
    max-width: 90vw;
    max-height: 80vh;
    border: none;
    border-radius: 4px;
}
.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;
    border-radius: 8px;
}
.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: rgba(0,0,0,0.6);
    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: rgba(0,0,0,0.8);
}
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ========== 出站链接提醒弹窗 ========== */
.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);
}

/* ========== 复制提示 ========== */
.copy-toast {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--green-main);
    color: #fff;
    padding: 10px 22px;
    border-radius: 999px;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.copy-toast.show {
    opacity: 1;
}

/* ========== 右键禁用提示 ========== */
#quhj-copy-tip {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: rgba(0,0,0,0.78);
    color: #fff;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 14px;
    z-index: 99999;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    backdrop-filter: blur(10px);
    white-space: nowrap;
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}
#quhj-copy-tip.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* ========== 滚动入场动画 ========== */
.scroll-fade {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s ease, transform .7s ease;
}
.scroll-fade.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== 暗夜模式星空背景 ========== */
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; }

/* ========== 通用工具类 ========== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.mt-30 { margin-top: 30px; }
.mb-30 { margin-bottom: 30px; }
.mt-40 { margin-top: 40px; }
.mb-40 { margin-bottom: 40px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-10 { gap: 10px; }
.gap-15 { gap: 15px; }
.gap-20 { gap: 20px; }
.w-full { width: 100%; }

/* ========== 高分屏适配 ========== */
@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: 14px 20px; }
    .nav-list { gap: 4px; }
    .nav-list li a { padding: 8px 14px; font-size: 14px; }
    .banner-text { font-size: 24px; }
    .card { padding: 20px 24px; }
}

@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;
    }
    .home-grid,
    .wptheme-list,
    .tag-cards-container,
    .favs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .link-two-col,
    .about-two-col {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media screen and (max-width: 992px) {
    body { padding-left: 0; }
    .left-banner-col {
        width: 100%;
        height: 280px;
        position: relative;
    }
    .wrap { flex-direction: column; margin-top: 0; }
    .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; }
    .home-grid,
    .wptheme-list,
    .tag-cards-container,
    .favs-grid,
    .related-posts {
        grid-template-columns: 1fr;
    }
    .site-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    .stat-number { font-size: 22px; }
    /* 照片时间轴改为单侧 */
    .timeline::before { left: 20px; }
    .timeline-item,
    .timeline-item.left,
    .timeline-item.right {
        width: 100%;
        margin: 0 0 45px 0;
        padding-left: 50px;
        padding-right: 0;
        text-align: left;
    }
    .timeline-item.left::after,
    .timeline-item.right::after {
        left: 13px;
        right: auto;
        transform: translateX(0);
    }
    .timeline-item.left:hover::after,
    .timeline-item.right:hover::after {
        transform: scale(1.25);
    }
    .timeline-item.left .timeline-date,
    .timeline-item.right .timeline-date {
        float: none;
    }
}

@media screen and (max-width: 768px) {
    .left-banner-col { height: 200px; }
    .logo-img { width: 120px; height: 32px; }
    .logo-line { display: none; }
    .banner-date { font-size: 12px; margin-right: 8px; }
    .banner-text { font-size: 18px; letter-spacing: 1px; }
    .single-post-card { padding: 24px 20px; }
    .post-title { font-size: 22px; }
    .avatar { width: 100px; height: 100px; }
    .page-section-title { font-size: 24px; margin-bottom: 36px; }
    .note-item {
        flex-direction: column;
        gap: 16px;
    }
    .note-card {
        flex-direction: column;
        padding: 20px;
    }
    .note-thumb {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
    .date-block-wrap {
        min-width: auto;
        display: flex;
        align-items: center;
        gap: 12px;
    }
    .date-block {
        padding: 6px 12px;
    }
    .date-block .day {
        font-size: 24px;
    }
    .moments-timeline { padding-left: 28px; }
    .moment-dot { left: -28px; width: 14px; height: 14px; }
    .moment-card { padding: 16px 18px; }
    .moment-title { font-size: 16px; }
    .moment-content { font-size: 14px; }
    .gb-sticky-grid {
        grid-template-columns: 1fr;
    }
    .site-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .post-navigation {
        flex-direction: column;
        gap: 12px;
    }
    .nav-next { text-align: left; }
}

@media screen and (max-width: 480px) {
    .banner-date { font-size: 11px; margin-right: 6px; }
    .banner-text { font-size: 16px; }
    .site-nav { padding: 12px 16px; }
    .logo-text { font-size: 18px; }
    .card { padding: 18px 20px; }
    .single-post-card { padding: 20px 16px; }
    .post-title { font-size: 20px; }
    .page-section-title { font-size: 22px; letter-spacing: 2px; }
    .site-stats {
        grid-template-columns: 1fr;
    }
}
