/* 可交互演示：手机框 + 水准助手 / 围岩助手 还原界面
   仅作用于 .demo 内部，不影响站点其它样式。无外部依赖。 */

/* ---------- 演示外壳 ---------- */
.demo {
  margin: 20px 0 26px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  overflow: hidden;
}
.demo-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 13px;
  color: var(--muted);
}
.demo-tag {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 650;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 2px 9px;
  letter-spacing: .04em;
}
.demo-note { flex: 1 1 auto; min-width: 0; }
.demo-toggle {
  flex: 0 0 auto;
  font: inherit;
  font-size: 13px;
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 12px;
  cursor: pointer;
}
.demo-toggle:hover { border-color: var(--accent); }
.demo-reset {
  flex: 0 0 auto;
  font: inherit;
  font-size: 13px;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 12px;
  cursor: pointer;
}
.demo-reset:hover { color: var(--accent); border-color: var(--accent); }
.demo-reset:active, .demo-toggle:active { transform: scale(.97); }
@media (max-width: 680px) {
  .demo-head { flex-wrap: wrap; row-gap: 8px; }
  .demo-note { flex: 1 1 100%; order: 3; font-size: 12px; }
  .demo-reset { margin-left: auto; }
}

.demo-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  padding: 18px 14px 20px;
}
.demo[data-open="false"] .demo-body { display: none; }
@media (min-width: 900px) {
  .demo-body { grid-template-columns: 396px minmax(0, 1fr); align-items: start; padding: 22px 20px 24px; }
}

