:root {
  --bg: #0d1015;
  --bg-soft: #141922;
  --card: #171d27;
  --card-2: #1e2531;
  --line: #262e3b;
  --text: #eef2f8;
  --text-2: #9aa7ba;
  --text-3: #6b7a8f;
  --accent: #3f8cff;
  --accent-2: #2f6fe0;
  --danger: #ef5b5b;
  --radius: 16px;
  --top-h: 0px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  overscroll-behavior-y: none;
}

body { overflow: hidden; }
.hidden { display: none !important; }

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

input, textarea, select {
  font-family: inherit;
  font-size: 16px; /* iOS 防放大 */
  color: var(--text);
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 11px 12px;
  width: 100%;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: var(--text-3); }
input:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(63,140,255,.15); }
textarea { resize: vertical; min-height: 68px; }
input[type="color"] { padding: 3px; height: 42px; width: 46px; flex: none; }

/* ---------------- 登录 ---------------- */
.auth-view {
  position: fixed;
  inset: 0;
  overflow-y: auto;
  padding: calc(28px + var(--safe-top)) 20px calc(28px + var(--safe-bottom));
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(63,140,255,.28), transparent 60%),
    radial-gradient(90% 50% at 90% 110%, rgba(232,89,63,.14), transparent 60%),
    var(--bg);
}
.auth-card {
  width: 100%;
  max-width: 380px;
  background: rgba(23,29,39,.82);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px 22px 20px;
  backdrop-filter: blur(12px);
}
.logo-badge {
  width: 54px; height: 54px;
  border-radius: 16px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #3f8cff, #2b5fcc);
  color: #fff;
  margin-bottom: 16px;
  box-shadow: 0 10px 24px rgba(47,111,224,.35);
}
.auth-card h1 { margin: 0 0 6px; font-size: 23px; letter-spacing: .5px; }
.auth-sub { margin: 0 0 22px; color: var(--text-2); font-size: 13.5px; }
.auth-form { display: grid; gap: 14px; }
.field { display: block; margin-bottom: 16px; }
.auth-form .field { margin-bottom: 0; }
.field > span {
  display: block;
  font-size: 12.5px;
  color: var(--text-2);
  margin-bottom: 7px;
}
.field .req { color: var(--accent); margin-left: 2px; }
.auth-switch { text-align: center; font-size: 13.5px; color: var(--text-2); margin: 18px 0 0; }
.auth-switch a { color: var(--accent); text-decoration: none; margin-left: 4px; font-weight: 600; }
.auth-tip { font-size: 11.5px; color: var(--text-3); text-align: center; margin: 16px 0 0; line-height: 1.6; }

