body {
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    background-color: #f5f5f5;
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: bold;
    line-height: 1.2;
}

h1 {
    font-size: 36px;
}

h2 {
    font-size: 30px;
}

h3 {
    font-size: 24px;
}

h4 {
    font-size: 18px;
}

h5 {
    font-size: 14px;
}

h6 {
    font-size: 12px;
}

p {
    margin-top: 0;
    margin-bottom: 10px;
}

a {
    color: #9faeff;
    border:#333 1px solid;
    padding: 3px 5px;
    border-radius: 1px;
    transition-delay: 20ms;
    transition-duration: 200ms;
    transition-property: border-radius, border-color;
    transition-timing-function: ease-in-out;
}

a[class="result"]{
    border-radius: 0%;
    border:none;
}

a:hover {
    color: #9faeff;
    border-color: #9faeff;
    border-radius: 5px 5px 5px 5px;
    transition-delay: 20ms;
    transition-duration: 200ms;
    transition-property: border-color;
    transition-timing-function: ease-in-out;
}

a:focus {
    outline: thin dotted;
    outline: 5px auto -webkit-focus-ring-color;
    outline-offset: -2px;
}

hr {
    margin-top: 20px;
    margin-bottom: 20px;
    border: 0;
    border-top: 1px solid #eee;
}

.container {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}   

.text-right {
    text-align: right;
}
a[class="active"]{
    border: #000000 2.5px solid;
    color: #333;
    background-color: #f5f5f5;
    padding: 10px 20px;
    border-radius: 5px;
}

a:active div[id="search-result"]a{
    color:#9faeff;
    transition: color ease-in-out 0.2s;
}

div[id="footer"]{
    background-color: #333;
    color: #fff;
    padding: 10px;
    text-align: center;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
}

div[id="footer"] a{
    color: #fff;
    text-decoration: none;
}

div[id="footer"] a:hover{
    color: #9faeff;
    text-decoration: underline;
}

.navbar {
    bottom: 0;
    width: 100%;
    background-color: #f2f2f2;
    padding: 10px 0;
    text-align: center;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-around; /* 水平均匀分布导航项 */
    align-items: center; /* 垂直居中 */
}

@media (max-width: 500px) {
    .navbar {
        justify-content: space-around; /* 确保在小屏幕上也保持水平分布 */
    }
}
input[type="text"]{
    width: 50%;
    padding: 12px 20px;
    margin: 8px 0;
    box-sizing: border-box;
    border: 2px solid #ccc;
    border-radius: 4px;
    background-color: #ffb1b1;
    font-size: 16px;
}

input[type="text"]::placeholder{
    color: #000000;
}

.placeholder{
    color: #000000;
}

input:focus{
    outline: none;
    border-bottom: 2px solid #333;
}

button{
    background-color: #482d2d;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
    margin: auto 0;
}

button:hover{
    border: #2d3748 1px solid;
    background-color: #2d3748;
    color: #fff;
    border-radius: 2px;
    transition: background-color 0.2s;
}

div[id="search-result"]a{
    color: #9faeff;
    border:#333 1px solid;
    padding: 3px 5px;
    border-radius: 1px;
    text-decoration: none;
}

