:root {
--primary-color: #DFFFDF;
--secondary-color: #c9f0c9;
--text-color: #333333;
--link-color: #006600;
--hover-color: #009900;
--shadow: 0 2px 5px rgba(0,0,0,0.1);
--gray-bg: #f5f5f5;
}

* {
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(--primary-color);
}

a {
text-decoration: none;
color: var(--link-color);
}

a:hover {
color: var(--hover-color);
}

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

/* 导航栏样式 */
header {
background-color: var(--secondary-color);
box-shadow: var(--shadow);
position: sticky;
top: 0;
margin-bottom: 30px;
z-index: 1000;
}

.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: rgba(255, 255, 255, 0.3);
border-radius: 4px;
}

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

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

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

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

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

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

/* 主内容区样式 */
main {
padding: 0 0 30px;
}

.section {
margin-bottom: 30px;
}

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

/* 两列布局 */
.two-column-layout {
display: flex;
gap: 30px;
}

.left-column {
flex: 2;
}

.right-column {
flex: 1;
}

/* 文章头部 */
.article-header {
display: flex;
background-color: white;
border-radius: 8px;
padding: 20px;
margin-bottom: 20px;
box-shadow: var(--shadow);
}

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

.article-info {
flex: 1;
}

.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;
}

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

.article-views::before {
content: "👁 ";
margin-left: 15px;
}

/* 文章导读 */
.article-intro {
background-color: var(--gray-bg);
border-radius: 8px;
padding: 20px;
margin-bottom: 20px;
font-style: italic;
border-left: 4px solid var(--secondary-color);
}

/* 文章内容 */
.article-content {
background-color: white;
border-radius: 8px;
padding: 30px;
margin-bottom: 20px;
box-shadow: var(--shadow);
line-height: 1.8;
}

.article-content h2 {
font-size: 1.5rem;
margin: 25px 0 15px;
padding-bottom: 10px;
border-bottom: 1px solid var(--secondary-color);
}

.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 var(--secondary-color);
padding-left: 20px;
margin: 20px 0;
font-style: italic;
color: #555;
}

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

/* 文章导航 */
.article-navigation {
display: flex;
justify-content: space-between;
background-color: white;
border-radius: 8px;
padding: 20px;
box-shadow: var(--shadow);
}

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

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

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

.nav-title {
font-weight: normal;
line-height: 1.4;
}

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

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

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

.sidebar-item a {
transition: color 0.3s ease;
display: block;
}

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

/* 页脚样式 */
footer {
background-color: var(--secondary-color);
padding: 20px 0;
text-align: center;
margin-top: 40px;
}

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

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

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

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

.two-column-layout {
gap: 20px;
}

.copyright {
display: none;
}
}

@media (max-width: 768px) {
.two-column-layout {
flex-direction: column;
}

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

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

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

.article-views::before {
margin-left: 0;
}

.article-navigation {
flex-direction: column;
gap: 15px;
}

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

@media (max-width: 500px) {
.article-title {
font-size: 1.5rem;
}

.article-content {
padding: 20px;
}
}