body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

h1 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 300;
}

h3 {
    color: #2c3e50;
    margin: 0;
    font-size: 18px;
    font-weight: 500;
}

.status {
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
    text-align: center;
    font-weight: 500;
}

.status.loading {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.status.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* 查询区域样式 */
.query-section {
    margin-bottom: 25px;
}

.query-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.query-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.query-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.query-button {
    padding: 12px 24px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s;
    white-space: nowrap;
}

.query-button:hover {
    background-color: #2980b9;
}

.query-button:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

/* 基本信息区域 */
.basic-info-section {
    margin: 25px 0;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.basic-info {
    font-size: 15px;
    line-height: 1.8;
}

.mode-info {
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-weight: 500;
}

.current-mode {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.query-mode {
    background-color: #e8f4fd;
    color: #0c5460;
    border-left: 4px solid #3498db;
}

.query-ip {
    margin-top: 5px;
    font-family: monospace;
    font-size: 14px;
    color: #2c3e50;
}

.ip-info-item {
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ip-info-item:last-child {
    border-bottom: none;
}

.ip-type {
    font-weight: bold;
    color: #2c3e50;
    min-width: 50px;
}

.ip-address {
    font-family: monospace;
    font-weight: 500;
    color: #2c3e50;
}

.ip-type-public {
    color: #28a745;
    font-weight: 500;
    padding: 2px 8px;
    background-color: #d4edda;
    border-radius: 4px;
    font-size: 13px;
}

.ip-type-private {
    color: #dc3545;
    font-weight: 500;
    padding: 2px 8px;
    background-color: #f8d7da;
    border-radius: 4px;
    font-size: 13px;
}

.ip-source {
    color: #6c757d;
    font-size: 14px;
}

.ip-not-found {
    color: #dc3545;
    font-style: italic;
}

/* 结果显示区域 */
.result-section {
    margin-top: 25px;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.copy-button {
    padding: 8px 16px;
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.copy-button:hover {
    background-color: #5a6268;
}

.ip-display {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 25px;
    font-family: 'Courier New', monospace;
    white-space: pre-wrap;
    word-break: break-all;
    font-size: 14px;
    line-height: 1.5;
    max-height: 500px;
    overflow-y: auto;
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .container {
        padding: 20px;
    }
    
    .query-container {
        flex-direction: column;
    }
    
    .query-input {
        width: 100%;
    }
    
    .query-button {
        width: 100%;
    }
    
    .result-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .ip-info-item {
        flex-wrap: wrap;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 24px;
    }
    
    .ip-display {
        padding: 15px;
        font-size: 12px;
    }
    
    .basic-info-section {
        padding: 15px;
    }
}