/* 全局样式 */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
font-family: Arial, sans-serif;
line-height: 1.6;
background-color: #E8FFC4;
color: #333;
}

a {
text-decoration: none;
color: #333;
}

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

section {
margin-bottom: 40px;
}

h2 {
font-size: 1.8rem;
margin-bottom: 20px;
text-align: center;
}

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

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

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

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

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

.nav-link {
padding: 5px 10px;
transition: all 0.3s ease;
}

.nav-link:hover {
background-color: #c2e87c;
border-radius: 4px;
}

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

/* 面包屑导航 */
.breadcrumb {
background-color: #f5ffeb;
padding: 15px;
border-radius: 8px;
margin: 20px 0;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

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

.breadcrumb-item {
margin-right: 10px;
font-size: 0.9rem;
}

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

.breadcrumb-item a:hover {
color: #4a7c1f;
}

/* 主体布局 */
.main-content {
display: flex;
gap: 30px;
}

.left-column {
flex: 7;
}

.right-column {
flex: 3;
}

/* 文章头部信息 */
.article-header {
background-color: #f5ffeb;
border-radius: 8px;
padding: 25px;
margin-bottom: 25px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.article-header-top {
display: flex;
align-items: flex-start;
margin-bottom: 20px;
}

.article-thumbnail {
flex: 0 0 100px;
height: 100px;
background-color: #d4f2a2;
border-radius: 6px;
margin-right: 20px;
overflow: hidden;
}

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

.article-title-section {
flex: 1;
}

.article-title {
font-size: 1.8rem;
font-weight: bold;
margin-bottom: 10px;
line-height: 1.3;
word-wrap: break-word;
}

.article-meta {
display: flex;
color: #666;
font-size: 0.9rem;
}

.meta-item {
margin-right: 15px;
}

.meta-item.date::before {
content: "📅 ";
}

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

/* 导读信息 */
.article-intro {
background-color: #f0f0f0;
padding: 15px 20px;
border-radius: 6px;
margin-bottom: 25px;
font-style: italic;
line-height: 1.6;
}

/* 文章内容 */
.article-content {
background-color: #f5ffeb;
border-radius: 8px;
padding: 25px;
margin-bottom: 25px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
line-height: 1.8;
}

.article-content h3 {
margin: 25px 0 15px;
font-size: 1.4rem;
}

.article-content p {
margin-bottom: 15px;
}

.article-content ul, .article-content ol {
margin: 15px 0;
padding-left: 30px;
}

.article-content li {
margin-bottom: 8px;
}

.article-content blockquote {
border-left: 4px solid #d4f2a2;
padding-left: 15px;
margin: 20px 0;
font-style: italic;
color: #555;
}

/* 文章导航 */
.article-navigation {
display: flex;
justify-content: space-between;
background-color: #f5ffeb;
border-radius: 8px;
padding: 20px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.nav-prev, .nav-next {
flex: 1;
}

.nav-next {
text-align: right;
}

.nav-label {
font-size: 0.9rem;
color: #666;
margin-bottom: 5px;
}

.nav-title {
font-weight: 500;
transition: color 0.3s ease;
}

.nav-title:hover {
color: #4a7c1f;
}

/* 侧边栏文章列表 */
.sidebar-section {
background-color: #f5ffeb;
border-radius: 8px;
padding: 20px;
margin-bottom: 30px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.sidebar-title {
font-size: 1.3rem;
margin-bottom: 15px;
padding-bottom: 10px;
border-bottom: 1px solid #e0e0e0;
}

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

.sidebar-item {
margin-bottom: 12px;
padding-bottom: 12px;
border-bottom: 1px dashed #e0e0e0;
}

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

.sidebar-link {
display: block;
padding: 5px 0;
line-height: 1.4;
word-wrap: break-word;
transition: color 0.3s ease;
}

.sidebar-link:hover {
color: #4a7c1f;
}

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

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

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

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

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

/* 平板设备 */
.main-content {
flex-direction: column;
}

.left-column,
.right-column {
flex: 1;
}

.copyright {
display: none;
}
}

@media (max-width: 768px) {
/* 平板设备文章头部 */
.article-header-top {
flex-direction: column;
}

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

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

.meta-item {
margin-right: 0;
margin-bottom: 5px;
}

/* 平板设备文章导航 */
.article-navigation {
flex-direction: column;
gap: 15px;
}

.nav-prev, .nav-next {
text-align: left;
}
}

@media (max-width: 500px) {
/* 手机设备 */
.article-meta {
flex-direction: column;
}

.meta-item {
margin-right: 0;
margin-bottom: 5px;
}

.article-title {
font-size: 1.5rem;
}
}