.login-page { min-height: 100vh; background-color: #0C1226; display: flex; align-items: center; justify-content: center; padding: 20px; box-sizing: border-box; } .pw{ font-size: 12px; color: #8b949e; padding-left: 5px; } /* 登录卡片:PC默认40%,设置最大最小宽度,防止平板过窄 */ .login-card { width: 40%; min-width: 340px; max-width: 600px; background-color: #10172b; border: 2px solid #124966; border-radius: 10px; padding: 40px 32px; box-sizing: border-box; box-shadow: 1px 1px 1px rgba(0, 255, 255, 1); } /* 品牌标题 */ .brand { margin-bottom: 24px; text-align: center; } .brand-cn { color: #00edff; display: block; font-size: 36px; font-weight: bold; line-height: 50px; } .brand-sub { display: block; margin-top: 4px; font-size: 16px; color: #8B949E; } /* 表单项 */ .form-item { margin-bottom: 16px; } .form-row { display: flex; justify-content: space-between; gap:16px; } .half { width: 48%; } .label { display: block; font-weight: 700; font-size:14px; color:#00EDFF; margin-bottom: 6px; } /* 输入框 */ .input { height: 50px; line-height: 50px; padding: 0 12px; font-size: 14px; color: #fff; background-color: #0C1226; border: 1px solid #124966; border-radius: 5px; box-sizing: border-box; } .placeholder { color: #8b949e; } /* IP + 配网 */ .ip-row { display: flex; align-items: center; } .flex-1 { flex: 1; } .btn-pw { margin-left: 8px; height: 50px; line-height: 50px; padding: 0 15px; font-size: 13px; color: #00edff; border: 1px solid #124966; border-radius: 5px; } /* 下拉选择 */ .select { display: flex; align-items: center; justify-content: space-between; height: 50px; padding: 0 12px; font-size: 14px; color: #fff; border: 1px solid #124966; border-radius: 5px; box-sizing: border-box; } .select-text { flex: 1; } .arrow { color: #8b949e; } /* 进入系统按钮(渐变) */ .btn-submit { margin-top: 22px; height: 48px; line-height: 48px; text-align: center; font-size: 18px; color: #fff; border-radius: 10px; background: linear-gradient(90deg, rgba(0, 229, 255, 1) 0%, rgba(124, 77, 255, 1) 100%); } /* ========== 媒体查询:iPad竖屏(宽度 <= 768px)========== */ @media screen and (max-width:768px){ .login-card{ width: 90%; padding:30px 24px; } .brand-cn{ font-size:28px; line-height:40px; } /* 两列表单改成单列 */ .form-row{ flex-direction: column; gap:16px; } .half{ width:100%; } /* 增大触摸区域,平板更容易点击 */ .input,.select{ height:52px; line-height:52px; } .btn-submit{ height:52px; line-height:52px; } } /* 下面原有其余样式保持原样,我只截取改动部分,你把原来剩下的css直接保留 */ .loading-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); display: flex; justify-content: center; align-items: center; z-index: 9999; } .loading-content { background: white; border-radius: 10px; padding: 20px; display: flex; flex-direction: column; align-items: center; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); } .loading-spinner { width: 30px; height: 30px; border: 3px solid #f3f3f3; border-top: 3px solid #667eea; border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 10px; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } .loading-text { font-size: 14px; color: #333; } .logo { margin-top: 6px; width: 30px; height: 34px; margin-left: 8px; } .jt { margin-top: 9px; width: 12px; height: 12px; margin-left: 3px; } .canvas { /* 不要写死1000px,占满父容器 */ width: 100%; height: 100%; display: block; } .item-line { width: 12px; height: 5px; } .xs-font { font-size: 12px; color: #FFFF00; } .text { font-size: 17px; color: #999999; } .bottom-buttonx { width: 15%; background: linear-gradient(150deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 0%, rgba(239, 68, 68, 1) 100%, rgba(239, 68, 68, 1) 100%); color: #000; border-radius: 5px; height: 40px; line-height: 40px; font-size: 16px; border: none; position: absolute; bottom: 40px; } .bottom-button-xh { margin-top: 5px; background-color: #00e5ff; width: 80px; height: 25px; line-height: 25px; font-size: 12px; color: #000; } .cxsm { color: #FFFF00; padding-bottom: 10px; padding: 10px 5px; } .cxsm-ts { display: flex; flex-direction: row; /* 横向排列 */ color: #fff; font-size: 13px; line-height: 30px; padding-left: 8px; padding-bottom: 5px; } .lright { top:71px; font-size: 14px; color: #00E676; position: absolute; margin-top: 5px; right: 10px; } .line-item { margin-left: 5px; padding: 8px 10px; border-radius: 4px; font-size: 13px; line-height: 13px; color: #00e5ff; } .line-itemd { margin-left: 5px; padding: 8px 10px; background-color: #0099ff; border-radius: 4px; font-size: 13px; line-height: 13px; color: #fff; } .lleft { margin-left: 10px; margin-top: 5px; } .val { color: #00e5ff; font-weight: 500; } .canvas-wrap { width: 100%; height: 100%; } .fixed-images { position: absolute; left: 240px; bottom: 50px; display: flex; flex-direction: column; gap: 10px; z-index: 999; } .fixed-image { width: 50px; height: 50px; } .route-page { padding: 5px 10px; } .section-title { font-size: 13px; color: #fff; margin: 10px 0; } /* 顶部地点按钮 */ .place-buttons { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 5px; } .place-btn { background-color: #124966; padding: 8px 13px; border-radius:8px; font-size: 12px; border: 1px solid #00ffff; color: #00ffff; } /* 路线条目 */ .route-list { display: flex; flex-direction: column; gap: 8px; } .route-item { background-color: rgba(22, 34, 64, 1); border: 1px solid rgba(18, 73, 102, 1); border-radius: 8px; display: flex; align-items: center; padding: 3px 7px; color: #00e5ff; } .route-item-dd { background-color: #c4e9ff; border-radius: 8px; display: flex; align-items: center; padding: 3px 7px; } /* 拖拽手柄 三条横线 */ .drag-handle { width: 20px; height: 20px; line-height: 20px; border-radius: 50%; text-align: center; color: #000; align-items: center; margin-right: 13px; background-color: #00e5ff; } .drag-handle-dd { width: 20px; height: 20px; line-height: 20px; border-radius: 50%; text-align: center; color: #000; font-size: 13px; align-items: center; margin-right: 13px; background-color: #00e5ff ; } .drag-handle .line { width: 18px; background-color: #cc6600; border-radius: 1px; } /* 点位圆点 */ .point-marker { width: 7px; height: 7px; border-radius: 50%; margin-left: 18px; margin-right: 8px; display: flex; align-items: center; justify-content: center; } .marker-green { background-color: #28b847; } .marker-blue { background-color: #00e5ff; } .elevator-icon { border: 1px dashed #007aff; width: 16px; height: 16px; font-size: 12px; color: #007aff; text-align: center; } .point-name { font-size: 12px; flex: 1; } .point-distance { font-size: 12px; color: #00e5ff; margin-right: 15px; } .del-btn { font-size: 18px; color: #00e5ff; } .del-img { width: 15px; height: 17px; } .rtitle { font-size: 15px; font-weight: bold; color: #fff; padding-top: 8px; padding-bottom: 8px; border-left: 3px solid #00edff; padding-left: 20px; margin-bottom: 20px; } .xhms{ color: #00e676; font-size: 13px; border: 1px solid #01ffff; border-radius: 6px; padding: 5px 0; text-align: center; width: 100%; } /* 遮罩层 */ .popup-mask { position: fixed; top: 0; left: 0; width: 100%; height: 100%; /* 透明遮罩,只用来点击关闭,不需要背景色;如需半透明自行添加 background:rgba(0,0,0,0.15) */ background: transparent; z-index: 998; } /* 悬浮下拉弹窗 */ .popup-box { position: fixed; top: 80rpx; right: 10rpx; padding: 40rpx 50rpx; background: #f2f2f2; border: 1rpx solid rgba(242, 242, 242, 1); border-radius: 10rpx; /* 柔和阴影,替换生硬阴影 */ box-shadow: 0 4rpx 16rpx rgba(180, 180, 180, 0.35); z-index: 999999; overflow: hidden; } /* 菜单选项 */ .itemxf { display: flex; align-items: center; justify-content: flex-start; padding: 8rpx 0; margin-bottom: 40rpx; cursor: pointer; transition: background-color 0.2s; &:last-child { margin-bottom: 0; } /* hover悬浮效果 */ &:hover { background-color: #f6f7f9; } /* 当前选中地图高亮 */ &.active { .fx-text { color: #007aff; } } } /* 文字样式 */ .fx-text { font-size: 30rpx; line-height: 36rpx; color: #333333; }