/*
 * Theme Name: Sakura
 * Theme URI: https://jyjswk.online
 * Description: 二次元青春风主题,粉蓝渐变,樱花飘落
 * Version: 1.0.0
 * Author: jyjswk
 *
 * @charset UTF-8
 */

/* ==========================================================================
   1. 重置与基础样式
   ========================================================================== */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: "Quicksand", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: #3d3d5c;
    background-color: #f0f5ff;
    /* 取消了渐变叠加，直接显示完整的壁纸 */
    background-image: url('./images/footer-scenery.png');
    /* 居中并且完全覆盖屏幕 */
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
}
a {
    color: #ff6b9d;
    text-decoration: none;
    transition: all 0.25s ease;
}

a:hover {
    color: #4a90e2;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

ul, ol {
    list-style: none;
}

button, input, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* ==========================================================================
   2. 樱花飘落背景
   ========================================================================== */

.sakura-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.sakura {
    position: absolute;
    top: -50px;
    font-size: 18px;
    opacity: 0.7;
    animation: sakuraFall linear infinite;
    user-select: none;
}

.sakura-1 { left: 5%;  font-size: 18px; animation-duration: 18s; animation-delay: 0s; }
.sakura-2 { left: 15%; font-size: 14px; animation-duration: 22s; animation-delay: 3s; }
.sakura-3 { left: 30%; font-size: 20px; animation-duration: 16s; animation-delay: 6s; }
.sakura-4 { left: 45%; font-size: 16px; animation-duration: 25s; animation-delay: 1s; }
.sakura-5 { left: 60%; font-size: 22px; animation-duration: 19s; animation-delay: 8s; }
.sakura-6 { left: 75%; font-size: 14px; animation-duration: 21s; animation-delay: 5s; }
.sakura-7 { left: 85%; font-size: 18px; animation-duration: 17s; animation-delay: 11s; }
.sakura-8 { left: 95%; font-size: 16px; animation-duration: 23s; animation-delay: 2s; }

@keyframes sakuraFall {
    0% {
        transform: translateY(-50px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(105vh) rotate(720deg);
        opacity: 0;
    }
}

/* ==========================================================================
   3. 顶部导航
   ========================================================================== */

.site-header {
    position: fixed; /* 强行固定在屏幕上方，下滑不消失 */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(255, 255, 255, 0.4); /* 大幅度降低背景纯色，提升透明度 */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: none; /* 去掉原本死板的边框 */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

/* 霓虹渐变底边 */
.site-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #7eb8ff, #ff6b9d, #7eb8ff);
    background-size: 200% 100%;
    animation: gradientMove 3s linear infinite;
    opacity: 0.8;
}

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

body {
    padding-top: 80px; 
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
    color: #3d3d5c;
}

.site-logo:hover {
    color: #ff6b9d;
}

.logo-icon {
    font-size: 24px;
    animation: logoSpin 4s ease-in-out infinite;
}

@keyframes logoSpin {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(15deg); }
}

.logo-text {
    background: linear-gradient(135deg, #ff8aae, #7eb8ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-list {
    display: flex;
    gap: 4px;
    align-items: center;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    border-radius: 20px;
    color: #5a5a7a;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: linear-gradient(135deg, #ffe5ee, #e5f0ff);
    color: #ff6b9d;
    transform: translateY(-1px);
}

.nav-emoji {
    font-size: 14px;
}

/* 搜索框 */
.search-box {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    /* 🌟 核心：彻底透明！不加任何背景色和毛玻璃，直接蹭父级导航栏的玻璃效果 */
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: none; 
    box-shadow: none; 
}

.search-box-open {
    max-height: 80px;
    padding: 14px 24px;
}

.search-box form {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 8px;
}

/* 搜索输入框本身 (半透明果冻质感，降低存在感) */
.search-input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid rgba(255, 138, 174, 0.3); 
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.2); 
    color: #3d3d5c;
    outline: none;
    transition: all 0.3s ease;
}

/* 鼠标点击输入时的聚焦状态 (微微提亮) */
.search-input:focus {
    background: rgba(255, 255, 255, 0.5); 
    border-color: #ff8aae;
    box-shadow: 0 0 0 2px rgba(255, 138, 174, 0.2);
}

/* 搜索按钮微调 */
.search-btn {
    padding: 10px 24px;
    background: linear-gradient(135deg, #ff8aae, #ff6b9d);
    color: #fff;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.3); 
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 157, 0.4);
}

/* ==========================================================================
   4. 主体容器
   ========================================================================== */

.main-container {
    position: relative;
    z-index: 2;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 欢迎横幅 */
.hero-banner {
    margin: 32px 0 40px;
    padding: 48px 32px;
    background: linear-gradient(135deg, rgba(255, 230, 240, 0.85), rgba(220, 235, 255, 0.85));
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(255, 138, 174, 0.12);
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 200, 220, 0.4), transparent);
    border-radius: 50%;
    pointer-events: none;
}

.hero-banner::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(180, 210, 255, 0.4), transparent);
    border-radius: 50%;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-archive {
    padding: 36px 24px;
}

.hero-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #3d3d5c;
}

.hero-emoji {
    display: inline-block;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.hero-subtitle {
    font-size: 16px;
    color: #6a6a8a;
    margin-bottom: 20px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 12px;
    align-items: center;
    color: #5a5a7a;
}

.stat-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.stat-num {
    font-size: 24px;
    font-weight: 700;
    color: #ff6b9d;
    background: linear-gradient(135deg, #ff8aae, #b89cff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 14px;
}

.stat-divider {
    color: #d0d0e0;
}

/* ==========================================================================
   5. 内容布局
   ========================================================================== */

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    margin-bottom: 40px;
}

@media (max-width: 900px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
}

/* 章节标题 */
.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #3d3d5c;
}

