/* post module extracted for per-page loading */

/* 个人修复：定义全局主题变量 */
:root {
  /* 主题色 */
  --spt-primary: #0f5caa;
  --spt-primary-dark: #0a4a8a;
  --spt-primary-rgb: 15, 92, 170;
  --spt-grad: linear-gradient(135deg, #0f5caa 0%, #1a7bd9 100%);
  
  /* 辅助色 */
  --spt-secondary: #6c757d;
  --spt-success: #28a745;
  --spt-danger: #dc3545;
  --spt-warning: #ffc107;
  --spt-info: #17a2b8;
  --spt-light: #f8f9fa;
  --spt-dark: #343a40;
  --spt-muted: #6c757d;
  
  /* 背景色 */
  --surface: #ffffff;
  --surface-soft: #f8f9fa;
  
  /* 文字色 */
  --text-main: #333333;
  --text-secondary: #666666;
}

/* 主内容区样式 */
#wrapper {
        padding: 20px 0;
}



/* 个人修复：修正后代选择器语法，添加空格 */
#main .td {
        padding-left: 1.5625%;
}

@media (min-width: 1025px) {
  /* 全局主体容器（首页等）：限制最大宽度，保持与其他页面一致 */
  /* 个人修复：修正选择器，匹配同时具有id和class的元素 */
  #wrapper.inner {
    width: 100%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
  }
  
  /* 个人修复：修正后代选择器语法，添加空格 */
  #main .td {
    padding-left: 1.5625%;
    padding-right: 0;
  }
  /* 页面模板正文全屏自适应 */
  body.page #main #article .entry {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
  }
}

/* 统一文章页正文样式与标签样式（从 single.php 迁移） */
.entry.style-news { width: 100%; max-width: 850px; margin: 0 auto; text-align: justify; line-height: 1.9; padding: 0 20px; }
.entry.style-news p:first-of-type { font-weight: 600; font-size: 1.1em; margin-bottom: 1.2em; }
.entry.style-news img { display: block; margin: 15px auto; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); max-width: 100%; height: auto; }

.entry.style-image { width: 100%; max-width: 900px; margin: 0 auto; text-align: center; padding: 0 20px; }
.entry.style-image img { display: block; margin: 15px auto; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); max-width: 100%; height: auto; }
.entry.style-image p { text-align: justify; margin: 10px 0; }