.btn {
  border-radius: 11px;
  padding: 10px 16px;
  background: var(--card-2);
  border: 1px solid var(--line);
  font-weight: 600;
  transition: transform .08s, background .15s;
}
.btn:active { transform: scale(.97); }
.btn.primary { background: linear-gradient(145deg, #3f8cff, #2f6fe0); border-color: transparent; color: #fff; }
.btn.block { width: 100%; padding: 13px; font-size: 15.5px; }
.btn.mini { padding: 0 14px; height: 42px; flex: none; font-size: 13.5px; white-space: nowrap; }
.text-btn { color: var(--text-2); font-size: 14px; padding: 8px 0; min-width: 48px; text-align: left; }
.text-btn.accent { color: var(--accent); font-weight: 600; text-align: right; }

/* ---------------- 主界面 ---------------- */
.app-view { position: fixed; inset: 0; display: flex; flex-direction: column; }

.topbar {
  flex: none;
  padding: calc(10px + var(--safe-top)) 14px 10px;
  background: rgba(13,16,21,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  z-index: 5;
}
.topbar-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: 17px; letter-spacing: .3px; }
.brand svg { color: var(--accent); }
.icon-btn { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: var(--text-2); }
.icon-btn:active { background: var(--card-2); }

.search-wrap { position: relative; display: flex; align-items: center; }
.search-wrap input {
  padding-left: 38px;
  padding-right: 34px;
  border-radius: 12px;
  background: var(--card-2);
  height: 42px;
}
.search-wrap input::-webkit-search-cancel-button { display: none; }
.search-icon { position: absolute; left: 12px; color: var(--text-3); pointer-events: none; }
.clear-btn {
  position: absolute; right: 8px;
  width: 22px; height: 22px; border-radius: 50%;
  background: #2c3543; color: var(--text-2);
  font-size: 15px; line-height: 1; display: grid; place-items: center;
}

.scroll-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 11px 0 2px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.scroll-row::-webkit-scrollbar { display: none; }

.chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--card-2);
  border: 1px solid var(--line);
  color: var(--text-2);
  font-size: 13.5px;
  white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
.chip.active { background: #fff; color: #11161f; border-color: #fff; font-weight: 600; }
.chip.ghost { background: transparent; color: var(--text-2); }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.chip .num { font-size: 11px; opacity: .6; }
.chip.active .num { opacity: .55; }

.filter-row { display: flex; align-items: center; gap: 8px; padding-top: 9px; }
.filter-row .chip { padding: 6px 11px; font-size: 12.5px; }
.count-hint { margin-left: auto; font-size: 12px; color: var(--text-3); }

.tag-bar {
  display: flex; gap: 7px; overflow-x: auto; padding: 9px 0 1px;
  scrollbar-width: none;
}
.tag-bar::-webkit-scrollbar { display: none; }
.tag-bar .chip { font-size: 12.5px; padding: 5px 10px; }

/* 列表 */
.list-area {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 14px calc(100px + var(--safe-bottom));
}
.group-title {
  display: flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: var(--text-3);
  margin: 14px 2px 8px;
  letter-spacing: .5px;
}
.group-title:first-child { margin-top: 0; }

.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 14px;
  margin-bottom: 10px;
  overflow: hidden;
  animation: fadeUp .22s ease both;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.card::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--c, var(--accent));
}
.card-head { display: flex; align-items: flex-start; gap: 10px; }
.card-main { flex: 1; min-width: 0; cursor: pointer; }
.card-name {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: .2px;
  word-break: break-word;
  margin-bottom: 3px;
  display: flex;
  align-items: baseline;
  min-width: 0;
}
.card-addr {
  font-size: 12.5px;
  color: var(--text-2);
  display: flex; gap: 4px; align-items: flex-start;
  word-break: break-all;
}
.card-addr svg { flex: none; margin-top: 2px; color: var(--text-3); }
.card-note { font-size: 12.5px; color: var(--text-3); margin-top: 6px; line-height: 1.55; word-break: break-word; }
.country-badge {
  font-size: 11.5px;
  padding: 2.5px 8px;
  border-radius: 6px;
  background: rgba(90,200,160,.14);
  color: #6fd3ab;
}
/* 图片上传与展示 */
.img-grid { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.img-thumb { position: relative; width: 74px; height: 74px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.img-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-del {
  position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border-radius: 50%;
  border: none; background: rgba(0,0,0,.6); color: #fff; font-size: 13px; line-height: 18px; padding: 0; cursor: pointer;
}
#imgPickBtn { margin-top: 4px; }
.card-imgs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; align-items: center; }
.card-imgs img {
  width: 56px; height: 56px; object-fit: cover; border-radius: 8px;
  border: 1px solid var(--line); cursor: pointer; display: block;
}
.img-more { font-size: 12px; color: var(--text-3); }
.lightbox {
  position: fixed; inset: 0; z-index: 999; background: rgba(0,0,0,.88);
  display: flex; align-items: center; justify-content: center; cursor: zoom-out; padding: 16px;
}
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 10px; }
.lightbox.hidden { display: none; }

.geo-row { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.geo-hint { font-size: 11.5px; color: #6fd3ab; }
.btn.mini:disabled { opacity: .5; }

.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 7px; }
.card-title { word-break: break-word; }
.m-cat { font-size: 11.5px; color: var(--cc, var(--accent)); font-weight: 600; margin-right: 5px; white-space: nowrap; }
.m-cat::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--cc, var(--accent)); margin-right: 5px; vertical-align: 1px; }
.cat-badge {
  font-size: 11.5px;
  padding: 2.5px 8px;
  border-radius: 6px;
  background: var(--cb, rgba(63,140,255,.14));
  color: var(--cc, var(--accent));
  font-weight: 600;
}
.tag-badge {
  font-size: 11.5px;
  padding: 2.5px 8px;
  border-radius: 6px;
  background: #202836;
  color: var(--text-2);
}
.time-badge { font-size: 11.5px; color: var(--text-3); margin-left: auto; white-space: nowrap; }

