/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

:root {
    --primary-color: #1E9FFF;
    --secondary-color: #2D8CF0;
    --dark-color: #2C3E50;
    --light-color: #F8F9FA;
    --text-color: #333;
    --text-light: #666;
    --border-color: #E8E8E8;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
    --section-spacing: 20px;
}

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

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

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

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

.btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
}

.btn:hover {
    background-color: var(--secondary-color);
    color: white;
}

/* 顶部导航栏 */
.top-bar {
    background-color: var(--dark-color);
    color: white;
    padding: 8px 0;
    font-size: 14px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-links {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 5px;
}

.top-bar-links::-webkit-scrollbar {
    height: 4px;
}

.top-bar-links::-webkit-scrollbar-thumb {
    background-color: rgba(255,255,255,0.3);
    border-radius: 2px;
}

.top-bar-links li {
    margin-right: 15px;
    flex-shrink: 0;
}

.top-bar-links a {
    color: white;
}

.top-bar-links a:hover {
    color: #f0f0f0;
}

/* 主导航栏 */
.main-nav {
    background-color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 26px;
    font-weight: bold;
    color: var(--dark-color);
    flex-shrink: 0;
}

.logo span {
    color: var(--primary-color);
}

.main-nav-links {
    display: flex;
    list-style: none;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 5px;
}

.main-nav-links::-webkit-scrollbar {
    height: 4px;
}

.main-nav-links::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.1);
    border-radius: 2px;
}

.main-nav-links li {
    margin: 0 15px;
    position: relative;
    flex-shrink: 0;
}

.main-nav-links a {
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

.main-nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.main-nav-links a:hover::after,
.main-nav-links a.active::after {
    width: 100%;
}

.main-nav-links a.active {
    color: var(--primary-color);
}

/* 搜索按钮样式 */
.search-toggle {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    cursor: pointer;
    font-size: 18px;
    color: var(--dark-color);
    transition: var(--transition);
    padding: 8px 12px;
    border-radius: 4px;
}

.search-toggle:hover {
    background-color: #f5f7fa;
    color: var(--primary-color);
}

.search-toggle i,
.mobile-search-toggle i {
    margin-right: 5px;
}

/* 搜索框样式 */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: flex-start;
    padding-top: 100px;
    z-index: 2000;
}

.search-overlay.active {
    display: flex;
}

.search-container {
    width: 90%;
    max-width: 800px;
}

.search-box {
    width: 100%;
    background: white;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    transition: all 0.3s ease;
    position: relative;
}