.entry.style-poem { width: 100%; max-width: 700px; margin: 0 auto; font-family: "KaiTi","STKaiti","SimSun","Songti SC",serif; text-align: center; line-height: 2.2; letter-spacing: .5px; padding: 0 20px; }
.entry.style-poem p { white-space: pre-line; text-indent: 0; margin: 8px 0; }
.entry.style-poem { background-color: #f8f9fa; border-radius: 10px; padding: 30px 20px; margin: 20px auto; border: 1px solid #e9ecef; }

.entry.style-novel { width: 100%; max-width: 850px; margin: 0 auto; text-align: justify; line-height: 2; padding: 0 20px; }
.entry.style-novel p { text-indent: 2em; margin-bottom: 1em; }
.entry.style-novel { background-color: #fafafa; border-radius: 8px; padding: 20px; margin: 10px auto; }

.entry.style-prose { width: 100%; max-width: 850px; margin: 0 auto; text-align: justify; line-height: 1.95; padding: 0 20px; }
.entry.style-prose p { text-indent: 2em; margin-bottom: 1.1em; }
.entry.style-prose img { display: block; margin: 15px auto; border-radius: 6px; max-width: 100%; height: auto; }

.entry.style-review { width: 100%; max-width: 850px; margin: 0 auto; text-align: justify; line-height: 1.9; padding: 0 20px; }
.entry.style-review p { margin-bottom: 1.2em; }
.entry.style-review h3 { margin-top: 20px; margin-bottom: 10px; color: #333; border-bottom: 1px solid #e9ecef; padding-bottom: 5px; }


/* 旅游类样式 */
.entry.style-travel { width: 100%; max-width: 850px; margin: 0 auto; text-align: justify; line-height: 1.9; padding: 0 20px; }
.entry.style-travel img { display: block; margin: 15px auto; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }

/* 写真摄影类样式 */
.entry.style-photo { width: 100%; max-width: 900px; margin: 0 auto; text-align: center; padding: 0 20px; }
.entry.style-photo img { display: block; margin: 15px auto; border-radius: 8px; max-width: 100%; height: auto; }
.entry.style-photo p { text-align: justify; margin: 10px 0; }

/* 讲解类样式 */
.entry.style-explanation { width: 100%; max-width: 800px; margin: 0 auto; text-align: justify; line-height: 1.9; padding: 0 20px; }
.entry.style-explanation p { margin-bottom: 1.2em; }
.entry.style-explanation ul, .entry.style-explanation ol { margin-left: 2.5em; }

/* 技术类样式 */
.entry.style-tech { width: 100%; max-width: 850px; margin: 0 auto; text-align: justify; line-height: 1.9; padding: 0 20px; }
.entry.style-tech code { background-color: #f5f5f5; padding: 2px 4px; border-radius: 3px; font-family: 'Courier New', monospace; }
.entry.style-tech pre { background-color: #f5f5f5; padding: 15px; border-radius: 5px; overflow-x: auto; margin: 15px 0; }

/* 教程类样式 */
.entry.style-tutorial { width: 100%; max-width: 850px; margin: 0 auto; text-align: justify; line-height: 1.9; padding: 0 20px; }
.entry.style-tutorial h3 { margin-top: 20px; margin-bottom: 10px; color: #333; }
.entry.style-tutorial ul, .entry.style-tutorial ol { margin-left: 2.5em; margin-bottom: 15px; }

/* 指南类样式 */
.entry.style-guide { width: 100%; max-width: 800px; margin: 0 auto; text-align: justify; line-height: 1.9; padding: 0 20px; }
.entry.style-guide p { margin-bottom: 1.2em; }

/* 美食类样式 */
.entry.style-food { width: 100%; max-width: 850px; margin: 0 auto; text-align: justify; line-height: 1.9; padding: 0 20px; }
.entry.style-food img { display: block; margin: 15px auto; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }

/* 健康类样式 */
.entry.style-health { width: 100%; max-width: 800px; margin: 0 auto; text-align: justify; line-height: 1.9; padding: 0 20px; }
.entry.style-health p { margin-bottom: 1.2em; }

/* 娱乐类样式 */
.entry.style-entertainment { width: 100%; max-width: 800px; margin: 0 auto; text-align: justify; line-height: 1.9; padding: 0 20px; }
.entry.style-entertainment img { display: block; margin: 15px auto; border-radius: 8px; }


/* 标题与长词断行保护 */
.entry h1, .entry h2, .entry h3, .entry h4, .entry h5, .entry h6,
#main .boxTitle, .blogItem .title {
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* 默认正文样式（未应用 style-* 标签时） */
.entry:not([class*="style-"]) { text-align: justify; max-width: 800px; margin: 0 auto; padding: 0 20px; }
.entry:not([class*="style-"]) p { text-indent: 2em; }

/* 上一篇/下一篇 导航 */
#postnavi { 
  clear: both;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px;
  width: 100%; box-sizing: border-box; padding: 16px 20px;
  margin: 16px auto 24px;
}
#postnavi .prev, #postnavi .next { margin: 0; float: none; display: block; flex: 0 1 45%; text-align: center; }
@media (max-width: 1024px) {
  #postnavi { padding: 12px 5%; margin: 12px auto 20px; }
  #postnavi .prev, #postnavi .next { flex-basis: 48%; }
  
  /* 移动端文章正文样式 */
  .entry.style-news,
  .entry.style-image,
  .entry.style-poem,
  .entry.style-novel,
  .entry.style-prose,
  .entry.style-review,
  .entry:not([class*="style-"]) {
    max-width: 100%;
    padding: 0 15px;
  }
  
  /* 移动端图片展示样式 */
  .picture li {
    width: 48%;
    padding: 1% 1% 1% 0;
  }
  
  .picture .thumbnail {
    padding-bottom: 75%;
  }
  
  .picture .title {
    font-size: 12px;
    line-height: 1.4em;
  }
  
  /* 移动端轮播图样式 */
  #slides {
    width: 100%;
    padding-right: 0;
  }
  
  /* 移动端首页顶部布局 */
  #hmTop {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  #hmTop .td {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  /* 移动端box容器样式优化 */
  .box {
    padding: 0 !important;
    margin: 0 !important;
  }
  
  /* 移动端广告区域样式优化 */
  .home-ad {
    margin: 0 !important;
    padding: 0 !important;
  }
  
  .home-ad img {
    margin: 0 !important;
    padding: 0 !important;
  }
  
  /* 确保轮播图容器没有多余空间 */
  #slides {
    margin: 0 !important;
    padding: 0 !important;
  }
  
  /* 确保slick-load容器没有多余空间 */
  #slides .slick-load {
    margin: 0 !important;
    padding: 0 !important;
  }
  
  /* 确保轮播项没有多余空间 */
  #slides .item {
    margin: 0 !important;
    padding: 0 !important;
  }
  
  /* 确保轮播链接没有多余空间 */
  #slides .item a {
    margin: 0 !important;
    padding: 0 !important;
    padding-bottom: 60% !important;
    height: auto !important;
    min-height: 0 !important;
  }
  
  /* 移动端轮播图样式优化 */
  #slides {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    height: auto !important;
    min-height: 0 !important;
  }
  
  #slides .slick-load {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  #slides .item {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  #slides .item h2 {
    font-size: 16px !important;
    line-height: 1.5em !important;
    padding: 10px 5% !important;
  }

  #slides .item .excerpt {
    font-size: 12px !important;
    line-height: 1.4em !important;
    padding: 0 5% 10px !important;
    margin: 0 !important;
    color: white !important;
    background: rgba(0, 0, 0, 0.6) !important;
  }
  
  /* 确保加载元素不占据空间 */
  #slides .load {
    display: none !important;
  }
  
  /* 移动端boxTitle样式优化 */
  .boxTitle {
    padding: 12px !important;
    margin-bottom: 0 !important;
    border-bottom: none !important;
  }
  
  /* 移动端最新文章列表样式优化 */
  #latest {
    width: 100% !important;
    padding: 12px !important;
    margin-top: 0 !important;
  }
  
  #latest .boxTitle {
    margin-bottom: 15px !important;
    padding: 0 !important;
    border-bottom: 1px solid #e4e4e4 !important;
  }
  
  #latest .boxTitle h2 {
    font-size: 18px !important;
  }
  
  #latest .list {
    max-height: none !important;
    overflow: visible !important;
  }
  
  #latest .list ul li {
    width: 100% !important;
    float: none !important;
    line-height: 36px !important;
    font-size: 14px !important;
    margin-bottom: 15px !important;
  }
  
  #latest .list ul li time {
    font-size: 12px !important;
    color: #888 !important;
  }
  
  #latest .list ul li a {
    font-size: 14px !important;
    margin-right: 80px !important;
  }
  
  #latest .list ul li .excerpt {
    font-size: 12px !important;
    line-height: 1.5 !important;
    margin-top: 5px !important;
    margin-bottom: 0 !important;
    padding-left: 8px !important;
  }
  

  
  /* 移动端新闻模块样式 */
  .news ul {
    display: block !important;
  }
  
  .news ul .top {
    float: none !important;
    width: 100% !important;
    margin-bottom: 15px !important;
    position: relative !important;
  }
  
  .news ul .top .thumbnail {
    width: 100% !important;
  }
  
  .news ul .top .thumbnail a {
    padding-bottom: 60% !important;
  }
  
  .news ul .top h3 {
    position: absolute !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    font-size: 14px !important;
    line-height: 30px !important;
  }
  
  .news ul .item {
    overflow: hidden !important;
    margin: 0 0 15px 0 !important;
    display: block !important;
  }
  
  .news ul .item .thumbnail {
    float: left !important;
    width: 100px !important;
  }
  
  .news ul .item .info {
    margin-left: 115px !important;
    overflow: hidden !important;
  }
  
  .news ul .item h3 {
    font-size: 14px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 24px !important;
  }
  
  .news ul .item time {
    display: block !important;
    font-size: 12px !important;
    line-height: 2em !important;
    color: #999 !important;
  }
  
  .news ul .item p {
    font-size: 13px !important;
    color: #888 !important;
    line-height: 1.75em !important;
    height: 3.5em !important;
    -webkit-line-clamp: 2 !important;
  }
  
  /* 移动端文章页布局 */
  .table {
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    max-width: 100%;
  }
  
  .table #sidebar {
    order: 2;
    margin-top: 20px;
    padding: 0;
  }
  
  .table #main {
    order: 1;
    padding: 0;
  }
  
  /* 确保文章内容在移动端居中 */
  .entry {
    margin: 0 auto !important;
    padding: 0 15px !important;
  }
  
  /* 移动端广告样式 */
  .listpic.box {
    margin-bottom: 15px;
  }
  
  #sidebar .widget_text.box {
    margin-bottom: 15px;
  }
  
  /* 移动端轮播列表样式 */
  .carousel {
    padding: 12px !important;
  }
  
  .carousel .boxTitle {
    margin-bottom: 15px !important;
    padding: 0 !important;
    border-bottom: 1px solid #e4e4e4 !important;
  }
  
  .carousel .slick-load {
    width: 100% !important;
  }
  
  .carousel .item {
    width: 100% !important;
  }
  
  .carousel .info {
    margin-right: 0 !important;
  }
  
  .carousel .thumbnail {
    margin-bottom: 10px !important;
  }
  
  .carousel .title {
    font-size: 14px !important;
  }
  
  /* 移动端栏目内容样式 */
  .column {
    padding: 12px !important;
  }
  
  .column .list {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 15px !important;
  }
  
  .column .item {
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        padding-right: 0 !important;
        margin-bottom: 20px !important;
  }
  
  .column .item:last-child {
    margin-bottom: 0 !important;
  }
  
  .column .item:nth-child(n+4) {
    padding-top: 0 !important;
  }
  
  .column .first {
    padding: 8px 0 !important;
  }
  
  .column .first .thumbnail {
    width: 100px !important;
  }
  
  .column .first .info {
    margin-left: 115px !important;
  }
  
  .column .li {
    line-height: 30px !important;
  }
} 

