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

body {
background-color: #f9f9f9;
color: #333;
line-height: 1.6;
overflow-x: hidden;
}

/* 导航栏样式 */
.navbar {
background-color: #4D0000;
padding: 1rem 0;
position: sticky;
top: 0;
z-index: 1000;
box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.nav-container {
max-width: 1200px;
margin: 0 auto;
padding: 0 1rem;
display: flex;
justify-content: space-between;
align-items: center;
}

.logo {
color: white;
font-size: 1.5rem;
font-weight: bold;
text-decoration: none;
}

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

.nav-item {
margin-left: 1.5rem;
}

.nav-link {
color: white;
text-decoration: none;
transition: color 0.3s;
}

.nav-link:hover {
color: #ffcccb;
}

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

/* 面包屑导航 */
.breadcrumb {
max-width: 1200px;
margin: 1rem auto;
padding: 0 1rem;
}

.breadcrumb a {
color: #4D0000;
text-decoration: none;
}

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

/* 主内容区域 */
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 1rem;
display: flex;
flex-wrap: wrap;
gap: 1.5rem;
}

/* 左侧内容区域 */
.left-column {
flex: 1;
min-width: 0; /* 防止flex元素溢出 */
}

/* 右侧内容区域 */
.right-column {
width: 300px;
}

/* 通用板块样式 */
.section {
background-color: white;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0,0,0,0.05);
padding: 1.5rem;
margin-bottom: 1.5rem;
overflow: hidden;
}

.section-title {
color: #4D0000;
margin-bottom: 1.5rem;
padding-bottom: 0.5rem;
border-bottom: 2px solid #4D0000;
font-size: 1.5rem;
}

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

.article-thumb {
width: 100px;
height: 100px;
min-width: 100px;
object-fit: cover;
border-radius: 4px;
}

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

.article-title {
color: #4D0000;
font-size: 1.8rem;
margin-bottom: 0.8rem;
line-height: 1.3;
}

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

.article-meta-item {
display: flex;
align-items: center;
}

/* 文章内容区域 */
.article-intro {
background-color: #f5f5f5;
padding: 1rem;
border-left: 3px solid #4D0000;
margin-bottom: 1.5rem;
font-style: italic;
}

.article-content {
margin-bottom: 2rem;
}

.article-content p {
margin-bottom: 1rem;
line-height: 1.8;
}

.article-content h2 {
color: #4D0000;
margin: 1.5rem 0 1rem;
padding-bottom: 0.5rem;
border-bottom: 1px solid #eee;
}

.article-content h3 {
color: #4D0000;
margin: 1.2rem 0 0.8rem;
}

.article-content ul, .article-content ol {
margin-left: 1.5rem;
margin-bottom: 1rem;
}

.article-content li {
margin-bottom: 0.5rem;
}

.article-content blockquote {
border-left: 3px solid #4D0000;
padding-left: 1rem;
margin-left: 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;
border-top: 1px solid #eee;
padding-top: 1.5rem;
}

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

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

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

.nav-title {
color: #4D0000;
text-decoration: none;
font-weight: bold;
}

.nav-title:hover {
text-decoration: underline;
}

/* 侧边栏文章列表样式 */
.sidebar-list {
list-style: none;
}

.sidebar-item {
margin-bottom: 0.8rem;
padding-bottom: 0.8rem;
border-bottom: 1px solid #eee;
}

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

.sidebar-link {
color: #333;
text-decoration: none;
transition: color 0.3s;
display: block;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

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

/* Emoji图标样式 */
.icon-date::before {
content: "📅 ";
}

.icon-views::before {
content: "👀 ";
}

/* 底部样式 */
footer {
background-color: #4D0000;
color: white;
text-align: center;
padding: 1.5rem;
margin-top: 2rem;
}

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

footer a:hover {
color: #ffcccb;
}

/* 媒体查询 - 平板设备 */
@media (max-width: 1024px) {
.nav-menu {
display: none;
flex-direction: column;
width: 100%;
position: absolute;
top: 100%;
left: 0;
background-color: #4D0000;
padding: 1rem 0;
}

.nav-menu.active {
display: flex;
}

.nav-item {
margin: 0.5rem 0;
text-align: center;
}

.hamburger {
display: block;
}

.copyright {
display: none;
}

.right-column {
width: 250px;
}
}

/* 媒体查询 - 小屏平板和大型手机 */
@media (max-width: 768px) {
.container {
flex-direction: column;
}

.right-column {
width: 100%;
}

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

.article-thumb {
width: 100%;
height: 200px;
margin: 0 auto;
}

.article-meta {
flex-wrap: wrap;
}
}

/* 媒体查询 - 手机设备 */
@media (max-width: 500px) {
.article-meta {
flex-direction: column;
gap: 0.3rem;
}

.article-thumb {
height: 180px;
}

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

.article-navigation {
flex-direction: column;
gap: 1rem;
}

.nav-previous, .nav-next {
width: 100%;
text-align: left;
}

.nav-container {
padding: 0 1rem;
}

.breadcrumb, .container {
padding: 0 0.5rem;
}

.section {
padding: 1rem;
}
}