* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    position: relative;
    min-height: 100vh;
}

.logo{
    height:40px;
    position:fixed;
    top:18px;
    left:18px;

}

.main{ 
    position:relative;
    top: 300px;
    left: 50%;
    transform: translateX(-50%);
    width: 40%; 
    min-width: 700px;
}

.search-bar {
    position:relative;
    width: 100%;
    display: flex;
}

.search-input {
    width: 100%; /* 增加搜索输入框宽度 */
    height: 53px;
    padding: 0 30px 0 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
}

.search-suggestions {
    position: absolute;
    top: 53px;
    left: 0;
    width: 100%; /* 增加下拉列表宽度 */
    background-color: white;
    border: 1px solid #ccc;
    list-style-type: none;
    z-index: 999; /* 设置下拉列表 z-index */
    padding: 0;
    display: none;
}

.search-suggestions li {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}

.search-suggestions li:last-child {
    border-bottom: none;
}

.search-suggestions li:hover {
    background-color: #f0f0f0;
}

.search-suggestions li.selected {
    background-color: #f0f0f0;
}

.clear-input {
    position: absolute;
    right: 20px; /* 修改文本删除按钮位置 */
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
    display: none;
}

.category-tabs {
    position:relative;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    justify-content: center;
    flex-wrap: wrap;
    display: flex;
}

.tab {
    display: inline-block;
    margin: 0 10px;
    padding: 5px 10px;
    text-decoration: none;
    color: #333;
    
}

.tab.active {
    color: #1e87eb;
    border-bottom: 2px solid #1e87eb;
}

.website-links {
    position: relative;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
}

.link-item {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px;
    text-decoration: none;
    color: #333;
    display: none;
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
    cursor: pointer;
    width: 150px;
    height: 40px;
    line-height: 40px;
    position: relative;
white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}

.link-item img {
    width: 24px;
    position: relative;
    top:-3.6px;
}

.link-item span{
    position: relative;
    top:-10px;
}

.link-item:hover {
    background-color: #e0e0e0;
    color:#1e87eb;
}

.add-website-button {
    margin: 10px;
    padding: 10px 20px;
    background-color: #ffc107;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.dialog {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow: auto;
}

.dialog-content {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    width: 400px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.dialog-content h2 {
    margin-bottom: 15px;
    font-size: 24px;
}

.dialog-content label {
    display: block;
    margin-bottom: 5px;
    font-size: 16px;
}

.dialog-content input {
    width: 100%;
    height: 35px;
    margin-bottom: 15px;
    padding: 0 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.dialog-buttons {
    display: flex;
    justify-content: flex-end;
    margin-top: 15px;
}

.dialog-buttons button {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.dialog-buttons button:first-child {
    background-color: #0099ff;
    color: white;
    margin-right: 10px;
}

.dialog-buttons button:last-child {
    background-color: #ff0000;
    color: white;
}

.close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    cursor: pointer;
}

.footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px 0 7px 0;
    color: #666;
    text-align: center;
    font-size: 13px;
    line-height: 20px;
}

.footer a {
    margin: 0 1px;
    text-decoration: none;
    color: #666;
    transition: color 0.3s;
}

.footer a:hover {
    color: #333;
}

