/* =========================================================
 * apps/apps.css — 内置原生应用样式（第 6 章）
 * 全部使用应用级前缀，不重定义框架通用类
 * ========================================================= */

/* ---------------------------------------------------------
 * 0. 通用：左滑操作行 / 滑块 / 数字
 * ------------------------------------------------------- */
.sw-row { position: relative; overflow: hidden; background: var(--bg2); }
.sw-inner {
  position: relative; z-index: 2; background: var(--card);
  transition: transform 240ms var(--ease);
  will-change: transform;
}
.sw-actions { position: absolute; right: 0; top: 0; bottom: 0; display: flex; z-index: 1; }
.sw-btn {
  width: 76px; height: 100%; background: var(--red); color: #fff;
  font-size: 15px; font-weight: 500; display: flex; align-items: center; justify-content: center;
}
.sw-btn:active { filter: brightness(.9); }
.sw-btn.gray { background: #8E8E93; }

.sl-row { position: relative; height: 34px; display: flex; align-items: center; flex: 1; touch-action: none; }
.sl-track { position: relative; height: 6px; border-radius: 3px; background: rgba(120,120,128,.28); width: 100%; }
.sl-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: var(--text); }
.sl-thumb {
  position: absolute; top: 50%; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.25);
  transform: translate(-50%, -50%);
}

/* =========================================================
 * 1. 电话
 * ======================================================= */
.ph-hint { font-size: 12px; color: var(--text2); padding: 10px 16px 4px; }
.ph-favico { color: var(--orange); display: inline-flex; margin-left: 4px; }
.ph-icobtn {
  width: 32px; height: 32px; border-radius: 16px; color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  background: rgba(118,118,128,.12);
}
.ph-icobtn:active { background: rgba(118,118,128,.24); }
.ph-callrow.missed .row-title { color: var(--red); }
.ph-dir { display: inline-flex; vertical-align: -1px; margin-right: 3px; color: var(--text2); }
.ph-time { font-size: 13px; color: var(--text2); font-variant-numeric: tabular-nums; }
.ph-check {
  display: none; width: 22px; height: 22px; border-radius: 11px; margin-right: 10px;
  border: 1.5px solid var(--text3); color: transparent; flex: none;
  align-items: center; justify-content: center;
}
.ph-selmode .ph-check { display: flex; }
.ph-selmode .sw-inner .row.sel .ph-check { background: var(--blue); border-color: var(--blue); color: #fff; }
.ph-selmode .sw-inner .row.sel { background: rgba(0,122,255,.06); }
.ph-editbar {
  flex: none; height: 50px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; border-top: .5px solid var(--sep); background: var(--card);
}
.ph-ebtn { font-size: 17px; color: var(--blue); }
.ph-ebtn.danger { color: var(--red); }
.ph-editcount { font-size: 15px; color: var(--text2); }

.ph-search { flex: none; padding: 6px 16px 8px; }
.ph-ctwrap { position: relative; flex: 1; min-height: 0; display: flex; }
.ph-ctscroll { flex: 1; }
.ph-index {
  position: absolute; right: 2px; top: 0; bottom: 0; width: 22px;
  display: flex; flex-direction: column; justify-content: center; gap: 1px;
  pointer-events: auto;
}
.ph-idx {
  font-size: 10px; color: var(--blue); height: 15px; line-height: 15px; text-align: center;
}
.ph-idx:active { color: var(--red); }
.ph-sec-t {
  font-size: 13px; font-weight: 600; color: var(--text);
  padding: 8px 16px 4px; background: var(--bg2);
}

.ph-hero { padding: 18px 0 10px; text-align: center; }
.ph-hero-name { font-size: 24px; font-weight: 600; margin-top: 10px; }
.ph-hero-sub { font-size: 13px; color: var(--text2); margin-top: 2px; }
.ph-hero-acts { display: flex; justify-content: center; gap: 34px; margin-top: 16px; }
.ph-hero-btn { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--green); }
.ph-hero-btn i { font-size: 11px; font-style: normal; }
.ph-form .row { min-height: 48px; }
.ph-input { width: 100%; font-size: 17px; color: var(--text); background: none; border: none; }
.ph-input::placeholder { color: var(--text3); }

