/* 基础样式 */
:root {
--primary-color: #02DF82;
--primary-dark: #02C572;
--primary-light: #E8FCF3;
--text-color: #333;
--text-light: #666;
--bg-color: #f9f9f9;
--white: #fff;
--gray-bg: #f5f5f5;
--shadow: 0 4px 12px rgba(2, 223, 130, 0.15);
--shadow-hover: 0 8px 20px rgba(2, 223, 130, 0.25);
--border-radius: 8px;
--transition: all 0.3s ease;
}

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

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

a {
text-decoration: none;
color: var(--primary-color);
transition: var(--transition);
}

a:hover {
color: var(--primary-dark);
}

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

section {
margin-bottom: 40px;
}

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

.section-title::after {
content: '';
position: absolute;
bottom: -2px;
left: 0;
width: 50px;
height: 2px;
background-color: var(--primary-dark);
}

/* 导航栏样式 */
header {
background-color: var(--white);
box-shadow: var(--shadow);
position: sticky;
top: 0;
z-index: 1000;
margin-bottom: 30px;
padding: 15px 0;
}

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

.logo a {
font-size: 1.8rem;
font-weight: bold;
color: var(--primary-color);
display: flex;
align-items: center;
}

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

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

.nav-menu a {
color: var(--text-color);
font-weight: 500;
position: relative;
}

.nav-menu a:hover {
color: var(--primary-color);
}

.nav-menu a::after {
content: '';
position: absolute;
bottom: -5px;
left: 0;
width: 0;
height: 2px;
background-color: var(--primary-color);
transition: var(--transition);
}

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

.hamburger {
display: none;
cursor: pointer;
font-size: 1.5rem;
color: var(--primary-color);
}

/* 面包屑导航 */
.breadcrumb {
background-color: var(--white);
border-radius: var(--border-radius);
box-shadow: var(--shadow);
padding: 15px 20px;
margin-bottom: 30px;
font-size: 0.9rem;
display: flex;
flex-wrap: wrap;
word-wrap: break-word;
overflow-wrap: break-word;
}

.breadcrumb a {
color: var(--text-light);
white-space: normal;
word-break: break-all;
}

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

.breadcrumb span {
margin: 0 8px;
color: var(--text-light);
white-space: normal;
word-wrap: break-word;
overflow: visible;
}

.breadcrumb .current {
color: var(--primary-color);
font-weight: 500;
white-space: normal;
word-break: break-all;
}

/* 主要内容区域 */
.main-content {
display: grid;
grid-template-columns: 2fr 1fr;
gap: 30px;
}

/* 文章详情 */
.article-detail {
background-color: var(--white);
border-radius: var(--border-radius);
box-shadow: var(--shadow);
padding: 30px;
}

/* 文章头部信息 */
.article-header {
display: grid;
grid-template-columns: 100px 1fr;
gap: 20px;
margin-bottom: 25px;
align-items: center;
}

.article-thumbnail {
width: 100px;
height: 100px;
border-radius: 4px;
overflow: hidden;
background-size: cover;
background-position: center;
box-shadow: var(--shadow);
}

.article-info {
display: flex;
flex-direction: column;
justify-content: center;
}

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

.article-meta {
display: flex;
color: var(--text-light);
font-size: 0.9rem;
}

.article-meta span {
display: flex;
align-items: center;
margin-right: 20px;
}

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

.article-date::before {
content: '📅';
}

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

/* 导读信息 */
.article-intro {
background-color: var(--gray-bg);
border-radius: var(--border-radius);
padding: 20px;
margin-bottom: 25px;
font-style: italic;
line-height: 1.6;
word-wrap: break-word;
overflow-wrap: break-word;
}

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

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

.article-content h2, .article-content h3 {
margin: 25px 0 15px;
color: var(--primary-dark);
}

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

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

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

/* 文章导航 */
.article-navigation {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 15px;
}

.nav-item {
background-color: var(--white);
border-radius: var(--border-radius);
box-shadow: var(--shadow);
padding: 15px;
transition: var(--transition);
}

.nav-item:hover {
transform: translateY(-3px);
box-shadow: var(--shadow-hover);
background-color: var(--primary-light);
}

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

.nav-title {
font-weight: 500;
word-wrap: break-word;
overflow-wrap: break-word;
}

.nav-title a {
color: var(--text-color);
}

.nav-title a:hover {
color: var(--primary-color);
}

/* 侧边栏 */
.sidebar {
display: flex;
flex-direction: column;
gap: 30px;
}

.sidebar-section {
background-color: var(--white);
border-radius: var(--border-radius);
box-shadow: var(--shadow);
padding: 20px;
}

.sidebar-list {
list-style: none;
}

.sidebar-item {
padding: 12px 0;
border-bottom: 1px solid #eee;
}

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

.sidebar-item a {
color: var(--text-color);
display: block;
line-height: 1.4;
transition: var(--transition);
word-wrap: break-word;
overflow-wrap: break-word;
white-space: normal;
}

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

/* 底部样式 */
footer {
background-color: var(--white);
box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
padding: 30px 0;
text-align: center;
margin-top: 60px;
}

.footer-content {
display: flex;
flex-direction: column;
align-items: center;
}

/* 响应式设计 */
@media (max-width: 1024px) {
/* 平板样式 */
.main-content {
grid-template-columns: 1fr;
}

.sidebar {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 20px;
}

/* 手机导航 */
.hamburger {
display: block;
}

.nav-menu {
position: fixed;
top: 70px;
right: -100%;
width: 80%;
height: calc(100vh - 70px);
background-color: var(--white);
flex-direction: column;
align-items: center;
padding-top: 40px;
transition: var(--transition);
box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

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

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

.copyright {
display: none;
}
}

@media (max-width: 768px) {
/* 手机内容布局 */
.article-header {
grid-template-columns: 1fr;
gap: 15px;
}

.article-thumbnail {
width: 100%;
height: 200px;
justify-self: center;
}

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

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

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

.article-navigation {
grid-template-columns: 1fr;
}

.sidebar {
grid-template-columns: 1fr;
}

.container {
padding: 0 15px;
}

.article-detail {
padding: 20px;
}
}

@media (max-width: 500px) {
.article-thumbnail {
height: 180px;
}

.container {
padding: 0 15px;
}

.article-detail, .sidebar-section {
padding: 15px;
}
}