/* 设置页面整体背景颜色、字体、行高、外边距和内边距 */
body {
    background: #F1F1F1;
    font-family: 'Arial Rounded MT Bold', Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* 定义页面主要内容区域的样式 */
.box {
    width: 90%; /* 宽度为父元素的90% */
    max-width: 700px; /* 最大宽度为700px */
    margin: 0 auto; /* 水平居中 */
    background: #FFF; /* 背景颜色为白色 */
    padding: 20px; /* 内边距为20px */
    box-shadow: 0px 0px 16px rgba(0,0,0,0.1); /* 添加阴影效果 */
    margin-top: 20px; /* 顶部外边距为20px */
    font-weight: 300; /* 字体粗细为300 */
    border-radius: 16px; /* 边框圆角为16px */
}

/* 定义.box内的标题样式 */
.box h1 {
    font-weight: 300; /* 字体粗细为300 */
    font-size: 1.5em; /* 字体大小为1.5倍 */
}

/* 定义文章列表的样式 */
.post-list {
    list-style: none; /* 去掉列表默认样式 */
    padding: 0; /* 去掉内边距 */
}

/* 定义文章列表项的样式 */
.post-list li {
    margin-bottom: 15px; /* 底部外边距为15px */
    padding: 15px; /* 内边距为15px */
    border-radius: 16px; /* 边框圆角为16px */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* 添加阴影效果 */
    overflow: hidden; /* 隐藏溢出内容 */
    transition: transform 0.2s ease-in-out; /* 定义动画效果 */
    background-size: cover; /* 背景图片覆盖整个元素 */
    background-position: center; /* 背景图片居中 */
    background-repeat: no-repeat; /* 背景图片不重复 */
    position: relative; /* 设置为相对定位 */
}

/* 定义文章列表项的伪元素样式，用于添加半透明黑色遮罩 */
.post-list li::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1; /* 设置层级 */
}

/* 定义文章列表项的鼠标悬停效果 */
.post-list li:hover {
    transform: scale(1.02); /* 放大1.02倍 */
}

/* 定义文章列表项内链接的样式 */
.post-list a {
    color: #FFF; /* 字体颜色为白色 */
    text-decoration: none; /* 去掉下划线 */
    font-weight: 600; /* 字体粗细为600 */
    font-size: 1.2em; /* 字体大小为1.2倍 */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); /* 添加文字阴影 */
    position: relative;
    z-index: 2; /* 设置层级 */
}

/* 定义文章列表项内链接的鼠标悬停效果 */
.post-list a:hover {
    text-decoration: underline; /* 添加下划线 */
}

/* 定义虚拟up主列表的样式 */
.vup-list {
    list-style: none; /* 去掉列表默认样式 */
    padding: 0; /* 去掉内边距 */
    display: flex; /* 设置为弹性布局 */
    flex-wrap: wrap; /* 允许换行 */
    justify-content: space-between; /* 两端对齐 */
}

/* 定义虚拟up主列表项的样式 */
.vup-list li {
    width: 24%; /* 宽度为24% */
    margin-bottom: 15px; /* 底部外边距为15px */
    padding: 15px; /* 内边距为15px */
    border-radius: 16px; /* 边框圆角为16px */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* 添加阴影效果 */
    overflow: hidden; /* 隐藏溢出内容 */
    transition: transform 0.2s ease-in-out; /* 定义动画效果 */
    background-size: cover; /* 背景图片覆盖整个元素 */
    background-position: center; /* 背景图片居中 */
    background-repeat: no-repeat; /* 背景图片不重复 */
    text-align: center; /* 文字居中 */
    position: relative; /* 设置为相对定位 */
}

/* 定义虚拟up主列表项的伪元素样式，用于添加半透明黑色遮罩 */
.vup-list li::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1; /* 设置层级 */
}

/* 定义虚拟up主列表项的鼠标悬停效果 */
.vup-list li:hover {
    transform: scale(1.02); /* 放大1.02倍 */
}

/* 定义虚拟up主列表项内链接的样式 */
.vup-list a {
    color: #FFF; /* 字体颜色为白色 */
    text-decoration: none; /* 去掉下划线 */
    font-weight: 600; /* 字体粗细为600 */
    font-size: 1.2em; /* 字体大小为1.2倍 */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); /* 添加文字阴影 */
    position: relative;
    z-index: 2; /* 设置层级 */
}

