/* 基础样式重置 */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Helvetica Neue', Arial, sans-serif;
}

body {
background-color: #f9f9f9;
color: #333;
line-height: 1.6;
}

a {
text-decoration: none;
color: #01814A;
transition: color 0.3s ease;
}

a:hover {
color: #005a32;
}

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

/* 导航栏样式 */
nav {
background-color: #01814A;
padding: 15px 0;
position: sticky;
top: 0;
z-index: 1000;
}

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

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

.logo a{
color: white;
}

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

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

.nav-links a {
color: white;
font-weight: 500;
}

.nav-links a:hover {
color: #d4f0e3;
}

.hamburger {
display: none;
flex-direction: column;
cursor: pointer;
}

.hamburger span {
width: 25px;
height: 3px;
background-color: white;
margin: 2px 0;
border-radius: 2px;
transition: all 0.3s ease;
}

/* 内容区块通用样式 */
section {
padding: 40px 0;
border-bottom: 1px solid #eaeaea;
}

.section-title {
font-size: 1.8rem;
margin-bottom: 30px;
color: #01814A;
text-align: center;
}

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

.article-card {
background: white;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
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.15);
}

.article-content {
padding: 20px;
}

.article-title {
font-size: 1.2rem;
margin-bottom: 10px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

.article-meta {
color: #666;
font-size: 0.85rem;
margin-bottom: 15px;
display: flex;
align-items: center;
}

.article-meta span {
margin-right: 15px;
display: flex;
align-items: center;
}

/* 使用emoji作为日期图标 */
.date::before {
content: "📅"; /* 日历emoji */
margin-right: 5px;
font-style: normal;
}

.article-description {
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;
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-card:hover {
transform: scale(1.03);
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.featured-overlay {
position: absolute;
bottom: 0;
left: 0;
right: 0;
background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
padding: 20px;
color: white;
}

.featured-title {
font-size: 1.1rem;
margin-bottom: 8px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

.featured-title a {
color: white;
}

.featured-description {
font-size: 0.9rem;
opacity: 0.9;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}

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

.popular-card {
background: white;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
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.15);
}

.popular-content {
padding: 20px;
}

.popular-title {
font-size: 1.2rem;
margin-bottom: 15px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

.popular-meta {
display: flex;
justify-content: space-between;
margin-bottom: 15px;
color: #666;
font-size: 0.85rem;
}

.popular-meta span {
display: flex;
align-items: center;
}

/* 使用emoji作为阅读量图标 */
.views::before {
content: "👀"; /* 眼睛emoji */
margin-right: 5px;
font-style: normal;
}

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

/* 文字介绍部分 */
.intro-section {
background: white;
padding: 40px;
border-radius: 8px;
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
line-height: 1.8;
}

/* 友情链接部分 */
.friend-links {
display: flex;
flex-wrap: wrap;
gap: 15px;
}

.friend-links a {
padding: 8px 15px;
background: #f0f0f0;
border-radius: 4px;
transition: all 0.3s ease;
}

.friend-links a:hover {
background: #01814A;
color: white;
}

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

footer a {
color: white;
}

/* 响应式设计 */
@media (max-width: 1024px) {
/* 平板样式 */
.latest-articles,
.popular-articles {
grid-template-columns: 1fr;
}

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

.nav-links {
display: none;
position: absolute;
top: 100%;
left: 0;
right: 0;
background-color: #01814A;
flex-direction: column;
padding: 20px;
}

.nav-links.active {
display: flex;
}

.nav-links li {
margin: 10px 0;
}

.hamburger {
display: flex;
}

/* 完全隐藏友情链接部分（包括标题） */
.intro-section,
.friend-links-section,
.copyright {
display: none;
}
}

@media (max-width: 768px) {
/* 平板和手机共用样式 */
.section-title {
font-size: 1.5rem;
}

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

.popular-meta span {
margin-bottom: 5px;
}
}

@media (max-width: 500px) {
/* 手机样式 */
.featured-articles {
grid-template-columns: 1fr;
}

.intro-section {
padding: 20px;
}
}