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

/* 文章头部信息 */
.article-header {
display: flex;
margin-bottom: 20px;
}

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

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

.article-info {
flex: 1;
display: flex;
flex-direction: column;
justify-content: center;
}

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

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

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

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

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

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

/* 文章内容 */
.article-content {
line-height: 1.8;
margin-bottom: 30px;
}

.article-content h2 {
font-size: 1.5rem;
margin: 25px 0 15px;
color: #01814A;
}

.article-content h3 {
font-size: 1.3rem;
margin: 20px 0 10px;
}

.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 #01814A;
padding-left: 15px;
margin: 20px 0;
color: #555;
font-style: italic;
}

.article-content img {
display: block;
max-width: 100%;
height: auto;
margin: 0 auto;
}

/* 文章导航 */
.article-navigation {
display: flex;
justify-content: space-between;
margin-top: 30px;
padding-top: 20px;
border-top: 1px solid #eaeaea;
}

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

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

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

.nav-title {
font-weight: 500;
}

/* 右侧文章列表 */
.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;
}

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

footer a{
color: white;
}

/* 响应式设计 */
@media (max-width: 1024px) {
/* 平板样式 */
.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;
}

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

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

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

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

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

.prev-article, .next-article {
margin-bottom: 15px;
text-align: left;
}
}

@media (max-width: 500px) {
/* 手机样式 */
.section {
padding: 15px;
}

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