:root {
--brand-blue: #2f80ed;
--brand-hover: #3e8df4;
--bg-primary: #ffffff;
--bg-secondary: #f0f2f5;
--text-primary: #262626;
--text-secondary: #474747;
--text-tertiary: #777777;
--border-color: #dbdee2;
--radius: 12px;
--shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}
body.dark-mode {
--bg-primary: #121212;
--bg-secondary: #1a1a1a;
--text-primary: #ffffff;
--text-secondary: #cacaca;
--text-tertiary: #8b8b8b;
--border-color: #303030;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
margin: 0;
background-color: var(--bg-primary);
color: var(--text-secondary);
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
line-height: 1.6;
}
a { text-decoration: none; color: inherit; transition: 0.2s; }
a:hover { color: var(--brand-hover); }
.container {
max-width: 1140px;
margin: 0 auto;
padding: 0 20px;
}
header.site-header {
background-color: var(--bg-primary);
border-bottom: 1px solid var(--border-color);
position: sticky;
top: 0;
z-index: 1000;
}
.nav-wrap {
display: flex;
align-items: center;
justify-content: space-between;
height: 75px;
}
.site-logo {
font-weight: 800;
font-size: 22px;
color: var(--text-primary);
}
.site-logo span { color: var(--brand-blue); }
.site-logo-wrap img {
max-height: 24px;
width: auto;
display: block;
}
.nav-menu {
display: flex;
gap: 24px;
list-style: none;
margin: 0;
padding: 0;
font-weight: 600;
font-size: 15px;
}
.nav-menu a { color: var(--text-primary); transition: color 0.2s ease; }
.nav-menu a:hover,
.nav-menu a:focus,
.nav-menu a:active { color: #38BDF8; }
.nav-actions {
display: flex;
align-items: center;
gap: 16px;
}
.action-btn {
background: none;
border: none;
cursor: pointer;
color: var(--text-primary);
padding: 8px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 8px;
transition: background-color 0.2s, color 0.2s;
}
.action-btn:hover {
background-color: var(--bg-secondary);
color: var(--brand-blue);
}
.action-btn .icon {
width: 20px;
height: 20px;
} #themeToggle .icon-sun { display: none; }
#themeToggle .icon-moon { display: block; }
body.dark-mode #themeToggle .icon-sun { display: block; }
body.dark-mode #themeToggle .icon-moon { display: none; } .search-panel {
max-height: 0;
overflow: hidden;
background-color: var(--bg-primary);
border-bottom: 1px solid transparent;
transition: max-height 0.25s ease, border-color 0.25s ease;
}
.search-panel.is-open {
max-height: 90px;
border-bottom: 1px solid var(--border-color);
}
.search-form {
display: flex;
align-items: center;
gap: 12px;
padding: 18px 0;
}
.search-form .icon {
width: 20px;
height: 20px;
color: var(--text-tertiary);
flex-shrink: 0;
}
.search-field {
flex-grow: 1;
border: none;
outline: none;
background: none;
font-size: 16px;
color: var(--text-primary);
font-family: inherit;
}
.search-field::placeholder { color: var(--text-tertiary); }
.search-submit {
background-color: var(--brand-blue);
color: #fff;
border: none;
padding: 9px 20px;
border-radius: 8px;
font-weight: 600;
font-size: 13.5px;
cursor: pointer;
flex-shrink: 0;
}
.search-submit:hover { background-color: var(--brand-hover); } #navToggle { display: none; }
@media (max-width: 780px) {
#navToggle { display: inline-block; }
.nav-menu {
display: none;
position: absolute;
top: 75px;
left: 0;
right: 0;
flex-direction: column;
gap: 0;
background-color: var(--bg-primary);
border-bottom: 1px solid var(--border-color);
padding: 10px 20px;
}
.nav-menu.is-open { display: flex; }
.nav-menu li { border-bottom: 1px solid var(--border-color); }
.nav-menu li:last-child { border-bottom: none; }
.nav-menu a { display: block; padding: 12px 0; }
}
.content-layout {
display: grid;
grid-template-columns: 1fr 340px;
gap: 30px;
padding: 40px 0;
}
@media(max-width: 900px) {
.content-layout { grid-template-columns: 1fr; }
} .featured-section { padding: 30px 0; }
.featured-grid {
display: grid;
grid-template-columns: 2fr 1fr;
gap: 20px;
height: 440px;
}
.feat-card {
position: relative;
border-radius: 12px;
overflow: hidden;
background-color: #222;
display: flex;
align-items: flex-end;
}
.feat-card.main-feat { height: 100%; }
.feat-side-stack {
display: flex;
flex-direction: column;
gap: 20px;
height: 100%;
}
.feat-card.feat-small { flex: 1 1 0; min-height: 0; }
.feat-thumb {
position: absolute;
top: 0; left: 0;
width: 100%;
height: 100%;
object-fit: cover;
opacity: 0.85;
}
.feat-overlay {
position: absolute;
inset: 0;
background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.85) 100%);
}
.feat-content {
position: relative;
z-index: 2;
padding: 24px;
color: #ffffff;
width: 100%;
}
.feat-content-small { padding: 16px; }
.feat-badge {
display: inline-block;
padding: 4px 10px;
font-size: 11px;
font-weight: 700;
background-color: var(--brand-blue);
color: #ffffff;
border-radius: 4px;
margin-bottom: 10px;
text-transform: uppercase;
}
.feat-badge-small { padding: 3px 8px; font-size: 9px; margin-bottom: 6px; }
.feat-title-main {
font-size: 24px;
line-height: 1.3;
margin: 0 0 8px 0;
}
.feat-title-main a,
.feat-title-small a { color: #ffffff; text-decoration: none; }
.feat-title-small {
font-size: 14px;
line-height: 1.3;
margin: 0 0 6px 0;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.feat-excerpt {
font-size: 13.5px;
line-height: 1.5;
margin: 0 0 8px 0;
color: #e5e5e5;
}
.feat-meta { font-size: 12px; opacity: 0.8; }
.feat-meta-small { font-size: 11px; } @media (max-width: 780px) {
.featured-grid {
grid-template-columns: 1fr;
height: auto;
}
.feat-card.main-feat { height: 300px; }
.feat-side-stack {
flex-direction: row;
height: 190px;
}
.feat-title-main { font-size: 21px; }
} @media (max-width: 480px) {
.feat-card.main-feat { height: 260px; }
.feat-side-stack {
flex-direction: column;
height: auto;
}
.feat-card.feat-small {
flex: none;
height: 180px;
}
}
.section-title {
font-size: 28px;
color: var(--text-primary);
margin-bottom: 20px;
padding-bottom: 10px;
border-bottom: 2px solid var(--brand-blue);
display: inline-block;
}
.posts-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 20px;
}
@media(max-width: 600px) {
.posts-grid { grid-template-columns: 1fr; }
}
.post-card {
background-color: var(--bg-primary);
border: 1px solid var(--border-color);
border-radius: var(--radius);
overflow: hidden;
transition: transform 0.2s, box-shadow 0.2s;
display: flex;
flex-direction: column;
}
.post-card:hover {
transform: translateY(-4px);
box-shadow: var(--shadow);
}
.post-thumb img {
width: 100%;
height: 180px;
object-fit: cover;
}
.post-body {
padding: 20px;
display: flex;
flex-direction: column;
flex-grow: 1;
}
.post-title {
font-size: 21px;
color: var(--text-primary);
margin: 0 0 10px 0;
line-height: 1.4;
}
.post-excerpt {
font-size: 14px;
color: var(--text-secondary);
margin-bottom: 15px;
flex-grow: 1;
}
.post-meta {
font-size: 12px;
color: var(--text-tertiary);
display: flex;
justify-content: space-between;
align-items: center;
border-top: 1px solid var(--border-color);
padding-top: 12px;
} .meta-icon {
width: 13px;
height: 13px;
vertical-align: -2px;
margin-right: 2px;
}
.feat-meta .meta-icon { width: 13px; height: 13px; vertical-align: -2px; }
.feat-meta-small .meta-icon { width: 11px; height: 11px; vertical-align: -1px; }
.sidebar-widget {
background-color: var(--bg-primary);
border: 1px solid var(--border-color);
border-radius: var(--radius);
padding: 20px;
margin-bottom: 25px;
}
.sidebar-widget h3 {
font-size: 16px;
color: var(--text-primary);
margin-top: 0;
margin-bottom: 15px;
padding-bottom: 8px;
border-bottom: 1px solid var(--border-color);
}
.sidebar-list {
list-style: none;
padding: 0;
margin: 0;
}
.sidebar-list li {
padding: 10px 0;
border-bottom: 1px solid var(--border-color);
font-size: 14px;
}
.sidebar-list li:last-child { border-bottom: none; }
.sidebar-list a { color: var(--text-primary); font-weight: 500; }
.sidebar-list a:hover { color: var(--brand-blue); }
.comments-area .comment-list { list-style: none; }
.comments-area .comment-form input[type="text"],
.comments-area .comment-form input[type="email"],
.comments-area .comment-form input[type="url"],
.comments-area .comment-form textarea {
width: 100%;
padding: 10px 12px;
margin-bottom: 12px;
border: 1px solid var(--border-color);
border-radius: 8px;
background-color: var(--bg-primary);
color: var(--text-primary);
font-family: inherit;
font-size: 14px;
}
.comments-area .comment-form textarea { min-height: 120px; resize: vertical; }
.comments-area .comment-form .form-submit input[type="submit"] {
background-color: var(--brand-blue);
color: #fff;
border: none;
padding: 10px 22px;
border-radius: 8px;
font-weight: 600;
cursor: pointer;
}
.comments-area .comment-form .form-submit input[type="submit"]:hover {
background-color: var(--brand-hover);
} .pagination-wrap,
nav.pagination .nav-links {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
gap: 8px;
margin-top: 40px;
}
.pagination-wrap .page-numbers,
nav.pagination .page-numbers {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 40px;
height: 40px;
padding: 0 14px;
border: 1px solid var(--border-color);
border-radius: 10px;
color: var(--text-primary);
font-size: 14px;
font-weight: 600;
text-decoration: none;
background-color: var(--bg-primary);
transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.pagination-wrap a.page-numbers:hover,
nav.pagination a.page-numbers:hover {
background-color: var(--brand-blue);
border-color: var(--brand-blue);
color: #ffffff;
}
.pagination-wrap .page-numbers.current,
nav.pagination .page-numbers.current {
background-color: var(--brand-blue);
border-color: var(--brand-blue);
color: #ffffff;
}
.pagination-wrap .page-numbers.dots,
nav.pagination .page-numbers.dots {
border: none;
background: none;
color: var(--text-tertiary);
cursor: default;
}
.pagination-wrap .page-numbers.prev,
.pagination-wrap .page-numbers.next,
nav.pagination .page-numbers.prev,
nav.pagination .page-numbers.next {
width: auto;
padding: 0 18px;
font-weight: 600;
}
footer.site-footer {
background-color: var(--bg-secondary);
border-top: 1px solid var(--border-color);
padding: 40px 0 20px;
color: var(--text-tertiary);
font-size: 14px;
}
.footer-bottom {
text-align: center;
border-top: 1px solid var(--border-color);
margin-top: 30px;
padding-top: 20px;
}