  /* --- 基础重置 --- */
        body { 
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-family: 'Noto Serif SC', serif;
    font-weight:600;
    background-color: #ffffff; 
    line-height: 1.5; 
    -webkit-font-smoothing: antialiased; 
    overflow-x: hidden;
    transition: background-color 0.3s, color 0.3s;
}
    * { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; }
  a { text-decoration: none; color: inherit; }
        
        
         
        /* --- 夜间模式样式覆盖 --- */
        body.dark-mode { background-color: #1a1a1a; color: #e0e0e0; }
        body.dark-mode .header { background-color: #000; box-shadow: 0 2px 5px rgba(255,255,255,0.1); }
        body.dark-mode .main-content { background-color: #2c2c2c; }
        body.dark-mode .sidebar-left, body.dark-mode .sidebar-right, body.dark-mode .post-list{ color: #fff;background-color: #1f1f1f; border-color: #444; }
        body.dark-mode .search-dropdown { background-color: #111; }
        body.dark-mode .search-input { background-color: #333; color: white; }
        body.dark-mode .post-list { background-color: #1f1f1f;border-color: #444; }
        body.dark-mode .card-header { color: #fff;background-color: #1f1f1f; border-color: #444; }
        
        body.dark-mode .footer {background-color: #2c2c2c;color: #fff;}
        

/* 全局重置与基础样式 */

ul { 
    list-style: none; 
}
img { 
    max-width: 100%; 
    display: block; 
}

.mbsh-container {
    display: flex;
    margin: 0 auto;
    margin-top: 0px;
   
}


.header-avatar {
    
    border-radius: 50%;
    border: 2px solid var(--bg-card);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    background-color: #ddd;
    background-image: url(https://via.placeholder.com/150);
    background-size: cover;
}

.header img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
}




/* ====================
   🎨 美化 <pre> 代码块
   ==================== */
.entry-content pre {
    /* 布局与换行：保留格式并防止撑破容器 */
    position: relative;
    white-space: pre-wrap;       
    word-wrap: break-word;       
    word-break: break-all;       
    max-width: 100%;             
    overflow-x: auto;            /* 内容过长时显示横向滚动条 */
    
    /* 视觉外观：深色极客风 */
    background-color: #2d2d2d;   /* 深灰背景 */
    color: #f8f8f2;              /* 浅色文字，高对比度 */
    padding: 1.2em;              /* 舒适的内部留白 */
    border-radius: 8px;          /* 8像素圆角 */
    margin: 1.5em 0;             /* 上下外边距，与其他内容隔开 */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* 轻微的底部阴影，增加层次感 */
}

.entry-content pre code {
    /* 确保代码使用专业的等宽字体 */
    font-family: 'Fira Code', 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.95em;           /* 稍微调小字号，显得更精致 */
    line-height: 1.6;            /* 增加行高，提升阅读舒适度 */
    background: none !important; /* 清除可能存在的默认背景 */
    padding: 0 !important;       /* 清除内边距，由 pre 统一控制 */
    color: inherit;              /* 继承 pre 的文字颜色 */
}




/* 让 pre 相对定位，方便按钮绝对定位到右上角 */


/* 复制按钮的基础样式 */
.copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 10px;
    font-size: 12px;
    color: #ccc;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    opacity: 0; /* 默认隐藏，鼠标悬停时显示 */
}

/* 鼠标悬停在 pre 上时，显示复制按钮 */
.entry-content pre:hover .copy-btn {
    opacity: 1;
}

.copy-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* 复制成功时的样式 */
.copy-btn.copied {
    background-color: #4CAF50;
    color: white;
    border-color: #4CAF50;
}







/* ====================
   📊 美化 表格 (Table)
   ==================== */
.entry-content table {
    width: 100%;                 /* 表格宽度占满容器 */
    border-collapse: collapse;   /* 合并相邻单元格的边框，消除双边框 */
    margin: 1.5em 0;             /* 上下外边距 */
    font-size: 0.95em;           /* 适配整体排版 */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); /* 添加轻微阴影，让表格浮起来 */
    border-radius: 8px;          /* 给表格整体加圆角 */
    overflow: hidden;            /* 配合圆角，裁切掉超出的部分 */
}

.entry-content th, 
.entry-content td {
    padding: 12px 15px;          /* 单元格内部留白，避免文字贴边 */
    text-align: left;            /* 文字左对齐 */
    border-bottom: 1px solid #e0e0e0; /* 底部细边框 */
}

/* 表头专属样式 */
.entry-content th {
    background-color: #4CAF50;   /* 醒目的绿色表头（可根据网站主色调修改） */
    color: #ffffff;              /* 白色文字 */
    font-weight: 600;            /* 适当加粗 */
    text-transform: uppercase;   /* 英文字母转大写，更显正式 */
}

/* 隔行变色（斑马纹效果），提升长表格的可读性 */
.entry-content tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* 鼠标悬停交互效果 */
.entry-content tbody tr:hover {
    background-color: #f1f1f1;   /* 鼠标移上去时变灰，方便用户聚焦当前行 */
    transition: background-color 0.2s ease; /* 添加平滑的过渡动画 */
}

/* 移动端适配：如果屏幕太窄，允许表格横向滚动 */
@media (max-width: 768px) {
    .entry-content table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}










.single-post  {
        padding-left: 0 !important;
        padding-right: 0 !important;
        max-width: 100% !important;
    }

/* === 2. 文章列表与卡片组件 (针对你提供的 HTML) === */
.post-list { 
    display: flex; 
    flex-direction: column; 
    gap: 16px; 
    margin-bottom: 10px; 
}

.post-card { 
    display: flex; 
    align-items: stretch; 
 
    border: 2px solid #bfbfbf; 
    border-radius: 12px; 
    padding: 12px; 
    gap: 16px; 
    position: relative; 
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.3s; 
    overflow: hidden; 
    will-change: transform, opacity; 
}

.post-card:hover { 
    transform: translate(-2px, -2px); 
    box-shadow: var(--card-shadow); 
}

/* 封面图样式 */
.post-cover-art { 
    flex-shrink: 0; 
    width: 140px; 
    height: 100px; 
    position: relative; 
    margin-left: 6px; 
    align-self: center; 
}

.post-cover-art::before { 
    content: ''; 
    position: absolute; 
    inset: 0; 
    border: 2px solid #bfbfbf; 
    border-radius: 8px; 
    background: #ffffff; 
    transform: rotate(-5deg); 
    z-index: 0; 
}

.post-cover-img-box { 
    position: absolute; 
    inset: 0; 
    border: 1px solid #bfbfbf; 
    border-radius: 8px; 
    overflow: hidden; 
    background: #eee; 
    z-index: 1; 
    transform: rotate(3deg); 
    transition: transform 0.3s; 
}

.post-card:hover .post-cover-img-box { 
    transform: rotate(0deg) scale(1.05); 
}

.post-cover-img-box img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: opacity 0.2s; 
}

/* 文章内容样式 */
.post-content { 
    flex: 1; 
    min-width: 0; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
}

.post-title { 
    font-size: 18px; 
    font-weight: 900; 
    margin-bottom: 6px; 
    line-height: 1.3; 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
}

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

.post-excerpt { 
    font-size: 13px; 
    color: #9ca3af; 
    line-height: 1.5; 
    margin-bottom: 8px; 
    display: -webkit-box; 
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical; 
    overflow: hidden; 
    word-break: break-word; 
    overflow-wrap: break-word; 
}

.post-meta { 
    font-size: 11px; 
    font-weight: 700;  
    opacity: 0.6; 
}

/* === 3. 响应式适配 (移动端优化) === */
@media (max-width: 600px) {
    .post-card { 
        gap: 12px; 
        padding: 10px; 
    }
    .post-cover-art { 
        width: 100px; 
        height: 75px; 
        margin-left: 2px; 
    }
    .post-title { 
        font-size: 15px; 
        margin-bottom: 4px; 
    }
    .post-excerpt { 
        font-size: 12px; 
        margin-bottom: 6px; 
    }
}

/* === 4. 暗黑模式支持 (如果需要) === */
@media (prefers-color-scheme: dark) {
    .post-card, .post-cover-art::before {
        background: #242629;
        border-color: #4a4d50;
    }
    .post-title a:hover { color: #fbbf24; }
}

        
        
        
        /* --- 左边侧边个人信息 --- */

        /* 卡片容器 */
        .profile-card {
            min-width: 100%;
            border-radius: 8px;
            overflow: hidden;
        }

        /* 标题栏 */
        .card-header {
            text-align: center;
            padding: 15px 0;
            /*background: -webkit-gradient(linear, left top, left 25, from(#fff), color-stop(100%, #f6f6f6), to(#f6f6f6));*/
            border-bottom: 1px solid #e1e1e1;
            font-size: 16px;
            color: #333;
            font-weight: bold;
        }
        
      
    
        

        /* 内容区域 */
        .card-body {
            display: flex;
            padding: 5px;
        }

        /* 左侧文字信息 */
        .info-list {
            flex: 1;
            font-size: 14px;
            line-height: 1.8;
            
        }

        .info-item {
            margin-bottom: 4px;
        }

        .label {
            
            font-weight: normal;
        }

        .value {
            
        }

        /* 右侧头像 */
        .avatar-container {
            width: 100px;
            height: 140px;
            margin-left: 5px;
            flex-shrink: 0;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .avatar {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 4px; /* 轻微圆角，类似原图 */
        }

        /* 针对特定内容的微调 */
        .fish-icon {
            font-size: 14px;
        }
 

    


        
        
        

        /* --- 头部悬浮固定 (Header) --- */
        .header {
            position: fixed; top: 0; left: 0; width: 100%; height: 60px;
            background-color: #1c203b; color: white; display: flex;
            align-items: center; padding: 0 20px; z-index: 1000;
            box-shadow: 0 2px 5px rgb(149 149 149 / 78%); transition: background-color 0.3s;
        }

        .logo { font-size: 20px; font-weight: bold; margin-right: 20px; }

        .header-actions {
            display: flex; align-items: center; gap: 15px;
            margin-left: auto;
        }

        .icon-btn {
            background: none; border: 1px solid rgba(255,255,255,0.3);
            color: white; padding: 6px 10px; border-radius: 4px;
            cursor: pointer; font-size: 16px; transition: all 0.2s;
        }
        .icon-btn:hover { background-color: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.6); }
        .menu-toggle { display: none; }

        /* --- 新增：弹出式搜索框样式 --- */
        .search-dropdown {
            position: absolute;
            top: 60px; /* 紧贴头部下方 */
            left: 0;
            width: 100%;
            background-color: #34495e; /* 比头部稍浅一点的颜色 */
            padding: 15px 20px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
            z-index: 999;
            
            /* 核心动画属性：初始状态为隐藏 */
            max-height: 0;
            opacity: 0;
            overflow: hidden;
            transition: max-height 0.3s ease-out, opacity 0.3s ease-out, padding 0.3s ease;
            padding-top: 0; padding-bottom: 0; /* 初始内边距为0，配合max-height隐藏 */
        }

        /* 搜索框展开时的状态 */
        .search-dropdown.active {
            max-height: 100px; /* 展开后的高度上限 */
            opacity: 1;
            padding-top: 15px; padding-bottom: 15px;
        }

        .search-input-wrapper {
            max-width: 600px;
            margin: 0 auto;
            display: flex;
        }

        .search-input {
            flex: 1;
            padding: 10px 15px;
            border: none;
            border-radius: 4px 0 0 4px;
            outline: none;
            font-size: 16px;
        }

        .search-submit {
            padding: 10px 20px;
            background-color: #27ae60;
            color: white;
            border: none;
            border-radius: 0 4px 4px 0;
            cursor: pointer;
            font-size: 16px;
        }
        .search-submit:hover { background-color: #2ecc71; }

        /* --- 整体容器 --- */
        
       /*@media (min-width: 1200px) {
  .container {
    max-width: 1300px;
  }
}*/
        
        
        
        
        
        .container {
            display: flex;margin: 0 auto; margin-top: 60px; min-height: calc(100vh - 60px);
        }

        .sidebar-left {
            width: 20%; background-color: #ffffff; padding: 20px;
            border-right: 1px solid #ddd; flex-shrink: 0;
            transition: transform 0.3s ease;
            height: calc(100vh - 60px);
            overflow-y: auto;
        }
        .sidebar-left H3 {
        border-bottom: 1px solid #e5d9d9;
        }

        .main-content {
            width: 60%; padding: 30px;
            transition: background-color 0.3s;
        }

        .sidebar-right {
            width: 20%; background-color: #ffffff; padding: 20px;
            border-left: 1px solid #ddd; flex-shrink: 0;
            transition: background-color 0.3s;
        }
        
        
        
        
        
        
        
        #footer {
    padding: 3em 0;
    line-height: 1.5;
    text-align: center;
   
    font-size: 16px;
        }

footer {
    background: url(https://cuixiping.com/blog/usr/themes/default/img/bg-shuimoshanmai.webp) 0% 100% repeat-x;
}
        
        /* =========================================
           移动端适配 (屏幕宽度小于 768px 时生效)
           ========================================= */
 @media (max-width: 768px) {
 .menu-toggle { display: block; }

 .sidebar-left {
  position: fixed; top: 60px; left: 0; bottom: 0;
  width: 70%; max-width: 300px; transform: translateX(-100%);
  z-index: 999; box-shadow: 2px 0 5px rgba(0,0,0,0.1);}
  
 .sidebar-left.active { transform: translateX(0); }

 .main-content { width: 100%; padding: 10px;flex-grow: 1; 
  overflow-wrap: break-word; /* 现代标准写法，推荐首选 */
  word-wrap: break-word;      /* 兼容旧版浏览器的写法 */
  white-space: normal;        /* 确保允许正常换行 */
  }
  .sidebar-right { display: none; }
   }
        
       
        
        
        
        
        
        
        
        
         
        /* 分页 */
.pagination {
    margin-top: 60px;
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.pagination a {
    color: var(--text-color);
    text-decoration: none;
    border: 1px solid #4a4d50;
    padding: 10px 20px;
    transition: all 0.2s;
}

.pagination a:hover {
    background: var(--text-color);
    color: #1a1b1e;
}





            /* 分页容器 */
.pagination { 
    display: flex; 
    justify-content: center; 
    align-items: center;
    gap: 15px; 
    margin-top: 0px; 
    margin-bottom: 0px;
    padding: 5px;
}

.page-navigator{margin:0;flex:1}
.page-navigator .current a{text-decoration:underline;color:inherit;pointer-events:none}
.page-navigator a:focus{background-color:var(--pico-text-selection-color)}
.page-navigator .prev{margin-right:auto}
.page-navigator .prev a:before{content:" ";margin-right:0.25rem}
.page-navigator .next{margin-left:auto;text-align:right}.page-navigator .next a:after{content:" ";margin-left:0.25rem}

/* 分页容器 (Typecho 1.3 默认生成 ul.page-navigator) */
.page-navigator { 
    display: flex; 
    justify-content: center; 
    align-items: center;
    gap: 10px; 
    margin-top: 10px; 
    margin-bottom: 10px;
    padding: 5px; /* 去掉默认列表内边距 */
    list-style: none; /* 去掉列表默认圆点 */
}

/* 列表项 (li) */
.page-navigator li { 
    margin: 0; /* 去掉默认边距 */
}

/* 链接样式 (a 标签) */
.page-navigator a {
    background: transparent;
    border: 2px solid #000;
    padding: 6px 6px;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s;
    text-transform: uppercase;
    font-weight: bold;
    display: inline-block;
    border-radius: 10px;
    
}

/* 鼠标悬停效果 */
.page-navigator a:hover { 
    background: #ff0000; 
    color: #000; 
    border-color: #000;
    transform: translateY(-2px); /* 悬停时轻微上浮 */
}

/* 当前激活的页面 (Typecho 会自动给 li 添加 current 类) */
.page-navigator .current a {
    background: #373737;
    border-color: #ffffff;
    color: white;
    box-shadow: 2px 2px 0 rgba(0,0,0,0.2);
    cursor: default;
}

/* 禁用状态 (上一页/下一页在首尾页时) */
.page-navigator .disabled a { 
    border-color: #ccc; 
    color: #ccc; 
    cursor: not-allowed; 
    box-shadow: none;
}
.page-navigator .disabled a:hover {
    background: transparent;
    color: #ccc;
    transform: none;
}
        
        
        
        