/* 通用样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: white;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    padding: 20px;
}

/* 背景图容器 */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    opacity: 1.0;
    background: url("https://tiptoetech.com/src/imgs/SWASQCWeb/background_satellites.webp") no-repeat center center fixed;
    background-size: cover;
}

/* 返回按钮 */
.back-button-container {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

.back-button {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    padding: 8px 15px;
}

.back-button:hover {
    color: #00e676;
    transform: translateY(-2px);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
}

.back-button:active {
    transform: translateY(1px);
}

/* 主容器 */
.container {
    max-width: 1800px;
    width: 95%;
    margin: 30px auto;
    padding: 25px;
    background: rgba(10, 25, 47, 0.7);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    border: 1px solid rgba(0, 180, 155, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    position: relative;
    border-bottom: 1px solid rgba(0, 180, 155, 0.3);
}

h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    background: linear-gradient(to right, #00b09b, #96c93d);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 15px rgba(0, 180, 155, 0.3);
    letter-spacing: 1px;
}

.subtitle {
    font-size: 1.2rem;
    color: #a0d2eb;
    margin-bottom: 25px;
}

/* 系统标签 */
.system-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.system-tab {
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.system-tab:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.system-tab.active {
    background: rgba(0, 180, 155, 0.3);
    border-color: rgba(0, 180, 155, 0.5);
    box-shadow: 0 0 15px rgba(0, 180, 155, 0.2);
}

.system-tab i {
    font-size: 1.4rem;
}

/* 视图标签 */
.view-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0 30px;
}

.view-tab {
    padding: 10px 25px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-tab:hover {
    background: rgba(255, 255, 255, 0.15);
}

.view-tab.active {
    background: rgba(86, 61, 124, 0.3);
    border-color: rgba(86, 61, 124, 0.5);
    box-shadow: 0 0 15px rgba(86, 61, 124, 0.2);
}

/* 统计卡片 */
.stats-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.stats-card {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 20px;
    flex: 1;
    min-width: 200px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.stats-title {
    color: #5bc0be;
    font-size: 1.2rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.stats-content {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.stat-box {
    background: rgba(0, 180, 155, 0.15);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    min-width: 81px;
    flex: 1;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-value-count {
    font-size: 2rem;
    font-weight: bold;
    color: #9af086;
    margin-bottom: 5px;
}

.stat-value-nominal {
    font-size: 2rem;
    font-weight: bold;
    color: #00e676;
    margin-bottom: 5px;
}

.stat-value-anomalous {
    font-size: 2rem;
    font-weight: bold;
    color: #ff5252;
    margin-bottom: 5px;
}

.stat-value-good {
    font-size: 2rem;
    font-weight: bold;
    color: #3498db;
    margin-bottom: 5px;
}

.stat-value-incomplete {
    font-size: 2rem;
    font-weight: bold;
    color: #e67e22;
    margin-bottom: 5px;
}

.stat-value-high {
    font-size: 2rem;
    font-weight: bold;
    color: #74f9f9;
    margin-bottom: 5px;
}

.stat-value-medium {
    font-size: 2rem;
    font-weight: bold;
    color: #f1c40f;
    margin-bottom: 5px;
}

.stat-value-low {
    font-size: 2rem;
    font-weight: bold;
    color: #e84393;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.95rem;
    color: #a0d2eb;
}

/* 分栏容器 */
.dashboard {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 25px;
    margin-top: 20px;
}

/* 状态容器 */
.main-content {
    background: rgba(10, 25, 47, 0.7);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow-x: auto;
    min-height: 500px;
    position: relative;
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.status-title {
    font-size: 1.8rem;
    color: #5bc0be;
}

/* 侧边栏容器 */
.sidebar {
    background: rgba(10, 25, 47, 0.7);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
    min-height: 500px;
    /* 关键CSS：使侧边栏固定在视口内 */
    position: sticky;
    top: 25px;
    overflow-y: auto;
    max-height: calc(100vh - 40px);
    align-self: flex-start; /* 取消高度拉伸 */
}

.connection-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    margin-bottom: 20px;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.connected { background: #66bb6a; }
.disconnected { background: #ef5350; }

.event-log {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    height: 300px;
    overflow-y: auto;
    padding: 15px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.simulation-controls {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.log-entry {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px dashed rgba(111, 201, 183, 0.2);
}

.log-time {
    color: #6fc9b7;
    margin-right: 10px;
}

.gps-update { color: #4fc3f7; }

.glonass-update { color: #81c784; }

.galileo-update { color: #ffb74d; }

.beidou-update { color: #f48fb1; }

.btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: rgba(0, 230, 118, 0.6);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background: rgba(0, 230, 118, 0.9);
    transform: translateY(-2px);
}

.btn-stop {
    background: rgba(239, 83, 80, 0.6);
}

.btn-stop:hover {
    background: rgba(239, 83, 80, 0.9);
}

.connection-info {
    margin-top: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    font-size: 0.9rem;
}

.highlight {
    color: #5bc0be;
    font-weight: bold;
}

/* 视图容器样式 */
.view-container {
    display: none;
}

#table-view {
    display: block;
}

#map-view {
    display: none;
    position: relative;
    height: auto;
}

#chart-view {
    width: 100%;
    height: flex;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    padding: 15px;
    position: relative;
}

.chart-view {
    width: 100%;
    height: flex;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    padding: 15px;
    position: relative;
}

#satellite-chart {
    width: 100%;
    height: 100%;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    min-width: 1200px;
    background: rgba(0, 0, 0, 0.15);
}

th {
    background: rgba(0, 180, 155, 0.2);
    color: white;
    padding: 16px 15px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid rgba(0, 180, 155, 0.4);
    position: sticky;
    top: 0;
}

td {
    padding: 14px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: white;
    background: rgba(0, 0, 0, 0.1);
}

tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.nominal {
    color: #00e676;
}

.anomalous {
    color: #ff5252;
}

.good {
    color: #3498db;
}

.incomplete {
    color: #e67e22;
}

.high {
    color: #74f9f9;
}

.medium {
    color: #f1c40f;
}

.low {
    color: #e84393;
}

.status-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.indicator-nominal {
    background: #00e676;
    box-shadow: 0 0 8px #00e676;
}

.indicator-anomalous {
    background: #ff5252;
    box-shadow: 0 0 8px #ff5252;
}

.indicator-good {
    background: #3498db;
    box-shadow: 0 0 8px #3498db;
}

.indicator-incomplete {
    background: #e67e22;
    box-shadow: 0 0 8px #e67e22;
}

.indicator-high {
    background: #74f9f9;
    box-shadow: 0 0 8px #74f9f9;
}

.indicator-medium {
    background: #f1c40f;
    box-shadow: 0 0 8px #f1c40f;
}

.indicator-low {
    background: #e84393;
    box-shadow: 0 0 8px #e84393;
}

/* 卫星地图容器 */
.satellite-map {
    background: rgba(10, 25, 47, 0.7);
    border-radius: 15px;
    padding: 25px;
    margin-top: 30px;
    height: 350px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.map-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #5bc0be;
}

.map-container {
    position: relative;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.earth {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #1a2980, #26d0ce);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 50px rgba(38, 208, 206, 0.5);
}

.satellite {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 0 10px white;
    animation: orbit 15s linear infinite;
}

/* 标题和时间容器 */
.title-with-time {
    display: flex;
    align-items: flex-end;
    gap: 25px;
}

/* 更新时间显示 */
.update-time {
    font-size: 0.85rem;
    color: rgba(160, 210, 235, 0.8);
    /* font-style: italic; */
    letter-spacing: 0.5px;
    padding-bottom: 3px;
    transition: all 0.3s ease;
}

/* 鼠标悬停效果 */
.update-time:hover {
    color: #5bc0be;
    text-shadow: 0 0 8px rgba(91, 192, 190, 0.5);
}

.footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(10, 25, 47, 0.7);
    border-radius: 10px;
}

.search-box {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    padding: 10px 20px;
    color: white;
    font-size: 1rem;
    width: 300px;
}

.search-box:focus {
    outline: none;
    border-color: #00b09b;
    box-shadow: 0 0 10px rgba(0, 180, 155, 0.3);
}

.world-map {
    width: 100%;
    aspect-ratio: 2058 / 1036;
    background-image: url('https://tiptoetech.com/src/imgs/SWASQCWeb/Equirectangular_projection_SW.webp');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 10px;
    position: relative;
    margin: 30px auto;
}

/* 卫星标记容器 */
.satellite-marker-container {
    position: absolute;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 卫星标记样式 */
.satellite-marker {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    z-index: 11;
    position: relative;
}

.satellite-marker:hover {
    transform: scale(1.2);
    z-index: 20;
}

.satellite-info {
    position: absolute;
    background: rgba(10, 25, 47, 0.15);
    border: 1px solid rgba(0, 180, 155, 0.5);
    border-radius: 8px;
    padding: 15px;
    color: white;
    min-width: 250px;
    z-index: 100;
    display: none;
    backdrop-filter: blur(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.satellite-info h3 {
    margin: 0 0 10px 0;
    color: #5bc0be;
    border-bottom: 1px solid #5bc0be;
    padding-bottom: 5px;
    font-size: 1.1rem;
}

.satellite-info p {
    margin: 5px 0;
    line-height: 1;
    font-size: 0.9rem;
}

.satellite-info strong {
    color: #b2ebf2;
}

.updated {
    animation: highlight 10s ease;
}

/* SNR 图表选择器样式 */
.satellite-selector {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
}

.satellite-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: all 0.2s ease;
}

.satellite-checkbox:hover {
    background: rgba(255, 255, 255, 0.1);
}

.satellite-checkbox input {
    cursor: pointer;
}

.selector-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.selector-title {
    font-size: 1.1rem;
    color: #5bc0be;
}

.selector-controls button {
    background: rgba(0, 180, 155, 0.3);
    border: none;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.selector-controls button:hover {
    background: rgba(0, 180, 155, 0.5);
}

.last-point-label {
    font-size: 10px;
    font-weight: bold;
    text-shadow: 0 0 2px rgba(0,0,0,0.8);
    pointer-events: none;
}

/* 频率选择器样式 */
.frequency-selector {
    margin-bottom: 20px;
}

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

.frequency-buttons button {
    width: 80px;
    text-align: center;
    padding: 8px 15px;
    background: rgba(41, 123, 142, 0.3);
    border: 1px solid rgba(85, 242, 219, 0.3);
    color: #b2ebf2;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.frequency-buttons button:hover {
    background: rgba(41, 123, 142, 0.5);
    border-color: rgba(85, 242, 219, 0.7);
}

.frequency-buttons button.active {
    background: rgba(41, 123, 142, 0.8);
    border-color: #55f2db;
    box-shadow: 0 0 10px rgba(85, 242, 219, 0.5);
}

.alert-entry {
    padding: 10px;
    border-left: 4px solid #ff9800;
    background: rgba(255, 152, 0, 0.1);
    margin-bottom: 10px;
    border-radius: 4px;
    animation: fadeIn 0.5s;
}

.alert-critical {
    border-left-color: #f44336;
    background: rgba(244, 67, 54, 0.1);
}

.alert-time {
    color: #5bc0be;
    font-size: 0.8rem;
    margin-bottom: 5px;
}

.alert-message {
    color: #ffcc80;
}

.alert-critical .alert-message {
    color: #ff8a80;
}

.no-alerts, .error-alerts, .loading-alerts {
    padding: 10px;
    text-align: center;
    color: #888888;
}

.alert-filter-container {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    gap: 10px;
}

.alert-filter-label {
    color: #5bc0be;
    font-size: 14px;
    white-space: nowrap;
}

.alert-filter-select {
    flex: 1;
    padding: 5px;
    background: #0a192f;
    color: white;
    border: 1px solid #5bc0be;
    border-radius: 4px;
    font-size: 14px;
}

.refresh-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 5px;
    margin-left: 10px;
}

.refresh-btn:hover {
    color: #4caf50;
}

.rotating {
    animation: rotate 1s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes highlight {
    0% { background-color: rgba(85, 242, 219, 0.6); }
    100% { background-color: transparent; }
}

/* 动画 */
@keyframes orbit {
    from { transform: rotate(0deg) translateX(180px) rotate(0deg); }
    to { transform: rotate(360deg) translateX(180px) rotate(-360deg); }
}

/* 汉堡菜单按钮 */
.dropdown {
    position: fixed;
    top: 25px;
    right: 50px;
    z-index: 1000;
}

.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 25px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    border-radius: 5px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: center;
}

.hamburger-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 50vh;
    background: rgba(0, 0, 0, 0.9);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    z-index: 3000;
    overflow-y: auto;
    transition: right 0.3s ease;
    padding: 60px 20px 20px;
    margin-top: 50px;
    border-radius: 10px 0 0 10px;
}

.hamburger-menu.active {
    right: 0;
}

.close-hamburger {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    z-index: 2101;
}

.close-hamburger:hover {
    color: #66aaff;
}

.hamburger-nav-item {
    display: flex;
    align-items: center;
    padding: 15px;
    color: #ffffff;
    font-size: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hamburger-nav-item:hover {
    background: #2e2e38;
    color: #66aaff;
}

.hamburger-nav-item i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.hamburger-nav-item a {
    color: #ffffff;
    text-decoration: none;
}

.hamburger-nav-item a:hover,
.hamburger-nav-item button:hover {
    color: #66aaff;
    text-decoration: underline;
}

.hamburger-nav-item button {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
}

.nav {
    display: flex;
    z-index: 2000;
    justify-content: space-between;
}

.satellite-marker.selected {
    transform: scale(1.3);
    border-color: #FFD700;
    box-shadow: 0 0 10px #FFD700;
    z-index: 30;
}

.satellite-label {
    background: rgba(10, 25, 47, 0.9);
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    white-space: nowrap;
    margin-top: 2px;
    z-index: 12;
    position: relative;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0,0,0,0.7);
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

.satellite-label.selected {
    background: rgba(255, 215, 0, 0.9);
    color: #0a192f;
    border-color: #FFD700;
}

.satellite-marker:hover .satellite-label {
    opacity: 1;
}

.satellite-marker-container:hover .satellite-label {
    background: rgba(91, 192, 190, 0.9);
}

/* 覆盖区域样式 */
.coverage-area {
    position: absolute;
    pointer-events: none;
    z-index: 5;
    transition: all 0.5s ease;
}

/* 地图中心点 */
.map-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

/* 响应式设计 */
@media (max-width: 1950px) {
    .back-button-container {
        position: relative;
        top: 5px;
        left: 5px;
    }

    .dropdown {
        position: relative;
        top: 10px;
        right: 20px;
    }

    .status-title {
        font-size: 1.6rem;
    }

    .update-time {
        font-size: 0.75rem;
    }

    .stats-title {
        font-size: 1rem;
    }

    .stat-value-count {
        font-size: 1.5rem;
    }

    .stat-value-nominal {
        font-size: 1.5rem;
    }

    .stat-value-anomalous {
        font-size: 1.5rem;
    }

    .stat-value-good {
        font-size: 1.5rem;
    }

    .stat-value-incomplete {
        font-size: 1.5rem;
    }

    .stat-value-high {
        font-size: 1.5rem;
    }

    .stat-value-medium {
        font-size: 1.5rem;
    }

    .stat-value-low {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    .stats-content {
        gap: 10px;
    }

    .stat-box {
        min-width: auto;
    }

    /* 表格样式 */
    table {
        min-width: 815px;
    }

    th {
        font-size: 0.9rem;
    }

    td {
        font-size: 0.9rem;
    }
}

@media (max-width: 1055px) {
    .main-content {
        margin-bottom: 5px;
    }

    h1 {
        font-size: 1.37rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .system-tab {
        min-width: 120px;
        padding: 12px 15px;
        font-size: 0.9rem;
        gap: 10px;
        justify-content: center;
    }

    .system-tab i {
        font-size: 0.9rem;
    }

    .view-tabs {
        margin: 20px 0 10px 0;
    }
    .view-tab {
        padding: 12px 15px;
        font-size: 0.9rem;
    }

    .dashboard {
        display: flex;
        flex-direction: column;
    }

    .status-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .status-title {
        font-size: 1.2rem;
    }

    .title-with-time {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .search-box {
        font-size: 0.9rem;
        width: 300px;
        margin-top: 10px;
    }

    .sidebar {
        overflow-y: visible;
        max-height: none;
        align-self: none;
        position: relative;
        top: 0px;
        width: 100%;
    }

    .sidebar h2, .sidebar h3 {
        font-size: 1.2rem;
    }

    /* 表格样式 */
    table {
        min-width: 703px;
    }

    th {
        font-size: 0.7rem;
        padding: 8px 8px;
    }

    td {
        font-size: 0.7rem;
        padding: 8px 8px;
    }

    .satellite-marker {
        width: 8px;
        height: 8px;
    }

    .satellite-info {
        padding: 10px;
        min-width: 100px;
        font-size: 0.55rem;
    }

    .main-content {
       min-height: auto;
    }
}

@media (max-width: 920px) {
    .selector-title {
        font-size: 0.8rem;
    }

    .selector-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .selector-controls {
        width: 100%;
        display: flex;
        justify-content: flex-start;
        gap: 15px;
    }

    .selector-controls button {
        padding: 5px 10px;
        font-size: 0.8rem;
    }

    .satellite-selector {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        gap: 10px;
        max-height: 200px;
        overflow-y: auto;
    }

    .satellite-checkbox {
        font-size: 0.7rem;
    }

    .chart-view {
        height: 500px;
    }

    .search-box {
        font-size: 0.9rem;
        width: 100%;
        margin: 10px auto 0 auto;
    }

    .connection-info {
        font-size: 0.7rem;
    }

    .footer {
        font-size: 0.8rem;
    }
}