:root {
--primary-color: #FFD306;
--primary-dark: #E6BE00;
--primary-light: #FFE55C;
--text-color: #333333;
--bg-color: #FFFDF0;
--card-bg: #FFFFFF;
--shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
--shadow-hover: 0 15px 30px rgba(0, 0, 0, 0.15);
}

* {
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;
overflow-x: hidden;
}

a {
text-decoration: none;
color: inherit;
transition: all 0.3s ease;
}

/* 导航栏样式 - 已修改悬停特效 */
header {
background-color: var(--primary-color);
box-shadow: var(--shadow);
position: sticky;
top: 0;
z-index: 1000;
}

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

.logo {
font-size: 1.8rem;
font-weight: bold;
color: var(--text-color);
position: relative;
overflow: hidden;
padding: 5px 10px;
border-radius: 5px;
}

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

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

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

.nav-item {
margin: 0 15px;
position: relative;
}

/* 新的导航链接样式 */
.nav-link {
padding: 10px 15px;
border-radius: 5px;
font-weight: 500;
position: relative;
overflow: hidden;
z-index: 1;
color: var(--text-color);
transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
transform: translateZ(0);
backface-visibility: hidden;
}

/* 双重背景效果 */
.nav-link::before,
.nav-link::after {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border-radius: 5px;
z-index: -1;
transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 第一层背景 - 渐变效果 */
.nav-link::before {
background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
transform: scale(0);
opacity: 0;
}

/* 第二层背景 - 边框效果 */
.nav-link::after {
border: 2px solid var(--text-color);
transform: scale(1.1);
opacity: 0;
}

/* 悬停效果 */
.nav-link:hover {
color: white;
transform: translateY(-3px) scale(1.05);
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.nav-link:hover::before {
transform: scale(1);
opacity: 1;
}

.nav-link:hover::after {
transform: scale(1);
opacity: 1;
}

/* 添加浮动粒子效果 */
.nav-link::before {
background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
transform: scale(0);
opacity: 0;
}

/* 添加文字阴影效果 */
.nav-link:hover {
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 导航项悬浮效果 */
.nav-item:hover {
transform: translateY(-2px);
}

.hamburger {
display: none;
cursor: pointer;
background: none;
border: none;
width: 30px;
height: 24px;
position: relative;
}

.hamburger span {
display: block;
position: absolute;
height: 3px;
width: 100%;
background: var(--text-color);
border-radius: 3px;
transition: all 0.3s ease;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger span:nth-child(3) { bottom: 0; }

.hamburger.active span:nth-child(1) {
transform: rotate(45deg);
top: 50%;
}

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

.hamburger.active span:nth-child(3) {
transform: rotate(-45deg);
bottom: 50%;
}

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

.section-title {
font-size: 1.8rem;
margin-bottom: 30px;
position: relative;
padding-bottom: 10px;
display: inline-block;
}

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

/* 最新文章区域 */
.latest-articles {
margin-bottom: 60px;
}

.articles-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 30px;
}

.article-card {
background: var(--card-bg);
border-radius: 10px;
padding: 25px;
box-shadow: var(--shadow);
transition: all 0.4s ease;
position: relative;
overflow: hidden;
}

.article-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 5px;
height: 100%;
background: var(--primary-color);
transform: scaleY(0);
transition: transform 0.4s ease;
transform-origin: top;
}

.article-card:hover {
transform: translateY(-10px);
box-shadow: var(--shadow-hover);
}

.article-card:hover::before {
transform: scaleY(1);
transform-origin: bottom;
}

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

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

/* 修改：使用Emoji替换SVG图标 */
.author::before {
content: "👤";
margin-right: 5px;
}

.date::before {
content: "📅";
margin-right: 5px;
}

.article-description {
color: #555;
line-height: 1.6;
}

/* 推荐文章区域 */
.featured-articles {
margin-bottom: 60px;
}

.featured-grid {
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: all 0.5s ease;
}

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

.featured-bg {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-size: cover;
background-position: center;
transition: transform 0.8s ease;
}

.featured-content {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
padding: 20px;
z-index: 2;
color: white;
transform: translateY(10px);
transition: all 0.5s ease;
}

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

.featured-description {
display: none;
}

.featured-card:hover {
transform: translateY(-10px);
box-shadow: var(--shadow-hover);
}

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

.featured-card:hover .featured-content {
transform: translateY(0);
}

.featured-card:hover .featured-description {
opacity: 1;
transform: translateY(0);
}

/* 热门文章区域 */
.popular-articles {
margin-bottom: 60px;
}

.popular-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 30px;
}

.popular-card {
background: var(--card-bg);
border-radius: 10px;
padding: 20px;
box-shadow: var(--shadow);
transition: all 0.4s ease;
display: flex;
flex-direction: column;
}

.popular-card:hover {
transform: translateY(-5px);
box-shadow: var(--shadow-hover);
}

.popular-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-bottom: 15px;
}

.popular-title {
font-size: 1.2rem;
line-height: 1.4;
flex: 1;
margin-right: 15px;
}

.popular-meta {
display: flex;
flex-direction: column;
align-items: flex-end;
min-width: 120px;
}

.popular-date, .popular-views {
font-size: 0.85rem;
color: #666;
margin-bottom: 5px;
display: flex;
align-items: center;
}

/* 修改：使用Emoji替换SVG图标 */
.popular-date::before {
content: "📅";
margin-right: 5px;
}

.popular-views::before {
content: "👁️";
margin-right: 5px;
}

.popular-description {
color: #555;
font-size: 0.95rem;
line-height: 1.5;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}

/* 文字介绍区域 */
.intro-section {
background: var(--card-bg);
border-radius: 10px;
padding: 40px;
margin-bottom: 60px;
box-shadow: var(--shadow);
position: relative;
overflow: hidden;
}

.intro-section::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 5px;
background: var(--primary-color);
}

.intro-title {
font-size: 1.8rem;
margin-bottom: 20px;
color: var(--text-color);
}

.intro-content {
font-size: 1.1rem;
line-height: 1.7;
color: #555;
}

/* 友情链接区域 */
.links-section {
margin-bottom: 60px;
}

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

.link-item {
background: var(--card-bg);
padding: 8px 15px;
border-radius: 5px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
transition: all 0.3s ease;
border: 1px solid #f0f0f0;
}

.link-item:hover {
background: var(--primary-light);
transform: translateY(-3px);
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

/* 底部样式 */
footer {
background: var(--primary-color);
padding: 30px 0;
text-align: center;
box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.05);
}

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

.copyright {
font-size: 0.95rem;
color: var(--text-color);
}

.site-name {
font-weight: bold;
position: relative;
display: inline-block;
padding: 0 5px;
}

.site-name::after {
content: '';
position: absolute;
bottom: -2px;
left: 0;
width: 100%;
height: 2px;
background: var(--text-color);
transform: scaleX(0);
transition: transform 0.3s ease;
}

.site-name:hover::after {
transform: scaleX(1);
}

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

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

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

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

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

.nav-item {
margin: 15px 0;
width: 80%;
text-align: center;
}

.hamburger {
display: block;
}

.intro-section {
display: none;
}

.links-section {
display: none;
}

.copyright {
display: none;
}
}

@media (max-width: 768px) {
.container {
padding: 0 15px;
}

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

.popular-meta {
flex-direction: row;
justify-content: space-between;
width: 100%;
margin-top: 10px;
}
}

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

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

.popular-title {
margin-right: 0;
margin-bottom: 10px;
}

.popular-meta {
align-items: flex-start;
}
}