::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;
}
.single-article .performance {
font-size: 11px;
color: #ddd;
}
.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;
display: inline-flex;
align-items: center;
vertical-align: middle;
}
.article-views {
font-size: 14px;
color: #ccc;
margin-left: 10px;
display: inline-flex;
align-items: center;
gap: 5px;
vertical-align: middle;
}
.article-views-icon {
width: 1em;
height: 1em;
}
.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;
} .comments-list {
list-style: none;
margin: 40px 0 30px;
padding: 0;
border-top: 1px solid #eee;
}
.comments-list > li {
padding: 20px 0;
border-bottom: 1px solid #eee;
}
.comments-list .comment-content {
display: flex;
gap: 12px;
}
.comments-list .comment-avatar img {
width: 48px;
height: 48px;
border-radius: 50%;
display: block;
}
.comments-list .comment-body {
flex: 1;
min-width: 0;
}
.comments-list .comment-header {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 8px;
font-size: 14px;
color: #666;
}
.comments-list .author a {
color: #333;
text-decoration: none;
}
.comments-list .author a:hover {
color: #eb5757;
text-decoration: underline;
}
.comments-list .bullet {
color: #ccc;
}
.comments-list .comment-awaiting-moderation {
display: inline-block;
margin: 0 0 10px;
padding: 4px 10px;
border: 1px solid #ffe1a8;
border-radius: 999px;
font-size: 13px;
line-height: 1.4;
color: #a06a00;
background-color: #fff7e6;
}
.comments-list .comment-message p {
margin: 0;
font-size: 16px;
line-height: 1.7;
color: #333;
}
.comments-list .comment-mention {
color: #eb5757;
text-decoration: none;
}
.comments-list .comment-mention:hover {
text-decoration: underline;
}
.comments-list .comment-message > div:first-child {
position: relative;
padding: 10px 14px;
border: 1px solid #eee;
border-radius: 10px;
background-color: #f8f8f8;
}
.comments-list .comment-message > div:first-child::before {
content: "";
position: absolute;
top: 14px;
left: -7px;
width: 0;
height: 0;
border-top: 6px solid transparent;
border-bottom: 6px solid transparent;
border-right: 7px solid #eee;
}
.comments-list .comment-message > div:first-child::after {
content: "";
position: absolute;
top: 14px;
left: -6px;
width: 0;
height: 0;
border-top: 6px solid transparent;
border-bottom: 6px solid transparent;
border-right: 7px solid #f8f8f8;
}
.comments-list > li.authcomment .comment-message > div:first-child {
border-color: #f3c4c4;
background-color: #fff5f5;
}
.comments-list > li.authcomment .comment-message > div:first-child::before {
border-right-color: #f3c4c4;
}
.comments-list > li.authcomment .comment-message > div:first-child::after {
border-right-color: #fff5f5;
}
.comments-list > li.authcomment .author a {
color: #d64545;
}
#commentform {
margin-top: 30px;
}
#commentform h4 {
margin: 0 0 20px;
font-size: 22px;
font-weight: 400;
}
.comment-form-group {
margin-bottom: 16px;
}
.control-label {
display: block;
margin-bottom: 6px;
font-size: 14px;
color: #666;
}
.form-control {
width: 100%;
padding: 10px 12px;
border: 1px solid #ddd;
border-radius: 4px;
font: inherit;
font-size: 16px;
line-height: 1.5;
color: #333;
background-color: #fff;
transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
textarea.form-control {
min-height: 120px;
resize: vertical;
}
.comment-input-wrap {
position: relative;
}
.comment-tip {
margin-top: 6px;
font-size: 13px;
color: #888;
}
.mention-suggest {
position: absolute;
top: calc(100% + 5px);
left: 0;
right: 0;
z-index: 20;
border: 1px solid #e9e9e9;
border-radius: 8px;
background-color: #fff;
box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
overflow: hidden;
}
.comment-form-horizontal.comment-form-logged .mention-suggest {
top: auto;
bottom: calc(100% + 5px);
}
.mention-suggest-list {
max-height: 220px;
overflow-y: auto;
scrollbar-width: thin;
scrollbar-color: #eb5757 transparent;
}
.mention-suggest-list::-webkit-scrollbar {
width: 4px;
}
.mention-suggest-list::-webkit-scrollbar-track {
background-color: transparent;
}
.mention-suggest-list::-webkit-scrollbar-thumb {
background-color: #eb5757;
border-radius: 2px;
}
.mention-suggest-list::-webkit-scrollbar-thumb:hover {
background-color: #d64545;
}
.mention-item {
display: block;
width: 100%;
border: 0;
border-top: 1px solid #f2f2f2;
background: transparent;
text-align: left;
padding: 8px 10px;
cursor: pointer;
}
.mention-item:first-child {
border-top: 0;
}
.mention-item:hover,
.mention-item.is-active {
background-color: #fff5f5;
}
.mention-main {
display: block;
font-size: 14px;
line-height: 1.4;
color: #333;
}
.mention-main em {
margin-left: 4px;
font-style: normal;
font-size: 12px;
color: #999;
}
.mention-sub {
display: block;
margin-top: 2px;
font-size: 12px;
line-height: 1.4;
color: #777;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.form-control:focus {
outline: none;
border-color: #eb5757;
box-shadow: 0 0 0 2px rgba(235, 87, 87, 0.12);
}
.btn-primary {
padding: 8px 16px;
border: 1px solid #eb5757;
border-radius: 4px;
font-size: 14px;
line-height: 1.4;
color: #fff;
background-color: #eb5757;
cursor: pointer;
transition: background-color 0.2s ease, border-color 0.2s ease;
}
.btn-primary:hover {
border-color: #d64545;
background-color: #d64545;
}
#custom-lightbox {
position: fixed;
top: 0; left: 0;
width: 100%; height: 100%;
z-index: 99999;
display: flex;
justify-content: center;
align-items: center;
}
.lightbox-overlay {
position: absolute;
width: 100%; height: 100%;
background: rgba(0, 0, 0, 0.85);
cursor: zoom-out;
}
#lightbox-display-img {
position: relative;
max-width: 90%;
max-height: 90%;
object-fit: contain;
box-shadow: 0 0 25px rgba(0,0,0,0.5);
border-radius: 4px;
z-index: 100000;
animation: lightboxZoom 0.25s ease-out;
user-select: none;
}
.lightbox-close-btn {
position: absolute;
top: 20px; right: 30px;
color: white;
font-size: 40px;
cursor: pointer;
z-index: 100001;
font-family: Arial, sans-serif;
}
@keyframes lightboxZoom {
from { opacity: 0; transform: scale(0.9); }
to { opacity: 1; transform: scale(1); }
}
.article-content img {
cursor: zoom-in;
}
@media (max-width: 768px) {
body {
padding: 20px 15px;
}
.article-header h1 {
font-size: 24px;
}
.page-header h1 {
font-size: 24px;
}
.article-content h2 {
font-size: 20px;
}
.comments-list .comment-avatar img {
width: 40px;
height: 40px;
}
#commentform h4 {
font-size: 20px;
}
}