:root {
        --bg: #da634b;
        --text: #333;
        --gap: 1em;
        --card: #fff;
        --text-meta:rgba(160, 200, 240, 0.6);
        --text-p1:#333;
        --card2: rgba(103, 194, 58, 0.2);
        --card3: rgba(28, 208, 253, 0.2);
    --block: #f1f2f3;
  --block-border: #e3e5e8;
  --block-hover: #e9eaec;
    --fsp: 13px;
    --card4: rgb(0, 191, 255, 0.3);
  --card5: rgba(215, 245, 255, 0.2);
    --accent-color: #42b983;
    --level-colors: #2c3e50, #34495e, #7f8c8d, #95a5a6, #bdc3c7, #ecf0f1;
    --nav-height: 60px;
    }
    
    

   *{
   transition: all 0.2s; /* 增加0.1秒延迟 */
   
   } 
    

* { -webkit-tap-highlight-color: transparent;}

    /* 基础样式 */
    * {
        margin: 0;
        box-sizing: border-box;
font-family: serif, "LXGW WenKai", "Droid Serif", Georgia, "Times New Roman", "PingFang SC", "Hiragino Sans GB", "Source Han Sans CN", "WenQuanYi Micro Hei","Microsoft Yahei", serif, system-ui;
    text-decoration: none;
    }

    body {
        font: 12px/1.5 'Segoe UI', sans-serif;
        background: var(--bg);
            color: var(--text);
        padding: 8px;
        transition: background-color 0.2s ease-in-out;
        
        
    }



    /* 通用容器 */
    .category-group,
    .search-group,
    .header-group {
        margin: 8px 0;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        transition: background 0.2s 0.1s; /* 增加0.1秒延迟 */
    }

footer {
text-align: center;
}


@media (min-width: 768px) { /* 断点可自定义（如1024px） */
  .category-group,
  .search-group,
  .header-group {
    width: 100%;          
    max-width: 40%;      
    margin-left: auto; 
    margin-right: auto; 
    box-sizing: border-box; 
  }
}



    /* 标题栏 */
    .header-group {
        padding: 8px 12px;
        display: grid;
        grid-template-columns: auto 1fr;
        align-items: center;
        gap: 1em;
    }

    .site-title {
        font-size: 18px;
        font-weight: 600;
        color: #007bff;
        white-space: nowrap;
    }

    /* 分类导航 */
    .category-header {
        display: grid;
        grid-template-columns: auto 1fr;
        align-items: center;
        gap: var(--gap);
        padding: 6px 8px;
        border-bottom: 1px solid var(--text-meta);
    }

    .main-category {
        padding-left: 4px;
        font-weight: bold;
font-size: 16px;
        white-space: nowrap;
    }

    .main-category::after {
        content: '';
        margin-left: 0em;
        color: #999;
    }


.main-category {  
position: relative;  
display: inline-block;  
padding: 0 4px 2px;  
z-index: 1;
}

