:root {
--primary-color: #8600FF;
--primary-dark: #6A00CC;
--primary-light: #A333FF;
--text-color: #FFFFFF;
--bg-color: #1A1A2E;
--card-bg: #2A2A3E;
--shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
--transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

a {
text-decoration: none;
color: inherit;
transition: var(--transition);
}

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

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

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

.logo a {
font-size: 1.8rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 2px;
position: relative;
padding: 5px 10px;
border-radius: 5px;
overflow: hidden;
display: inline-block;
}

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

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

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

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

.nav-links a {
padding: 8px 15px;
border-radius: 5px;
position: relative;
overflow: hidden;
}

.nav-links a::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(255, 255, 255, 0.1);
transform: scaleX(0);
transform-origin: right;
transition: transform 0.3s ease;
z-index: -1;
}

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

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

.nav-links a:hover::after {
transform: scaleX(1);
}

.hamburger {
display: none;
flex-direction: column;
cursor: pointer;
}

.hamburger span {
width: 25px;
height: 3px;
background: white;
margin: 3px 0;
transition: var(--transition);
}

/* 内容区域 */
.section {
margin: 50px 0;
}

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

.section-title::after {
content: '';
position: absolute;
bottom: -2px;
left: 0;
width: 50px;
height: 2px;
background: white;
}

/* 最新文章列表 */
.latest-articles {
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: var(--transition);
position: relative;
overflow: hidden;
}

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

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

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

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

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

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

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

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

.article-author::before {
content: "✍️";
}

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

/* 推荐文章图片列表 */
.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);
}

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

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

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

.featured-card:hover {
transform: translateY(-10px) scale(1.03);
box-shadow: 0 20px 40px rgba(134, 0, 255, 0.3);
}

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

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

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

.featured-description {
display: none;
}

/* 热门文章列表 */
.popular-articles {
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: var(--transition);
display: flex;
flex-direction: column;
}

.popular-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 20px rgba(134, 0, 255, 0.2);
}

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

.popular-title {
font-size: 1.2rem;
flex: 1;
}

.popular-meta {
display: flex;
font-size: 0.8rem;
color: #CCCCCC;
}

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

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

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

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

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

/* 文字介绍 */
.intro {
background: var(--card-bg);
border-radius: 10px;
padding: 30px;
box-shadow: var(--shadow);
position: relative;
overflow: hidden;
}

.intro::before {
content: '';
position: absolute;
top: -50%;
left: -50%;
width: 200%;
height: 200%;
background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
opacity: 0.05;
z-index: 0;
}

.intro-content {
position: relative;
z-index: 1;
}

.intro h2 {
font-size: 1.8rem;
margin-bottom: 20px;
color: var(--primary-light);
}

.intro p {
margin-bottom: 15px;
line-height: 1.7;
}

/* 友情链接 */
.links-section {
margin-top: 50px;
}

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

.link-item {
background: var(--card-bg);
padding: 10px 20px;
border-radius: 5px;
transition: var(--transition);
box-shadow: var(--shadow);
}

.link-item:hover {
background: var(--primary-color);
transform: translateY(-3px);
}

/* 页脚 */
footer {
background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
padding: 30px 0;
margin-top: 50px;
text-align: center;
box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.2);
}

.footer-logo a {
font-size: 1.5rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 2px;
display: inline-block;
margin-bottom: 15px;
padding: 5px 10px;
border-radius: 5px;
position: relative;
overflow: hidden;
}

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

.footer-logo a:hover::before {
left: 100%;
}

.copyright {
font-size: 0.9rem;
color: rgba(255, 255, 255, 0.8);
}

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

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

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

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

.hamburger {
display: flex;
}

.hamburger.active span:nth-child(1) {
transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.active span:nth-child(3) {
transform: rotate(-45deg) translate(7px, -6px);
}

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

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

.intro {
display: none;
}

.links-section {
display: none;
}

.copyright {
display: none;
}
}

@media (max-width: 768px) {
.popular-meta {
flex-direction: column;
align-items: flex-start;
}

.popular-meta span {
margin-left: 0;
margin-top: 5px;
}
}

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