/* 轮播容器安全宽度与裁切 */
.carousel, .carousel .slick-list { overflow: hidden; }
.carousel .slick-load { width: 100%; }

#main .boxTitle {
        margin-bottom: 15px;
}

/* 首页顶部布局 */
#hmTop {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        gap: 20px;
}

#hmTop .td {
        flex: 1;
        min-width: 300px;
        vertical-align: top;
}

/* 轮播图样式 */
#slides {
        width: 100%;
        padding-right: 0;
        position: relative;
}

#slides .item a {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        color: #fff;
        background: no-repeat center center;
        background-size: cover;
        padding-bottom: 70%;
        position: relative;
}

#slides .item h2 {
        width: 100%;
        padding: 5px 5%;
        font-size: 14px;
        line-height: 1.875em;
        overflow: hidden;
        text-align: center;
        color: #fff;
        white-space: nowrap;
        text-overflow: ellipsis;
        /* 个人修复：修正颜色语法兼容性，rgb() → rgba() */
        background-color: rgba(0,0,0,0.15);
        font-weight: normal;
        margin: 0;
}

#slides .item .excerpt {
        width: 100%;
        padding: 0 5% 10px;
        font-size: 12px;
        line-height: 1.4em;
        overflow: hidden;
        text-align: center;
        color: #fff;
        /* 个人修复：修正颜色语法兼容性，rgb() → rgba() */
        background-color: rgba(0,0,0,0.15);
        margin: 0;
}

