* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

h1 {
    text-align: center;
    color: white;
    margin-bottom: 30px;
    font-size: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

h2 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #444;
}

/* IP 显示区域 */
.ip-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.ip-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.ip-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.ip-card h2 {
    font-size: 1rem;
    color: #888;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ip-card.domestic {
    border-top: 4px solid #667eea;
}

.ip-card.foreign {
    border-top: 4px solid #764ba2;
}

.ip-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #333;
    word-break: break-all;
    margin-bottom: 8px;
}

.ip-location {
    font-size: 1rem;
    color: #666;
    margin-bottom: 8px;
}

.ip-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: #999;
}

/* 对比结果 */
.compare-result {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    font-size: 1.1rem;
}

.compare-result.success {
    background: #d4edda;
    border-left: 5px solid #28a745;
    color: #155724;
}

.compare-result.warning {
    background: #fff3cd;
    border-left: 5px solid #ffc107;
    color: #856404;
}

.compare-result .icon {
    font-size: 1.3rem;
    margin-right: 8px;
}

.compare-result.info {
    background: #e7f3ff;
    border-left: 5px solid #17a2b8;
    color: #0c5460;
}

/* 代理检测区域 */
.proxy-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.proxy-section h3 {
    font-size: 1rem;
    color: #888;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.proxy-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: background 0.2s;
}

.info-row:hover {
    background: #e9ecef;
}

.info-label {
    font-weight: 500;
    color: #555;
    font-size: 0.9rem;
}

.info-value {
    color: #333;
    font-size: 0.9rem;
    font-family: 'Consolas', 'Monaco', monospace;
    max-width: 60%;
    text-align: right;
    word-break: break-all;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .ip-section {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 1.5rem;
    }

    .ip-value {
        font-size: 1.4rem;
    }

    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .info-value {
        max-width: 100%;
        text-align: left;
    }
}
