:root {
--primary-color: #1ad1ff;
--primary-dark: #00a0cc;
--primary-light: #80e8ff;
--text-color: #333;
--bg-color: #f5f5f5;
--card-bg: #fff;
--shadow-color: rgba(26, 209, 255, 0.3);
}

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

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

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

.logo a {
color: white;
text-decoration: none;
font-size: 1.8rem;
font-weight: bold;
letter-spacing: 1px;
text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
transition: all 0.3s ease;
display: inline-block;
position: relative;
}

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

.logo a:hover {
transform: scale(1.05);
text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

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

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

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

.nav-menu a {
color: white;
text-decoration: none;
font-weight: 500;
padding: 10px 0;
transition: all 0.3s ease;
position: relative;
display: inline-block;
}

.nav-menu a:before {
content: '';
position: absolute;
width: 100%;
height: 2px;
bottom: 0;
left: 0;
background-color: white;
transform: scaleX(0);
transform-origin: right;
transition: transform 0.3s ease;
}

.nav-menu a:hover {
transform: translateY(-3px);
text-shadow: 0 0 8px rgba(255, 255, 255, 0.7);
}

.nav-menu a:hover:before {
transform: scaleX(1);
transform-origin: left;
}

/* 汉堡菜单 */
.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: white;
border-radius: 3px;
opacity: 1;
left: 0;
transform: rotate(0deg);
transition: .25s ease-in-out;
}

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

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

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

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

.section-title {
font-size: 1.8rem;
margin-bottom: 30px;
color: var(--primary-dark);
text-align: center;
position: relative;
padding-bottom: 15px;
}

.section-title:after {
content: '';
position: absolute;
width: 80px;
height: 3px;
background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
bottom: 0;
left: 50%;
transform: translateX(-50%);
}

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

.article-card {
background: var(--card-bg);
border-radius: 10px;
overflow: hidden;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
transition: all 0.4s ease;
position: relative;
z-index: 1;
}

.article-card:before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(135deg, var(--primary-light), transparent);
opacity: 0;
transition: opacity 0.4s ease;
z-index: -1;
}

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

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

.article-content {
padding: 25px;
}

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

.article-title a {
color: var(--text-color);
text-decoration: none;
transition: color 0.3s ease;
}

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

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

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

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

.article-meta .author:before {
content: "👤";
}

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

.article-meta .read-count:before {
content: "👁️";
}

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

/* 推荐文章样式 */
.featured-articles {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 20px;
margin-bottom: 60px;
}

.featured-card {
height: 300px;
border-radius: 10px;
overflow: hidden;
position: relative;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
transition: all 0.4s ease;
}

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

.featured-card:hover {
transform: translateY(-10px) scale(1.03);
box-shadow: 0 15px 30px var(--shadow-color);
}

.featured-bg {
width: 100%;
height: 100%;
background-size: cover;
background-position: center;
transition: transform 0.5s ease;
}

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

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

.featured-title a {
color: white;
text-decoration: none;
transition: color 0.3s ease;
}

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

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

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

.popular-card {
background: var(--card-bg);
border-radius: 10px;
overflow: hidden;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
transition: all 0.4s ease;
display: flex;
flex-direction: column;
}

.popular-card:hover {
transform: translateY(-10px);
box-shadow: 0 15px 30px var(--shadow-color);
}

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

.popular-title {
font-size: 1.3rem;
margin-bottom: 15px;
}

.popular-title a {
color: var(--text-color);
text-decoration: none;
transition: color 0.3s ease;
}

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

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

.popular-description {
color: #666;
line-height: 1.6;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}

/* 文字介绍样式 */
.intro-section {
background: var(--card-bg);
padding: 40px;
border-radius: 10px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
margin-bottom: 60px;
text-align: center;
position: relative;
overflow: hidden;
}

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

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

.intro-text {
font-size: 1.1rem;
line-height: 1.8;
max-width: 800px;
margin: 0 auto;
}

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

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

.link-item {
background: var(--card-bg);
padding: 10px 20px;
border-radius: 5px;
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
transition: all 0.3s ease;
}

.link-item:hover {
transform: translateY(-5px);
box-shadow: 0 8px 15px var(--shadow-color);
}

.link-item a {
color: var(--text-color);
text-decoration: none;
transition: color 0.3s ease;
}

.link-item a:hover {
color: var(--primary-color);
}

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

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

.footer-logo {
font-size: 1.5rem;
margin-bottom: 15px;
}

.footer-logo a {
color: white;
text-decoration: none;
transition: all 0.3s ease;
}

.footer-logo a:hover {
text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.copyright {
font-size: 0.9rem;
opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 1024px) {
.hamburger {
display: block;
}

.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: 50px;
transition: right 0.5s ease;
box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

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

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

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

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

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

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

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

.intro-section {
display: none;
}

.links-section {
display: none;
}

.copyright {
display: none;
}
}

@media (max-width: 768px) {
.popular-meta {
flex-direction: column;
gap: 5px;
}
}

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