/* 基础样式 */
:root {
--main-color: #BBFFBB;
--text-color: #333;
--border-color: #ddd;
--hover-color: #99DD99;
--light-bg: rgba(255, 255, 255, 0.7);
--gray-bg: #f5f5f5;
}

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

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

a {
text-decoration: none;
color: inherit;
}

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

/* 导航栏样式 */
header {
background-color: var(--main-color);
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;
}

.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: var(--hover-color);
border-radius: 4px;
}

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

/* 面包屑导航 */
.breadcrumb {
padding: 15px 0;
font-size: 0.9rem;
}

.breadcrumb a {
color: #666;
}

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

.breadcrumb span {
margin: 0 5px;
}

/* 主要内容区域 */
.main-content {
display: flex;
margin: 20px 0;
gap: 20px;
}

.left-column {
flex: 3;
}

.right-column {
flex: 1;
}

/* 内容区块通用样式 */
.content-section {
margin-bottom: 30px;
padding: 20px;
background-color: var(--light-bg);
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

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

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

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

.article-info {
flex: 1;
}

.article-title {
font-size: 1.8rem;
font-weight: bold;
margin-bottom: 10px;
word-wrap: break-word;
}

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

.article-meta span {
margin-right: 15px;
}

/* 导读区域 */
.article-intro {
padding: 15px;
background-color: var(--gray-bg);
border-radius: 6px;
margin-bottom: 20px;
font-style: italic;
border-left: 4px solid var(--hover-color);
}

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

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

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

.article-content img {
max-width: 100%;
height: auto;
margin: 15px 0;
border-radius: 4px;
}

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

.nav-prev, .nav-next {
flex: 1;
padding: 10px;
border: 1px solid var(--border-color);
border-radius: 4px;
transition: all 0.3s ease;
background-color: rgba(255, 255, 255, 0.9);
}

.nav-prev:hover, .nav-next:hover {
background-color: var(--hover-color);
transform: translateY(-2px);
}

.nav-prev {
margin-right: 10px;
text-align: left;
}

.nav-next {
margin-left: 10px;
text-align: right;
}

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

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

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

.sidebar-article {
padding: 10px 0;
border-bottom: 1px dashed var(--border-color);
}

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

.sidebar-article a {
display: block;
transition: all 0.3s ease;
padding: 5px 0;
}

.sidebar-article a:hover {
color: #000;
padding-left: 5px;
background-color: rgba(255, 255, 255, 0.5);
}

/* 底部样式 */
footer {
background-color: var(--main-color);
text-align: center;
padding: 20px 0;
margin-top: 40px;
border-top: 1px solid var(--border-color);
}

/* 图标样式 (使用CSS伪元素) */
.article-meta .date::before {
content: "📅 ";
}

.article-meta .views::before {
content: "👁️ ";
}

/* 媒体查询 - 平板设备 */
@media (max-width: 1024px) {
.nav-menu {
display: none;
position: absolute;
top: 70px;
left: 0;
right: 0;
background-color: var(--main-color);
flex-direction: column;
padding: 20px;
box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

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

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

.hamburger {
display: block;
}

.copyright {
display: none;
}
}

/* 媒体查询 - 平板和手机设备 */
@media (max-width: 768px) {
.main-content {
flex-direction: column;
}

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

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

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

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

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

.nav-prev, .nav-next {
margin: 5px 0;
}
}

/* 媒体查询 - 小屏幕手机 */
@media (max-width: 500px) {
.article-title {
font-size: 1.5rem;
}
}