/* 基础样式和变量 */
:root {
--primary-color: #000079;
--text-color: #333;
--light-text: #fff;
--bg-color: #f5f5f5;
--card-bg: #fff;
--border-color: #ddd;
--hover-color: #0000a0;
--shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
--transition: all 0.3s ease;
--intro-bg: #f0f0f0;
}

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
font-family: 'Arial', sans-serif;
line-height: 1.6;
color: var(--text-color);
background-color: var(--bg-color);
}

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

ul {
list-style: none;
}

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

/* 导航栏样式 */
.navbar {
background-color: var(--primary-color);
color: var(--light-text);
position: sticky;
top: 0;
z-index: 1000;
box-shadow: var(--shadow);
display: flex;
justify-content: center;
}

.nav-container {
width: 100%;
max-width: 1200px;
display: flex;
justify-content: space-between;
align-items: center;
padding: 15px;
}

.logo {
font-size: 1.5rem;
font-weight: bold;
transition: var(--transition);
}

.logo:hover {
transform: scale(1.05);
text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.nav-menu {
display: flex;
}

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

.nav-link {
padding: 10px 15px;
transition: var(--transition);
position: relative;
display: inline-block;
overflow: hidden;
}

.nav-link::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
transition: left 0.5s ease;
}

.nav-link:hover::before {
left: 100%;
}

.nav-link::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 0;
height: 2px;
background-color: #fff;
transition: width 0.3s ease;
}

.nav-link:hover::after {
width: 100%;
}

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

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

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

.breadcrumb a {
color: var(--primary-color);
transition: var(--transition);
}

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

.breadcrumb span {
margin: 0 5px;
}

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

.left-column {
flex: 3;
}

.right-column {
flex: 1;
}

/* 文章头部区域 */
.article-header {
display: flex;
margin-bottom: 20px;
background-color: var(--card-bg);
border-radius: 5px;
padding: 20px;
box-shadow: var(--shadow);
align-items: center;
}

.article-thumbnail {
flex: 0 0 100px;
height: 100px;
background-size: cover;
background-position: center;
border-radius: 3px;
margin-right: 20px;
}

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

.article-title {
font-size: 1.8rem;
font-weight: bold;
margin-bottom: 10px;
color: var(--primary-color);
}

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

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

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

.views::before {
content: "👁";
margin-right: 5px;
}

/* 文章导读 */
.article-intro {
background-color: var(--intro-bg);
padding: 15px;
border-radius: 5px;
margin-bottom: 20px;
font-style: italic;
border-left: 4px solid var(--primary-color);
}

/* 文章内容 */
.article-content {
background-color: var(--card-bg);
padding: 25px;
border-radius: 5px;
box-shadow: var(--shadow);
margin-bottom: 30px;
line-height: 1.8;
}

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

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

.article-content ul, .article-content ol {
margin-left: 20px;
margin-bottom: 15px;
}

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

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

/* 文章导航 */
.article-navigation {
display: flex;
justify-content: space-between;
background-color: var(--card-bg);
padding: 15px;
border-radius: 5px;
box-shadow: var(--shadow);
}

.nav-previous, .nav-next {
flex: 1;
padding: 10px;
transition: var(--transition);
}

.nav-previous {
text-align: left;
border-right: 1px solid var(--border-color);
}

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

.nav-previous:hover, .nav-next:hover {
background-color: var(--intro-bg);
}

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

.nav-title {
font-weight: bold;
color: var(--primary-color);
}

/* 侧边栏样式 */
.sidebar-section {
margin-bottom: 30px;
}

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

.sidebar-list {
background-color: var(--card-bg);
border-radius: 5px;
box-shadow: var(--shadow);
padding: 15px;
}

.sidebar-item {
padding: 10px 0;
border-bottom: 1px solid var(--border-color);
transition: var(--transition);
}

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

.sidebar-item a {
display: block;
transition: var(--transition);
}

.sidebar-item a:hover {
color: var(--primary-color);
padding-left: 5px;
}

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

/* 响应式设计 */


@media (max-width: 768px) {
.hamburger {
display: block;
}

.nav-menu {
position: fixed;
left: -100%;
top: 70px;
flex-direction: column;
background-color: var(--primary-color);
width: 100%;
text-align: center;
transition: var(--transition);
box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
}

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

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

.copyright {
display: none;
}
}

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

.article-header {
flex-direction: column;
text-align: center;
}

.article-thumbnail {
margin-right: 0;
margin-bottom: 15px;
}

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

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

.nav-previous, .nav-next {
text-align: center;
border-right: none;
border-bottom: 1px solid var(--border-color);
}

.nav-next {
border-bottom: none;
}
}