:root {
--primary-color: #8600FF;
--primary-dark: #6A00CC;
--primary-light: #A333FF;
--text-color: #FFFFFF;
--bg-color: #1A1A2E;
--card-bg: #2A2A3E;
--shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
--transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
--gray-bg: #3A3A4E;
}

* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

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

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

/* 导航栏样式 */
header {
background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
padding: 15px 0;
position: sticky;
top: 0;
z-index: 1000;
box-shadow: var(--shadow);
}

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

.logo a {
font-size: 1.8rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 2px;
position: relative;
padding: 5px 10px;
border-radius: 5px;
overflow: hidden;
display: inline-block;
}

.logo a::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;
}

.logo a:hover::before {
left: 100%;
}

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

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

.nav-links a {
padding: 8px 15px;
border-radius: 5px;
position: relative;
overflow: hidden;
}

.nav-links a::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(255, 255, 255, 0.1);
transform: scaleX(0);
transform-origin: right;
transition: transform 0.3s ease;
z-index: -1;
}

.nav-links a:hover::before {
transform: scaleX(1);
transform-origin: left;
}

.nav-links a::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 2px;
background: white;
transform: scaleX(0);
transition: transform 0.3s ease;
}

.nav-links a:hover::after {
transform: scaleX(1);
}

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

.hamburger span {
width: 25px;
height: 3px;
background: white;
margin: 3px 0;
transition: var(--transition);
}

/* 面包屑导航 */
.breadcrumb {
background: var(--card-bg);
padding: 15px 20px;
border-radius: 10px;
margin: 30px 0;
box-shadow: var(--shadow);
display: flex;
flex-wrap: wrap;
word-break: break-word;
overflow-wrap: break-word;
}

.breadcrumb a {
color: var(--primary-light);
margin: 0 5px;
word-break: break-word;
overflow-wrap: break-word;
}

.breadcrumb span {
margin: 0 5px;
color: #CCCCCC;
word-break: break-word;
overflow-wrap: break-word;
}

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

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

/* 文章头部 */
.article-header {
display: flex;
margin-bottom: 25px;
}

.article-thumb {
width: 100px;
height: 100px;
border-radius: 10px;
overflow: hidden;
margin-right: 25px;
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: 700;
margin-bottom: 15px;
line-height: 1.3;
word-break: break-word;
overflow-wrap: break-word;
}

.article-meta {
display: flex;
font-size: 0.9rem;
color: #CCCCCC;
word-break: break-word;
overflow-wrap: break-word;
}

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

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

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

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

/* 导读信息 */
.article-intro {
background: var(--gray-bg);
padding: 20px;
border-radius: 8px;
margin-bottom: 25px;
border-left: 4px solid var(--primary-color);
word-break: break-word;
overflow-wrap: break-word;
}

.article-intro h3 {
font-size: 1.2rem;
margin-bottom: 10px;
color: var(--primary-light);
}

.article-intro p {
color: #CCCCCC;
line-height: 1.6;
}

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

.article-content h2 {
font-size: 1.5rem;
margin: 25px 0 15px;
color: var(--primary-light);
}

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

.article-content ul, .article-content ol {
margin: 15px 0;
padding-left: 25px;
}

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

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

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

/* 文章导航 */
.article-navigation {
display: flex;
justify-content: space-between;
border-top: 1px solid rgba(255, 255, 255, 0.1);
padding-top: 25px;
}

.prev-article, .next-article {
flex: 1;
padding: 15px;
border-radius: 8px;
transition: var(--transition);
word-break: break-word;
overflow-wrap: break-word;
}

.prev-article {
margin-right: 15px;
text-align: left;
}

.next-article {
margin-left: 15px;
text-align: right;
}

.prev-article:hover, .next-article:hover {
background: rgba(134, 0, 255, 0.1);
}

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

.nav-title {
font-size: 1rem;
line-height: 1.4;
}

/* 右侧内容 */
.sidebar {
display: flex;
flex-direction: column;
gap: 30px;
}

.sidebar-section {
background: var(--card-bg);
border-radius: 10px;
padding: 25px;
box-shadow: var(--shadow);
}

.sidebar-title {
font-size: 1.3rem;
margin-bottom: 20px;
padding-bottom: 10px;
border-bottom: 2px solid var(--primary-color);
position: relative;
word-break: break-word;
overflow-wrap: break-word;
}

.sidebar-title::after {
content: '';
position: absolute;
bottom: -2px;
left: 0;
width: 50px;
height: 2px;
background: white;
}

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

.sidebar-list li {
margin-bottom: 15px;
padding-bottom: 15px;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
transition: var(--transition);
word-break: break-word;
overflow-wrap: break-word;
}

.sidebar-list li:last-child {
margin-bottom: 0;
padding-bottom: 0;
border-bottom: none;
}

.sidebar-list li:hover {
transform: translateX(5px);
}

.sidebar-list a {
display: block;
line-height: 1.5;
padding: 5px 0;
word-break: break-word;
overflow-wrap: break-word;
}

/* 页脚 */
footer {
background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
padding: 30px 0;
margin-top: 50px;
text-align: center;
box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.2);
}

.footer-logo a {
font-size: 1.5rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 2px;
display: inline-block;
margin-bottom: 15px;
padding: 5px 10px;
border-radius: 5px;
position: relative;
overflow: hidden;
}

.footer-logo a::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;
}

.footer-logo a:hover::before {
left: 100%;
}

.copyright {
font-size: 0.9rem;
color: rgba(255, 255, 255, 0.8);
}

/* 响应式设计 */
@media (max-width: 1024px) {
.logo a {
font-size: 1.1rem;
}

.nav-links {
position: fixed;
top: 70px;
right: -100%;
width: 70%;
height: calc(100vh - 70px);
background: var(--primary-dark);
flex-direction: column;
align-items: center;
justify-content: flex-start;
padding-top: 50px;
transition: right 0.5s ease;
box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
}

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

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

.hamburger {
display: flex;
}

.hamburger.active span:nth-child(1) {
transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
opacity: 0;
}

.hamburger.active span:nth-child(3) {
transform: rotate(-45deg) translate(7px, -6px);
}

.main-content {
grid-template-columns: 1fr;
}

.copyright {
display: none;
}
}

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

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

.article-meta {
flex-direction: column;
align-items: flex-start;
}

.article-meta span {
margin-right: 0;
margin-bottom: 8px;
}

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

.prev-article, .next-article {
margin: 0 0 15px 0;
text-align: left;
}

.next-article {
margin-bottom: 0;
}
}

@media (max-width: 500px) {
.article-detail {
padding: 20px;
}

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