:root {
--primary-color: #FFE153;
--secondary-color: #ffd700;
--dark-color: #333;
--light-color: #fff;
--shadow: 0 10px 20px rgba(0, 0, 0, 0.15), 0 6px 6px rgba(0, 0, 0, 0.2);
--transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

body {
background-color: var(--primary-color);
color: var(--dark-color);
line-height: 1.6;
overflow-x: hidden;
}

/* 导航栏样式 */
.navbar {
background: linear-gradient(145deg, var(--primary-color), var(--secondary-color));
box-shadow: var(--shadow);
position: sticky;
top: 0;
z-index: 1000;
border-bottom: 3px solid rgba(0, 0, 0, 0.1);
}

.nav-container {
display: flex;
justify-content: space-between;
align-items: center;
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
height: 70px;
}

.logo a {
font-size: 1.8rem;
font-weight: bold;
text-decoration: none;
color: var(--dark-color);
position: relative;
display: inline-block;
padding: 5px 10px;
border-radius: 5px;
transition: var(--transition);
transform-style: preserve-3d;
perspective: 1000px;
}

.logo a:before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(255, 255, 255, 0.3);
border-radius: 5px;
transform: translateZ(-5px);
transition: var(--transition);
}

.logo a:hover {
transform: translateY(-3px) rotateX(5deg);
box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
}

.logo a:hover:before {
transform: translateZ(-10px);
background: rgba(255, 255, 255, 0.5);
}

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

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

.nav-links a {
text-decoration: none;
color: var(--dark-color);
font-weight: 500;
padding: 10px 15px;
border-radius: 5px;
transition: var(--transition);
position: relative;
overflow: hidden;
display: block;
}

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

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

.nav-links a:after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 0;
height: 3px;
background: var(--dark-color);
transition: width 0.4s ease;
}

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

.nav-links a:hover {
background: rgba(255, 255, 255, 0.2);
transform: translateY(-3px);
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 汉堡菜单 */
.hamburger {
display: none;
cursor: pointer;
background: none;
border: none;
width: 30px;
height: 25px;
position: relative;
}

.hamburger span {
display: block;
position: absolute;
height: 3px;
width: 100%;
background: var(--dark-color);
border-radius: 3px;
opacity: 1;
left: 0;
transform: rotate(0deg);
transition: var(--transition);
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 10px; }
.hamburger span:nth-child(3) { top: 20px; }

.hamburger.active span:nth-child(1) {
top: 10px;
transform: rotate(135deg);
}

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

.hamburger.active span:nth-child(3) {
top: 10px;
transform: rotate(-135deg);
}

/* 主内容区 */
.container {
max-width: 1200px;
margin: 40px auto;
padding: 0 20px;
}

/* 面包屑导航 */
.breadcrumb {
background: var(--light-color);
border-radius: 10px;
padding: 15px 25px;
margin-bottom: 30px;
box-shadow: var(--shadow);
display: flex;
flex-wrap: wrap;
gap: 10px;
}

.breadcrumb a {
text-decoration: none;
color: var(--dark-color);
transition: var(--transition);
position: relative;
word-break: break-word;
overflow-wrap: break-word;
}

.breadcrumb a:hover {
color: #666;
}

.breadcrumb span {
color: #666;
}

/* 内容布局 */
.content-layout {
display: grid;
grid-template-columns: 2fr 1fr;
gap: 30px;
}

/* 文章详情 */
.article-detail {
background: var(--light-color);
border-radius: 10px;
padding: 30px;
box-shadow: var(--shadow);
position: relative;
overflow: hidden;
transform-style: preserve-3d;
}

.article-detail:before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(135deg, rgba(255, 225, 83, 0.2), rgba(255, 215, 0, 0.2));
border-radius: 10px;
transform: translateZ(-5px);
transition: var(--transition);
}

.article-detail:hover:before {
transform: translateZ(-10px);
background: linear-gradient(135deg, rgba(255, 225, 83, 0.4), rgba(255, 215, 0, 0.4));
}

.article-header {
display: grid;
grid-template-columns: 100px 1fr;
gap: 20px;
margin-bottom: 20px;
align-items: center;
}

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

.article-header:hover .article-thumbnail {
transform: scale(1.05);
}

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

.article-meta {
display: flex;
align-items: center;
font-size: 0.9rem;
color: #666;
}

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

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

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

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