.phone-wrap { display: flex; justify-content: center; overflow: hidden; width: 100%; min-width: 0; }
.phone {
  position: relative;
  width: 380px;
  height: 760px;
  padding: 10px;
  border-radius: 42px;
  background: linear-gradient(160deg, #2a3547, #0b1220 38%);
  box-shadow: 0 20px 50px rgba(10, 22, 40, .28), 0 2px 6px rgba(10, 22, 40, .2);
  transform-origin: top center;
  flex: 0 0 auto;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
.phone input, .phone select, .phone textarea { -webkit-user-select: text; user-select: text; }
.phone::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 110px;
  height: 4px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(255, 255, 255, .35);
}
.phone-screen {
  position: relative;
  width: 360px;
  height: 740px;
  border-radius: 32px;
  overflow: hidden;
  background: #fff;
  isolation: isolate;
}

.statusbar {
  flex: 0 0 auto;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  font-size: 11px;
  letter-spacing: .02em;
  color: var(--top-text, #fff);
}
.statusbar .sb-r { letter-spacing: .08em; font-size: 10px; }
.statusbar.sb-photo { color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .35); }
.statusbar.sb-dark { color: #7b8a90; }

.demo-aside h3 { font-size: 15px; margin: 0 0 8px; }
.demo-aside ol { margin: 0 0 16px; padding-left: 20px; font-size: 14px; color: var(--muted); }
.demo-aside li { margin: 3px 0; }
.demo-aside li b { color: var(--text); font-weight: 600; }
.demo-themes { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; padding: 2px; background: var(--surface-2); }
.seg button {
  font: inherit;
  font-size: 12.5px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 999px;
  padding: 4px 11px;
  cursor: pointer;
}
.seg button.is-on { background: var(--accent); color: #fff; font-weight: 600; }

/* ---------- App 通用 ---------- */
.cj-app, .wy-app {
  position: absolute;
  inset: 0;
  display: block;
  font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text);
  background: var(--bg);
}
.cj-screen, .wy-screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
}
.cj-screen[hidden], .wy-screen[hidden] { display: none; }
.cj-screen:not([hidden]), .wy-screen:not([hidden]) { animation: screenIn .2s ease both; }
@keyframes screenIn {
  from { opacity: 0; transform: translateX(7px); }
  to { opacity: 1; transform: none; }
}
.cj-app button, .wy-app button { font-family: inherit; cursor: pointer; }
.cj-app button, .wy-app button { transition: transform .12s ease, background-color .18s ease, border-color .18s ease, opacity .18s ease; }
.cj-app button:not(.cj-measure):not(:disabled):active, .wy-app button:active { transform: scale(.97); }
.cj-app button:focus-visible, .wy-app button:focus-visible,
.cj-app input:focus-visible, .wy-app input:focus-visible,
.wy-app select:focus-visible {
  outline: 2px solid var(--focus, var(--accent));
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .cj-screen:not([hidden]), .wy-screen:not([hidden]) { animation: none; }
  .cj-app button, .wy-app button, .toast { transition: none; }
}

/* 浮层提示 */
.toast {
  position: absolute;
  left: 50%;
  bottom: 96px;
  transform: translate(-50%, 10px);
  max-width: 88%;
  padding: 9px 14px;
  border-radius: 12px;
  background: var(--card, #fff);
  border: 1px solid var(--border-c, #ddd);
  color: var(--text, #222);
  font-size: 13px;
  box-shadow: 0 6px 18px rgba(12, 24, 40, .18);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 6;
  text-align: center;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 水准助手 ---------- */
.cj-app[data-theme="light"] {
  --bg: #f5f7fa;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --border-c: #e5e7eb;
  --border-alt: #f0f4fa;
  --primary: #1b4b8f;
  --on-primary: #ffffff;
  --top-text: #ffffff;
  --top-bg: #1b4b8f;
  --field: #f9fafb;
  --field-border: #e5e7eb;
  --head: #e5e7eb;
  --head-text: #374151;
  --timer: #1b4b8f;
  --row-hl: #e8eef8;
  --card-r: 12px;
  --field-r: 8px;
  --btn-r: 12px;
  --btn-bg: #1b4b8f;
  --btn-text: #ffffff;
  --ghost-bg: #ffffff;
}
.cj-app[data-theme="soft"] {
  --bg: linear-gradient(180deg, #eff6ff 0%, #f2fbf9 58%, #f7f8fc 100%);
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6a82a0;
  --border-c: #e1eaf6;
  --border-alt: #f0f4fa;
  --primary: #3b6fd4;
  --on-primary: #ffffff;
  --top-text: #16304f;
  --top-bg: linear-gradient(180deg, #dfebff, #e6fbf6);
  --field: #f4f8fe;
  --field-border: #e1eaf6;
  --head: #e8f0fa;
  --head-text: #3b5e8c;
  --timer: #3b6fd4;
  --row-hl: #e2edfb;
  --card-r: 22px;
  --field-r: 12px;
  --btn-r: 24px;
  --btn-bg: linear-gradient(135deg, #3b6fd4, #12b3a6);
  --btn-text: #ffffff;
  --ghost-bg: #ffffff;
}
.cj-app[data-theme="dark"] {
  --bg: #0f172a;
  --card: #1e293b;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --border-c: #334155;
  --border-alt: #2a3a52;
  --primary: #22d3ee;
  --on-primary: #06202a;
  --top-text: #f1f5f9;
  --top-bg: #111c2f;
  --field: #0f172a;
  --field-border: #3b4a63;
  --head: #243448;
  --head-text: #cbd5e1;
  --timer: #22d3ee;
  --row-hl: rgba(34, 211, 238, .14);
  --card-r: 14px;
  --field-r: 8px;
  --btn-r: 12px;
  --btn-bg: linear-gradient(135deg, #22d3ee, #4fd6c6);
  --btn-text: #06202a;
  --ghost-bg: #1e293b;
}

.cj-topbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  padding: 6px 12px;
  background: var(--top-bg);
  color: var(--top-text);
}
.cj-screen > .statusbar { background: var(--top-bg); }
.cj-home .statusbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 4;
  background: linear-gradient(180deg, rgba(6, 24, 48, .55), rgba(6, 24, 48, 0));
}
.cj-back {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, .12);
  color: inherit;
  font-size: 17px;
  line-height: 1;
  display: grid;
  place-items: center;
}
.cj-app[data-theme="soft"] .cj-back { background: rgba(22, 48, 79, .1); }
.cj-title { font-size: 17px; font-weight: 650; letter-spacing: .01em; }
.cj-sub { font-size: 11px; opacity: .78; margin-top: -1px; }

.cj-scroll { flex: 1 1 auto; overflow-y: auto; padding: 10px 10px 12px; scrollbar-width: none; }
.cj-scroll::-webkit-scrollbar { display: none; }
.cj-card {
  background: var(--card);
  border: 1px solid var(--border-c);
  border-radius: var(--card-r);
  padding: 10px 12px 4px;
  margin-bottom: 10px;
  box-shadow: 0 1px 2px rgba(15, 32, 56, .05);
}
.cj-card h4 {
  margin: 2px 0 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: .02em;
}
.cj-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border-top: 1px solid var(--border-alt);
  font-size: 13px;
}
.cj-card h4 + .cj-row { border-top: 0; }
.cj-row > label { flex: 1 1 auto; min-width: 0; color: var(--text); }
.cj-field {
  width: 96px;
  height: 30px;
  padding: 0 8px;
  text-align: center;
  font: inherit;
  font-size: 12.5px;
  color: var(--text);
  background: var(--field);
  border: 1px solid var(--field-border);
  border-radius: var(--field-r);
}
.cj-field:focus { outline: 2px solid var(--primary); outline-offset: 0; }
.cj-num { width: 52px; }
.cj-plus { color: var(--muted); font-size: 12px; }
.cj-radios { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.cj-radio { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--text); background: none; border: 0; padding: 4px 0; }
.cj-radio i {
  width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid var(--muted); display: inline-block; position: relative;
}
.cj-radio[data-on="true"] i { border-color: var(--primary); }
.cj-radio[data-on="true"] i::after {
  content: ""; position: absolute; inset: 2px; border-radius: 50%; background: var(--primary);
}
.cj-radio[data-on="true"] { color: var(--primary); font-weight: 600; }
.cj-switch {
  flex: 0 0 auto;
  width: 42px; height: 23px; border-radius: 999px;
  border: 0; padding: 0;
  background: #cbd5e1;
  position: relative;
  transition: background .18s ease;
}
.cj-switch::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 17px; height: 17px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
  transition: transform .18s ease;
}
.cj-switch[data-on="true"] { background: var(--primary); }
.cj-switch[data-on="true"]::after { transform: translateX(19px); }

.cj-themes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 4px 0 10px; }
.cj-theme-opt {
  border: 1px solid var(--border-c);
  background: var(--field);
  border-radius: var(--field-r);
  padding: 8px 5px 7px;
  font-size: 11.5px;
  color: var(--muted);
  text-align: center;
}
.cj-theme-opt .sw { display: block; height: 14px; border-radius: 4px; margin-bottom: 6px; }
.cj-theme-opt[data-on="true"] { border: 2px solid var(--primary); padding: 7px 4px 6px; color: var(--text); font-weight: 600; }
.sw-light { background: linear-gradient(90deg, #f5f7fa 40%, #1b4b8f 40%); }
.sw-soft { background: linear-gradient(90deg, #eff6ff 40%, #3b6fd4 40%, #12b3a6); }
.sw-dark { background: linear-gradient(90deg, #0f172a 40%, #22d3ee 40%); }

.cj-bottombar {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 10px;
  padding: 10px 12px 12px;
  border-top: 1px solid var(--border-c);
  background: var(--card);
}
.cj-bottombar button {
  height: 42px;
  border-radius: var(--btn-r);
  font-size: 15px;
  font-weight: 600;
}
.cj-primary { background: var(--btn-bg); color: var(--btn-text); border: 1px solid transparent; }
.cj-ghost { background: var(--ghost-bg); color: var(--text); border: 1px solid var(--border-c); }

/* 主页 */
.cj-home { background: var(--bg); }
.cj-home-img { position: relative; flex: 0 0 auto; height: 148px; overflow: hidden; background: #0b2545; }
.cj-home-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cj-home-img::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 44px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), var(--bg));
}
.cj-home-body { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 10px; }
.cj-appname { font-size: 21px; font-weight: 650; letter-spacing: .04em; color: var(--text); }
.cj-ver { font-size: 13px; color: var(--muted); }
.cj-lic { font-size: 13px; color: #c2410c; }
.cj-links { display: flex; align-items: center; gap: 6px; margin-top: 2px; font-size: 12px; color: var(--muted); }
.cj-links button {
  background: none;
  border: 0;
  padding: 3px 5px;
  font-size: 12px;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cj-app[data-theme="dark"] .cj-lic { color: #fbbf24; }
.cj-home-actions {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 62px;
}
.cj-home-actions button {
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, .22);
  background: var(--btn-bg);
  color: var(--btn-text);
  font-size: 16px;
  font-weight: 600;
}
.cj-home-actions button:last-child { border-right: 0; }

/* 测量页 */
.cj-survey .cj-topbar { min-height: 46px; }
.cj-survey .cj-topbar .cj-title { font-size: 15px; }
.cj-import {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 14px;
  padding: 6px 4px;
}
.cj-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  font-size: 12.5px;
  background: var(--card);
  table-layout: fixed;
}
.cj-table th {
  background: var(--head);
  color: var(--head-text);
  font-weight: 600;
  font-size: 12px;
  padding: 7px 4px;
  border-bottom: 1px solid var(--border-c);
  white-space: normal;
}
.cj-table td {
  padding: 8px 4px;
  text-align: center;
  border-bottom: 1px solid var(--border-c);
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cj-table.stations th:nth-child(1) { width: 24%; }
.cj-table.stations th:nth-child(2) { width: 30%; }
.cj-table.stations th:nth-child(3) { width: 12%; }
.cj-table.stations th:nth-child(4) { width: 34%; }
.cj-table tr.is-on td { background: var(--row-hl); font-weight: 600; }
.cj-spacer { flex: 1 1 auto; background: var(--card); }
.cj-obs { flex: 0 0 auto; max-height: 186px; overflow-y: auto; scrollbar-width: none; border-top: 1px solid var(--border-c); }
.cj-obs::-webkit-scrollbar { display: none; }
.cj-obs tr.is-new { animation: rowIn .3s ease both; }
.cj-obs tr.is-new td { background: var(--row-hl); font-weight: 600; }
@keyframes rowIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }
.cj-controls {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 8px 12px 10px;
  background: var(--card);
}
.cj-device { display: flex; align-items: center; gap: 6px; padding-bottom: 6px; }
.cj-device span { font-size: 13px; color: var(--muted); }
.cj-device .ico { font-size: 15px; color: var(--muted); }
.cj-device .ico.on { color: var(--primary); }
.cj-gear {
  width: 34px; height: 34px; margin-bottom: 6px;
  border: 0; border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 17px;
}
.cj-measure {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  width: 96px; height: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
}
.cj-app[data-theme="soft"] .cj-measure { background: #f4f8fe; border: 1px solid #e1eaf6; }
.cj-app[data-theme="dark"] .cj-measure { background: #e2e8f0; border: 1px solid #94a3b8; }
.cj-measure img { width: 30px; height: 42px; object-fit: contain; display: block; }
.cj-measure span { font-size: 11px; }
.cj-measure:active { transform: translateX(-50%) scale(.97); }
.cj-measure[disabled] { opacity: .6; }
@property --p {
  syntax: '<number>';
  inherits: false;
  initial-value: 0;
}

.cj-timer {
  position: absolute;
  left: 50%;
  bottom: 104px;
  transform: translateX(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--timer) calc(var(--p, 0) * 1%), transparent 0);
  box-shadow: 0 2px 8px rgba(12, 24, 40, .16);
  transition: --p .7s linear;
  z-index: 2;
}
.cj-timer[hidden] { display: none; }
.cj-timer::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border-c);
}
.cj-timer span {
  position: relative;
  font-size: 16px;
  font-weight: 700;
  color: var(--timer);
  font-variant-numeric: tabular-nums;
}
.cj-app[data-theme="dark"] .cj-timer span { font-size: 17px; }

/* ---------- 围岩助手 ---------- */
.wy-app {
  --teal: #14a085;
  --teal-deep: #0f8a72;
  --teal-soft: #e3faf4;
  --wy-bg: #f4f6f8;
  --wy-card: #ffffff;
  --wy-text: #1f2937;
  --wy-muted: #6b7280;
  --wy-line: #e8ecef;
  --top-text: #ffffff;
  --top-bg: var(--teal);
  --text: var(--wy-text);
  --card: var(--wy-card);
  --border-c: var(--wy-line);
}
.wy-screen .statusbar { background: var(--top-bg); }
.wy-screen[data-screen="act"] .statusbar { background: var(--wy-bg); color: #7b8a90; }
.wy-screen { background: var(--wy-bg); }
.wy-topbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 0 12px;
  background: var(--teal);
  color: #fff;
}
.wy-topbar .wy-back { width: 28px; height: 28px; border: 0; background: transparent; color: #fff; font-size: 18px; }
.wy-topbar h3 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: .02em; }
.wy-topbar .wy-gear { margin-left: auto; border: 0; background: transparent; color: rgba(255, 255, 255, .85); font-size: 16px; }

.wy-act { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; padding: 46px 18px 0; gap: 8px; background: var(--wy-bg); }
.wy-lock { width: 54px; height: 54px; color: var(--teal); margin-bottom: 2px; }
.wy-act h3 { margin: 0; font-size: 22px; color: var(--teal); letter-spacing: .04em; }
.wy-act p { margin: 0; font-size: 13px; color: var(--wy-muted); }
.wy-devcode {
  width: 100%;
  margin-top: 18px;
  background: var(--teal-soft);
  border-radius: 16px;
  padding: 14px 12px;
  text-align: center;
}
.wy-devcode .lb { font-size: 12px; color: #5c8c80; }
.wy-devcode .code { font-size: 18px; font-weight: 700; letter-spacing: .08em; color: #0d7a68; margin: 4px 0 8px; word-break: break-all; }
.wy-copy {
  border: 1px solid #9fd9cb;
  background: #fff;
  color: #0f8a72;
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 12px;
}
.wy-devcode .tip { margin-top: 8px; font-size: 11.5px; color: #5c8c80; }
.wy-input {
  width: 100%;
  height: 46px;
  margin-top: 18px;
  padding: 0 14px;
  font: inherit;
  font-size: 15px;
  color: var(--wy-text);
  background: #fff;
  border: 1px solid #dde5e8;
  border-radius: 12px;
}
.wy-input:focus { outline: 2px solid var(--teal); }
.wy-primary {
  width: 100%;
  height: 48px;
  margin-top: 12px;
  border: 0;
  border-radius: 14px;
  background: var(--teal);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}
.wy-primary:active { background: var(--teal-deep); }
.wy-foot { margin-top: 16px; font-size: 12px; color: #8a979e; }

/* 测量主页 */
.wy-top {
  flex: 0 0 auto;
  background: var(--teal);
  color: #fff;
  padding: 4px 10px 8px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.wy-readout { flex: 1 1 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 8px; font-size: 11.5px; letter-spacing: .01em; }
.wy-top-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.wy-proj { background: #a8e6d6; color: #0d5f4e; border-radius: 999px; padding: 3px 9px; font-size: 11.5px; white-space: nowrap; }
.wy-exp { width: 24px; height: 24px; border: 0; border-radius: 6px; background: transparent; color: #fff; font-size: 15px; }
.wy-body { flex: 1 1 auto; display: flex; min-height: 0; }
.wy-mileage-col { flex: 0 0 104px; background: #eef2f3; overflow-y: auto; scrollbar-width: none; }
.wy-mileage-col::-webkit-scrollbar { display: none; }
.wy-mileage {
  display: block; width: 100%; text-align: left;
  border: 0; border-left: 3px solid transparent;
  background: transparent;
  padding: 9px 8px 9px 9px;
  font-size: 12.5px; color: var(--wy-text);
}
.wy-mileage span { display: block; font-size: 11px; color: var(--wy-muted); margin-top: 2px; }
.wy-mileage.is-on { background: #e2f7f1; border-left-color: var(--teal); color: #0d7a68; font-weight: 600; }
.wy-mileage.is-on span { color: #3f8d7c; }
.wy-new { display: block; width: 100%; text-align: left; border: 0; background: transparent; color: var(--teal); font-size: 12.5px; padding: 10px 10px; }
.wy-points { flex: 1 1 auto; min-width: 0; padding: 8px 10px 12px; overflow-y: auto; scrollbar-width: none; }
.wy-points::-webkit-scrollbar { display: none; }
.wy-points-head { display: flex; align-items: baseline; gap: 8px; color: var(--teal); font-size: 13px; font-weight: 600; padding: 2px 0 8px; }
.wy-points-head small { color: #7b8a90; font-weight: 400; font-size: 11px; }
.wy-point {
  position: relative; width: 100%; display: flex; align-items: flex-start; gap: 8px;
  text-align: left; border: 0; border-left: 4px solid transparent;
  background: #fff; border-radius: 14px; padding: 10px 10px 10px 12px;
  margin-bottom: 8px; box-shadow: 0 1px 2px rgba(15, 40, 40, .05);
}
.wy-point.is-on { border-left-color: var(--teal); background: #eafaf6; }
.wy-point b { font-size: 13.5px; color: var(--wy-text); font-weight: 600; }
.wy-point .xyz { margin-left: auto; font-size: 10.5px; line-height: 1.55; color: #7b8a90; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.wy-add { border: 0; background: transparent; color: var(--teal); font-size: 13px; padding: 8px 4px; }

/* 收敛 */
.wy-conv-top {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 8px;
  height: 54px; padding: 0 10px;
  background: var(--teal); color: #fff;
}
.wy-conv-top .wy-proj { background: #a8e6d6; }
.wy-conv-top .spacer { flex: 1 1 auto; }
.wy-conv-top button { border: 0; background: transparent; color: #fff; font-size: 16px; padding: 4px 6px; }
.wy-side { flex: 0 0 118px; background: #eef2f3; overflow-y: auto; }
.wy-side .wy-mileage { font-size: 12px; padding-right: 6px; }
.wy-side .wy-mileage span { font-size: 10.5px; line-height: 1.4; }
.wy-side .wy-mileage { display: block; }
.wy-conv-main { flex: 1 1 auto; min-width: 0; padding: 8px 10px 12px; overflow-y: auto; scrollbar-width: none; }
.wy-conv-main::-webkit-scrollbar { display: none; }
.wy-group {
  background: #fff; border-radius: 14px; padding: 8px 10px; margin-bottom: 8px;
  box-shadow: 0 1px 2px rgba(15, 40, 40, .05);
}
.wy-ab { display: flex; align-items: center; gap: 6px; }
.wy-ab b { font-size: 13.5px; }
.wy-ab .dist { margin-left: auto; font-size: 11px; color: #7b8a90; }
.wy-badge { width: 18px; height: 22px; border-radius: 5px; background: #eef2f3; color: #7b8a90; font-size: 10.5px; display: grid; place-items: center; }
.wy-arch { background: #fff; border-radius: 14px; padding: 10px; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.wy-arch b { font-size: 13.5px; }
.wy-arch small { display: block; font-size: 10.5px; color: #7b8a90; }

/* 底部导航 */
.wy-nav {
  flex: 0 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr);
  height: 66px;
  background: #f1fbf7;
  border-top: 1px solid #e3efe9;
}
.wy-nav button {
  border: 0; background: transparent;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: 11.5px; color: #83938f;
}
.wy-nav button .ic {
  width: 30px; height: 22px; border-radius: 999px;
  display: grid; place-items: center; font-size: 16px; color: inherit;
}
.wy-nav button.is-on { color: #0d7a68; }
.wy-nav button.is-on .ic { background: #b9ecd9; }

/* 围岩设置 */
.wy-set-scroll { flex: 1 1 auto; overflow-y: auto; padding: 10px 10px 12px; scrollbar-width: none; }
.wy-set-scroll::-webkit-scrollbar { display: none; }
.wy-card {
  background: #fff; border-radius: 18px; padding: 10px 12px;
  margin-bottom: 10px; box-shadow: 0 1px 2px rgba(15, 40, 40, .05);
}
.wy-card-h { display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--wy-text); padding: 2px 0 8px; }
.wy-card-h .ic { color: var(--teal); font-size: 14px; }
.wy-card-h .wy-sw { margin-left: auto; }
.wy-pick {
  width: 100%; height: 40px; padding: 0 10px;
  font: inherit; font-size: 13px; color: var(--wy-text);
  background: #f5f2fb; border: 0; border-radius: 10px;
}
.wy-hint { margin: 6px 0 0; font-size: 11.5px; color: #7b8a90; line-height: 1.5; }
.wy-sw { width: 44px; height: 24px; border-radius: 999px; border: 0; background: #d7dee1; position: relative; transition: background .18s ease; }
.wy-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .18s ease; }
.wy-sw[data-on="true"] { background: var(--teal); }
.wy-sw[data-on="true"]::after { transform: translateX(20px); }
.wy-opt {
  display: flex; gap: 9px; align-items: flex-start; width: 100%; text-align: left;
  border: 0; background: #f5f2fb; border-radius: 12px; padding: 10px; margin-bottom: 8px;
}
.wy-opt .dot { width: 17px; height: 17px; border-radius: 50%; border: 2px solid #9aa7ad; flex: 0 0 auto; margin-top: 2px; }
.wy-opt[data-on="true"] .dot { border-color: var(--teal); }
.wy-opt[data-on="true"] .dot::after { content: ""; display: block; width: 9px; height: 9px; margin: 2px; border-radius: 50%; background: var(--teal); }
.wy-opt b { display: block; font-size: 13px; }
.wy-opt small { display: block; font-size: 11px; color: #7b8a90; margin-top: 1px; }

/* 小屏：说明区与截图墙 */
.shots-sm { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.shots-lead { font-size: 13px; color: var(--muted); margin: 18px 0 8px; }

/* ---------- 补充交互：分组、未保存、对话框、关于 ---------- */
.cj-dirty {
  margin-left: auto;
  flex: 0 0 auto;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f59e0b;
  color: #3b2300;
  animation: badgeIn .18s ease both;
}
.cj-dirty[hidden] { display: none; }
@keyframes badgeIn { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }

.cj-jump { display: flex; gap: 6px; overflow-x: auto; padding: 2px 1px 10px; scrollbar-width: none; }
.cj-jump::-webkit-scrollbar { display: none; }
.cj-jump button {
  flex: 0 0 auto;
  font-size: 11px;
  line-height: 1;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid var(--border-c);
  background: var(--card);
  color: var(--muted);
}
.cj-jump button:active { color: var(--primary); border-color: var(--primary); }

.cj-prose { margin: 0 0 8px; font-size: 12px; line-height: 1.65; color: var(--muted); }

.cj-about-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  margin-bottom: 10px;
  background: var(--card);
  border: 1px solid var(--border-c);
  border-radius: var(--card-r);
}
.cj-about-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #1b4b8f, #12b3a6);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .06em;
}
.cj-about-hero b { display: block; font-size: 16px; color: var(--text); }
.cj-about-hero span { font-size: 12px; color: var(--muted); }

.cj-dialog {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(8, 18, 32, .46);
  animation: fadeIn .16s ease both;
}
.cj-dialog[hidden] { display: none; }
.cj-dialog-box {
  width: 100%;
  padding: 16px 14px 14px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--border-c);
  box-shadow: 0 16px 40px rgba(8, 18, 32, .32);
  text-align: center;
}
.cj-dialog-box b { display: block; font-size: 15px; color: var(--text); margin-bottom: 6px; }
.cj-dialog-box p { margin: 0 0 14px; font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.cj-dialog-actions { display: grid; gap: 8px; }
.cj-dialog-actions button { height: 38px; border-radius: 10px; font-size: 13px; font-weight: 600; }
.cj-dialog-ghost { background: var(--ghost-bg); color: var(--text); border: 1px solid var(--border-c); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.wy-error {
  width: 100%;
  margin: 8px 0 0;
  font-size: 12.5px;
  color: #c0392b;
  text-align: left;
  animation: shake .26s ease;
}
.wy-error[hidden] { display: none; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.wy-about-link {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  border: 0;
  background: #f5f2fb;
  border-radius: 12px;
  padding: 10px;
}
.wy-about-link b { display: block; font-size: 13px; color: var(--wy-text); }
.wy-about-link small { display: block; font-size: 11px; color: #7b8a90; margin-top: 1px; }
.wy-about-link .arrow { margin-left: auto; color: #8a979e; font-size: 16px; }

.wy-about-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  margin-bottom: 10px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(15, 40, 40, .05);
}
.wy-about-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #0f8a72, #14a085);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .06em;
}
.wy-about-hero b { display: block; font-size: 16px; color: var(--wy-text); }
.wy-about-hero span { font-size: 12px; color: #7b8a90; }

.wy-point.is-new, .wy-group.is-new { animation: rowIn .3s ease both; }
