/*   
Theme Name: Twenty Twelve-child
Theme URI: /
Description: Xie二次开发twentytwelve子主题
Author: Xie
Author URI: / 
Template: twentytwelve
Version: 1.1.0 
*/
/* 页脚设置 */
footer[role="contentinfo"] {
margin: 24px 0 0 0;
text-align:  left;
max-width: 1190px;
max-width: 85rem;
font-size: 13px;
padding: 28px 0 28px 0;
}
/* 网页宽度 */
.site {
margin: 0 auto;
max-width: 1190px;
max-width: 85rem;
overflow: auto;
}
/* 网页头部和底部间距 */
body .site {
margin-top: 0;
margin-bottom: 0;
}
/* 首页文章标题行高以及下横线 */
.entry-header .entry-title {
    line-height: 2.181818182;
    border-bottom: 1px solid #ededed;
    color: #000000; /* 修改标题颜色 */
}

/* 头部添加搜索框 */
.header-search {
float: right;
margin-top: -50px;
}
@media (max-width: 650px) {
.header-search {
display: none;
}
}
/* 分页导航样式 */
.posts-nav {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.44);
    padding: 10px 0;
    margin: 0 auto;
    text-align: center;
}
.posts-nav .page-numbers {
    border-radius: 3px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    display: inline-block;
    text-align: center;
    width: 30px;
    line-height: 30px;
    margin: 0 5px;
    text-decoration: none; /* 取消文字下划线 */
}
.posts-nav .page-numbers.current,
.posts-nav .page-numbers:not(.dots):hover {
    background: #3b5998;
    border-color: #3b5998;
    color: #fff;
}
.posts-nav .page-numbers.dots {
    border-color: rgba(0, 0, 0, 0);
}
a.prev.page-numbers,
a.next.page-numbers {
    border-radius: 3px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    display: inline-block;
    text-align: center;
    width: 70px;
    line-height: 30px;
    margin: 0 5px;
    text-decoration: none; /* 取消文字下划线 */
}
/* 面包屑导航样式 */
.breadcrumb {
font-size: 12px;
color: #888;
margin:0 auto;
}
.breadcrumb a {
color: #888;
}
.breadcrumb a:not(.dots):hover {
color: #CC0033;
}
.breadcrumb li {
display: inline;
line-height:20px;
}
/* 文章页标题、meta块、和脚部样式修改 */
#content .title {
font-size: 24px;
padding-bottom: 24px;
text-align: center;
}
#content .meta {
font-size: 13px;
padding: 10px 0 10px 0;
border: 1px dashed rgba(0, 0, 0, 0.15);
text-align: center;
letter-spacing: 0.035rem;
}
#content .content-foot {
font-size: 13px;
padding: 10px 0 10px 24px;
margin: 0 -24px -24px -24px;
letter-spacing: 0.035rem;
background-color: #ffffff;
}
/* 首页文章meta标签样式 */
#content .home-foot {
margin-top: 24px;
margin-top: 1.714285714rem;
font-size: 13px;
font-size: 0.928571429rem;
line-height: 1.846153846;
color: #757575;
}

/* 归档页面 */
#archives {
    position: relative;
}
#archives h3 {
    margin-top: 30px; /* 你可以根据需要调整上边距的大小 */
    margin-bottom: 0;
    padding: 0 15px;
    border-bottom: 1px solid #ddd;
    font-size: 16px;
    font-weight: 400;
    text-align: center;
    letter-spacing: 5px;
}
#archives ul {
    list-style: none;
    margin: 0 30px;
    padding: 10px 0 20px 10px;
    border-left: 1px solid #ddd;
    font-size: 14px; /* 将列表项的字体大小修改为14px */
}
#archives li {
    list-style: none;
    position: relative;
    line-height: 30px;
}
#archives ul ul {
    margin: -15px 0 0 0;
    padding: 15px 0 10px 0;
}
#archives ul ul li {
    padding: 0 0 0 15px;
}
#archives ul ul li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    border-top: 5px dashed transparent;
    border-bottom: 5px dashed transparent;
    border-left: 10px solid #ddd;
}
/* 修改按钮的背景颜色和文本颜色 */
#al_expand_collapse {
    background: linear-gradient(to bottom, #3498db 20%, #2980b9 80%) repeat scroll 0 0 transparent;
    background: -webkit-linear-gradient(to bottom, #3498db 20%, #2980b9 80%) repeat scroll 0 0 transparent;
    color: #fff; /* 文本颜色设为白色 */
    border: none; /* 移除按钮边框 */
    padding: 10px 20px; /* 调整按钮内边距 */
    border-radius: 5px; /* 添加圆角 */
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.3); /* 添加阴影效果 */
    text-decoration: none; /* 取消文字下划线 */
    margin-bottom: 30px; /* 增加按钮的下边距 */
}
/* 鼠标悬停时的样式 */
#al_expand_collapse:hover {
    background: linear-gradient(to bottom, #2980b9 20%, #3498db 80%) repeat scroll 0 0 transparent;
    background: -webkit-linear-gradient(to bottom, #2980b9 20%, #3498db 80%) repeat scroll 0 0 transparent;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3); /* 悬停时增加阴影 */
}
#archives em {
    padding-left: 5px;
    font-size: 12px; /* 将强调文本的字体大小修改为12px */
    color: #777;
}
#archives .al_mon {
    padding-left: 5px;
    font-size: 12px; /* 将类名为"al_mon"的元素的字体大小修改为12px */
    font-weight: 700;
}
#archives .al_mon:after {
    content: "";
    position: absolute;
    left: -10px;
    top: 15px;
    width: 10px;
    height: 1px;
    background: #ddd;
}
#archives .al_mon em {
    font-size: 12px;
    font-weight: 400;
}

/* 按钮样式 */
#donate-button {
  background-color: #0073e6;
  color: #fff;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  display: block; /* 将按钮设为块级元素 */
  margin: 0 auto; /* 自动左右居中 */
  text-align: center; /* 文本水平居中 */
  z-index: 9999;
}
/* 模态框样式 */
.donate-modal {
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 20px;
  z-index: 9999;
  max-width: 80%;
}
.close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
}
@media screen and (max-width: 768px) {
    img {
        max-width: 100%;
        height: auto;
    }
}
/* 悬浮按钮的样式 */
#scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #0073e6;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    display: none;
}
#scroll-to-top:hover {
    background-color: #0055a4;
}