/* 定义虚拟up主列表项内链接的鼠标悬停效果 */
.vup-list a:hover {
    text-decoration: underline; /* 添加下划线 */
}

/* 定义模态框的样式 */
.modal {
    display: none; /* 默认不显示 */
    position: fixed; /* 设置为固定定位 */
    z-index: 9999; /* 设置层级 */
    left: 0;
    top: 0;
    width: 100%; /* 宽度为100% */
    height: 100%; /* 高度为100% */
    overflow: auto; /* 允许滚动 */
    background-color: rgba(0, 0, 0, 0.4); /* 背景颜色为半透明黑色 */
    opacity: 0; /* 初始透明度为0 */
    transition: opacity 0.3s ease; /* 定义动画效果 */
}

/* 定义模态框显示时的样式 */
.modal.show {
    display: block; /* 显示 */
    opacity: 1; /* 透明度为1 */
}

/* 定义模态框内容的样式 */
.modal-content {
    background-color: #fefefe; /* 背景颜色为白色 */
    margin: 15% auto; /* 垂直居中 */
    padding: 15px; /* 内边距为15px */
    border: 1px solid #888; /* 边框为1px灰色 */
    width: 90%; /* 宽度为90% */
    max-width: 600px; /* 最大宽度为600px */
    border-radius: 16px; /* 边框圆角为16px */
    box-shadow: 0px 0px 16px rgba(0,0,0,0.1); /* 添加阴影效果 */
    position: relative; /* 设置为相对定位 */
    opacity: 0; /* 初始透明度为0 */
    transform: scale(0.8); /* 初始缩放为0.8 */
    transition: opacity 0.3s ease, transform 0.3s ease; /* 定义动画效果 */
}

/* 定义模态框显示时的内容样式 */
.modal.show .modal-content {
    opacity: 1; /* 透明度为1 */
    transform: scale(1); /* 缩放为1 */
}

/* 定义模态框头部的样式 */
.modal-header {
    position: relative; /* 设置为相对定位 */
    height: 100px; /* 高度为100px */
    background-size: cover; /* 背景图片覆盖整个元素 */
    background-position: center; /* 背景图片居中 */
    border-top-left-radius: 16px; /* 左上角圆角为16px */
    border-top-right-radius: 16px; /* 右上角圆角为16px */
    overflow: hidden; /* 隐藏溢出内容 */
}

/* 定义关闭按钮的样式 */
.close {
    position: absolute; /* 设置为绝对定位 */
    top: 10px;
    right: 10px;
    width: 30px; /* 宽度为30px */
    height: 30px; /* 高度为30px */
    background-color: #f44336; /* 背景颜色为红色 */
    color: transparent; /* 字体颜色为透明 */
    font-size: 20px; /* 字体大小为20px */
    font-weight: bold; /* 字体加粗 */
    padding: 0; /* 去掉内边距 */
    border-radius: 50%; /* 边框圆角为50%，形成圆形 */
    cursor: pointer; /* 鼠标指针为手型 */
    display: flex; /* 设置为弹性布局 */
    align-items: center; /* 垂直居中 */
    justify-content: center; /* 水平居中 */
    z-index: 10; /* 设置层级 */
    transition: background-color 0.3s ease, transform 0.3s ease; /* 定义动画效果 */
}

/* 定义关闭按钮的伪元素样式，用于形成叉号 */
.close::before {
    content: '';
    width: 20px; /* 宽度为20px */
    height: 2px; /* 高度为2px */
    background: white; /* 背景颜色为白色 */
    position: absolute;
    transform: rotate(45deg); /* 旋转45度 */
    transition: background-color 0.3s ease, transform 0.3s ease; /* 定义动画效果 */
}

/* 定义关闭按钮的伪元素样式，用于形成叉号 */
.close::after {
    content: '';
    width: 20px; /* 宽度为20px */
    height: 2px; /* 高度为2px */
    background: white; /* 背景颜色为白色 */
    position: absolute;
    transform: rotate(-45deg); /* 旋转-45度 */
    transition: background-color 0.3s ease, transform 0.3s ease; /* 定义动画效果 */
}

/* 定义关闭按钮的鼠标悬停和焦点状态样式 */
.close:hover, .close:focus {
    background-color: #d32f2f; /* 背景颜色变为深红色 */
    transform: scale(1.2); /* 放大1.2倍 */
}

/* 定义关闭按钮的鼠标悬停和焦点状态下伪元素的样式 */
.close:hover::before, .close:focus::before,
.close:hover::after, .close:focus::after {
    transform: rotate(0deg); /* 旋转角度变为0度 */
}

