:root {
--primary-color: #AE8F00;
--primary-dark: #8c7200;
--primary-light: #d6b500;
--text-color: #333;
--light-color: #f8f8f8;
--shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
--transition: all 0.3s ease;
}

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

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

a {
text-decoration: none;
color: inherit;
}

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

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

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

.logo {
font-size: 24px;
font-weight: bold;
color: white;
text-transform: uppercase;
letter-spacing: 1px;
position: relative;
overflow: hidden;
padding: 5px 10px;
border-radius: 4px;
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 ease;
}

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

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

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

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

.nav-menu a {
color: white;
font-weight: 500;
padding: 8px 12px;
border-radius: 4px;
transition: var(--transition);
position: relative;
overflow: hidden;
}

.nav-menu a::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: rgba(255, 255, 255, 0.1);
transition: left 0.3s ease;
}

.nav-menu a:hover::before {
left: 0;
}

.nav-menu a:hover {
background: rgba(255, 255, 255, 0.15);
transform: translateY(-2px);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.nav-menu a::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 0;
height: 2px;
background: white;
transition: width 0.3s ease;
}

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

.hamburger {
display: none;
cursor: pointer;
background: none;
border: none;
color: white;
font-size: 24px;
}

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

section {
margin-bottom: 60px;
}

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

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

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

.article-card {
background: white;
border-radius: 8px;
overflow: hidden;
box-shadow: var(--shadow);
transition: var(--transition);
transform: translateY(0);
position: relative;
}

.article-card:hover {
transform: translateY(-10px);
box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.article-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(135deg, rgba(174, 143, 0, 0.1), transparent);
opacity: 0;
transition: opacity 0.3s ease;
}

.article-card:hover::before {
opacity: 1;
}

.article-content {
padding: 20px;
}

.article-title {
font-size: 20px;
margin-bottom: 10px;
line-height: 1.4;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}

.article-title a {
transition: var(--transition);
}

.article-title a:hover {
color: var(--primary-color);
}

.article-meta {
display: flex;
align-items: center;
margin-bottom: 15px;
font-size: 14px;
color: #666;
}

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

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

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

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

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

.featured-card {
height: 250px;
border-radius: 8px;
overflow: hidden;
position: relative;
box-shadow: var(--shadow);
transition: var(--transition);
background-size: cover;
background-position: center;
}

.featured-card:hover {
transform: scale(1.05);
box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

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

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

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

.featured-title {
font-size: 18px;
margin-bottom: 10px;
line-height: 1.4;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}

.featured-title a {
transition: var(--transition);
}

.featured-title a:hover {
color: var(--primary-light);
}

.featured-description {
font-size: 14px;
opacity: 0.9;
line-height: 1.5;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}

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

.popular-card {
background: white;
border-radius: 8px;
overflow: hidden;
box-shadow: var(--shadow);
transition: var(--transition);
display: flex;
flex-direction: column;
}

.popular-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.popular-content {
padding: 20px;
flex-grow: 1;
}

.popular-title {
font-size: 18px;
margin-bottom: 15px;
line-height: 1.4;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}

.popular-title a {
transition: var(--transition);
}

.popular-title a:hover {
color: var(--primary-color);
}

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

.popular-meta span {
display: flex;
align-items: center;
}

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

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

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

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

/* 文字介绍区域 */
.intro-section {
background: white;
padding: 40px;
border-radius: 8px;
box-shadow: var(--shadow);
position: relative;
overflow: hidden;
}

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

.intro-title {
font-size: 24px;
margin-bottom: 20px;
color: var(--primary-color);
}

.intro-content {
line-height: 1.8;
color: #555;
}

/* 友情链接区域 */
.links-section {
background: white;
padding: 30px;
border-radius: 8px;
box-shadow: var(--shadow);
}

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

.links-list a {
padding: 8px 15px;
background: #f0f0f0;
border-radius: 4px;
transition: var(--transition);
font-size: 14px;
}

.links-list a:hover {
background: var(--primary-color);
color: white;
transform: translateY(-3px);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

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

.copyright {
font-size: 16px;
}

.copyright a {
font-weight: bold;
transition: var(--transition);
position: relative;
padding: 0 5px;
}

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

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

/* 响应式设计 */
@media (max-width: 1024px) {
.latest-articles,
.popular-articles {
grid-template-columns: 1fr;
}

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

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

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

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

.hamburger {
display: block;
}

.intro-section {
display: none;
}

.links-section {
display: none;
}

.copyright {
display: none;
}
}

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

.popular-meta {
flex-direction: column;
gap: 10px;
}
}

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