/* 个人修复：删除重复的#slides定义，position:relative已合并到第一个定义 */

#slides .load {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        padding-bottom: 0;
        background-color: transparent;
        z-index: 1;
    }

#slides .slick-load {
        position: relative;
        z-index: 2;
}



/* 最新内容样式 */
#latest {
        overflow: hidden;
}

#latest .list {
        max-height: 416px;
        overflow: hidden;
        -webkit-overflow-scrolling: touch;
}

#latest ul {
        overflow: hidden;
        width: 100%;
        box-sizing: border-box;
}

#latest li {
        font-size: 14px;
        line-height: 32px;
        overflow: hidden;
        float: left;
        width: 49%;
        position: relative;
        box-sizing: border-box;
        margin-right: 2%;
}

#latest li:nth-child(2n) {
        float: right;
        margin-right: 0;
}

#latest li time {
        display: block;
        position: absolute;
        right: 0;
        top: 0;
        color: #888;
        font-size: 12px;
}

#latest li a {
        display: block;
        margin-right: 80px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
}

#latest li .excerpt {
        clear: both;
        margin-top: 1px;
        margin-bottom: 5px;
        font-size: 12px;
        line-height: 1.5;
        color: #666;
        padding-left: 0;
        border-left: none;
        white-space: normal;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
}

/* 内容轮播样式 */
.carousel .boxTitle {
        margin-bottom: 15px;
}

/* Slick轮播样式已移至slick.css */

.carousel .info {
        margin-right: 7.3%;
        overflow: hidden;
}

.carousel .thumbnail {
        margin-bottom: 10px;
}

.carousel .title {
        font-size: 14px;
        line-height: 1.5em;
        font-weight: normal;
        max-height: 3em;
        -webkit-line-clamp: 2;
}

.carousel {
        position: relative;
}

.carousel .load {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        padding-bottom: 0;
        margin-bottom: 0;
        background-color: transparent;
        /* 个人修复：删除重复的position定义，保留absolute定位 */
        z-index: 1;
    }

.carousel .slick-load {
        position: relative;
        z-index: 2;
}

/* 图片展示样式 */
.picture .boxTitle {
        margin-bottom: 5px;
}

.picture ul {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        width: 100%;
        padding: 0;
        margin: 0;
}

.picture li {
        flex: 1;
        min-width: 150px;
        max-width: calc(20% - 8px);
        padding: 0;
        display: flex;
        flex-direction: column;
        height: auto;
}

.picture .thumbnail {
        margin-bottom: 5px;
        position: relative;
        overflow: hidden;
        flex-shrink: 0;
        background-color: transparent;
        aspect-ratio: 4/3;
    }

.picture .thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.picture .title {
        font-size: 14px;
        line-height: 1.5em;
        font-weight: normal;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-align: center;
        margin: 0;
        flex-shrink: 1;
}

/* 移动端两列布局 */
@media (max-width: 768px) {
    .picture ul {
        width: 100%;
        box-sizing: border-box;
        gap: 8px;
    }
    
    .picture li {
        width: calc(50% - 4px);
        max-width: calc(50% - 4px);
        min-width: calc(50% - 4px);
        padding: 0;
        box-sizing: border-box;
    }
    
    .picture .thumbnail {
        aspect-ratio: 1/1;
    }
    
    .picture .title {
        font-size: 12px;
    }
}

