/*
Theme Name: Simple SXF
Version: 1.0.1
Author: Lee Feng
Description: A simple, clean, and independent WordPress theme
Tags: minimal, blog, clean
*/

/* 字体与基础设置 */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  color: #333;
  background: #fff;
}

/* 页面头部和页脚 */
header,
footer {
  text-align: center;
  padding: 1rem 0;
}

footer {
  font-size: 0.85rem;
  color: #999;
  line-height: 1.4;
  margin-top: 3rem;
}

/* 自定义 logo 样式（如首页标题） */
#logo {
  font-size: 1.5rem;
  font-weight: bold;
  display: block;
}

/* 描述文字（副标题） */
.de {
  color: #666;
  font-size: 0.95rem;
  margin: 0.5rem 0 1.2rem;
}

/* 菜单导航样式 */
nav#menu a {
  margin: 0 0.75rem;
  color: #333;
  text-decoration: none;
  font-size: 0.95rem;
}
nav#menu a.current {
  font-weight: bold;
}

/* 布局容器 */
.container {
  max-width: 720px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* 文章列表 */
.site-title {
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
  color: #333;
}
.post-list {
  list-style: none;
  padding: 0;
}
.post-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1rem 0;
  border-bottom: 1px dotted #eee;
  padding-bottom: 0.3rem;
}
.post-link {
  color: #333;
  text-decoration: none;
  flex-grow: 1;
  margin-right: 1rem;
  padding: 0.15rem 0.3rem;       /* 增加内边距让hover背景显得自然 */
  border-radius: 4px;            /* 圆角 */
  transition: background-color 0.25s ease, color 0.25s ease;  /* 平滑过渡 */
  display: inline-block;         /* 使padding生效 */  
}

.post-link:hover {
  background-color: #f0f0f0;    /* 浅灰背景 */
  color: #3498db;               /* 蓝色标题 */
  text-decoration: none;
}

.post-date {
  font-size: 0.85rem;
  color: #888;
  white-space: nowrap;
}


/* 搜索框样式 */
#searchform {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    background-color: #f9f9f9; /* 浅背景 */
    border-radius: 25px; /* 圆角效果 */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* 轻微阴影 */
    max-width: 600px;
    margin: 20px auto;
}

#searchform input[type="search"] {
    width: 80%;
    padding: 12px;
    border-radius: 20px;
    border: 1px solid #ddd;
    font-size: 16px;
    margin-right: 10px;
    transition: all 0.3s ease;
}

#searchform input[type="search"]:focus {
    outline: none;
    border-color: #007BFF; /* 聚焦时的边框颜色 */
}

#searchform button {
    padding: 12px 20px;
    background-color: #007BFF;
    color: white;
    border-radius: 20px;
    border: none;
    font-size: 16px;
    cursor: pointer;
}

#searchform button:hover {
    background-color: #0056b3; /* 悬停时的背景色 */
}

/* 搜索结果列表 */
.search-results {
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    max-width: 900px;
}

.search-results .post {
    margin-bottom: 15px;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.search-results .post a {
    color: #007BFF;
    font-size: 18px;
    text-decoration: none;
    font-weight: bold;
}

.search-results .post a:hover {
    text-decoration: underline;
}

/* 没有结果时的提示 */
.no-results {
    text-align: center;
    font-size: 18px;
    color: #666;
}

/* 移动端响应式设计 */
@media (max-width: 768px) {
    #searchform {
        flex-direction: column;
        padding: 15px;
    }

    #searchform input[type="search"] {
        width: 100%;
        margin-bottom: 10px;
    }

    #searchform button {
        width: 100%;
    }

    .search-results {
        padding: 10px;
    }

    .search-results .post {
        font-size: 16px;
    }
}