:root {
--primary-color: #03A9F4;
--primary-dark: #0288D1;
--primary-light: #B3E5FC;
--text-color: #333;
--light-text: #fff;
--bg-color: #f9f9f9;
--card-bg: #fff;
--shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
--deep-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
--transition: all 0.3s ease;
}

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
line-height: 1.6;
color: var(--text-color);
background-color: var(--bg-color);
overflow-x: hidden;
}

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

/* 导航栏样式 */
header {
background-color: var(--primary-color);
box-shadow: var(--deep-shadow);
position: sticky;
top: 0;
z-index: 1000;
}

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

.logo {
font-size: 1.8rem;
font-weight: 700;
color: var(--light-text);
position: relative;
overflow: hidden;
}

.logo a {
display: block;
padding: 10px;
position: relative;
z-index: 1;
}

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

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

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

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

.nav-link {
color: var(--light-text);
padding: 10px 15px;
border-radius: 4px;
position: relative;
overflow: hidden;
display: block;
}

.nav-link::before, .nav-link::after {
content: '';
position: absolute;
width: 0;
height: 2px;
background-color: var(--light-text);
transition: width 0.3s ease;
}

.nav-link::before {
top: 0;
left: 0;
}

.nav-link::after {
bottom: 0;
right: 0;
}

.nav-link:hover::before, .nav-link:hover::after {
width: 100%;
}

.nav-link:hover {
background-color: rgba(255, 255, 255, 0.1);
transform: translateY(-2px);
}

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

.hamburger span {
display: block;
height: 3px;
width: 100%;
background-color: var(--light-text);
margin: 5px 0;
transition: var(--transition);
border-radius: 2px;
}

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

.section {
margin-bottom: 60px;
}

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

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

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

.article-card {
background-color: var(--card-bg);
border-radius: 8px;
box-shadow: var(--shadow);
padding: 25px;
transition: var(--transition);
position: relative;
overflow: hidden;
}

.article-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 4px;
background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
transform: scaleX(0);
transform-origin: left;
transition: transform 0.3s ease;
}

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

.article-card:hover::before {
transform: scaleX(1);
}

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

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

.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-meta .views::before {
content: "👁️";
}

.article-desc {
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);
}

.featured-card:hover {
transform: translateY(-5px) scale(1.02);
box-shadow: var(--deep-shadow);
}

.featured-bg {
position: absolute;
top: 0;
left: 0;
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-overlay {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
padding: 20px;
background: linear-gradient(transparent, rgba(0,0,0,0.7));
color: var(--light-text);
transform: translateY(10px);
opacity: 0;
transition: var(--transition);
}

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

.featured-title {
font-size: 1.1rem;
margin-bottom: 8px;
}

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

.featured-desc {
display: none;
}

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

.popular-card {
background-color: var(--card-bg);
border-radius: 8px;
box-shadow: var(--shadow);
padding: 25px;
transition: var(--transition);
display: flex;
flex-direction: column;
}

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

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

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

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

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

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

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

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

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

/* 文字介绍部分 */
.intro-section {
background-color: var(--card-bg);
border-radius: 8px;
box-shadow: var(--shadow);
padding: 40px;
position: relative;
overflow: hidden;
}

.intro-section::before {
content: '';
position: absolute;
top: -50%;
left: -50%;
width: 200%;
height: 200%;
background: conic-gradient(
transparent,
rgba(3, 169, 244, 0.1),
transparent 30%
);
animation: rotate 10s linear infinite;
}

@keyframes rotate {
100% {
transform: rotate(360deg);
}
}

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

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

.intro-text {
line-height: 1.8;
font-size: 1.05rem;
}

/* 友情链接部分 */
.links-section {
background-color: var(--card-bg);
border-radius: 8px;
box-shadow: var(--shadow);
padding: 30px;
}

.links-title {
font-size: 1.3rem;
margin-bottom: 20px;
color: var(--primary-color);
}

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

.link-item {
padding: 8px 15px;
background-color: var(--primary-light);
border-radius: 4px;
transition: var(--transition);
}

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

/* 底部样式 */
footer {
background-color: var(--primary-color);
color: var(--light-text);
padding: 30px 0;
margin-top: 60px;
}

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

.site-name {
font-size: 1.5rem;
font-weight: 700;
margin-bottom: 10px;
}

.site-name a {
padding: 5px 10px;
border-radius: 4px;
transition: var(--transition);
}

.site-name a:hover {
background-color: rgba(255, 255, 255, 0.1);
}

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

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

.nav-menu {
position: fixed;
top: 70px;
left: -100%;
width: 80%;
height: calc(100vh - 70px);
background-color: var(--primary-color);
flex-direction: column;
align-items: center;
padding-top: 40px;
transition: var(--transition);
box-shadow: var(--deep-shadow);
}

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

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

.hamburger {
display: block;
}

.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-section {
display: none;
}

.links-section {
display: none;
}

.copyright {
display: none;
}
}

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

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

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

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