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

:root {
--primary-color: #FF359A;
--secondary-color: #ff70b8;
--light-color: #fff5f9;
--dark-color: #333;
--gray-color: #f0f0f0;
--text-color: #444;
--border-radius: 8px;
--box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
--transition: all 0.3s ease;
--section-padding: 60px 40px;
}

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

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

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

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

/* 导航样式 */
header {
background-color: #fff;
box-shadow: var(--box-shadow);
position: sticky;
top: 0;
z-index: 100;
}

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

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

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

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

.nav-link {
color: var(--dark-color);
font-weight: 500;
}

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

.hamburger {
display: none;
cursor: pointer;
font-size: 24px;
color: var(--dark-color);
}

/* 内容区块通用样式 */
section {
padding: var(--section-padding);
background-color: #fff;
margin-bottom: 30px;
border-radius: var(--border-radius);
box-shadow: var(--box-shadow);
}

.section-header {
text-align: center;
margin-bottom: 40px;
}

.section-title {
font-size: 28px;
color: var(--dark-color);
margin-bottom: 15px;
position: relative;
display: inline-block;
}

.section-title::after {
content: '';
position: absolute;
bottom: -10px;
left: 50%;
transform: translateX(-50%);
width: 60px;
height: 3px;
background-color: var(--primary-color);
}

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

.latest-article {
background: var(--light-color);
border-radius: var(--border-radius);
overflow: hidden;
transition: var(--transition);
}

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

.latest-article-content {
padding: 20px;
}

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

.latest-article-title a {
color: var(--dark-color);
}

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

.latest-article-excerpt {
margin-bottom: 15px;
color: #666;
overflow: hidden;
}

.latest-article-meta {
display: flex;
align-items: center;
font-size: 14px;
color: #888;
}

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

.latest-article-meta .date::before {
content: '📅';
margin-right: 5px;
}

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

.featured-article {
position: relative;
height: 250px;
border-radius: var(--border-radius);
overflow: hidden;
transition: var(--transition);
}

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

.featured-article-image {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-size: cover;
background-position: center;
transition: var(--transition);
}

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

.featured-article-overlay {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
padding: 20px;
background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
color: #fff;
}

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

.featured-article-title a {
color: #fff;
}

.featured-article-excerpt {
font-size: 14px;
opacity: 0.9;
height: 42px;
overflow: hidden;
}

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

.popular-article {
display: flex;
flex-direction: column;
background: var(--light-color);
border-radius: var(--border-radius);
overflow: hidden;
transition: var(--transition);
}

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

.popular-article-content {
padding: 20px;
flex-grow: 1;
}

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

.popular-article-title a {
color: var(--dark-color);
}

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

.popular-article-excerpt {
margin-bottom: 15px;
color: #666;
line-height: 1.5;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
}

.popular-article-meta {
display: flex;
justify-content: space-between;
font-size: 14px;
color: #888;
}

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

.popular-article-meta .date::before {
content: '📅';
margin-right: 5px;
}

.popular-article-meta .views::before {
content: '👀';
margin-right: 5px;
}

/* 文字介绍部分 */
.intro-content {
max-width: 1160px;
margin: 0 auto;
text-align: center;
font-size: 18px;
line-height: 1.8;
color: #555;
}

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

.friend-link {
padding: 8px 15px;
background: var(--light-color);
border-radius: 30px;
font-size: 14px;
transition: var(--transition);
}

.friend-link:hover {
background: var(--primary-color);
color: #fff;
}

.friend-link:hover a {
color: #fff;
}

/* 页脚 */
footer {
background: var(--dark-color);
color: #fff;
padding: 30px 0;
text-align: center;
}

.copyright {
font-size: 14px;
opacity: 0.8;
}

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

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

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

.hamburger {
display: block;
}

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

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

section {
padding: 50px 30px;
}

/* 完全隐藏友情链接模块 */
.intro-content,
.friend-links-section,
.copyright {
display: none;
}
}

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

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

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

section {
padding: 40px 20px;
}

/* 移动端调整热门文章描述显示 */
.popular-article-excerpt {
-webkit-line-clamp: 2;
}
}

@media (min-width: 769px) and (max-width: 1024px) {
.featured-articles {
grid-template-columns: repeat(2, 1fr);
}
}