: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;
height: 70px;
padding: 0 20px;
}

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

.section {
margin-bottom: 60px;
}

.section-title {
font-size: 1.8rem;
margin-bottom: 30px;
padding-bottom: 15px;
border-bottom: 2px solid rgba(0, 0, 0, 0.1);
position: relative;
}

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

/* 最新文章列表 */
.latest-articles {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 30px;
}

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

.article-card: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-card:hover {
transform: translateY(-10px) rotateX(5deg);
box-shadow: 0 20px 30px rgba(0, 0, 0, 0.25);
}

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

.article-title {
font-size: 1.4rem;
margin-bottom: 15px;
}

.article-title a {
text-decoration: none;
color: var(--dark-color);
transition: var(--transition);
position: relative;
display: inline-block;
}

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

.article-title a:hover:after {
width: 100%;
}

.article-meta {
display: flex;
align-items: center;
margin-bottom: 15px;
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 .author:before {
content: "👤";
}

.article-excerpt {
color: #555;
line-height: 1.7;
}

/* 推荐文章图片列表 */
.featured-articles {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 20px;
}

.featured-card {
height: 250px;
border-radius: 10px;
overflow: hidden;
position: relative;
box-shadow: var(--shadow);
transition: var(--transition);
transform-style: preserve-3d;
}

.featured-card:before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(to bottom, transparent 30%, rgba(0, 0, 0, 0.7));
z-index: 1;
transition: var(--transition);
}

.featured-card:hover {
transform: translateY(-10px) scale(1.03) rotateY(5deg);
box-shadow: 0 25px 40px rgba(0, 0, 0, 0.3);
}

.featured-card:hover:before {
background: linear-gradient(to bottom, transparent 10%, rgba(0, 0, 0, 0.8));
}

.featured-bg {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-size: cover;
background-position: center;
transition: var(--transition);
}

.featured-card:hover .featured-bg {
transform: scale(1.1);
}

.featured-content {
position: absolute;
bottom: 0;
left: 0;
padding: 20px;
z-index: 2;
width: 100%;
color: var(--light-color);
}

.featured-title {
font-size: 1.2rem;
margin-bottom: 10px;
}

.featured-title a {
color: var(--light-color);
text-decoration: none;
transition: var(--transition);
position: relative;
}

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

.featured-title a:hover:after {
width: 100%;
}

.featured-excerpt {
font-size: 0.9rem;
opacity: 0.9;
}

/* 热门文章列表 */
.popular-articles {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 30px;
}

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

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

.popular-card:hover {
transform: translateY(-10px) rotateX(5deg);
box-shadow: 0 20px 30px rgba(0, 0, 0, 0.25);
}

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

.popular-meta {
display: flex;
justify-content: space-between;
margin-bottom: 15px;
font-size: 0.9rem;
color: #666;
}

.popular-meta .left, .popular-meta .right {
display: flex;
}

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

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

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

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

.popular-excerpt {
color: #555;
line-height: 1.7;
overflow: hidden;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}

/* 文字介绍 */
.intro-section {
background: var(--light-color);
border-radius: 10px;
padding: 40px;
box-shadow: var(--shadow);
position: relative;
overflow: hidden;
transform-style: preserve-3d;
}

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

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

.intro-title:after {
content: '';
position: absolute;
bottom: -5px;
left: 0;
width: 100%;
height: 3px;
background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
border-radius: 3px;
}

.intro-content {
font-size: 1.1rem;
line-height: 1.8;
}

/* 友情链接 */
.links-section {
background: var(--light-color);
border-radius: 10px;
padding: 30px;
box-shadow: var(--shadow);
position: relative;
overflow: hidden;
transform-style: preserve-3d;
}

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

.links-container {
display: flex;
flex-wrap: wrap;
gap: 15px;
}

.link-item {
background: rgba(255, 225, 83, 0.3);
padding: 8px 15px;
border-radius: 20px;
transition: var(--transition);
}

.link-item a {
text-decoration: none;
color: var(--dark-color);
font-size: 0.9rem;
}

.link-item:hover {
background: rgba(255, 225, 83, 0.6);
transform: translateY(-3px);
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

/* 底部 */
.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);
}

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

.featured-articles {
grid-template-columns: repeat(2, 1fr);
}

.intro-section {
display: none;
}

.links-section {
display: none;
}
}

@media (max-width: 768px) {
.latest-articles,
.popular-articles {
grid-template-columns: 1fr;
}

.featured-articles {
grid-template-columns: 1fr;
}

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

.popular-meta .left {
margin-bottom: 10px;
}
}

@media (max-width: 500px) {
.featured-articles {
grid-template-columns: 1fr;
}
}