/* 基础样式重置 */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Microsoft YaHei', sans-serif;
}

body {
background-color: #f5f5f5;
color: #333;
line-height: 1.6;
}

a {
text-decoration: none;
color: #FF0000;
transition: color 0.3s;
}

a:hover {
color: #cc0000;
}

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

/* 导航栏样式 */
header {
background-color: #FF0000;
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: 24px;
font-weight: bold;
}

.logo a {
color: white;
}

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

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

.nav-menu a {
color: white;
padding: 5px 10px;
border-radius: 3px;
}

.nav-menu a:hover {
background-color: rgba(255, 255, 255, 0.2);
}

.menu-toggle {
display: none;
color: white;
font-size: 24px;
cursor: pointer;
}

/* 面包屑导航 */
.breadcrumb {
padding: 15px 0;
font-size: 14px;
color: #666;
}

.breadcrumb a {
color: #666;
}

.breadcrumb a:hover {
color: #FF0000;
}

.breadcrumb span {
margin: 0 5px;
}

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

.content-left {
flex: 1;
}

.content-right {
width: 300px;
flex-shrink: 0;
}

/* 文章头部信息 */
.article-header {
background: white;
padding: 20px;
border-radius: 5px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
margin-bottom: 20px;
display: flex;
}

.article-thumb {
width: 100px;
height: 100px;
flex-shrink: 0;
margin-right: 20px;
border-radius: 5px;
overflow: hidden;
}

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

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

.article-title {
font-size: 24px;
font-weight: bold;
margin-bottom: 10px;
color: #333;
}

.article-meta {
display: flex;
color: #888;
font-size: 14px;
flex-wrap: wrap;
}

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

.date::before {
content: '发布时间';
margin-right: 5px;
color: #666;
}

.views::before {
content: '阅读';
margin-right: 5px;
color: #666;
}

/* 导读区域 */
.article-intro {
background: #f0f0f0;
padding: 15px 20px;
border-left: 4px solid #FF0000;
margin-bottom: 20px;
border-radius: 0 5px 5px 0;
font-size: 15px;
color: #555;
}

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

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

.article-content h2 {
color: #FF0000;
margin: 20px 0 15px;
padding-bottom: 10px;
border-bottom: 1px solid #eee;
font-size: 20px;
font-weight: normal;
}

.article-content h3 {
color: #333;
margin: 15px 0 10px;
font-size: 18px;
font-weight: normal;
}

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

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

/* 文章导航 */
.article-navigation {
display: flex;
justify-content: space-between;
background: white;
padding: 15px 20px;
border-radius: 5px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
margin-bottom: 30px;
}

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

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

.nav-label {
font-size: 14px;
color: #888;
margin-bottom: 5px;
}

.nav-title {
font-size: 16px;
color: #333;
transition: color 0.3s;
}

.nav-title:hover {
color: #FF0000;
}

/* 侧边栏样式 */
.sidebar-widget {
background: white;
padding: 20px;
border-radius: 5px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
margin-bottom: 30px;
}

.sidebar-widget h2 {
color: #FF0000;
margin-bottom: 15px;
padding-bottom: 10px;
border-bottom: 2px solid #FF0000;
position: relative;
font-size: 18px;
font-weight: normal;
}

.sidebar-widget h2::after {
content: '';
position: absolute;
bottom: -2px;
left: 0;
width: 40px;
height: 2px;
background-color: #cc0000;
}

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

.sidebar-list li {
padding: 10px 0;
border-bottom: 1px solid #eee;
}

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

.sidebar-list a {
color: #666;
transition: color 0.3s;
display: block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}

.sidebar-list a:hover {
color: #FF0000;
}

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

footer a {
color: white;
}

/* 响应式设计 */
@media (max-width: 1024px) {
/* 平板样式 */
.nav-menu {
position: fixed;
top: 70px;
left: -100%;
background: #FF0000;
width: 100%;
flex-direction: column;
padding: 20px;
transition: left 0.3s;
}

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

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

.menu-toggle {
display: block;
}

.copyright {
display: none;
}
}

@media (max-width: 900px) {
.main-content {
flex-direction: column;
}

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

@media (max-width: 768px) {
/* 平板和手机共用样式 */
.article-header {
flex-direction: column;
}

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

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

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

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

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

@media (max-width: 500px) {
/* 手机样式 */
.article-title {
font-size: 20px;
}

.article-content {
padding: 15px;
}

.article-content h2 {
font-size: 18px;
}

.article-content h3 {
font-size: 16px;
}
}