:root {
--color-bg: #fafafa;
--color-bg-alt: #ffffff;
--color-text: #1a1a2e;
--color-text-muted: #4a4a5a;
--color-primary: #0d7377;
--color-primary-hover: #14a3a8;
--color-border: #e2e2e2;
--color-accent: #e94560;
--shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
--shadow-md: 0 4px 12px rgba(0,0,0,0.1);
--radius: 8px;
--max-width: 1200px;
--content-width: 720px;
--font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
--font-serif: Georgia, "Times New Roman", serif;
} *, *::before, *::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
html {
font-size: 16px;
scroll-behavior: smooth;
-webkit-text-size-adjust: 100%;
}
body {
font-family: var(--font-sans);
font-size: 1rem;
line-height: 1.7;
color: var(--color-text);
background: var(--color-bg);
min-height: 100vh;
} a {
color: var(--color-primary);
text-decoration: none;
transition: color 0.2s ease;
}
a:hover {
color: var(--color-primary-hover);
} img {
max-width: 100%;
height: auto;
display: block;
} .container {
width: 100%;
max-width: var(--max-width);
margin: 0 auto;
padding: 0 20px;
} .site-header {
background: var(--color-bg-alt);
border-bottom: 1px solid var(--color-border);
position: sticky;
top: 0;
z-index: 100;
}
.header-inner {
display: flex;
align-items: center;
justify-content: space-between;
height: 64px;
}
.site-logo {
font-size: 1.5rem;
font-weight: 700;
color: var(--color-text);
}
.site-logo:hover {
color: var(--color-primary);
} .main-nav ul {
display: flex;
list-style: none;
gap: 8px;
}
.main-nav a {
display: block;
padding: 8px 16px;
color: var(--color-text);
font-weight: 500;
border-radius: var(--radius);
transition: background 0.2s ease, color 0.2s ease;
}
.main-nav a:hover,
.main-nav .current-menu-item a {
background: var(--color-primary);
color: #fff;
} .menu-toggle {
display: none;
background: none;
border: none;
cursor: pointer;
padding: 8px;
}
.menu-toggle span {
display: block;
width: 24px;
height: 2px;
background: var(--color-text);
margin: 5px 0;
transition: transform 0.3s ease, opacity 0.3s ease;
} .site-main {
padding: 40px 0;
}
.content-area {
display: grid;
grid-template-columns: 1fr 300px;
gap: 40px;
}
.primary-content {
min-width: 0;
} .post-card {
background: var(--color-bg-alt);
border-radius: var(--radius);
box-shadow: var(--shadow-sm);
margin-bottom: 24px;
overflow: hidden;
transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.post-card:hover {
box-shadow: var(--shadow-md);
transform: translateY(-2px);
}
.post-card-thumbnail {
aspect-ratio: 16/9;
overflow: hidden;
}
.post-card-thumbnail img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.3s ease;
}
.post-card:hover .post-card-thumbnail img {
transform: scale(1.03);
}
.post-card-content {
padding: 24px;
}
.post-card-meta {
display: flex;
align-items: center;
gap: 16px;
font-size: 0.875rem;
color: var(--color-text-muted);
margin-bottom: 12px;
}
.post-card-title {
font-size: 1.5rem;
font-weight: 700;
line-height: 1.3;
margin-bottom: 12px;
}
.post-card-title a {
color: var(--color-text);
}
.post-card-title a:hover {
color: var(--color-primary);
}
.post-card-excerpt {
color: var(--color-text-muted);
font-size: 0.9375rem;
} .single-post {
background: var(--color-bg-alt);
border-radius: var(--radius);
box-shadow: var(--shadow-sm);
padding: 40px;
}
.entry-header {
margin-bottom: 32px;
}
.entry-title {
font-size: 2.25rem;
font-weight: 800;
line-height: 1.2;
margin-bottom: 16px;
}
.entry-meta {
display: flex;
flex-wrap: wrap;
gap: 16px;
font-size: 0.875rem;
color: var(--color-text-muted);
}
.entry-meta span {
display: flex;
align-items: center;
gap: 6px;
}
.entry-thumbnail {
margin-bottom: 32px;
border-radius: var(--radius);
overflow: hidden;
}
.entry-content {
font-size: 1.0625rem;
line-height: 1.8;
}
.entry-content h2 {
font-size: 1.75rem;
font-weight: 700;
margin: 2em 0 1em;
}
.entry-content h3 {
font-size: 1.375rem;
font-weight: 600;
margin: 1.5em 0 0.75em;
}
.entry-content p {
margin-bottom: 1.5em;
}
.entry-content ul,
.entry-content ol {
margin: 1em 0 1.5em 1.5em;
}
.entry-content li {
margin-bottom: 0.5em;
}
.entry-content blockquote {
border-left: 4px solid var(--color-primary);
padding: 16px 24px;
margin: 1.5em 0;
background: var(--color-bg);
border-radius: 0 var(--radius) var(--radius) 0;
font-style: italic;
}
.entry-content pre {
background: #1a1a2e;
color: #e2e2e2;
padding: 20px;
border-radius: var(--radius);
overflow-x: auto;
font-size: 0.875rem;
margin: 1.5em 0;
}
.entry-content code {
background: var(--color-bg);
padding: 2px 6px;
border-radius: 4px;
font-size: 0.875em;
}
.entry-content pre code {
background: none;
padding: 0;
}
.entry-content img {
border-radius: var(--radius);
margin: 1.5em 0;
} .entry-tags,
.entry-categories {
margin-top: 32px;
padding-top: 24px;
border-top: 1px solid var(--color-border);
}
.entry-tags a,
.entry-categories a {
display: inline-block;
background: var(--color-bg);
padding: 6px 14px;
border-radius: 20px;
font-size: 0.875rem;
margin: 4px;
transition: background 0.2s ease;
}
.entry-tags a:hover,
.entry-categories a:hover {
background: var(--color-primary);
color: #fff;
} .sidebar {
display: flex;
flex-direction: column;
gap: 24px;
}
.widget {
background: var(--color-bg-alt);
border-radius: var(--radius);
box-shadow: var(--shadow-sm);
padding: 24px;
}
.widget-title {
font-size: 1.125rem;
font-weight: 700;
margin-bottom: 16px;
padding-bottom: 12px;
border-bottom: 2px solid var(--color-primary);
}
.widget ul {
list-style: none;
}
.widget li {
padding: 10px 0;
border-bottom: 1px solid var(--color-border);
}
.widget li:last-child {
border-bottom: none;
}
.widget a {
color: var(--color-text);
}
.widget a:hover {
color: var(--color-primary);
} .search-form {
display: flex;
}
.search-form input[type="search"] {
flex: 1;
padding: 12px 16px;
border: 1px solid var(--color-border);
border-radius: var(--radius) 0 0 var(--radius);
font-size: 1rem;
outline: none;
transition: border-color 0.2s ease;
}
.search-form input[type="search"]:focus {
border-color: var(--color-primary);
}
.search-form button {
padding: 12px 20px;
background: var(--color-primary);
color: #fff;
border: none;
border-radius: 0 var(--radius) var(--radius) 0;
cursor: pointer;
font-weight: 600;
transition: background 0.2s ease;
}
.search-form button:hover {
background: var(--color-primary-hover);
}  .pagination { 
display: flex; 
justify-content: center; 
gap: 8px; 
margin-top: 40px; 
flex-wrap: wrap; } 
.pagination a, 
.pagination span { 
display: flex; 
align-items: center; 
justify-content: center; 
min-width: 44px; 
height: 44px; 
padding: 0 16px; 
background: var(--color-bg-alt); 
border-radius: var(--radius); 
font-weight: 500; 
color: var(--color-text); 
transition: background 0.2s ease, color 0.2s ease; 
text-decoration: none; } 
.pagination a:hover, 
.pagination .current { 
background: var(--color-primary); 
color: #fff; 
} @media (max-width: 480px) { 
.pagination { 
gap: 4px; 
} 
.pagination a, 
.pagination span { 
min-width: 36px; 
height: 36px; 
padding: 0 10px; 
font-size: 0.875rem; 
} 
} .site-footer {
background: #1a1a2e;
color: #a0a0b0;
margin-top: 60px;
}
.footer-widgets {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 40px;
padding: 60px 0;
}
.footer-widgets .widget-title {
color: #fff;
border-bottom-color: var(--color-accent);
}
.footer-widgets a {
color: #d0d0e0;
}
.footer-widgets a:hover {
color: var(--color-accent);
}
.footer-bottom {
border-top: 1px solid #2a2a3e;
padding: 24px 0;
text-align: center;
font-size: 0.875rem;
} .breadcrumb {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 8px;
font-size: 0.875rem;
color: var(--color-text-muted);
margin-bottom: 24px;
}
.breadcrumb a {
color: var(--color-text-muted);
}
.breadcrumb a:hover {
color: var(--color-primary);
}
.breadcrumb-sep {
color: var(--color-border);
} .related-posts {
margin-top: 40px;
padding-top: 32px;
border-top: 1px solid var(--color-border);
}
.related-posts-title {
font-size: 1.25rem;
font-weight: 700;
margin-bottom: 20px;
}
.related-posts-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 20px;
}
.related-post-item {
background: var(--color-bg);
border-radius: var(--radius);
overflow: hidden;
}
.related-post-item img {
aspect-ratio: 16/10;
object-fit: cover;
}
.related-post-item h4 {
padding: 12px;
font-size: 0.9375rem;
font-weight: 600;
}
.related-post-item h4 a {
color: var(--color-text);
} .author-box {
display: flex;
gap: 20px;
background: var(--color-bg);
padding: 24px;
border-radius: var(--radius);
margin-top: 32px;
}
.author-avatar {
width: 80px;
height: 80px;
border-radius: 50%;
overflow: hidden;
flex-shrink: 0;
}
.author-avatar img {
width: 100%;
height: 100%;
object-fit: cover;
}
.author-info h4 {
font-size: 1.125rem;
font-weight: 700;
margin-bottom: 8px;
}
.author-info p {
font-size: 0.9375rem;
color: var(--color-text-muted);
} .comments-area {
margin-top: 40px;
padding-top: 32px;
border-top: 1px solid var(--color-border);
}
.comments-title {
font-size: 1.25rem;
font-weight: 700;
margin-bottom: 24px;
}
.comment-list {
list-style: none;
}
.comment {
padding: 20px;
background: var(--color-bg);
border-radius: var(--radius);
margin-bottom: 16px;
}
.comment-author {
font-weight: 600;
}
.comment-meta {
font-size: 0.875rem;
color: var(--color-text-muted);
margin-bottom: 12px;
}
.comment-reply-link {
font-size: 0.875rem;
font-weight: 500;
} .error-404 {
text-align: center;
padding: 80px 20px;
}
.error-404 h1 {
font-size: 8rem;
font-weight: 800;
color: var(--color-primary);
line-height: 1;
}
.error-404 p {
font-size: 1.25rem;
color: var(--color-text-muted);
margin: 20px 0 40px;
} .btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
padding: 12px 28px;
background: var(--color-primary);
color: #fff;
border-radius: var(--radius);
font-weight: 600;
font-size: 1rem;
cursor: pointer;
border: none;
transition: background 0.2s ease, transform 0.2s ease;
}
.btn:hover {
background: var(--color-primary-hover);
color: #fff;
transform: translateY(-1px);
}
.btn-outline {
background: transparent;
border: 2px solid var(--color-primary);
color: var(--color-primary);
}
.btn-outline:hover {
background: var(--color-primary);
color: #fff;
} @media (max-width: 1024px) {
.content-area {
grid-template-columns: 1fr;
}
.sidebar {
display: grid;
grid-template-columns: repeat(2, 1fr);
}
.footer-widgets {
grid-template-columns: repeat(2, 1fr);
}
}
@media (max-width: 768px) {
.header-inner {
height: 56px;
}
.menu-toggle {
display: block;
}
.main-nav {
position: fixed;
top: 56px;
left: 0;
right: 0;
background: var(--color-bg-alt);
border-bottom: 1px solid var(--color-border);
padding: 16px;
transform: translateY(-100%);
opacity: 0;
visibility: hidden;
transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}
.main-nav.active {
transform: translateY(0);
opacity: 1;
visibility: visible;
}
.main-nav ul {
flex-direction: column;
gap: 4px;
}
.main-nav a {
padding: 12px 16px;
}
.single-post {
padding: 24px;
}
.entry-title {
font-size: 1.75rem;
}
.related-posts-grid {
grid-template-columns: 1fr;
}
.sidebar {
grid-template-columns: 1fr;
}
.footer-widgets {
grid-template-columns: 1fr;
padding: 40px 0;
}
.author-box {
flex-direction: column;
text-align: center;
}
.author-avatar {
margin: 0 auto;
}
}
@media (max-width: 480px) {
.container {
padding: 0 16px;
}
.post-card-content {
padding: 16px;
}
.post-card-title {
font-size: 1.25rem;
}
.entry-content {
font-size: 1rem;
}
.error-404 h1 {
font-size: 5rem;
}
} @media print {
.site-header,
.sidebar,
.site-footer,
.pagination,
.related-posts,
.comments-area {
display: none;
}
.content-area {
display: block;
}
.single-post {
box-shadow: none;
padding: 0;
}
}