* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: url('/assets/img/bing.php') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 150px 20px 40px;
}
/* yanweb.top */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    
    z-index: -1;
}

.container {
    width: 100%;
    max-width: 1200px;
    text-align: center;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
}

.logo {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.1);
}

.site-name {
    text-decoration: none;
    color: #ffffff;
    font-size: 35px;
    font-weight: 800;
    transition: all 0.3s ease;
}

.site-name:hover {
    color: #3498db;
}

.search-container {
    border-radius: 16px;
    padding: 50px 40px;
    margin-bottom: 50px;
    position: relative;
}

.search-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    flex-wrap: nowrap;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    background: rgba(255, 255, 255, 1);
    border: 2px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.search-wrapper:focus-within {
    border-color: #3498db;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.1);
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    padding: 12px 8px 12px 20px;
    border: none;
    background: transparent;
}
/* yanweb.top */
.category-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.category-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid transparent;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.category-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.category-tab:hover .category-icon {
    transform: scale(1.1);
    filter: brightness(0.9) drop-shadow(0 2px 4px rgba(39, 174, 96, 0.3));
}

.category-tab.active .category-icon {
    transform: scale(1.1);
    filter: brightness(1.2) drop-shadow(0 2px 4px rgba(39, 174, 96, 0.4));
}

.category-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.category-tab:hover::before {
    left: 100%;
}

.category-tab:hover {
    border-color: #27ae60;
    color: #27ae60;
    background: white;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(39, 174, 96, 0.25);
}

.category-tab.active {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    border-color: #27ae60;
    color: white;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.4);
}

.category-tab.active:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.5);
}

.engine-selector {
    text-align: center;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    position: absolute;
    top: calc(100% - 60px);
    left: 0;
    right: 0;
    z-index: 100;
}

.engine-selector.show {
    visibility: visible;
    opacity: 1;
}



.search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: #adb5bd;
    margin-right: 15px;
    flex-shrink: 0;
}

.search-icon svg {
    width: 100%;
    height: 100%;
}

#searchInput {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    color: #2c3e50;
    background: transparent;
    padding: 0px 0;
}

#searchInput::placeholder {
    color: #818486;
}
/* yanweb.top */
.search-btn {
    background: #3498db;
    color: white;
    border: none;
    border-radius: 0;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    height: 100%;
    min-height: 52px;
}

.search-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.search-btn:active {
    transform: translateY(0);
}

.engine-selector {
    text-align: center;
}

.engine-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.engine-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.engine-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transition: left 0.5s ease;
}

.engine-tab:hover::before {
    left: 100%;
}

.engine-tab:hover {
    border-color: #3498db;
    color: #3498db;
    background: white;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.25);
}

.engine-tab.active {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border-color: #3498db;
    color: white;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

.engine-tab.active:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.5);
}

.engine-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.engine-tab:hover .engine-icon {
    background: #3498db;
    color: white;
    transform: rotate(5deg) scale(1.1);
}

.engine-icon-img {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.engine-tab:hover .engine-icon-img {
    transform: rotate(5deg) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.engine-tab.active .engine-icon {
    background: white;
    color: #3498db;
}

.engine-tab.active .engine-icon-img {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
/* yanweb.top */
.engine-name {
    white-space: nowrap;
}



.footer {
    color: #ffffff;
    font-size: 16px;
    margin-top: 200px;
}

.footer p {
    margin: 0;
}

.footer a {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer a:hover {
    color: #1089da;
    font-weight: 800;
    text-decoration: underline;
}

@media (max-width: 768px) {
    body {
        padding: 100px 0;
    }
    
    .container {
        max-width: 100%;
    }
    
    .logo-container {
        margin-bottom: 35px;
    }
    
    .logo {
        width: 40px;
        height: 40px;
    }
    
    .site-name {
        font-size: 22px;
    }
    
    .search-container {
        padding: 35px 25px;
    }
    
    .search-wrapper {
        max-width: 100%;
    }
    
    .search-box {
        padding: 10px 6px 10px 15px;
    }
    
    #searchInput {
        font-size: 15px;
    }
    
    .search-btn {
        padding: 10px 20px;
        font-size: 14px;
        min-height: 46px;
    }
    
    .category-tabs {
        gap: 8px;
        margin-bottom: 20px;
    }
    
    .category-tab {
        padding: 10px 18px;
        font-size: 13px;
    }
    
    .category-icon {
        width: 18px;
        height: 18px;
    }
    
    .engine-selector {
        position: static;
        visibility: hidden;
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        margin-top: 0;
        transition: all 0.3s ease;
    }
    /* yanweb.top */
    .engine-selector.show {
        visibility: visible;
        opacity: 1;
        max-height: 500px;
        margin-top: 15px;
    }
    
    .engine-tabs {
        gap: 8px;
    }
    
    .engine-tab {
        padding: 8px 14px;
        font-size: 13px;
    }
    
    .engine-icon {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }
    
    .engine-icon-img {
        width: 24px;
        height: 24px;
    }
    
    .quick-links {
        gap: 10px;
    }
    
    .quick-links a {
        padding: 8px 15px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .search-wrapper {
        flex-direction: row;
    }
    
    .search-box {
        flex-direction: row;
        padding: 10px 6px 10px 12px;
    }
    
    .search-icon {
        display: flex;
        width: 20px;
        height: 20px;
    }
    
    #searchInput {
        width: auto;
        text-align: left;
        font-size: 14px;
    }
    
    .search-btn {
        width: auto;
        padding: 10px 15px;
        font-size: 14px;
        min-height: 44px;
    }
    
    .category-tabs {
        gap: 6px;
        margin-bottom: 15px;
    }
    
    .category-tab {
        padding: 8px 14px;
        font-size: 12px;
    }
    
    .category-icon {
        width: 16px;
        height: 16px;
    }
    
    .engine-tabs {
        gap: 6px;
    }
    
    .engine-tab {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .engine-icon {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }
    
    .engine-icon-img {
        width: 20px;
        height: 20px;
    }
}