.title-icon {
    font-size: 24px;
}

.title-text {
    background: linear-gradient(135deg, #ff8aae, #7eb8ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.title-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, #ffc8d9, transparent);
    border-radius: 1px;
}

/* ==========================================================================
   终极重构：真实三栏架构 (扩宽容器 + 正规网格)
   ========================================================================== */
/* 1. 扩大主容器，给三栏留出充足的呼吸空间 */
.main-container {
    max-width: 1450px !important; /* 原本可能是 1200px，现在加大 */
}

/* 2. 定义正规的三栏排版 */
.main-container {
    max-width: 1450px !important; 
}

@media (min-width: 1024px) {
    .content-wrapper {
        display: grid !important;
        grid-template-columns: 240px minmax(0, 1fr) 280px !important; 
        gap: 30px !important;
        align-items: start;
    }

    /* 🌟 核心修复：强制对号入座！ */
    /* 1. 左侧边栏永远在第1列 */
    .content-wrapper > .sidebar-left { grid-column: 1 / 2 !important; }
    
    /* 2. 中间的主体内容（无论叫什么名字）永远强制在第2列！ */
    .content-wrapper > *:not(.sidebar-left):not(.sidebar-right) { 
        grid-column: 2 / 3 !important; 
    }
    
    /* 3. 右侧边栏永远在第3列 */
    .content-wrapper > .sidebar-right { grid-column: 3 / 4 !important; }

    /* 侧边栏吸顶固定 */
    .sidebar-left, .sidebar-right {
        position: -webkit-sticky;
        position: sticky;
        top: 100px;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
    }
    
    .sidebar-left::-webkit-scrollbar, .sidebar-right::-webkit-scrollbar { display: none; }
}

/* ==========================================================================
   6. 文章卡片(列表)
   ========================================================================== */

.post-card {
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 18px;
    box-shadow: 0 4px 20px rgba(255, 138, 174, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 138, 174, 0.1);
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(255, 138, 174, 0.18);
    border-color: rgba(255, 138, 174, 0.25);
}

.post-card-inner {
    padding: 24px 28px;
}

.post-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}

.post-title a {
    color: #3d3d5c;
    transition: color 0.25s ease;
}

.post-title a:hover {
    color: #ff6b9d;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #8a8aa8;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.meta-icon {
    font-size: 13px;
}

.meta-item a {
    color: #8a8aa8;
}

.meta-item a:hover {
    color: #ff6b9d;
}

.post-excerpt {
    color: #5a5a7a;
    margin-bottom: 14px;
    line-height: 1.7;
}

.post-readmore {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 16px;
    background: linear-gradient(135deg, #ffe5ee, #e5f0ff);
    border-radius: 16px;
    font-size: 14px;
    font-weight: 600;
    color: #ff6b9d;
    transition: all 0.25s ease;
}

.post-readmore:hover {
    background: linear-gradient(135deg, #ff8aae, #7eb8ff);
    color: #fff;
    transform: translateX(4px);
}

.arrow {
    transition: transform 0.25s ease;
}

.post-readmore:hover .arrow {
    transform: translateX(4px);
}

.no-posts {
    padding: 60px 0;
    text-align: center;
    color: #8a8aa8;
    font-size: 16px;
}

/* ==========================================================================
   7. 文章详情页
   ========================================================================== */

.post-detail {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 18px;
    padding: 40px;
    box-shadow: 0 4px 30px rgba(255, 138, 174, 0.08);
    border: 1px solid rgba(255, 138, 174, 0.1);
}

@media (max-width: 600px) {
    .post-detail { padding: 24px 16px; }
}

.post-detail-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px dashed rgba(255, 138, 174, 0.2);
}

.post-detail-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.3;
    color: #3d3d5c;
}

.post-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    color: #8a8aa8;
    font-size: 14px;
}

.post-detail-content {
    line-height: 1.85;
    color: #3d3d5c;
    font-size: 16px;
}

.post-detail-content h1,
.post-detail-content h2,
.post-detail-content h3,
.post-detail-content h4 {
    margin: 1.5em 0 0.6em;
    line-height: 1.4;
    color: #3d3d5c;
}

.post-detail-content h2 {
    font-size: 24px;
    padding-left: 12px;
    border-left: 4px solid #ff8aae;
}

.post-detail-content h3 {
    font-size: 20px;
}

.post-detail-content p {
    margin: 1em 0;
}

.post-detail-content a {
    color: #ff6b9d;
    border-bottom: 1px dashed #ffc0cc;
}

.post-detail-content a:hover {
    color: #4a90e2;
    border-bottom-color: #b3d4ff;
}

.post-detail-content blockquote {
    margin: 1.2em 0;
    padding: 12px 20px;
    background: linear-gradient(135deg, #fff0f5, #f0f8ff);
    border-left: 4px solid #ff8aae;
    border-radius: 8px;
    color: #5a5a7a;
}

.post-detail-content code {
    padding: 2px 6px;
    background: #fff0f5;
    border-radius: 4px;
    font-family: "Consolas", "Monaco", monospace;
    font-size: 0.9em;
    color: #d6366e;
}

.post-detail-content pre {
    margin: 1.2em 0;
    padding: 16px 20px;
    background: #2d2d44;
    border-radius: 12px;
    overflow-x: auto;
    color: #f0f0f5;
}

.post-detail-content pre code {
    background: transparent;
    color: #f0f0f5;
    padding: 0;
}

.post-detail-content ul,
.post-detail-content ol {
    margin: 1em 0;
    padding-left: 1.5em;
}

.post-detail-content ul li {
    list-style: disc;
    margin: 0.4em 0;
}

.post-detail-content ol li {
    list-style: decimal;
    margin: 0.4em 0;
}

.post-detail-content img {
    margin: 1em auto;
    display: block;
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(255, 138, 174, 0.15);
}

.post-detail-content table {
    width: 100%;
    margin: 1.2em 0;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(255, 138, 174, 0.08);
}

.post-detail-content th,
.post-detail-content td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid #ffe5ee;
}

