:root {
--primary-color: #53FF53;
--dark-color: #1a1a1a;
--light-color: #f5f5f5;
--text-color: #333;
--border-radius: 8px;
--transition: all 0.3s ease;
}

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
font-family: 'Helvetica Neue', Arial, sans-serif;
line-height: 1.6;
color: var(--text-color);
background-color: var(--light-color);
}

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

/* 导航栏样式 */
.header {
background-color: var(--primary-color);
position: sticky;
top: 0;
z-index: 1000;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

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

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

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

.nav-link {
padding: 8px 0;
position: relative;
transition: var(--transition);
}

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

.nav-link::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 0;
height: 2px;
background-color: var(--dark-color);
transition: var(--transition);
}

.nav-link:hover::after {
width: 100%;
}

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

/* 主要内容区域 */
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}

.section {
margin: 30px 0;
}

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

/* 面包屑导航 */
.breadcrumb {
padding: 15px 0;
font-size: 0.9rem;
word-wrap: break-word;
overflow-wrap: break-word;
}

.breadcrumb a {
color: var(--primary-color);
}

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

/* 主内容布局 */
.main-content {
display: grid;
grid-template-columns: 2fr 1fr;
gap: 30px;
}

/* 左侧内容 */
.tag-list {
display: grid;
grid-template-columns: repeat(6, 1fr);
gap: 15px;
margin-bottom: 30px;
}

.tag-item {
background: white;
padding: 12px 8px;
text-align: center;
border-radius: var(--border-radius);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
transition: var(--transition);
font-size: 0.9rem;
word-wrap: break-word;
overflow-wrap: break-word;
}

.tag-item:hover {
background-color: var(--primary-color);
transform: translateY(-3px);
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

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

.list-item {
display: flex;
background: white;
border-radius: var(--border-radius);
padding: 20px;
margin-bottom: 20px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
transition: var(--transition);
}

.list-item:hover {
transform: translateY(-3px);
box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1);
}

.list-thumb {
width: 150px;
height: 100px;
border-radius: var(--border-radius);
overflow: hidden;
margin-right: 20px;
flex-shrink: 0;
}

.list-thumb img {
width: 100%;
height: 100%;
object-fit: cover;
}

.list-content {
flex: 1;
min-width: 0; /* 防止flex子元素溢出 */
}

.list-title {
font-size: 1.2rem;
margin-bottom: 10px;
line-height: 1.4;
word-wrap: break-word;
overflow-wrap: break-word;
}

.list-meta {
display: flex;
color: #666;
font-size: 0.9rem;
margin-bottom: 10px;
flex-wrap: wrap;
}

.list-meta-item {
margin-right: 15px;
display: flex;
align-items: center;
word-wrap: break-word;
overflow-wrap: break-word;
}

.list-meta-item::before {
margin-right: 5px;
}

.list-author::before {
content: "👤";
}

.list-date::before {
content: "📅";
}

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

.list-excerpt {
color: #555;
line-height: 1.5;
font-size: 0.95rem;
word-wrap: break-word;
overflow-wrap: break-word;
}

/* 翻页按钮 */
.pagination {
display: flex;
justify-content: center;
margin-top: 30px;
flex-wrap: wrap;
}

.page-item {
margin: 5px;
}

.page-link {
display: block;
padding: 8px 15px;
background: white;
border-radius: var(--border-radius);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
transition: var(--transition);
word-wrap: break-word;
overflow-wrap: break-word;
}

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

.page-link.active {
background-color: var(--primary-color);
font-weight: bold;
}

/* 右侧内容 */
.sidebar {
display: flex;
flex-direction: column;
gap: 30px;
}

.sidebar-section {
background: white;
border-radius: var(--border-radius);
padding: 20px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.sidebar-list {
list-style: none;
}

.sidebar-item {
padding: 10px 0;
border-bottom: 1px solid #eee;
transition: var(--transition);
word-wrap: break-word;
overflow-wrap: break-word;
}

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

.sidebar-item:hover {
color: var(--primary-color);
padding-left: 5px;
}

/* 底部 */
.footer {
background-color: var(--dark-color);
color: white;
text-align: center;
padding: 20px;
margin-top: 40px;
}

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

.nav-menu {
position: fixed;
top: 60px;
left: -100%;
width: 100%;
height: calc(100vh - 60px);
background-color: var(--primary-color);
flex-direction: column;
align-items: center;
justify-content: flex-start;
padding-top: 40px;
transition: var(--transition);
}

.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 {
grid-template-columns: 1fr;
}

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

.list-thumb {
width: 100%;
height: 180px;
margin-right: 0;
margin-bottom: 15px;
}

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

.list-meta {
flex-direction: row;
gap: 10px;
}

.sidebar-item {
padding: 8px 0;
}
}

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

.list-meta {
flex-direction: column;
gap: 5px;
}

.breadcrumb {
font-size: 0.85rem;
}

.list-title {
font-size: 1.1rem;
}

.sidebar-item {
font-size: 0.9rem;
}
}