/*
Theme Name: Wing-fm
Template: Wing-main
Author: Tokin
Author URI: https://biji.io
Version: 1.0.0.1695698778
Updated: 2023-09-26 11:26:18

*/
html {
  box-sizing: border-box;
  font-size: 20px;
  line-height: 1.75;
  -webkit-tap-highlight-color: transparent;
}


body {
  background: #fff;
  color: #3b4351;
  font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-size: 1rem;
  overflow-x: hidden;
  font-weight: 300;
  text-rendering: optimizeLegibility;
}

body a, body a:hover, body a:visited {
  color: #3498db;
  text-decoration: none;
}

body a:hover {
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: inherit;
  font-weight: 500;
  line-height: 2;
  margin-bottom: 0.5em;
  margin-top: 0;
}

.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  font-weight: 500;
}

h1,
.h1 {
  font-size: 1.6rem;
}

h2,
.h2 {
  font-size: 1.5rem;
}

h3,
.h3 {
  font-size: 1.4rem;
}

h4,
.h4 {
  font-size: 1.3rem;
}

h5,
.h5 {
  font-size: 1.2rem;
}

h6,
.h6 {
  font-size: 1.1rem;
}

p {
  margin: 0 0 1.2rem;
}



.chip {
  align-items: center;
  background: #eef0f3;
  border-radius: 5rem;
  display: inline-flex;
  font-size: 90%;
  height: 1.6rem;
  line-height: 1.2rem;
  margin: 0.1rem;
  max-width: 320px;
  overflow: hidden;
  padding: 0.2rem 0.4rem;
  text-decoration: none;
  text-overflow: ellipsis;
  vertical-align: middle;
  white-space: nowrap;
}



body .layout .article-header .article-title {
  margin: 2% 0;
  text-align: center; 
}
body .layout .article-header .article-info {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
}

.pagination {
  display: flex;
  font-size: 0.8rem;  
  list-style: none;
  margin: 0.2rem 0;
  padding: 0.2rem 0;
}



body .layout #footer .scroll-tools {
  display: none;
  position: fixed;
  right: 0;
  top: 80%;
  z-index: 999;
  transition: 300ms;
  display: flex;
  flex-direction: column;
}

/* 方案一：多彩边框标签云 (透明填充版) */
.fancy-tags {
    text-align: center; /* 标签居中 */
    display: flex; /* 使用 flex 布局 */
    flex-wrap: wrap; /* 允许标签换行 */
    justify-content: center; /* 居中对齐 */
    gap: 10px; /* 标签之间的间距 */
}

.fancy-tags a {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 25px; /* 圆角胶囊形状 */
    text-decoration: none; /* 无下划线 */
    font-size: 16px !important; /* 覆盖 WordPress 默认样式 */
    background-color: transparent; /* *** 关键修改：标签内部填充为透明 *** */
    border: 1px solid; /* 设置边框宽度和样式，颜色将在下面定义 */
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08); /* 轻微阴影 */
}

.fancy-tags a:hover {
    transform: translateY(-3px); /* 鼠标悬停时上浮 */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15); /* 阴影变深 */
    background-color: var(--hover-color); /* 悬停时填充颜色，使用 CSS 变量 */
    color: #ffffff; /* 悬停时文字颜色变为白色 */
}

