* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html {
font-size: 16px;
line-height: 1.6;
}
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
color: #333;
background-color: #f8f9fa;
} .site-container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
} .site-header {
background: #fff;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
position: sticky;
top: 0;
z-index: 1000;
}
.header-content {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px 0;
}
.site-branding h1 {
font-size: 1.8rem;
margin: 0;
}
.site-branding h1 a {
text-decoration: none;
color: #2c3e50;
}
.site-branding p {
color: #7f8c8d;
margin: 5px 0 0 0;
font-size: 0.9rem;
} .main-navigation ul {
display: flex;
list-style: none;
gap: 30px;
}
.main-navigation a {
text-decoration: none;
color: #34495e;
font-weight: 500;
padding: 5px 0;
position: relative;
}
.main-navigation a:hover {
color: #3498db;
}
.main-navigation .current-menu-item a {
color: #e74c3c;
border-bottom: 2px solid #e74c3c;
} .content-area {
display: flex;
gap: 40px;
margin: 40px 0;
} .main-content {
flex: 1;
min-width: 0; } .article-post {
background: #fff;
border-radius: 8px;
padding: 30px;
margin-bottom: 30px;
box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.article-header h2 {
font-size: 1.5rem;
margin-bottom: 15px;
line-height: 1.3;
}
.article-header h2 a {
text-decoration: none;
color: #2c3e50;
}
.article-header h2 a:hover {
color: #3498db;
}
.post-meta {
color: #7f8c8d;
font-size: 0.9rem;
margin-bottom: 15px;
display: flex;
gap: 20px;
flex-wrap: wrap;
}
.post-meta span {
display: inline-flex;
align-items: center;
gap: 5px;
}
.article-thumbnail {
margin-bottom: 20px;
overflow: hidden;
border-radius: 6px;
}
.article-thumbnail img {
width: 100%;
height: auto;
display: block;
transition: transform 0.3s ease;
}
.article-thumbnail img:hover {
transform: scale(1.02);
}
.article-content {
font-size: 1rem;
line-height: 1.7;
}
.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 {
margin: 1.5em 0 0.8em 0;
color: #2c3e50;
line-height: 1.3;
}
.article-content h1 { font-size: 1.8rem; }
.article-content h2 { font-size: 1.5rem; }
.article-content h3 { font-size: 1.3rem; }
.article-content h4 { font-size: 1.1rem; }
.article-content p {
margin-bottom: 1.2em;
}
.article-content ul,
.article-content ol {
margin: 1em 0 1em 2em;
}
.article-content blockquote {
border-left: 4px solid #3498db;
padding: 15px 20px;
margin: 1.5em 0;
background: #f8f9fa;
font-style: italic;
}
.read-more {
display: inline-block;
margin-top: 15px;
color: #3498db;
text-decoration: none;
font-weight: 500;
}
.read-more:hover {
text-decoration: underline;
} .sidebar {
width: 300px;
flex-shrink: 0;
}
.widget {
background: #fff;
border-radius: 8px;
padding: 25px;
margin-bottom: 30px;
box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.widget-title {
font-size: 1.2rem;
margin-bottom: 20px;
padding-bottom: 10px;
border-bottom: 2px solid #f1f2f6;
color: #2c3e50;
}
.widget ul {
list-style: none;
}
.widget ul li {
margin-bottom: 10px;
padding-bottom: 10px;
border-bottom: 1px solid #f1f2f6;
}
.widget ul li:last-child {
margin-bottom: 0;
border-bottom: none;
}
.widget a {
text-decoration: none;
color: #34495e;
}
.widget a:hover {
color: #3498db;
} .search-form {
display: flex;
gap: 10px;
}
.search-form input[type="search"] {
flex: 1;
padding: 10px 15px;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 1rem;
}
.search-form input[type="submit"] {
padding: 10px 20px;
background: #3498db;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
transition: background 0.3s ease;
}
.search-form input[type="submit"]:hover {
background: #2980b9;
} .site-footer {
background: #2c3e50;
color: #ecf0f1;
padding: 40px 0;
margin-top: 60px;
}
.footer-content {
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 20px;
}
.copyright {
font-size: 0.9rem;
color: #bdc3c7;
}
.footer-navigation ul {
display: flex;
list-style: none;
gap: 20px;
}
.footer-navigation a {
color: #ecf0f1;
text-decoration: none;
font-size: 0.9rem;
}
.footer-navigation a:hover {
color: #3498db;
} .pagination {
display: flex;
justify-content: center;
gap: 10px;
margin: 40px 0;
}
.pagination a,
.pagination span {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 40px;
height: 40px;
padding: 0 15px;
background: #fff;
border: 1px solid #ddd;
border-radius: 4px;
text-decoration: none;
color: #34495e;
transition: all 0.3s ease;
}
.pagination a:hover {
background: #3498db;
color: white;
border-color: #3498db;
}
.pagination .current {
background: #3498db;
color: white;
border-color: #3498db;
}@media screen and (max-width: 1024px) {
.site-container {
padding: 0 15px;
}
.content-area {
gap: 30px;
}
.sidebar {
width: 280px;
}
.header-content {
flex-direction: column;
text-align: center;
gap: 20px;
}
.main-navigation ul {
justify-content: center;
flex-wrap: wrap;
gap: 15px;
}
} @media screen and (max-width: 768px) {
html {
font-size: 15px;
}
.content-area {
flex-direction: column;
}
.sidebar {
width: 100%;
order: 2;
}
.main-content {
order: 1;
}
.main-navigation ul {
flex-direction: column;
align-items: center;
gap: 10px;
}
.footer-content {
flex-direction: column;
text-align: center;
gap: 15px;
}
.footer-navigation ul {
justify-content: center;
flex-wrap: wrap;
}
.article-post {
padding: 20px;
}
.widget {
padding: 20px;
}
.pagination {
flex-wrap: wrap;
}
.pagination a,
.pagination span {
min-width: 36px;
height: 36px;
padding: 0 10px;
font-size: 0.9rem;
}
} @media screen and (max-width: 480px) {
html {
font-size: 14px;
}
.site-container {
padding: 0 10px;
}
.header-content {
padding: 15px 0;
}
.content-area {
margin: 20px 0;
}
.article-post {
padding: 15px;
}
.widget {
padding: 15px;
}
.post-meta {
font-size: 0.85rem;
}
.article-header h2 {
font-size: 1.3rem;
}
.article-content h1 { font-size: 1.6rem; }
.article-content h2 { font-size: 1.4rem; }
.article-content h3 { font-size: 1.2rem; }
.article-content h4 { font-size: 1.1rem; }
} @media print {
.site-header,
.sidebar,
.main-navigation,
.footer-navigation,
.comments-area,
.post-meta .post-comments,
.read-more {
display: none;
}
body {
font-size: 12pt;
line-height: 1.5;
color: #000;
background: #fff;
}
.content-area {
display: block;
}
.main-content {
width: 100%;
}
a {
color: #000;
text-decoration: none;
}
.article-post {
box-shadow: none;
border: 1px solid #ddd;
}
}