* {
margin: 0;
padding: 0;
box-sizing: border-box;
transition: background-color 0.25s ease, color 0.2s ease, border-color 0.2s, opacity 0.2s;
} :root {
--bg-body: #000000;
--text-primary: #ffffff;
--bg-header: #000000;
--bg-topbar: #050505;
--border-light: #222222;
--accent: #5fd738;
--accent-hover: #4bc22a;
--ad-bg: #1a1a1a;
--card-bg: #111111;
--footer-bg: #0c0c0c;
--scrollbar-thumb: #2c2c2c;
--radius-md: 16px;
--radius-lg: 24px;
} body.light-mode {
--bg-body: #ffffff;
--text-primary: #111111;
--bg-header: #f8f8f8;
--bg-topbar: #fefefe;
--border-light: #e0e0e0;
--accent: #5fd738;
--accent-hover: #4bc22a;
--ad-bg: #fef5e8;
--card-bg: #f5f5f5;
--footer-bg: #f0f0f0;
--scrollbar-thumb: #cccccc;
}
body {
background-color: var(--bg-body);
color: var(--text-primary);
font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
line-height: 1.5;
scroll-behavior: smooth;
margin: 0;
padding: 0;
}
.site-container {
width: 100%;
max-width: 100%;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
min-height: 100vh;
background-color: var(--bg-body);
}
::-webkit-scrollbar {
width: 8px;
}
::-webkit-scrollbar-track {
background: var(--bg-body);
}
::-webkit-scrollbar-thumb {
background: var(--scrollbar-thumb);
border-radius: 10px;
} .screen-reader-text {
border: 0;
clip: rect(1px, 1px, 1px, 1px);
clip-path: inset(50%);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
width: 1px;
word-wrap: normal !important;
}
.screen-reader-text:focus {
background-color: var(--bg-topbar);
border-radius: 4px;
box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.2);
clip: auto !important;
clip-path: none;
color: var(--text-primary);
display: block;
font-size: 1rem;
font-weight: bold;
height: auto;
left: 5px;
line-height: normal;
padding: 15px 23px 14px;
text-decoration: none;
top: 5px;
width: auto;
z-index: 100000;
} a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus,
[tabindex]:focus {
outline: 2px solid var(--accent);
outline-offset: 2px;
} .nav-menu a:focus {
outline-offset: 0;
outline: 2px solid var(--accent);
border-radius: 4px;
} .top-bar {
background: var(--bg-topbar);
border-bottom: 1px solid var(--border-light);
padding: 0.8rem 2rem;
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
gap: 1rem;
width: 100%;
position: relative;
z-index: 100;
}
.date-box {
font-weight: 600;
background: rgba(95, 215, 56, 0.12);
padding: 0.3rem 1rem;
border-radius: 40px;
font-size: 0.9rem;
color: var(--accent);
} .hamburger {
display: none;
background: transparent;
border: none;
font-size: 1.8rem;
color: var(--accent);
cursor: pointer;
z-index: 1001;
}
.nav-menu {
display: flex;
gap: 2rem;
list-style: none;
transition: all 0.3s ease;
}
.nav-menu li a {
text-decoration: none;
font-weight: 600;
color: var(--text-primary);
transition: color 0.2s;
font-size: 1.05rem;
}
.nav-menu li a:hover,
.nav-menu li a.active,
.nav-menu li.current-menu-item a {
color: var(--accent);
} .nav-menu li {
position: relative;
}
.nav-menu ul.sub-menu {
position: absolute;
top: 100%;
left: 0;
background: var(--bg-topbar);
border: 1px solid var(--border-light);
border-radius: 8px;
padding: 0.5rem 0;
min-width: 200px;
opacity: 0;
visibility: hidden;
transform: translateY(-10px);
transition: all 0.2s ease;
z-index: 1000;
list-style: none;
}
.nav-menu li:hover > ul.sub-menu {
opacity: 1;
visibility: visible;
transform: translateY(0);
}
.nav-menu ul.sub-menu li {
margin: 0;
padding: 0;
}
.nav-menu ul.sub-menu li a {
display: block;
padding: 0.5rem 1rem;
font-size: 0.9rem;
} .submenu-toggle {
display: none;
margin-left: 0.5rem;
font-size: 0.9rem;
color: var(--accent);
cursor: pointer;
padding: 0.3rem;
transition: transform 0.2s;
}
.menu-item-has-children.open-submenu .submenu-toggle i {
transform: rotate(180deg);
} .right-tools {
display: flex;
align-items: center;
gap: 1rem;
}
.search-wrapper {
position: relative;
display: flex;
align-items: center;
justify-content: flex-end;
width: auto;
}
.search-icon {
background: transparent;
border: none;
font-size: 1.5rem;
cursor: pointer;
color: var(--accent);
transition: opacity 0.2s ease, transform 0.2s;
padding: 0.3rem;
opacity: 1;
pointer-events: auto;
}
.search-input {
position: absolute;
right: 0;
top: 50%;
transform: translateY(-50%);
width: 0;
opacity: 0;
visibility: hidden;
background: var(--bg-topbar);
border: 1px solid var(--accent);
border-radius: 50px;
padding: 0.5rem 1rem;
font-size: 0.9rem;
color: var(--text-primary);
transition: all 0.25s ease 0.05s;
outline: none;
pointer-events: none;
} .search-wrapper.search-open .search-input {
width: 220px;
opacity: 1;
visibility: visible;
pointer-events: auto;
box-shadow: 0 0 6px rgba(95, 215, 56, 0.3);
} @media (hover: hover) {
.search-wrapper:hover .search-icon {
opacity: 0;
pointer-events: none;
transform: scale(0.9);
}
.search-wrapper:hover .search-input {
width: 220px;
opacity: 1;
visibility: visible;
pointer-events: auto;
box-shadow: 0 0 6px rgba(95, 215, 56, 0.3);
}
} .theme-toggle-icon {
background: transparent;
border: none;
font-size: 1.5rem;
cursor: pointer;
color: var(--accent);
transition: transform 0.2s;
padding: 0.3rem;
display: flex;
align-items: center;
}
.theme-toggle-icon:hover {
transform: scale(1.05);
} .site-header {
height: 200px;
background: #000000;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
border-bottom: 1px solid var(--border-light);
width: 100%;
}
.logo-placeholder {
font-size: 2.2rem;
font-weight: 800;
letter-spacing: 2px;
color: var(--accent);
text-transform: uppercase;
}
.logo-placeholder span {
color: white;
}
body.light-mode .logo-placeholder span {
color: #111;
} .custom-logo-link {
display: inline-block;
max-width: 200px;
max-height: 200px;
}
.custom-logo {
width: auto;
height: auto;
max-width: 200px;
max-height: 200px;
object-fit: contain;
} .main-content {
max-width: 880px;
width: 90%;
margin: 2rem auto;
background: var(--card-bg);
padding: 2rem;
flex: 1;
border-radius: var(--radius-lg);
box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.main-content h2 {
font-size: 2rem;
margin-bottom: 1rem;
color: var(--accent);
border-left: 5px solid var(--accent);
padding-left: 1rem;
}
.content-card {
background: var(--bg-body);
padding: 1rem 1.5rem;
margin: 1rem 0;
border: 1px solid var(--border-light);
border-radius: var(--radius-md);
overflow: auto;
}
.content-card h3 {
margin-bottom: 0.5rem;
color: var(--accent);
}
.content-card .post-meta {
font-size: 0.8rem;
opacity: 0.7;
margin-bottom: 0.8rem;
}
.content-card .read-more {
display: inline-block;
margin-top: 0.8rem;
color: var(--accent);
text-decoration: none;
font-weight: 600;
}
.content-card .read-more:hover {
text-decoration: underline;
} .home-thumbnail {
float: left;
width: 150px;
height: 150px;
margin-right: 1.2rem;
border-radius: 12px;
overflow: hidden;
}
.home-thumbnail img {
width: 100%;
height: 100%;
object-fit: cover;
} .ad-container {
margin: 1.5rem 0;
text-align: center;
background: var(--ad-bg);
border-radius: 12px;
overflow: hidden;
}
.ad-728x90 {
width: 100%;
max-width: 728px;
height: auto;
min-height: 90px;
margin: 0 auto;
background: var(--ad-bg);
display: flex;
align-items: center;
justify-content: center;
position: relative;
border: 1px solid var(--border-light);
border-radius: 8px;
}
.ad-label {
position: absolute;
bottom: 4px;
right: 8px;
font-size: 0.65rem;
background: rgba(0,0,0,0.5);
padding: 2px 6px;
border-radius: 20px;
color: #ddd;
}
.ad-content {
padding: 1rem;
}
.ad-content p {
margin: 0;
}
.demo-ad-btn {
background: var(--accent);
border: none;
padding: 0.5rem 1.2rem;
border-radius: 40px;
font-weight: bold;
color: #000;
cursor: pointer;
transition: 0.2s;
margin-top: 0.5rem;
}
.demo-ad-btn:hover {
background: var(--accent-hover);
} .top-button {
position: fixed;
bottom: 28px;
right: 28px;
background: var(--accent);
color: #000;
width: 50px;
height: 50px;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.8rem;
cursor: pointer;
opacity: 0;
visibility: hidden;
transition: 0.2s;
z-index: 1090;
border-radius: 30px;
border: none;
box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.top-button.show {
opacity: 1;
visibility: visible;
}
.top-button:hover {
background: var(--accent-hover);
transform: scale(1.05);
} .site-footer {
background: var(--footer-bg);
border-top: 1px solid var(--border-light);
margin-top: 2rem;
width: 100%;
padding: 2.5rem 2rem 1.5rem;
}
.footer-inner {
max-width: 1200px;
margin: 0 auto;
width: 100%;
}
.footer-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
gap: 2rem;
margin-bottom: 2rem;
}
.footer-col h3 {
color: var(--accent);
font-size: 1.3rem;
margin-bottom: 1rem;
font-weight: 600;
}
.footer-col p, .footer-col ul {
font-size: 0.9rem;
line-height: 1.5;
color: var(--text-primary);
opacity: 0.85;
}
.footer-col ul {
list-style: none;
padding: 0;
}
.footer-col ul li {
margin-bottom: 0.5rem;
}
.footer-col a {
color: var(--text-primary);
text-decoration: none;
transition: color 0.2s;
}
.footer-col a:hover {
color: var(--accent);
}
.contact-email {
display: inline-flex;
align-items: center;
gap: 8px;
background: rgba(95, 215, 56, 0.1);
padding: 0.3rem 1rem;
border-radius: 40px;
margin-top: 0.5rem;
}
.copyright {
border-top: 1px solid var(--border-light);
padding-top: 1.5rem;
font-size: 0.8rem;
display: flex;
justify-content: space-between;
flex-wrap: wrap;
gap: 0.8rem;
} .pagination {
display: flex;
justify-content: center;
gap: 0.5rem;
margin-top: 2rem;
}
.pagination a, .pagination span {
padding: 0.5rem 1rem;
border: 1px solid var(--border-light);
border-radius: 8px;
text-decoration: none;
color: var(--text-primary);
transition: 0.2s;
}
.pagination a:hover, .pagination .current {
background: var(--accent);
color: #000;
border-color: var(--accent);
} .single-post .post-thumbnail {
margin-bottom: 1.5rem;
border-radius: var(--radius-md);
overflow: hidden;
}
.single-post .post-thumbnail img {
width: 100%;
height: auto;
display: block;
}
.single-post .post-title {
font-size: 2.2rem;
margin-bottom: 0.5rem;
color: var(--accent);
}
.single-post .post-meta {
margin-bottom: 1rem;
opacity: 0.7;
font-size: 0.9rem;
}
.single-post .post-content {
line-height: 1.7;
}
.single-post .post-content p {
margin-bottom: 1rem;
}
.single-post .post-content img {
max-width: 100%;
height: auto;
border-radius: var(--radius-md);
}
.post-tags {
margin: 1.5rem 0;
padding: 0.8rem;
background: var(--card-bg);
border-radius: var(--radius-md);
} .related-posts {
margin-top: 3rem;
padding-top: 2rem;
border-top: 2px solid var(--border-light);
}
.related-posts h3 {
font-size: 1.8rem;
color: var(--accent);
margin-bottom: 1.5rem;
border-left: 5px solid var(--accent);
padding-left: 1rem;
}
.related-main {
display: flex;
gap: 1.5rem;
margin-bottom: 2rem;
background: var(--card-bg);
border-radius: var(--radius-md);
overflow: hidden;
border: 1px solid var(--border-light);
}
.related-main-thumb {
flex: 0 0 250px;
}
.related-main-thumb img {
width: 100%;
height: auto;
display: block;
border-radius: 20px;
aspect-ratio: 1 / 1;
object-fit: cover;
}
.related-main-content {
flex: 1;
padding: 1rem 1rem 1rem 0;
}
.related-main-title {
font-size: 1.4rem;
margin-bottom: 0.5rem;
}
.related-main-title a {
color: var(--accent);
text-decoration: none;
}
.related-main-excerpt {
opacity: 0.8;
font-size: 0.9rem;
}
.related-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 1.2rem;
}
.related-item {
background: var(--card-bg);
border-radius: var(--radius-md);
overflow: hidden;
border: 1px solid var(--border-light);
transition: transform 0.2s;
}
.related-item:hover {
transform: translateY(-4px);
}
.related-item-thumb {
border-radius: 16px;
overflow: hidden;
}
.related-item-thumb img {
width: 100%;
height: auto;
display: block;
border-radius: 16px; aspect-ratio: 1 / 1;
object-fit: cover;
}
.related-item-title {
padding: 0.8rem;
font-size: 0.9rem;
font-weight: 600;
}
.related-item-title a {
color: var(--text-primary);
text-decoration: none;
}
.related-item-title a:hover {
color: var(--accent);
} .comments-area {
margin-top: 2rem;
padding-top: 1rem;
border-top: 1px solid var(--border-light);
}
.comment-list {
list-style: none;
margin-top: 1rem;
}
.comment {
padding: 1rem;
border: 1px solid var(--border-light);
border-radius: var(--radius-md);
margin-bottom: 1rem;
}
.comment-author {
font-weight: bold;
color: var(--accent);
}
.comment-meta {
font-size: 0.8rem;
opacity: 0.6;
margin-bottom: 0.5rem;
} #submit,
button[type="submit"],
.comment-form .submit {
background: var(--accent);
color: #000;
border: none;
padding: 0.8rem 1.8rem;
border-radius: 40px;
font-weight: bold;
cursor: pointer;
transition: background 0.2s;
}
#submit:hover,
button[type="submit"]:hover,
.comment-form .submit:hover {
background: var(--accent-hover);
} @media (max-width: 768px) {
.hamburger {
display: block;
}
.nav-menu {
position: fixed;
top: 0;
left: -100%;
width: 70%;
max-width: 280px;
height: 100vh;
background: var(--bg-topbar);
flex-direction: column;
padding: 5rem 2rem 2rem;
gap: 1.5rem;
z-index: 1000;
box-shadow: 2px 0 20px rgba(0,0,0,0.3);
border-right: 1px solid var(--border-light);
transition: left 0.3s ease;
}
.nav-menu.open {
left: 0;
}
.nav-menu li a {
font-size: 1.2rem;
}
.nav-menu ul.sub-menu {
position: static;
opacity: 1;
visibility: visible;
transform: none;
border: none;
padding-left: 1rem;
background: transparent;
box-shadow: none;
display: none;
}
.nav-menu li.menu-item-has-children.open-submenu > ul.sub-menu {
display: block;
}
.nav-menu li {
position: static;
}
.submenu-toggle {
display: inline-block;
}
.nav-menu li.menu-item-has-children > a {
display: inline-block;
}
.top-bar {
flex-wrap: nowrap;
justify-content: space-between;
}
.date-box {
font-size: 0.75rem;
padding: 0.2rem 0.6rem;
}
.right-tools {
gap: 0.5rem;
}
.site-header {
height: 150px;
}
.logo-placeholder {
font-size: 1.5rem;
}
.top-button {
bottom: 16px;
right: 16px;
width: 44px;
height: 44px;
}
.footer-grid {
grid-template-columns: 1fr;
text-align: center;
}
.contact-email {
justify-content: center;
}
.home-thumbnail {
width: 100px;
height: 100px;
margin-right: 1rem;
}
.related-main {
flex-direction: column;
}
.related-main-thumb {
flex-basis: auto;
}
.related-main-thumb img {
height: auto;
}
.related-main-content {
padding: 0 1rem 1rem;
}
.related-grid {
grid-template-columns: repeat(2, 1fr);
}
}
@media (max-width: 480px) {
.main-content {
padding: 1.2rem;
}
.home-thumbnail {
float: none;
margin: 0 0 1rem 0;
width: 100%;
height: auto;
}
.home-thumbnail img {
width: 100%;
height: auto;
}
.related-grid {
grid-template-columns: 1fr;
}
}