
a {
  color: #3354AA;
  text-decoration: none;
}
a:hover, a:active {
  color: #444;
}
pre, code { 
  background: #F3F3F3;
  font-family: Menlo, Monaco, Consolas, "Lucida Console", "Courier New", monospace;
  font-size: .92857em;
}
code { padding: 2px 4px; color: #B94A48; }
pre {
  padding: 8px;
  overflow: auto;
  max-height: 400px;
}
pre code {
  display: block;
  padding: 3px;
  color: #444;
}

blockquote {
  margin: 1em 0;
  padding-left: 1.5em;
  border-left: 4px solid #eee;
  color: #666;
}

table {
  border: 1px solid #ddd;
  width: 100%;
}
table th,
table td {
  padding: 5px 10px;
  border: 1px solid #eee;
}
table th {
  background: #f3f3f3;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cinzel', serif;
}
   
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
textarea {
  padding: 5px;
  border: 1px solid #E9E9E9;
  width: 100%;

  border-radius: 2px;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
textarea {
  resize: vertical;
}

.widget-title {
  line-height: 1.5;
  margin-bottom: 10px;
  border-bottom: 1px solid rgb(87 87 87 / 34%);
}


.search-form {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.search-form input[type="text"] {
    flex: 1;
    min-width: 120px;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.4;
}

.search-form button {
    padding: 8px 16px;
    background: #010101;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
    min-width: 60px;
}

/*
* Hide only visually, but have it available for screenreaders: h5bp.com/v
*/
.sr-only {
  border: 0;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px; }

/*
* Extends the .sr-only class to allow the element to be focusable
* when navigated to via the keyboard: h5bp.com/p
*/
.sr-only.focusable:active,
.sr-only.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  width: auto; }

.submit-container {
    display: flex;
    justify-content: flex-end; /* 关键：让内容靠右对齐 */
    width: 100%;               /* 确保容器占满整行 */
    margin-top: 20px;          /* 可选：给上方留点间距 */
}

.submit {
    display: inline-block;
    padding: 4px 10px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: none;
    outline: none;
    background-color: #0c0c0c;
    color: #ffffff;
    border-radius: 0px;
    transition: all 0.3s ease;
}

/* 鼠标悬停状态 (Hover) */
.submit:hover {
    background-color: #ff0000;    /* 稍微深一点的绿色 */
    transform: translateY(-2px);  /* 向上移动2像素，产生“浮起”感 */
}

/* 鼠标按下状态 (Active) */
.submit:active {
    transform: translateY(1px);   /* 向下移动1像素，产生“按下”感 */
}




/* ------------------
 * secondary
 * --------------- */
#secondary {
  padding-top: 15px;
  word-wrap: break-word;
}
.widget {
  margin-bottom: 10px;
 

  
}
.widget-list {
  padding: 0;
  /*counter-reset: item-counter;  创建一个名为 item-counter 的计数器 */
  list-style: none; /* 可选：去掉原本的圆点 */
  font-size: 12px;
  
}
.widget-list li {
  margin: 5px 0;
  line-height: 1.6;
  position: relative; /* 确保伪元素相对于 li 定位 */
  padding-left: 5px; /* 给左侧留出放数字的空间 */
  margin-bottom: 10px; /* 列表项间距 */
}
/* . 生成数字内容 */
.widget-list li::before {
    /*counter-increment: item-counter;*/
    /*content: counter(item-counter);*/
    
    /* --- 修改的核心部分 --- */
    position: static;      /* 1. 改为 static，让它回到文档流中，不再绝对定位 */
    display: inline-block; /* 2. 改为行内块，这样它能和文字在同一行 */
    vertical-align: middle; /* 3. 垂直居中，让序号和文字高度对齐 */
    
    /* --- 保留的样式 --- */
    width: 20px;
    height: 20px;
    background-color: #ccc;
    color: #fff;
    font-size: 12px;
    text-align: center;
    line-height: 20px; /* 这里保持 20px 可以让数字在方块里垂直居中 */
    border-radius: 4px;
    
    /* --- 新增间距 --- */
    margin-right: 1px;   /* 4. 给序号和后面的文字之间加点空隙 */
}



.widget-list li ul {
  margin-left: 15px;
}


    #secondary {
        display: grid;
        /* 定义两列，每列宽度相等 (1fr)，中间间距 20px */
        grid-template-columns: 2fr 1fr; 
        gap: 20px;
        width: 100%;
    }

    /* 响应式：手机端变回一列 */
    @media (max-width: 768px) {
        #secondary {
             grid-template-columns: 2fr 1fr; 
        }
    }
    
    
    
    
     .nav-icon { width: 24px; height: 24px; color: #fff; cursor: pointer; transition: color 0.3s, transform 0.2s; filter: drop-shadow(0 0 2px rgba(0,0,0,0.6)); }
        .top-navbar.scrolled .nav-icon { color: #333; filter: none; }
        .nav-icon:hover { transform: scale(1.1); }
        .nav-icon a { text-decoration: none; display: block; } /* 确保链接内的图标也生效 */
    
    
    #logo img {
    max-height: 40px;
    border-radius: 6px;
}
    


   /* --- 基础重置 --- */
        * { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
        
        body { 
            font-family: -apple-system, "PingFang SC", "Helvetica Neue", sans-serif; 
            background: #f5f6fa; /* 稍微带点灰的背景，突出卡片 */
            color: #333;
            padding-top: 50px;
            padding-bottom: 70px; /* 留出底部栏空间 */
            min-height: 100vh;
        }

        /* --- 布局容器 (限制最大宽度) --- */
        .app-container {
            max-width: 1280px;
            margin: 0 auto;
            background: #fff;
            min-height: 100vh;
            position: relative;
            box-shadow: 0 0 20px rgba(0,0,0,0.05);
        }

        /* --- 顶部导航栏 --- */
        .header {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: 50px;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            z-index: 1000;
            border-bottom: 1px solid #eee;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        /* 限制 Header 内容宽度以匹配主体 */
        .header-inner {
            width: 100%;
            max-width: 800px;
            margin: 0 auto;
            text-align: center;
            font-size: 18px;
            font-weight: 600;
            color: #000;
        }

        /* --- 内容区域 --- */
        .content-view {
            padding: 15px;
            display: none; /* 默认隐藏，通过 JS 控制显示 */
        }
        .content-view.active {
            display: block;
        }

        /* --- 网格布局 --- */
        .blog-grid {
            
            display: grid;
            gap: 12px;
            /* 移除 justify-content，让 item 自己控制宽度 */
            grid-template-columns: repeat(2, 1fr);
        }



/* PC 端样式 (当屏幕宽度大于 768px 时) */
@media (min-width: 768px) {
  .blog-grid {
    /* 切换为 3 列布局 */
    grid-template-columns: repeat(4, 1fr);
  }
  
  
}
        /* 卡片项 (直接作为网格子元素) */
        .card-item {
            flex: 1 1 calc(50% - 6px); /* 两列布局，减去 gap 的一半 */
            min-width: 140px; /* 防止过窄 */
            position: relative;
            background: #fff;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(0,0,0,0.06);
            transition: transform 0.2s, box-shadow 0.2s;
            text-decoration: none;
            color: inherit;
            display: block; /* 确保作为块级元素填充 */
        }

        .card-item:active {
            transform: scale(0.98);
        }

        /* 图片区域 */
        .card-img {
            width: 100%;
            aspect-ratio: 16/9; /* 使用比例而非固定高度，更自适应 */
            background-size: cover;
            background-position: center;
            position: relative;
        }
        
        /* 黑白滤镜类 */
        .card-img.grayscale {
            filter: grayscale(100%);
        }

        /* 浮层容器 */
        .overlay-container {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            padding: 8px 10px;
            background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0));
            color: #fff;
            pointer-events: none; /* 让点击穿透到卡片 */
        }

        .year-tag {
            font-size: 11px;
            font-weight: 600;
            margin-bottom: 4px;
            opacity: 0.9;
            text-shadow: 0 1px 2px rgba(0,0,0,0.5);
        }

        .stats-overlay {
            display: flex;
            align-items: center;
            font-size: 11px;
            color: rgba(255,255,255,0.9);
            gap: 10px;
        }

        .stats-item {
            display: flex;
            align-items: center;
        }
        
        .stats-item i {
            margin-right: 3px;
            font-style: normal;
        }

        /* 左上角标签 */
        .time-label {
            position: absolute;
            top: 8px;
            left: 8px;
            background: rgba(0,0,0,0.6);
            color: #fff;
            padding: 2px 6px;
            border-radius: 4px;
            font-size: 10px;
            z-index: 2;
            backdrop-filter: blur(2px);
        }

        /* --- 日期分组标题 (如果需要按日期分开显示标题) --- */
        /* 注意：在纯网格布局中，通常不穿插日期标题，除非标题占满一行 */
        .date-section-title {
            flex-basis: 100%;
            font-size: 14px;
            color: #666;
            margin: 15px 0 5px 0;
            font-weight: 600;
            padding-left: 4px;
            display: flex;
            align-items: center;
        }
        .date-section-title::before {
            content: '';
            display: inline-block;
            width: 3px;
            height: 12px;
            background: #12B7F5;
            margin-right: 6px;
            border-radius: 2px;
        }

        /* --- 底部 Tab 栏 --- */
        .TabBar {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            height: 70px;
            background: #fff;
            display: flex;
            justify-content: space-around;
            align-items: center;
            border-top: 1px solid #eee;
            z-index: 1000;
            /* 在桌面端限制宽度以匹配主体 */
            max-width: 1280px;
            margin: 0 auto; 
            /* 关键：如果屏幕比800px宽，需要确保背景色覆盖整个视口底部，或者给body加背景 */
        }
        
        /* 修复桌面端底部两侧空白问题：给body加背景色，TabBar保持居中即可 */

        .TabBtn {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            font-size: 11px;
            color: #999;
            text-decoration: none;
            transition: all 0.2s;
            width: 60px;
        }

        .TabBtn.active {
            color: #12B7F5;
            transform: translateY(-2px);
        }

        .TabIcon {
            font-size: 20px;
            margin-bottom: 3px;
        }

        /* 空状态提示 */
        .empty-state {
            color: #999;
            font-size: 14px;
        }
        
        
        
        .post-content img { max-width: 100%; border: 1px solid #ddd; padding: 10px; background: #fff; box-shadow: 3px 3px 0 rgba(0,0,0,0.1); }
        
        
        
        
        
/* 灯箱遮罩层 */
.custom-lightbox {
    display: none; /* 默认隐藏 */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* 黑色半透明背景 */
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* 激活状态 */
.custom-lightbox.active {
    display: flex;
    opacity: 1;
}

/* 灯箱中的图片 */
.custom-lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    cursor: pointer;
}

/* 关闭按钮 (可选) */
.custom-lightbox::after {
    content: '×';
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* 左右切换按钮通用样式 */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 24px;
    border: none;
    border-radius: 4px;
    user-select: none;
    transition: background 0.3s;
}

.lightbox-nav:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* 移动端适配：隐藏按钮，改用滑动（可选） */
@media (max-width: 768px) {
    .lightbox-nav { display: none; } 
}


        
        
        
            /* 分页容器 */
.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 #1e1e1e;
    padding: 6px 12px;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s;
    text-transform: uppercase;
    font-weight: bold;
    display: inline-block;
    border-radius: 4px;
}

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

/* 当前激活的页面 (Typecho 会自动给 li 添加 current 类) */
.page-navigator .current a {
    background: #373737;
    border-color: #5d5d5d;
    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;
}
        
        
        
        
        
        
        
        
        
        
        
        /* 通用样式：移除默认列表样式，使用 Flex 布局 */
.post-meta {
    list-style: none;
    padding: 0;
    margin: 15px 0 0;
    display: flex;
    flex-wrap: wrap; /* 允许换行，防止小屏幕溢出 */
    gap: 15px; /* 项目之间的间距 */
    font-size: 14px;
    color: #666;
    background: #f9f9f9;
    border-radius: 6px;
    padding: 10px 15px;
    border: 1px solid #eee;
}

/* 列表项通用样式 */
.post-meta li {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap; /* 防止文字换行 */
}

/* 链接颜色 */
.post-meta a {
    color: #444;
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-meta a:hover {
    color: #0073aa; /* 鼠标悬停变色 */
}

/* 图标样式 (使用 Font Awesome Unicode) */
.post-meta li::before {
    font-family: 'Font Awesome 5 Free'; /* 确保你的主题加载了此字体 */
    font-weight: 900;
    display: inline-block;
    margin-right: 6px;
    color: #999;
}

/* 不同类型的图标 */
.meta-author::before {
    content: "作者"; /* 用户图标 */
}

.meta-time::before {
    content: "时间"; /* 时间图标 */
}

.meta-category::before {
    content: "分类"; /* 标签/分类图标 */
}

.meta-comment::before {
    content: "评论"; /* 气泡/评论图标 */
}

/* 评论数量特殊样式 */
.meta-comment {
    color: #d63638;
    font-weight: 500;
}

.meta-comment:hover {
    color: #b32e31;
}
        
        .post-near {
  list-style: none;
  margin: 30px 0;
  padding: 0;
  color: #999;
}
.post-near li {
  margin: 10px 0;
}
        
        
        
        
        
        
        
        
        .empty-state {
    padding: 10px;
    background: #fff; /* 或者是你的背景色 */
    border-radius: 8px;
    margin: 0;
}
.empty-icon {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
    opacity: 0.8;
}
.empty-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}
.empty-text {
    color: #666;
    margin-bottom: 25px;
}
.back-home-btn {
    display: inline-block;
    padding: 10px 24px;
    background: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}
.back-home-btn:hover {
    background: #555;
}
        
        
           /* 针对文章详情页的特殊样式 */
.post-detail { padding: 40px; }
.post-content { font-size: 1rem; line-height: 1.8; color: #333; }
.post-content h1, .post-content h2, .post-content h3 { margin-top: 30px; border-bottom: 2px solid #333; padding-bottom: 10px; }
.post-content p { margin-bottom: 20px; }
.post-content img { max-width: 100%; border: 1px solid #ddd; padding: 10px; background: #fff; box-shadow: 3px 3px 0 rgba(0,0,0,0.1); }
.post-content blockquote { border-left: 4px solid #ff5858; margin: 20px 0; padding-left: 20px; color: #555; font-style: italic; }
.post-content code { background: #f0f0f0; padding: 2px 5px; border-radius: 3px; font-family: monospace; }
.post-tags { font-size: 0.9rem; }
.post-tags a { background: #333; color: #fff; padding: 2px 8px; border-radius: 2px; text-decoration: none; font-size: 0.8rem; }
.post-tags a:hover { background: #ff5858; }
        
        
        
        
        
         
        /* --- 评论 --- */
        
        /* ------------------
 * Comment list
 * --------------- */
#comments {
  padding-top: 15px;
}
.comment-list, .comment-list ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.comment-list li {
  padding: 4px;
  margin-top: 10px;
  border: 1px solid #EEE;
}
.comment-list li.comment-level-odd {
  background: #F6F6F3;
}
.comment-list li.comment-level-even {
  background: #FFF;
}
.comment-list li.comment-by-author {
  background: #FFF;
}
.comment-list li .comment-reply {
  text-align: right;
  font-size: .92857em;
}
.comment-meta a {
  color: #999;
  font-size: .92857em;
}
.comment-author {
  display: block;
  margin-bottom: 3px;
  color: #444;
}
.comment-author .avatar {
  float: left;
  margin-right: 10px;
}

.comment-author .avatar img {
  border-radius: 10px;
}


.comment-author cite {
  font-weight: bold;
  font-style: normal;
}

/* Comment reply */
.comment-list .respond {
  margin-top: 15px;
  border-top: 1px solid #EEE;
}
.respond .cancel-comment-reply {
  float: right;
  margin-top: 15px;
  font-size: .92857em;
}
#comment-form label {
  display: block;
  margin-bottom: .5em;
  font-weight: bold;
}
#comment-form .required:after {
  content: " *";
  color: #C00;
}
        
        
        
        .sm-ping-title {
    font-size: 18px;
    overflow: hidden;
    display: block;
    margin-bottom: 18px;
    font-weight: bold;
    border-bottom: 1px solid rgb(207 207 207);
}

.sm-ping-title::before {
    content: '✍';
    margin-right: 2px;
    color: var(--accent-red-1);
}
        
        .sm-comment-input-bottom {
    margin-bottom: 10px;
      }
      
      .sm-display-grid {
    display: grid;
    grid-gap: 0.5rem;
    grid-template-columns: repeat(3,minmax(0,1fr));
}




.sm-comment-input-title .comment-name {
    white-space: nowrap;
    padding: 8px 1rem;
    display: flex;
    justify-content: center;
    text-align: center;
    align-items: center;
}
.sm-comment-input-title input {
    padding: 10px;
}

.sm-comment-input input {
    resize: none;
    text-align: justify;
    border-radius: 6px;
    overflow: hidden;
    width: calc(100%);
    padding: 10px;
    margin: 0;
}

/* 基础样式 */

.submit-container {
    display: flex;
    justify-content: flex-end; /* 关键：让内容靠右对齐 */
    width: 100%;               /* 确保容器占满整行 */
    margin-top: 20px;          /* 可选：给上方留点间距 */
}

.submit {
    display: inline-block;
    padding: 4px 10px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: none;
    outline: none;
    background-color: #0c0c0c;
    color: #ffffff;
    border-radius: 0px;
    transition: all 0.3s ease;
}

/* 鼠标悬停状态 (Hover) */
.submit:hover {
    background-color: #ff0000;    /* 稍微深一点的绿色 */
    transform: translateY(-2px);  /* 向上移动2像素，产生“浮起”感 */
}

/* 鼠标按下状态 (Active) */
.submit:active {
    transform: translateY(1px);   /* 向下移动1像素，产生“按下”感 */
}



/* 输入框背景 */
.full-bg-input {
   background-color: rgba(255, 255, 255, 0.8);
  padding: 10px; /* 内边距，防止文字贴边 */
  box-sizing: border-box; /* 确保padding不撑大宽度 */
  
  /* 核心代码 */
  background-image: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)),url('../img/plbj.jpg');/*https://i02piccdn.sogoucdn.com/32d2082bc4197d98*/

  background-size: cover; /* 图片覆盖整个输入框 */
  background-position: center; /* 图片居中 */
  background-repeat: no-repeat; /* 不重复 */
  
  /* 可选：为了文字更清晰，可以加一点半透明底色 */
  /* background-color: rgba(255, 255, 255, 0.8); */ 
}