.article-intro {
background: #f5f5f5;
border-radius: 8px;
padding: 20px;
margin-bottom: 25px;
font-style: italic;
border-left: 4px solid var(--primary-color);
}

.article-content {
line-height: 1.8;
margin-bottom: 30px;
}

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

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

.article-content img {
max-width: 100%;
height: auto;
border-radius: 8px;
margin: 15px 0;
box-shadow: var(--shadow);
}

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

.article-content pre {
background: #2d2d2d;
color: #f8f8f2;
padding: 15px;
border-radius: 8px;
overflow-x: auto;
margin: 20px 0;
}

.article-content code {
background: #f5f5f5;
padding: 2px 6px;
border-radius: 4px;
font-family: 'Courier New', Courier, monospace;
}

.article-content pre code {
background: none;
padding: 0;
}

.article-navigation {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 20px;
margin-top: 40px;
padding-top: 20px;
border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-item {
padding: 15px;
border-radius: 8px;
background: rgba(255, 225, 83, 0.2);
transition: var(--transition);
position: relative;
overflow: hidden;
transform-style: preserve-3d;
}

.nav-item:before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(255, 255, 255, 0.2);
border-radius: 8px;
transform: translateZ(-3px);
transition: var(--transition);
}

.nav-item:hover {
transform: translateY(-5px);
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
background: rgba(255, 225, 83, 0.4);
}

.nav-item:hover:before {
transform: translateZ(-8px);
background: rgba(255, 255, 255, 0.4);
}

.nav-item.prev {
text-align: left;
}

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

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

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

.nav-title a {
text-decoration: none;
color: var(--dark-color);
transition: var(--transition);
}

.nav-title a:hover {
color: #666;
}

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

.sidebar-section {
background: var(--light-color);
border-radius: 10px;
padding: 25px;
box-shadow: var(--shadow);
position: relative;
overflow: hidden;
transform-style: preserve-3d;
}

.sidebar-section:before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(135deg, rgba(255, 225, 83, 0.2), rgba(255, 215, 0, 0.2));
border-radius: 10px;
transform: translateZ(-5px);
transition: var(--transition);
}

.sidebar-section:hover:before {
transform: translateZ(-10px);
background: linear-gradient(135deg, rgba(255, 225, 83, 0.4), rgba(255, 215, 0, 0.4));
}

.sidebar-title {
font-size: 1.4rem;
margin-bottom: 20px;
position: relative;
display: inline-block;
}

.sidebar-title:after {
content: '';
position: absolute;
bottom: -5px;
left: 0;
width: 100%;
height: 2px;
background: var(--dark-color);
}

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

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

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

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

.sidebar-list a {
text-decoration: none;
color: var(--dark-color);
transition: var(--transition);
display: block;
word-wrap: break-word;
overflow-wrap: break-word;
word-break: break-word;
}

.sidebar-list a:hover {
color: #666;
}

/* 底部 */
.footer {
background: linear-gradient(145deg, var(--primary-color), var(--secondary-color));
padding: 30px 0;
text-align: center;
border-top: 3px solid rgba(0, 0, 0, 0.1);
box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
margin-top: 60px;
}

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

.copyright {
font-size: 1rem;
color: var(--dark-color);
}

.copyright a {
text-decoration: none;
color: var(--dark-color);
font-weight: bold;
transition: var(--transition);
position: relative;
display: inline-block;
padding: 0 5px;
}

.copyright a:after {
content: '';
position: absolute;
bottom: -2px;
left: 0;
width: 0;
height: 2px;
background: var(--dark-color);
transition: width 0.3s ease;
}

.copyright a:hover:after {
width: 100%;
}

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

.hamburger {
display: block;
}

.nav-links {
position: fixed;
top: 70px;
left: 0;
width: 100%;
background: linear-gradient(145deg, var(--primary-color), var(--secondary-color));
flex-direction: column;
align-items: center;
padding: 20px 0;
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
transform: translateY(-150%);
transition: transform 0.5s ease;
z-index: 999;
}

.nav-links.active {
transform: translateY(0);
}

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

.content-layout {
grid-template-columns: 3fr 2fr;
}

.copyright {
display: none;
}
}

@media (max-width: 768px) {
.content-layout {
grid-template-columns: 1fr;
}

.article-header {
grid-template-columns: 1fr;
gap: 15px;
}

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

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

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

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

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