/* ═══════════════════════════════════════════════════════════
   全域安 · 安行SOS — 组件样式表
   与 theme.css 配合使用，定义所有 UI 组件样式
   ═══════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────
   全局基础
───────────────────────────────────────── */
html, body {
  width: 100%; height: 100%;
  font-family: 'Microsoft YaHei', 'PingFang SC', -apple-system, sans-serif;
  background: var(--bg); color: var(--text);
  -webkit-tap-highlight-color: transparent;
  user-select: none; overflow: hidden;
}

/* ─────────────────────────────────────────
   V3: 地图层
───────────────────────────────────────── */
#v1-map {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: var(--z-map);
}
#map-canvas {
  width: 100%; height: 100%;
  display: block;
}

/* ─────────────────────────────────────────
   C2AC: 主面板容器
───────────────────────────────────────── */
#c2ac {
  position: fixed;
  top: 16px; left: 16px;
  display: flex; flex-direction: row; gap: 8px;
  z-index: var(--z-panel);
  align-items: flex-start;
}

/* ─────────────────────────────────────────
   C2A: 主面板
───────────────────────────────────────── */
.c2a-panel {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex; flex-direction: column; gap: 12px;
  overflow-y: auto;
  max-height: calc(100vh - 32px);
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
  width: 320px;
}
.c2a-panel::-webkit-scrollbar { width: 3px; }
.c2a-panel::-webkit-scrollbar-thumb { background: rgba(0,180,216,0.15); border-radius: 3px; }

.c2a-panel.mini {
  width: auto !important;
  padding: 10px !important;
  max-height: none !important;
  overflow: hidden !important;
}
.c2a-panel.mini > * { display: none !important; }
.c2a-panel.mini .brand-bar { display: flex !important; }

.c2a-panel.hidden { display: none !important; }

