/* 基础样式 */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
font-family: 'Helvetica Neue', Arial, sans-serif;
line-height: 1.6;
color: #333;
background-color: #f9f9f9;
}

a {
text-decoration: none;
color: inherit;
transition: all 0.3s ease;
}

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

/* 导航栏样式 */
.navbar {
background-color: #02DF82;
padding: 15px 0;
position: sticky;
top: 0;
z-index: 1000;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

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

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

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

.nav-link {
color: white;
padding: 5px 10px;
border-radius: 3px;
}

.nav-link:hover {
background-color: rgba(255, 255, 255, 0.2);
}

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

/* 面包屑导航 */
.breadcrumb {
padding: 15px 0;
font-size: 0.9rem;
color: #666;
}

.breadcrumb a {
color: #02DF82;
}

.breadcrumb a:hover {
text-decoration: underline;
}

/* 主内容区域 */
.main-content {
display: flex;
gap: 30px;
margin: 20px 0 40px;
}

.content-left {
flex: 2;
}

.content-right {
flex: 1;
}

/* 内容区域样式 */
.section {
margin-bottom: 30px;
padding: 20px;
background-color: white;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.section-title {
font-size: 1.3rem;
margin-bottom: 20px;
padding-bottom: 10px;
border-bottom: 2px solid #02DF82;
color: #333;
}

/* 标签列表样式 */
.tag-list {
display: grid;
grid-template-columns: repeat(6, 1fr);
gap: 15px;
}

.tag-item {
padding: 10px;
background-color: #f0f0f0;
border-radius: 4px;
text-align: center;
transition: all 0.3s ease;
}

.tag-item:hover {
background-color: #02DF82;
color: white;
transform: translateY(-3px);
}

/* 文章列表样式 */
.article-list {
display: grid;
gap: 25px;
}

.article-item {
display: flex;
padding: 15px;
border-radius: 6px;
background-color: #f9f9f9;
transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-item:hover {
transform: translateY(-5px);
box-shadow: 0 5px 15px rgba(2, 223, 130, 0.2);
}

.article-thumb {
flex-shrink: 0;
width: 150px;
height: 100px;
border-radius: 4px;
overflow: hidden;
margin-right: 15px;
background-color: #e0e0e0;
background-size: cover;
background-position: center;
}

.article-content {
flex: 1;
}

.article-title {
font-size: 1.1rem;
margin-bottom: 10px;
white-space: normal;
overflow: visible;
word-wrap: break-word;
}

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

.article-meta span {
margin-right: 15px;
}

.article-meta span::before {
margin-right: 5px;
}

.article-desc {
color: #555;
line-height: 1.5;
}

/* 侧边栏文章列表 */
.sidebar-list {
list-style: none;
}

.sidebar-item {
padding: 10px 0;
border-bottom: 1px solid #eee;
}

.sidebar-item:last-child {
border-bottom: none;
}

.sidebar-item a {
display: block;
padding: 5px 0;
}

.sidebar-item a:hover {
color: #02DF82;
}

/* 分页样式 */
.pagination {
display: flex;
justify-content: center;
margin-top: 30px;
}

.pagination a {
display: inline-block;
padding: 8px 15px;
margin: 0 5px;
background-color: #f0f0f0;
border-radius: 4px;
transition: all 0.3s ease;
}

.pagination a:hover {
background-color: #02DF82;
color: white;
}

.pagination .current {
background-color: #02DF82;
color: white;
}

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

/* 图标样式 */
.date-icon::before {
content: "📅";
}

.views-icon::before {
content: "👁️";
}

.author-icon::before {
content: "✍️";
}

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

.nav-menu {
position: fixed;
left: -100%;
top: 70px;
flex-direction: column;
background-color: #02DF82;
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 {
left: 0;
}

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

.tag-list {
grid-template-columns: repeat(4, 1fr);
}

.copyright {
display: none;
}
}

@media (max-width: 768px) {
.main-content {
flex-direction: column;
}

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

.article-item {
flex-direction: column;
}

.article-thumb {
width: 100%;
height: 150px;
margin-right: 0;
margin-bottom: 10px;
}

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

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

@media (max-width: 500px) {
.tag-list {
grid-template-columns: repeat(2, 1fr);
}

.article-list {
grid-template-columns: 1fr;
}
}