/* 栏目布局样式 */
.column .list {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        width: 100%;
}

.column .item {
        flex: 1;
        min-width: 250px;
        max-width: calc(33.333% - 13.333px);
        padding-right: 0;
}

.column .item:nth-child(n+4) {
        padding-top: 0;
}

.column li {
        overflow: hidden;
}

.column .thumbnail {
        width: 130px;
        float: left;
}

.column .info {
        margin-left: 145px;
        overflow: hidden;
}

.column .first {
        padding: 8px 0;
}

.column .first .title {
        margin-bottom: 5px;
}

.column .first .title a {
        display: block;
        font-size: 14px;
        line-height: 1.65em;
        max-height: 3.3em;
        -webkit-line-clamp: 2;
}

.column .first p {
        font-size: 13px;
        line-height: 1.75em;
        height: 3.5em;
        -webkit-line-clamp: 2;
        color: #888;
}

.column .li {
        border-top: 1px dashed #eee;
        padding-top: 5px;
        margin-top: 5px;
        line-height: 30px;
}

.column .li .title {
        font-weight: normal;
        font-size: 14px;
        margin-right: 70px;
}

.column time {
        display: block;
        float: right;
        font-size: 12px;
        color: #888;
}

.column .warning {
        margin-bottom: 0;
        text-align: center;
        padding: 5% 0;
}

/* 图库样式 */
.gallery {
        overflow: hidden;
}

.gallery ul {
        overflow: hidden;
        width: 100%;
}

.gallery li {
        float: left;
        width: 15.965%;
        padding: 0.7% 0.7% 0 0;
}

.gallery li .thumbnail {
        padding-bottom: 75%;
}

.gallery li img {
        transition: all .3s;
}

.gallery li:first-child {
        width: 32.615%;
}

.gallery li:first-child .thumbnail {
        padding-bottom: 75.5%;
}

.gallery li a {
        overflow: hidden;
        display: block;
        position: relative;
        background-color: transparent;
    }

.gallery li a::before,
.gallery li a::after {
        content: '';
        display: block;
        position: absolute;
        opacity: 0;
        transition: all .3s;
}

.gallery li a::before {
        left: 0;
        top: 0;
        /* 个人修复：修正颜色语法兼容性，rgb() → rgba() */
        background-color: rgba(0,0,0,0.5);
        width: 100%;
        height: 100%;
        z-index: 1;
}

.gallery li a::after {
        left: 50%;
        top: 50%;
        z-index: 2;
        opacity: 0;
        width: 10%;
        padding-bottom: 10%;
        background: url("../images/icon_link.png") no-repeat center center;
        background-size: contain;
        margin-left: -5%;
        transform: translateY(-50%);
}

.gallery li a:hover::before {
        opacity: 1;
}

.gallery li a:hover::after {
        opacity: 1;
}

.gallery li a:hover img {
        transform: scale(1.1);
}

/* 移动端图库两列布局 */
@media (max-width: 768px) {
    .gallery {
        padding: 0 15px;
        box-sizing: border-box;
    }
    
    .gallery ul {
        width: 100%;
        box-sizing: border-box;
    }
    
    .gallery li {
        width: 50%;
        padding: 1% 1%;
        box-sizing: border-box;
    }
    
    .gallery li:first-child {
        width: 50%;
    }
    
    .gallery li .thumbnail {
        padding-bottom: 100%;
    }
    
    .gallery li:first-child .thumbnail {
        padding-bottom: 100%;
    }
}

/* 新闻模块样式 */
.news .boxTitle {
        margin-bottom: 15px;
}

.news ul {
        overflow: hidden;
}

.news .top {
        float: right;
        width: 560px;
        position: relative;
}

.news .top h3 {
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        font-size: 14px;
        font-weight: normal;
        line-height: 30px;
}

.news .top h3 a {
        display: block;
        padding: 0 3%;
        color: #fff;
        /* 个人修复：修正颜色语法兼容性，rgb() → rgba() */
        background-color: rgba(0,0,0,0.5);
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
}

.news .item {
        overflow: hidden;
        margin: 0 590px 15px 0;
}

.news .item:last-child {
        margin-bottom: 0;
}

.news .item .thumbnail {
        float: left;
        width: 125px;
}

.news .item .info {
        margin-left: 140px;
}

.news .item h3 {
        font-size: 16px;
        font-weight: normal;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 24px;
}

.news .item time {
        display: block;
        font-size: 12px;
        line-height: 2em;
        color: #999;
}

.news .item p {
        font-size: 13px;
        color: #888;
        line-height: 1.75em;
        height: 3.5em;
        -webkit-line-clamp: 2;
}

/* 图库页面样式 */
#gallery .list {
        overflow: hidden;
        margin-bottom: 20px;
}

#gallery ul {
        overflow: hidden;
        width: 100%;
        border-bottom: 1px dashed #e4e4e4;
}

