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

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

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #4c6ef5 0%, #3b5bdb 100%);
    color: white;
    padding: 40px;
    text-align: center;
}

header h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

.main-content {
    padding: 40px;
}

.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.card h2 {
    color: #2c3e50;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.6rem;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #495057;
    font-weight: 600;
    font-size: 1.1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4c6ef5;
    box-shadow: 0 0 0 3px rgba(76, 110, 245, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    font-family: monospace;
}

.input-with-help {
    display: flex;
    align-items: center;
    gap: 10px;
}

.help-tip {
    position: relative;
    cursor: help;
}

.help-tip .fa-question-circle {
    font-size: 1.2rem;
    color: #6c757d;
}

.help-text {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #495057;
    color: white;
    padding: 15px;
    border-radius: 10px;
    width: 300px;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.help-tip:hover .help-text {
    display: block;
}

.help-text a {
    color: #4dabf7;
    text-decoration: none;
}

.help-text a:hover {
    text-decoration: underline;
}

button {
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, #4c6ef5 0%, #3b5bdb 100%);
    color: white;
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(76, 110, 245, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.result-container {
    min-height: 300px;
    background: white;
    border-radius: 10px;
    padding: 25px;
    border: 2px dashed #dee2e6;
}

.result-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #adb5bd;
    text-align: center;
}

.result-placeholder i {
    margin-bottom: 20px;
    color: #dee2e6;
}

.coordinate-result {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.address-info {
    background: #e9ecef;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.address-line {
    margin: 10px 0;
    font-size: 1.1rem;
    color: #495057;
}

.coordinate-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 25px 0;
}

.coord-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
}

.coord-card:hover {
    border-color: #4c6ef5;
    transform: translateY(-5px);
}

.coord-card h4 {
    color: #2c3e50;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.coordinates {
    font-family: monospace;
    font-size: 1.3rem;
    color: #212529;
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.coord-description {
    color: #6c757d;
    font-size: 0.9rem;
    margin-top: 10px;
}

.map-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.map-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #e9ecef;
    border-radius: 8px;
    text-decoration: none;
    color: #495057;
    font-weight: 500;
    transition: all 0.3s ease;
}

.map-link:hover {
    background: #4c6ef5;
    color: white;
    transform: translateY(-2px);
}

.table-container {
    overflow-x: auto;
    margin: 20px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

thead {
    background: linear-gradient(135deg, #4c6ef5 0%, #3b5bdb 100%);
    color: white;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

tbody tr:hover {
    background: #f8f9fa;
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.info-box {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    margin-top: 40px;
}

.coordinate-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.coord-type {
    padding: 20px;
    background: white;
    border-radius: 10px;
    border-left: 5px solid #4c6ef5;
}

.coord-type h4 {
    color: #2c3e50;
    margin-bottom: 10px;
}

footer {
    padding: 40px;
    background: #f8f9fa;
    text-align: center;
    border-top: 1px solid #e9ecef;
}

.copyright {
    margin-top: 20px;
    color: #6c757d;
}

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

    .coordinate-group {
        grid-template-columns: 1fr;
    }

    .coordinate-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        border-radius: 0;
    }

    header {
        padding: 30px 20px;
    }

    header h1 {
        font-size: 2rem;
    }

    .main-content {
        padding: 20px;
    }

    .card {
        padding: 20px;
    }
}