/**
Theme Name: lepu
Author: tingxie liu
Author URI: https://www.providewp.com/
Text Domain: lepu
*/


/* 移除滚动条 */
html, body {
    overflow: hidden;
    height: 100%;
}

/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #1b1d1f;
    color: #fff;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    width: 1000px;
    margin: auto;
    padding: 20px 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo {
    margin-bottom: 30px;
}
.logo img {
    width: 260px;
    height: 100px;
}

/* 搜索框样式 */
.search-box {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    position: relative;
    border: 1px solid #444;
    border-radius: 5px;
    padding: 5px;
    background-color: #2a2d31;
}

.engine-select {
    position: relative;
}

.engine-toggle {
    padding: 10px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #68a62a; /* 修改点1：图标颜色 */
}

.engine-toggle:hover {
    color: #3d8b3d; /* 修改点2：悬停颜色 */
}

.engine-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #2a2d31;
    border: 1px solid #444;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 10;
    min-width: 120px;
}

.engine-dropdown.show {
    display: block;
}

.engine-dropdown li {
    padding: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #fff;
}

.engine-dropdown li:hover {
    background-color: #444;
}

#search-input {
    flex: 1;
    padding: 10px;
    border: none;
    font-size: 16px;
    outline: none;
    background-color: transparent;
    color: #fff;
}

#search-btn {
    padding: 10px 20px;
    background-color: #68a62a; /* 修改点3：按钮颜色 */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-left: 10px;
}

#search-btn:hover {
    background-color: #4e712b; /* 修改点4：悬停颜色 */
}

/* 分类标签 */
.category-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.category-tab {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    background-color: #2a2d31;
    color: #fff;
}

.category-tab.active {
    background-color: #68a62a; /* 修改点5：激活状态 */
}

.category-tab:hover {
    background-color:#4e712b; /* 修改点6：悬停状态 */
}

/* 网站网格 */
.website-grid {
    width: 100%;
}

.grid-item-category {
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    display: none;
}

.grid-item-category.active {
    display: grid;
}

.grid-item {
    background-color: #2a2d31;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.grid-item a {
    text-decoration: none;
    color: #fff;
    font-size: 14px;
}

.grid-item:hover {
    background-color: #3a3d40; /* 原#444，改为更柔和的深灰色 */
    transition: background-color 0.2s ease;
}

/* 底部 */
.footer {
    text-align: center;
    padding: 10px;
    background-color: #2a2d31;
    color: #fff;
    font-size: 14px;
    width: 100%;
}