.search-box:focus-within {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.search-input-container {
    flex: 1;
    display: flex;
    align-items: center;
    position: relative;
}

.search-input {
    flex: 1;
    padding: 20px 30px;
    border: none;
    background: transparent;
    font-size: 18px;
    outline: none;
    color: #333;
    width: 100%;
}

.search-input::placeholder {
    color: #aaa;
}

.search-clear {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 16px;
    display: none;
}

.search-clear.visible {
    display: block;
}

.search-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0 40px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.search-button:hover {
    background: var(--secondary-color);
}

.hidden-inputs {
    display: none;
}

/* 汉堡菜单 */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.hamburger-menu span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--dark-color);
    border-radius: 3px;
    transition: var(--transition);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    z-index: 2000;
    padding: 20px;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.mobile-nav.active {
    transform: translateX(0);
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-close {
    font-size: 24px;
    cursor: pointer;
    color: var(--text-color);
}

.mobile-top-links {
    list-style: none;
    margin-bottom: 25px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.mobile-top-links li {
    margin-bottom: 8px;
}

.mobile-top-links a {
    display: block;
    padding: 8px 12px;
    background-color: #f8f9fa;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
    transition: var(--transition);
}

.mobile-top-links a:hover {
    background-color: var(--primary-color);
    color: white;
}

.mobile-nav-links {
    list-style: none;
    margin-bottom: 25px;
}

.mobile-nav-links li {
    margin-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 12px;
}

.mobile-nav-links a {
    font-size: 18px;
    font-weight: 500;
    display: block;
    padding: 8px 0;
}

.mobile-nav-links a.active {
    color: var(--primary-color);
}

/* 移动端导航栏右侧按钮容器 */
.mobile-nav-right {
    display: none;
    align-items: center;
    gap: 15px;
}

/* 移动端搜索按钮 */
.mobile-search-toggle {
    display: none;
    align-items: center;
    flex-shrink: 0;
    cursor: pointer;
    font-size: 18px;
    color: var(--dark-color);
    transition: var(--transition);
    padding: 8px 12px;
    border-radius: 4px;
}

.mobile-search-toggle:hover {
    background-color: #f5f7fa;
    color: var(--primary-color);
}

/* 分页样式 */
.epages { text-align: center; color: #666; width: 100%; clear: both; padding-top: 10px; }
.epages a {color: #666;margin: 0 5px 10px;padding: 5px 10px;background: #efefef;display: inline-block;}
.epages a:nth-child(1) { background: none; margin: 0; padding: 0 50px 0 0; position: relative }
.epages a:nth-child(1):after { position: absolute; content: "篇文章"; right: 0; bottom: 0 }
.epages a:nth-child(1):hover { background: none; color: #666 }
.epages a:hover, .epages > b { color: #FFF; background: #1E9FFF; }
.epages > b { padding: 5px 10px; }

/* 横幅区域 */
.banner-section {
    margin: var(--section-spacing) 0;
}

.banner-container {
    display: flex;
    gap: 20px;
}

.carousel {
    flex: 2;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow);
}

.carousel-slides {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 20px;
}

.slide-content h2 {
    font-size: 22px;
    margin-bottom: 10px;
}

.slide-content p {
    font-size: 14px;
    margin-bottom: 10px;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    margin: 0 5px;
    cursor: pointer;
}

.indicator.active {
    background-color: white;
}

.banner-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.side-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.side-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

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

.side-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 15px;
}

.side-card-content h3 {
    font-size: 16px;
    margin-bottom: 8px;
    line-height: 1.4;
}

/* 主要内容区域 */
.main-content {
    display: flex;
    gap: 30px;
    margin: var(--section-spacing) 0 var(--section-spacing) 0;
}

.content {
    flex: 2;
}

.sidebar {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.section-title {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-more {
    font-size: 14px;
    color: var(--text-light);
}

/* 文章卡片样式 - 替换后的样式 */
.article-list {
    margin-bottom: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

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

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.article-img {
    width: 200px;
    flex-shrink: 0;
    overflow: hidden;
}

.article-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.article-card:hover .article-img img {
    transform: scale(1.05);
}

.article-content {
    padding: 15px;
    flex: 1;
}

.article-title {
    font-size: 16px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.article-summary {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 10px;
    line-height: 1.5;
}

.article-meta {
    display: flex;
    color: var(--text-light);
    font-size: 12px;
    margin-top: 15px;
}

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

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

.category-name {
    color: var(--primary-color);
    font-weight: 500;
}

/* 侧边栏样式 */
.sidebar-widget {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: var(--section-spacing);
    box-shadow: var(--shadow);
}

.widget-title {
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.widget-more {
    font-size: 12px;
    color: var(--text-light);
}

/* 热门文章和推荐文章样式 */
.hot-news .news-item, .recommend-news .news-item {
    margin-bottom: 12px;
    padding-bottom: 12px;
    display: flex;
    align-items: flex-start;
}

.hot-news .news-item:last-child, .recommend-news .news-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
}

.news-img {
    width: 70px;
    height: 50px;
    border-radius: 4px;
    overflow: hidden;
    margin-right: 10px;
    flex-shrink: 0;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-info {
    flex: 1;
}

.news-info h4 {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 5px;
}

.news-summary {
    color: var(--text-light);
    font-size: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 热门标签样式 */
.tags {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(6, auto);
    gap: 8px;
    min-height: 180px;
}

.tag {
    display: inline-block;
    padding: 6px 8px;
    background-color: #f5f7fa;
    border: 1px solid #e8e8e8;
    border-radius: 3px;
    font-size: 13px;
    color: #666;
    transition: var(--transition);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tag:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 侧边栏图片 */
.sidebar-image {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: var(--section-spacing);
}

.sidebar-image img {
    width: 100%;
    height: 205px;
    object-fit: cover;
    display: block;
}

/* 底部栏目上方的大横条图片 */
.category-banner {
    width: 100%;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    margin: var(--section-spacing) 0;
    box-shadow: var(--shadow);
}

.category-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 底部栏目样式 */
.category-section {
    margin: var(--section-spacing) 0;
}

.category-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.category-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.category-header {
    background-color: #f8f9fa;
    color: var(--text-color);
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}

.category-header i {
    margin-right: 8px;
    color: var(--primary-color);
}

.category-featured {
    display: flex;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

.category-featured-img {
    width: 80px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    margin-right: 10px;
    flex-shrink: 0;
}

.category-featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-featured-content h4 {
    font-size: 14px;
    margin-bottom: 5px;
    line-height: 1.4;
}

.category-featured-content p {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.4;
}

.category-list {
    padding: 15px;
}

.category-item {
    padding: 8px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.category-item::before {
    content: ">";
    color: var(--primary-color);
    font-size: 12px;
    margin-right: 8px;
}

.category-item a {
    display: block;
    font-size: 14px;
    flex: 1;
}

.category-date {
    font-size: 12px;
    color: var(--text-light);
}

/* 友情链接样式 */
.friend-links {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin: var(--section-spacing) 0;
    box-shadow: var(--shadow);
}

.friend-links-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.friend-links-title {
    font-size: 18px;
}

.friend-links-more {
    font-size: 14px;
    color: var(--text-light);
}

.friend-links-list {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 15px;
}

.friend-link {
    display: block;
    padding: 8px 12px;
    background-color: #f8f9fa;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
    color: var(--text-color);
    transition: var(--transition);
}

.friend-link:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* 尾部样式 */
footer {
    background-color: #f8f9fa;
    color: var(--text-light);
    padding: 15px 0 10px;
    margin-top: var(--section-spacing);
    border-top: 1px solid var(--border-color);
}

.footer-links {
    display: flex;
    justify-content: center;
    list-style: none;
    margin-bottom: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.footer-links li {
    margin: 0 15px;
    position: relative;
    display: flex;
    align-items: center;
}

.footer-links li:not(:first-child)::before {
    content: "|";
    position: absolute;
    left: -16px;
    color: #ccc;
    font-size: 12px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.6;
}

.footer-bottom {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    font-size: 12px;
    color: #999;
    line-height: 1.8;
}

.footer-bottom p {
    margin-bottom: 8px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .friend-links-list {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .tags {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(8, auto);
    }
}

@media (max-width: 992px) {
    .main-content {
        flex-direction: column;
    }
    
    .banner-container {
        flex-direction: column;
    }
    
    .article-card {
        flex-direction: column;
    }
    
    .article-img {
        width: 100%;
        height: 200px;
    }
    
    .category-container {
        grid-template-columns: 1fr;
    }
    
    .friend-links-list {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .tags {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(6, auto);
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }
    
    /* 在移动端隐藏主导航链接和桌面搜索按钮 */
    .main-nav-links, .search-toggle {
        display: none;
    }
    
    .hamburger-menu {
        display: flex;
    }
    
    .mobile-nav-right {
        display: flex;
    }
    
    .mobile-search-toggle {
        display: flex;
    }
    
    .mobile-nav {
        display: block;
    }
    
    .carousel-slide img {
        height: 200px;
    }
    
    .slide-content {
        padding: 15px;
    }
    
    .slide-content h2 {
        font-size: 18px;
    }
    
    .slide-content p {
        font-size: 12px;
        margin-bottom: 8px;
    }
    
    .category-featured {
        flex-direction: column;
    }
    
    .category-featured-img {
        width: 100%;
        height: 120px;
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .category-featured-content h4 {
        font-size: 16px;
    }
    
    .category-featured-content p {
        font-size: 14px;
    }
    
    .category-list {
        padding: 10px;
    }
    
    .category-item {
        padding: 10px 0;
    }
    
    .category-item a {
        font-size: 14px;
    }
    
    .friend-links-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-links {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-links li {
        margin: 5px 0;
    }
    
    .footer-links li:not(:first-child)::before {
        content: none;
    }
    
    .tags {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(8, auto);
    }
    
    .search-box {
        flex-direction: column;
        border-radius: 20px;
    }
    
    .search-input {
        border-radius: 20px 20px 0 0;
    }
    
    .search-button {
        padding: 15px;
        border-radius: 0 0 20px 20px;
    }
}

@media (max-width: 576px) {
    .friend-links-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tags {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(12, auto);
    }
    
    .mobile-top-links {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .carousel-slide img {
        height: 180px;
    }
    
    .slide-content {
        padding: 12px;
    }
    
    .slide-content h2 {
        font-size: 16px;
        margin-bottom: 5px;
    }
    
    .category-header {
        padding: 12px 15px;
        font-size: 16px;
    }
    
    .category-featured {
        padding: 12px;
    }
    
    .footer-links {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .footer-links li {
        margin: 0;
        text-align: center;
        justify-content: center;
    }
    
    .footer-links li:not(:first-child)::before {
        content: none;
    }
}

@media (max-width: 400px) {
    .carousel-slide img {
        height: 160px;
    }
    
    .slide-content h2 {
        font-size: 14px;
    }
    
    .slide-content p {
        display: none;
    }
    
    .category-featured-img {
        height: 100px;
    }
    
    .friend-links-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mobile-top-links {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 内容页样式 */
.content-section {
    margin: 20px 0;
}

.article-container {
    display: flex;
    gap: 30px;
}

.article-main {
    flex: 2;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.article-sidebar {
    flex: 1;
}

/* 面包屑导航 */
.breadcrumb {
    padding: 15px 30px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #E8E8E8;
    font-size: 14px;
}

.breadcrumb a {
    color: #666;
}

.breadcrumb a:hover {
    color: #1E9FFF;
}

.breadcrumb span {
    margin: 0 5px;
    color: #ccc;
}

/* 文章头部 */
.article-header {
    padding: 25px 30px 20px;
    border-bottom: 1px solid #E8E8E8;
}

.article-title {
    font-size: 24px;
    line-height: 1.4;
    margin-bottom: 15px;
    color: #2C3E50;
    font-weight: 600;
}

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

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

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

/* 图片广告占位符 */
.ldl-img-zwf {
    margin: 0;
    text-align: center;
    padding: 40px 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #E8E8E8;
    color: #666;
}

/* 文章内容 */
.article-content {
    padding: 25px 30px;
    font-size: 16px;
    line-height: 1.8;
}

.article-content h2 {
    font-size: 20px;
    margin: 25px 0 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #E8E8E8;
    color: #2C3E50;
}

.article-content h3 {
    font-size: 18px;
    margin: 20px 0 12px;
    color: #2C3E50;
}

.article-content p {
    margin-bottom: 18px;
    text-align: justify;
}

.article-content ul, .article-content ol {
    margin-bottom: 18px;
    padding-left: 20px;
}

.article-content li {
    margin-bottom: 8px;
}

.article-content blockquote {
    border-left: 3px solid #1E9FFF;
    background-color: #f8f9fa;
    padding: 15px 20px;
    margin: 20px 0;
    font-style: italic;
}

.article-content pre {
    background-color: #f5f7fa;
    border: 1px solid #E8E8E8;
    color: #333;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin: 20px 0;
    font-size: 14px;
}

.article-content code {
    background-color: #f5f7fa;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: Consolas, Monaco, 'Andale Mono', monospace;
    font-size: 14px;
    color: #e74c3c;
}

.article-content pre code {
    background-color: transparent;
    padding: 0;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 15px 0;
    display: block;
}

/* 懒加载相关样式 */
.lazy-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.lazy-section.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* 阅读进度条 */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background-color: #1E9FFF;
    z-index: 1001;
    transition: width 0.3s ease;
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #1E9FFF;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #2D8CF0;
    transform: translateY(-3px);
}

/* 相关文章 */
.related-articles {
    padding: 20px 30px;
    border-top: 1px solid #E8E8E8;
}

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

.related-title {
    font-size: 18px;
    font-weight: 600;
    color: #2C3E50;
}

.related-tags {
    display: flex;
    gap: 10px;
}

.related-tag {
    color: #333;
    font-size: 14px;
    transition: all 0.3s ease;
}

.related-tag:hover {
    color: #1E9FFF;
}

.related-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.related-item {
    display: flex;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.related-item:last-child {
    border-bottom: none;
}

.related-item:hover {
    background-color: #f8f9fa;
    padding-left: 10px;
    padding-right: 10px;
    border-radius: 5px;
}

.related-info {
    flex: 1;
}

.related-item-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #2C3E50;
}

.related-item-title a {
    color: inherit;
}

.related-item-title a:hover {
    color: #1E9FFF;
}

.related-item-summary {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .article-container {
        flex-direction: column;
    }
    
    .article-title {
        font-size: 22px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 768px) {
    .article-header {
        padding: 20px;
    }
    
    .article-title {
        font-size: 20px;
    }
    
    .article-content {
        padding: 20px;
    }
    
    .breadcrumb {
        padding: 15px 20px;
    }
    
    .related-articles {
        padding: 15px 20px;
    }
    
    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 576px) {
    .article-title {
        font-size: 18px;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .related-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

        /* 列表页特定样式 */
        .content-section {
            margin: 20px 0;
        }

        .article-container {
            display: flex;
            gap: 30px;
        }

        .list-main {
            flex: 2;
            background-color: white;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            overflow: hidden;
        }

        /* 列表页头部 */
        .list-header {
            padding: 25px 30px 20px;
            border-bottom: 1px solid #E8E8E8;
        }

        .list-title {
            font-size: 24px;
            line-height: 1.4;
            margin-bottom: 10px;
            color: #2C3E50;
            font-weight: 600;
        }

        .list-meta {
            color: #666;
            font-size: 14px;
        }

        /* 文章列表容器 */
        .article-list-container {
            padding: 20px 30px;
        }

        /* 列表页文章卡片 */
        .list-article-card {
            display: flex;
            padding: 20px 0;
            border-bottom: 1px solid #f0f0f0;
            transition: all 0.3s ease;
        }

        .list-article-card:last-child {
            border-bottom: none;
        }

        .list-article-card:hover {
            background-color: #f8f9fa;
            padding-left: 10px;
            padding-right: 10px;
            border-radius: 5px;
        }

        .list-article-img {
            width: 200px;
            height: 120px;
            border-radius: 5px;
            overflow: hidden;
            margin-right: 20px;
            flex-shrink: 0;
            transition: transform 0.3s ease;
        }

        .list-article-img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s ease;
        }

        .list-article-card:hover .list-article-img img {
            transform: scale(1.05);
        }

        /* 无图片时的样式 */
        .list-article-card.no-image .list-article-img {
            display: none;
        }

        .list-article-card.no-image .list-article-content {
            width: 100%;
        }

        .list-article-content {
            flex: 1;
        }

        .list-article-title {
            font-size: 18px;
            margin-bottom: 10px;
            line-height: 1.4;
        }

        .list-article-title a {
            color: #2C3E50;
            transition: color 0.3s ease;
        }

        .list-article-title a:hover {
            color: #1E9FFF;
        }

        .list-article-summary {
            color: #666;
            font-size: 14px;
            line-height: 1.6;
            margin-bottom: 12px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .list-article-meta {
            display: flex;
            color: #999;
            font-size: 12px;
        }

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

        .list-article-meta i {
            margin-right: 5px;
        }

        /* 分页样式 */
        .pagination {
            margin-top: 30px;
            text-align: center;
        }

        .pagination-links {
            display: inline-flex;
            gap: 5px;
        }

        .pagination-link {
            display: inline-block;
            padding: 8px 12px;
            background-color: #f8f9fa;
            border: 1px solid #E8E8E8;
            border-radius: 4px;
            color: #666;
            font-size: 14px;
            transition: all 0.3s ease;
        }

        .pagination-link:hover,
        .pagination-link.active {
            background-color: #1E9FFF;
            color: white;
            border-color: #1E9FFF;
        }

        /* 响应式设计 */
        @media (max-width: 992px) {
            .list-article-card {
                flex-direction: column;
            }
            
            .list-article-img {
                width: 100%;
                height: 200px;
                margin-right: 0;
                margin-bottom: 15px;
            }
            
            .list-article-card.no-image .list-article-img {
                display: none;
            }
        }

        @media (max-width: 768px) {
            .list-header {
                padding: 20px;
            }
            
            .list-title {
                font-size: 20px;
            }
            
            .article-list-container {
                padding: 15px 20px;
            }
        }

        @media (max-width: 576px) {
            .list-title {
                font-size: 18px;
            }
            
            .list-article-title {
                font-size: 16px;
            }
            
            .list-article-summary {
                font-size: 13px;
            }
            
            .list-article-meta {
                flex-wrap: wrap;
                gap: 10px;
            }
        }

        /* 懒加载图片样式 */
.lazy-image {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy-image.loaded {
    opacity: 1;
}

/* 图片占位符 */
.lazy-placeholder {
    background-color: #f5f7fa;
    background-image: linear-gradient(45deg, #f0f0f0 25%, transparent 25%, transparent 75%, #f0f0f0 75%, #f0f0f0),
                      linear-gradient(45deg, #f0f0f0 25%, transparent 25%, transparent 75%, #f0f0f0 75%, #f0f0f0);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 12px;
}

/* 文章内容图片懒加载 */
.article-content img.lazy-image {
    width: 100%;
    height: auto;
}

/* 列表页图片懒加载 */
.list-article-img .lazy-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 侧边栏图片懒加载 */
.news-img .lazy-image,
.sidebar-image .lazy-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 网站地图样式优化 */
.sitemap-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.sitemap-title {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 50px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
    font-size: 2.2em;
    font-weight: 300;
}

.sitemap-title i {
    margin-right: 15px;
    color: #3498db;
}

/* 一级栏目样式 */
.level-1-section {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 5px solid;
}

.level-1-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
}

/* 调整栏目顺序对应的颜色 */
.section-1 { border-left-color: #e74c3c; } /* 镇街寻踪 - 红色 */
.section-2 { border-left-color: #3498db; } /* 文化集萃 - 蓝色 */
.section-3 { border-left-color: #27ae60; } /* 城市脉搏 - 绿色 */
.section-4 { border-left-color: #f39c12; } /* 老街的来信 - 橙色 */

.level-1-header {
    padding: 25px 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #e9ecef;
}

.level-1-header h2 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.6em;
    font-weight: 500;
}

.level-1-header h2 a {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.level-1-header h2 a:hover {
    color: #3498db;
}

.level-1-header h2 i {
    margin-right: 15px;
    font-size: 1.3em;
    width: 30px;
    text-align: center;
}

.level-1-content {
    padding: 30px;
}

/* 二级栏目样式 */
.level-2-section {
    margin-bottom: 35px;
}

.level-2-section:last-child {
    margin-bottom: 0;
}

.level-2-section h3 {
    color: #34495e;
    font-size: 1.3em;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px dashed #ecf0f1;
    font-weight: 500;
}

.level-2-section h3 a {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.level-2-section h3 a:hover {
    color: #3498db;
}

.level-2-section h3 i {
    margin-right: 12px;
    color: #7f8c8d;
    font-size: 1.1em;
    width: 24px;
    text-align: center;
}

/* 镇街寻踪网格布局 - 1行5个，共4行 */
.zhenjie-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-top: 10px;
}

.zhenjie-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px 15px;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.zhenjie-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.15);
    border-color: #e74c3c;
    background: linear-gradient(135deg, #fff5f5 0%, #ffeaea 100%);
}

.zhenjie-card i {
    font-size: 1.8em;
    color: #e74c3c;
    margin-bottom: 10px;
    display: block;
}

.zhenjie-card span {
    display: block;
    color: #2c3e50;
    font-size: 0.95em;
    font-weight: 500;
    line-height: 1.4;
}

/* 文化集萃网格布局 - 1行4个 */
.culture-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 20px;
}

.culture-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 30px 25px;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.culture-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.1), transparent);
    transition: left 0.6s;
}

.culture-card:hover::before {
    left: 100%;
}

.culture-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(52, 152, 219, 0.15);
    border-color: #3498db;
}

.culture-card i {
    font-size: 2.5em;
    color: #3498db;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.culture-card:hover i {
    transform: scale(1.1);
}

.culture-card h4 {
    margin: 0 0 12px 0;
    color: #2c3e50;
    font-size: 1.3em;
    font-weight: 500;
}

.culture-card p {
    margin: 0;
    color: #7f8c8d;
    font-size: 0.95em;
    line-height: 1.6;
}

/* 三级栏目标签云样式 */
.level-3-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.level-3-tags a {
    display: flex;
    align-items: center;
    padding: 10px 18px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #555;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.95em;
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
    font-weight: 400;
}

.level-3-tags a:hover {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3);
    border-color: #27ae60;
}

.level-3-tags a i {
    margin-right: 8px;
    font-size: 0.9em;
}

/* 老街来信特殊样式 */
.section-4 .level-1-content {
    text-align: center;
    padding: 50px 30px;
}

.letter-content {
    max-width: 600px;
    margin: 0 auto;
}

.letter-icon {
    font-size: 4em;
    color: #f39c12;
    margin-bottom: 20px;
}

.letter-content p {
    color: #7f8c8d;
    font-size: 1.1em;
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 25px;
}

.letter-link {
    display: inline-flex;
    align-items: center;
    padding: 12px 30px;
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.letter-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(243, 156, 18, 0.3);
    color: white;
}

.letter-link i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.letter-link:hover i {
    transform: translateX(5px);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .zhenjie-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .culture-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sitemap-container {
        margin: 20px auto;
        padding: 0 15px;
    }
    
    .sitemap-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    
    .level-1-header {
        padding: 20px;
    }
    
    .level-1-content {
        padding: 20px;
    }
    
    .zhenjie-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .culture-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .level-3-tags {
        gap: 8px;
    }
    
    .level-3-tags a {
        padding: 8px 15px;
        font-size: 0.9em;
    }
    
    .zhenjie-card {
        padding: 15px 10px;
    }
    
    .zhenjie-card i {
        font-size: 1.5em;
    }
    
    .zhenjie-card span {
        font-size: 0.85em;
    }
}

@media (max-width: 480px) {
    .zhenjie-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 修复内容页图片变形问题 */
.article-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 15px auto;
    border-radius: 5px;
}

/* 移动端图片优化 */
@media (max-width: 768px) {
    .article-content img {
        width: auto !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: 500px; /* 可根据需要调整 */
    }
    
    /* 覆盖可能的内联样式 */
    .article-content img[width],
    .article-content img[height] {
        width: auto !important;
        height: auto !important;
    }
    
    /* 处理大图 */
    .article-content img {
        object-fit: contain;
    }
}

/* 确保懒加载图片也正确显示 */
.article-content .lazy-image {
    max-width: 100%;
    height: auto;
}
