:root {
--primary-color: #0080FF;
--primary-dark: #0066CC;
--primary-light: #3399FF;
--text-color: #333;
--light-text: #fff;
--bg-color: #f5f9ff;
--card-bg: #ffffff;
--shadow: 0 10px 20px rgba(0, 128, 255, 0.15);
--deep-shadow: 0 15px 30px rgba(0, 128, 255, 0.25);
--transition: all 0.3s ease;
--gray-bg: #f5f5f5;
}

* {
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;
}

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

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

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

.logo {
font-size: 24px;
font-weight: 700;
color: var(--light-text);
position: relative;
overflow: hidden;
padding: 5px 10px;
border-radius: 5px;
transition: var(--transition);
}

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

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

.logo:hover {
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

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

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

.nav-links a {
color: var(--light-text);
font-weight: 500;
padding: 8px 15px;
border-radius: 5px;
transition: var(--transition);
position: relative;
overflow: hidden;
}

.nav-links a::before, .nav-links a::after {
content: '';
position: absolute;
width: 0;
height: 2px;
bottom: 0;
background-color: var(--light-text);
transition: var(--transition);
}

.nav-links a::before {
left: 50%;
}

.nav-links a::after {
right: 50%;
}

.nav-links a:hover::before, .nav-links a:hover::after {
width: 50%;
}

.nav-links a:hover {
background-color: rgba(255, 255, 255, 0.1);
transform: translateY(-2px);
}

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

.hamburger span {
width: 25px;
height: 3px;
background-color: var(--light-text);
margin: 3px 0;
transition: var(--transition);
border-radius: 2px;
}

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

.section-title {
font-size: 28px;
margin-bottom: 30px;
color: var(--primary-dark);
position: relative;
padding-bottom: 10px;
}

.section-title::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 60px;
height: 3px;
background: linear-gradient(to right, var(--primary-color), transparent);
}

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

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

.breadcrumb a:hover {
color: var(--primary-dark);
text-decoration: underline;
}

.breadcrumb span {
margin: 0 8px;
color: #666;
}

/* 两列布局 */
.two-column-layout {
display: grid;
grid-template-columns: 2fr 1fr;
gap: 30px;
}

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

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

.article-thumb {
width: 100px;
height: 100px;
border-radius: 8px;
overflow: hidden;
margin-right: 20px;
flex-shrink: 0;
}

.article-thumb img {
width: 100%;
height: 100%;
object-fit: cover;
}

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

.article-title {
font-size: 28px;
font-weight: 700;
margin-bottom: 10px;
color: var(--primary-dark);
line-height: 1.3;
word-break: break-word;
overflow-wrap: break-word;
}

.article-meta {
display: flex;
font-size: 14px;
color: #666;
}

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

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

.time::before {
content: "🕒";
}

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

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

/* 文章内容 */
.article-content {
margin-bottom: 40px;
line-height: 1.8;
}

.article-content p {
margin-bottom: 20px;
word-break: break-word;
overflow-wrap: break-word;
}

.article-content h2 {
font-size: 24px;
margin: 30px 0 15px;
color: var(--primary-dark);
padding-bottom: 8px;
border-bottom: 1px solid #eee;
}

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

.article-content blockquote {
border-left: 4px solid var(--primary-color);
background-color: var(--gray-bg);
padding: 15px 20px;
margin: 20px 0;
border-radius: 0 8px 8px 0;
}

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

.nav-item {
flex: 1;
padding: 15px;
border-radius: 8px;
transition: var(--transition);
background-color: var(--gray-bg);
}

.nav-item:hover {
background-color: var(--primary-light);
color: var(--light-text);
}

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

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

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

.nav-item:hover .nav-label {
color: var(--light-text);
}

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

/* 侧边栏 */
.sidebar {
position: sticky;
top: 100px;
}

.sidebar-section {
background-color: var(--card-bg);
border-radius: 10px;
padding: 20px;
box-shadow: var(--shadow);
margin-bottom: 30px;
}

.sidebar-title {
font-size: 20px;
margin-bottom: 15px;
color: var(--primary-dark);
position: relative;
padding-bottom: 8px;
word-break: break-word;
overflow-wrap: break-word;
}

.sidebar-title::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 40px;
height: 2px;
background: linear-gradient(to right, var(--primary-color), transparent);
}

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

.sidebar-list li {
padding: 10px 0;
border-bottom: 1px solid #eee;
transition: var(--transition);
}

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

.sidebar-list a {
display: block;
transition: var(--transition);
line-height: 1.4;
word-break: break-word;
overflow-wrap: break-word;
}

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

/* 底部 */
footer {
background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
color: var(--light-text);
padding: 30px 0;
text-align: center;
}

.copyright {
font-size: 16px;
word-break: break-word;
overflow-wrap: break-word;
}

.copyright a {
font-weight: 600;
transition: var(--transition);
padding: 3px 8px;
border-radius: 3px;
}

.copyright a:hover {
background-color: rgba(255, 255, 255, 0.1);
text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 1024px) {
.nav-links {
position: fixed;
top: 70px;
right: -100%;
width: 70%;
height: calc(100vh - 70px);
background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
flex-direction: column;
align-items: center;
justify-content: flex-start;
padding-top: 40px;
transition: var(--transition);
box-shadow: -5px 0 15px rgba(0,0,0,0.1);
}

.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);
}

.two-column-layout {
grid-template-columns: 1fr;
}

.sidebar {
position: static;
}

.copyright {
display: none;
}
}

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

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

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

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

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

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

.nav-item.next {
margin-bottom: 0;
}
}

@media (max-width: 500px) {
.article-title {
font-size: 24px;
}

.article-content h2 {
font-size: 20px;
}

.article-content h3 {
font-size: 18px;
}
}