/* 基础样式重置 */
* {
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;
}

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

.breadcrumb a {
color: #666;
}

.breadcrumb a:hover {
color: #01814A;
}

.breadcrumb span {
margin: 0 5px;
}

/* 主内容区布局 */
.main-content {
display: flex;
gap: 30px;
margin-top: 20px;
}

.left-column {
flex: 3;
}

.right-column {
flex: 1;
}

/* 内容区块通用样式 */
.section {
background: white;
border-radius: 8px;
padding: 20px;
margin-bottom: 30px;
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.section-title {
font-size: 1.4rem;
margin-bottom: 20px;
color: #01814A;
padding-bottom: 10px;
border-bottom: 1px solid #eaeaea;
}

/* 标签列表 */
.tag-list {
display: grid;
grid-template-columns: repeat(6, 1fr);
gap: 10px;
margin-bottom: 20px;
}

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

.tag-item:hover {
background: #01814A;
}

.tag-item:hover a {
color: white;
}

/* 文章列表 */
.article-list {
margin-bottom: 30px;
}

.article-item {
display: flex;
padding: 15px 0;
border-bottom: 1px solid #eaeaea;
transition: all 0.3s ease;
}

.article-item:hover {
background-color: #f9f9f9;
transform: translateX(5px);
}

.article-thumbnail {
flex: 0 0 150px;
margin-right: 20px;
}

.article-thumbnail img {
width: 100%;
height: 100px;
object-fit: cover;
border-radius: 4px;
}

.article-info {
flex: 1;
}

.article-title {
font-size: 1.1rem;
margin-bottom: 10px;
}

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

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

/* 使用emoji作为图标 */
.author::before {
content: "👤";
margin-right: 5px;
font-style: normal;
}

.date::before {
content: "📅";
margin-right: 5px;
font-style: normal;
}

.views::before {
content: "👀";
margin-right: 5px;
font-style: normal;
}

.article-description {
color: #555;
line-height: 1.6;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
}

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

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

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

.sidebar-item a {
display: block;
color: #333;
line-height: 1.5;
word-wrap: break-word;
}

.sidebar-item a:hover {
color: #01814A;
}

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

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

.pagination a:hover, .pagination a.active {
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) {
/* 平板样式 */
.tag-list {
grid-template-columns: repeat(4, 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;
}
}

@media (max-width: 768px) {
/* 平板和手机共用样式 */
.main-content {
flex-direction: column;
}

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

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

.article-item {
flex-direction: column;
border: 1px solid #eaeaea;
border-radius: 8px;
padding: 15px;
margin-bottom: 0;
}

.article-thumbnail {
flex: 0 0 auto;
margin-right: 0;
margin-bottom: 15px;
}

.article-thumbnail img {
height: 150px;
}

.article-meta {
flex-direction: column;
align-items: flex-start;
}

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

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

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

.section {
padding: 15px;
}
}