/* 全局样式 */
body {
    font-family: "Arial", sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f8f8;
    color: #333;
}

h1{ text-align:left; color:#fff;}
h2{ text-align:center; color:#000; margin:20px 0;}


/* 面包屑导航 */
/* 面包屑导航样式 */
.breadcrumb { height:50px;
    font-size: 14px;
    margin: 20px;
    padding:15px 0 10px 0;
    background: #fff; border-bottom:1px solid #eee;
}

.breadcrumb li { float:left; list-style:none;}
.breadcrumb a {
    color: #000;
    text-decoration: none; margin:0 10px;
    font-weight: bold;
}

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

.breadcrumb span {
    margin: 0 5px;
    color: #999;
}
/* 标题 */
h1 {
    text-align: left;
    font-size: 28px;
    margin: 5px 0;
    color: #fff;
}

/* 文章列表 */
.article-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

/* 文章卡片 */
.article-item {
    display: flex;
    flex-direction: column;
    width: 300px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    text-decoration: none;
    color: #333;
}

.article-item:hover {
    transform: translateY(-5px);
}

.article-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.article-info {
    padding: 15px;position: relative;
}

.article-info h3 {
    font-size: 18px;
    margin: 0 0 10px;
    color: #333;
}

.article-info p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .article-list {
        flex-direction: column;
        align-items: center;
    }

    .article-item {
        width: 90%;
    }

    h1 {
        font-size: 24px; color:#fff; text-align:left;
    }
}




:root {
            --brand-red: #e63946;
            --white: #ffffff;
            --dark-gray: #2d3436;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Arial', sans-serif;
        }

        body {
            background: var(--white);
            color: var(--dark-gray);
            line-height: 1.6;
        }

        /* 增强语义化导航 */
        header {
            background: var(--brand-red);
            padding: .2rem 1rem .5rem;
            width: 100%;
            top: 0;
            z-index: 1000;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }

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

        .logo {
            color: var(--white);
            font-size: 1.8rem;
            font-weight: 700;
            text-decoration: none;
            letter-spacing: 1.5px;
			display:block;background: url(https://peacelove.top/css/logo.png) no-repeat;background-size: cover;width: 240px;height: 67px;font-size:0;
        }

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

        .nav-links a {
            color: var(--white);
            text-decoration: none;
            font-weight: 500;
            transition: opacity 0.3s;
            padding: 8px 12px;
        }

        .nav-links a:hover {
            opacity: 0.8;
            text-decoration: underline;
        }

        /* 移动端菜单优化 */
        .mobile-menu {
            display: none;
            color: var(--white);
            font-size: 1.5rem;
            cursor: pointer;
            padding: 8px;
        }

        @media (max-width: 768px) {
            .nav-links {
                display: none;
                position: absolute;
                top: 100%;z-index: 9999;
                right: 0;
                width: 50%;
                background: #222;
                flex-direction: column;
                padding: 1rem 0;
            }

            .nav-links.active {
                display: flex;
            }

            .mobile-menu {
                display: block;
            }

            .nav-links li {
                text-align: center;
                margin: 8px 0;
            }
        }
		
		
		
		
.search-bar {
    margin: 20px 0;
    text-align: center;
}


.search-bar input {
    padding: 8px;
    width: 190px;
    border: 1px solid #ccc;
    border-radius: 4px;
    line-height: 26px;
    font-size: 15px;
}


.search-input-wrapper {
    position: relative;
    display: inline-block;
}

.search-input-wrapper input {
    padding-right: 30px; /* 给X按钮预留空间 */
}

#clearInputBtn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    font-size: 32px;
    color: #888;
    cursor: pointer;
    display: none;
}




.search-bar button {padding: 10px 9px;margin-left: 6px;border: 1px solid #000;background-color: #181818;color: white;border-radius: 3px;cursor: pointer;font-size: 15px;}

#resetBtn {
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ccc;
}


/* 高亮 */
.highlight {
    color: red;
    font-weight: bold;
	
	
	
}	

.article-date,
p.article-meta {
font-size: 14px;
    color: #fff;
    margin: 4px 0 10px;
    position: absolute;
    top: -28px;
    right: 8px;
}


	
/* 页脚 */
   footer{ background:#222; text-align:center; padding:40px 0 ; text-align:center}
  footer p{color:#fff;line-height: 24px;}
  footer p a{color: #7b7b7b;text-decoration: none;margin: 0 4px;font-size: 13px;}
  	
		

 .quick-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 11px 7px;
    padding-left: 10px;
  }
  .quick-tags .tag {
    background-color: #e3e3e3;
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 14px;
  }
  #scrollToTop {
    display: none;
    position: fixed;
    right: 20px;
    bottom: 40px;
    padding: 10px 16px;
    font-size: 14px;
    border: none;
    background-color: #000;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    z-index: 999;
  }
  
  .quick-tags .tag.active {
  background-color: #e74c3c;
  color: white;
}