.main-category::before {  
content: '';  
position: absolute;  
bottom: 0;  
left: -2px;  
right: -2px;  
height: 60%;  
background:     linear-gradient(      172deg,      rgba(255,215,0,0.25) 10%,      rgba(255,195,0,0.45) 40%,      rgba(255,225,0,0.2) 90%    ),    radial-gradient(      circle at 50% 100%,      rgba(255,225,0,0.4) 15%,      transparent 40%    );  border-radius: 3px 4px 8px 5px/ 0 0 12px 8px;  filter: blur(2px);  mix-blend-mode: multiply;  box-shadow:     inset 0 -2px 4px rgba(255,215,0,0.2),    0 4px 6px -2px rgba(255,200,0,0.3);  
z-index: -1;
}


    /* 标签通用容器 */
    .subcategory-tabs,
    .search-engine-tabs,
    .header-tabs {
        display: flex;
        gap: 4px;
        overflow-x: auto;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        padding: 4px;
    }

    /* 分类标签 */
    .sub-tab {
        padding: 2px 6px;
        border-radius: 4px;
        background: #f0f0f0;
        cursor: pointer;
        white-space: nowrap;
        flex-shrink: 0;
        transition: all 0.2s ease;
    }

    /* 搜索标签 */
    .engine-tab {
        padding: 2px 6px;
        border-radius: 4px;
        background: #f0f0f0;
        cursor: pointer;
        white-space: nowrap;
        flex-shrink: 0;
        transition: all 0.2s ease;
    }

    /* 标题栏标签 */
    .header-tab {
        padding: 2px 6px;
        border-radius: 4px;
        background: #f0f0f0;
        cursor: pointer;
        white-space: nowrap;
        flex-shrink: 0;
        transition: all 0.2s ease;
        border: 1px solid transparent;
    }

    /* 激活状态（保持独立） */
    .sub-tab.active {
        background: var(--bg);
        color: #fff;
        box-shadow: 0 2px 3px rgba(0,0,0,0.1);
    }

    .engine-tab.active {
        background: var(--bg);
        color: #fff;
        box-shadow: 0 2px 3px rgba(0,0,0,0.1);
    }

    .content-grid.active {
        display: grid;
    }

    /* 内容区 */
    .content-grid {
        display: none;
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 4px;
        padding: 4px;
        animation: fadeIn 0.3s ease-out;
    }

    /* 链接项 */
    .link-item {
        border: .1px solid #e0e0e0;
        background: #f8f9fa;
        padding: 4px;
        border-radius: 4px;
        text-align: center;
        text-decoration: none;
        transition: color .5s,background-color .5s;
        color: var(--text);
        font-weight: bold;
    }

    /* 搜索框 */
    .search-box {
        display: flex;
        gap: 6px;
        padding: 8px;
        
    }

    .search-input {
        flex: 1;
        padding: 8px 12px;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        background: #f0f0f0;
        font-size: 14px;
        outline: none;
        transition: all 0.2s ease;
    }

    /* 交互状态 */
    .sub-tab:hover {
        transform: scale(0.95);
    }

    .link-item:hover {
        color: #fff;
        border-color: #FD6EA3;
        background: #FD6EA3;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        z-index: 1;
    }


 .link-item:hover span{
color: #fff;
}


    .search-input:focus {
        border-color: #90caf9;
    }

    /* 滚动条 */
    ::-webkit-scrollbar {
        height: 4px;
        background: transparent;
    }

    ::-webkit-scrollbar-thumb {
        background: #bdbdbd;
        border-radius: 2px;
    }

    /* 动画 */
    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(5px); }
        to { opacity: 1; transform: translateY(0); }
    }

    /* 黑暗模式 */
    [data-theme="dark"] {
        --bg: #000;
        --text: #e0e0e0;
        --card: #373d43;
        --text-p1: rgba(160, 200, 240, 0.6);
        --block: #26292c;
  --block-border: #383d42;
  --block-hover: #2f3337;
    }

    [data-theme="dark"] .category-group,
    [data-theme="dark"] .search-group,
    [data-theme="dark"] .header-group {
        background: var(--card);
        border-color: #555 !important;
        
    }

    [data-theme="dark"] .sub-tab,
    [data-theme="dark"] .engine-tab,
    [data-theme="dark"] .header-tab,
    [data-theme="dark"] pre
     {
        background: #616161;
        color: #fff;
    }

    [data-theme="dark"] .sub-tab.active,
    [data-theme="dark"] .engine-tab.active {
        background: #007bff;
        color: white !important;
    }


    [data-theme="dark"] .link-item {
        background: #37474F;
        border-color: #546E7A;
    }

    [data-theme="dark"] .link-item:hover {
        background: #546E7A;
        border-color: #90caf9;
    }

    [data-theme="dark"] .search-input {
        background: #2d2d2d;
        border-color: #555 !important;
        color: #fff;
    }

    /* 移动端适配 */
    @media (max-width: 375px) {
        .link-item { font-size: 11px;
         }
    }



/* 文章列表 */
.article-list {
    display: none;
    padding: 6px 8px;
    animation: fadeIn 0.3s ease-out;
}

.article-list.active {
    display: block;
}

.article-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px;
    margin: 4px 0;
    border-radius: 6px;
    color: var(--text);
    text-decoration: none;
    transition: background 0.2s ease;
}

.article-item:hover {
    background: rgba(0,123,255,0.08);
}

.article-item .time {
    font-size: 11px;
    color: #666;
    min-width: 42px;
    font-family: monospace;
}

.article-item .title {
    font-size: 13px;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 黑暗模式适配 */
[data-theme="dark"] .article-item {
    background: transparent;
}

[data-theme="dark"] .article-item:hover {
    background: rgba(255,255,255,0.05);
}

[data-theme="dark"] .article-item .time {
    color: #9e9e9e;
}

/* 移动端优化 */
@media (max-width: 375px) {
    .article-item {
        gap: 8px;
        padding: 6px;
    }
    
    .article-item .time {
        font-size: 10px;
        min-width: 38px;
    }
    
    .article-item .title {
        font-size: 12px;
    }
}


/* 添加至CSS文件 */

/* 文字广告 */
.ad-text-list {
    display: none;
    padding: 8px;
    gap: 6px;
}

.ad-text-list.active {
    display: grid;
}

.ad-text-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border-radius: 6px;
    background: #f8f9fa;
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s ease;
}

.ad-text-item:hover {
    background: #e9ecef;
    transform: translateX(4px);
}

.ad-badge {
    flex-shrink: 0;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    background: #007bff;
    color: white;
}

.ad-badge[data-badge="NEW"] {
    background: #28a745;
}

.ad-badge[data-badge="限时"] {
    background: #dc3545;
}

.ad-content h3 {
    font-size: 13px;
    margin-bottom: 2px;
}

.ad-content p {
    font-size: 11px;
    color: #666;
    opacity: 0.9;
    line-height: 1.3;
}

