:root {
--primary-color: #DFFFDF;
--secondary-color: #c9f0c9;
--text-color: #333333;
--link-color: #006600;
--hover-color: #009900;
--shadow: 0 2px 5px rgba(0,0,0,0.1);
}

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
font-family: 'Helvetica Neue', Arial, sans-serif;
line-height: 1.6;
color: var(--text-color);
background-color: var(--primary-color);
}

a {
text-decoration: none;
color: var(--link-color);
}

a:hover {
color: var(--hover-color);
}

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

/* 导航栏样式 */
header {
background-color: var(--secondary-color);
box-shadow: var(--shadow);
position: sticky;
top: 0;
margin-bottom: 30px;
z-index: 1000;
}

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

.logo {
font-size: 1.5rem;
font-weight: bold;
}

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

.nav-item {
margin-left: 20px;
}

.nav-link {
padding: 5px 10px;
transition: all 0.3s ease;
}

.nav-link:hover {
background-color: rgba(255, 255, 255, 0.3);
border-radius: 4px;
}

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

/* 主内容区样式 */
main {
padding: 30px 0;
}

.section {
margin-bottom: 40px;
}

.section-title {
font-size: 1.5rem;
margin-bottom: 20px;
padding-bottom: 10px;
border-bottom: 1px solid var(--secondary-color);
}

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

.article-card {
background-color: white;
border-radius: 8px;
padding: 20px;
box-shadow: var(--shadow);
transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.article-title {
font-size: 1.2rem;
margin-bottom: 10px;
line-height: 1.4;
}

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

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

.article-excerpt {
color: #555;
line-height: 1.6;
}

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

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

.featured-card:hover {
transform: scale(1.05);
}

.featured-card::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: 70%;
background: linear-gradient(transparent, rgba(0,0,0,0.7));
}

.featured-content {
position: absolute;
bottom: 0;
left: 0;
right: 0;
padding: 15px;
z-index: 2;
color: white;
}

.featured-title {
font-size: 1.1rem;
margin-bottom: 5px;
line-height: 1.3;
}

.featured-excerpt {
display: none;
}

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

.popular-card {
background-color: white;
border-radius: 8px;
padding: 20px;
box-shadow: var(--shadow);
transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.popular-title {
font-size: 1.2rem;
margin-bottom: 10px;
line-height: 1.4;
}

.popular-meta {
display: flex;
color: #666;
font-size: 0.9rem;
margin-bottom: 10px;
}

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

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

.popular-excerpt {
color: #555;
line-height: 1.6;
}

/* 文字介绍 */
.intro-section {
background-color: white;
border-radius: 8px;
padding: 30px;
box-shadow: var(--shadow);
line-height: 1.8;
}

/* 友情链接 */
.links-section {
background-color: white;
border-radius: 8px;
padding: 20px;
box-shadow: var(--shadow);
}

.links-list {
display: flex;
flex-wrap: wrap;
gap: 10px;
}

.link-item {
padding: 5px 10px;
background-color: var(--secondary-color);
border-radius: 4px;
transition: background-color 0.3s ease;
}

.link-item:hover {
background-color: #b0e0b0;
}

/* 页脚样式 */
footer {
background-color: var(--secondary-color);
padding: 20px 0;
text-align: center;
margin-top: 40px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
.hamburger {
display: block;
}

.nav-menu {
position: fixed;
top: 70px;
right: -100%;
flex-direction: column;
background-color: var(--secondary-color);
width: 100%;
text-align: center;
transition: 0.3s;
box-shadow: 0 10px 10px rgba(0,0,0,0.1);
padding: 20px 0;
}

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

.nav-item {
margin: 15px 0;
}

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

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

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

.featured-articles {
grid-template-columns: 1fr;
}

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

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

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