body {
    margin: 0;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
}

/* ---顶部横幅--- */
.top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #c9c9c966;
    padding: 0 20px;
    box-sizing: border-box;
}

.left {
    display: flex;
    gap: 15px;
}

.right {
    display: flex;
    gap: 15px;
}

.left a ,.right a {
    font-size: 16px;
    color: #4c8eff;
}

/* ---搜索栏logo--- */
.logo{
    display: flex;
    width: 100%;
    justify-content: center;
}

/* --- 搜索框 --- */
.search-container {
    justify-content: center;
    max-width: 640px;
    width: calc(100% - 32px);
    height: 52px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #dfe1e5;
    border-radius: 26px;
    padding: 0 6px 0 16px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px #0000001c;
}

.search-container:hover {
    box-shadow: 0 0px 20px #a8c8ff;
}

.search-container:focus-within {
    background-color: #fff;
    border-color: rgba(223,225,229,0);
    box-shadow: 0 0px 15px #4c8eff;
}

/* --- 输入框 --- */
.search-input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    outline: none;
    font-size: 16px;
    color: #202124;
    padding: 0 12px 0 0;
}

/* --- 搜索按钮 --- */
.search-button {
    height: 40px;
    padding: 0 22px;
    font-size: 14px;
    color: #535658;
    background: #e3e8ee;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.search-button:hover {
    background-color: #a8c8ff; 
    color: #224f8a;
}

/* ---清除按钮--- */
.del-button {
    height: 40px;
    margin: 0 10px;
    font-size: 14px;
    color: #535658;
    background-color: #00000000;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    flex-shrink: 0;
}

/* --- 网页底部样式 --- */
.footer-info {
    position: fixed;
    bottom: 15px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 13px;
    color: #666;
}
.footer-info span {
    margin: 0 10px;
}
.clickable-ip {
    cursor: pointer;
    text-decoration: underline;
}
.clickable-ip:hover {
    color: #2979ff;
}

/* ---IP查询功能--- *//* 弹窗卡片遮罩层 (Modal) */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 999;
}
.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.modal-card {
    background: #fff;
    width: 90%;
    max-width: 900px;
    height: 85vh;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}
.modal-overlay.active .modal-card {
    transform: translateY(0);
}

/* 弹窗头部控制区 */
.modal-header {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    background: #fcfcfc;
}
.close-btn {
    font-size: 24px;
    color: #999;
    cursor: pointer;
    border: none;
    background: none;
}
.close-btn:hover { color: #333; }

/* 三段式滑块容器 */
.toggle-container {
    display: flex;
    position: relative;
    background: #f1f3f5;
    border: 1px solid #e2e8f0;
    border-radius: 30px;
    padding: 4px;
    user-select: none;
    width: 280px;
    box-sizing: border-box;
}
.toggle-btn {
    flex: 1;
    padding: 8px 0;
    font-size: 14px;
    font-weight: 500;
    color: #4a5568;
    cursor: pointer;
    border-radius: 30px;
    border: none;
    background: transparent;
    position: relative;
    z-index: 2;
    text-align: center;
    transition: color 0.25s ease;
}
.toggle-slider {
    position: absolute;
    top: 4px;
    left: 4px;
    box-sizing: border-box;
    height: calc(100% - 8px);
    width: calc(50% - 4px);
    background: #fff;
    border-radius: 30px;
    box-shadow: 0 2px 6px rgba(68, 138, 255, 0.15);
    border: 1px solid rgba(68, 138, 255, 0.2);
    z-index: 1;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.toggle-btn.active {
    color: #448aff;
}

.toggle-container.tab-1 .toggle-slider { transform: translateX(0%); }
.toggle-container.tab-2 .toggle-slider { transform: translateX(calc(100%)); }

/* --- Iframe 内容区 --- */
.modal-body {
    flex: 1;
    position: relative;
    background: #fafafa;
}
.ip-iframe {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border: none;
    display: none;
}
.ip-iframe.active {
    display: block;
}