:root {
--primary-color: #82D900;
--text-color: #333;
--light-bg: #f9f9f9;
--border-color: #e0e0e0;
--hover-color: #6ab800;
}

* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Arial', sans-serif;
}

body {
color: var(--text-color);
line-height: 1.6;
background-color: var(--light-bg);
}

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

/* 导航栏样式 */
header {
background-color: white;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
position: sticky;
top: 0;
z-index: 1000;
}

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

.logo {
font-size: 1.5rem;
font-weight: bold;
color: var(--primary-color);
}

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

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

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

.nav-menu a {
text-decoration: none;
color: var(--text-color);
transition: color 0.3s;
}

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

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

/* 面包屑导航 */
.breadcrumb {
padding: 15px 0;
background-color: white;
margin-bottom: 20px;
box-shadow: 0 1px 3px 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: #999;
}

.breadcrumb-item a {
color: var(--text-color);
text-decoration: none;
}

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

.breadcrumb-item.active {
color: #777;
}

/* 主内容区布局 */
.main-content {
display: flex;
gap: 30px;
margin-bottom: 40px;
}

.content-left {
flex: 2;
background: white;
padding: 25px;
border-radius: 5px;
box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.content-right {
flex: 1;
}

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

.article-thumb {
flex: 0 0 100px;
height: 100px;
border-radius: 5px;
overflow: hidden;
background-color: #eee;
background-size: cover;
background-position: center;
}

.article-title-section {
flex: 1;
margin-left: 20px;
}

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

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

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

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

/* 文章导读 */
.article-intro {
background-color: #f5f5f5;
padding: 15px;
border-radius: 5px;
margin-bottom: 25px;
border-left: 4px solid var(--primary-color);
}

.intro-title {
font-weight: bold;
margin-bottom: 8px;
}

.intro-content {
line-height: 1.5;
}

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

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

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

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

.article-content ul, .article-content ol {
margin-left: 20px;
margin-bottom: 15px;
}

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

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

.article-content img {
max-width: 100%;
height: auto;
display: block;
margin: 20px auto;
border-radius: 5px;
box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* 文章导航 */
.article-navigation {
display: flex;
justify-content: space-between;
border-top: 1px solid var(--border-color);
padding-top: 20px;
}

.nav-item {
flex: 0 0 48%;
}

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

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

.nav-title a {
color: var(--text-color);
text-decoration: none;
transition: color 0.3s;
}

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

/* 侧边栏 */
.sidebar-section {
background: white;
padding: 20px;
border-radius: 5px;
box-shadow: 0 3px 10px rgba(0,0,0,0.1);
margin-bottom: 30px;
}

.section-title {
font-size: 1.5rem;
margin-bottom: 15px;
padding-bottom: 10px;
border-bottom: 2px solid var(--primary-color);
}

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

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

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

.sidebar-item a {
text-decoration: none;
color: var(--text-color);
transition: color 0.3s;
display: block;
overflow: hidden;
text-overflow: ellipsis;
white-space: normal;
word-wrap: break-word;
}

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

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

footer a {
color: white;
text-decoration: none;
}

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

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

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

.hamburger {
display: block;
}

.main-content {
flex-direction: column;
}

.content-left, .content-right {
width: 100%;
}

.copyright {
display: none;
}
}

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

.article-title-section {
margin-left: 0;
margin-top: 15px;
}

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

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

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

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

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

.article-thumb {
width: 100%;
height: 150px;
}
}