:root {
--primary-color: #0080FF;
--secondary-color: #f8f9fa;
--text-color: #333;
--light-text: #666;
--border-color: #e0e0e0;
--shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

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

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

a:hover {
color: #0059b3;
}

/* 导航栏样式 */
.navbar {
background-color: white;
box-shadow: var(--shadow);
position: sticky;
top: 0;
z-index: 1000;
}

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

.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(--text-color);
font-weight: 500;
padding: 10px 0;
position: relative;
}

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

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

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

.hamburger {
display: none;
cursor: pointer;
font-size: 24px;
}

/* 面包屑导航 */
.breadcrumb {
max-width: 1200px;
margin: 20px auto 0;
padding: 0 20px;
}

.breadcrumb-list {
display: flex;
list-style: none;
background: white;
padding: 15px 20px;
border-radius: 8px;
box-shadow: var(--shadow);
}

.breadcrumb-item {
font-size: 14px;
color: var(--light-text);
}

.breadcrumb-item:not(:last-child)::after {
content: "›";
margin: 0 10px;
color: var(--light-text);
}

.breadcrumb-item:last-child {
color: var(--primary-color);
font-weight: 500;
}

/* 主要内容区域 */
.container {
max-width: 1200px;
margin: 20px auto;
padding: 0 20px;
display: grid;
grid-template-columns: 3fr 1fr;
gap: 30px;
}

.section {
margin-bottom: 30px;
}

.section-title {
font-size: 20px;
margin-bottom: 15px;
padding-bottom: 8px;
border-bottom: 2px solid var(--primary-color);
display: inline-block;
}

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

.tag-item {
background: white;
padding: 12px 15px;
text-align: center;
border-radius: 8px;
box-shadow: var(--shadow);
transition: all 0.3s ease;
font-size: 14px;
}

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

/* 文章列表 */
.article-list {
background: white;
border-radius: 8px;
overflow: hidden;
box-shadow: var(--shadow);
}

.article-item {
display: flex;
padding: 20px;
border-bottom: 1px solid var(--border-color);
transition: background 0.3s ease;
}

.article-item:hover {
background: #f9f9f9;
}

.article-thumbnail {
width: 180px;
height: 120px;
border-radius: 6px;
overflow: hidden;
margin-right: 20px;
flex-shrink: 0;
}

.article-thumbnail img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.5s ease;
}

.article-item:hover .article-thumbnail img {
transform: scale(1.05);
}

.article-info {
flex: 1;
}

.article-title {
font-size: 18px;
margin-bottom: 10px;
line-height: 1.4;
}

.article-meta {
display: flex;
color: var(--light-text);
font-size: 14px;
margin-bottom: 10px;
}

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

.author::before {
content: "👤";
margin-right: 5px;
}

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

.views::before {
content: "👁️";
margin-right: 5px;
}

.article-desc {
color: var(--light-text);
font-size: 14px;
line-height: 1.5;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}

/* 分页 */
.pagination {
display: flex;
justify-content: center;
padding: 20px;
}

.pagination-list {
display: flex;
list-style: none;
}

.pagination-item {
margin: 0 5px;
}

.pagination-link {
display: block;
padding: 8px 15px;
background: white;
border: 1px solid var(--border-color);
border-radius: 4px;
color: var(--text-color);
transition: all 0.3s ease;
}

.pagination-link:hover, .pagination-link.active {
background: var(--primary-color);
color: white;
border-color: var(--primary-color);
}

/* 侧边栏 */
.sidebar {
display: flex;
flex-direction: column;
gap: 30px;
}

.sidebar-section {
background: white;
border-radius: 8px;
padding: 20px;
box-shadow: var(--shadow);
}

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

.sidebar-item {
padding: 10px 0;
border-bottom: 1px solid var(--border-color);
}

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

.sidebar-link {
color: var(--text-color);
transition: color 0.3s ease;
display: block;
font-size: 14px;
line-height: 1.4;
}

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

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

footer a{
color: white;
}

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

.nav-menu {
position: fixed;
left: -100%;
top: 70px;
flex-direction: column;
background-color: white;
width: 100%;
text-align: center;
transition: 0.3s;
box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
z-index: 999;
}

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

.nav-item {
margin: 0;
border-bottom: 1px solid #f0f0f0;
}

.nav-link {
display: block;
padding: 15px;
}

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

.container {
grid-template-columns: 2fr 1fr;
}

.copyright {
display: none;
}

.breadcrumb-list {
flex-wrap: wrap;
}

.breadcrumb-item {
margin-bottom: 5px;
}
}

@media (max-width: 768px) {
.container {
grid-template-columns: 1fr;
gap: 20px;
}

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

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

.article-thumbnail {
width: 100%;
height: 200px;
margin-right: 0;
margin-bottom: 15px;
}

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

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

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

.pagination-list {
flex-wrap: wrap;
justify-content: center;
}

.pagination-item {
margin-bottom: 5px;
}
}