:root {
--primary-color: #AE8F00;
--primary-dark: #8c7200;
--primary-light: #d6b500;
--text-color: #333;
--light-color: #f8f8f8;
--shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
--transition: all 0.3s ease;
}

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

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

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

/* 导航栏样式 */
header {
background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
box-shadow: var(--shadow);
position: sticky;
top: 0;
z-index: 1000;
margin-bottom: 40px;
}

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

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

.logo {
font-size: 24px;
font-weight: bold;
color: white;
text-transform: uppercase;
letter-spacing: 1px;
position: relative;
overflow: hidden;
padding: 5px 10px;
border-radius: 4px;
transition: var(--transition);
}

.logo::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
transition: left 0.5s ease;
}

.logo:hover::before {
left: 100%;
}

.logo:hover {
transform: translateY(-2px);
box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

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

.nav-menu li {
margin-left: 25px;
position: relative;
}

.nav-menu a {
color: white;
font-weight: 500;
padding: 8px 12px;
border-radius: 4px;
transition: var(--transition);
position: relative;
overflow: hidden;
}

.nav-menu a::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: rgba(255, 255, 255, 0.1);
transition: left 0.3s ease;
}

.nav-menu a:hover::before {
left: 0;
}

.nav-menu a:hover {
background: rgba(255, 255, 255, 0.15);
transform: translateY(-2px);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.nav-menu a::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 0;
height: 2px;
background: white;
transition: width 0.3s ease;
}

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

.hamburger {
display: none;
cursor: pointer;
background: none;
border: none;
color: white;
font-size: 24px;
}

/* 面包屑导航 */
.breadcrumb {
background: white;
padding: 15px 20px;
border-radius: 8px;
box-shadow: var(--shadow);
margin: 30px 0;
}

.breadcrumb-list {
display: flex;
flex-wrap: wrap;
list-style: none;
}

.breadcrumb-item {
margin-right: 10px;
position: relative;
word-break: break-word;
max-width: 100%;
}

.breadcrumb-item:not(:last-child)::after {
content: "›";
margin-left: 10px;
color: #999;
}

.breadcrumb-item a {
color: var(--primary-color);
transition: var(--transition);
word-break: break-word;
}

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

/* 主要内容区域 */
main {
padding: 0 0 40px;
}

.content-wrapper {
display: grid;
grid-template-columns: 2fr 1fr;
gap: 30px;
}

section {
margin-bottom: 40px;
}

.section-title {
font-size: 24px;
margin-bottom: 20px;
padding-bottom: 10px;
border-bottom: 2px solid var(--primary-color);
color: var(--primary-color);
position: relative;
word-break: break-word;
}

.section-title::after {
content: '';
position: absolute;
bottom: -2px;
left: 0;
width: 80px;
height: 2px;
background: var(--primary-light);
}

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

.tag-item {
background: white;
border-radius: 4px;
box-shadow: var(--shadow);
transition: var(--transition);
text-align: center;
padding: 12px 5px;
word-break: break-word;
}

.tag-item a {
display: block;
width: 100%;
height: 100%;
transition: var(--transition);
word-break: break-word;
}

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

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

.article-item {
background: white;
border-radius: 8px;
overflow: hidden;
box-shadow: var(--shadow);
transition: var(--transition);
display: flex;
}

.article-item:hover {
transform: translateY(-5px);
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.article-thumbnail {
width: 200px;
height: 150px;
background-size: cover;
background-position: center;
flex-shrink: 0;
}

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

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

.article-title a {
transition: var(--transition);
word-break: break-word;
}

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

.article-meta {
display: flex;
align-items: center;
margin-bottom: 15px;
font-size: 14px;
color: #666;
}

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

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

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

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

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

.article-description {
color: #555;
line-height: 1.6;
word-break: break-word;
}

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

.pagination-list {
display: flex;
list-style: none;
gap: 10px;
flex-wrap: wrap;
justify-content: center;
}

.pagination-item a {
display: flex;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
background: white;
border-radius: 4px;
box-shadow: var(--shadow);
transition: var(--transition);
word-break: break-word;
}

.pagination-item a:hover {
background: var(--primary-color);
color: white;
transform: translateY(-3px);
}

.pagination-item.active a {
background: var(--primary-color);
color: white;
}

/* 侧边栏 */
.sidebar-section {
background: white;
border-radius: 8px;
box-shadow: var(--shadow);
padding: 20px;
margin-bottom: 30px;
}

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

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

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

.sidebar-item a {
display: block;
transition: var(--transition);
line-height: 1.4;
word-break: break-word;
}

.sidebar-item:hover {
transform: translateX(5px);
}

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

/* 底部区域 */
footer {
background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
color: white;
padding: 30px 0;
text-align: center;
}

.copyright {
font-size: 16px;
}

.copyright a {
font-weight: bold;
transition: var(--transition);
position: relative;
padding: 0 5px;
word-break: break-word;
}

.copyright a::after {
content: '';
position: absolute;
bottom: -2px;
left: 0;
width: 0;
height: 2px;
background: white;
transition: width 0.3s ease;
}

.copyright a:hover::after {
width: 100%;
}

/* 响应式设计 */
@media (max-width: 1024px) {
.content-wrapper {
grid-template-columns: 1fr;
}

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

.nav-menu {
position: fixed;
top: 70px;
right: -100%;
width: 80%;
height: calc(100vh - 70px);
background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
flex-direction: column;
align-items: center;
padding-top: 40px;
transition: right 0.5s ease;
box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
}

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

.nav-menu li {
margin: 15px 0;
}

.hamburger {
display: block;
}

.copyright {
display: none;
}
}

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

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

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

.article-thumbnail {
width: 100%;
height: 200px;
}
}

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

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

.article-meta span {
margin-right: 0;
}

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

.pagination-list {
gap: 5px;
}

.pagination-item a {
width: 35px;
height: 35px;
font-size: 14px;
}
}