.card-actions { display: flex; gap: 8px; margin-top: 11px; }
.act-btn {
  flex: 1;
  min-width: 0;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  height: 36px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--card-2);
  border: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--text-2);
  font-weight: 600;
  white-space: nowrap;
}
.act-btn.nav { background: rgba(63,140,255,.14); border-color: rgba(63,140,255,.28); color: #7fb2ff; }
.act-btn.on { background: rgba(255,187,60,.14); border-color: rgba(255,187,60,.3); color: #ffc94d; }
.card.pinned { border-color: rgba(255,187,60,.2); }
.card.pinned::before { background: var(--c, var(--accent)); }
.pin-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: #e0ab45; margin-right: 6px; vertical-align: 2px; flex: none;
}
.card-right { float: right; display: inline-flex; align-items: center; gap: 8px; margin-left: 10px; margin-top: 3px; }
.card-time { font-size: 11.5px; font-weight: 400; color: var(--text-3); white-space: nowrap; }
.card-country { font-size: 11px; font-weight: 500; color: #6fd3ab; white-space: nowrap; }
.card-imgcount {
  display: inline-flex; align-items: center; gap: 2px;
  font-size: 11px; font-weight: 500; color: var(--text-3);
  background: var(--card-2);
  border-radius: 8px; padding: 1px 6px; white-space: nowrap;
}
.card { position: relative; }
.act-btn[data-amap] { background: rgba(232,96,63,.12); border-color: rgba(232,96,63,.26); color: #f0906f; }
.act-btn:active { transform: scale(.98); }

.empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-3);
}
.empty svg { color: #2a3444; margin-bottom: 14px; }
.empty h3 { margin: 0 0 7px; font-size: 15px; color: var(--text-2); font-weight: 600; }
.empty p { margin: 0; font-size: 13px; line-height: 1.7; }

.fab {
  position: fixed;
  right: 18px;
  bottom: calc(22px + var(--safe-bottom));
  width: 58px; height: 58px;
  border-radius: 50%;
  background: linear-gradient(145deg, #4a94ff, #2b66d6);
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 10px 26px rgba(47,111,224,.45);
  z-index: 8;
  transition: transform .1s;
}
.fab:active { transform: scale(.93); }

/* ---------------- 抽屉 ---------------- */
.sheet-mask {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 20;
  animation: fade .18s ease;
  backdrop-filter: blur(2px);
}
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }

.sheet {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  max-height: 92vh;
  background: var(--bg-soft);
  border-radius: 20px 20px 0 0;
  border-top: 1px solid var(--line);
  z-index: 21;
  display: flex;
  flex-direction: column;
  animation: slideUp .24s cubic-bezier(.22,.9,.3,1);
  box-shadow: 0 -12px 40px rgba(0,0,0,.5);
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: none; } }
@media (min-width: 720px) {
  .sheet { left: 50%; right: auto; width: 520px; margin-left: -260px; border-radius: 20px; bottom: 24px; max-height: 88vh; }
}
.sheet-head {
  flex: none;
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 16px;
  border-bottom: 1px solid var(--line);
}
.sheet-head h2 { font-size: 15.5px; margin: 0; font-weight: 650; }
.sheet-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 16px calc(24px + var(--safe-bottom));
  -webkit-overflow-scrolling: touch;
}
.sheet-tip { font-size: 11.5px; color: var(--text-3); text-align: center; margin-top: 8px; }

.paste-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: rgba(63,140,255,.10);
  border: 1px dashed rgba(63,140,255,.4);
  color: #7fb2ff;
  font-size: 13.5px;
  font-weight: 600;
  transition: background .15s, transform .08s;
}
.paste-box:active { transform: scale(.98); background: rgba(63,140,255,.18); }
.paste-box svg { flex: none; }

