.hf-container {
    max-width: 1100px;
    margin: 15px auto;
}
.setting {
    width: 100%;
    display: grid;
    grid-template-columns: 2.5fr 1.2fr auto;
    gap: 18px;
    align-items: center;
    justify-items: start;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 0 16px;
    box-sizing: border-box;
    height: 100px;
}
.station-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}
.station-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}
.station-row label {
    color: #555;
    font-size: 15px;
    white-space: nowrap;
    width: auto;
    min-width: 0;
    max-width: none;
    display: inline-block;
}

/* 发射站标签红色，接收站标签蓝色 */
.station-row label[for="tx-country"],
.station-row label[for="tx-lat"],
.station-row label[for="tx-lon"] {
    color: #d9534f !important;
    font-weight: bold;
}
.station-row label[for="rx-country"],
.station-row label[for="rx-lat"],
.station-row label[for="rx-lon"] {
    color: #337ab7 !important;
    font-weight: bold;
}
.station-row select {
    width: 120px;
    min-width: 120px;
    max-width: 120px;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 15px;
    margin-right: 8px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}
.station-row input[type="number"] {
    width: 90px;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 15px;
}
.time-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}
.time-group label {
    color: #555;
    font-size: 15px;
    margin-bottom: 6px;
    width: 140px;
    text-align: center;
}
.time-group input[type="date"] {
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 15px;
    width: 140px;
}
.calc-group {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    gap: 12px;
}
.calc-group button {
    width: 100%;
    min-width: 90px;
    min-height: 56px;
    padding: 0;
    border-radius: 5px;
    border: none;
    background: #4575b4;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.calc-group button:hover {
    background: #225588;
}
.map {
    width: 100%;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    min-height: 320px;
    height: 450px;
    max-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    gap: 24px;
}
.map-card {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    background: #fafbfc;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    margin: 0 0;
    padding: 10px;
    min-width: 0;
    min-height: 100%;
    overflow: hidden;
}
.map-card-title {
    width: 100%;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    height: 30px;
    line-height: 30px;
    margin: 0;
    padding: 0;
    letter-spacing: 0.5px;
    background: transparent;
    flex-shrink: 0;
}
.map-card-content, .map-card > .map-card-content, .map-card > div:not(.map-card-title) {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    min-width: 0;
}
@media (max-width: 900px) {
    .setting { grid-template-columns: 1fr; }
    .calc-group button { min-height: 48px; }
    .map {
        flex-direction: column;
        min-height: 180px;
        height: calc(100vh - 120px - 160px);
        gap: 16px;
    }
    .map-card {
        width: 100%;
        height: 48%;
        min-height: 120px;
        padding: 12px;
    }
}
[class="dark-mode"] {
    .map {
        background: #181a1b !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.5) !important;
    }
    .map-card {
        background: #181a1b !important;
        color: #e0e0e0 !important;
        box-shadow: 0 1px 4px rgba(0,0,0,0.5) !important;
    }
}
[class="dark-mode"] {
    body, .hf-container {
        background: #181a1b !important;
        color: #e0e0e0 !important;
    }
    .setting {
        background: #23272a !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.5) !important;
    }
    .station-row label,
    .time-group label {
        color: #e0e0e0 !important;
    }
    .station-row select,
    .station-row input[type="number"],
    .time-group input[type="date"] {
        background: #23272a !important;
        color: #e0e0e0 !important;
        border: 1px solid #444 !important;
    }
    .station-row select:focus,
    .station-row input[type="number"]:focus,
    .time-group input[type="date"]:focus {
        border-color: #4575b4 !important;
        outline: none;
    }
    .calc-group button {
        background: #4575b4 !important;
        color: #fff !important;
    }
    .calc-group button:hover {
        background: #225588 !important;
    }
}

#mapDiv {
    height: 400px;
    width: 500px;
}