:root {
--primary-color: #82D900;
--text-color: #333;
--light-bg: #f9f9f9;
--border-color: #e0e0e0;
--hover-color: #6ab800;
}

* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Arial', sans-serif;
}

body {
color: var(--text-color);
line-height: 1.6;
}

.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 15px;
}

/* 导航栏样式 */
header {
background-color: white;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
position: sticky;
top: 0;
z-index: 1000;
}

.nav-container {
display: flex;
justify-content: space-between;
align-items: center;
padding: 15px;
}

.logo {
font-size: 1.5rem;
font-weight: bold;
color: var(--primary-color);
}

.logo a {
color: #333;
text-decoration: none;
}

.nav-menu {
display: flex;
list-style: none;
}

.nav-menu li {
margin-left: 25px;
}

.nav-menu a {
text-decoration: none;
color: var(--text-color);
transition: color 0.3s;
}

.nav-menu a:hover {
color: var(--primary-color);
}

.hamburger {
display: none;
cursor: pointer;
font-size: 1.5rem;
}

/* 内容区域样式 */
.section {
margin: 40px 0;
}

.section-title {
font-size: 1.8rem;
margin-bottom: 20px;
padding-bottom: 10px;
border-bottom: 2px solid var(--primary-color);
}

/* 最新文章列表 */
.latest-articles {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 30px;
}

.article-card {
background: white;
border-radius: 5px;
overflow: hidden;
box-shadow: 0 3px 10px rgba(0,0,0,0.1);
transition: transform 0.3s, box-shadow 0.3s;
}

.article-card:hover {
transform: translateY(-5px);
box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.article-content {
padding: 20px;
}

.article-title {
font-size: 1.2rem;
margin-bottom: 10px;
font-weight: normal;
}

.article-title a {
text-decoration: none;
color: var(--text-color);
}

.article-title a:hover {
color: var(--primary-color);
}

.article-meta {
color: #777;
font-size: 0.9rem;
margin-bottom: 10px;
}

.article-meta::before {
content: "📅 ";
}

.article-excerpt {
color: #555;
}

/* 推荐文章图片列表 */
.featured-articles {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 20px;
}

.featured-article {
height: 250px;
border-radius: 5px;
overflow: hidden;
position: relative;
background-size: cover;
background-position: center;
transition: transform 0.3s;
}

.featured-article:hover {
transform: scale(1.03);
}

.featured-overlay {
position: absolute;
bottom: 0;
left: 0;
right: 0;
background: rgba(0,0,0,0.7);
color: white;
padding: 15px;
}

.featured-title {
font-size: 1.1rem;
margin-bottom: 8px;
font-weight: normal;
}

.featured-title a {
color: white;
text-decoration: none;
}

.featured-title a:hover {
color: var(--primary-color);
}

.featured-excerpt {
display: none;
}

/* 热门文章列表 */
.popular-articles {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 25px;
}

.popular-article {
display: flex;
background: white;
border-radius: 5px;
overflow: hidden;
box-shadow: 0 3px 10px rgba(0,0,0,0.1);
transition: transform 0.3s;
}

.popular-article:hover {
transform: translateY(-5px);
}

.popular-content {
padding: 15px;
flex: 1;
}

.popular-title {
font-size: 1.1rem;
margin-bottom: 8px;
font-weight: normal;
}

.popular-title a {
text-decoration: none;
color: var(--text-color);
}

.popular-title a:hover {
color: var(--primary-color);
}

.popular-meta {
display: flex;
color: #777;
font-size: 0.85rem;
margin-bottom: 8px;
}

.popular-date::before {
content: "📅 ";
}

.popular-views::before {
content: "👁️ ";
margin-left: 15px;
}

.popular-excerpt {
color: #555;
font-size: 0.9rem;
}

/* 文字介绍和友情链接 */
.intro-section, .links-section {
background: white;
padding: 25px;
border-radius: 5px;
box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.intro-text {
line-height: 1.8;
}

.links-list {
display: flex;
flex-wrap: wrap;
gap: 15px;
margin-top: 15px;
}

.links-list a {
color: var(--primary-color);
text-decoration: none;
padding: 5px 10px;
border: 1px solid var(--border-color);
border-radius: 3px;
transition: all 0.3s;
}

.links-list a:hover {
background-color: var(--primary-color);
color: white;
}

/* 底部样式 */
footer {
background-color: #333;
color: white;
text-align: center;
padding: 20px 0;
margin-top: 40px;
}

footer a {
color: white;
text-decoration: none;
}

/* 响应式设计 */
@media (max-width: 1024px) {
.nav-menu {
position: fixed;
left: -100%;
top: 70px;
flex-direction: column;
background-color: white;
width: 100%;
text-align: center;
transition: 0.3s;
box-shadow: 0 10px 27px rgba(0,0,0,0.05);
padding: 20px 0;
}

.nav-menu.active {
left: 0;
}

.nav-menu li {
margin: 15px 0;
}

.hamburger {
display: block;
}

.latest-articles, .popular-articles {
grid-template-columns: 1fr;
}

.featured-articles {
grid-template-columns: repeat(2, 1fr);
}

.popular-meta {
flex-direction: column;
}

.popular-views::before {
margin-left: 0;
}

.intro-section,
.links-section,
.copyright {
display: none;
}
}

@media (max-width: 768px) {
.featured-articles {
grid-template-columns: 1fr;
}
}

@media (max-width: 500px) {
.featured-articles {
grid-template-columns: 1fr;
}
}