/* 弹出框 */
.modal {
    display: inline;
    position: fixed;
    background-color: rgba(192, 37, 37, 0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
/* 搜索容器 */
.search-container {
    max-width: 800px;
    margin: 1rem auto;
    position: relative;
  }
  
  .search-input {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
  }
  
  .search-input:focus {
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
    outline: none;
  }
  
  /* 搜索结果样式 */
  .search-results {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    background: rgb(9, 0, 0);
    margin-top: 0.5rem;
    max-height: 500px;
    overflow-y: auto;
  }
  
  .search-result-item {
    padding: 1rem;
    border-bottom: 1px solid #edf2f7;
    transition: background 0.2s;
  }
  
  .search-result-item:hover {
    background-color: #f7fafc;
  }
  
  .search-result-item a {
    color: #2d3748;
    font-weight: 500;
    display: block;
    margin-bottom: 0.5rem;
  }
  
  .search-result-item p {
    color: #718096;
    font-size: 0.875rem;
    line-height: 1.5;
  }
nav{
    background-color: #333;
    color: #fff;
    padding: 10px;
    text-align: center;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    /* position: fixed; */
    width: 100%;
    height: 50px;
    display: flex;
    justify-content: space-around; /* 水平均匀分布导航项 */
    align-items: center; /* 垂直居中 */
    box-shadow: 0 2px 5px rgb(255, 128, 0);
}

nav a{
    color: #fff;
}

nav a:hover{
    color: #9faeff;
}
li{
    list-style: circle;
    scrollbar-width: auto;
    scroll-snap-align: start;
    background-color: #333;
    color: #fff;
    padding: 10px;
    text-align: center;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    /* position: fixed; */
    width: 100%;
    height: 50px;
    display: flex;
    justify-content: space-around; /* 水平均匀分布导航项 */
    align-items: center; /* 垂直居中 */
    box-shadow: 0 2px 5px rgb(255, 128, 0);
    margin-top: 10px;
    margin-bottom: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

li:hover{
    background-color: #555;
    border: #555 1px solid;
}

div[id="search-result"]{
    scrollbar-color: #333 #f5f5f5;
    scrollbar-width: thin;
    overflow-y: scroll;
    max-height: 300px;
    scroll-behavior: auto;
    scroll-padding: 10px;
}
a[id="guide"]{
    border: none;
}

/* 移动端设计 */
@media screen and (max-width: 768px) {
    .navbar {
        justify-content: space-between; /* 确保在小屏幕上也保持水平分布 */
    }
    .align-center {
        text-align: center;
    }
    .placeholder{
        color: #000000;
    }
    input[type="text"]{
        width: 100%;
        padding: 12px 20px;
        margin: 8px 0;
        box-sizing: border-box;
        border: 2px solid #ccc;
        border-radius: 4px;
        background-color: #ffb1b1;
        font-size: 16px;
    }
    button{
        background-color: #482d2d;
        color: #fff;
        border: none;
        padding: 10px 20px;
        border-radius: 5px;
        font-size: 16px;
        cursor: pointer;
        transition: background-color 0.2s;
        margin: auto 0;
    }
    button:hover{
        border: #2d3748 1px solid;  
    }
    a{
        color: #9faeff;
        border:#333 1px solid;
        padding: 3px 5px;
        border-radius: 1px;
        transition-delay: 20ms;
        transition-duration: 200ms;
        transition-property: border-radius, border-color;
        transition-timing-function: ease-in-out;
    }
    a:hover {
        color: #9faeff;
        border-color: #9faeff;
        border-radius: 5px 5px 5px 5px;
        transition-delay: 20ms;
        transition-duration: 200ms;
        transition-property: border-color;
        transition-timing-function: ease-in-out;
    }
    a:focus {
        outline: thin dotted;
        outline: 5px auto -webkit-focus-ring-color; 
        outline-offset: -2px;
    }
}
/* 响应式设计 */
@media screen and (max-width: 480px) {
    .navbar {
        justify-content: space-between; /* 确保在小屏幕上也保持水平分布 */
    }
    .align-center {
        text-align: center;
    }
    .placeholder{
        color: #000000;
    }
    input[type="text"]{
        width: 100%;
        padding: 12px 20px;
        margin: 8px 0;
        box-sizing: border-box;
        border: 2px solid #ccc;
        border-radius: 4px;
        background-color: #ffb1b1;
        font-size: 16px;
    }
    button{
        background-color: #482d2d;
        color: #fff;
        border: none;
        padding: 10px 20px;
        border-radius: 5px;
        font-size: 16px;
        cursor: pointer;
        transition: background-color 0.2s;
        margin: auto 0;
    }
    button:hover{
        border: #2d3748 1px solid;  
    }
    a{
        color: #9faeff;
        border:#333 1px solid;
        padding: 3px 5px;
        border-radius: 1px;
        transition-delay: 20ms;
        transition-duration: 200ms;
        transition-property: border-radius, border-color;
        transition-timing-function: ease-in-out;
    }
    a:hover {
        color: #9faeff;
        border-color: #9faeff;
        border-radius: 5px 5px 5px 5px;
        transition-delay: 20ms;
        transition-duration: 200ms;
        transition-property: border-color;
        transition-timing-function: ease-in-out;
    }
    a:focus {
        outline: thin dotted;
        outline: 5px auto -webkit-focus-ring-color;     
        outline-offset: -2px;
    }
}