.ph-kp { flex: 1; display: flex; flex-direction: column; padding: 0 12px 8px; }
.ph-kp-num {
  height: 62px; display: flex; align-items: center; justify-content: center;
  font-size: 34px; font-weight: 300; letter-spacing: 1px; font-variant-numeric: tabular-nums;
}
.ph-kp-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 26px;
  padding: 10px 26px 18px; flex: none;
}
.ph-key {
  width: 84px; height: 84px; border-radius: 42px; margin: 0 auto;
  background: rgba(120,120,128,.16); color: var(--text);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
html.dark .ph-key { background: rgba(120,120,128,.28); }
.ph-key:active { background: rgba(120,120,128,.42); }
.ph-key-n { font-size: 34px; font-weight: 400; line-height: 1; }
.ph-key-s { font-size: 10px; letter-spacing: 1px; margin-top: 2px; color: var(--text2); }
.ph-kp-row {
  margin-top: auto; display: flex; align-items: center; justify-content: space-between;
  padding: 6px 30px 10px;
}
.ph-kp-side {
  width: 68px; display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: var(--text2); font-size: 11px;
}
.ph-kp-side i { font-style: normal; }
.ph-callbig {
  width: 68px; height: 68px; border-radius: 34px; background: var(--green); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.ph-callbig:active { filter: brightness(.92); }

.ph-in { flex: 1; display: flex; flex-direction: column; align-items: center; color: #fff; }
.ph-in-top { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ph-in-label { font-size: 15px; opacity: .8; margin-bottom: 26px; }
.ph-in-ava { margin-bottom: 18px; }
.ph-in-name { font-size: 30px; font-weight: 600; }
.ph-in-num { font-size: 15px; opacity: .7; margin-top: 6px; }
.ph-in-btns { display: flex; gap: 74px; padding-bottom: 26px; }
.ph-in-btn { display: flex; flex-direction: column; align-items: center; gap: 6px; color: #fff; }
.ph-in-btn span {
  width: 72px; height: 72px; border-radius: 36px; display: flex; align-items: center; justify-content: center;
}
.ph-in-btn i { font-style: normal; font-size: 13px; }
.ph-in-btn.reject span { background: var(--red); }
.ph-in-btn.accept span { background: var(--green); }
.ph-in-tip { font-size: 12px; opacity: .6; padding-bottom: 26px; }

.ph-call { flex: 1; display: flex; flex-direction: column; align-items: center; color: #fff; }
.ph-call-top { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ph-call-time { font-size: 17px; opacity: .75; margin-top: 10px; font-variant-numeric: tabular-nums; }
.ph-call-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 18px;
  padding: 0 34px 26px; width: 100%;
}
.ph-call-act {
  display: flex; flex-direction: column; align-items: center; gap: 6px; color: #fff;
}
.ph-call-act span {
  width: 68px; height: 68px; border-radius: 34px; background: rgba(255,255,255,.16);
  display: flex; align-items: center; justify-content: center;
}
.ph-call-act.on span { background: #fff; color: #1c1c1e; }
.ph-call-act i { font-style: normal; font-size: 11px; opacity: .85; }
.ph-call-end { padding-bottom: 40px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ph-end {
  width: 72px; height: 72px; border-radius: 36px; background: var(--red); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.ph-end:active { filter: brightness(.9); }
.ph-end-t { font-size: 12px; opacity: .7; }

/* =========================================================
 * 2. 信息
 * ======================================================= */
.ms-list .row { min-height: 66px; }
.ms-name { font-size: 17px; font-weight: 500; display: flex; align-items: center; gap: 5px; }
.ms-pin { color: var(--orange); display: inline-flex; }
.ms-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.ms-time { font-size: 12px; color: var(--text2); }
.ms-dot { width: 9px; height: 9px; border-radius: 5px; background: var(--blue); display: block; }
.ms-search { flex: none; padding: 6px 16px 8px; }
.ms-picklist .row { min-height: 52px; }

.ms-body { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.ms-scroll { flex: 1; padding: 6px 0 4px; }
.ms-sep { text-align: center; margin: 10px 0 6px; }
.ms-sep span { font-size: 11px; color: var(--text2); }
.ms-chatrow { display: flex; align-items: flex-end; gap: 6px; margin: 4px 12px; }
.ms-chatrow.mine { flex-direction: row-reverse; }
.ms-cava { display: flex; flex: none; }
.ms-bub {
  max-width: 68%; padding: 8px 12px; border-radius: var(--r-bubble);
  background: #E9E9EB; color: #000; font-size: 16px; line-height: 1.38; word-break: break-word;
}
.ms-chatrow.mine .ms-bub { background: var(--green); color: #fff; }
html.dark .ms-bub { background: #2C2C2E; color: #fff; }
html.dark .ms-chatrow.mine .ms-bub { background: var(--green); }
.ms-text { white-space: pre-wrap; }
.ms-img { display: block; width: 150px; height: 150px; border-radius: 12px; overflow: hidden; }
.ms-img .thumb { border-radius: 12px; }
.ms-voice { display: flex; align-items: center; gap: 8px; min-width: 78px; }
.ms-wave {
  flex: 1; height: 12px; border-radius: 6px; min-width: 40px;
  background: repeating-linear-gradient(90deg, currentColor 0 2px, transparent 2px 5px);
  opacity: .55;
}
.ms-sticker { display: block; width: 62px; height: 62px; border-radius: 10px; overflow: hidden; }
.ms-stt { font-size: 10px; color: var(--text2); align-self: flex-end; margin-bottom: 2px; flex: none; }
.ms-stt[data-st="read"] { color: var(--blue); }
.ms-typing {
  flex: none; display: none; align-items: center; gap: 4px;
  padding: 4px 16px 6px; font-size: 12px; color: var(--text2);
}
.ms-typing.on { display: flex; }
.ms-typing i {
  width: 6px; height: 6px; border-radius: 3px; background: var(--text2);
  animation: msBlink 1.1s infinite;
}
.ms-typing i:nth-child(2) { animation-delay: .18s; }
.ms-typing i:nth-child(3) { animation-delay: .36s; }
@keyframes msBlink { 0%,100% { opacity: .3; } 50% { opacity: 1; } }

.ms-input {
  flex: none; display: flex; align-items: center; gap: 8px;
  padding: 8px 12px 10px; border-top: .5px solid var(--sep); background: var(--bg);
}
.ms-plus {
  width: 32px; height: 32px; border-radius: 16px; color: var(--text2);
  background: rgba(120,120,128,.14); display: flex; align-items: center; justify-content: center; flex: none;
}
.ms-input input {
  flex: 1; height: 36px; border-radius: 18px; border: .5px solid var(--sep);
  padding: 0 14px; font-size: 16px; color: var(--text); background: var(--card);
}
.ms-send {
  width: 32px; height: 32px; border-radius: 16px; background: var(--green); color: #fff;
  display: flex; align-items: center; justify-content: center; flex: none;
}
.ms-send:active { filter: brightness(.92); }

/* =========================================================
 * 3. 相机
 * ======================================================= */
.cam-page { flex: 1; display: flex; flex-direction: column; background: #000; color: #fff; }
.cam-modes {
  flex: none; height: 40px; display: flex; align-items: center; gap: 18px;
  overflow-x: auto; padding: 0 16px; scrollbar-width: none;
}
.cam-modes::-webkit-scrollbar { height: 0; }
.cam-mode { font-size: 13px; color: rgba(255,255,255,.6); white-space: nowrap; flex: none; }
.cam-mode.on { color: var(--yellow); font-weight: 600; }
.cam-stage { flex: 1; position: relative; min-height: 0; }
.cam-view {
  position: absolute; left: 0; right: 0; top: 0; bottom: 96px;
  overflow: hidden; border-radius: 14px; margin: 0 6px;
}
.cam-preview { position: absolute; inset: 0; transition: transform 240ms var(--ease); }
.cam-preview.flip { transform: scaleX(-1); }
.cam-preview .thumb { border-radius: 14px; }
.cam-grid {
  position: absolute; inset: 0; pointer-events: none; border-radius: 14px;
  background-image:
    linear-gradient(90deg, transparent 33.2%, rgba(255,255,255,.18) 33.2% 33.6%, transparent 33.6%),
    linear-gradient(90deg, transparent 66.4%, rgba(255,255,255,.18) 66.4% 66.8%, transparent 66.8%),
    linear-gradient(0deg, transparent 33.2%, rgba(255,255,255,.18) 33.2% 33.6%, transparent 33.6%),
    linear-gradient(0deg, transparent 66.4%, rgba(255,255,255,.18) 66.4% 66.8%, transparent 66.8%);
}
.cam-view.shoot .cam-preview { animation: camShoot 300ms var(--ease); }
.cam-view.shoot::after {
  content: ''; position: absolute; inset: 0; background: #fff;
  animation: camFlash 300ms linear; border-radius: 14px;
}
@keyframes camShoot {
  0% { transform: scale(1); }
  45% { transform: scale(.93); }
  100% { transform: scale(1); }
}
@keyframes camFlash { 0% { opacity: .85; } 100% { opacity: 0; } }
.cam-zoomlabel {
  position: absolute; left: 50%; transform: translateX(-50%); top: 10px;
  font-size: 12px; background: rgba(0,0,0,.45); padding: 3px 10px; border-radius: 10px;
}
.cam-right {
  position: absolute; right: 10px; top: 10px; display: flex; flex-direction: column; gap: 12px;
}
.cam-tg {
  width: 46px; display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: rgba(255,255,255,.75); font-size: 9px;
}
.cam-tg i { font-style: normal; }
.cam-tg.on { color: var(--yellow); }
.cam-zoombar {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: 8px;
  display: flex; gap: 8px;
}
.cam-zoom {
  width: 44px; height: 30px; border-radius: 15px; background: rgba(0,0,0,.45);
  color: #fff; font-size: 14px; display: flex; align-items: center; justify-content: center;
}
.cam-zoom i { font-style: normal; font-size: 9px; }
.cam-zoom.on { background: var(--yellow); color: #000; }
.cam-bottom {
  flex: none; height: 96px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 30px 8px;
}
.cam-album {
  width: 46px; height: 46px; border-radius: 8px; overflow: hidden; position: relative;
  background: rgba(255,255,255,.14); display: flex; align-items: center; justify-content: center;
}
.cam-album .thumb { position: absolute; inset: 0; }
.cam-album-empty { color: rgba(255,255,255,.6); display: flex; }
.cam-shutter {
  width: 80px; height: 80px; border-radius: 40px; border: 4px solid #fff;
  display: flex; align-items: center; justify-content: center;
}
.cam-shutter span { width: 62px; height: 62px; border-radius: 31px; background: #fff; }
.cam-shutter:active span { background: rgba(255,255,255,.7); }
.cam-flip { width: 46px; height: 46px; border-radius: 23px; background: rgba(255,255,255,.16); color: #fff; display: flex; align-items: center; justify-content: center; }

/* =========================================================
 * 4. 照片
 * ======================================================= */
.pho-sec-t {
  font-size: 15px; font-weight: 600; padding: 14px 16px 6px;
  display: flex; align-items: baseline; gap: 6px;
}
.pho-sec-t span { font-size: 12px; font-weight: 400; color: var(--text2); }
.pho-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; padding: 0 2px; }
.pho-cell {
  position: relative; padding-top: 100%; overflow: hidden; background: var(--bg2);
  display: block;
}
.pho-cell .thumb { position: absolute; inset: 0; }
.pho-fav {
  position: absolute; right: 5px; bottom: 5px; color: #fff;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.4));
}
.pho-check { position: absolute; left: 6px; top: 6px; color: #fff; display: none; }
.pho-cell.sel .pho-check { display: block; color: var(--blue); }
.pho-cell.sel { opacity: .82; }
.pho-bar {
  flex: none; height: 52px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 18px; border-top: .5px solid var(--sep); background: var(--card);
}
.pho-bbtn { font-size: 16px; color: var(--blue); }
.pho-bbtn.danger { color: var(--red); }
.pho-count { font-size: 14px; color: var(--text2); }

.pho-view { flex: 1; position: relative; background: #000; overflow: hidden; }
.pho-view-img {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  transition: opacity 200ms linear;
}
.pho-view-img .thumb { width: 100%; height: 100%; }
.pho-chrome { position: absolute; inset: 0; transition: opacity 240ms var(--ease); }
.pho-chrome.hide { opacity: 0; pointer-events: none; }
.pho-chrome-top {
  position: absolute; left: 0; right: 0; top: 0; padding: 12px 16px 14px;
  background: linear-gradient(180deg, rgba(0,0,0,.55), transparent);
  display: flex; align-items: flex-start; gap: 10px; color: #fff;
}
.pho-back { color: #fff; font-size: 15px; display: flex; align-items: center; flex: none; }
.pho-meta { flex: 1; text-align: center; }
.pho-meta-t { font-size: 15px; font-weight: 600; }
.pho-meta-s { font-size: 11px; opacity: .7; margin-top: 2px; }
.pho-chrome-bot {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px 22px;
  background: linear-gradient(0deg, rgba(0,0,0,.6), transparent);
  display: flex; justify-content: space-around; color: #fff;
}
.pho-act { color: #fff; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; }
.pho-act:active { opacity: .5; }

.pho-edit { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.pho-edit-img { flex: 1; min-height: 0; margin: 8px 12px; border-radius: 12px; overflow: hidden; }
.pho-edit-img .thumb { width: 100%; height: 100%; }
.pho-tabs { flex: none; display: flex; justify-content: center; gap: 26px; padding: 6px 0 4px; }
.pho-tabs button { font-size: 14px; color: var(--text2); }
.pho-tabs button.on { color: var(--text); font-weight: 600; }
.pho-panel { flex: none; padding: 4px 12px 8px; }
.pho-panel.hide { display: none; }
.pho-fgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.pho-fcell { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.pho-fimg {
  width: 56px; height: 56px; border-radius: 8px; overflow: hidden; display: block; position: relative;
}
.pho-fimg .thumb { position: absolute; inset: 0; }
.pho-fcell i { font-style: normal; font-size: 10px; color: var(--text2); }
.pho-fcell.on i { color: var(--blue); }
.pho-fcell.on .pho-fimg { box-shadow: 0 0 0 2px var(--blue); }
.pe-slider { display: flex; align-items: center; gap: 12px; padding: 2px 0; }
.pe-slider > span { width: 52px; font-size: 13px; color: var(--text2); flex: none; }
.pe-reset {
  width: 100%; height: 34px; border-radius: 10px; background: rgba(120,120,128,.16);
  font-size: 14px; color: var(--text); margin-top: 8px;
}
.pho-edit-bar { flex: none; display: flex; gap: 10px; padding: 8px 12px 12px; }
.pho-ebtn {
  flex: 1; height: 44px; border-radius: 12px; font-size: 16px;
  background: rgba(120,120,128,.16); color: var(--text);
}
.pho-ebtn.primary { background: var(--blue); color: #fff; }

/* =========================================================
 * 5. Safari
 * ======================================================= */
.saf-bar {
  flex: none; display: flex; align-items: center; gap: 8px;
  padding: 54px 12px 8px; background: var(--bg);
}
.saf-tabbtn {
  width: 34px; height: 34px; border-radius: 8px; color: var(--blue); flex: none;
  display: flex; align-items: center; justify-content: center; background: rgba(120,120,128,.12);
}
.saf-bottom {
  flex: none; height: 46px; display: flex; align-items: center; justify-content: space-around;
  border-top: .5px solid var(--sep); background: var(--bg); color: var(--blue);
}
.saf-home { padding-bottom: 10px; }
.saf-sec-t { font-size: 13px; font-weight: 600; color: var(--text2); padding: 14px 16px 6px; }
.saf-favs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 0 12px; }
.saf-fav { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.saf-fav-ico { width: 52px; height: 52px; border-radius: 12px; overflow: hidden; position: relative; display: block; }
.saf-fav-ico .thumb { position: absolute; inset: 0; }
.saf-fav i { font-style: normal; font-size: 11px; color: var(--text); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.saf-none { font-size: 13px; color: var(--text2); padding: 6px 16px; }
.saf-cards { padding: 0 12px; }
.saf-card {
  display: flex; gap: 12px; width: 100%; padding: 10px; border-radius: 12px;
  background: var(--card); margin-bottom: 8px; text-align: left; align-items: flex-start;
}
.saf-card-img { width: 62px; height: 62px; border-radius: 10px; overflow: hidden; position: relative; flex: none; display: block; }
.saf-card-img .thumb { position: absolute; inset: 0; }
.saf-card-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.saf-card-main b { font-size: 15px; }
.saf-card-main i { font-style: normal; font-size: 11px; color: var(--blue); }
.saf-card-main em { font-style: normal; font-size: 12px; color: var(--text2); }
.saf-tabs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 10px 12px 16px; }
.saf-tabcard {
  border-radius: 12px; overflow: hidden; background: var(--card); padding-bottom: 8px; text-align: left;
  border: .5px solid var(--sep);
}
.saf-tabcard.new { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 160px; color: var(--blue); gap: 6px; }
.saf-tabcard.new i { font-style: normal; font-size: 13px; }
.saf-tabthumb { display: block; height: 110px; position: relative; }
.saf-tabthumb .thumb { position: absolute; inset: 0; }
.saf-tabcard i { font-style: normal; font-size: 12px; padding: 6px 8px 0; display: block; }
.saf-tabcard em { font-style: normal; font-size: 10px; color: var(--text2); padding: 2px 8px 0; display: block; }

.saf-top {
  flex: none; display: flex; align-items: center; gap: 8px;
  padding: 54px 12px 8px; border-bottom: .5px solid var(--sep);
}
.saf-back, .saf-share { width: 32px; height: 32px; color: var(--blue); display: flex; align-items: center; justify-content: center; flex: none; }
.saf-url { flex: 1; text-align: center; min-width: 0; }
.saf-url b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.saf-url i { font-style: normal; font-size: 11px; color: var(--text2); }
.saf-article { padding: 16px 18px 30px; }
.saf-article h1 { font-size: 24px; font-weight: 700; margin: 0 0 6px; line-height: 1.3; }
.saf-src { font-size: 12px; color: var(--text2); margin-bottom: 14px; }
.saf-article p { font-size: 16px; line-height: 1.65; margin: 0 0 12px; color: var(--text); }
.saf-rels { margin-top: 18px; }
.saf-rel {
  display: block; width: 100%; text-align: left; padding: 12px; border-radius: 10px;
  background: var(--card); margin-bottom: 8px; font-size: 15px; color: var(--blue);
}

/* =========================================================
 * 6. 音乐
 * ======================================================= */
.mus-body { flex: 1; min-height: 0; overflow-y: auto; padding-bottom: 8px; }
.mus-slot { flex: none; padding: 6px 12px 8px; border-top: .5px solid var(--sep); background: var(--bg); }
.mus-mini {
  display: flex; align-items: center; gap: 10px; background: var(--card);
  border-radius: 14px; padding: 8px 10px; box-shadow: 0 2px 10px rgba(0,0,0,.08);
}
.mm-cover { width: 44px; height: 44px; border-radius: 8px; overflow: hidden; position: relative; display: block; flex: none; }
.mm-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mm-main b { font-size: 14px; }
.mm-main i { font-style: normal; font-size: 12px; color: var(--text2); }
.mm-btn { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; color: var(--text); flex: none; }

.mus-hero { position: relative; height: 176px; margin: 12px 16px; border-radius: 16px; overflow: hidden; }
.mus-hero .thumb { position: absolute; inset: 0; }
.mus-hero-t {
  position: absolute; left: 14px; bottom: 14px; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.4);
}
.mus-hero-t b { display: block; font-size: 19px; font-weight: 700; }
.mus-hero-t i { font-style: normal; font-size: 13px; opacity: .9; }
.mus-hero-play {
  position: absolute; right: 14px; bottom: 14px; width: 48px; height: 48px; border-radius: 24px;
  background: rgba(255,255,255,.92); color: #111; display: flex; align-items: center; justify-content: center;
}
.mus-plist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 0 16px; }
.mus-pcard { background: var(--card); border-radius: 12px; overflow: hidden; text-align: left; padding-bottom: 8px; }
.mus-pcard span { display: block; height: 96px; position: relative; }
.mus-pcard b { display: block; font-size: 14px; padding: 6px 8px 0; }
.mus-pcard i { display: block; font-style: normal; font-size: 11px; color: var(--text2); padding: 2px 8px 0; }
.mus-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 0 16px; }
.mus-card { background: var(--card); border-radius: 12px; overflow: hidden; text-align: left; padding-bottom: 8px; }
.mus-card span { display: block; height: 110px; position: relative; }
.mus-card b { display: block; font-size: 14px; padding: 6px 8px 0; }
.mus-card i { display: block; font-style: normal; font-size: 11px; color: var(--text2); padding: 2px 8px 0; }
.mus-alb { width: 42px; height: 42px; border-radius: 6px; overflow: hidden; position: relative; display: block; }
.mus-alb .thumb { position: absolute; inset: 0; }
.mus-sno {
  width: 24px; flex: none; margin-right: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--text2); font-variant-numeric: tabular-nums;
}
.mus-sno.on { color: var(--red); }
.mus-scov { width: 44px; height: 44px; border-radius: 6px; overflow: hidden; position: relative; display: block; margin-right: 12px; flex: none; }
.mus-scov .thumb { position: absolute; inset: 0; }
.mus-search { padding: 8px 16px; }
.mus-hot { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 10px; }
.mus-hotw { padding: 6px 12px; border-radius: 14px; background: rgba(120,120,128,.14); font-size: 13px; }

.mus-player { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.mus-pmain { flex: none; padding: 4px 24px 0; }
.mus-cover {
  width: 320px; height: 320px; margin: 0 auto; border-radius: 16px; overflow: hidden; position: relative;
  box-shadow: 0 12px 32px rgba(0,0,0,.24);
}
.mus-cover .thumb { position: absolute; inset: 0; }
.mus-p-title.big { font-size: 22px; font-weight: 700; text-align: center; margin-top: 16px; }
.mus-p-artist { font-size: 16px; color: var(--text2); text-align: center; margin-top: 2px; }
.mus-progwrap { padding: 14px 0 6px; }
.mus-times {
  display: flex; justify-content: space-between; font-size: 11px; color: var(--text2);
  font-variant-numeric: tabular-nums; margin-top: -6px;
}
.mus-ctrls { display: flex; align-items: center; justify-content: center; gap: 44px; padding: 8px 0 4px; }
.mus-cbtn { width: 56px; height: 56px; border-radius: 28px; display: flex; align-items: center; justify-content: center; color: var(--text); }
.mus-playbtn {
  width: 56px; height: 56px; border-radius: 28px; background: rgba(120,120,128,.16);
  display: flex; align-items: center; justify-content: center;
}
.mus-vol { display: flex; align-items: center; gap: 10px; padding: 2px 0; color: var(--text2); }
.mus-extra { display: flex; justify-content: space-around; padding: 6px 0 2px; color: var(--text2); }
.mus-xbtn { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; }
.mus-xbtn.on { color: var(--red); }
.mus-lyrics { flex: 1; min-height: 0; overflow-y: auto; padding: 10px 24px 24px; text-align: center; scrollbar-width: none; }
.mus-lyrics::-webkit-scrollbar { width: 0; }
.mus-lyric { font-size: 16px; color: var(--text3); padding: 7px 0; transition: color 240ms linear; }
.mus-lyric.on { color: var(--text); font-weight: 600; }

/* =========================================================
 * 7. 时钟
 * ======================================================= */
.clk-body { flex: 1; min-height: 0; overflow-y: auto; }
.clk-wrow .clk-ctime { font-size: 26px; font-weight: 300; }
.clk-arow .clk-atime { font-size: 24px; font-weight: 300; }
button.clk-ring {
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  color: var(--text2); margin-right: 6px;
}
.clk-hint { font-size: 12px; color: var(--text2); padding: 10px 16px; }
.clk-sw { display: flex; flex-direction: column; align-items: center; padding: 22px 0 10px; }
.clk-sw-time { font-size: 54px; font-weight: 200; font-variant-numeric: tabular-nums; }
.clk-sw-btns { display: flex; gap: 46px; margin-top: 22px; }
.clk-swbtn {
  width: 78px; height: 78px; border-radius: 39px; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
}
.clk-swbtn:active { filter: brightness(.92); }
.clk-swbtn.green { background: rgba(52,199,89,.22); color: var(--green); }
.clk-swbtn.red { background: rgba(255,59,48,.22); color: var(--red); }
.clk-swbtn.gray { background: rgba(120,120,128,.2); color: var(--text); }
.clk-swbtn.blue { background: rgba(0,122,255,.2); color: var(--blue); }
.clk-lap .row-title { font-size: 15px; font-weight: 400; }
.clk-tm { display: flex; flex-direction: column; align-items: center; padding: 16px 0; }
.clk-ring-wrap { position: relative; width: 240px; height: 240px; }
.clk-ring-wrap svg.clk-ring { width: 240px; height: 240px; }
.clk-ring-bg { fill: none; stroke: rgba(120,120,128,.22); stroke-width: 8; }
.clk-ring-fg {
  fill: none; stroke: var(--orange); stroke-width: 8; stroke-linecap: round;
  transform: rotate(-90deg); transform-origin: 120px 120px; transition: stroke-dashoffset 900ms linear;
}
.clk-tm-time { position: absolute; left: 0; right: 0; top: 92px; text-align: center; font-size: 44px; font-weight: 200; }
.clk-tm-end { position: absolute; left: 0; right: 0; top: 148px; text-align: center; font-size: 12px; color: var(--text2); }
.clk-tm-btns { display: flex; gap: 14px; margin-top: 16px; }
.clk-form { padding: 12px 16px 20px; }
.clk-time-row { text-align: center; padding: 4px 0 14px; }
.clk-time-btn { font-size: 44px; font-weight: 200; font-variant-numeric: tabular-nums; }
.clk-input { width: 100%; font-size: 17px; color: var(--text); }
.clk-form-btns { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.clk-ring-page { flex: 1; display: flex; flex-direction: column; background: #000; color: #fff; }
.clk-rp-main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.clk-rp-ico { color: var(--orange); }
.clk-rp-time { font-size: 52px; font-weight: 200; }
.clk-rp-label { font-size: 15px; opacity: .7; }
.clk-rp-btns { display: flex; gap: 16px; padding: 0 24px 46px; }
.clk-rp-btn { flex: 1; height: 52px; border-radius: 26px; font-size: 17px; }
.clk-rp-btn.stop { background: var(--red); color: #fff; }
.clk-rp-btn.snooze { background: rgba(255,255,255,.18); color: #fff; }

/* =========================================================
 * 8. 日历
 * ======================================================= */
.cal-body { flex: 1; min-height: 0; overflow-y: auto; }
.cal-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 16px; }
.cal-nav { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; color: var(--blue); }
.cal-nav.holder { visibility: hidden; }
.cal-htitle { font-size: 17px; font-weight: 600; }
.cal-week { display: grid; grid-template-columns: repeat(7, 1fr); padding: 4px 8px; }
.cal-week span { text-align: center; font-size: 11px; color: var(--text2); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); padding: 0 8px; }
.cal-cell { height: 46px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; }
.cal-num { font-size: 16px; width: 30px; height: 30px; line-height: 30px; border-radius: 15px; text-align: center; }
.cal-cell.dim .cal-num { color: var(--text3); }
.cal-cell.today .cal-num { background: var(--red); color: #fff; }
.cal-cell.sel .cal-num { background: var(--blue); color: #fff; }
.cal-cell.sel.today .cal-num { background: var(--red); }
.cal-dots { display: flex; gap: 3px; height: 6px; }
.cal-dots i { width: 5px; height: 5px; border-radius: 3px; display: block; }
.cal-today-line { padding: 6px 16px 10px; }
.cal-today { font-size: 14px; color: var(--blue); }
.cal-ev .cal-evbar { width: 4px; height: 32px; border-radius: 2px; margin-right: 12px; flex: none; }
.cal-day { padding-bottom: 24px; }
.cal-day-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 16px; }
.cal-axis { position: relative; padding: 0 12px; }
.cal-slot { display: flex; gap: 8px; border-top: .5px solid var(--sep); }
.cal-hour { width: 44px; font-size: 11px; color: var(--text2); text-align: right; flex: none; padding-top: 2px; }
.cal-slot-body { flex: 1; }
.cal-blocks { position: absolute; left: 64px; right: 12px; top: 0; bottom: 0; }
.cal-block {
  position: absolute; left: 0; right: 0; border-radius: 6px; padding: 4px 8px;
  color: #fff; overflow: hidden; text-align: left;
}
.cal-block b { display: block; font-size: 12px; }
.cal-block i { font-style: normal; font-size: 10px; opacity: .85; }
.cal-form { padding: 12px 0; }
.cal-input { width: 100%; font-size: 17px; color: var(--text); }
.cal-input.big { font-size: 20px; font-weight: 600; }
.cal-textarea { width: 100%; font-size: 15px; line-height: 1.45; resize: none; color: var(--text); min-height: 66px; }
.cal-colors { display: flex; gap: 8px; }
.cal-cbtn { width: 24px; height: 24px; border-radius: 12px; border: 2px solid transparent; }
.cal-cbtn.on { border-color: var(--text); }
.cal-search { padding: 10px 12px; }

/* =========================================================
 * 9. 备忘录
 * ======================================================= */
.not-top { flex: none; padding: 54px 16px 6px; background: var(--bg); }
.not-topbar { display: flex; align-items: center; justify-content: space-between; }
.not-ttl { font-size: 34px; font-weight: 700; }
.not-new {
  width: 34px; height: 34px; border-radius: 17px; background: rgba(120,120,128,.14);
  color: var(--blue); display: flex; align-items: center; justify-content: center;
}
.not-field { margin-top: 8px; }
.not-list .row { min-height: 58px; }
.not-title { font-size: 16px; font-weight: 500; display: flex; align-items: center; gap: 5px; }
.not-line { display: flex; gap: 8px; margin-top: 2px; overflow: hidden; }
.not-line span:first-child { font-size: 13px; color: var(--text2); flex: none; }
.not-prev { font-size: 13px; color: var(--text2); }
.not-pin { color: var(--orange); display: inline-flex; }
.not-edit { flex: 1; display: flex; flex-direction: column; min-height: 0; padding: 0 16px; }
.not-title-input { font-size: 34px; font-weight: 700; padding: 6px 0; color: var(--text); }
.not-meta { font-size: 12px; color: var(--text2); padding-bottom: 6px; }
.not-body { flex: 1; min-height: 0; font-size: 17px; line-height: 1.5; resize: none; color: var(--text); }
.not-tools { flex: none; display: flex; justify-content: space-around; padding: 8px 0 12px; color: var(--text2); }
.not-tool { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; }

/* =========================================================
 * 10. App Store
 * ======================================================= */
.aps-body { flex: 1; min-height: 0; overflow-y: auto; padding-bottom: 10px; }
.aps-hero { margin: 12px 16px; border-radius: 18px; padding: 16px; background: linear-gradient(135deg, #3b82f6, #8b5cf6); color: #fff; }
.aps-hero.small { padding: 12px 16px; background: linear-gradient(135deg, #f97316, #ef4444); }
.aps-hero-t { font-size: 22px; font-weight: 700; }
.aps-hero-s { font-size: 12px; opacity: .85; margin-top: 2px; }
.aps-hero-img { display: block; height: 150px; border-radius: 12px; overflow: hidden; position: relative; margin-top: 10px; }
.aps-hero-b { font-size: 17px; font-weight: 600; margin-top: 10px; }
.aps-hero-d { font-size: 13px; opacity: .85; margin-top: 2px; }
.aps-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 0 16px; }
.aps-card { background: var(--card); border-radius: 14px; overflow: hidden; text-align: left; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.aps-card.big { grid-column: span 2; }
.aps-cover { display: block; height: 110px; border-radius: 10px; overflow: hidden; position: relative; }
.aps-cover .thumb, .aps-hero-img .thumb { position: absolute; inset: 0; }
.aps-card-main b { display: block; font-size: 15px; }
.aps-card-main i { display: block; font-style: normal; font-size: 11px; color: var(--text2); }
.aps-card-main em { display: block; font-style: normal; font-size: 12px; color: var(--text2); margin-top: 4px; }
.aps-get { align-self: flex-start; padding: 4px 14px; border-radius: 14px; background: rgba(0,122,255,.12); color: var(--blue); font-size: 13px; font-weight: 600; }
.aps-row { min-height: 66px; }
.aps-ico { width: 52px; height: 52px; border-radius: 12px; overflow: hidden; position: relative; display: block; margin-right: 12px; flex: none; }
.aps-ico .thumb { position: absolute; inset: 0; }
.aps-btn { padding: 5px 16px; border-radius: 16px; background: var(--blue); color: #fff; font-size: 14px; font-weight: 600; }
.aps-btn.opened { background: rgba(120,120,128,.18); color: var(--text); }
.aps-rank { width: 22px; flex: none; margin-right: 8px; font-size: 15px; font-weight: 600; color: var(--text2); text-align: center; }
.aps-cats { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 10px; }
.aps-cat { padding: 6px 14px; border-radius: 16px; background: rgba(120,120,128,.14); font-size: 13px; }
.aps-cat.on { background: rgba(0,122,255,.14); color: var(--blue); }
.aps-upd-bar { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; font-size: 13px; color: var(--text2); }
.aps-updall { color: var(--blue); font-size: 14px; }
.aps-urow { min-height: 66px; }
.aps-search { padding: 8px 16px; }
.aps-hot { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 10px; }
.aps-hotw { padding: 6px 12px; border-radius: 14px; background: rgba(120,120,128,.14); font-size: 13px; }
.aps-detail { padding-bottom: 24px; }
.aps-dhead { display: flex; gap: 14px; padding: 16px; }
.aps-dico { width: 92px; height: 92px; border-radius: 20px; overflow: hidden; position: relative; display: block; flex: none; }
.aps-dico .thumb { position: absolute; inset: 0; }
.aps-dmeta { flex: 1; min-width: 0; }
.aps-dmeta b { font-size: 20px; font-weight: 600; display: block; }
.aps-dmeta i { font-style: normal; font-size: 13px; color: var(--text2); display: block; margin: 2px 0 10px; }
.aps-dbtn { display: inline-block; padding: 7px 24px; border-radius: 18px; background: var(--blue); color: #fff; font-size: 15px; font-weight: 600; }
.aps-dbtn.opened { background: rgba(120,120,128,.18); color: var(--text); }
.aps-stats { display: flex; border-top: .5px solid var(--sep); border-bottom: .5px solid var(--sep); padding: 10px 0; }
.aps-stats > div { flex: 1; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.aps-stats b { font-size: 18px; }
.aps-stats i { font-style: normal; }
.aps-stats em { font-style: normal; font-size: 11px; color: var(--text2); }
.aps-shots { display: flex; gap: 10px; overflow-x: auto; padding: 14px 16px; scrollbar-width: none; }
.aps-shots::-webkit-scrollbar { height: 0; }
.aps-shot { width: 180px; height: 320px; border-radius: 12px; overflow: hidden; position: relative; flex: none; display: block; }
.aps-shot .thumb { position: absolute; inset: 0; }
.aps-desc { padding: 0 16px; font-size: 14px; line-height: 1.6; }

/* =========================================================
 * 11. 天气
 * ======================================================= */
.wea-top { flex: none; display: flex; gap: 12px; padding: 54px 16px 6px; overflow-x: auto; scrollbar-width: none; }
.wea-top::-webkit-scrollbar { height: 0; }
.wea-tab { font-size: 14px; color: var(--text2); white-space: nowrap; }
.wea-tab.on { color: var(--text); font-weight: 600; }
.wea-body { padding-bottom: 20px; }
.wea-now { text-align: center; padding: 16px 0 8px; }
.wea-city { font-size: 22px; }
.wea-temp { font-size: 72px; font-weight: 200; line-height: 1.05; }
.wea-desc { font-size: 14px; color: var(--text2); }
.wea-card { margin: 10px 16px; padding: 12px 14px; border-radius: 16px; background: rgba(120,120,128,.12); }
.wea-card-t { font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.wea-hours { display: flex; gap: 18px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.wea-hours::-webkit-scrollbar { height: 0; }
.wea-hour { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: none; }
.wea-hour span:first-child { font-size: 12px; color: var(--text2); }
.wea-hico { color: var(--blue); display: flex; }
.wea-hour b { font-size: 15px; }
.wea-days { display: flex; flex-direction: column; }
.wea-day { display: flex; align-items: center; gap: 10px; padding: 5px 0; }
.wea-dd { width: 44px; font-size: 14px; flex: none; }
.wea-dico { width: 28px; display: flex; justify-content: center; color: var(--blue); flex: none; }
.wea-dlo, .wea-dhi { width: 34px; font-size: 14px; text-align: center; flex: none; }
.wea-dlo { color: var(--text2); }
.wea-dbar { flex: 1; height: 5px; border-radius: 3px; background: rgba(120,120,128,.2); position: relative; overflow: hidden; }
.wea-dbar i { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: linear-gradient(90deg, #7ec8f7, #f7b731); }
.wea-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.wea-metric { text-align: center; display: flex; flex-direction: column; gap: 2px; }
.wea-metric b { font-size: 17px; }
.wea-metric i { font-style: normal; font-size: 11px; color: var(--text2); }
.wea-foot { text-align: center; padding: 14px 0 6px; }
.wea-manage { font-size: 14px; color: var(--blue); display: inline-flex; align-items: center; gap: 4px; }
.wea-ctemp { font-size: 20px; }
.wea-hint { font-size: 12px; color: var(--text2); padding: 10px 16px; }

/* =========================================================
 * 12. 地图
 * ======================================================= */
.map-top { flex: none; display: flex; align-items: center; gap: 8px; padding: 54px 12px 8px; }
.map-top.route { flex-direction: column; align-items: stretch; gap: 8px; }
.map-search { flex: 1; }
.map-routebtn {
  width: 36px; height: 36px; border-radius: 18px; background: var(--card); color: var(--blue);
  display: flex; align-items: center; justify-content: center; flex: none; box-shadow: 0 1px 4px rgba(0,0,0,.12);
}
.map-inputs { display: flex; flex-direction: column; gap: 6px; background: var(--card); border-radius: 12px; padding: 8px 10px; }
.map-inp { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.map-inp i {
  font-style: normal; width: 20px; height: 20px; border-radius: 10px; flex: none;
  background: rgba(120,120,128,.2); color: var(--text2); font-size: 11px;
  display: flex; align-items: center; justify-content: center;
}
.map-inp input { flex: 1; font-size: 15px; color: var(--text); }
.map-seg { display: flex; }
.map-canvas { flex: 1; position: relative; overflow: hidden; background: #EFECE4; }
.map-base { position: absolute; inset: 0; background: #F1EEE6; }
.map-blocks {
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(0,0,0,.05) 0 54px, transparent 54px 116px),
    repeating-linear-gradient(0deg, rgba(0,0,0,.04) 0 46px, transparent 46px 100px);
}
.map-roads {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(90deg, transparent 112px, #fff 112px 122px, transparent 122px),
    linear-gradient(0deg, transparent 168px, #fff 168px 178px, transparent 178px),
    linear-gradient(90deg, transparent 262px, #fff 262px 270px, transparent 270px),
    linear-gradient(74deg, transparent 96px, #fff 96px 102px, transparent 102px);
}
.map-water { position: absolute; left: 0; right: 0; bottom: 56px; height: 78px; background: linear-gradient(180deg, #b8e2f5, #a6d6ef); }
html.dark .map-base { background: #1A1A1C; }
html.dark .map-blocks {
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 54px, transparent 54px 116px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 46px, transparent 46px 100px);
}
html.dark .map-roads { opacity: .3; }
html.dark .map-water { background: linear-gradient(180deg, #123a4d, #0e3040); }
.map-pin { position: absolute; transform: translate(-50%, -100%); color: var(--red); display: flex; flex-direction: column; align-items: center; gap: 2px; z-index: 3; }
.map-pin i {
  font-style: normal; font-size: 10px; background: rgba(255,255,255,.94); color: #333;
  padding: 1px 5px; border-radius: 6px; white-space: nowrap; box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.map-pin.on { color: var(--blue); }
.map-route-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.map-me {
  position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; border-radius: 50%;
  background: var(--blue); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.3); z-index: 4;
  transform: translate(-50%, -50%);
}
.map-me i {
  position: absolute; left: -14px; top: -14px; right: -14px; bottom: -14px; border-radius: 50%;
  background: rgba(0,122,255,.35); animation: mapPulse 1.8s ease-out infinite;
}
@keyframes mapPulse { 0% { transform: scale(.4); opacity: .8; } 100% { transform: scale(1.3); opacity: 0; } }
.map-bottom { flex: none; display: flex; flex-direction: column; max-height: 48%; background: var(--bg); border-top: .5px solid var(--sep); }
.map-card { padding: 12px 16px 10px; border-bottom: .5px solid var(--sep); }
.map-card-h { display: flex; align-items: center; justify-content: space-between; }
.map-card-h b { font-size: 17px; }
.map-card-d { font-size: 13px; color: var(--text2); }
.map-card-x { color: var(--text2); display: flex; }
.map-card-s { font-size: 13px; color: var(--text2); margin-top: 2px; }
.map-card-btns { display: flex; gap: 10px; margin-top: 10px; }
.map-cbtn { flex: 1; height: 36px; border-radius: 18px; background: rgba(120,120,128,.14); font-size: 13px; display: flex; align-items: center; justify-content: center; gap: 4px; }
.map-route-main { display: flex; align-items: baseline; gap: 10px; margin-top: 6px; }
.map-route-km { font-size: 24px; font-weight: 600; }
.map-route-t { font-size: 13px; color: var(--text2); }
.map-route-ends { display: flex; flex-direction: column; gap: 4px; margin: 10px 0; font-size: 13px; color: var(--text2); }
.map-route-ends i {
  font-style: normal; display: inline-block; width: 18px; height: 18px; border-radius: 9px;
  background: rgba(120,120,128,.2); font-size: 10px; text-align: center; line-height: 18px; margin-right: 6px;
}
.map-list { flex: 1; min-height: 0; overflow-y: auto; }
.map-poi .row-ico { background: var(--blue); }

/* =========================================================
 * 13. 钱包
 * ======================================================= */
.wal-wrap { flex: none; padding: 6px 0 2px; }
.wal-cards { display: flex; gap: 12px; overflow-x: auto; padding: 4px 16px 8px; scrollbar-width: none; }
.wal-cards::-webkit-scrollbar { height: 0; }
.wal-card { width: 78%; flex: none; perspective: 900px; }
.wal-inner { position: relative; padding-top: 62%; transition: transform 520ms var(--ease); transform-style: preserve-3d; }
.wal-card.flip .wal-inner { transform: rotateY(180deg); }
.wal-front, .wal-back {
  position: absolute; inset: 0; border-radius: 16px; padding: 14px 16px; color: #fff;
  backface-visibility: hidden; display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 6px 18px rgba(0,0,0,.22);
}
.wal-back { transform: rotateY(180deg); }
.wal-type { font-size: 12px; opacity: .85; }
.wal-name { font-size: 17px; font-weight: 600; }
.wal-tail { font-size: 15px; letter-spacing: 2px; font-variant-numeric: tabular-nums; }
.wal-holder { font-size: 12px; opacity: .8; align-self: flex-end; }
.wal-mag { height: 34px; border-radius: 4px; background: rgba(0,0,0,.55); margin-bottom: 6px; }
.wal-back-row { display: flex; justify-content: space-between; font-size: 13px; padding: 2px 0; }
.wal-dots { display: flex; justify-content: center; gap: 6px; }
.wal-dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(120,120,128,.3); display: block; }
.wal-dots i.on { background: var(--text); }
.wal-none { padding: 40px 0; text-align: center; color: var(--text2); font-size: 14px; width: 100%; }
.wal-form { padding: 12px 16px 20px; }
.wal-seg { margin-bottom: 12px; }
.wal-input { width: 100%; font-size: 17px; color: var(--text); }
.wal-form-tip { font-size: 11px; color: var(--text2); padding: 8px 0 12px; text-align: center; }
.wal-pay { padding: 16px 16px 24px; text-align: center; }
.wal-qr { width: 200px; height: 200px; margin: 0 auto; border-radius: 12px; overflow: hidden; position: relative; display: block; }
.wal-qr .thumb { position: absolute; inset: 0; }
.wal-pay-t { font-size: 13px; color: var(--text2); margin-top: 12px; }

/* =========================================================
 * 14. 计算器
 * ======================================================= */
.clc-page { flex: 1; display: flex; flex-direction: column; background: #000; color: #fff; }
.clc-disp {
  flex: 1; min-height: 0; display: flex; align-items: flex-end; justify-content: flex-end;
  padding: 0 22px 14px; font-size: 64px; font-weight: 200; font-variant-numeric: tabular-nums;
  overflow: hidden; word-break: break-all;
}
.clc-grid { flex: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 0 14px 28px; }
.clc-key { height: 76px; border-radius: 38px; font-size: 30px; font-weight: 400; display: flex; align-items: center; justify-content: center; }
.clc-key:active { filter: brightness(1.3); }
.clc-key.gray { background: #A5A5A5; color: #000; }
.clc-key.dark { background: #333333; color: #fff; }
.clc-key.orange { background: var(--orange); color: #fff; }
.clc-key.wide { grid-column: span 2; justify-content: flex-start; padding-left: 30px; }

