* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    max-width: 500px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

.header {
    padding: 15px;
    height: 80px;
    display: flex;
    align-items: center;
}

.logo {
    height: 40px;
}

.logo img {
    height: 100%;
}

.search-container {
    display: flex;
    justify-content: center;
    margin: 120px 0 20px;
}

.search-box {
    background-color: white;
    border-radius: 28px;
    padding: 0 25px;
    width: 90%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    height: 56px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.search-box:focus-within {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    border-color: #bdbdbd;
}

.search-box input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 16px;
    color: #333;
    background: transparent;
    height: 100%;
    padding-left: 10px;
}

.features {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1px;
    padding: 0 20px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom:10px;
}

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

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background: white;
}

.feature-icon img {
    width: 65%;
    height: 65%;
    object-fit: contain;
}

.feature-text {
    font-size: 12px;
    text-align: center;
    color: #444;
    font-weight: 500;

}

.ad-container {
    margin: 30px 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ad-container img {
    width: 100%;
    height: auto;
    display: block;
}

/* 推荐容器样式 */
.recommendation-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    background-color: white;
    z-index: 1000;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow-y: auto;
    visibility: hidden;
}

.recommendation-container.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    visibility: visible;
}

.recommendation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.recommendation-title {
    font-size: 20px;
    font-weight: bold;
}

.close-btn {
    font-size: 16px;
    color: #666;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background-color: #f0f0f0;
    color: #333;
}

.recommendation-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.recommendation-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    padding: 8px;
    background-color: transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.recommendation-link:hover {
    transform: translateY(-3px);
}

.recommendation-link .feature-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 5px;
}

.recommendation-link .feature-text {
    font-size: 12px;
    color: #555;
}

/* 遮罩层 */
.overlay-mask {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.overlay-mask.show {
    display: block;
}

/* 搜索容器样式 */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: white;
    z-index: 1001;
    display: none;
    flex-direction: column;
    padding: 0;
}

.search-overlay.show {
    display: flex;
}

.search-overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}

.search-overlay-logo {
    height: 40px;
}

.search-overlay-logo img {
    height: 100%;
}

.search-overlay-content {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column-reverse;
}

.search-overlay-footer {
    width: 100%;
    padding: 15px;
    border-top: 1px solid #e0e0e0;
    background-color: white;
}

.search-overlay-input-container {
    width: 100%;
    position: relative;
}

.search-overlay-input {
    width: 100%;
    padding: 15px 60px 15px 15px;
    font-size: 16px;
    border: none;

    outline: none;
    box-sizing: border-box;
}

.search-overlay-actions {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-action-btn {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

#clear-search {
    color: #999;
    background-color: #f0f0f0;
}

#clear-search:hover {
    color: #666;
    background-color: #e0e0e0;
}

/* 搜索建议和分类容器样式 */
.search-results-container {
    width: 100%;
    margin-bottom: 15px;
}

.category-container {
    display: none;
    margin-bottom: 15px;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 5px;
    -ms-overflow-style: none;
    scrollbar-width: none;
    margin: 10px auto;
}

.category-container.show {
    display: block;
}

.category-container::-webkit-scrollbar {
    display: none;
}

.category-list {
    display: inline-flex;
    gap: 8px;
}

.category-item {
    padding: 8px 15px;
    background-color: #f5f5f5;
    border-radius: 15px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-item:hover,.category-item.active {
    background-color: #1e87eb;
    font-weight: bold;
    color: #fff;
}

.suggestion-container {
    display: none;
}

.suggestion-container.show {
    display: block;
}

.suggestion-title {
    font-size: 14px;
    color: #999;
    margin-bottom: 10px;
    padding-left: 5px;
}

.suggestion-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.suggestion-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: #333;
}

.suggestion-item:hover {
    background-color: #f0f0f0;
}

.suggestion-icon {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    flex-shrink: 0;
}

.suggestion-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.suggestion-text {
    flex: 1;
    font-size: 15px;
    color: #333;
}

.suggestion-desc {
    font-size: 12px;
    color: #999;
    margin-left: 10px;
    flex-shrink: 0;
}

.hot-search-container {
    margin-bottom: 20px;
}

.hot-search-title {
    font-size: 14px;
    color: #999;
    margin-bottom: 10px;
    padding-left: 5px;
}

.hot-search-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hot-search-item {
    padding: 8px 12px;
    background-color: #f5f5f5;
    border-radius: 15px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hot-search-item:hover {
    background-color: #e0e0e0;
}