.post-detail-content th {
    background: linear-gradient(135deg, #ffe5ee, #e5f0ff);
    color: #3d3d5c;
    font-weight: 600;
}

.post-detail-content hr {
    margin: 2em 0;
    border: none;
    height: 2px;
    background: linear-gradient(to right, transparent, #ffc0cc, transparent);
}

/* 标签 */
.post-tags {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 2px dashed rgba(255, 138, 174, 0.15);
}

.tags-label {
    color: #8a8aa8;
    margin-right: 8px;
}

.post-tags a {
    display: inline-block;
    margin: 4px 4px 4px 0;
    padding: 4px 12px;
    background: linear-gradient(135deg, #ffe5ee, #e5f0ff);
    border-radius: 12px;
    font-size: 13px;
    color: #ff6b9d;
}

.post-tags a:hover {
    background: linear-gradient(135deg, #ff8aae, #7eb8ff);
    color: #fff;
}

/* 上下篇 */
.post-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 2px dashed rgba(255, 138, 174, 0.15);
    gap: 16px;
}

.post-nav-prev,
.post-nav-next {
    flex: 1;
    color: #8a8aa8;
    font-size: 14px;
}

.post-nav-next {
    text-align: right;
}

.post-nav a {
    color: #ff6b9d;
}

/* ==========================================================================
   8. 分页
   ========================================================================== */

.pagination {
    margin: 32px 0;
    text-align: center;
}

.pagination .page-nav,
.pagination ol {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

/* 修复后的分页按钮：自适应宽度的胶囊形状 */
.pagination a,
.pagination .current {
    height: 40px;
    line-height: 38px;
    min-width: 40px;             /* 保证数字依然是正圆 */
    padding: 0 16px !important;  /* 左右增加内边距，给文字留出呼吸空间 */
    border-radius: 20px !important; /* 圆角设为高度的一半，形成完美的胶囊 */
    text-align: center;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.85);
    color: #5a5a7a;
    font-weight: bold;
    border: 1px solid rgba(255, 138, 174, 0.2);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.pagination a:hover,
.pagination .current {
    background: linear-gradient(135deg, #ff8aae, #7eb8ff);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(255, 138, 174, 0.25);
}

/* ==========================================================================
   9. 侧边栏 widget
   ========================================================================== */

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 给不同位置的 widget 独立赋予淡淡的马卡龙底色，保留毛玻璃特效 */
.sidebar .widget:nth-child(1) {
    background: rgba(255, 240, 245, 0.65) !important; /* 关于我：温暖樱花粉 */
    border: 1px solid rgba(255, 138, 174, 0.3) !important;
}
.sidebar .widget:nth-child(2) {
    background: rgba(240, 248, 255, 0.65) !important; /* 分类：冷静薄荷冰蓝 */
    border: 1px solid rgba(126, 184, 255, 0.3) !important;
}
.sidebar .widget:nth-child(3) {
    background: rgba(255, 250, 240, 0.65) !important; /* 最近更新：元气布丁黄 */
    border: 1px solid rgba(255, 200, 150, 0.3) !important;
}
.sidebar .widget:nth-child(4) {
    background: rgba(248, 240, 255, 0.65) !important; /* 标签云：梦幻香芋紫 */
    border: 1px solid rgba(200, 150, 255, 0.3) !important;
}

.widget {
    padding: 24px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 18px;
    box-shadow: 0 4px 20px rgba(255, 138, 174, 0.08);
    border: 1px solid rgba(255, 138, 174, 0.1);
}

.widget-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #3d3d5c;
    padding-bottom: 10px;
    border-bottom: 2px dashed rgba(255, 138, 174, 0.2);
}

.widget-icon {
    font-size: 18px;
}

.widget-list li {
    padding: 8px 0;
    border-bottom: 1px dashed rgba(255, 138, 174, 0.1);
}

.widget-list li:last-child {
    border-bottom: none;
}

.widget-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #5a5a7a;
    font-size: 14px;
    transition: all 0.2s ease;
}

.widget-list a:hover {
    color: #ff6b9d;
    transform: translateX(3px);
}

.cat-count {
    font-size: 12px;
    color: #b0b0c0;
}

/* 关于我 */
.widget-about .about-content {
    text-align: center;
}

.about-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd6e5, #d6e5ff);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(255, 138, 174, 0.2);
    border: 3px solid #fff;
}

.avatar-emoji {
    font-size: 38px;
}

.about-text {
    font-size: 14px;
    color: #6a6a8a;
    line-height: 1.6;
}

/* 标签云 */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* 漫画风硬核标签云 (Neo-Brutalism) */
.tag-item {
    display: inline-block;
    padding: 6px 14px;
    background: #ffffff;
    border: 2px solid #3d3d5c; /* 漫画风粗黑描边 */
    box-shadow: 3px 3px 0px #ff6b9d; /* 纯色硬阴影，摒弃之前的模糊阴影！ */
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #3d3d5c;
    transition: all 0.15s ease;
    margin-bottom: 8px;
}

.tag-item:hover {
    background: #ff8aae;
    color: #ffffff;
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0px #3d3d5c; /* 悬停时阴影加深变黑，拉开层级 */
}

.tag-item:active {
    transform: translate(3px, 3px); /* 模拟真实物理按键被按下的反馈感 */
    box-shadow: 0px 0px 0px #3d3d5c; 
}

/* ==========================================================================
   10. 评论
   ========================================================================== */

.comments-section {
    margin-top: 40px;
}

.comment-list {
    margin-bottom: 32px;
}

.comment-list li {
    padding: 16px 0;
    border-bottom: 1px dashed rgba(255, 138, 174, 0.15);
}

.comment-list li:last-child {
    border-bottom: none;
}

.comment-meta {
    margin-bottom: 6px;
    font-size: 13px;
    color: #8a8aa8;
}

.comment-meta a {
    font-weight: 600;
    color: #ff6b9d;
}

.comment-body {
    color: #3d3d5c;
    line-height: 1.7;
}

.comment-children {
    margin-left: 24px;
    margin-top: 12px;
    padding-left: 16px;
    border-left: 3px solid rgba(255, 138, 174, 0.2);
}

.comment-respond {
    margin-top: 32px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(255, 240, 245, 0.5), rgba(240, 248, 255, 0.5));
    border-radius: 16px;
}

.respond-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 18px;
    color: #3d3d5c;
}

