* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: "Microsoft YaHei", sans-serif;
background: #f7f8fa;
color: #333;
line-height: 1.8;
}
a {
color: #1976D2;
text-decoration: none;
}
a:hover {
color: #0d47a1;
}
.container {
max-width: 1140px;
margin: 0 auto;
padding: 0 16px;
display: flex;
gap: 24px;
}
.content {
width: 72%;
}
.sidebar {
width: 28%;
} .header {
background: #fff;
padding: 20px 0;
box-shadow: 0 1px 3px rgba(0,0,0,0.05);
margin-bottom: 30px;
}
.header-inner {
display: flex;
justify-content: space-between;
align-items: center;
max-width: 1140px;
margin: 0 auto;
padding: 0 16px;
}
.logo {
font-size: 22px;
font-weight: bold;
}
.nav ul {
list-style: none;
display: flex;
gap: 20px;
}
.nav a {
font-size: 15px;
} .post {
background: #fff;
border-radius: 10px;
padding: 28px;
margin-bottom: 22px;
box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.title {
font-size: 21px;
margin-bottom: 12px;
line-height: 1.5;
}
.meta {
font-size: 13px;
color: #888;
margin-bottom: 16px;
}
.excerpt {
font-size: 15px;
color: #444;
line-height: 1.9;
} .pagination {
text-align: center;
margin: 30px 0;
}
.pagination a,
.pagination span {
display: inline-block;
padding: 8px 14px;
background: #fff;
border-radius: 6px;
margin: 0 4px;
font-size: 14px;
}
.pagination .current {
background: #1976D2;
color: #fff;
} .single {
background: #fff;
border-radius: 10px;
padding: 32px;
margin-bottom: 24px;
}
.single-title {
font-size: 26px;
margin-bottom: 16px;
}
.single-content {
margin: 32px 0;
font-size: 16px;
line-height: 2;
}
.single-content p {
margin-bottom: 24px;
} .page-nav {
display: flex;
justify-content: space-between;
background: #fff;
padding: 18px;
border-radius: 8px;
margin-bottom: 24px;
} .related, .like {
background: #fff;
padding: 22px;
border-radius: 10px;
margin-bottom: 22px;
}
.related h3, .like h3 {
font-size: 18px;
margin-bottom: 16px;
padding-bottom: 10px;
border-bottom: 1px solid #eee;
}
.related ul, .like ul {
list-style: none;
}
.related li, .like li {
padding: 10px 0;
border-bottom: 1px dashed #eee;
} .comments {
background: #fff;
padding: 24px;
border-radius: 10px;
margin-top: 24px;
}
.comment-form input,
.comment-form textarea {
width: 100%;
padding: 12px;
margin-bottom: 12px;
border: 1px solid #ddd;
border-radius: 6px;
}
.comment-form .submit {
background: #1976D2;
color: #fff;
border: none;
padding: 12px 24px;
border-radius: 6px;
cursor: pointer;
} .widget {
background: #fff;
padding: 22px;
border-radius: 10px;
margin-bottom: 22px;
}
.widget h3 {
font-size: 17px;
margin-bottom: 16px;
padding-bottom: 10px;
border-bottom: 1px solid #eee;
}
.widget ul {
list-style: none;
}
.widget li {
padding: 8px 0;
border-bottom: 1px dashed #eee;
} .footer {
background: #2d3748;
color: #fff;
text-align: center;
padding: 28px 0;
margin-top: 40px;
} @media (max-width: 992px) {
.container {
flex-direction: column;
}
.content, .sidebar {
width: 100%;
}
}
@media (max-width: 768px) {
.nav ul {
flex-wrap: wrap;
gap: 12px;
}
.page-nav {
flex-direction: column;
gap: 10px;
}
}