/* IP查询页面样式 */
.tool-page {
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.tool-container {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    flex: 1;
}

.tool-intro {
    flex: 1;
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid #007bff;
}

.tool-intro h3 {
    margin-top: 0;
    color: #333;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.tool-content {
    flex: 1;
    min-width: 300px;
}

.input-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.input-label {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.input-field {
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 5px;
    font-size: 16px;
    width: 100%;
    max-width: 400px;
}

.input-field:focus {
    outline: none;
    border-color: #007bff;
}

.btn-primary {
    background: #007bff;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    width: fit-content;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #0056b3;
}

.result-section {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.result-section h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid #007bff;
}

.info-item.full-width {
    grid-column: 1 / -1;
}

.info-label {
    font-weight: bold;
    color: #666;
    font-size: 14px;
}

.info-value {
    color: #333;
    font-size: 16px;
    word-break: break-all;
}

.map-container {
    margin-top: 15px;
    text-align: center;
}

.hidden {
    display: none;
}

/* 专门针对结果内容的样式 */
.result-content {
    margin-top: 15px;
}

.result-content .info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.result-content .info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid #007bff;
}

.result-content .info-label {
    font-weight: bold;
    color: #666;
    font-size: 14px;
}

.result-content .info-value {
    color: #333;
    font-size: 16px;
    word-break: break-all;
}

/* 当前IP显示样式 */
.current-ip-section {
    max-width: 1200px;
    margin: 20px auto 0 auto;
    text-align: center;
}

.current-ip-box {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #e3f2fd;
    padding: 12px 20px;
    border-radius: 25px;
    border: 1px solid #bbdefb;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ip-label {
    font-weight: bold;
    color: #1976d2;
    font-size: 14px;
}

.current-ip {
    font-family: monospace;
    font-weight: bold;
    color: #0d47a1;
    background: #ffffff;
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid #bbdefb;
}

/* 底部详细结果表格样式 */
.detailed-results-section {
    max-width: 1200px;
    margin: 20px auto 0 auto;
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.detailed-results-section h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.results-table th,
.results-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.results-table th {
    background-color: #f8f9fa;
    font-weight: bold;
    color: #495057;
}

.results-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.results-table tr:hover {
    background-color: #f5f5f5;
}

.results-table td:first-child {
    font-weight: bold;
    color: #495057;
    width: 30%;
}

.message-element {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 4px;
    color: #fff;
    box-shadow: 0 2px 12px 0 rgba(0,0,0,0.1);
    z-index: 9999;
    font-size: 14px;
    opacity: 1;
    transition: opacity 0.3s;
}

.message-error {
    background: #f56c6c;
}

.message-success {
    background: #67c23a;
}

.message-info {
    background: #409eff;
}

@media (max-width: 768px) {
    .tool-container {
        flex-direction: column;
    }
    
    .tool-intro, .tool-content {
        width: 100%;
    }
    
    .input-section, .result-section {
        padding: 20px;
    }
    
    .feature-list {
        grid-template-columns: 1fr;
    }
    
    .input-field {
        max-width: 100%;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .current-ip-section {
        margin: 15px auto 0 auto;
    }
    
    .current-ip-box {
        flex-direction: column;
        padding: 15px;
        width: 100%;
        max-width: 300px;
    }
    
    .results-table {
        font-size: 14px;
    }
    
    .results-table th,
    .results-table td {
        padding: 8px;
    }
}