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

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

a {
text-decoration: none;
color: #0000C6;
transition: color 0.3s ease;
}

a:hover {
color: #00008B;
}

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

/* 导航栏样式 */
.navbar {
background-color: #0000C6;
padding: 15px 0;
position: relative;
}

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

.logo {
color: white;
font-size: 1.5rem;
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;
}

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

.hamburger {
display: none;
flex-direction: column;
cursor: pointer;
}

.hamburger span {
height: 3px;
width: 25px;
background: white;
margin-bottom: 5px;
border-radius: 5px;
}

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

.breadcrumb a {
color: #0000C6;
}

.breadcrumb span {
margin: 0 5px;
}

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

.left-column {
flex: 7;
background: white;
border-radius: 8px;
padding: 30px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.right-column {
flex: 3;
}

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

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

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

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

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

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

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

.article-meta-item.views::before {
content: "👀 ";
}

/* 导读信息 */
.article-intro {
background: #f0f0f0;
padding: 15px;
border-left: 4px solid #0000C6;
margin-bottom: 25px;
border-radius: 0 4px 4px 0;
}

.article-intro p {
margin: 0;
color: #555;
font-style: italic;
}

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

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

.article-content h2 {
font-size: 1.5rem;
margin: 25px 0 15px;
color: #0000C6;
}

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

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

.nav-item {
flex: 1;
padding: 10px 15px;
border: 1px solid #eee;
border-radius: 4px;
transition: all 0.3s ease;
}

.nav-item:hover {
border-color: #0000C6;
background: #f8f8ff;
}

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

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

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

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

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

.section-title {
font-size: 1.5rem;
margin-bottom: 20px;
color: #0000C6;
}

.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: #333;
transition: color 0.3s ease;
}

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

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

footer a {
color: white;
}

/* 媒体查询 - 平板 */
@media (max-width: 1024px) {
.main-content {
flex-direction: column;
}

.nav-menu {
position: absolute;
top: 100%;
left: 0;
width: 100%;
background: #0000C6;
flex-direction: column;
align-items: center;
padding: 20px 0;
clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
transition: clip-path 0.4s ease;
}

.nav-menu.active {
clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

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

.hamburger {
display: flex;
}

.copyright {
display: none;
}
}

/* 媒体查询 - 中等屏幕 */
@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;
gap: 5px;
}
}

/* 媒体查询 - 手机 */
@media (max-width: 576px) {
.article-navigation {
flex-direction: column;
}

.nav-item {
margin: 5px 0 !important;
}

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