﻿html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}
#map_container {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
}

/* 确保所有容器都不产生滚动条 */
* {
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
    overflow-y: hidden;
}

/* 防止任何元素溢出 */
.weather_left,
.weather_center,
.weather_right {
    max-height: calc(100vh - 1rem);
    overflow: hidden;
}

.select {
    width: 2.1rem;
    height: 0.8rem;
    position: relative;
    font-size: 0.18rem;
    color: #cdddf7;
    outline: none;
}

.select p {
}

.select-div {
    box-sizing: border-box;
    width: 1.6rem;
    height: 0.5rem;
    text-align: center;
    line-height: 0.4rem;
    border: 1px solid #0E94EA;
    background: url(../images/arrow.png) 95% center no-repeat;
    cursor: default;
    position: absolute;
    top: 0.2rem;
    color: #cdddf7;
    left: 0.4rem;
}

.select-ul {
    position: absolute;
    width: 1.6rem;
    top: 0.7rem;
    left: 0.4rem;
    z-index: 20;
    display: none;
}

.select-ul.company {
    height: 2.6rem;
    overflow-y: auto;
    text-align: center;
}

.select-ul > li {
    height: 0.4rem;
    line-height: 0.4rem;
    box-sizing: border-box;
    background-color: rgba(14, 148, 234, 0.2);
    cursor: default;
    color: #cdddf7;
}

.select-ul > li.active,
.select-ul > li:hover {
    color: white;
    background: #0e94eb;
    z-index: 5;
}

.select-ul > li {
    width: 1.6rem;
    z-index: 5;
}


.select2 {
    width: 2.1rem;
    height: 0.6rem;
    position: relative;
    font-size: 0.18rem;
    color: #cdddf7;
    outline: none;
}

.select2 p {

}

.select2-div {
    box-sizing: border-box;
    width: 1.6rem;
    height: 0.5rem;
    text-align: center;
    line-height: 0.4rem;
    border: 1px solid #0E94EA;
    background: url(../images/arrow.png) 95% center no-repeat;
    cursor: default;
    position: absolute;
    top: -0.6rem;
    color: #cdddf7;
    left: 2.9rem;
}

.select2-ul {
    position: absolute;
    width: 1.6rem;
    top: -0.1rem;
    left: 2.9rem;
    z-index: 20;
    display: none;
}

.select2-ul.company {
    height: 2.6rem;
    overflow-y: auto;
    text-align: center;
}

.select2-ul > li {
    height: 0.4rem;
    line-height: 0.4rem;
    box-sizing: border-box;
    background-color: rgba(14, 148, 234, 0.2);
    cursor: default;
    color: #cdddf7;
}

.select2-ul > li.active,
.select2-ul > li:hover {
    color: white;
    background: #0e94eb;
    z-index: 5;
}

.select2-ul > li {
    width: 1.6rem;
    z-index: 5;
}


/* 圆形开关样式 */
.dot-switch {
    position: fixed;
    top: 7.2rem;
    left: 14rem;
    z-index: 10;
}

/* 新增：开关正上方文字说明样式 */
.switch-label {
    position: fixed;
    top: calc(7.0rem - 1.2em); /* 距离顶部略高于开关 */
    left: 13.7rem;
    font-size: 0.2rem;
    color: #ffffff;
    padding: 0.2em 0.5em;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 9;
    pointer-events: none; /* 避免遮挡点击事件 */
}

.dot-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* 滑块样式 */
.dot-switch .slider {
    width: 50px; /* 加宽一点，提升可视性 */
    height: 26px;
    background: rgba(128, 128, 128, 0.4); /* 默认灰色背景 */
    border-radius: 34px;
    display: inline-block;
    position: relative;
    transition: background-color 0.4s ease;
    cursor: pointer;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
}

