/* 01 基础 */
html, body{
scroll-behavior: smooth;
}
body{
margin: 0;
padding: 60px;
min-height: 100vh;
min-height: 100dvh;
box-sizing: border-box;
display: flex;
background: #f5f5f5;
color: #000;
font-weight: 300;
font-size: 14px;
font-family: -apple-system, Qunxiang, "PingFang SC", "Microsoft YaHei", sans-serif;
line-height: 1.8;
animation: fadeIn .3s ease;
}

/* 02 布局容器 */
.paper{
width: 100%;
max-width: 600px;
margin: auto;
padding: 40px;
background: #fff;
/* 特例：纸面大圆角，不受 4/8px 圆角规范约束 */
border-radius: 20px;
word-wrap: break-word;
}
.bg-video{
display: block;
width: 100%;
height: auto;
margin: 0 0 20px;
border-radius: 4px;
}

/* 03 排版 */
h1, h2{
margin: 0 0 30px;
font-weight: bold;
font-size: 16px;
}
h3{
margin: 120px 0 20px;
font-weight: bold;
font-size: 14px;
}
p{
margin: 0 0 20px;
}
a{
color: #000;
text-decoration: none;
transition: color .2s ease, background-color .2s ease;
}
a:hover{
background: #000;
color: #fff;
}
ul, ol{
margin: 0 0 20px 20px;
padding: 0;
}
ul li{
list-style: circle;
margin: 0 0 20px;
}
ol li{
list-style-position: inside;
margin: 0 0 20px;
}
blockquote{
margin: 20px 0;
padding: 0 0 0 20px;
border-left: 1px solid #000;
font-style: normal;
}
/* 正文大图不溢出 */
.paper img:not(.bg-video){
max-width: 100%;
height: auto;
}
/* 空列表提示 */
.paper-empty{
color: #999;
}

/* 04 页头导航 */
.site-header{
margin: 0 0 40px;
padding-bottom: 20px;
border-bottom: 1px solid #ddd;
}

/* 站点名隐藏 */
.site-name{
display: none;
}
.site-nav{
display: flex;
align-items: center;
gap: 20px;
}
.nav-item{
position: relative;
}
.nav-item a, .nav-item label{
display: flex;
align-items: center;
border-bottom: none;
color: #999;
}
.nav-item a:hover, .nav-item label:hover{
background: none;
color: #000;
}

/* 文字导航项 */
.nav-item-text a{
font-size: 14px;
line-height: 18px;
}
.nav-item label{
cursor: pointer;
}
.nav-item svg{
display: block;
transition: color .2s ease;
}
.nav-right{
margin-left: auto;
}

/* 05 导航气泡 */
.tooltip{
position: absolute;
top: calc(100% + 12px);
left: 50%;
transform: translate3d(-50%, 0, 0) scale(.9);
transform-origin: top center;
opacity: 0;
visibility: hidden;
transition: transform .2s ease, opacity .2s ease, visibility .2s ease;
z-index: 2;
padding: 6px 12px;
background: #000;
color: #fff;
font-size: 12px;
font-weight: 400;
line-height: 1.4;
white-space: nowrap;
border-radius: 999px;
}
.tooltip:before{
content: "";
position: absolute;
top: -4px;
left: 50%;
transform: translateX(-50%);
border-left: 4px solid transparent;
border-right: 4px solid transparent;
border-bottom: 4px solid #000;
}
.nav-item:hover .tooltip{
transform: translate3d(-50%, 0, 0) scale(1);
opacity: 1;
visibility: visible;
}

/* 06 搜索 */
.search-box{
position: absolute;
top: 50%;
right: 100%;
transform: translateY(-50%);
width: 0;
margin: 0;
padding: 0;
opacity: 0;
overflow: hidden;
background: #fff;
border-bottom: none;
}
#search-toggle:checked ~ .search-box{
width: 200px;
margin-right: 12px;
padding: 0 0 3px;
opacity: 1;
border-bottom: 1px solid #ddd;
}
.search-box input{
width: 100%;
border: none;
outline: none;
background: none;
color: #000;
font-size: 14px;
font-family: inherit;
line-height: 20px;
}
.search-box input::placeholder{
color: #999;
}

/* 07 文章列表 */
.post-list{
margin: 0 0 20px;
}
.post-list li{
list-style: none;
margin: 0;
padding: 0;
}

/* 置顶标记 */
.sticky-tag{
display: inline-block;
margin-left: 10px;
padding: 5px 10px;
border: 1px solid #999;
color: #999;
font-size: 12px;
line-height: 1.5;
}

/* 08 密码保护 */
.post-password{
padding: 20px;
background: #f5f5f5;
border-radius: 4px;
}
.post-password h2{
margin: 0 0 20px;
}
.password-error{
margin: 0 0 20px;
color: #d00;
font-size: 12px;
}
.form-row{
display: flex;
gap: 10px;
}
.form-row input{
flex: 1;
min-width: 0;
padding: 10px 15px;
border: 1px solid #ddd;
border-radius: 4px;
background: #fff;
color: #000;
font-size: 14px;
font-family: inherit;
line-height: 20px;
transition: border-color .2s ease;
}
.form-row input:focus{
border-color: #000;
outline: none;
}
.form-row input::placeholder{
color: #999;
}
.btn{
flex: 0 0 auto;
padding: 10px 20px;
border: 1px solid #000;
border-radius: 4px;
background: #000;
color: #fff;
font-size: 14px;
font-family: inherit;
line-height: 20px;
cursor: pointer;
transition: background-color .2s ease, color .2s ease;
}
.btn:hover{
background: #fff;
color: #000;
}

/* 09 分页 */
.pager{
margin: 0 0 20px;
font-size: 12px;
line-height: 1.8;
}
.pager > *{
display: inline-block;
margin: 0 8px 0 0;
padding: 4px 10px;
border: 1px solid #eee;
border-radius: 4px;
color: #999;
}
.pager a:hover{
background: #fff;
border-color: #000;
color: #000;
}
.pager .current{
background: #fff;
border-color: #000;
color: #000;
font-weight: bold;
}
.pager .is-disabled{
border-color: #f5f5f5;
color: #ccc;
}
.pager .pager-gap{
border-color: transparent;
color: #ccc;
}

/* 10 页脚 */
.site-footer{
margin-top: 40px;
padding-top: 20px;
border-top: 1px solid #ddd;
font-size: 12px;
}
.site-footer p{
margin: 0;
}
.footer-copy{
color: #ccc;
}
.footer-icp a:not(:last-child){
margin-right: 20px;
}
.site-footer a{
border-bottom: none;
color: #ccc;
}
.site-footer a:hover{
background: none;
color: #000;
}

/* 11 动画 */
@keyframes fadeIn{
from{
opacity: 0;
}
to{
opacity: 1;
}
}

/* 12 响应式 */
@media (max-width: 720px){
body{
padding: 20px;
}
.paper{
padding: 30px;
}
.form-row{
flex-direction: column;
}
.form-row input{
font-size: 16px;
}
.search-box input{
font-size: 16px;
}
.btn{
align-self: flex-end;
}
.pager{
gap: 10px;
}
.tooltip{
display: none;
}
#search-toggle:checked ~ .search-box{
width: 100px;
}
}
