/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

a {
    text-decoration: none;
    color: #0066cc;
    transition: color 0.3s;
}

a:hover {
    color: #004499;
}

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

/* 头部样式 */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo a {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

/* 导航菜单父级样式 */
.nav-menu ul {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin-right: 20px;
}

.nav-menu li a {
    text-decoration: none;
    color: #555;
    font-size: 14px;
    padding: 10px 16px;
    display: block;
}

/* 下拉菜单样式 */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    cursor: pointer;
    font-size: 14px;
    position: relative;
}

/* 下拉箭头 */
.dropbtn::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #555;
    margin-left: 5px;
    vertical-align: middle;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 160px;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.1);
    z-index: 1;
    border-radius: 4px;
    padding: 10px 0;
    left: 0;
    top: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.dropdown-content li {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dropdown-content a {
    color: #555;
    padding: 8px 16px;
    text-decoration: none;
    font-size: 14px;
    display: block;
    transition: background-color 0.3s, color 0.3s;
}

.dropdown-content a:hover {
    background-color: #f5f5f5;
    color: #0066cc;
}

/* 显示下拉菜单 */
.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
    display: block;
    opacity: 1;
    visibility: visible;
}

.search-box input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.search-box button {
    padding: 8px 15px;
    background: #0066cc;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* 主要内容区域 */
.main-content {
    display: flex;
    margin: 30px 0;
}

/* 文章列表样式 */
.article-list {
    margin-right: 30px;
}

.article-item {
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
}

.article-thumbnail {
    flex: 0 0 200px;
    margin-right: 20px;
}

.article-thumbnail img {
    width: 100%;
    border-radius: 4px;
}

.article-info {
    flex: 1;
}

.article-info h3 {
    margin-bottom: 10px;
    font-size: 20px;
}

.meta {
    color: #777;
    font-size: 14px;
    margin-bottom: 10px;
}

.meta span {
    margin-right: 15px;
}

.excerpt {
    color: #555;
    margin-bottom: 15px;
}

.read-more {
    display: inline-block;
    padding: 5px 10px;
    background: #f0f0f0;
    border-radius: 3px;
    font-size: 14px;
}
.latest-articles {
    flex: 1;
}

/* 侧边栏样式 */
.sidebar {
    flex: 0 0 350px;
}

.widget {
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin-bottom: 20px;
}

.widget-title {
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.widget ul {
    list-style: none;
}

.widget li {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
}

.widget li:last-child {
    border-bottom: none;
}

.tag-cloud a {
    display: inline-block;
    padding: 3px 8px;
    background: #f0f0f0;
    border-radius: 3px;
    margin: 0 5px 5px 0;
    font-size: 14px;
}

/* 页脚样式 */
.site-footer {
    background: #333;
    color: #fff;
    padding: 40px 0 20px;
}

.footer-widgets {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.footer-widgets .widget {
    flex: 1;
    min-width: 250px;
    background: transparent;
    box-shadow: none;
    color: #ddd;
    margin-right: 20px;
}

.footer-widgets .widget:last-child {
    margin-right: 0;
}

.footer-widgets a {
    color: #ddd;
}

.footer-widgets a:hover {
    color: #fff;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #aaa;
    font-size: 14px;
}

/* 文章详情页特定样式 */
.article-detail {
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    padding: 30px;
    margin-bottom: 30px;
}

.article-header {
    margin-bottom: 30px;
}

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

.article-meta {
    color: #777;
    font-size: 14px;
    margin-bottom: 15px;
}

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

.article-tags a {
    display: inline-block;
    padding: 3px 8px;
    background: #f0f0f0;
    border-radius: 3px;
    margin-right: 5px;
    font-size: 14px;
}

.article-cover {
    margin-bottom: 30px;
}

.article-cover img {
    width: 100%;
    border-radius: 5px;
}

.article-content {
    font-size: 16px;
    line-height: 1.8;
}

.article-content h2 {
    font-size: 22px;
    margin: 30px 0 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.article-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
    }
    
    .main-nav {
        margin: 15px 0;
    }
    
    .main-content {
        flex-direction: column;
    }
    
    .article-list {
        margin-right: 0;
        margin-bottom: 30px;
    }
    
    .article-item {
        flex-direction: column;
    }
    
    .article-thumbnail {
        flex: 0 0 auto;
        margin-right: 0;
        margin-bottom: 15px;
    }
}
/* 相关文章区域 */
.related-articles {
    margin: 40px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: #333;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: #3498db;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.related-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.related-card a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.related-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-bottom: 1px solid #f0f0f0;
}

.related-card h3 {
    font-size: 1rem;
    margin: 15px;
    line-height: 1.4;
    color: #333;
    font-weight: 500;
}
/* 精选文章区域 - 杂志风格 */
.featured-articles {
    margin: 60px 0;
    padding: 40px 0;
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: #2c3e50;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, #3498db, #9b59b6);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.featured-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.featured-card a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.featured-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.featured-content {
    padding: 25px;
}

.featured-card h3 {
    font-size: 1.3rem;
    margin: 0 0 15px;
    line-height: 1.4;
    color: #2c3e50;
}

.meta {
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-bottom: 15px;
}

.excerpt {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
}
/* 面包屑导航样式 */
		.breadcrumb {
			padding: 15px 0;
			margin-bottom: 30px;
			font-size: 0.9rem;
			color: #666;
			border-bottom: 1px solid #eee;
		}

		.breadcrumb a {
			text-decoration: none;
			transition: color 0.2s;
		}

		.breadcrumb a:hover {
			text-decoration: underline;
		}

		.breadcrumb span {
			color: #777;
		}

		.breadcrumb .separator {
			margin: 0 8px;
			color: #999;
		}
/* 分页组件 - 简约现代风格 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
    flex-wrap: wrap;
    gap: 8px;
}

.pagination a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 40px;
    height: 40px;
    padding: 0 5px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
}

.pagination a.active {
    background-color: #0066cc;
    border-color: #0066cc;
    color: white;
    font-weight: 500;
}

.pagination a.next,
.pagination a.prev {
    padding: 0 15px;
}

/* 响应式调整 */
@media (max-width: 576px) {
    .pagination a {
        min-width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .pagination a.next,
    .pagination a.prev {
        padding: 0 10px;
    }
}