/* 粘贴识别卡片 */
.recognize-card {
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 12px 10px;
  margin-bottom: 16px;
}
.recog-input {
  width: 100%;
  min-height: 96px;
  border: none;
  background: transparent;
  padding: 2px 2px 10px;
  font-size: 14.5px;
  line-height: 1.65;
  resize: vertical;
  color: var(--text);
  display: block;
}
.recog-input:focus { box-shadow: none; border: none; }
.recog-input::placeholder { color: var(--text-3); }

/* 工具栏与按钮 */
.recog-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.recog-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #e8603f;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 14px;
  border-radius: 999px;
  white-space: nowrap;
  transition: transform .08s, background .15s;
}
.recog-btn svg { flex: none; }
.recog-btn:active { transform: scale(.98); background: #d4522f; }
.recog-btn:disabled { opacity: .6; }
.recog-paste-btn {
  flex: none;
  font-size: 12.5px;
  color: var(--text-2);
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  white-space: nowrap;
}

.verify-btn {
  width: 100%;
  margin: 2px 0 10px;
  background: rgba(63,140,255,.12);
  border-color: rgba(63,140,255,.3);
  color: #7fb2ff;
  font-size: 13.5px;
  padding: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.paste-preview {
  margin: -6px 0 16px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255,214,102,.06);
  border: 1px solid rgba(255,214,102,.35);
  animation: fadeUp .2s ease;
}
.pp-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12.5px; color: #ffd666; font-weight: 600; margin-bottom: 10px;
}
.pp-close {
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(255,214,102,.15); color: #ffd666;
  font-size: 15px; line-height: 1;
}
.paste-preview .field { margin-bottom: 10px; }
.paste-preview input, .paste-preview textarea { background: #20283a; font-size: 14px; }
.pp-actions { display: flex; gap: 10px; margin-top: 4px; }
.pp-actions .btn { flex: 1; padding: 10px; }

.link-row, .coord-row { display: flex; gap: 8px; }
.link-row input, .coord-row input { flex: 1; min-width: 0; }
.parse-hint { font-size: 11.5px; color: var(--accent); margin-top: 6px; min-height: 0; }
.parse-hint.err { color: var(--danger); }

.cat-picker { display: flex; flex-wrap: wrap; gap: 7px; }
.cat-picker .chip { font-size: 13px; }
.cat-picker .chip.on { background: var(--cb); color: var(--cc); border-color: var(--cb); font-weight: 600; }

.cat-add { display: flex; gap: 8px; margin-bottom: 14px; }
.cat-add input[type="text"] { flex: 1; }
.cm-row {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.cm-color { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.cm-name { flex: 1; font-size: 14.5px; }
.cm-count { font-size: 12px; color: var(--text-3); }
.cm-btn { font-size: 12.5px; color: var(--text-3); padding: 6px 8px; }
.cm-btn.danger { color: #e06b6b; }

.me-card { display: flex; align-items: center; gap: 12px; padding: 6px 0 18px; }
.avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(145deg, #3f8cff, #2b5fcc);
  display: grid; place-items: center;
  font-weight: 700; font-size: 19px; color: #fff;
}
.me-name { font-size: 16px; font-weight: 650; }
.me-sub { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.menu-list { border-top: 1px solid var(--line); }
.menu-item {
  display: block; width: 100%; text-align: left;
  padding: 14px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.menu-item.danger { color: #e06b6b; }
.install-card {
  margin-top: 18px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(63,140,255,.08);
  border: 1px solid rgba(63,140,255,.22);
}
.install-title { font-size: 14px; font-weight: 650; margin-bottom: 5px; }
.install-desc { font-size: 12.5px; color: var(--text-2); line-height: 1.6; margin-bottom: 12px; }
.version { text-align: center; font-size: 11.5px; color: var(--text-3); margin: 22px 0 0; }

.pop-menu {
  position: fixed;
  z-index: 30;
  background: #1d242f;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 5px;
  min-width: 132px;
  box-shadow: 0 14px 34px rgba(0,0,0,.5);
  animation: fade .12s ease;
}
.pop-menu button {
  display: block; width: 100%; text-align: left;
  padding: 9px 12px; border-radius: 8px; font-size: 13.5px; color: var(--text-2);
}
.pop-menu button:active, .pop-menu button.on { background: #2a3342; color: var(--text); }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(96px + var(--safe-bottom));
  transform: translateX(-50%);
  background: rgba(240,245,255,.96);
  color: #10151c;
  padding: 10px 18px;
  border-radius: 22px;
  font-size: 13.5px;
  font-weight: 600;
  z-index: 60;
  max-width: 82vw;
  text-align: center;
  box-shadow: 0 8px 26px rgba(0,0,0,.4);
  animation: toastIn .2s ease;
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---------------- 宽屏适配 ---------------- */
@media (min-width: 720px) {
  .topbar { padding-left: 24px; padding-right: 24px; }
  .topbar > * { max-width: 860px; margin-left: auto; margin-right: auto; }
  .list-area { padding-left: 24px; padding-right: 24px; }
  .list-area > * { max-width: 860px; margin-left: auto; margin-right: auto; }
  .card-actions { max-width: 460px; }
  .fab { right: calc(50% - 430px - 74px); }
}
@media (min-width: 720px) and (max-width: 1040px) {
  .fab { right: 24px; }
}


/* 输入人 + 时间一行 */
.when-row { display: flex; gap: 10px; margin-bottom: 16px; }

/* 卡片展开详情 */
.card-detail {
  margin-top: 10px;
  padding: 10px 12px;
  background: rgba(255,255,255,.04);
  border-radius: 10px;
  border: 1px dashed var(--line);
}
.d-row { display: flex; gap: 10px; padding: 3px 0; font-size: 13px; }
.d-k { flex: none; width: 60px; color: var(--text-3); }
.d-v { flex: 1; word-break: break-all; color: var(--text); }
.expand-hint {
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--text-3);
  text-align: center;
  opacity: .8;
}
.person-mini {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 7px;
  border-radius: 6px;
  background: rgba(255,255,255,.08);
  color: var(--text-2);
  font-size: 11.5px;
  font-weight: 500;
  vertical-align: 2px;
}


/* ---------- 详情页 ---------- */
.d-head { margin-bottom: 14px; }
.d-head h3 { margin: 0 0 6px; font-size: 19px; font-weight: 700; line-height: 1.35; word-break: break-word; }
.pin-tag {
  font-size: 10.5px; font-weight: 500; color: #e0ab45;
  border: 1px solid rgba(224,171,69,.35); border-radius: 5px;
  padding: 1px 6px; margin-left: 8px; vertical-align: 3px;
}
.d-sub { font-size: 12.5px; color: var(--text-3); }
.d-imgs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.d-imgs img {
  width: 92px; height: 92px; object-fit: cover; border-radius: 10px;
  border: 1px solid var(--line); cursor: zoom-in; display: block;
}
.d-list { border-top: 1px solid var(--line); }
.d-item { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.d-k { flex: none; width: 64px; font-size: 12.5px; color: var(--text-3); }
.d-v { flex: 1; font-size: 13.5px; color: var(--text-1); line-height: 1.6; word-break: break-word; }
.d-v a { color: #7fb2ff; text-decoration: none; }
.d-nav { margin: 18px 0 10px; height: 44px; }
.d-quick { display: flex; gap: 8px; padding-bottom: 10px; }
.d-quick .btn { flex: 1; height: 44px; }
.btn.ghost.danger { color: #e06b6b; border-color: rgba(224,107,107,.3); }

/* ---------- 开关 ---------- */
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0; }
.switch-desc { font-size: 12.5px; color: var(--text-3); }
.switch {
  position: relative; width: 46px; height: 26px; flex: none; border-radius: 13px;
  background: #2a3242; border: none; cursor: pointer; transition: background .18s;
}
.switch i {
  position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #8b94a5; transition: transform .18s, background .18s; display: block;
}
.switch.on { background: rgba(224,171,69,.28); }
.switch.on i { transform: translateX(20px); background: #e0ab45; }

/* 搜索词提示 */
.kw-hint { font-size: 12px; color: var(--text-3); margin: 4px 0 8px; word-break: break-all; }
.kw-hint b { color: #7fb2ff; font-weight: 600; }

.card-addr[data-addrnav] { cursor: pointer; }
.card-addr[data-addrnav]:active { opacity: .7; }
.d-addrlink { color: #7fb2ff; cursor: pointer; text-decoration: underline; text-decoration-color: rgba(127,178,255,.35); }
