/* Custom animation for feature cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

/* Search form styles */
#single-query-form {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

#single-query-form:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.search-input {
    flex-grow: 1;
    padding: 0.5rem 1.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 0;
    font-size: 1rem;
    color: #4b5563;
    transition: all 0.3s ease;
    background: transparent;
    min-height: 36px;
}

.search-input:focus {
    outline: none;
    border-color: #e2e8f0;
    box-shadow: none;
}

/* Button styles */
.check-ip-btn {
    padding: 0.5rem 1.5rem;
    background: transparent;
    color: white;
    border: none;
    border-radius: 0;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 36px;
    margin-left: 8px;
    text-decoration: none;
}

.check-ip-btn:hover {
    background: transparent;
    color: white;
    text-decoration: none;
}

.check-ip-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.4);
}

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

/* Results container styles */
.results-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-top: 1.5rem;
    /* 设置固定高度，确保所有状态保持相同高度 */
    height: 500px;
    min-height: 500px;
    max-height: 500px;
    display: flex;
    flex-direction: column;
}

/* 确保所有状态容器具有相同高度 */
#initial-state,
#loading-state,
.tab-container {
    height: 100%;
    width: 100%;
    overflow: hidden;
}

/* Tab内容容器设置 */
.tab-content {
    height: calc(100% - 50px);
    /* 减去tab栏高度 */
    overflow: hidden;
}

.results-container:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}