#ipResultsContainer {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    margin: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 600px;
    position: absolute;
    top: 0;
    left: 0;
}

#ipResultsContainer h3 {
    text-align: center;
    width: 100%;
    margin-top: 5px;
    margin-bottom: 0;
    font-size: 1.2rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    border-radius: 10px;
    overflow: hidden;
}

tr {
    transition: all 0.3s ease;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

/* 最后一行移除底部边框 */
tr:last-child td,
tr:last-child th {
    border-bottom: none;
}

th {
    font-weight: 600;
    color: #444;
}

.ipregion {
    white-space: nowrap;
    font-weight: 900;
    font-size: 1rem;
    width: 15%;
}

.apiserver {
    white-space: nowrap;
    color: #888;
    font-size: 0.75rem;
    border-radius: 12px;
    font-weight: 500;
}

.ip {
    white-space: nowrap;
    font-weight: 500;
    color: #333;
    font-size: .875rem;
}

.ipaddr {
    color: #1f2937;
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

/* 响应式设计：优化小屏幕布局 */
@media (max-width: 600px) {
    #ipResultsContainer {
        margin: 10px;
        width: calc(100% - 20px);
        max-width: none;
        position: relative;
        box-sizing: border-box;
        padding: 12px;
    }
    
    #ipResultsContainer h3 {
        text-align: center;
        width: 100%;
        margin-top: 5px;
        margin-bottom: 10px;
        font-size: 1.2rem;
    }
    
    table {
        margin-top: 10px;
    }
    
    table, tbody {
        display: block;
        width: 100%;
    }
    
    tr {
        display: grid;
        grid-template-areas: 
            "region apiserver"
            "ip ip"
            "addr addr";
        grid-template-columns: auto 1fr;
        background-color: #f9f9f9;
    }
    
    td, th {
        display: block;
        border: none;
        padding: 6px 8px;
    }
    
    td.ip{
        padding: 3px 8px 0px;
    }

    .ipregion {
        grid-area: region;
        font-size: 0.75rem;
        padding-right: 0;
        display: flex;
        align-items: center;
    }
    
    .apiserver {
        grid-area: apiserver;
        text-align: right;
        font-size: 0.7rem;
        color: #666;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .ip {
        grid-area: ip;
        font-size: 0.875rem;
        font-weight: 500;
        text-align: left;
    }
    
    .ipaddr {
        grid-area: addr;
        font-size: 0.75rem;
        max-width: none;
        text-align: left;
        color: #666;
        border-bottom: 1px solid #c4c1c1;
    }
}