.comment-form .form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

@media (max-width: 600px) {
    .comment-form .form-row { grid-template-columns: 1fr; }
}

.comment-form .form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #5a5a7a;
}

.required {
    color: #ff6b9d;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 10px 14px;
    background: #fff;
    border: 2px solid #ffe5ee;
    border-radius: 12px;
    color: #3d3d5c;
    outline: none;
    transition: all 0.25s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: #ff8aae;
    box-shadow: 0 0 0 3px rgba(255, 138, 174, 0.15);
}

.comment-form textarea {
    resize: vertical;
    font-family: inherit;
    line-height: 1.6;
}

.form-submit {
    margin-top: 16px;
    text-align: right;
}

.submit-btn {
    padding: 10px 32px;
    background: linear-gradient(135deg, #ff8aae, #7eb8ff);
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 138, 174, 0.35);
}

.cancel-comment-reply {
    margin-bottom: 12px;
    font-size: 14px;
}

/* ==========================================================================
   11. 页脚
   ========================================================================== */

.site-footer {
    margin-top: 48px;
    padding: 32px 24px;
    background: transparent; /* 彻底透明 */
    backdrop-filter: none;   /* 去除毛玻璃 */
    -webkit-backdrop-filter: none;
    border-top: none;        /* 去除顶部的分割线 */
    box-shadow: none;
    text-align: center;
    position: relative;
    z-index: 10;
}

/* 给页脚的所有文字和链接加上白色发光投影，确保在壁纸上能看清 */
.footer-line, 
.footer-info, 
.footer-info a,
.footer-meta {
    color: #5a5a7a;
    font-weight: 700;
    text-shadow: 
        0 0 5px rgba(255, 255, 255, 0.9), 
        0 0 10px rgba(255, 255, 255, 0.8),
        0 0 15px rgba(255, 255, 255, 0.8);
}

.footer-info a:hover {
    color: #ff6b9d; /* 鼠标悬停时变粉色 */
}

.footer-emoji {
    margin: 0 6px;
}

/* ==========================================================================
   12. 回到顶部
   ========================================================================== */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff8aae, #7eb8ff);
    color: #fff;
    text-align: center;
    line-height: 44px;
    font-size: 20px;
    box-shadow: 0 4px 16px rgba(255, 138, 174, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 99;
}

.back-to-top:hover {
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(255, 138, 174, 0.45);
}

.back-to-top-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ==========================================================================
   15. 左右护法：白子 & 星野
   ========================================================================== */
/* 左下角：白子 */
body::before {
    content: ''; 
    position: fixed; 
    left: -20px;       /* 稍微靠左溢出一点，显得自然 */
    bottom: -20px; 
    width: 35vw;       /* 占据屏幕宽度的 35% */
    max-width: 450px; 
    height: 70vh;      /* 占据屏幕高度的 70% */
    background: url('./images/shiroko.png') no-repeat bottom left;
    background-size: contain; 
    z-index: -1;       /* 垫在最底层 */
    pointer-events: none; /* 关键：鼠标穿透，不会挡住你点击网页链接！ */
    opacity: 0.95;
}

/* 右下角：星野 */
body::after {
    content: ''; 
    position: fixed; 
    right: -20px; 
    bottom: -20px; 
    width: 35vw; 
    max-width: 450px; 
    height: 70vh; 
    background: url('./images/hoshino.png') no-repeat bottom right;
    background-size: contain; 
    z-index: -1; 
    pointer-events: none;
    opacity: 0.95;
}

/* 屏幕较小时降低透明度，避免喧宾夺主 */
@media (max-width: 1400px) {
    body::before, body::after { opacity: 0.4; }
}

/* ==========================================================================
   13. 响应式
   ========================================================================== */

@media (max-width: 768px) {
    body {
        /* 🌟 修复手机端背景拉伸变异的终极方案：取消 fixed，让背景跟随滚动 */
        background-attachment: scroll !important;
        background-position: top center !important;
        background-size: cover !important;
    }

    .main-container {
        padding: 0 12px; /* 减小两侧留白 */
        width: 100%;
        overflow-x: hidden; /* 防止内容超出导致屏幕左右摇晃 */
    }

    .content-wrapper {
        display: flex;
        flex-direction: column; /* 强制侧边栏掉到文章列表下方 */
        gap: 20px;
    }

    /* 侧边栏在手机上不需要粘性定位了，直接正常排版 */
    .sidebar {
        position: static !important; 
        max-height: none !important;
    }

    .post-card-inner {
        padding: 20px 16px; /* 缩小卡片内边距 */
    }

    /* 防止文章内的代码块或长图片撑爆手机屏幕 */
    .post-detail-content img, 
    .post-detail-content pre {
        max-width: 100% !important;
        overflow-x: auto;
    }
}

