aws / style.css
SADSADSADASD's picture
Create style.css
f7af6a4 verified
Raw History Blame Contribute Delete
1.19 kB
body {
font-family: 'Noto Serif SC', serif;
color: #333;
line-height: 1.6;
}
.container {
max-width: 960px;
margin: 0 auto;
}
/* 头部样式 */
header {
background-color: #fff;
padding: 20px 0;
border-bottom: 1px solid #ddd;
}
h1 {
font-size: 36px;
}
nav ul {
list-style: none;
}
nav li {
display: inline-block;
margin-left: 20px;
}
nav a {
color: #333;
text-decoration: none;
}
/* Hero区块 */
.hero {
background-color: #f4f4f4;
padding: 60px 0;
text-align: center;
}
.hero h2 {
font-size: 48px;
}
.btn {
display: inline-block;
background-color: #FF6B6B;
color: #fff;
padding: 12px 24px;
margin-top: 24px;
text-decoration: none;
border-radius: 4px;
transition: background-color 0.3s ease;
}
.btn:hover {
background-color: #ee5253;
}
/* 博文列表 */
.blog-posts {
padding: 40px 0;
}
article {
margin-bottom: 32px;
border-bottom: 1px solid #ddd;
padding-bottom: 32px;
}
article h3 {
font-size: 24px;
margin-bottom: 8px;
}
.meta {
color: #666;
}
.date, .category {
margin-right: 16px;
}
/* 页脚 */
footer {
text-align: center;
padding: 20px 0;
border-top: 1px solid #ddd;
color: #666;
}