/* 滑块内部圆点 */
.dot-switch .slider::before {
    content: "";
    position: absolute;
    height: 28px;
    width: 28px;
    left: -2px;
    bottom: -1px;
    background: linear-gradient(to bottom, #ffffff, #e0e0e0); /* 白灰渐变，更立体 */
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* 选中时背景颜色 & 内部圆点移动 */
.dot-switch input:checked + .slider {
    background: linear-gradient(to right, #00c9a7, #00ff99); /* 鲜艳的绿色渐变 */
}

.dot-switch input:checked + .slider::before {
    transform: translateX(24px); /* 完全对齐右侧 */
}

.dot {
    width: 40px;
    height: 40px;
    border-radius: 100%;
    background: rgba(0, 255, 0);
    right: 6rem;
    font: 10px Arial, sans-serif;
    justify-content: center;
    position: fixed;
    top: 7.8rem;
    left: 14rem;
    align-items: center;
    text-align: center;
    background-size: 100% 100%;
    z-index: 1;
    display: flex;
}

.dot_blue {
    width: 40px;
    height: 40px;
    border-radius: 100%;
    background: rgba(255, 0, 255);

    top: 8.4rem;
    left: 14rem;
    right: 6rem;
    font: 10px Arial, sans-serif;
    justify-content: center;
    position: fixed;
    align-items: center;
    text-align: center;
    background-size: 100% 100%;
    z-index: 1;
    display: flex;
}

.dot_pink {
    background: blue;
    width: 40px;
    height: 40px;
    border-radius: 100%;
    right: 6rem;
    font: 10px Arial, sans-serif;
    justify-content: center;
    top: 9rem;
    left: 14rem;
    position: fixed;
    align-items: center;
    text-align: center;
    background-size: 100% 100%;
    z-index: 1;
    display: flex;
}

.nky_logo {
    width: 0.6rem;
    height: 0.6rem;
    position: relative;
    z-index: 100;
    display: block;
}

.nky_font {
    width: 1.8rem;
    height: 1rem;
    left: -7rem;
    top: 0rem;
    position: relative;
    z-index: 100;
    display: flex;
}
.full_screen {
    width: 1rem;
    height: 0.6rem;
    position: relative;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 4px;
    font-size: 0.11rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.full_screen:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.full_screen:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 顶部栏样式 - 从左到右排列：logo、全屏按钮、语言按钮 */
.top-bar {
    display: flex !important;
    align-items: center !important;
    gap: 0.3rem !important;
    position: absolute !important;
    left: 2rem !important;
    top: 0.5rem !important;
    width: auto !important;
    height: auto !important;
    line-height: normal !important;
    font-size: initial !important;
    text-align: left !important;
    z-index: 1000 !important;
}

/* 删除旧的容器样式 */
.logo-container,
.button-group,
.button-container {
    display: none;
}

/* 语言切换按钮样式 */
.language_switch {
    width: 0.7rem;
    height: 0.6rem;
    left: 0;
    top: 0rem;
    position: relative;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 4px;
    font-size: 0.11rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    margin-left: 0;
    white-space: nowrap;
}

.language_switch:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.language_switch:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 英文状态下的布局优化 */
[data-lang="en-US"] .center-title {
    font-size: 0.3rem !important;
    letter-spacing: 0.02rem !important;
}

/* 响应式优化 - 确保在小屏幕上显示完整 */
@media (max-width: 1400px) {
    .center-title {
        font-size: 0.3rem !important;
    }
    .right-time {
        font-size: 0.18rem !important;
        min-width: 1.4rem !important;
    }
}

@media (max-width: 1200px) {
    .center-title {
        font-size: 0.28rem !important;
    }
    .right-time {
        font-size: 0.16rem !important;
        min-width: 1.2rem !important;
    }
    .full_screen {
        width: 0.9rem !important;
        font-size: 0.1rem !important;
    }
    .language_switch {
        width: 0.6rem !important;
        font-size: 0.1rem !important;
    }
}
.BMap_cpyCtrl {
    display: none;
}

.anchorBL {
    display: none;
}

/* 新的顶部栏样式 - 统一的水平布局 */
.top-header-bar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 0.8rem !important;
    padding: 0.05rem 0.5rem !important;
    background: url(../images/head_bg.png) no-repeat center center !important;
    background-size: 100% 100% !important;
    z-index: 1000 !important;
    line-height: normal !important;
    font-size: initial !important;
    text-align: left !important;
}

/* 左侧控件组 */
.left-controls {
    display: flex !important;
    align-items: center !important;
    gap: 0.2rem !important;
    flex-shrink: 0 !important;
}

/* 中心标题 */
.center-title {
    flex: 1 !important;
    text-align: center !important;
    font-size: 0.35rem !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    letter-spacing: 0.05rem !important;
    padding: 0.05rem 1rem !important;
    margin: 0 0.5rem !important;
}

/* 右侧时间 */
.right-time {
    flex-shrink: 0 !important;
    text-align: right !important;
    font-size: 0.2rem !important;
    color: rgba(255, 255, 255, 0.9) !important;
    min-width: 1.6rem !important;
    line-height: 1.1 !important;
}

/* 隐藏旧的样式 */
.top-bar,
.head,
.time {
    display: none !important;
}

/* 调整其他元素位置以适应新的顶部栏 */
.weather_left {
    top: 0.85rem !important;
}

.weather_center {
    top: 0.85rem !important;
}

.weather_right {
    top: 0.85rem !important;
}
