598 lines
17 KiB
HTML
598 lines
17 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="zh-CN">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>自动连接配置</title>
|
|
<style>
|
|
/* =========================================================================
|
|
:root 全量 Design Tokens 声明 (与系统设置全局规范严格对齐)
|
|
========================================================================= */
|
|
:root {
|
|
--color-primary: #2563EB;
|
|
--color-primary-dark: #1D4ED8;
|
|
--color-primary-light: #EFF6FF;
|
|
--color-primary-container: #EEF2FF;
|
|
--color-on-primary-container: #1E40AF;
|
|
|
|
--color-surface: #FFFFFF;
|
|
--color-surface-variant: #F8FAFC;
|
|
--color-background: #EEF2F6;
|
|
|
|
--text-main: #0F172A;
|
|
--text-sub: #64748B;
|
|
--text-dim: #94A3B8;
|
|
|
|
--divider: #E2E8F0;
|
|
--border-card: #E2E8F0;
|
|
--border-light: rgba(0, 0, 0, 0.05);
|
|
|
|
--corner-card: 18px;
|
|
--corner-item: 12px;
|
|
--shadow-card: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
|
|
--shadow-hover: 0 10px 24px -4px rgba(15, 23, 42, 0.08);
|
|
|
|
--content-max-width: 1160px;
|
|
--content-gutter: clamp(16px, 2.5vw, 32px);
|
|
--appbar-height: 60px;
|
|
}
|
|
|
|
* { box-sizing: border-box; margin: 0; padding: 0; }
|
|
|
|
html {
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
}
|
|
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
|
|
"PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
|
|
background: var(--color-background);
|
|
color: var(--text-main);
|
|
min-height: 100vh;
|
|
padding: var(--content-gutter);
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.device-wrapper {
|
|
width: 100%;
|
|
max-width: var(--content-max-width);
|
|
margin: 0 auto;
|
|
background: var(--color-surface);
|
|
border-radius: 20px;
|
|
border: 1px solid var(--border-light);
|
|
box-shadow: 0 16px 40px -10px rgba(15, 23, 42, 0.08);
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* =========================================================================
|
|
AppBar 顶部导航栏统一规范 (40dp 纯净透明触控槽 + Hover 微圆底)
|
|
========================================================================= */
|
|
.appbar {
|
|
height: var(--appbar-height);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 0 20px;
|
|
border-bottom: 1px solid var(--divider);
|
|
background: var(--color-surface);
|
|
}
|
|
|
|
.appbar-left { display: flex; align-items: center; }
|
|
|
|
.appbar-nav {
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 50%;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
background: transparent;
|
|
border: none;
|
|
transition: all 0.15s ease;
|
|
}
|
|
|
|
.appbar-nav:hover {
|
|
background: rgba(15, 23, 42, 0.06);
|
|
transform: scale(0.96);
|
|
}
|
|
|
|
.appbar-nav svg {
|
|
width: 22px;
|
|
height: 22px;
|
|
fill: var(--text-main);
|
|
}
|
|
|
|
.appbar-title {
|
|
font-size: 19px;
|
|
font-weight: 700;
|
|
margin-left: 10px;
|
|
letter-spacing: -0.01em;
|
|
}
|
|
|
|
.appbar-more {
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 50%;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
background: transparent;
|
|
border: none;
|
|
transition: all 0.15s ease;
|
|
}
|
|
|
|
.appbar-more:hover {
|
|
background: rgba(15, 23, 42, 0.06);
|
|
}
|
|
|
|
.appbar-more svg {
|
|
width: 22px;
|
|
height: 22px;
|
|
fill: var(--text-main);
|
|
}
|
|
|
|
/* 融合主布局:左侧通道岛屿 430dp + 右侧 Bento 规则策略双层矩阵 (动态响应式边距) */
|
|
.main-layout {
|
|
padding: clamp(20px, 2.5vw, 30px);
|
|
display: grid;
|
|
grid-template-columns: 430px 1fr;
|
|
gap: clamp(16px, 2vw, 24px);
|
|
background: var(--color-surface-variant);
|
|
align-items: stretch;
|
|
}
|
|
|
|
/* =========================================================================
|
|
【左侧】通道配置独立岛屿 (iPadOS Pro Inset Group)
|
|
========================================================================= */
|
|
.channel-island {
|
|
background: var(--color-surface);
|
|
border-radius: var(--corner-card);
|
|
border: 1.5px solid var(--border-card);
|
|
box-shadow: var(--shadow-card);
|
|
padding: 20px 20px 16px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.island-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding-top: 2px;
|
|
padding-bottom: 14px;
|
|
margin-bottom: 10px;
|
|
border-bottom: 1px solid var(--divider);
|
|
min-height: 40px;
|
|
}
|
|
|
|
.island-title {
|
|
font-size: 16px;
|
|
font-weight: 700;
|
|
color: var(--text-main);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.status-pill {
|
|
font-size: 11.5px;
|
|
font-weight: 600;
|
|
background: var(--color-primary-light);
|
|
color: var(--color-primary);
|
|
padding: 2px 8px;
|
|
border-radius: 100px;
|
|
}
|
|
|
|
/* 高精细度 iOS 触控 Switch */
|
|
.switch {
|
|
position: relative;
|
|
display: inline-block;
|
|
width: 48px;
|
|
height: 26px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.switch input { opacity: 0; width: 0; height: 0; }
|
|
|
|
.slider {
|
|
position: absolute;
|
|
cursor: pointer;
|
|
top: 0; left: 0; right: 0; bottom: 0;
|
|
background-color: #CBD5E1;
|
|
transition: .25s cubic-bezier(0.4, 0, 0.2, 1);
|
|
border-radius: 26px;
|
|
}
|
|
|
|
.slider:before {
|
|
position: absolute;
|
|
content: "";
|
|
height: 20px;
|
|
width: 20px;
|
|
left: 3px;
|
|
bottom: 3px;
|
|
background-color: white;
|
|
transition: .25s cubic-bezier(0.4, 0, 0.2, 1);
|
|
border-radius: 50%;
|
|
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
|
|
}
|
|
|
|
input:checked + .slider {
|
|
background-color: var(--color-primary);
|
|
}
|
|
|
|
input:checked + .slider:before {
|
|
transform: translateX(22px);
|
|
}
|
|
|
|
/* 通道列表组 (已加安全 padding 确保第一条顶部边框完整不遮挡) */
|
|
.channel-group-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 7px;
|
|
overflow-y: auto;
|
|
max-height: 480px;
|
|
padding: 6px 4px 6px 2px;
|
|
}
|
|
|
|
.channel-row {
|
|
background: #F8FAFC;
|
|
border: 1px solid rgba(226, 232, 240, 0.9);
|
|
border-radius: var(--corner-item);
|
|
padding: 10px 14px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
|
cursor: grab;
|
|
user-select: none;
|
|
}
|
|
|
|
.channel-row:hover {
|
|
background: #FFFFFF;
|
|
border-color: #CBD5E1;
|
|
transform: translateY(-1px);
|
|
box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
|
|
}
|
|
|
|
.channel-left {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.channel-dot {
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
background: #10B981;
|
|
box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.channel-badge {
|
|
background: var(--color-primary-container);
|
|
color: var(--color-primary);
|
|
font-size: 11.5px;
|
|
font-weight: 700;
|
|
padding: 2px 7px;
|
|
border-radius: 6px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.channel-text {
|
|
font-size: 13.5px;
|
|
font-weight: 600;
|
|
color: var(--text-main);
|
|
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
|
|
}
|
|
|
|
.drag-icon {
|
|
color: var(--text-dim);
|
|
font-size: 18px;
|
|
display: flex;
|
|
align-items: center;
|
|
padding-left: 6px;
|
|
}
|
|
|
|
/* =========================================================================
|
|
【右侧】Bento 磁贴矩阵 (型号过滤规则 + 系统连接策略)
|
|
========================================================================= */
|
|
.bento-right-stack {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
}
|
|
|
|
.bento-tile {
|
|
background: var(--color-surface);
|
|
border-radius: var(--corner-card);
|
|
border: 1.5px solid var(--border-card);
|
|
box-shadow: var(--shadow-card);
|
|
padding: 18px 20px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.bento-tile-head {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding-top: 2px;
|
|
padding-bottom: 12px;
|
|
margin-bottom: 12px;
|
|
border-bottom: 1px solid var(--divider);
|
|
min-height: 36px;
|
|
}
|
|
|
|
.bento-title {
|
|
font-size: 15.5px;
|
|
font-weight: 700;
|
|
color: var(--text-main);
|
|
line-height: 1.4;
|
|
}
|
|
|
|
/* 1. 型号过滤规则:上下纵向摆放 (Vertical Stacked Cards) */
|
|
.rules-vertical-stack {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
}
|
|
|
|
.rule-bento-card {
|
|
background: #F8FAFC;
|
|
border: 1px solid var(--divider);
|
|
border-radius: var(--corner-item);
|
|
padding: 12px 16px;
|
|
transition: all 0.15s ease;
|
|
}
|
|
|
|
.rule-bento-card:hover {
|
|
background: #FFFFFF;
|
|
border-color: #CBD5E1;
|
|
box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
|
|
}
|
|
|
|
.rule-row-head {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.rule-status-text {
|
|
font-size: 13.5px;
|
|
font-weight: 600;
|
|
color: var(--text-main);
|
|
}
|
|
|
|
.rule-input-field {
|
|
width: 100%;
|
|
background: #FFFFFF;
|
|
border: 1.5px solid var(--divider);
|
|
border-radius: 8px;
|
|
padding: 9px 14px;
|
|
font-size: 13.5px;
|
|
font-weight: 600;
|
|
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
|
|
color: var(--text-main);
|
|
box-shadow: inset 0 1px 2px rgba(0,0,0,0.02);
|
|
transition: border-color 0.15s ease;
|
|
}
|
|
|
|
.rule-input-field:focus {
|
|
outline: none;
|
|
border-color: var(--color-primary);
|
|
box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
|
|
}
|
|
|
|
/* 2. 系统连接策略四宫格磁贴 (2x2 Grid) */
|
|
.strategy-bento-grid {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 10px;
|
|
}
|
|
|
|
.strategy-bento-card {
|
|
background: #F8FAFC;
|
|
border: 1px solid var(--divider);
|
|
border-radius: var(--corner-item);
|
|
padding: 12px 14px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 10px;
|
|
transition: all 0.15s ease;
|
|
}
|
|
|
|
.strategy-bento-card:hover {
|
|
background: #FFFFFF;
|
|
border-color: #CBD5E1;
|
|
box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
|
|
}
|
|
|
|
.strategy-info { flex: 1; }
|
|
|
|
.strategy-main-title {
|
|
font-size: 13.5px;
|
|
font-weight: 600;
|
|
color: var(--text-main);
|
|
line-height: 1.35;
|
|
}
|
|
|
|
.strategy-sub-desc {
|
|
font-size: 11.5px;
|
|
color: var(--text-sub);
|
|
margin-top: 2px;
|
|
line-height: 1.35;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="device-wrapper">
|
|
<!-- AppBar 顶部导航 (统一规范:40dp 无框轻质触控槽) -->
|
|
<header class="appbar">
|
|
<div class="appbar-left">
|
|
<button class="appbar-nav" title="返回" aria-label="返回"><svg viewBox="0 0 24 24"><path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"/></svg></button>
|
|
<h1 class="appbar-title">自动连接配置</h1>
|
|
</div>
|
|
<button class="appbar-more" title="更多选项" aria-label="更多选项"><svg viewBox="0 0 24 24"><path d="M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"/></svg></button>
|
|
</header>
|
|
|
|
<main class="main-layout">
|
|
<!-- 【左侧】通道配置岛屿 (带绿点信号灯 + #01 徽章 + 拖拽手柄) -->
|
|
<aside class="channel-island">
|
|
<div class="island-header">
|
|
<div class="island-title">
|
|
<span>自动重连状态</span>
|
|
<span class="status-pill">9 通道就绪</span>
|
|
</div>
|
|
<label class="switch"><input type="checkbox" checked><span class="slider"></span></label>
|
|
</div>
|
|
<div class="channel-group-list">
|
|
<div class="channel-row">
|
|
<div class="channel-left">
|
|
<span class="channel-dot"></span>
|
|
<span class="channel-badge">#01</span>
|
|
<span class="channel-text">通道 #01 62200014</span>
|
|
</div>
|
|
<span class="drag-icon">≡</span>
|
|
</div>
|
|
<div class="channel-row">
|
|
<div class="channel-left">
|
|
<span class="channel-dot"></span>
|
|
<span class="channel-badge">#02</span>
|
|
<span class="channel-text">通道 #02 62200025</span>
|
|
</div>
|
|
<span class="drag-icon">≡</span>
|
|
</div>
|
|
<div class="channel-row">
|
|
<div class="channel-left">
|
|
<span class="channel-dot"></span>
|
|
<span class="channel-badge">#03</span>
|
|
<span class="channel-text">通道 #03 2200001</span>
|
|
</div>
|
|
<span class="drag-icon">≡</span>
|
|
</div>
|
|
<div class="channel-row">
|
|
<div class="channel-left">
|
|
<span class="channel-dot"></span>
|
|
<span class="channel-badge">#04</span>
|
|
<span class="channel-text">通道 #04 62200015</span>
|
|
</div>
|
|
<span class="drag-icon">≡</span>
|
|
</div>
|
|
<div class="channel-row">
|
|
<div class="channel-left">
|
|
<span class="channel-dot"></span>
|
|
<span class="channel-badge">#05</span>
|
|
<span class="channel-text">通道 #05 2200024</span>
|
|
</div>
|
|
<span class="drag-icon">≡</span>
|
|
</div>
|
|
<div class="channel-row">
|
|
<div class="channel-left">
|
|
<span class="channel-dot"></span>
|
|
<span class="channel-badge">#06</span>
|
|
<span class="channel-text">通道 #06 2200002</span>
|
|
</div>
|
|
<span class="drag-icon">≡</span>
|
|
</div>
|
|
<div class="channel-row">
|
|
<div class="channel-left">
|
|
<span class="channel-dot"></span>
|
|
<span class="channel-badge">#07</span>
|
|
<span class="channel-text">通道 #07 62200026</span>
|
|
</div>
|
|
<span class="drag-icon">≡</span>
|
|
</div>
|
|
<div class="channel-row">
|
|
<div class="channel-left">
|
|
<span class="channel-dot"></span>
|
|
<span class="channel-badge">#08</span>
|
|
<span class="channel-text">通道 #08 62200016</span>
|
|
</div>
|
|
<span class="drag-icon">≡</span>
|
|
</div>
|
|
<div class="channel-row">
|
|
<div class="channel-left">
|
|
<span class="channel-dot"></span>
|
|
<span class="channel-badge">#09</span>
|
|
<span class="channel-text">通道 #09 2200011</span>
|
|
</div>
|
|
<span class="drag-icon">≡</span>
|
|
</div>
|
|
</div>
|
|
</aside>
|
|
|
|
<!-- 【右侧】Bento 磁贴矩阵 (型号过滤规则 + 系统连接策略) -->
|
|
<section class="bento-right-stack">
|
|
<!-- 1. 型号过滤规则 Bento 磁贴 (上下纵向摆放) -->
|
|
<div class="bento-tile">
|
|
<div class="bento-tile-head">
|
|
<span class="bento-title">型号过滤规则</span>
|
|
</div>
|
|
<div class="rules-vertical-stack">
|
|
<div class="rule-bento-card">
|
|
<div class="rule-row-head">
|
|
<span class="rule-status-text">自动重连状态</span>
|
|
<label class="switch"><input type="checkbox"><span class="slider"></span></label>
|
|
</div>
|
|
<input class="rule-input-field" value="CL910L-XXXXXXX / CL960-XXXXXXX">
|
|
</div>
|
|
<div class="rule-bento-card">
|
|
<div class="rule-row-head">
|
|
<span class="rule-status-text">自动重连状态</span>
|
|
<label class="switch"><input type="checkbox"><span class="slider"></span></label>
|
|
</div>
|
|
<input class="rule-input-field" value="CL900-XXXXXXX">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 2. 系统连接策略 Bento 四宫格磁贴 -->
|
|
<div class="bento-tile">
|
|
<div class="bento-tile-head">
|
|
<span class="bento-title">系统连接策略</span>
|
|
</div>
|
|
<div class="strategy-bento-grid">
|
|
<div class="strategy-bento-card">
|
|
<div class="strategy-info">
|
|
<div class="strategy-main-title">自动加载用户数据库</div>
|
|
<div class="strategy-sub-desc">当连接时自动加载用户数据库</div>
|
|
</div>
|
|
<label class="switch"><input type="checkbox"><span class="slider"></span></label>
|
|
</div>
|
|
|
|
<div class="strategy-bento-card">
|
|
<div class="strategy-info">
|
|
<div class="strategy-main-title">历史日志限制</div>
|
|
</div>
|
|
<label class="switch"><input type="checkbox" checked><span class="slider"></span></label>
|
|
</div>
|
|
|
|
<div class="strategy-bento-card">
|
|
<div class="strategy-info">
|
|
<div class="strategy-main-title">开启佩戴提醒</div>
|
|
</div>
|
|
<label class="switch"><input type="checkbox"><span class="slider"></span></label>
|
|
</div>
|
|
|
|
<div class="strategy-bento-card">
|
|
<div class="strategy-info">
|
|
<div class="strategy-main-title">离线超过30秒停止写入设备</div>
|
|
</div>
|
|
<label class="switch"><input type="checkbox"><span class="slider"></span></label>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</main>
|
|
</div>
|
|
</body>
|
|
</html>
|