/* ─────────────────────────────────────────
   品牌条
───────────────────────────────────────── */
.brand-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 4px;
}
.brand-name { font-size: 15px; font-weight: 900; color: #fff; letter-spacing: 3px; }
.brand-name span { color: var(--blue); }
.brand-sub { font-size: 10px; color: var(--text-dim); letter-spacing: 1px; margin-top: 2px; }
.brand-badge {
  font-size: 9px; color: var(--blue);
  border: 1px solid rgba(0,180,216,0.3);
  border-radius: 4px; padding: 2px 6px; letter-spacing: 1px;
}

/* ─────────────────────────────────────────
   定位条
───────────────────────────────────────── */
.loc-bar {
  background: linear-gradient(135deg, #0d1e30, #0a1828);
  border: 1.5px solid rgba(0,180,216,0.35);
  border-radius: var(--radius);
  padding: 11px 14px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 0 20px rgba(0,180,216,0.07);
  position: relative;
}
.loc-pin { font-size: 22px; flex-shrink: 0; filter: drop-shadow(0 0 6px rgba(0,180,216,0.5)); }
.loc-text { flex: 1; min-width: 0; }
.loc-label { font-size: 11px; color: var(--blue); letter-spacing: 2px; margin-bottom: 2px; }
.loc-addr {
  font-size: 14px; font-weight: 700; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  cursor: pointer;
}
.loc-sub {
  font-size: 11px; color: var(--text-sub);
  margin-top: 3px; display: flex; align-items: center; gap: 5px;
}
.loc-dot {
  width: 5px; height: 5px; background: var(--green);
  border-radius: 50%; animation: blink 1.2s infinite; flex-shrink: 0;
}
.loc-dot.off { background: var(--text-dim); animation: none; }
.loc-btn {
  width: 30px; height: 30px; flex-shrink: 0;
  background: var(--blue-subtle);
  border: 1px solid rgba(0,180,216,0.22);
  border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 14px; color: var(--text-sub); transition: all 0.2s; position: relative;
}
.loc-btn:hover { background: rgba(0,180,216,0.2); color: var(--blue); }
.loc-menu {
  position: absolute; top: calc(100% + 6px); right: 0;
  background: #0d1b2a; border: 1px solid rgba(0,180,216,0.2);
  border-radius: var(--radius); padding: 6px; min-width: 168px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.5); z-index: 50; display: none;
}
.loc-menu.open { display: block; animation: fd 0.15s ease; }
.mi {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 7px;
  font-size: 12px; color: var(--text); cursor: pointer; transition: background 0.15s;
}
.mi:hover { background: var(--blue-subtle); color: var(--blue); }
.mi-sep { height: 1px; background: rgba(255,255,255,0.05); margin: 3px 0; }

/* ─────────────────────────────────────────
   SOS 圆环
───────────────────────────────────────── */
.outer-sq {
  width: 100%; aspect-ratio: 1;
  max-width: 300px; max-height: 300px;
  background: linear-gradient(145deg, #0d1b2a, #0a1220);
  border: 1.5px solid rgba(0,180,216,0.14);
  border-radius: var(--radius-xl);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  box-shadow: 0 0 50px rgba(0,80,140,0.1), inset 0 0 40px rgba(0,0,0,0.3);
  margin: 0 auto;
}
.c { position: absolute; width: 16px; height: 16px; border-color: rgba(0,180,216,0.38); border-style: solid; }
.c.tl { top:10px; left:10px; border-width:2px 0 0 2px; border-radius:3px 0 0 0; }
.c.tr { top:10px; right:10px; border-width:2px 2px 0 0; border-radius:0 3px 0 0; }
.c.bl { bottom:10px; left:10px; border-width:0 0 2px 2px; border-radius:0 0 0 3px; }
.c.br { bottom:10px; right:10px; border-width:0 2px 2px 0; border-radius:0 0 3px 0; }

.sos-circle {
  width: 80%; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #2e0808, #130202);
  border: 2px solid rgba(229,57,53,0.4);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  position: relative; cursor: pointer; user-select: none;
  box-shadow: 0 0 50px rgba(229,57,53,0.12), inset 0 0 30px rgba(0,0,0,0.5);
  transition: border-color 0.2s;
}
.sos-circle:active { transform: scale(0.97); }
.pr  { position: absolute; inset: -10px; border-radius: 50%; border: 1.5px solid rgba(229,57,53,0.25); animation: pulse-ring 2.2s ease-out infinite; }
.pr2 { position: absolute; inset: -22px; border-radius: 50%; border: 1px solid rgba(229,57,53,0.1); animation: pulse-ring 2.2s ease-out infinite 0.7s; }
.pr3 { position: absolute; inset: -36px; border-radius: 50%; border: 1px solid rgba(229,57,53,0.04); animation: pulse-ring 2.2s ease-out infinite 1.4s; }
@keyframes pulse-ring {
  0%  { transform: scale(0.95); opacity: 1; }
  100%{ transform: scale(1.12); opacity: 0; }
}
.prog {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(rgba(229,57,53,0.7) var(--p,0%), transparent var(--p,0%));
  transition: none;
}
.sos-circle .sc { font-size: 36px; font-weight: 900; color: #fff; letter-spacing: 4px; text-shadow: 0 0 20px rgba(229,57,53,0.6); position: relative; z-index: 1; }
.sos-circle .sh { font-size: 11px; color: rgba(255,255,255,0.3); margin-top: 5px; letter-spacing: 1px; position: relative; z-index: 1; }
.sos-circle .si { font-size: 26px; line-height: 1; margin-top: 6px; filter: drop-shadow(0 0 12px rgba(229,57,53,0.9)); position: relative; z-index: 1; }
.sos-circle .se { font-size: 11px; color: rgba(229,57,53,0.5); letter-spacing: 3px; margin-top: 3px; position: relative; z-index: 1; }

/* ─────────────────────────────────────────
   双排按钮
───────────────────────────────────────── */
.bottom-row {
  display: flex; gap: 10px;
}

.btn-forhim {
  flex: 1;
  background: linear-gradient(160deg, #1e0e00, #2e1800);
  border: 1.5px solid var(--border-org);
  border-radius: var(--radius);
  padding: 14px 8px 10px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  cursor: pointer; transition: all 0.2s; user-select: none;
  box-shadow: 0 4px 20px rgba(255,111,0,0.07);
}
.btn-forhim:hover { border-color: rgba(255,111,0,0.65); box-shadow: 0 6px 24px rgba(255,111,0,0.18); transform: translateY(-2px); }
.btn-forhim:active, .btn-forhim.open { transform: scale(0.98); border-color: rgba(255,111,0,0.7); background: linear-gradient(160deg, #2e1400, #3e1e00); }
.btn-forhim .bi { font-size: 26px; }
.btn-forhim .bc { font-size: 17px; font-weight: 900; color: #fff; letter-spacing: 2px; margin-top: 2px; }
.btn-forhim .bh { font-size: 11px; color: var(--text-sub); margin-top: 2px; text-align: center; }
.btn-forhim .be { font-size: 10px; color: rgba(255,111,0,0.45); letter-spacing: 1px; margin-top: 4px; }

.btn-help {
  flex: 1;
  background: linear-gradient(160deg, #0a1828, #0d2040);
  border: 1.5px solid rgba(0,180,216,0.45);
  border-radius: var(--radius);
  padding: 14px 8px 10px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  cursor: pointer; transition: all 0.2s; user-select: none;
  box-shadow: 0 4px 24px rgba(0,180,216,0.1);
  position: relative; overflow: hidden;
}
.btn-help::before {
  content: '';
  position: absolute; top: 0; left: 10%; right: 10%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
}
.btn-help:hover { border-color: rgba(0,180,216,0.7); box-shadow: 0 6px 28px rgba(0,180,216,0.2); transform: translateY(-2px); }
.btn-help:active, .btn-help.open { transform: scale(0.98); border-color: rgba(0,180,216,0.7); }
.btn-help .bi { font-size: 26px; }
.btn-help .bc { font-size: 17px; font-weight: 900; color: #fff; letter-spacing: 2px; margin-top: 2px; }
.btn-help .bh { font-size: 11px; color: var(--text-sub); margin-top: 2px; text-align: center; }
.btn-help .be { font-size: 10px; color: rgba(0,180,216,0.45); letter-spacing: 1px; margin-top: 4px; }

/* ─────────────────────────────────────────
   展开面板
───────────────────────────────────────── */
.forhim-panel, .help-panel {
  background: #120a00;
  border: 1.5px solid rgba(255,111,0,0.18);
  border-top: none; border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden; max-height: 0; transition: max-height 0.3s ease;
}
.forhim-panel.open, .help-panel.open { max-height: 240px; }
.help-panel { background: #060e1a; border-color: rgba(0,180,216,0.16); }

.fp-label, .hp-label { padding: 8px 14px 4px; font-size: 10px; letter-spacing: 2px; }
.fp-label { color: rgba(255,111,0,0.5); }
.hp-label { color: rgba(0,180,216,0.5); }

.fp-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; background: rgba(255,255,255,0.04); }
.hp-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: rgba(255,255,255,0.04); }

.fp-item, .hp-item {
  background: inherit; padding: 12px 6px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  cursor: pointer; transition: background 0.15s; text-decoration: none;
}
.fp-item:hover, .hp-item:hover { background: rgba(255,111,0,0.1); }
.hp-item:hover { background: rgba(0,180,216,0.1); }
.fp-item .fi, .hp-item .hi { font-size: 20px; }
.fp-item .fl, .hp-item .hl { font-size: 12px; color: var(--text); font-weight: 700; }
.fp-item .fs { font-size: 10px; color: rgba(255,111,0,0.6); font-weight: 600; }
.hp-item .hs { font-size: 10px; color: var(--text-sub); font-weight: 600; }

/* 文字求助 */
.text-help-area { padding: 10px 12px 12px; display: none; }
.text-help-area.show { display: block; animation: fd 0.2s ease; }
.text-help-input {
  width: 100%; background: rgba(0,180,216,0.06);
  border: 1px solid rgba(0,180,216,0.25); border-radius: 10px;
  padding: 10px 12px; color: var(--text); font-size: 13px;
  outline: none; resize: none; height: 68px;
  font-family: 'Microsoft YaHei', sans-serif;
}
.text-help-input::placeholder { color: var(--text-dim); }
.text-help-send {
  margin-top: 8px; width: 100%;
  background: linear-gradient(90deg, var(--blue-dark), var(--blue));
  border: none; border-radius: 8px; color: #fff;
  font-size: 13px; font-weight: 700; padding: 9px;
  cursor: pointer; letter-spacing: 2px;
}

/* ─────────────────────────────────────────
   C2C: 控制层
───────────────────────────────────────── */
.c2c-panel {
  display: flex; flex-direction: column; gap: 6px;
  padding-top: 4px;
}
.ctrl-btn {
  padding: 8px 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer; font-size: 11px; color: var(--text-sub);
  text-align: center; transition: all 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.ctrl-btn:hover { background: var(--blue-subtle); color: var(--blue); border-color: var(--border-hi); }
.ctrl-btn.active { background: var(--blue-subtle); color: var(--blue); }
.ctrl-bg.restore {
  background: var(--red-subtle);
  border-color: var(--border-red);
  color: var(--red);
  display: none;
}

/* ─────────────────────────────────────────
   C2B: 信息层（右侧面板）
───────────────────────────────────────── */
#c2b-wrapper {
  position: fixed;
  top: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow-y: auto;
  z-index: var(--z-info);
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column;
}
#c2b-wrapper.c2b-right {
  right: 16px; bottom: 16px;
  width: 260px; height: calc(100vh - 32px);
}
#c2b-wrapper::-webkit-scrollbar { width: 3px; }
#c2b-wrapper::-webkit-scrollbar-thumb { background: var(--blue-subtle); }

.c2b-header {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex; justify-content: space-between; align-items: center;
  flex-shrink: 0;
}
.c2b-title { font-size: 13px; font-weight: 700; }
.c2b-refresh {
  font-size: 10px; color: var(--blue); cursor: pointer;
  padding: 4px 10px; border-radius: 10px;
  background: var(--blue-subtle);
}
.c2b-tabs {
  display: flex; padding: 10px 12px; gap: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.04); flex-shrink: 0;
}
.c2b-tab {
  flex: 1; padding: 7px 4px; text-align: center;
  font-size: 10px; border-radius: 10px;
  cursor: pointer; color: var(--text-sub); transition: all 0.15s;
}
.c2b-tab.active { background: var(--blue-subtle); color: var(--blue); font-weight: 700; }

.c2b-list { flex: 1; overflow-y: auto; }
.c2b-cat-label {
  padding: 8px 16px 4px; font-size: 10px;
  color: var(--text-dim); font-weight: 700; letter-spacing: 1px;
}
.c2b-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px; cursor: pointer; transition: background 0.15s;
}
.c2b-item:hover { background: var(--blue-subtle); }
.c2b-icon { font-size: 18px; width: 28px; text-align: center; flex-shrink: 0; }
.c2b-info { flex: 1; min-width: 0; }
.c2b-name { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c2b-addr { font-size: 10px; color: var(--text-sub); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c2b-dist {
  font-size: 10px; color: var(--blue);
  background: var(--blue-subtle); padding: 3px 8px;
  border-radius: 10px; flex-shrink: 0;
}
.c2b-action {
  font-size: 10px; color: var(--green);
  background: var(--green-glow); padding: 4px 8px;
  border-radius: 10px; flex-shrink: 0; cursor: pointer;
}

/* ─────────────────────────────────────────
   SOS 红点
───────────────────────────────────────── */
#sos-dot {
  position: fixed; top: 80px; left: 16px;
  width: 56px; height: 56px;
  background: var(--red);
  border-radius: 50%;
  z-index: var(--z-dot);
  cursor: pointer; display: none; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; color: #fff;
  box-shadow: 0 0 16px rgba(229,57,53,0.6);
  animation: dotPulse 2s ease-out infinite;
  user-select: none;
}
#sos-dot.show { display: flex; }
#sos-dot.pressing { transform: scale(0.92); }
@keyframes dotPulse {
  0%,100%{ box-shadow: 0 0 0 0 rgba(229,57,53,0.8), 0 0 16px rgba(229,57,53,0.6); }
  70%    { box-shadow: 0 0 0 15px rgba(229,57,53,0), 0 0 24px rgba(229,57,53,0.4); }
}

/* ─────────────────────────────────────────
   SOS 全屏覆盖
───────────────────────────────────────── */
.sos-overlay {
  position: fixed; inset: 0;
  background: rgba(100,0,0,0.97);
  display: none; flex-direction: column; align-items: center; justify-content: center;
  z-index: var(--z-sos-full); backdrop-filter: blur(8px);
}
.sos-overlay.show { display: flex; animation: fi 0.2s ease; }
@keyframes fi { from{opacity:0} to{opacity:1} }
.sos-ring {
  width: 200px; height: 200px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  position: relative; margin-bottom: 24px;
}
.sos-ring-prog {
  position: absolute; inset: -3px; border-radius: 50%;
  background: conic-gradient(#ff4444 var(--rp,0%), transparent var(--rp,0%));
}
.sos-num {
  font-size: 96px; font-weight: 900; color: #fff;
  line-height: 1; position: relative; z-index: 1;
  text-shadow: 0 0 40px rgba(255,80,80,0.8);
}
.sos-msg { font-size: 16px; color: rgba(255,255,255,0.75); letter-spacing: 3px; }
.sos-loc { font-size: 12px; color: rgba(255,255,255,0.35); margin-top: 8px; }
.sos-sent { font-size: 13px; color: rgba(255,255,255,0.5); margin-top: 12px; letter-spacing: 1px; display: none; }
.sos-sent.show { display: block; animation: fd 0.3s ease; }
.sos-cancel {
  margin-top: 40px; background: rgba(255,255,255,0.08);
  border: 2px solid rgba(255,255,255,0.25); color: #fff;
  font-size: 14px; font-weight: 700; padding: 12px 48px;
  border-radius: 50px; cursor: pointer; letter-spacing: 3px; transition: all 0.2s;
}
.sos-cancel:hover { background: rgba(255,255,255,0.15); }

/* ─────────────────────────────────────────
   英文说明
───────────────────────────────────────── */
.en-footer {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 10px; text-align: center;
}
.en-title { font-size: 10px; color: var(--text-dim); letter-spacing: 2px; margin-bottom: 3px; }
.en-desc { font-size: 9px; color: #1e3040; line-height: 1.6; letter-spacing: 0.5px; }
.en-icp { font-size: 9px; color: #1a2a36; margin-top: 5px; letter-spacing: 1px; }

/* ─────────────────────────────────────────
   响应式：≤660px 手机竖屏
───────────────────────────────────────── */
@media (max-width: 660px) {
  #c2ac { display: none; }
  #c2b-wrapper {
    position: fixed; top: 16px; left: 16px; right: 16px; bottom: 16px;
    width: auto; height: auto;
  }
}

/* ─────────────────────────────────────────
   响应式：661-767px 平板
───────────────────────────────────────── */
@media (min-width: 661px) and (max-width: 767px) {
  .c2a-panel { width: 280px; }
  #c2ac { width: 360px; }
  #c2b-wrapper { right: 16px; left: auto; width: 240px; }
}

/* ─────────────────────────────────────────
   服务页面
───────────────────────────────────────── */
.service-page {
  min-height: 100vh; background: var(--bg);
  padding: 24px 16px 100px;
  display: flex; flex-direction: column; gap: 16px;
}
.sp-header { text-align: center; margin-bottom: 8px; }
.sp-title { font-size: 22px; font-weight: 900; color: var(--text); }
.sp-sub { font-size: 13px; color: var(--text-sub); margin-top: 4px; }

.svc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
@media (max-width: 480px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }

.svc-card {
  background: var(--card); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 16px 8px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  cursor: pointer; transition: all 0.2s;
}
.svc-card:hover, .svc-card.selected { transform: translateY(-2px); box-shadow: var(--shadow-blue); }
.svc-card.selected.blue  { border-color: rgba(0,180,216,0.5); background: rgba(0,180,216,0.08); }
.svc-card.selected.orange{ border-color: rgba(255,111,0,0.5); background: rgba(255,111,0,0.08); }
.svc-card.selected.green { border-color: rgba(0,230,118,0.4); background: rgba(0,230,118,0.06); }
.svc-card.selected.red   { border-color: rgba(229,57,53,0.4); background: rgba(229,57,53,0.06); }
.svc-icon { font-size: 28px; }
.svc-label { font-size: 13px; font-weight: 700; color: var(--text); }
.svc-desc { font-size: 10px; color: var(--text-sub); text-align: center; }

.svc-desc-area { display: flex; flex-direction: column; gap: 10px; }
.svc-desc-title { font-size: 12px; font-weight: 700; color: var(--text-sub); }
.svc-textarea {
  width: 100%; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px; color: var(--text);
  font-size: 13px; resize: none; height: 90px; outline: none;
  font-family: 'Microsoft YaHei', sans-serif;
}
.svc-textarea:focus { border-color: var(--border-hi); }
.svc-submit {
  background: linear-gradient(90deg, var(--blue-dark), var(--blue));
  border: none; border-radius: var(--radius-sm); color: #fff;
  font-size: 14px; font-weight: 700; padding: 12px;
  cursor: pointer; letter-spacing: 2px;
}
.svc-success { text-align: center; padding: 20px; }
.svc-ok { font-size: 16px; font-weight: 700; color: var(--green); }
.svc-ok-sub { font-size: 12px; color: var(--text-sub); margin-top: 6px; }

.sp-footer {
  text-align: center; font-size: 11px; color: var(--text-dim);
  padding: 16px; border-top: 1px solid rgba(255,255,255,0.04);
}

/* ─────────────────────────────────────────
   用户中心页面
───────────────────────────────────────── */
.user-page { min-height: 100vh; background: var(--bg); padding-bottom: 40px; }

.user-card {
  background: linear-gradient(135deg, #0d1e30, #0a1828);
  border: 1.5px solid rgba(0,180,216,0.3);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  display: flex; align-items: center; gap: 14px;
  margin: 16px;
  box-shadow: var(--shadow-blue);
}
.uc-avatar { font-size: 48px; flex-shrink: 0; }
.uc-info { flex: 1; }
.uc-name { font-size: 18px; font-weight: 900; color: var(--text); }
.uc-phone { font-size: 12px; color: var(--text-sub); margin-top: 2px; }
.uc-badge {
  display: inline-block; margin-top: 6px;
  font-size: 10px; color: var(--blue);
  border: 1px solid rgba(0,180,216,0.3); border-radius: 10px; padding: 2px 10px;
}
.uc-edit { font-size: 18px; cursor: pointer; color: var(--text-sub); }

.uc-tabs {
  display: flex; padding: 0 16px; gap: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.uc-tab {
  flex: 1; padding: 10px 4px; text-align: center;
  font-size: 12px; border-radius: 10px 10px 0 0;
  cursor: pointer; color: var(--text-sub); transition: all 0.15s;
}
.uc-tab.active { background: var(--blue-subtle); color: var(--blue); font-weight: 700; }

.uc-section { padding: 12px 16px; }
.uc-section-title {
  font-size: 11px; font-weight: 700; color: var(--text-dim);
  letter-spacing: 2px; margin-bottom: 10px; padding-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.uc-empty { font-size: 13px; color: var(--text-sub); text-align: center; padding: 24px; }

.contact-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 8px;
}
.ci-left { display: flex; align-items: center; gap: 10px; }
.ci-avatar { font-size: 24px; }
.ci-name { font-size: 13px; font-weight: 700; }
.ci-phone { font-size: 11px; color: var(--text-sub); margin-top: 2px; }
.ci-right { display: flex; align-items: center; gap: 6px; }
.ci-tag { font-size: 10px; background: var(--blue-subtle); color: var(--blue); padding: 2px 8px; border-radius: 10px; }
.ci-default { font-size: 10px; color: var(--orange); }
.ci-call { font-size: 16px; cursor: pointer; padding: 4px; }
.uc-add-btn {
  width: 100%; padding: 10px; background: transparent;
  border: 1.5px dashed rgba(0,180,216,0.3); border-radius: var(--radius);
  color: var(--blue); font-size: 13px; cursor: pointer;
  transition: all 0.2s;
}
.uc-add-btn:hover { background: var(--blue-subtle); border-color: var(--border-hi); }

.history-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 8px;
}
.hi-icon { font-size: 22px; flex-shrink: 0; }
.hi-type { font-size: 13px; font-weight: 700; }
.hi-time { font-size: 11px; color: var(--text-sub); }
.hi-addr { font-size: 10px; color: var(--text-dim); margin-top: 2px; }
.hi-status { font-size: 10px; padding: 3px 8px; border-radius: 10px; }
.hi-status.ok { background: rgba(0,230,118,0.12); color: var(--green); }
.hi-status.pending { background: var(--orange-subtle); color: var(--orange); }

.setting-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 12px; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 8px; cursor: pointer;
}
.si-left { display: flex; align-items: center; gap: 10px; }
.si-icon { font-size: 16px; }
.si-label { font-size: 13px; color: var(--text); }
.si-value { font-size: 12px; color: var(--text-sub); }
.si-toggle {
  font-size: 11px; padding: 3px 10px; border-radius: 10px;
  background: var(--text-dim); color: var(--bg);
}
.si-toggle.active { background: var(--green); color: var(--bg); }

/* ─────────────────────────────────────────
   SOS 单独页面
───────────────────────────────────────── */
.sos-page {
  min-height: 100vh; background: var(--bg);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px;
  padding: 20px;
}
.sos-bg {
  position: fixed; inset: 0; z-index: 0;
  background: radial-gradient(ellipse at center, #0d1828, #0a0e1a);
}
.sos-brand { position: relative; z-index: 1; text-align: center; }
.sos-main-circle {
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #2e0808, #130202);
  border: 2px solid rgba(229,57,53,0.4);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  position: relative; z-index: 1; cursor: pointer;
  box-shadow: 0 0 50px rgba(229,57,53,0.2);
}
.sos-loc-bar {
  position: relative; z-index: 1;
  font-size: 12px; color: var(--text-sub);
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 8px 16px;
}
.sos-quick-btns {
  position: relative; z-index: 1;
  display: flex; gap: 8px;
}
.sq-btn {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 10px 14px; border-radius: var(--radius);
  cursor: pointer; font-size: 11px; border: 1.5px solid;
}
.sq-btn.orange { background: var(--orange-subtle); border-color: var(--border-org); color: var(--orange); }
.sq-btn.blue   { background: var(--blue-subtle);   border-color: var(--border-hi);  color: var(--blue); }
.sq-btn span:first-child { font-size: 22px; }
.sq-btn span:last-child  { font-weight: 700; }
.sos-confirm-panel {
  position: relative; z-index: 1; text-align: center;
  background: var(--card); border: 1px solid rgba(0,230,118,0.3);
  border-radius: var(--radius-lg); padding: 20px 32px;
}
.sos-ok-icon { font-size: 48px; }
.sos-ok-title { font-size: 18px; font-weight: 900; color: var(--green); margin-top: 8px; }
.sos-ok-sub { font-size: 12px; color: var(--text-sub); margin-top: 6px; }

/* ─────────────────────────────────────────
   全局工具类
───────────────────────────────────────── */
.anx-btn-primary {
  background: linear-gradient(90deg, var(--blue-dark), var(--blue));
  border: none; border-radius: var(--radius-sm); color: #fff;
  font-size: 14px; font-weight: 700; padding: 10px 20px;
  cursor: pointer; letter-spacing: 2px;
}
.anx-btn-primary:hover { opacity: 0.9; }
.anx-btn-primary:active { transform: scale(0.98); }

.anx-card {
  background: var(--card); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 16px;
  box-shadow: var(--shadow-card);
}