/* ==========================================================================
   14. 视觉丰富增强 (Eye-catching Enhancements)
   ========================================================================== */

/* 定制马卡龙滚动条 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-thumb {
    background: #ffb6c1;
    border-radius: 10px;
}
::-webkit-scrollbar-track {
    background: #fff0f5;
}

/* 站点公告栏 */
.site-announcement {
    background: linear-gradient(90deg, #ffe5ee, #e5f0ff);
    padding: 12px 24px;
    border-radius: 16px;
    margin: -10px 0 30px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ff6b9d;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 138, 174, 0.15);
    border: 2px dashed #ffc8d9;
    overflow: hidden;
}

.announce-icon {
    font-size: 20px;
    animation: ring 2s infinite;
}

@keyframes ring {
    0%, 100% { transform: rotate(0deg); }
    10%, 30%, 50% { transform: rotate(15deg); }
    20%, 40% { transform: rotate(-15deg); }
}

/* 文章头图 (封面) */
.post-cover {
    width: calc(100% + 56px); /* 撑满卡片内边距 */
    margin: -24px -28px 20px -28px;
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.post-cover::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 40px;
    background: linear-gradient(to top, rgba(255,255,255,0.7), transparent);
}

/* 卡片入场浮现动画 */
.post-card {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 侧边栏头像呼吸灯 */
.widget-about .about-avatar {
    position: relative;
    animation: breathe 3s ease-in-out infinite;
}

.sidebar {
    position: -webkit-sticky;
    position: sticky;
    /* 距离屏幕顶部 80px 的位置固定住（避开顶部导航栏） */
    top: 80px; 
    /* 如果侧边栏太长，允许侧边栏内部滑动，且不显示丑陋的滚动条 */
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

/* 隐藏侧边栏自己产生的滚动条，保持二次元的纯洁 */
.sidebar::-webkit-scrollbar {
    display: none;
}

@keyframes breathe {
    0%, 100% { box-shadow: 0 0 15px rgba(255, 138, 174, 0.4); border-color: #fff; }
    50% { box-shadow: 0 0 30px rgba(126, 184, 255, 0.6); border-color: #ffe5ee; }
}

/* ==========================================================================
   16. RSS 车票风时间轴
   ========================================================================== */
.rss-timeline-container { margin: 20px 0; }
.rss-title { font-size: 22px; font-weight: bold; margin-bottom: 30px; color: #3d3d5c; }

/* 1. 时间轴主干 (左侧的虚线) */
.rss-timeline {
    position: relative;
    padding-left: 30px; 
    border-left: 3px dashed rgba(255, 138, 174, 0.5); /* 樱花粉虚线轴 */
}

/* 2. 拟物化车票本体 */
.rss-ticket {
    position: relative;
    display: flex;
    margin-bottom: 35px;
    /* 🌟 神奇魔法：利用径向渐变切出车票上下的半圆形打孔缺口！ */
    background: radial-gradient(circle at 90px 0, transparent 8px, rgba(255,255,255,0.85) 9px) top left / 100% 51% no-repeat,
                radial-gradient(circle at 90px 100%, transparent 8px, rgba(255,255,255,0.85) 9px) bottom left / 100% 51% no-repeat;
    border-radius: 12px;
    /* 由于底色被裁切，使用 drop-shadow 代替 box-shadow 来生成阴影 */
    filter: drop-shadow(0 6px 15px rgba(255, 138, 174, 0.15)); 
    transition: transform 0.3s ease;
}

.rss-ticket:hover {
    transform: translateY(-4px) translateX(4px); /* 悬浮稍微向右上弹起 */
    filter: drop-shadow(0 10px 25px rgba(255, 138, 174, 0.25));
}

/* 时间轴上的小圆点（连接车票和轴线） */
.rss-ticket::before {
    content: '';
    position: absolute;
    left: -39px; /* 精确对齐到外面的虚线上 */
    top: 25px;
    width: 14px;
    height: 14px;
    background: #ff6b9d;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(255,138,174,0.3); /* 外发光呼吸感 */
}

/* 3. 车票左侧：高亮日期存根 */
.ticket-stub {
    width: 90px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #ff8aae, #ff6b9d); /* 强烈的渐变色吸引视觉 */
    color: #fff;
    border-radius: 12px 0 0 12px;
    border-right: 2px dashed rgba(255,255,255,0.6); /* 撕票处的虚线 */
}
.ticket-stub .t-day { font-size: 32px; font-weight: 900; line-height: 1.1; }
.ticket-stub .t-ym { font-size: 14px; font-weight: bold; opacity: 0.9; }

/* 4. 车票右侧：文章内容区 */
.ticket-main {
    flex: 1;
    padding: 24px;
}
.ticket-main h4 { margin: 0 0 12px 0; font-size: 18px; line-height: 1.4; }
.ticket-main h4 a { color: #3d3d5c; font-weight: 700; transition: color 0.2s; }
.ticket-main h4 a:hover { color: #ff6b9d; }
.ticket-main .t-desc { color: #6a6a8a; font-size: 14px; line-height: 1.7; margin-bottom: 12px; }
.ticket-main .t-meta { 
    font-size: 12px; 
    color: #a0a0b0; 
    background: #f4f8fb; /* 来源信息做成小标签 */
    padding: 6px 12px; 
    border-radius: 6px; 
    display: inline-block; 
}

/* 手机端降级适配：车票改为简单的上下结构 */
@media (max-width: 600px) {
    .rss-timeline { padding-left: 20px; }
    .rss-ticket {
        flex-direction: column;
        background: rgba(255,255,255,0.85); /* 手机端取消复杂的打孔以保证性能 */
    }
    .ticket-stub { width: 100%; height: 60px; flex-direction: row; gap: 10px; border-radius: 12px 12px 0 0; border-right: none; border-bottom: 2px dashed rgba(255,255,255,0.6); }
    .ticket-stub .t-day { font-size: 24px; }
    .rss-ticket::before { left: -29px; }
}

/* ==========================================================================
   17. 归档页面专享：时光机岁月轴
   ========================================================================== */
.archive-list {
    padding-left: 20px;
    border-left: 2px dashed #ffc0cc; /* 贯穿岁月的粉色虚线 */
}
.archive-list li {
    position: relative;
    padding: 15px 0 15px 20px;
    list-style: none;
}
.archive-list li::before {
    content: '';
    position: absolute;
    left: -27px; /* 对齐虚线 */
    top: 22px;
    width: 10px;
    height: 10px;
    background: #fff;
    border: 3px solid #7eb8ff; /* 冰蓝色的时间节点 */
    border-radius: 50%;
    transition: all 0.3s;
}
.archive-list li:hover::before {
    background: #ff6b9d;
    border-color: #ffc0cc;
    box-shadow: 0 0 10px rgba(255,107,157,0.5);
}

/* ==========================================================================
   18. 关于页面：回忆录拍立得相片墙 (图钉连线版)
   ========================================================================== */
/* 相片墙容器 */
.memoir-board {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
}

/* 照片卡片外框 */
.photo-card {
    position: relative;
    width: 240px; /* 🌟 强制缩小图片宽度，再也不会霸占整个屏幕了 */
    background: #fff;
    padding: 10px 10px 40px 10px; /* 底部留白写字区 */
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-radius: 4px;
    transform: rotate(-3deg);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 1;
    cursor: zoom-in;
}

/* 偶数卡片反向倾斜 */
.photo-card:nth-child(even) { transform: rotate(4deg) translateY(10px); }

/* 悬停时照片摆正并浮起 */
.photo-card:hover { 
    transform: scale(1.05) rotate(0deg); 
    z-index: 10; 
    box-shadow: 0 15px 35px rgba(0,0,0,0.25); 
}

/* 图片本身 */
.photo-card img {
    width: 100%;
    height: auto;
    border-radius: 2px;
    pointer-events: none; /* 让外面的容器接管点击事件 */
}

/* 📍 图钉：改到左上角，并稍微倾斜显得随意 */
.pin {
    position: absolute;
    top: 15px;  /* 距离顶部 */
    left: 20px; /* 距离左侧 */
    transform: rotate(15deg); /* 微微倾斜 */
    width: 18px;
    height: 18px;
    background: radial-gradient(circle at 30% 30%, #d6e5ff, #7eb8ff, #4a90e2);
    border-radius: 50%;
    box-shadow: 2px 4px 6px rgba(0,0,0,0.4), inset 1px 1px 2px rgba(255,255,255,0.9);
    z-index: 10;
}

/* 偶数照片的粉色图钉 */
.photo-card:nth-child(even) .pin { 
    background: radial-gradient(circle at 30% 30%, #ffe5ee, #ff8aae, #ff6b9d); 
    transform: rotate(-15deg);
}

/* 🧵 动态连接线：改为下垂的实体粗线，锚点对齐图钉 */
/* .photo-card:not(:last-child)::after { */
/*     content: ''; */
/*     position: absolute; */
/*     top: 24px; /* 完美对齐左上角图钉的中心点 */ */
/*     left: 24px; /* 从当前图钉出发 */ */
/*     width: calc(100% + 40px); /* 跨越整张照片和 40px 的间距去寻找下一张 */ */
/*     height: 30px; /* 增加高度，形成绳子下坠的重力弧度 */ */
/*     border-bottom: 3px dashed rgba(126, 184, 255, 0.8); /* 改为底部虚线，加粗并加深颜色 */ */
/*     border-top: none; */
/*     border-radius: 50%; /* 形成一条往下垂的弧线 */ */
/*     z-index: -1; */
/*     transform-origin: left center; */
/*     animation: stringWave 2.5s ease-in-out infinite alternate; */
/* } */

/* 绳子随风微动的动画 */
/* @keyframes stringWave { */
/*     0% { transform: translateY(0) rotate(2deg); opacity: 0.9; } */
/*     100% { transform: translateY(5px) rotate(-1deg); opacity: 0.5; } */
/* } */

/* 手机端隐藏连接线 */
@media (max-width: 768px) {
    .photo-card:not(:last-child)::after { display: none; }
}

/* 强制图片尺寸绝对统一 */
.photo-card img {
    width: 100%;
    height: 220px; /* 🌟 强制固定高度，不再被原图拉伸 */
    object-fit: cover; /* 🌟 神奇属性：自动按比例裁剪中心部分，绝不挤压变形！ */
    border-radius: 2px;
    pointer-events: none; 
}

/* 相片下方的留言配文样式 */
.photo-caption {
    margin: 15px 0 0 0;
    font-size: 14px;
    color: #5a5a7a;
    text-align: center;
    font-weight: 600;
    line-height: 1.5;
    /* 尽量调用系统里的手写/圆润字体，增加手账感 */
    font-family: "Quicksand", "Comic Sans MS", "PingFang SC", cursive, sans-serif;
}

/* 隐藏掉 header.php 里原本写死的默认 📄 字符 */
.nav-emoji { 
    display: none !important; 
}

/* 按顺序为导航栏的每个按钮重新注入专属图标 */
/* 第1个：首页 */
.nav-list .nav-item:nth-child(1) .nav-link::before { content: '🌸'; margin-right: 6px; font-size: 16px; } 
/* 第2个：关于 */
.nav-list .nav-item:nth-child(2) .nav-link::before { content: '💌'; margin-right: 6px; font-size: 16px; } 
/* 第3个：归档 */
.nav-list .nav-item:nth-child(3) .nav-link::before { content: '🗂️'; margin-right: 6px; font-size: 16px; } 
/* 第4个：RSS订阅 */
.nav-list .nav-item:nth-child(4) .nav-link::before { content: '🎟️'; margin-right: 6px; font-size: 16px; } 
/* 第5个：搜索 (如果有更多页面，依此类推修改 nth-child 数字即可) */
.nav-list .nav-item:nth-child(5) .nav-link::before { content: '🔍'; margin-right: 6px; font-size: 16px; }

/* ==========================================================================
   19. 归档页面：作品统计时间轴 (含胶囊排版与丝滑折叠交互)
   ========================================================================== */
.archive-timeline-container {
    position: relative;
    padding-left: 20px;
}

/* 贯穿全场的左侧时间线 */
.archive-timeline-container::before {
    content: '';
    position: absolute;
    top: 10px;
    bottom: 0;
    left: 28px;
    width: 2px;
    background: linear-gradient(to bottom, #ffc0cc, rgba(126, 184, 255, 0.3));
    z-index: 1;
}

/* 年份标题 (已升级为可点击的交互按钮) */
.archive-year {
    font-size: 26px;
    color: #ff6b9d;
    margin: 30px 0 15px 0;
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.8);
    display: inline-flex; /* 修改为 flex 以对齐右侧的小箭头 */
    align-items: center;
    padding: 4px 16px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(255, 138, 174, 0.15);
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
}

.archive-year:hover {
    transform: translateX(5px);
    color: #4a90e2;
}

/* 共享旋转小箭头样式 */
.archive-year .toggle-icon,
.archive-month .toggle-icon {
    font-size: 14px;
    margin-left: 10px;
    color: #ff8aae;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), color 0.3s;
}

.archive-month .toggle-icon {
    font-size: 12px; /* 月份的箭头稍微秀气一点 */
    color: #7eb8ff;
}

/* 处于折叠状态下，箭头旋转并变灰 */
.archive-year.collapsed .toggle-icon,
.archive-month.collapsed .toggle-icon {
    transform: rotate(-90deg); /* 箭头指向右侧 */
    color: #b0b0c0;
}
/* 🌟 核心动画层：利用 CSS Grid 实现高度自适应过渡 */
.archive-year-content {
    display: grid;
    grid-template-rows: 1fr; /* 默认展开，占满内容高度 */
    transition: grid-template-rows 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.archive-year-content .archive-inner {
    overflow: hidden; /* 必须加 overflow，隐藏被挤压的内容 */
}

/* 当标题被判定为折叠时，下方的内容区域高度压缩至 0 */
.archive-year.collapsed + .archive-year-content {
    grid-template-rows: 0fr; /* 内容折叠 */
}

/* 月份标题 (升级为可点击按钮) */
.archive-month {
    font-size: 18px;
    color: #4a90e2;
    margin: 20px 0 15px 30px;
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
}

.archive-month:hover {
    transform: translateX(4px);
    color: #ff6b9d;
}

/* 🌟 新增：月份的 Grid 高度动画层 */
.archive-month-content {
    display: grid;
    grid-template-rows: 1fr;
    transition: grid-template-rows 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.archive-month-content .archive-inner {
    overflow: hidden;
}

/* 当月份被折叠时，内容区域高度压缩至 0 */
.archive-month.collapsed + .archive-month-content {
    grid-template-rows: 0fr;
}

/* 文章列表容器 */
.archive-list {
    margin: 0 0 20px 30px;
    padding-left: 15px;
}

/* 每一个文章节点 */
.archive-list li {
    position: relative;
    margin-bottom: 15px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    border: 1px solid rgba(255, 138, 174, 0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
}

.archive-list li:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(126, 184, 255, 0.15);
    border-color: #7eb8ff;
}

/* 节点上的小圆点（连接时间线） */
.archive-list li::before {
    content: '';
    position: absolute;
    left: -21px; /* 精准对齐到那根长线上 */
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: #fff;
    border: 3px solid #7eb8ff;
    border-radius: 50%;
    z-index: 2;
    transition: all 0.3s;
}

.archive-list li:hover::before {
    background: #ff6b9d;
    border-color: #ffc0cc;
    box-shadow: 0 0 10px rgba(255, 107, 157, 0.5);
}

/* 文章日期标签 (马卡龙胶囊，防拥挤排版) */
.archive-date {
    display: inline-block; /* 确保 padding 和 margin 完美生效 */
    font-family: "Consolas", monospace; /* 保持等宽字体，看起来更像代码/日期的极客感 */
    font-size: 13px;
    font-weight: 600;
    color: #5a5a7a;
    background: linear-gradient(135deg, #e5f0ff, #f0f5ff); /* 冰蓝渐变底色 */
    padding: 4px 12px;
    border-radius: 20px; /* 变成圆润的胶囊形状 */
    margin-right: 16px; /* 强制推开右边的标题，彻底解决拥挤！ */
    border: 1px solid rgba(126, 184, 255, 0.3);
    box-shadow: 0 2px 8px rgba(126, 184, 255, 0.15);
    letter-spacing: 0.5px;
}

/* 文章标题链接 */
.archive-list a {
    color: #3d3d5c;
    font-weight: 700;
    font-size: 16px;
    flex: 1; /* 让标题自动占满剩余空间 */
    transition: all 0.25s ease;
}

.archive-list a:hover {
    color: #ff6b9d; /* 鼠标悬停变粉色 */
    transform: translateX(4px); /* 悬停时标题微微向右浮动，增加互动感 */
}

/* ==========================================================================
   20. 移动端专属适配 (隐藏双侧边栏，纯净阅读模式)
   ========================================================================== */
@media (max-width: 768px) {
    .search-box {
        /* 1. 废除全透明！强制给搜索下拉层加上高纯度的白底毛玻璃，彻底遮挡后面的网页文字 */
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(15px) !important;
        -webkit-backdrop-filter: blur(15px) !important;
        
        /* 2. 强制绝对定位，让它必须从顶部 Header 的底边老老实实往下掉，不受底层干扰 */
        position: absolute !important;
        top: 100% !important; 
        left: 0 !important;
        width: 100% !important;
        
        /* 3. 加上底部阴影和边框，划清界限，让它看起来像一个真正的抽屉 */
        border-bottom: 2px solid rgba(255, 138, 174, 0.2) !important;
        box-shadow: 0 10px 25px rgba(255, 138, 174, 0.15) !important;
        z-index: 9999 !important;
    }

    /* 4. 修复输入框在手机端可能被挤压隐形的问题 */
    .search-box form {
        padding: 16px 20px !important;
        display: flex !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 5. 让手机上的输入框稍微明显一点，增加点击欲望 */
    .search-input {
        flex: 1 !important;
        width: 100% !important;
        background: rgba(240, 245, 255, 0.9) !important; /* 淡淡的冰蓝底色，提高存在感 */
        border: 1px solid rgba(126, 184, 255, 0.4) !important;
        color: #3d3d5c !important;
    }
}

@media (max-width: 1023px) {
    /* 1. 暴力隐藏所有可能的侧边栏类名，绝不留情！ */
    .sidebar, 
    .sidebar-left, 
    .sidebar-right, 
    #secondary {
        display: none !important;
    }

    /* 2. 彻底打碎电脑端的网格/分栏布局，恢复单列直排 */
    .content-wrapper {
        display: block !important; 
        width: 100% !important;
        padding: 0 10px !important; 
    }

    /* 3. 强制主体内容（文章列表/文章详情页）占满 100% 宽度，独享屏幕 */
    .content-wrapper > *,
    .post-detail,
    .post-card {
        width: 100% !important;
        max-width: 100% !important;
        grid-column: auto !important; /* 清除任何残留的网格定位 */
        margin: 0 auto 20px auto !important;
    }
}

@media (max-width: 1023px) {
    /* 1. 清理 CSS 伪元素画出来的绳子 */
    .photo-card::after,
    .photo-card::before,
    .memoir-board::after,
    .memoir-board::before {
        display: none !important;
        content: none !important;
    }

    /* 2. 清理用 JS 动态生成的 SVG 或 Canvas 实体麻绳 */
    /* 只限定在相片墙容器内，防止误伤网站其他地方的正常 SVG 图标 */
    .memoir-board svg,
    .memoir-board canvas,
    .photo-card svg,
    .photo-card canvas {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        height: 0 !important;
        width: 0 !important;
    }
}

/* App 风格底部悬浮导航栏 (Bottom Tab Bar) */
@media (max-width: 768px) {
    /* 1. 顶部 Header：剥离导航，只保留 Logo 居中显示 */
    .header-inner {
        justify-content: center !important; /* Logo 居中 */
        padding: 12px 20px !important;
    }
    
    /* 2. 空间转移：将导航区域强行拉到屏幕最底部，并拉伸占满宽度 */
    .site-nav {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 65px;
        background: rgba(255, 255, 255, 0.85) !important;
        backdrop-filter: blur(15px) !important;
        -webkit-backdrop-filter: blur(15px) !important;
        border-top: 1px solid rgba(255, 138, 174, 0.3) !important;
        box-shadow: 0 -4px 20px rgba(255, 138, 174, 0.15) !important;
        z-index: 9999 !important; /* 确保它永远在最上层 */
        display: flex;
        align-items: center;
    }

    /* 3. 内部列表：横向均匀分布 */
    .nav-list {
        width: 100%;
        justify-content: space-around !important;
        padding: 0 5px !important;
    }

    /* 4. 按钮变身：上面图标，下面文字，变成真正的 App 按钮 */
    .nav-link {
        flex-direction: column !important; /* 垂直排列 */
        padding: 4px 0 !important;
        font-size: 11px !important; /* 文字缩小 */
        gap: 4px !important;
        background: transparent !important; /* 避免手机端按压变色出现方块卡顿 */
        border-radius: 0 !important;
    }

    /* 5. 图标放大，并去掉右边距 */
    .nav-list .nav-item .nav-link::before {
        font-size: 22px !important;
        margin-right: 0 !important;
    }

    /* 6. 当前页面高亮特效 (文字变色，图标微弹) */
    .nav-link.active {
        color: #ff6b9d !important;
        transform: translateY(-3px);
        font-weight: bold;
    }

    /* 7. 给页面最底部留出安全区，防止文章/页脚被底部的导航栏盖住 */
    body {
        padding-bottom: 85px !important; 
    }

    /* 8. “回到顶部”悬浮按钮向上避让 */
    .back-to-top {
        bottom: 90px !important;
        right: 15px !important;
        width: 40px !important;
        height: 40px !important;
        line-height: 40px !important;
    }
}