/* 基础样式重置 */
* {
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: inherit;
transition: color 0.3s ease;
}

/* 通用容器 */
.container {
width: 100%;
max-width: 1200px;
margin: 0 auto;
padding: 0 15px;
}

/* 导航栏样式 */
header {
background-color: #FF5151;
color: white;
padding: 15px 0;
position: sticky;
top: 0;
z-index: 100;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo {
font-size: 1.5rem;
font-weight: bold;
}

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

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

/* 导航悬停效果 */
.nav-menu a {
padding: 8px 12px;
border-radius: 4px;
position: relative;
z-index: 1;
transition: all 0.3s ease;
}

.nav-menu a::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(255, 255, 255, 0.1);
border-radius: 4px;
transform: scaleX(0);
transform-origin: right;
transition: transform 0.3s ease;
z-index: -1;
}

.nav-menu a:hover::before {
transform: scaleX(1);
transform-origin: left;
}

.nav-menu a:hover {
color: #fff;
text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

/* 小箭头指示器 */
.nav-menu a::after {
content: '';
position: absolute;
bottom: -5px;
left: 50%;
width: 0;
height: 2px;
background: white;
transition: all 0.3s ease;
transform: translateX(-50%);
}

.nav-menu a:hover::after {
width: 70%;
}

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

/* 面包屑导航 */
.breadcrumb {
padding: 15px 0;
margin-bottom: 20px;
color: #666;
font-size: 0.9rem;
border-bottom: 1px solid #eee;
}

.breadcrumb a {
color: #FF5151;
}

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

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

.main-content {
flex: 1;
}

.sidebar {
width: 300px;
}

/* 文章头部 */
.article-header {
background: white;
padding: 25px;
border-radius: 8px;
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
margin-bottom: 30px;
display: flex;
gap: 20px;
}

.article-thumb {
width: 100px;
height: 100px;
border-radius: 6px;
overflow: hidden;
flex-shrink: 0;
background-size: cover;
background-position: center;
}

.article-info {
flex: 1;
}

.article-title {
font-size: 1.8rem;
font-weight: bold;
margin-bottom: 15px;
color: #333;
}

.article-meta {
color: #888;
font-size: 0.9rem;
display: flex;
gap: 15px;
}

/* 导读区域 */
.article-intro {
background: #f5f5f5;
padding: 20px;
border-radius: 8px;
margin-bottom: 30px;
border-left: 4px solid #FF5151;
}

.article-intro p {
color: #666;
line-height: 1.6;
}

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

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

.article-content h2 {
font-size: 1.5rem;
margin: 30px 0 15px;
color: #FF5151;
padding-bottom: 10px;
border-bottom: 2px solid #f0f0f0;
}

.article-content h3 {
font-size: 1.2rem;
margin: 25px 0 15px;
color: #555;
}

.article-content blockquote {
border-left: 4px solid #FF5151;
padding-left: 20px;
margin: 20px 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: 20px;
border-radius: 8px;
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
margin-bottom: 30px;
}

.nav-previous, .nav-next {
flex: 1;
padding: 15px;
border-radius: 6px;
transition: all 0.3s ease;
}

.nav-previous {
margin-right: 10px;
text-align: left;
border-right: 1px solid #eee;
}

.nav-next {
margin-left: 10px;
text-align: right;
border-left: 1px solid #eee;
}

.nav-previous:hover, .nav-next:hover {
background: #fff9f9;
}

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

.nav-title {
font-weight: 500;
color: #333;
}

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

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

.widget-title {
font-size: 1.2rem;
margin-bottom: 15px;
padding-bottom: 10px;
border-bottom: 2px solid #FF5151;
color: #333;
}

.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: #555;
transition: color 0.3s ease;
display: block;
padding: 5px 0;
}

.sidebar-list a:hover {
color: #FF5151;
padding-left: 5px;
}

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

/* 响应式设计 */
@media (max-width: 1024px) {
/* 平板样式 */
.nav-menu {
display: none;
flex-direction: column;
position: absolute;
top: 100%;
left: 0;
width: 100%;
background-color: #FF5151;
padding: 20px;
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

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

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

.hamburger {
display: block;
}

/* 移动端导航悬停效果调整 */
.nav-menu a::after {
display: none;
}

.copyright {
display: none;
}
}

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

.sidebar {
width: 100%;
}
}

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

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

.article-meta {
flex-direction: column;
gap: 5px;
}

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

.nav-previous, .nav-next {
margin: 0 0 15px 0;
border: none;
text-align: center;
border-bottom: 1px solid #eee;
padding-bottom: 15px;
}

.nav-next {
margin-bottom: 0;
border-bottom: none;
padding-bottom: 0;
}
}

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

.article-content {
padding: 20px;
}

.article-content h2 {
font-size: 1.3rem;
}
}

/* 图标样式 */
.icon-author::before {
content: '👤';
margin-right: 5px;
}

.icon-date::before {
content: '📅';
margin-right: 5px;
}

.icon-views::before {
content: '👀';
margin-right: 5px;
}