:root {
--primary-color: #00caca;
--primary-dark: #00a8a8;
--text-color: #333;
--light-bg: #f9f9f9;
--card-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
--hover-shadow: 0 8px 16px rgba(0, 202, 202, 0.2);
}

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

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

a {
text-decoration: none;
color: inherit;
}

/* 导航栏样式 */
.navbar {
background-color: var(--primary-color);
padding: 1rem 5%;
position: sticky;
top: 0;
z-index: 1000;
}

.nav-container {
max-width: 1200px;
			margin: 0 auto;
			padding: 0 1rem;
			display: flex;
justify-content: space-between;
align-items: center;
}

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

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

.nav-links li {
margin-left: 1.5rem;
}

.nav-links a {
color: white;
padding: 0.5rem;
transition: all 0.3s ease;
}

.nav-links a:hover {
background-color: var(--primary-dark);
border-radius: 4px;
}

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

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

/* 内容区域通用样式 */
.container {
max-width: 1200px;
margin: 2rem auto;
padding: 0 1rem;
}

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

/* 最新文章样式 */
.latest-articles {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 1.5rem;
margin-bottom: 3rem;
}

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

.article-card:hover {
transform: translateY(-5px);
box-shadow: var(--hover-shadow);
}

.article-content {
padding: 1.2rem;
}

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

.article-excerpt {
color: #666;
margin-bottom: 1rem;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
}

.article-meta {
color: #888;
font-size: 0.9rem;
display: flex;
align-items: center;
}

.article-meta::before {
content: "📅";
margin-right: 0.3rem;
}

/* 推荐文章样式 */
.featured-articles {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 1rem;
margin-bottom: 3rem;
}

.featured-article {
height: 250px;
border-radius: 8px;
overflow: hidden;
position: relative;
background-size: cover;
background-position: center;
box-shadow: var(--card-shadow);
transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

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

/* 热门文章样式 */
.popular-articles {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 1.5rem;
margin-bottom: 3rem;
}

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

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

.popular-content {
padding: 1.2rem;
}

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

.popular-excerpt {
color: #666;
margin-bottom: 1rem;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}

.popular-meta {
display: flex;
justify-content: space-between;
color: #888;
font-size: 0.9rem;
}

.popular-date::before {
content: "📅";
margin-right: 0.3rem;
}

.popular-views::before {
content: "👀";
margin-right: 0.3rem;
}

/* 文字介绍样式 */
.intro-section {
background: var(--light-bg);
padding: 2rem;
border-radius: 8px;
margin-bottom: 3rem;
box-shadow: var(--card-shadow);
}

.intro-content {
line-height: 1.8;
text-align: justify;
}

/* 友情链接样式 */
.links-section {
background: var(--light-bg);
padding: 2rem;
border-radius: 8px;
margin-bottom: 3rem;
box-shadow: var(--card-shadow);
}

.links-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
gap: 1rem;
}

.link-item {
padding: 0.5rem;
background: white;
border-radius: 4px;
text-align: center;
transition: all 0.3s ease;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.link-item:hover {
background: var(--primary-color);
color: white;
transform: translateY(-3px);
}

/* 页脚样式 */
footer {
background-color: var(--primary-color);
color: white;
text-align: center;
padding: 1.5rem;
margin-top: 2rem;
}

/* 响应式设计 */
@media (max-width: 1024px) {
.nav-links {
display: none;
flex-direction: column;
width: 100%;
position: absolute;
top: 100%;
left: 0;
background-color: var(--primary-dark);
padding: 1rem 0;
}

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

.nav-links li {
margin: 0.5rem 0;
text-align: center;
}

.hamburger {
display: flex;
}

.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;
}

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

.popular-date,
.popular-views {
margin-bottom: 0.5rem;
}
}

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