#gallery li {
        float: left;
        width: 32.333%;
        padding: 0 1% 2% 0;
}

#gallery .listpic {
        clear: both;
        width: 99%;
}

#gallery .thumbnail {
        margin-bottom: 10px;
}

#gallery .title {
        font-size: 14px;
        line-height: 1.5em;
        font-weight: normal;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-align: center;
}

/* 相关文章样式 */
#related ul {
        overflow: hidden;
        width: 100%;
}

#related li {
        float: left;
        width: 23%;
        padding: 1% 2% 1% 0;
}

#related .thumbnail {
        margin-bottom: 5px;
}

#related h4 {
        font-size: 14px;
        line-height: 1.75em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-align: center;
}

/* 诗歌样式与朗读按钮 */
.sptsz-theme .poem-content { position: relative; padding: 2em 1.2em; background: #fffefc; border-radius: 8px; border: 1px solid #f1ead6; }
.sptsz-theme .poem-badge { position: absolute; top: -10px; right: 20px; background: linear-gradient(135deg, #d4af37, #b8860b); color: white; padding: 5px 12px; border-radius: 15px; font-size: 12px; font-weight: bold; box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3); display:flex; align-items:center; gap:5px; }
.sptsz-theme .poem-buttons { display: flex; justify-content: center; gap: 15px; margin-top: 30px; padding-top: 20px; border-top: 1px dashed #e9ecef; }
.sptsz-theme .poem-read-btn, .sptsz-theme .poem-stop-btn, .sptsz-theme .poem-copy-btn, .sptsz-theme .poem-share-btn { background: rgba(212, 175, 55, 0.1); border: 1px solid #d4af37; color: #8b4513; padding: 8px 15px; border-radius: 15px; font-size: 14px; cursor: pointer; transition: all 0.3s ease; }
.sptsz-theme .poem-stop-btn { background: rgba(220,53,69,0.1); border:1px solid #dc3545; color:#721c24; }
.sptsz-theme .poem-read-btn:hover, .sptsz-theme .poem-stop-btn:hover, .sptsz-theme .poem-copy-btn:hover, .sptsz-theme .poem-share-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.1); }
#postTags{font-size:14px;line-height:1.75em;}
#postTags span{font-weight:bold;color:#000;}
#postTags a{margin:0 1.5%; display:inline-block;}
#postTags:empty{display:none;}



#postTitle{font-size:24px;text-align:center;line-height:1.5em;padding:2% 0 3%;}

#postmeta{font-size:0;line-height:normal;text-align:center;margin-bottom:2.5%;border-bottom:1px dashed #eee;padding-bottom:2.5%;}
#postmeta span{font-size:14px;color:#888;margin:0 10px;display:inline-block;background:no-repeat left center;padding-left:20px;background-size:auto 12px;}
#postmeta a{color:#888;}
#postmeta a:hover{color:#006abe;}
#postmeta .views{background-image:url("../images/icon_01.png");}
#postmeta .tag{background-image:url("../images/icon_02.png");}
#postmeta .date{background-image:url("../images/icon_03.png");}

/* 文章列表样式 */
.blogItem{overflow:hidden;margin-bottom:20px;padding-bottom:20px;border-bottom:1px dashed #e4e4e4;}
.blogItem .thumbnail{float:left;width:250px;}
.blogItem .info{margin-left:265px;overflow:hidden;padding:5px 0;}
.blogItem .title{line-height:1.35em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:18px;margin-bottom:5px;}
.blogItem .title strong {color:#f00;}
.blogItem .meta{color:#888;margin-bottom:5px;overflow:hidden;}
.blogItem .meta a{color:#888;}
.blogItem .meta span{font-size:12px;background:no-repeat left center;padding:0 16px;background-size:auto 10px;display:block;float:left;}
.blogItem .meta .views{float:right;padding-right:0;background-image:url("../images/icon_01.png");}
.blogItem .meta .tag{background-image:url("../images/icon_02.png");}
.blogItem .meta .date{background-image:url("../images/icon_03.png");}
.blogItem .intro{font-size:14px;color:#666;line-height:1.75em;height:5.25em;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;margin-bottom:13px;text-align:justify;}
.blogItem .more{overflow:hidden;}

/* 现代按钮样式 */
.blogItem .more a{
  display:inline-flex; 
  align-items:center; 
  justify-content:center; 
  gap:8px;
  height: 36px; 
  padding:0 16px; 
  border-radius: 8px;
  font-size: 14px; 
  font-weight:600; 
  cursor:pointer;
  background: var(--spt-grad); 
  color:#fff; 
  border:none; 
  /* 个人修复：修正颜色语法兼容性，rgb() → rgba() */
  box-shadow: 0 6px 14px rgba(15,92,170,0.35);
  transition: transform .16s ease, filter .16s ease, box-shadow .16s ease;
  float:right;
}

.blogItem .more a:hover{
  transform: translateY(-1px); 
  filter: brightness(.98); 
  /* 个人修复：修正颜色语法兼容性，rgb() → rgba() */
  box-shadow: 0 10px 20px rgba(var(--spt-primary-rgb),0.35);
}

/* 主题色相关 */
#postmeta a:hover { color: var(--spt-primary-dark); }
#postmeta .views,
#postmeta .tag,
#postmeta .date { background-color: transparent; }

/* 文章内容主题样式 */
.sptsz-theme .post-countent-data .poem-content { text-align: center; font-style: normal; }
.sptsz-theme .post-countent-data .poem-content::before { content: "\0000"; } /* 保留占位，防止 1 主题样式冲突 */

/* 响应式设计 */
@media (max-width: 1024px) {
  .blogItem{margin-bottom:15px;padding-bottom:15px;}
}

@media (max-width: 768px) {
  /* 文章列表响应式 */
  .blogItem{margin-bottom:15px;padding-bottom:15px;display:flex;align-items:flex-start;}
  .blogItem .thumbnail{width:100px;height:75px;overflow:hidden;border-radius:4px;}
  .blogItem .thumbnail img{width:100%;height:100%;object-fit:cover;}
  .blogItem .info{margin-left:15px;flex:1;padding:0;}
  .blogItem .info h2{font-size:16px;line-height:1.5em;height:3em;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;margin-bottom:8px;white-space:normal;}
  .blogItem .intro{font-size:14px;line-height:1.5em;height:3em;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;margin-bottom:8px;white-space:normal;}
  .blogItem .meta{display:block;color:#888;margin-bottom:8px;overflow:hidden;font-size:12px;}
  .blogItem .meta span{font-size:12px;background:no-repeat left center;padding:0 16px;background-size:auto 10px;display:inline-block;margin-right:10px;}
  .blogItem .more{display:none;}
  
  /* 文章导航响应式 */
  #postnavi{font-weight:normal;line-height:2em;}
  #postnavi .prev,#postnavi .next{float:none;width:auto;text-align:left;}
  
  /* 文章标题响应式 */
  #postTitle{font-size:20px;padding:3% 0 4%;}
  
  /* 文章元信息响应式 */
  #postmeta{margin-bottom:3%;padding-bottom:3%;}
  #postmeta span{margin:0 5px;font-size:12px;background-size:auto 12px;padding-left:18px;}
}

/* 深色模式适配 */
@media (prefers-color-scheme: dark) {
  .blogItem .more a{
    color:#fff;
    /* 个人修复：修正颜色语法兼容性，rgb() → rgba() */
    box-shadow: 0 6px 14px rgba(0,0,0,0.35);
  }
  
  /* 图标显色增强 */
  .sptsz-search-icon,
  #mzaback,
  .social .iconfont {
    color: var(--text-main) !important;
  }
  
  /* 链接与分隔线适配 */
  a {
    color: var(--spt-primary);
  }
  
  .sep {
    background-color: rgba(255,255,255,0.1);
  }
  
  /* 搜索框与表单适配 */
  #search input[type="text"],
  .comment-form input,
  .comment-form textarea {
    background-color: rgba(255,255,255,0.05);
    color: var(--text-main);
    border-color: rgba(255,255,255,0.1);
    border-radius: 4px !important;
  }
  
  /* 登录模态框适配 */
  #sptsz-login-modal {
    background-color: var(--surface);
    border-color: rgba(255,255,255,0.1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  }
  
  /* 模态框遮罩层适配 */
  #sptsz-login-mask {
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
  }
}

/* 文章相关文本样式 */
.text-primary { color: var(--spt-primary) !important; }
.text-secondary { color: var(--spt-secondary) !important; }
.text-success { color: var(--spt-success) !important; }
.text-danger { color: var(--spt-danger) !important; }
.text-warning { color: var(--spt-warning) !important; }
.text-info { color: var(--spt-info) !important; }
.text-light { color: var(--spt-light) !important; }
.text-dark { color: var(--spt-dark) !important; }
.text-muted { color: var(--spt-muted) !important; }
.text-white { color: #fff !important; }

/* 深色模式适配 */
@media (prefers-color-scheme: dark){
  :root{
    --surface: #12151b;
    --surface-soft: #0f1216;
    --text-main: #e8eaed;
    --text-secondary: #c2c7d0;
  }
  
  body {
    background-color: var(--surface-soft);
    color: var(--text-main);
  }
  
  .box, .widget, .breadcrumb, .comments-area .comment-list > li {
    background: var(--surface);
    border-color: rgba(255,255,255,0.1);
  }
}

/* 分页样式优化 */
.pagebar { padding:20px; overflow:hidden; clear:both}

.pagebar .pagination {
  display: flex;
  justify-content: center;
  margin-top: 10px;
  flex-wrap: wrap;
  gap: 6px;
}

.pagination a {
  background: #fff;
  border: 1px solid #ccc;
  color: #333;
  font-size: 12px;
  padding: 8px 10px;
  margin: 0 2px;
  border-radius: 3px; line-height:100%
}

.pagination span {
    color: #333;
    font-size: 12px;
    padding: 7px 2px;
    margin: 0 2px;
    border-radius: 3px;
}

.pagination a:hover {
  color: #333;
  border: 1px solid #333;
}

.pagination a.page-num-current {
  color: #fff;
  background: #333;
  border: 1px solid #333;
}
/* 个人修复：修正类选择器语法，添加缺失的点号 */
.pagination .st{ font-family:"宋体"}
.text-secondary{ text-align:center; padding:20px 0}

/* 拼图网格样式 */
.sptsz-collage{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:12px;align-items:start}
.sptsz-collage figure{margin:0}
.sptsz-collage img{display:block;width:100%;height:auto;border-radius:8px}

@media (width <=560px){
  .sptsz-collage{grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:10px}
}

/* ab_img样式 */
.ab_img img{ max-width:100%; height:auto;display:inline-block;}
.ab_img p{text-wrap: inherit;}
.ab_img p span{text-wrap: inherit;}

/* 文章内容样式 */
.entry{overflow:hidden;text-align:justify;}
/* 个人修复：删除破坏性通配符样式，避免覆盖诗歌/代码等特殊样式 */
.entry p {line-height:2em;}
.entry img{max-width:100%;height:auto;display:block;margin:15px auto;}
.entry blockquote{margin:0 2em 1.5%;overflow:hidden;padding:1.5% 1.5% 0;color:#555;background-color:#f9f9f9;font-style:italic;}
.entry ul,.entry ol{margin-bottom:1.5%;margin-left:2em;padding-left:1em;}
.entry ul li{list-style:outside disc none;}
.entry ol li{list-style:outside decimal none;}

/* 彻底清除标题的列表样式和伪元素 */
.entry h1, .entry h2, .entry h3, .entry h4, .entry h5, .entry h6 {
    list-style-type: none !important;
    margin-left: 0 !important;
    -webkit-list-style-type: none !important;
    -moz-list-style-type: none !important;
    -ms-list-style-type: none !important;
}

/* 强制移除所有标题相关的伪元素 */
.entry h1::before, .entry h2::before, .entry h3::before, 
.entry h4::before, .entry h5::before, .entry h6::before,
.entry h1::after, .entry h2::after, .entry h3::after, 
.entry h4::after, .entry h5::after, .entry h6::after {
    content: none !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}



.entry li p{margin-bottom:0;}
.entry p,.entry h1,.entry h2,.entry h3,.entry h4,.entry h5,.entry h6{margin-bottom:1.5%;}
.entry a{color:#006abe;text-decoration:underline;}
.entry hr{border:none;margin-bottom:1.5%;border-bottom:1px solid #e4e4e4;overflow:hidden;clear:both;}

/* 调整文章段落间距，减少空白区域 */
.entry p{
  margin-top: 0.5em;     /* 调整段前距 */
  text-indent: 2em;      /* 每段首行缩进两个字符 */
  margin-bottom: 1em;    /* 调整段后距 */
}

.entry p:first-child{
  margin-top: 0;         /* 首段不加段前距 */
}

/* 调整特殊块后紧邻段落的间距 */
.entry blockquote + p,
.entry pre + p,
.entry figure + p,
.entry table + p,
.entry ul + p,
.entry ol + p,
.entry h1 + p,
.entry h2 + p,
.entry h3 + p,
.entry h4 + p,
.entry h5 + p,
.entry h6 + p{
  margin-top: 1em;    /* 调整段前距 */
}

/* 主题色和排版优化 */
.entry a{color: var(--spt-primary);}
/* 个人修复：删除冲突的text-indent定义，避免覆盖段落缩进样式 */
body.lang-zh .entry p{ text-indent: 2em; }

/* 版权声明样式 */
.copyright-notice {
  max-width: 800px;
  margin: 30px auto 0;
  padding: 20px;
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.copyright-notice .boxTitle {
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e9ecef;
}

.copyright-notice .boxTitle h3.name {
  font-size: 16px;
  font-weight: 600;
  color: #495057;
  margin: 0;
}

.copyright-content {
  font-size: 14px;
  line-height: 1.6;
  color: #6c757d;
  text-align: justify;
}

/* 响应式版权声明 */
@media (max-width: 1024px) {
  .copyright-notice {
    max-width: 100%;
    margin: 20px 15px 0;
    padding: 15px;
  }
  
  .copyright-notice .boxTitle h3.name {
    font-size: 14px;
  }
  
  .copyright-content {
    font-size: 13px;
    line-height: 1.5;
  }
}
