/* ============ IP地址查询 - 工具专属样式 ============ */
/* 其余布局/卡片/按钮/说明样式均复用 common.css 公共样式 */

.url-input {
    width: 100%;
    min-height: 80px;
    padding: 12px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #374151;
    background: #fff;
    outline: none;
    transition: all 0.2s;
    resize: vertical;
    line-height: 1.5;
    font-family: inherit;
}

.url-input:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.error-msg {
    color: #ef4444;
    font-size: 13px;
    margin-bottom: 16px;
    padding: 8px 12px;
    background: #fef2f2;
    border-radius: 6px;
}

.quick-urls {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.quick-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 10px;
}

.history-list {
    max-height: 150px;
    overflow-y: auto;
}

.history-item {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    margin-bottom: 4px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.history-item:hover {
    background: #f3e8ff;
    border-color: #e9d5ff;
}

.history-icon {
    margin-right: 8px;
    font-size: 12px;
}

.history-url {
    font-size: 13px;
    color: #6b7280;
    word-break: break-all;
    flex: 1;
}

.history-empty {
    padding: 20px;
    text-align: center;
    font-size: 13px;
    color: #9ca3af;
    background: #f9fafb;
    border-radius: 6px;
}

.btn-clear {
    width: 100%;
    margin-top: 10px;
    padding: 6px 12px;
    font-size: 12px;
    color: #6b7280;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-clear:hover {
    background: #e5e7eb;
    color: #374151;
}

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e5e7eb;
    border-top-color: #8b5cf6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    margin-top: 16px;
    font-size: 14px;
    color: #6b7280;
}

.ip-display {
    background: linear-gradient(135deg, #8b5cf6 0%, #6b21a8 100%);
    color: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 20px;
}

.ip-label {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.ip-value {
    font-size: 28px;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.meta-section {
    margin-bottom: 16px;
}

.section-title {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #8b5cf6;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
}

.item-label {
    font-size: 14px;
    color: #6b7280;
}

.item-value {
    font-size: 14px;
    color: #374151;
    font-weight: 500;
    text-align: right;
    flex: 1;
    margin-left: 10px;
}

.empty-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.empty-text {
    font-size: 14px;
    color: #888;
}

/* ============ 响应式：窄屏改为上下布局 ============ */
@media (max-width: 768px) {
    .section-row-1-3 {
        grid-template-columns: 1fr;
    }
}