/* 黑暗模式适配 */
[data-theme="dark"] .ad-text-item {
    background: #37474F;
}

[data-theme="dark"] .ad-content p {
    color: #bdbdbd;
}





/* 移动端优化 */
@media (max-width: 375px) {
    .swiper-container {
        height: 120px;
    }

    .ad-text-item {
        padding: 8px;
    }

    .ad-content h3 {
        font-size: 12px;
    }
}

.color-red {color: #f00;}





/* 完全继承主页样式 */
.image-link-item {
    /* 保持原有链接块尺寸 */
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 4px;
    text-decoration: none;
    /* 新增图片布局 */
    display: block;
    text-align: center;
}


.image-box {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
   
}

.image-link-item span {
    display: block;
    font-size: 12px;
    color: #333;
    margin-top: 4px;
    padding: 0 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 黑暗模式适配 */
[data-theme="dark"] .image-box {
    background: #373d43;
}
[data-theme="dark"] .image-link-item span {
    color: #e2e8f0;
}

/* 图片链接悬停效果 */
.image-link-item {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-link-item:hover {
    /* 保持原有链接特效 */
    color: var(--text);
    border-color: #ff1493;
    
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    z-index: 1;
}

/* 图片微缩放动画 */
.image-box {
    transition: transform 0.2s ease;
}

.image-link-item:hover .image-box {
    transform: scale(0.98);
}

/* 文字颜色保持 */
.image-link-item:hover span {
    color: var(--text);
}

/* 黑暗模式适配 */
[data-theme="dark"] .image-link-item:hover {
    border-color: #ff1493;
    color: var(--text);
}

/* 带图标链接样式 */
.icon-link-item {
    /* 保持原有链接基础样式 */
    border: 1px solid #e0e0e0;
    background: #f8f9fa;
    padding: 4px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    /* 新增图标布局 */
    display: flex;
    align-items: center;
    gap: 4px;
}

.link-icon {
    width: 16px;  /* 与原文字高度匹配 */
    height: 16px;
    object-fit: contain;
    margin-left: 2px;
border-radius: 4px;
}

.icon-link-item span {
    font-size: 12px;  /* 保持原有文字尺寸 */
    color: var(--text);
    padding-right: 2px;
    
}

/* 保持原有悬停效果 */
.icon-link-item:hover {
    color: #fff;   
    border-color: #FD6EA3;
    background: #FD6EA3;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.icon-link-item:hover span {
color: #fff;
}

/* 暗色模式适配 */
[data-theme="dark"] .icon-link-item {
    background: #2d3748;
    border-color: #475569;
}

[data-theme="dark"] .icon-link-item span {
    color: #e2e8f0;
}

[data-theme="dark"] .icon-link-item:hover {

border-color: #FD6EA3;
    background: #FD6EA3;
}


[data-theme="dark"] .icon-link-item:hover span{
color: #fff;
}




/* 强制显示内容网格 */
.content-grid.always-show {
    display: grid !important; 
}





/* 分类项样式 */
.category-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.toggle-icon {
    transition: transform 0.2s;
}

.category-title.active .toggle-icon {
    transform: rotate(90deg);
}

.sub-category {
    display: none;
    padding: 8px 16px;
}

.sub-category.active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 暗色模式适配 */
[data-theme="dark"] .sidebar {
    background: #373d43;
    box-shadow: 2px 0 8px rgba(255,255,255,0.1);
    
}

[data-theme="dark"] .category-title {
    border-color: #555;
}





/* 侧边栏核心样式 */
.sidebar {
    position: fixed;
    left: -280px;
    top: 0;
    bottom: 0;
    width: 280px;
    background: #fff;
    z-index: 1001;
    transition: transform 0.2s ease-out;
    box-shadow: 2px 0 8px rgba(0,0,0,0.1);
}

.sidebar.active {
    transform: translateX(280px);
}

.sidebar-toggle {
    position: fixed;
    right: 10px;
    bottom: 30px;
    z-index: 1002;
    padding: 8px 12px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.sidebar-mask {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.sidebar-mask.active {
    opacity: 1;
    pointer-events: auto;
}








/* 详情页新增样式 */
    .detail-container { padding: 4px; }
    .breadcrumb-nav {
        display: flex; gap: 4px; padding: 3px 4px;
        font-size: 12px; color: #666;
    }
    .breadcrumb-nav a { 
        color: #007bff; text-decoration: none;
        transition: opacity 0.2s;
    }
    .breadcrumb-nav a:hover { opacity: 0.8; }
    


/* 网站详情布局 */
    .detail-content { 
        display: flex; 
        gap: 8px; 
        padding: 12px;
        margin-top: 4px; 
    }
    .screenshot {
        width: 40%; min-width: 280px; border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    .meta-info { 
        flex: 1; display: grid; gap: 8px;
        align-content: start; 
    }
    .site-title { 
        font-size: 24px; font-weight: 600;
        margin-bottom: 4px; 
    }


.stats { 
        display: flex; gap: 16px; font-size: 13px;
        color: #666; margin: 8px 0; 
    }
    .tags { 
        display: flex; gap: 6px; flex-wrap: wrap;
        margin: 3px 0; 
    }
    .tag {
        background: #f0f0f0; padding: 4px 8px;
        border-radius: 4px; font-size: 12px;
    }

 
/* 标签基础样式 */
.tag {
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    color: #333;
    transition: all 0.2s ease;
}


.tags a{
margin: 0.3em 0;
padding: 1px 1px;
    border-radius: 4px;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
background: rgba(30, 205, 151, 0.08);
    color: #1ECD97;
    border: 1px solid rgba(30, 205, 151, 0.15);
}


[data-theme="dark"] .tag {
    background: #4a525a;
    color: #e0e0e0;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.2);
}

[data-theme="dark"] .tag:hover {
    background: #5a636b;
    color: #fff;
}




.article-content a:not(.tags a) {  
text-decoration: none; 
 box-shadow: inset 0 -0.07em 0 rgba(33, 150, 243, 1);  color: rgba(33, 150, 243, 1);  transition: box-shadow 0.3s ease; 
}

.article-content a:not(.tags a):hover {
box-shadow: inset 0 -1.5em 0 rgba(33, 150, 243, 0.2)!important; 
color: rgba(33, 150, 243, 1);
border-radius: 4px;
transition: transform 0.2s all;
}



.article-content p {
font-size: 14px;
line-height: 2;
letter-spacing: 0.02em;
margin: 0.3em 0;
}



.article-content img:not(.emoji-inline) {
  border-radius: 6px;
  transition: all 0.2s!important;
  max-width: 100%;
  height: auto;
background: transparent!important;
  display: block;     /* 转为块级元素 */
  margin: 0 auto;  
}


.article-content del {
  text-decoration: line-through; /* 确保显示删除线 */
  text-decoration-color: #ff0000; /* 红色删除线 */
  color: inherit; /* 保持文字原色 */
}





/* 基础行内表情样式 */
.emoji-inline, 
.OwO-item {
  display: inline-block !important;
  vertical-align: middle !important;
  width: 1.5em !important;
  height: 1.5em !important;
  margin: 0 0.1em !important;
  border: none !important;
  box-shadow: none !important;
  transition: transform 0.2s ease;
}

/* 表情悬停动效 */
.emoji-inline:hover,
.OwO-item:hover {
  transform: scale(1.2);
  cursor: pointer;
}

/* OwO表情容器适配 */
.OwO-container {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* 暗色模式适配 */
@media (prefers-color-scheme: dark) {
  .emoji-inline {
    filter: brightness(0.9);
  }
}

/* 移动端优化 */
@media (max-width: 768px) {
  .emoji-inline {
    width: 1.8em !important;
    height: auto !important;
  }
}


/* 核心样式 */
.owo-panel {
    display: none;
    position: flex;
    bottom: 8px;
    left: 0;
    background: var(--card);
    border: 1px solid var(--card3);
    border-radius: 6px;
    padding: 6px;
    width: auto;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 999;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.owo-item {
    cursor: pointer;
    transition: transform 0.1s;
}

.owo-item:hover {
    transform: scale(1.08);
}

.owo-item img {
    width: 100%;
    height: auto;
    border-radius: 3px;
    border: none;
}

.owo-empty {
    padding: 10px;
    color: #666;
    text-align: center;
}

@media (max-width: 480px) {
    .owo-panel {
        width: 200px;
        grid-template-columns: repeat(6, 1fr);
    }
}



/* 分页器样式 */
.page-navigator {
    display: flex;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 8px 0;
    justify-content: center;
}

.page-navigator li {
    border-radius: 4px;
    transition: all 0.2s ease;
}

.page-navigator a {
    display: block;
    min-width: 32px;
    padding: 2px 4px;
    text-decoration: none;
    color: var(--text);
    background: #f0f0f0;
    border-radius: 6px;
    text-align: center;
    transition: all 0.2s ease;
}

/* 当前页样式 */
.page-navigator .current a {
    background: var(--bg);
    color: #fff;
    box-shadow: 0 2px 3px rgba(0,0,0,0.1);
    cursor: default;
}

/* 下一页按钮 */
.page-navigator .next a {
    background: #e9ecef;
    font-weight: 700;
}

/* 悬停效果 */
.page-navigator li:not(.current):hover {
    transform: translateY(-1px);
}

.page-navigator li:not(.current):hover a {
    background: #d0d0d0;
}

/* 黑暗模式适配 */
[data-theme="dark"] .page-navigator a, [data-theme="dark"] #comments input, [data-theme="dark"] #comments textarea {
    background: #616161;
    color: #e0e0e0;
}

[data-theme="dark"] .page-navigator .current a {
    background: var(--bg);
}

[data-theme="dark"] .next a {
    background: #616161;
}

[data-theme="dark"] .page-navigator li:not(.current):hover a {
    background: #757575;
}

/* 响应式优化 */
@media (max-width: 480px) {
    .page-navigator a {
        padding: 6px 8px;
        min-width: 28px;
    }
}


b, strong {
  background: linear-gradient(0, rgba(33, 150, 243, 0.5), rgba(33, 150, 243, 0.5)) no-repeat center bottom / 100% 40%;
}

pre { 
  background: #f0f0f0;
  font-family: Menlo, Monaco, Consolas, "Lucida Console", "Courier New", monospace;
  font-size: .92857em;
}

code { 
padding: 1px 1px; 
color: #B94A48; 
border-radius: 4px;
border: .1px solid rgba(30, 205, 151, 0.15);
background: rgba(30, 205, 151, 0.08);
}

pre {
  padding: 8px;
  border-radius: 8px;
  overflow: auto;
  max-height: 400px;
  border: 1px solid rgba(30, 205, 151, 0.15);
  background: rgba(30, 205, 151, 0.08);
}


[data-theme="dark"] pre{
  background: rgba(30, 205, 151, 0.1);
}


pre code {
  padding: 1px;
  border: none;
  color: var(--text);
  background: none;
}

blockquote {
  margin: 1em 0;
  padding-left: 1em;
  border-left: 4px solid var(--text);
  color: #778899;
  background: transparent;

}

table {
  border-collapse: collapse;
  overflow: auto;
  display: block;
  margin: 1rem 0;
  max-width: 100%;
  vertical-align: text-top;
  --fsp: calc(14px - 2px);
  font-size: var(--fsp);
  transition: background-color .5s,border-color .5s;
}
table th {
  background: var(--block);
  transition: color .4s,background-color .4s;
}
table td,
table th {
  padding: 0.5em .5em;
  border: 1px solid var(--text-meta);
  line-height: 1.5;
}
/* table tr {
word-break: keep-all;
white-space: nowrap;
} */
table tr:hover {
  background: var(--block);
}

table a {
box-shadow: none!important; 
}


.article-content h1, h2, h3, h4, h5, h6 {
  font-family: serif, "LXGW WenKai", "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "WenQuanYi Micro Hei","Microsoft Yahei", sans-serif, system-ui;
  font-weight: bolder;
}

.article-content h1{
text-align: center;
overflow: auto;
}


input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
textarea {
  padding: 8px;
  width: 100%;
  border-radius: 8px;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  background: #f0f0f0;
  color: var(--text);
  outline: none;
  border-color: var(--text-meta);
}
textarea {
  resize: vertical;
  max-width: 100%;
 
}

#comments input:focus, textarea:focus {
border-color: #90caf9;
}



.typewriter {
            overflow: hidden;
            border-right: .15em solid orange;
            white-space: nowrap;
            margin: 0 auto;
            letter-spacing: .15em;
            animation: 
                typing 3s steps(4, end) infinite,
                blink-caret .75s step-end infinite;
        }

        @keyframes typing {
            0% { width: 0; }
            50.6% { width: 100%; } /* 3.5s / 5.5s ≈ 63.6% */
            100% { width: 100%; }
        }

        @keyframes blink-caret {
            from, to { border-color: transparent }
            50% { border-color: orange; }
        }




#comments ol {
padding-right: 8px;
padding-left: 24px;
}



/* Comment reply */
.comment-list .respond {
  margin-top: 8px;
  border-top: 1px solid var(--text-meta);
  max-width: 100%;
}
.respond .cancel-comment-reply {
  float: right;
  margin-right: 8px;
  margin-top: 8px;
  margin-bottom: 4px;
  font-size: .92857em;
  
}


.respond .cancel-comment-reply a {
text-decoration: none;
}


#comment-form label {
  display: block;
  margin-bottom: .5em;
  font-weight: bold;
}
#comment-form .required:after {
  content: " *";
  color: #C00;
}


#comment-form, #response, #comments h3  {
padding: 6px 8px;
}


.login_reply2view {
    background-color: #f8f9fa;
    padding: 10px;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    font-size: 14px;
    color: #6c757d;
}

.reply2view {
    background-color: rgba(215, 245, 255, 0.1);
    margin: 2em auto;
    padding: 1em;
    border: 1px solid var(--text-meta);
    border-radius: 10px;
    font-size: 14px;
    color: var(--text); 
    position: relative;
    box-shadow: 0 8px 30px rgba(255, 182, 193, 0.2);
    backdrop-filter: blur(2px);
}



.reply2view.open::before {
    content: "✓ 已回复解锁内容"; /* 提示文字 */
    position: absolute;
    top: -20px;
    left: 10px;
    font-size: 12px;
    font-weight: bold;
    color: rgba(103, 194, 58, 1);
    background: rgba(103, 194, 58, 0.1);
    padding: 4px 8px;
    border-radius: 3px;
    border: 1px solid rgba(103, 194, 58, 1);
    z-index: 1;
}



.reply2view.open:hover::before {
    box-shadow: 0 2px 12px 0 rgba(103,194,58,.4);
}


.reply2view.lock::before {
    content: "💢 请评论后解锁"; /* 提示文字 */
    position: absolute;
    top: -20px;
    left: 10px;
    font-size: 12px;
    font-weight: bold;
    color: rgba(255, 0, 0, 1);
    background: rgba(255, 0, 0, 0.1);
    padding: 4px 8px;
    border-radius: 3px;
    border: 1px solid rgba(255, 0, 0, 1);
    z-index: 1;
}

.reply2view.lock:hover::before {
    box-shadow: 0 2px 12px 0 rgba(255, 0, 0, 0.4);
}



.xm-mm {
    /* max-width: 360px; */
    margin: 2rem auto;
    padding: 2rem;
    background: var(--card);
    border: 1px solid rgba(160, 200, 240, 0.6);
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(255, 182, 193, 0.2);
}

.xm-unlocked, .xm-mm-error {
    border-radius: 10px;
    padding: 1rem;
    background: rgba(215, 245, 255, 0.1);
    border-color: rgba(160, 200, 240, 0.6);
    backdrop-filter: blur(2px);
    position: relative;
}

.xm-mm.xm-unlocked::before {
    content: "✓ 已解锁内容"; /* 提示文字 */
    position: absolute;
    top: -20px;
    left: 10px;
    font-size: 12px;
    font-weight: bold;
    color: rgba(103, 194, 58, 1);
    background: rgba(103, 194, 58, 0.1);
    padding: 4px 8px;
    border-radius: 3px;
    border: 1px solid rgba(103, 194, 58, 1);
    z-index: 1;
}

.xm-mm.xm-unlocked:hover::before {
    box-shadow: 0 2px 12px 0 rgba(103,194,58,.4);
}

.xm-mm-error::before {
    content: "❌️ 解锁失败！"; /* 提示文字 */
    position: absolute;
    top: -20px;
    left: 10px;
    font-size: 12px;
    font-weight: bold;
    color: rgba(255, 0, 0, 1);
    background: rgba(255, 0, 0, 0.1);
    padding: 4px 8px;
    border-radius: 3px;
    border: 1px solid rgba(255, 0, 0, 1);
    z-index: 1;
}

.xm-mm-error:hover::before {
    box-shadow: 0 2px 12px 0 rgba(255, 0, 0, 0.4);
}

.xm-mm-input {
    margin-bottom: 1rem;
    position: relative;
}

.xm-mm-pass {
    width: 100%;
    padding: 15px 25px;
    border: 2px solid #ffb6c1;
    border-radius: 15px;
    font-size: 16px;
    color: #ff69b4;
    transition: all 0.3s ease;
    background: var(--card)!important;
}

.xm-mm-pass:focus {
    outline: none;
    border-color: #ff69b4;
    box-shadow: 0 0 15px rgba(255, 105, 180, 0.2);
    transform: scale(1.02);
}

.xm-mm-pass::placeholder {
    color: #ffc0cb;
    font-style: italic;
}

.xm-mm-button {
    text-align: center;
}

.xm-mm-submit {
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
    color: white;
    padding: 12px 35px;
    border: none;
    border-radius: 25px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.xm-mm-submit:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 5px 20px rgba(255, 105, 180, 0.4);
}

.xm-mm-submit::before {
    content: '♥';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: all 0.3s ease;
}

.xm-mm-submit:hover::before {
    left: 15px;
    opacity: 1;
}

#comments ol {
padding-right: 8px;
padding-left: 24px;
}

.tag-plugin.timeline{position:relative;padding-left:6px}
/* .tag-plugin.timeline:before{content:'';position:absolute;z-index:0;background:var(--block-hover);width:4px;left:0;border-radius:8px;top:.5rem;bottom:0} */
.tag-plugin.timeline:has(.loading-wrap){padding-left:0}
.tag-plugin.timeline:has(.loading-wrap):before{display:none}
.tag-plugin.timeline .timenode{position:relative;display:flex;flex-direction:column;align-items:flex-start;box-sizing:border-box;max-width:100%}
.tag-plugin.timeline .timenode>.body,.tag-plugin.timeline .timenode>.header{box-sizing:border-box;max-width:100%}
.tag-plugin.timeline .timenode[highlight] .header:before{background:#1cd0fd}
.tag-plugin.timeline .timenode+.timenode{margin-top:1rem}
.tag-plugin.timeline .timenode:hover .header span{color:var(--text-p1)}
.tag-plugin.timeline .timenode:hover .header:before{background:#1cd0fd;height:16px;top:calc(50% - .5 * 16px);transform:scale(1)}
.tag-plugin.timeline .timenode .header{display:flex;align-items:center;position:relative;margin:.25rem 0;font-size:.8125rem}
.tag-plugin.timeline .timenode .header a.user-info span{font-weight:600}
.tag-plugin.timeline .timenode .header .user-info{display:flex;align-items:center;font-size:.8125rem;font-weight:500;color:var(--text-p1);margin-right:8px;line-height:1;border-radius:16px}
.tag-plugin.timeline .timenode .header .user-info img{background:#fff;height:16px;border-radius:16px;display:inline;margin:0 4px 0 0;object-fit:contain}
.tag-plugin.timeline .timenode .header .user-info span a {
text-decoration: none;
color: var(--text);
}

.tag-plugin.timeline .timenode .header .user-info span a:hover {
color: #FF4500;
}

.tag-plugin.timeline .timenode .header .cm a, .tag-plugin.timeline span a {
text-decoration: none;
color: #FF4500;
}

.tag-plugin.timeline .timenode .header .cm a:hover, .tag-plugin.timeline span:hover a {
color: #1cd0fd;
}

.tag-plugin.timeline .timenode .body {
font-size: 14px;
text-decoration: none;
 
}

.tag-plugin.timeline .timenode .body a {
font-weight: bold;
text-decoration: none;
 
}

.tag-plugin.timeline .timenode .body a:hover {
text-decoration: none;
color: #FF4500;
}

.tag-plugin.timeline .timenode .header,.tag-plugin.timeline .timenode .header span{font-weight:500;color:var(--text-p3);line-height:1}
.tag-plugin.timeline .timenode .header:before{content:'';position:absolute;left:-16px;width:4px;border-radius:12px;height:4px;top:calc(50% - .5 * 4px);background:var(--text-meta);transition:background .2s ease-out,height .2s ease-out,top .2s ease-out,transform .2s ease-out;-moz-transition:background .2s ease-out,height .2s ease-out,top .2s ease-out,transform .2s ease-out;-webkit-transition:background .2s ease-out,height .2s ease-out,top .2s ease-out,transform .2s ease-out;-o-transition:background .2s ease-out,height .2s ease-out,top .2s ease-out,transform .2s ease-out;transform:scale(2)}
.tag-plugin.timeline .body{background:var(--card5);border-radius:8px;border-top-left-radius:2px;padding:.1rem 1rem;margin-top:4px;box-shadow:0 1px 4px 0 rgba(0,0,0,.3),0 2px 8px 0 rgba(0,0,0,.03)}
.tag-plugin.timeline .comment-by-author .body{background:var(--card4);}
.tag-plugin.timeline .body p{--fsp:calc(17px - 1px)}
.tag-plugin.timeline .body p img{
max-width: 100%;
display:block;
border-radius:8px;
margin: 4px 0; 
display:block;
}
.tag-plugin.timeline .body:empty{display:none}
.tag-plugin.timeline .body .highlight,.tag-plugin.timeline .body .tag-plugin,.tag-plugin.timeline .body ol,.tag-plugin.timeline .body p,.tag-plugin.timeline .body ul{margin:.5rem 0}.tag-plugin.timeline .body .tag-plugin.copy{width:240px}

.tag-plugin.timeline .body blockquote{background:0 0;border-radius:0;padding:0 .5rem;margin:.75rem 0}.tag-plugin.timeline .body blockquote p{--fsp:calc(17px - 2px);margin:.25rem}.tag-plugin.timeline .body{line-height:1.5}.tag-plugin.timeline .body h1,.tag-plugin.timeline .body h2{font-size:1.25rem;margin:1rem 0;line-height:1.2}.tag-plugin.timeline .body h3,.tag-plugin.timeline .body h4{font-size:1rem;margin:.75rem 0;line-height:1.2}.tag-plugin.timeline .body h5,.tag-plugin.timeline .body h6{font-size:.9375rem;margin:.5rem 0;line-height:1.2}
.timenode span.cm , .cm {
      display: none;
    }
  .timenode:hover span.cm , .cm {
      display: block;
  }


#searchInput {
      width: 50%;
      padding: 12px 20px;
      box-sizing: border-box;
      border: 2px solid #808080;
      border-radius: 25px;
      font-size: 16px;
      background-color: white;
      background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-search" viewBox="0 0 16 16"><path d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z"/></svg>');
      background-repeat: no-repeat;
      background-position: 95% center;
      transition: border-color 0.3s ease, width 0.3s ease;
      margin: 0 auto;
      display: block;
    }

    #searchInput:focus,
    #searchInput:active {
      outline: none;
      border-color: #007BFF;
      box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
    }

    #resultInfo {
      margin-top: 10px;
      font-size: 14px;
      display: none;
      text-align: center;
      font-weight: bold;
    }


/* CSS */
/* .top-btn {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background: var(--text);
  color: red;
  font-size: 24px;
  font-weight: bolder;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 9999;
}

.top-btn.show {
  opacity: 1;
}

.top-btn:hover {
  background: var(--text);
} */


.xoxo_fn_totop.active {
	        -webkit-transform: translateY(0);
	        -ms-transform: translateY(0);
	        transform: translateY(0);
	    }
	    @media (max-width: 1040px) {
	       .xoxo_fn_totop {
	            right: 30px;
	            bottom: 36px;
	        }
	    }
	   .xoxo_fn_totop {
	        position: fixed;
	        z-index: 15;
	        bottom: 46px;
	        right: 40px;
	        text-decoration: none;
	        width: 50px;
	        height: 50px;
	        border: 4px solid #000;
	        border-radius: 20px;
	        background-color: #fff;
	        display: -webkit-flex;
	        display: -moz-flex;
	        display: -ms-flex;
	        display: -o-flex;
	        display: -webkit-box;
	        display: -ms-flexbox;
	        display: flex;
	        -ms-align-items: center;
	        -webkit-box-align: center;
	        -webkit-align-items: center;
	        -ms-flex-align: center;
	        align-items: center;
	        -webkit-box-pack: center;
	        -webkit-justify-content: center;
	        -ms-flex-pack: center;
	        justify-content: center;
	        cursor: pointer;
	        -webkit-transform: translateY(120px);
	        -ms-transform: translateY(120px);
	        transform: translateY(120px);
	    }
	   .xoxo_fn_totop:after {
	        content: "";
	        position: absolute;
	        top: 0;
	        left: -4px;
	        right: -4px;
	        bottom: -10px;
	        z-index: -1;
	        border-radius: 0 0 25px 25px;
	        border-bottom: 10px solid #000;
	    }
	   .xoxo_fn_totop svg {
	        width: 20px;
	        height: 20px;
	        z-index: 2; /* 确保箭头图标的 z-index 高于进度条 */
	    }
	    /* 进度条的样式 */
	   .progress_wrapper {
	        position: absolute;
	        bottom: 0;
	        left: 0;
	        width: 100%;
	        height: 100%;
	        border-radius: 16px;
	        overflow: hidden;
	    }
	   .progress {
	        display: block;
	        width: 100%;
	        height: 0%;
	        background-color: #f9d40d; 
	        transition: height 0.5s ease-in-out; 
	        z-index: 1; /* 调整进度条的 z-index，使其位于箭头图标下方 */
       }


/* 目录触发按钮 */
        .toc-trigger {
            position: fixed;
            right: 0;
            bottom: 30%;
            width: 40px;
            height: 40px;
            background: #fff;
            border-radius: 20px 20px 20px 20px;
            box-shadow: -2px 2px 8px rgba(0,0,0,0.1);
            display: grid;
            place-items: center;
            font-size: 20px;
            cursor: pointer;
            z-index: 1000;
            transition: transform 0.3s;
        }

        .toc-trigger:hover {
            transform: translateX(-5px);
        }

        /* 目录容器 */
        .toc-container {
            position: fixed;
            top: 50%;
            right: -300px;
            transform: translateY(-50%);
            width: 260px;
            height: 70vh;
            background: #fff;
            border-radius: 12px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.15);
            transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 999;
            overflow: hidden;
        }

        .toc-container.active {
            right: 20px;
        }

        /* 目录列表 */
        .toc-list {
            padding: 15px 0;
            height: 100%;
            overflow-y: auto;
        }

        .toc-list::-webkit-scrollbar {
            width: 4px;
        }

        .toc-list::-webkit-scrollbar-thumb {
            background: var(--accent-color);
            border-radius: 2px;
        }

        /* 目录项样式 */
        .toc-item {
            position: relative;
            padding: 12px 20px 12px 45px;
            cursor: pointer;
            transition: all 0.2s;
        }

        .toc-item::before {
            content: '';
            position: absolute;
            left: 25px;
            top: 50%;
            transform: translateY(-50%);
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #ddd;
            transition: all 0.3s;
        }

        /* 层级样式 */
        .toc-item[data-level="1"] { color: #2c3e50; font-size: 16px; }
        .toc-item[data-level="2"] { color: #34495e; font-size: 15px; padding-left: 55px; }
        .toc-item[data-level="3"] { color: #7f8c8d; font-size: 14px; padding-left: 65px; }
        .toc-item[data-level="4"] { color: #95a5a6; font-size: 13px; padding-left: 75px; }
        .toc-item[data-level="5"] { color: #bdc3c7; font-size: 12px; padding-left: 85px; }
        .toc-item[data-level="6"] { color: #ecf0f1; font-size: 12px; padding-left: 95px; }

        /* 激活状态 */
        .toc-item.active {
            background: rgba(66, 185, 131, 0.08);
            transform: translateX(-8px);
        }

        .toc-item.active::before {
            background: var(--accent-color);
            box-shadow: 0 0 8px rgba(66, 185, 131, 0.3);
        }

        /* 遮罩层 */
        .toc-mask {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background: rgba(0,0,0,0.3);
            opacity: 0;
            transition: opacity 0.3s;
            pointer-events: none;
            z-index: 998;
        }

        .toc-mask.active {
            opacity: 1;
            pointer-events: all;
        }
