        :root {
            --primary-color: #007AFF; /* iOS 蓝色 */
            --secondary-color: #F2F2F7;; /* iOS 浅灰背景色 */
            --text-color: #000000;
            --hover-color: #0051D5;
            --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        }

          /* 默认情况下，链接颜色为黑色 */
  .link {
    color: #333 ;
    text-decoration: none;
  }

                /* 19:00~07:00 (夜间) */
        .night {
            background-color: #494953;
            color: #ffffbc;
        }

        /* 其余时间 (白天) */
        .day {
            background-color: #004a93;
            color: #ffffbc;
        }
        body {
            font-family: var(--font-family);
            background-color: var(--secondary-color);
            color: var(--text-color);
            margin: 0;
            padding: 20px;
            display: flex;
            flex-direction: column;
            align-items: center;
            min-height: 100vh;
            -webkit-font-smoothing: antialiased;
        }

#made {
    margin-top: auto;
    padding-top: 20px;
    font-size: 14px;
    text-align: center;
    line-height: 1.5; /* 增加行间距 */
    color: #919191;
}

        #chatIframe {
            width: 100%;
            height: 400px;
            border: 1px solid #ccc;
            display: none; /* 默认隐藏 iframe */
        }

        .progress-bar-container {
      margin-top: 10px;
      background-color: rgba(255, 255, 255, 0.3);
      border-radius: 3px;
      height: 5px;
      width: 100%;
      overflow: hidden;
    }
    .progress-bar {
      height: 100%;
      background-color: #ffca28;
      width: 100%;
      transition: width 0.1s linear;
    }


        .search-container {
            display: flex;
            align-items: center;
justify-content: center;
            width: 100%;
                        margin-bottom: 10px;
                        gap:5px;
        }

        .config-container {
            display: flex;
            align-items: center;
justify-content: center;
            width: 100%;
                        font-size: 11px;
        }


        h1 {
            margin-bottom: 20px;
        }





                .lang-toggle {
            position: absolute;
            top: 10px;
            left: 10px;
            font-size: 14px;
        }
        .lang-toggle a {
            margin: 0 5px;
            text-decoration: none;
            color: #919191;
        }
        .lang-toggle a.active {
            font-weight: bold;
            color: black;
        }

        @media (prefers-color-scheme: dark) {
    .lang-toggle a.active {
            font-weight: bold;
            color: white;
    }
}


.elevation-filter {
    display: flex;
    align-items: center; /* 垂直居中对齐 */
        /* gap: 8px; 控制 label 和 select 之间的间距 */

}

#elevationThresholdLabel {
    margin: 0;
}




.days-filter {
    display: flex;
    align-items: center; /* 垂直居中对齐 */

}

#daysLabel {
    margin: 0;
}
.button-container {
    display: flex;
    gap: 10px;  /* 按钮之间的间距 */
}

.button {
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    background-color: var(--primary-color);
    color: white;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    -webkit-tap-highlight-color: transparent;
    margin-top: 10px;  /* 上间距 */
        margin-bottom: 10px;  /* 上间距 */

}

        .button:active {
            transform: scale(0.98);
            background-color: var(--hover-color);
        }

        .custom-dropdown {
    position: relative;
    width: 85%;
        }

        .custom-dropdown button {
            width: 100%;
            height: 44px;
            text-align: left;
            background-color: white;
            border: none;
            border-radius: 12px;
            padding: 10px 16px;
            font-size: 16px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }

        .dropdown-item {
    padding: 12px 16px;
    border-bottom: 1px solid #E5E5EA;
}

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

.dropdown-item:hover {
    background-color: #f0f0f0;
}



        .dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none; /* 默认隐藏 */
        }
@media (prefers-color-scheme: dark) {
    .dropdown-list {
        background-color: #1C1C1E; /* 深色模式背景 */
        border: 1px solid #555;
    }
}
        .dropdown-list div {
            padding: 10px;
            cursor: pointer;
            font-size: 14px;
        }

        .dropdown-list div:hover {
            background-color: var(--primary-color);
            color: white;
        }

        #searchInput {
            width: 100%;
            height: 44px;
            padding: 12px 16px;
            font-size: 16px;
            border: none;
            border-radius: 12px;
            background-color: white;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            box-sizing: border-box;
        }

        .checkbox-container {
            display: flex;
            align-items: center;
            margin: 4px;

        }



        #satelliteLinkContainer {
            margin-top: 20px;
            max-width: 300px;
        }

        @media (prefers-color-scheme: dark) {
            :root {
                --primary-color: #0A84FF;
                --secondary-color: #2c2c2c;
                --text-color: #FFFFFF;
            }

            body {
                color: var(--text-color);
            }

            .custom-dropdown button, 
            #searchInput, 
         {
                background-color: #1C1C1E;
                border: 1px solid #555;
                color: var(--text-color);



            }

            .dropdown-list div:hover {
                background-color: var(--hover-color);
                color: white;
            }

                .link {
      color: #ddd; /* 或者选择其他合适的颜色，如蓝色 */
    }



        }
        table {
            background: white;
            border-radius: 12px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            overflow: hidden;
        }

tbody th, tbody td {  
    padding-top: 10px;  
    padding-bottom: 10px;  
    border: 1px solid #E5E5EA;  
}

        @media (prefers-color-scheme: dark) {
   

        table {
            background: #333;

        }


            .dropdown-item {
                border-bottom-color: #38383A;
            }
        }

/* 手动输入按钮样式 */
.manual-button {
    background: none;
    border: none;
    color: var(--primary-color);
    text-decoration: underline;
    cursor: pointer;
    font-size: 11px;
    margin-left: 0px;
    padding: 0;
}

/* 定位信息样式 */
#addressinfo {
    font-weight: bold;
    font-size: 11px;
}

/* 提示信息样式 */
#notesInfo {
    font-weight: bold;
    padding-bottom: 5px;
    font-size: 11px;
    min-height: 20px;
}

/* 过境信息样式 */
#passInfo {
    width: 100%;
    text-align: center;
    margin-top: 5px;
}

/* 确保手动输入按钮在新行显示 */
#notesInfo .manual-button {
    display: inline-block;
}

/* 按钮包装器样式 */
#notesInfo > div {
    margin-top: 2px;
}

/* 当notesInfo有按钮时，确保它有足够的高度 */
#notesInfo:has(.manual-button) {
    display: block;
}

/* 跟踪弹窗（iframe modal） */
.tracking-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000;
}

.tracking-modal-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 44px;
  padding: 0 12px;
  background: #1c1c1e;
}

#tracking-close-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  padding: 4px 12px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

#tracking-iframe {
  width: 100%;
  height: calc(100% - 44px);
  border: none;
}

