::selection {
background-color: #ec6969;
color: #fff;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html, body {
height: 100%;
}
body {
font-size: 18px;
font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Microsoft YaHei', 'Source Han Sans SC', 'Noto Sans CJK SC', 'WenQuanYi Micro Hei', sans-serif;
line-height: 1.6;
color: #333;
background-color: #fff;
max-width: 750px;
margin: 0 auto;
padding: 40px 20px;
}
a {
color: #eb5757;
text-decoration: none;
transition: all 0.2s ease;
}
a:hover {
color: #d64545;
text-decoration: underline;
}
.site-nav {
margin-bottom: 40px;
text-align: center;
}
.site-nav a {
user-select: none;
color: #333;
text-decoration: none;
margin: 0 15px;
font-size: 14px;
transition: all 0.2s ease;
}
.site-nav a:hover {
color: #eb5757;
text-decoration: underline;
}
.site-nav a.current {
cursor: default;
text-decoration: underline;
}
.site-nav a.current:hover {
color: #333;
}
.page-header {
text-align: center;
margin-bottom: 40px;
}
.page-header h1 {
font-size: 28px;
font-weight: 400;
margin-bottom: 10px;
}
.article-list {
margin-top: 20px;
}
.article-item {
margin-bottom: 20px;
padding-bottom: 20px;
border-bottom: 1px solid #eee;
display: flex;
align-items: center;
gap: 20px;
}
.article-item:last-child {
border-bottom: none;
}
.article-link {
text-decoration: none;
color: inherit;
flex: 1;
}
.article-link:hover h2 {
color: #eb5757;
text-decoration: underline;
}
.post-date {
font-size: 14px;
color: #666;
min-width: 80px;
text-align: left;
}
.article-item h2 {
font-size: 18px;
font-weight: 400;
line-height: 1.4;
margin: 0;
}
.back-to-home {
position: fixed;
top: 20px;
left: 20px;
z-index: 1000;
}
.back-to-home a {
color: #666;
text-decoration: none;
display: flex;
align-items: center;
justify-content: center;
width: 32px;
height: 32px;
border-radius: 50%;
background-color: rgba(255, 255, 255, 0.9);
border: 1px solid #e0e0e0;
transition: all 0.2s ease;
}
.back-to-home a:hover {
background-color: rgba(240, 240, 240, 0.9);
transform: scale(1.1);
color: #eb5757;
}
.single-article {
padding-top: 40px;
padding-bottom: 40px;
}
.article-header {
margin-bottom: 40px;
text-align: center;
}
.article-header h1 {
font-size: 32px;
font-weight: 400;
line-height: 1.3;
margin-bottom: 15px;
}
.article-date {
font-size: 14px;
color: #666;
}
.article-content h2 {
font-size: 26px;
margin-top: 32px;
margin-bottom: 16px;
line-height: 1.3;
}
.article-content h3 {
font-size: 21px;
margin-top: 24px;
margin-bottom: 12px;
line-height: 1.4;
}
.article-content h4 {
font-size: 18px;
margin-top: 20px;
margin-bottom: 8px;
}
.article-content h5 {
font-size: 16px;
margin-top: 16px;
margin-bottom: 8px;
}
.article-content {
line-height: 1.8;
font-size: 16px;
}
.article-content p {
margin-bottom: 20px;
}
.article-content a {
color: #333;
text-decoration: underline;
transition: color 0.2s ease;
}
.article-content a:hover {
color: #eb5757;
text-decoration: underline;
}
.article-content img {
max-width: 100%;
height: auto;
display: block;
margin: 20px 0;
}
.article-content code {
background-color: #f4f4f4;
padding: 2px 4px;
border-radius: 3px;
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
font-size: 0.9em;
}
.article-content pre {
background-color: #f6f5f4;
line-height: 20px;
font-size: 14px;
padding: 14px;
border-radius: 5px;
overflow-x: auto;
margin: 20px 0;
&::-webkit-scrollbar {
width: 4px;
height: 4px;
}
&::-webkit-scrollbar-track {
background-color: transparent;
border-radius: 2px;
}
&::-webkit-scrollbar-thumb {
background-color: #eb5757;
border-radius: 2px;
}
&::-webkit-scrollbar-thumb:hover {
background-color: #c73c3c;
}
&::-webkit-scrollbar-corner {
background-color: transparent;
}
}
.article-content pre code {
background-color: transparent;
padding: 0;
border-radius: 0;
font-size: 0.9em;
}
.article-content h2,
.article-content h3 {
margin: 30px 0 15px 0;
font-weight: 400;
}
.article-content ul,
.article-content ol {
margin-bottom: 20px;
padding-left: 30px;
}
.article-content li {
margin-bottom: 8px;
word-wrap: break-word;
}
.article-content blockquote {
margin: 20px 0;
padding: 10px 20px;
border-left: 4px solid #eb5757;
background-color: #f8f9fa;
color: #555;
}
.article-content blockquote p {
margin-bottom: 0;
}
.article-content blockquote p:last-child {
margin-bottom: 0;
}
.pagination {
margin-top: 40px;
text-align: center;
}
.pagination a {
color: #333;
text-decoration: none;
margin: 0 10px;
font-size: 14px;
transition: all 0.2s ease;
}
.pagination a:hover {
color: #eb5757;
text-decoration: underline;
}
@media (max-width: 768px) {
body {
padding: 20px 15px;
}
.article-header h1 {
font-size: 24px;
}
.page-header h1 {
font-size: 24px;
}
}