/* 定义文章内容的样式 */
#post-content {
    text-align: left; /* 文字左对齐 */
}

/* 定义文章内容中图片的样式 */
#post-content img {
    max-width: 100%; /* 最大宽度为100% */
    height: auto; /* 高度自动 */
    display: block; /* 设置为块级元素 */
    margin: 10px 0; /* 上下外边距为10px */
}

/* 定义分页的样式 */
.pagination {
    display: flex; /* 设置为弹性布局 */
    justify-content: center; /* 水平居中 */
    margin-top: 20px; /* 顶部外边距为20px */
}

/* 定义分页按钮的样式 */
.page-button {
    background-color: #33b1ff; /* 背景颜色为蓝色 */
    color: white; /* 字体颜色为白色 */
    border: none; /* 去掉边框 */
    padding: 10px 20px; /* 内边距为10px 20px */
    margin: 0 10px; /* 左右外边距为10px */
    border-radius: 5px; /* 边框圆角为5px */
    cursor: pointer; /* 鼠标指针为手型 */
    transition: background-color 0.3s ease, transform 0.3s ease; /* 定义动画效果 */
}

/* 定义分页按钮的禁用状态样式 */
.page-button:disabled {
    background-color: #ccc; /* 背景颜色为灰色 */
    cursor: not-allowed; /* 鼠标指针为禁止状态 */
}

/* 定义分页按钮的鼠标悬停样式 */
.page-button:hover {
    background-color: #2a91d4; /* 背景颜色变为深蓝色 */
    transform: scale(1.05); /* 放大1.05倍 */
}

/* 定义分页信息的样式 */
.page-info {
    margin: 0 10px; /* 左右外边距为10px */
    font-size: 1em; /* 字体大小为1em */
    color: #333; /* 字体颜色为黑色 */
    line-height: 38px; /* 行高为38px */
    display: inline-block; /* 设置为行内块级元素 */
    vertical-align: middle; /* 垂直居中 */
}

/* 定义加载动画的样式 */
.loading-spinner {
    border: 8px solid #f3f3f3; /* 边框为8px灰色 */
    border-top: 8px solid #3498db; /* 上边框为8px蓝色 */
    border-radius: 50%; /* 边框圆角为50%，形成圆形 */
    width: 50px; /* 宽度为50px */
    height: 50px; /* 高度为50px */
    animation: spin 1s linear infinite; /* 定义旋转动画 */
    margin: 20px auto; /* 上下外边距为20px，水平居中 */
}

/* 定义旋转动画的关键帧 */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 隐藏滚动条 */
::-webkit-scrollbar {
    display: none;
}
html {
    scrollbar-width: none;
}
body {
    -ms-overflow-style: none;
}

/* 定义小屏幕下的样式 */
@media (max-width: 768px) {
    body {
        font-size: 14px; /* 字体大小为14px */
    }
    .box {
        padding: 15px; /* 内边距为15px */
    }
    .box h1 {
        font-size: 1.2em; /* 字体大小为1.2倍 */
    }
}

/* 定义加载动画的样式 */
.css-loader {
    display: flex; /* 设置为弹性布局 */
    flex-direction: column; /* 设置为列方向 */
    align-items: center; /* 水平居中 */
    transform: translate(0%, -35%); /* 精准居中 */
    gap: 12px; /* 设置子元素之间的间距 */
    padding: 20px; /* 内边距为20px */
}

/* 定义加载动画中的旋转圆圈的样式 */
.spinner {
    width: 50px; /* 宽度为40px */
    height: 50px; /* 高度为40px */
    border: 8px solid rgba(0,0,0,0.1); /* 边框为3px半透明黑色 */
    border-top-color: #2196F3; /* 上边框为蓝色 */
    border-radius: 50%; /* 边框圆角为50%，形成圆形 */
    animation: spin 1s linear infinite; /* 定义旋转动画 */
}

/* 定义加载动画中的文字的样式 */
.loading-text {
    color: #666; /* 字体颜色为灰色 */
    font-size: 14px; /* 字体大小为14px */
    animation: pulse 1.5s ease-in-out infinite; /* 定义闪烁动画 */
}

/* 定义旋转动画的关键帧 */
@keyframes spin { to { transform: rotate(360deg); } }

/* 定义闪烁动画的关键帧 */
@keyframes pulse { 
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; } 
}