/* 循环颜色定义，应用于边框和悬停背景色 */
.fancy-tags a:nth-child(15n+1) { border-color: #ff6b6b; --hover-color: #ff6b6b; } /* 鲜红 */
.fancy-tags a:nth-child(15n+2) { border-color: #4ecdc4; --hover-color: #4ecdc4; } /* 浅青 */
.fancy-tags a:nth-child(15n+3) { border-color: #45b7d1; --hover-color: #45b7d1; } /* 天蓝 */
.fancy-tags a:nth-child(15n+4) { border-color: #f7b731; --hover-color: #f7b731; } /* 亮黄 */
.fancy-tags a:nth-child(15n+5) { border-color: #a2d2ff; --hover-color: #a2d2ff; } /* 冰蓝 */
.fancy-tags a:nth-child(15n+6) { border-color: #ff9f1c; --hover-color: #ff9f1c; } /* 活力橙 */
.fancy-tags a:nth-child(15n+7) { border-color: #2a9d8f; --hover-color: #2a9d8f; } /* 深绿 */
.fancy-tags a:nth-child(15n+8) { border-color: #9b59b6; --hover-color: #9b59b6; } /* 紫罗兰 */
.fancy-tags a:nth-child(15n+9) { border-color: #e67e22; --hover-color: #e67e22; } /* 焦橙 */
.fancy-tags a:nth-child(15n+10) { border-color: #2ecc71; --hover-color: #2ecc71; } /* 翠绿 */
.fancy-tags a:nth-child(15n+11) { border-color: #34495e; --hover-color: #34495e; } /* 深蓝灰 */
.fancy-tags a:nth-child(15n+12) { border-color: #f39c12; --hover-color: #f39c12; } /* 金黄 */
.fancy-tags a:nth-child(15n+13) { border-color: #e74c3c; --hover-color: #e74c3c; } /* 猩红 */
.fancy-tags a:nth-child(15n+14) { border-color: #c0392b; --hover-color: #c0392b; } /* 暗红 */
.fancy-tags a:nth-child(15n+15) { border-color: #16a085; --hover-color: #16a085; } /* 藻绿 */


/* 响应式调整 */
@media (max-width: 768px) {
    .fancy-tags {
        gap: 8px;
    }
    .fancy-tags a {
        padding: 8px 15px;
        font-size: 13px !important;
    }
}


body .layout .article-content-s :is(h1, h2, h3, h4, h5, h6) {
  width: auto;
  display: inline;
  box-shadow: 0 -0.5rem 0 rgba(188, 195, 206, 0.3) inset;
}
body .layout .article-content-s :is(h1, h2, h3, h4, h5, h6)::before, body .layout .article-content :is(h1, h2, h3, h4, h5, h6)::after {
  content: "";
  display: block;
  height: 0.5rem;
}
body .layout .article-content-s > p {
  text-align: justify;
  white-space:pre-wrap;
}
body .layout .article-content-s > p strong, body .layout .article-content-s > p b {
  box-shadow: 0 -0.1rem 0 rgba(0, 139, 139, 0.3) inset;
  font-weight: bold;
}
body .layout .article-content-s a {
  box-shadow: 0 -0.1rem 0 rgba(255, 0, 0, 0.3) inset;
}
body .layout .article-content-s > p i:not([class]), body .layout .article-content-s > p em {
  box-shadow: 0 -1rem 0 rgba(255, 255, 0, 0.3) inset;
}
body .layout .article-content-s img {
  max-width: 100%;
}
body .layout .article-content-s ul:not([class]) li {
  list-style-type: none;
  white-space:pre-wrap;
  margin:1.2rem 0; padding-left:2rem; background-image:url(images/hand.png); background-position:0 0; background-size:1.6rem; background-repeat:no-repeat
}
body .layout .article-content-s ol:not([class]) li {
  white-space:pre-wrap;
  margin:1.2rem 0; padding-left:2rem; background-image:url(images/hook.png); background-position:0 0; background-size:1.6rem; background-repeat:no-repeat
}
body .layout .article-content-s figcaption {
  color: #bcc3ce;
}
body .layout .article-content-s .post_password_form {
  max-width: 360px;
  margin: 10% auto;
}
body .layout .article-content-s .blocks-gallery-item figcaption {
  transition: 300ms;
  opacity: 0.5;
  padding: 0.8rem 0 0.3rem;
}
body .layout .article-content-s .blocks-gallery-item:hover figcaption {
  padding-bottom: 0.6rem;
  opacity: 1;
}

blockquote {
  text-align: justify;	
  border-left: 0.2rem solid #dadee4;
  margin-left: 2rem;
  padding: 0.5rem 1rem;
}
blockquote p:last-child {
  margin-bottom: 0;
}

/* 确保图片容器有相对定位 */
.post-thumbnail-wrapper {
    position: relative;
    width: 100%; /* 宽度占满父容器 */
    padding-bottom: 56.25%; /* 16:9 比例 (9 / 16 * 100% = 56.25%) */
    height: 0; /* 初始高度为0，由 padding-bottom 撑开 */
    overflow: hidden; /* 隐藏超出容器的部分 */
    margin-bottom: 20px; /* 与下方内容的间距，可以根据需要调整 */
    display: flex; /* 使用 flexbox 辅助内容居中或定位 */
    align-items: flex-end; /* 垂直方向底部对齐 */
    justify-content: flex-start; /* 水平方向左侧对齐 */
}

/* 让图片绝对定位并填充容器，并添加虚化效果 */
.post-thumbnail-wrapper img.post-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* 确保图片覆盖整个容器，可能会裁剪边缘 */
    display: block; /* 移除图片底部的额外空间 */
}

/* 鼠标悬停时取消虚化效果（可选） */
.post-thumbnail-wrapper:hover img.post-thumbnail {
    filter: blur(0);
}

/* 标题叠加层 */
.post-title-overlay {
    position: absolute; /* 绝对定位 */
    bottom: 0; /* 底部对齐 */
    left: 0; /* 左侧对齐 */
    width: 100%; /* 宽度占满 */
    padding: 20px; /* 标题内边距 */
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 100%); /* 渐变背景，让标题更突出 */
    color: #fff; /* 标题文字颜色 */
    z-index: 1; /* 确保标题在图片上方 */
}

/* 调整标题样式，确保在图片上可见 */
.post-title-overlay .article-title {
    color: #fff !important; /* 强制标题颜色为白色，覆盖原有样式 */
    margin-bottom: 0 !important; /* 移除标题下边距 */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5); /* 添加文字阴影，增强可读性 */
}

/* 针对小屏幕，如果需要可以调整 */
@media (max-width: 768px) {
    .post-thumbnail-wrapper {
        margin-bottom: 15px;
    }
    .post-title-overlay {
        padding: 15px; /* 小屏幕内边距可以小一点 */
    }
    .post-title-overlay .article-title {
        font-size: 1.5rem; /* 小屏幕标题字号可以小一点 */
    }
}


/* 友情链接图标样式 - 调整为圆角 */
.link-favicon {
    margin-bottom: 8px;
    /* 关键修改：将 border-radius 设置为 50% 实现圆形，或者一个固定值实现圆角矩形 */
    border-radius: 20%; /* 示例：15% 的圆角，看起来像 App 图标 */
    /* border-radius: 50%; */ /* 如果你想要完全的圆形图标，可以使用 50% */

    vertical-align: middle;
    flex-shrink: 0;
    object-fit: contain;

    /* 确保图标有固定的尺寸，以便圆角效果一致 */
    width: 64px; /* 确保与 HTML 中的 width/height 匹配或稍大 */
    height: 64px; /* 确保与 HTML 中的 width/height 匹配或稍大 */

    /* 增加一个轻微的阴影效果，使其更像 App 图标 (可选) */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 调整卡片内容布局，使图标居中 */
.uni-card.flex-center {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

/* 调整链接名称和描述的间距 */
.uni-card .text-break.mt-2 {
    margin-top: 0.5rem;
}
.uni-card .text-gray.text-tiny.text-break.mb-2 {
    margin-bottom: 0.5rem;
}


.pagination {
  display: flex;
  justify-content: center; /* 关键：使子元素在主轴上居中 */
  list-style: none;
  margin: 1.5rem 0; /* 增加上下外边距，与其他内容保持距离 */
  padding: 0; /* 移除内边距，让子元素控制间距 */
  flex-wrap: wrap; /* 当页面数量过多时允许换行 */
}

.pagination .page-item {
  margin: 0 0.3rem; /* 调整左右外边距，增加页码之间的间距 */
}

/* 统一页码数字和链接的样式，确保垂直居中 */
.pagination .page-item span,
.pagination .page-item a {
  display: inline-flex; /* 使用 inline-flex 替代 inline-block，更方便居中 */
  align-items: center; /* 垂直居中 */
  justify-content: center; /* 水平居中 */
  min-width: 2.2rem; /* 进一步调整最小宽度，使按钮更紧凑 */
  height: 2.2rem; /* 进一步调整固定高度，与 min-width 匹配 */
  font-size: 0.75rem; /* 进一步减小字体大小 */
  line-height: 1; /* 明确设置行高为1，消除默认行高可能带来的额外垂直空间 */
  border-radius: 0.3rem; /* 稍微增加圆角 */
  text-decoration: none;
  transition: all 0.2s ease-in-out; /* 添加过渡效果 */
  box-sizing: border-box; /* 确保 padding 和 border 包含在 width/height 内 */
  /* 新增：使用 transform 向上微调 */
  transform: translateY(-1px); /* 向上移动 1 像素 */
}

.pagination .page-item span {
  color: #555; /* 默认页码颜色 */
  background-color: #f5f5f5; /* 默认页码（非链接）的背景色 */
}

.pagination .page-item a {
  color: #3366ff; /* 链接页码的默认颜色 */
  border: 1px solid #e0e0e0; /* 添加一个浅灰色边框 */
  background-color: #fff; /* 链接页码的背景色 */
}

.pagination .page-item a:focus,
.pagination .page-item a:hover {
  background-color: #e6f0ff; /* 悬停时背景色变浅蓝 */
  color: #3366ff; /* 悬停时文字颜色保持蓝色 */
  border-color: #3366ff; /* 悬停时边框颜色变为蓝色 */
  box-shadow: 0 2px 8px rgba(51, 102, 255, 0.2); /* 添加轻微阴影效果 */
}

.pagination .page-item.disabled a {
  cursor: not-allowed; /* 禁用状态下的鼠标样式 */
  opacity: 0.6; /* 稍微降低透明度 */
  pointer-events: none;
  background-color: #f9f9f9; /* 禁用状态的背景色 */
  color: #ccc; /* 禁用状态的文字颜色 */
  border-color: #e0e0e0; /* 禁用状态的边框颜色 */
  box-shadow: none; /* 禁用状态下移除阴影 */
}

.pagination .page-item.active a {
  background: #3366ff;
  color: #fff;
  border-color: #3366ff; /* 激活状态的边框颜色与背景色一致 */
  font-weight: bold; /* 激活状态字体加粗 */
  box-shadow: 0 4px 12px rgba(51, 102, 255, 0.3); /* 激活状态更明显的阴影 */
}

/* 调整上一页/下一页按钮的样式，使其与数字页码保持一致 */
.pagination .page-item.page-prev a,
.pagination .page-item.page-next a {
  min-width: 3.8rem; /* 调整上一页/下一页按钮的宽度，与新的字体大小匹配 */
}

.pagination .page-item.page-prev {
  margin-right: 0.8rem; /* 增加上一页与数字页码的间距 */
}

.pagination .page-item.page-next {
  margin-left: 0.8rem; /* 增加下一页与数字页码的间距 */
}

.pagination .page-item .page-item-title {
  margin: 0;
  font-weight: bold; /* 标题加粗 */
}

.pagination .page-item .page-item-subtitle {
  margin: 0;
  opacity: 0.6; /* 稍微增加副标题透明度 */
  font-size: 0.75rem; /* 进一步调整副标题字体大小，与主字体大小协调 */
}



/* 标题与正文的间距 */
body .layout .article-content-s h1,
body .layout .article-content-s h2,
body .layout .article-content-s h3,
body .layout .article-content-s h4 {
  margin-bottom: 0.5em !important;
  margin-top: 1em !important;
}
