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

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

header p {
    font-size: 1.1em;
    opacity: 0.9;
}

.control-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.upload-section, .results-section {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.upload-section h3, .results-section h3 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.3em;
}

.file-upload {
    margin-bottom: 25px;
}

.file-upload input[type="file"] {
    display: none;
}

.upload-btn {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 12px 25px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 14px;
}

.upload-btn:hover {
    background: #5a67d8;
}

.file-info {
    display: block;
    margin-top: 10px;
    font-size: 12px;
    color: #666;
}

.manual-input h4 {
    margin-bottom: 10px;
    color: #555;
}

#manualInput {
    width: 100%;
    height: 120px;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    resize: vertical;
    font-family: inherit;
}

#manualInput:focus {
    outline: none;
    border-color: #667eea;
}

.search-btn, .clear-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    margin-right: 10px;
    margin-top: 15px;
    transition: all 0.3s;
}

.search-btn {
    background: #48bb78;
    color: white;
}

.search-btn:hover {
    background: #38a169;
}

.clear-btn {
    background: #f56565;
    color: white;
}

.clear-btn:hover {
    background: #e53e3e;
}

.results-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}

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

.result-item:last-child {
    border-bottom: none;
}

.result-item.success {
    background-color: #f0fff4;
    border-left: 4px solid #48bb78;
}

.result-item.error {
    background-color: #fff5f5;
    border-left: 4px solid #f56565;
}

.result-name {
    font-weight: 500;
}

.result-status {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
}

.status-success {
    background: #c6f6d5;
    color: #22543d;
}

.status-error {
    background: #fed7d7;
    color: #742a2a;
}

.stats {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background: #f7fafc;
    border-radius: 6px;
    font-size: 14px;
}

.stats span {
    font-weight: 500;
}

.map-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    height: 600px;
}

#map {
    width: 100%;
    height: 100%;
}

.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 1000;
}

.loading.show {
    display: flex;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading p {
    color: white;
    font-size: 16px;
}

@media (max-width: 768px) {
    .control-panel {
        grid-template-columns: 1fr;
    }
    
    header h1 {
        font-size: 2em;
    }
    
    .container {
        padding: 10px;
    }
    
    .map-container {
        height: 400px;
    }
}