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

:root {
--primary-color: #4B0091;
--secondary-color: #6a1b9a;
--light-color: #f5f5f5;
--text-color: #333;
--text-light: #777;
--border-color: #e0e0e0;
--summary-bg: #f5f5f5;
}

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

a {
text-decoration: none;
color: inherit;
transition: all 0.3s ease;
}

ul {
list-style: none;
}

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

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

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

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

.logo {
font-size: 24px;
font-weight: bold;
}

.nav-menu {
display: flex;
}

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

.nav-menu a {
padding: 5px 0;
position: relative;
}

.nav-menu a:hover {
color: #e0e0e0;
}

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

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

.hamburger {
display: none;
cursor: pointer;
font-size: 24px;
}

/* 主要内容区域 */
main {
padding: 40px 0;
}

section {
margin-bottom: 40px;
}

/* 面包屑导航 */
.breadcrumb {
padding: 15px 0;
margin-bottom: 30px;
border-bottom: 1px solid var(--border-color);
}

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

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

.breadcrumb span {
margin: 0 8px;
color: var(--text-light);
}

/* 布局容器 */
.content-wrapper {
display: flex;
gap: 30px;
}

.left-column {
flex: 1;
}

.right-column {
width: 300px;
}

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

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

.article-info {
flex: 1;
}

.article-title {
font-size: 24px;
font-weight: bold;
margin-bottom: 15px;
line-height: 1.3;
}

.article-meta {
display: flex;
font-size: 14px;
color: var(--text-light);
gap: 20px;
}

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

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

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

/* 文章摘要 */
.article-summary {
background-color: var(--summary-bg);
padding: 20px;
border-radius: 8px;
margin-bottom: 30px;
border-left: 4px solid var(--primary-color);
}

.article-summary h3 {
font-size: 16px;
margin-bottom: 10px;
color: var(--primary-color);
}

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

.article-content h2 {
font-size: 20px;
margin: 25px 0 15px;
color: var(--primary-color);
border-bottom: 1px solid var(--border-color);
padding-bottom: 8px;
}

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

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

.article-content li {
margin-bottom: 8px;
}

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

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

/* 文章导航 */
.article-navigation {
display: flex;
justify-content: space-between;
margin-top: 40px;
}

.nav-item {
flex: 1;
padding: 15px;
background: white;
border-radius: 8px;
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
transition: all 0.3s ease;
max-width: 48%;
}

.nav-item:hover {
transform: translateY(-3px);
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

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

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

.nav-label {
font-size: 14px;
color: var(--text-light);
margin-bottom: 8px;
}

.nav-title {
font-size: 16px;
font-weight: 500;
color: var(--primary-color);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

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

.sidebar-title {
font-size: 18px;
margin-bottom: 15px;
padding-bottom: 10px;
border-bottom: 1px solid var(--border-color);
color: var(--primary-color);
}

.sidebar-list {
display: flex;
flex-direction: column;
gap: 12px;
}

.sidebar-item {
padding-bottom: 12px;
border-bottom: 1px dashed var(--border-color);
}

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

.sidebar-item a {
display: block;
transition: all 0.3s ease;
white-space: normal;
word-wrap: break-word;
overflow: visible;
text-overflow: ellipsis;
}

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

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

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

/* 响应式设计 */
@media (max-width: 1024px) {
/* 平板和手机导航 */
.hamburger {
display: block;
}

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

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

.nav-menu li {
margin: 0;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-menu a {
padding: 15px;
display: block;
}

.nav-menu a::after {
display: none;
}

/* 平板设备 */
.content-wrapper {
flex-direction: column;
}

.right-column {
width: 100%;
}

.article-meta {
flex-wrap: wrap;
gap: 10px;
}

.copyright {
display: none;
}
}

@media (max-width: 768px) {
/* 平板和手机设备 */
.article-header {
flex-direction: column;
align-items: center;
text-align: center;
}

.article-thumb {
width: 150px;
height: 150px;
}

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

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

.nav-item {
max-width: 100%;
margin: 0 !important;
}

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

@media (max-width: 500px) {
/* 小屏幕手机 */
.article-content {
padding: 20px;
}
}